draw.io is a JavaScript, client-side editor for general diagramming.
28.0.6 release
David Benson3df12c1c006a
diff --git a/ChangeLog b/ChangeLogindex 7fff5c804..4316888fd 100644--- a/ChangeLog+++ b/ChangeLog@@ -1,3 +1,7 @@+17-JUL-2025: 28.0.6++- Fixes missing File menu option+16-JUL-2025: 28.0.5- [conf cloud] Stops converting server macro with aspectHash to embed macro [DID-15703]diff --git a/VERSION b/VERSIONindex 952614541..789834ed7 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-28.0.5\ No newline at end of file+28.0.6\ No newline at end of filediff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.jsindex 620d6d628..04796760b 100644--- a/src/main/webapp/js/app.min.js+++ b/src/main/webapp/js/app.min.js@@ -62,7 +62,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url"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:"28.0.5",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.0.6",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-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||@@ -533,7 +533,8 @@ mxStencil.prototype.evaluateTextAttribute=function(a,b,c){b=this.evaluateAttribumxStencil.prototype.drawShape=function(a,b,c,d,e,f,g){g=null!=g?g:null!=b&&null!=b.state?b.state.view.graph:null;var k=a.states.slice(),l=mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,null);l=this.computeAspect(b.style,c,d,e,f,l);var m=Math.min(l.width,l.height);m="inherit"==this.strokewidth?Number(mxUtils.getNumber(b.style,mxConstants.STYLE_STROKEWIDTH,1)):Number(this.strokewidth)*m;a.setStrokeWidth(m);null!=b.style&&"1"==mxUtils.getValue(b.style,mxConstants.STYLE_POINTER_EVENTS,"0")&&(a.setStrokeColor(mxConstants.NONE),a.rect(c,d,e,f),a.stroke(),a.setStrokeColor(b.stroke));this.drawChildren(a,b,c,d,e,f,this.bgNode,l,!1,!0,g);this.drawChildren(a,b,c,d,e,f,this.fgNode,l,!0,!b.outline||null==b.style||0==mxUtils.getValue(b.style,mxConstants.STYLE_BACKGROUND_OUTLINE,0),g);a.states.length!=k.length&&(a.states=k)};mxStencil.prototype.drawChildren=function(a,b,c,d,e,f,g,k,l,m,n){if(null!=g&&0<e&&0<f)for(c=g.firstChild;null!=c;)c.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,c,k,l,m,n),c=c.nextSibling};mxStencil.prototype.computeAspect=function(a,b,c,d,e,f){a=b;b=d/this.w0;var g=e/this.h0;if(f=f==mxConstants.DIRECTION_NORTH||f==mxConstants.DIRECTION_SOUTH){g=d/this.h0;b=e/this.w0;var k=(d-e)/2;a+=k;c-=k}"fixed"==this.aspect&&(b=g=Math.min(b,g),f?(a+=(e-this.w0*b)/2,c+=(d-this.h0*g)/2):(a+=(d-this.w0*b)/2,c+=(e-this.h0*g)/2));return new mxRectangle(a,c,b,g)};-mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style?d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"):null==b.style||mxUtils.isValidColor(d)||(a=c.getAttribute("default"),b=mxUtils.getValue(b.style,d,null==a?mxConstants.NONE:a),"default"==b&&(b=null!=e?"fillcolor"==c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor:"#ffffff"),d=b);return d};+mxStencil.prototype.parseColor=function(a,b,c,d,e){if("stroke"==d)d=b.stroke;else if("fill"==d)d=b.fill;else if("font"==d&&null!=b.style)d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black");else if(null!=b.style&&!mxUtils.isValidColor(d)){a=c.getAttribute("default");var f=mxUtils.getValue(b.style,d);null==f&&(b=null!=b&&null!=b.state?b.state.cell.style:null,f=null==a||null!=b&&(0<=b.indexOf(";"+d+"=")||b.substring(0,d.length+1)==d+"=")?mxConstants.NONE:a);"default"==f&&(f=null!=e?"fillcolor"==+c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor:"#ffffff");d=f}return d};mxStencil.prototype.drawNode=function(a,b,c,d,e,f,g){var k=c.nodeName,l=d.x,m=d.y,n=d.width,p=d.height,q=Math.min(n,p);if("save"==k)a.save();else if("restore"==k)a.restore();else if(f){if("path"==k){a.begin();q=!0;if("1"==c.getAttribute("rounded")){q=!1;for(var r=Number(c.getAttribute("arcSize")),t=0,u=[],v=c.firstChild;null!=v;){if(v.nodeType==mxConstants.NODETYPE_ELEMENT){var y=v.nodeName;if("move"==y||"line"==y)"move"!=y&&0!=u.length||u.push([]),u[u.length-1].push(new mxPoint(l+Number(v.getAttribute("x"))*n,m+Number(v.getAttribute("y"))*p)),t++;else{q=!0;break}}v=v.nextSibling}if(!q&&0<t)for(n=0;n<u.length;n++)p=!1,m=u[n][0],l=u[n][u[n].length-1],m.x==l.x&&m.y==l.y&&(u[n].pop(),p=!0),this.addPoints(a,u[n],!0,r,p);else q=!0}if(q)for(v=c.firstChild;null!=v;)v.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,v,d,e,f,g),v=v.nextSibling}else if("close"==k)a.close();else if("move"==k)a.moveTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("line"==k)a.lineTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("quad"==k)a.quadTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p);else if("curve"==k)a.curveTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p,l+Number(c.getAttribute("x3"))*n,m+Number(c.getAttribute("y3"))*p);else if("arc"==k)a.arcTo(Number(c.getAttribute("rx"))*n,Number(c.getAttribute("ry"))*@@ -2015,53 +2016,53 @@ Editor.prototype.setModified=function(a){this.modified=a};Editor.prototype.setFiEditor.prototype.createUndoManager=function(){var a=this.graph,b=new mxUndoManager;this.undoListener=function(e,g){b.undoableEditHappened(g.getProperty("edit"))};var f=mxUtils.bind(this,function(e,g){this.undoListener.apply(this,arguments)});a.getModel().addListener(mxEvent.UNDO,f);a.getView().addListener(mxEvent.UNDO,f);f=function(e,g){e=g.getProperty("edit").changes;e=a.getSelectionCellsForChanges(e);g=!1;if(0<e.length){for(var d=[],h=0;h<e.length;h++)null!=a.view.getState(e[h])&&(d.push(e[h]),g||(a.scrollCellToVisible(e[h]),g=!0));a.setSelectionCells(d)}};b.addListener(mxEvent.UNDO,f);b.addListener(mxEvent.REDO,f);return b};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(a){this.consumer=this.producer=null;this.done=a;this.args=null};OpenFile.prototype.setConsumer=function(a){this.consumer=a;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};OpenFile.prototype.error=function(a){this.cancel(!0);mxUtils.alert(a)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(a){null!=this.done&&this.done(null!=a?a:!0)};-function Dialog(a,b,f,e,g,d,h,m,p,k,v){this.editorUi=a;null==this.bg&&(this.bg=a.createDiv("geBackground"));g&&document.body.appendChild(this.bg);g=a.createDiv(p?"geTransDialog":"geDialog");g.style.width=f+60+"px";g.style.height=e+60+"px";"1"!=urlParams.embedInline||Editor.inlineFullscreen||null==a.embedViewport||(g.style.left=a.embedViewport.x+a.embedViewport.width/2+"px",g.style.top=a.embedViewport.y+a.embedViewport.height/2+"px");g.appendChild(b);document.body.appendChild(g);if(d&&(b=document.createElement("div"),-b.className="geButton",b.setAttribute("title",mxResources.get("close")),b.style.backgroundImage="url("+Editor.crossImage+")",b.style.position="absolute",b.style.top="0px",b.style.right="0px",mxEvent.addListener(b,"click",mxUtils.bind(this,function(){a.hideDialog(!0)})),g.appendChild(b),!v)){var w=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(y){w=!0}),null,mxUtils.bind(this,function(y){w&&(a.hideDialog(!0),w=!1)}))}this.onDialogClose=h;this.container=g;null!=k&&this.addResizeHandler(k);+function Dialog(a,b,f,e,g,d,h,m,p,k,u){this.editorUi=a;null==this.bg&&(this.bg=a.createDiv("geBackground"));g&&document.body.appendChild(this.bg);g=a.createDiv(p?"geTransDialog":"geDialog");g.style.width=f+60+"px";g.style.height=e+60+"px";"1"!=urlParams.embedInline||Editor.inlineFullscreen||null==a.embedViewport||(g.style.left=a.embedViewport.x+a.embedViewport.width/2+"px",g.style.top=a.embedViewport.y+a.embedViewport.height/2+"px");g.appendChild(b);document.body.appendChild(g);if(d&&(b=document.createElement("div"),+b.className="geButton",b.setAttribute("title",mxResources.get("close")),b.style.backgroundImage="url("+Editor.crossImage+")",b.style.position="absolute",b.style.top="0px",b.style.right="0px",mxEvent.addListener(b,"click",mxUtils.bind(this,function(){a.hideDialog(!0)})),g.appendChild(b),!u)){var w=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(y){w=!0}),null,mxUtils.bind(this,function(y){w&&(a.hideDialog(!0),w=!1)}))}this.onDialogClose=h;this.container=g;null!=k&&this.addResizeHandler(k);a.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(a,b){return new mxPoint(a,b)};Dialog.prototype.addResizeHandler=function(a){var b=document.createElement("img");b.setAttribute("src",mxWindow.prototype.resizeImage);b.style.cursor="nwse-resize";b.style.position="absolute";b.style.bottom="0px";b.style.right="0px";b.style.zIndex="2";var f=null,e=null,g=null,d=null,h=mxUtils.bind(this,function(k){f=mxEvent.getClientX(k);e=mxEvent.getClientY(k);g=parseInt(this.container.style.width);d=parseInt(this.container.style.height);mxEvent.addGestureListeners(document,null,m,p);mxEvent.consume(k)}),-m=mxUtils.bind(this,function(k){if(null!=f&&null!=e){var v=mxEvent.getClientX(k)-f,w=mxEvent.getClientY(k)-e;this.container.style.width=Math.max(a.width,g+2*v)+"px";this.container.style.height=Math.max(a.height,d+2*w)+"px";mxEvent.consume(k)}}),p=mxUtils.bind(this,function(k){null!=f&&null!=e&&(e=f=null,mxEvent.removeGestureListeners(document,null,m,p),mxEvent.consume(k))});mxEvent.addGestureListeners(b,h,m,p);this.container.appendChild(b)};+m=mxUtils.bind(this,function(k){if(null!=f&&null!=e){var u=mxEvent.getClientX(k)-f,w=mxEvent.getClientY(k)-e;this.container.style.width=Math.max(a.width,g+2*u)+"px";this.container.style.height=Math.max(a.height,d+2*w)+"px";mxEvent.consume(k)}}),p=mxUtils.bind(this,function(k){null!=f&&null!=e&&(e=f=null,mxEvent.removeGestureListeners(document,null,m,p),mxEvent.consume(k))});mxEvent.addGestureListeners(b,h,m,p);this.container.appendChild(b)};Dialog.prototype.close=function(a,b){if(null!=this.onDialogClose){if(0==this.onDialogClose(a,b))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(a,b,f,e,g,d,h,m,p,k,v){p=null!=p?p:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var y=document.createElement("div");y.style.padding="0px";y.style.margin="0px";y.style.fontSize="18px";y.style.paddingBottom="16px";y.style.marginBottom="10px";y.style.borderBottom="1px solid #c0c0c0";y.style.color="gray";y.style.whiteSpace="nowrap";y.style.textOverflow="ellipsis";y.style.overflow="hidden";mxUtils.write(y,b);y.setAttribute("title",b);w.appendChild(y)}b=-document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof f&&(f=f.replace(/\n/g,"<br/>"));b.innerHTML=Graph.sanitizeHtml(f);w.appendChild(b);f=document.createElement("div");f.style.marginTop="12px";f.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",f.appendChild(b),f.style.textAlign="center");null!=k&&(k=mxUtils.button(k,function(){null!=v&&v()}),k.className="geBtn",f.appendChild(k));+var ErrorDialog=function(a,b,f,e,g,d,h,m,p,k,u){p=null!=p?p:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var y=document.createElement("div");y.style.padding="0px";y.style.margin="0px";y.style.fontSize="18px";y.style.paddingBottom="16px";y.style.marginBottom="10px";y.style.borderBottom="1px solid #c0c0c0";y.style.color="gray";y.style.whiteSpace="nowrap";y.style.textOverflow="ellipsis";y.style.overflow="hidden";mxUtils.write(y,b);y.setAttribute("title",b);w.appendChild(y)}b=+document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof f&&(f=f.replace(/\n/g,"<br/>"));b.innerHTML=Graph.sanitizeHtml(f);w.appendChild(b);f=document.createElement("div");f.style.marginTop="12px";f.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",f.appendChild(b),f.style.textAlign="center");null!=k&&(k=mxUtils.button(k,function(){null!=u&&u()}),k.className="geBtn",f.appendChild(k));var C=mxUtils.button(e,function(){p&&a.hideDialog();null!=g&&g()});C.className="geBtn";f.appendChild(C);null!=h&&(e=mxUtils.button(h,function(){p&&a.hideDialog();null!=m&&m()}),e.className="geBtn gePrimaryBtn",f.appendChild(e));this.init=function(){C.focus()};w.appendChild(f);this.container=w},PrintDialog=function(a,b,f,e){this.create(a,b,f,e)};-PrintDialog.prototype.create=function(a){function b(C){var D=h.checked||k.checked,E=parseInt(w.value)/100;isNaN(E)&&(E=1,w.value="100%");mxClient.IS_SF&&(E*=.75);var G=f.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,J=1/f.pageScale;if(D){var M=h.checked?1:parseInt(v.value);isNaN(M)||(J=mxUtils.getScaleForPageCount(M,f,G))}var Q=M=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*E);G.height=Math.ceil(G.height*E);J*=E;!D&&f.pageVisible?(E=f.getPageLayout(),M-=E.x*G.width,Q-=E.y*G.height):+PrintDialog.prototype.create=function(a){function b(C){var D=h.checked||k.checked,E=parseInt(w.value)/100;isNaN(E)&&(E=1,w.value="100%");mxClient.IS_SF&&(E*=.75);var G=f.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,J=1/f.pageScale;if(D){var M=h.checked?1:parseInt(u.value);isNaN(M)||(J=mxUtils.getScaleForPageCount(M,f,G))}var Q=M=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*E);G.height=Math.ceil(G.height*E);J*=E;!D&&f.pageVisible?(E=f.getPageLayout(),M-=E.x*G.width,Q-=E.y*G.height):D=!0;D=PrintDialog.createPrintPreview(f,J,G,0,M,Q,D);D.open();C&&PrintDialog.printPreview(D)}var f=a.editor.graph,e=document.createElement("table");e.style.width="100%";e.style.height="100%";var g=document.createElement("tbody");var d=document.createElement("tr");var h=document.createElement("input");h.setAttribute("type","checkbox");var m=document.createElement("td");m.setAttribute("colspan","2");m.style.fontSize="10pt";m.appendChild(h);var p=document.createElement("span");mxUtils.write(p," "+mxResources.get("fitPage"));m.appendChild(p);mxEvent.addListener(p,"click",function(C){h.checked=!h.checked;k.checked=!h.checked;mxEvent.consume(C)});mxEvent.addListener(h,"change",function(){k.checked=!h.checked});d.appendChild(m);g.appendChild(d);d=d.cloneNode(!1);var k=document.createElement("input");k.setAttribute("type","checkbox");m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(k);p=document.createElement("span");mxUtils.write(p," "+mxResources.get("posterPrint")+":");m.appendChild(p);mxEvent.addListener(p,-"click",function(C){k.checked=!k.checked;h.checked=!k.checked;mxEvent.consume(C)});d.appendChild(m);var v=document.createElement("input");v.setAttribute("value","1");v.setAttribute("type","number");v.setAttribute("min","1");v.setAttribute("size","4");v.setAttribute("disabled","disabled");v.style.width="50px";m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(v);mxUtils.write(m," "+mxResources.get("pages")+" (max)");d.appendChild(m);g.appendChild(d);mxEvent.addListener(k,"change",-function(){k.checked?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled");h.checked=!k.checked});d=d.cloneNode(!1);m=document.createElement("td");mxUtils.write(m,mxResources.get("pageScale")+":");d.appendChild(m);m=document.createElement("td");var w=document.createElement("input");w.setAttribute("value","100 %");w.setAttribute("size","5");w.style.width="50px";m.appendChild(w);d.appendChild(m);g.appendChild(d);d=document.createElement("tr");m=document.createElement("td");m.colSpan=2;+"click",function(C){k.checked=!k.checked;h.checked=!k.checked;mxEvent.consume(C)});d.appendChild(m);var u=document.createElement("input");u.setAttribute("value","1");u.setAttribute("type","number");u.setAttribute("min","1");u.setAttribute("size","4");u.setAttribute("disabled","disabled");u.style.width="50px";m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(u);mxUtils.write(m," "+mxResources.get("pages")+" (max)");d.appendChild(m);g.appendChild(d);mxEvent.addListener(k,"change",+function(){k.checked?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled");h.checked=!k.checked});d=d.cloneNode(!1);m=document.createElement("td");mxUtils.write(m,mxResources.get("pageScale")+":");d.appendChild(m);m=document.createElement("td");var w=document.createElement("input");w.setAttribute("value","100 %");w.setAttribute("size","5");w.style.width="50px";m.appendChild(w);d.appendChild(m);g.appendChild(d);d=document.createElement("tr");m=document.createElement("td");m.colSpan=2;m.style.paddingTop="20px";m.setAttribute("align","right");p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});p.className="geBtn";a.editor.cancelFirst&&m.appendChild(p);if(PrintDialog.previewEnabled){var y=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();b(!1)});y.className="geBtn";m.appendChild(y)}y=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();b(!0)});y.className="geBtn gePrimaryBtn";m.appendChild(y);a.editor.cancelFirst||m.appendChild(p);d.appendChild(m);g.appendChild(d);e.appendChild(g);this.container=e};PrintDialog.printPreview=function(a){try{null!=a.wnd&&window.setTimeout(function(){a.wnd.focus();a.wnd.print();a.wnd.close()},500)}catch(b){}};PrintDialog.createPrintPreview=function(a,b,f,e,g,d,h){b=new mxPrintPreview(a,b,f,e,g,d);b.title=mxResources.get("preview");b.addPageCss=!mxClient.IS_SF;b.printBackgroundImage=!0;b.autoOrigin=h;h=a.background;if(null==h||""==h||h==mxConstants.NONE)h="#ffffff";b.backgroundColor=h;var m=b.isTextLabel;b.isTextLabel=function(k){return"geHint"==!k.className&&m.apply(this,arguments)};var p=b.getLinkForCellState;b.getLinkForCellState=function(k){return a.getAbsoluteUrl(p.apply(this,arguments))};return b};PrintDialog.previewEnabled=!0;-var PageSetupDialog=function(a){function b(){var E=w;null!=E&&null!=E.originalSrc&&(E=a.createImageForPageLink(E.originalSrc,null));null!=E&&null!=E.src?(v.style.backgroundImage="url("+E.src+")",v.style.display="inline-block"):(v.style.backgroundImage="",v.style.display="none");v.style.backgroundColor="";null!=y&&y!=mxConstants.NONE&&(v.style.backgroundColor=y,v.style.display="inline-block")}var f=a.editor.graph,e=document.createElement("table");e.style.width="100%";e.style.height="100%";var g=document.createElement("tbody");+var PageSetupDialog=function(a){function b(){var E=w;null!=E&&null!=E.originalSrc&&(E=a.createImageForPageLink(E.originalSrc,null));null!=E&&null!=E.src?(u.style.backgroundImage="url("+E.src+")",u.style.display="inline-block"):(u.style.backgroundImage="",u.style.display="none");u.style.backgroundColor="";null!=y&&y!=mxConstants.NONE&&(u.style.backgroundColor=y,u.style.display="inline-block")}var f=a.editor.graph,e=document.createElement("table");e.style.width="100%";e.style.height="100%";var g=document.createElement("tbody");var d=document.createElement("tr");var h=document.createElement("td");h.style.verticalAlign="top";h.style.fontSize="10pt";mxUtils.write(h,mxResources.get("paperSize")+":");d.appendChild(h);h=document.createElement("td");h.style.verticalAlign="top";h.style.fontSize="10pt";var m=PageSetupDialog.addPageFormatPanel(h,"pagesetupdialog",f.pageFormat);d.appendChild(h);g.appendChild(d);d=document.createElement("tr");h=document.createElement("td");mxUtils.write(h,mxResources.get("gridSize")+":");d.appendChild(h);h=document.createElement("td");h.style.whiteSpace="nowrap";var p=document.createElement("input");p.setAttribute("type","number");p.setAttribute("min","0");p.style.width="40px";p.style.marginLeft="6px";p.value=f.getGridSize();h.appendChild(p);mxEvent.addListener(p,"change",function(){var E=parseInt(p.value);p.value=Math.max(1,isNaN(E)?f.getGridSize():E)});d.appendChild(h);g.appendChild(d);d=document.createElement("tr");h=document.createElement("td");mxUtils.write(h,mxResources.get("background")+":");-d.appendChild(h);h=document.createElement("td");var k=document.createElement("button");k.className="geBtn";k.style.margin="0px";mxUtils.write(k,mxResources.get("change")+"...");var v=document.createElement("div");v.style.display="inline-block";v.style.verticalAlign="middle";v.style.backgroundPosition="center center";v.style.backgroundRepeat="no-repeat";v.style.backgroundSize="contain";v.style.border="1px solid lightGray";v.style.borderRadius="4px";v.style.marginRight="14px";v.style.height="32px";-v.style.width="64px";v.style.cursor="pointer";v.style.padding="4px";var w=f.backgroundImage,y=f.background,C=f.shadowVisible,D=function(E){a.showBackgroundImageDialog(function(G,J,M,Q){J||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=Q);y=M;b()},w,y,!0);mxEvent.consume(E)};mxEvent.addListener(k,"click",D);mxEvent.addListener(v,"click",D);b();h.appendChild(v);h.appendChild(k);d.appendChild(h);g.appendChild(d);d=document.createElement("tr");h=document.createElement("td");+d.appendChild(h);h=document.createElement("td");var k=document.createElement("button");k.className="geBtn";k.style.margin="0px";mxUtils.write(k,mxResources.get("change")+"...");var u=document.createElement("div");u.style.display="inline-block";u.style.verticalAlign="middle";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="contain";u.style.border="1px solid lightGray";u.style.borderRadius="4px";u.style.marginRight="14px";u.style.height="32px";+u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var w=f.backgroundImage,y=f.background,C=f.shadowVisible,D=function(E){a.showBackgroundImageDialog(function(G,J,M,Q){J||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=Q);y=M;b()},w,y,!0);mxEvent.consume(E)};mxEvent.addListener(k,"click",D);mxEvent.addListener(u,"click",D);b();h.appendChild(u);h.appendChild(k);d.appendChild(h);g.appendChild(d);d=document.createElement("tr");h=document.createElement("td");h.colSpan=2;h.style.paddingTop="16px";h.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";a.editor.cancelFirst&&h.appendChild(k);D=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var E=parseInt(p.value);isNaN(E)||f.gridSize===E||f.setGridSize(E);E=new ChangePageSetup(a,y,w,m.get());E.ignoreColor=f.background==y;E.ignoreImage=(null!=f.backgroundImage?f.backgroundImage.src:null)===(null!=w?w.src:null);null!=C&&(E.shadowVisible=C);f.pageFormat.width==E.previousFormat.width&&f.pageFormat.height==E.previousFormat.height&&E.ignoreColor&&E.ignoreImage&&E.shadowVisible==f.shadowVisible||f.model.execute(E)});D.className="geBtn gePrimaryBtn";h.appendChild(D);a.editor.cancelFirst||h.appendChild(k);d.appendChild(h);g.appendChild(d);e.appendChild(g);this.container=e};PageSetupDialog.addPageFormatPanel=function(a,b,f,e){b="format-"+b;var g=document.createElement("input");g.setAttribute("name",b);g.setAttribute("type","radio");g.setAttribute("value","portrait");var d=document.createElement("input");d.setAttribute("name",b);d.setAttribute("type","radio");d.setAttribute("value","landscape");var h=document.createElement("select");h.style.position="relative";h.style.marginBottom="4px";h.style.borderRadius="4px";h.style.borderWidth="1px";h.style.borderStyle="solid";h.style.boxSizing="border-box";h.style.padding="2px";h.style.width="210px";var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.marginLeft="4px";m.style.width="210px";m.style.height="24px";g.style.marginRight="6px";m.appendChild(g);b=document.createElement("span");b.style.maxWidth="100px";mxUtils.write(b,mxResources.get("portrait"));m.appendChild(b);d.style.marginLeft="10px";d.style.marginRight="6px";m.appendChild(d);var p=document.createElement("span");p.style.width="100px";mxUtils.write(p,-mxResources.get("landscape"));m.appendChild(p);var k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.marginLeft="4px";k.style.fontSize="12px";k.style.width="210px";k.style.height="24px";var v=document.createElement("input");v.setAttribute("size","7");v.setAttribute("title",mxResources.get("width"));v.style.textAlign="right";k.appendChild(v);mxUtils.write(k," x ");var w=document.createElement("input");w.setAttribute("size","7");w.setAttribute("title",mxResources.get("height"));w.style.textAlign=+mxResources.get("landscape"));m.appendChild(p);var k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.marginLeft="4px";k.style.fontSize="12px";k.style.width="210px";k.style.height="24px";var u=document.createElement("input");u.setAttribute("size","7");u.setAttribute("title",mxResources.get("width"));u.style.textAlign="right";k.appendChild(u);mxUtils.write(k," x ");var w=document.createElement("input");w.setAttribute("size","7");w.setAttribute("title",mxResources.get("height"));w.style.textAlign="right";k.appendChild(w);var y=document.createElement("select");y.style.marginLeft="4px";y.style.maxWidth="78px";y.style.width="78px";for(var C=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],D=0;D<C.length;D++){var E=document.createElement("option");E.setAttribute("value",C[D].unit);mxUtils.write(E,C[D].label);y.appendChild(E)}y.value=Editor.pageSizeUnit;k.appendChild(y);-m.style.display="none";k.style.display="none";var G={},J=PageSetupDialog.getFormats();for(D=0;D<J.length;D++)C=J[D],G[C.key]=C,E=document.createElement("option"),E.setAttribute("value",C.key),mxUtils.write(E,C.title),h.appendChild(E);var M=function(){h.value="custom";for(var L=0;L<J.length;L++){var W=J[L];null!=W.format&&("a4"==W.key?826==f.width?(f=mxRectangle.fromRectangle(f),f.width=827):826==f.height&&(f=mxRectangle.fromRectangle(f),f.height=827):"a5"==W.key&&(584==f.width?(f=mxRectangle.fromRectangle(f),+m.style.display="none";k.style.display="none";var G={},J=PageSetupDialog.getFormats();for(D=0;D<J.length;D++)C=J[D],G[C.key]=C,E=document.createElement("option"),E.setAttribute("value",C.key),mxUtils.write(E,C.title),h.appendChild(E);var M=function(){h.value="custom";for(var K=0;K<J.length;K++){var W=J[K];null!=W.format&&("a4"==W.key?826==f.width?(f=mxRectangle.fromRectangle(f),f.width=827):826==f.height&&(f=mxRectangle.fromRectangle(f),f.height=827):"a5"==W.key&&(584==f.width?(f=mxRectangle.fromRectangle(f),f.width=583):584==f.height&&(f=mxRectangle.fromRectangle(f),f.height=583)),f.width==W.format.width&&f.height==W.format.height?(h.value=W.key,g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0,d.removeAttribute("checked"),d.defaultChecked=!1,d.checked=!1,detected=!0):f.width==W.format.height&&f.height==W.format.width&&(h.value=W.key,g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1,d.setAttribute("checked","checked"),d.defaultChecked=!0,detected=d.checked=!0))}"custom"==-h.value?(v.value=Editor.toUnit(f.width,y.value),w.value=Editor.toUnit(f.height,y.value),g.setAttribute("checked","checked"),h.value="custom",m.style.display="none",k.style.display=""):(m.style.display="",k.style.display="none")};M();a.appendChild(h);mxUtils.br(a);a.appendChild(m);a.appendChild(k);var Q=function(L,W){L=G[h.value];null!=L.format?(v.value=Editor.toUnit(d.checked?L.format.height:L.format.width,y.value),w.value=Editor.toUnit(d.checked?L.format.width:L.format.height,y.value),k.style.display=-"none",m.style.display=""):(m.style.display="none",k.style.display="");L=parseFloat(v.value);if(isNaN(L)||0>=L)v.value=Editor.toUnit(f.width,y.value);L=parseFloat(w.value);if(isNaN(L)||0>=L)w.value=Editor.toUnit(f.height,y.value);L=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(v.value),y.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),y.value)));W||L.width==f.width&&L.height==f.height||(f=L,null!=e&&e(f))};mxEvent.addListener(b,"click",function(L){g.checked=!0;Q(L);mxEvent.consume(L)});-mxEvent.addListener(p,"click",function(L){d.checked=!0;Q(L);mxEvent.consume(L)});mxEvent.addListener(v,"blur",Q);mxEvent.addListener(v,"click",Q);mxEvent.addListener(w,"blur",Q);mxEvent.addListener(w,"click",Q);mxEvent.addListener(d,"change",Q);mxEvent.addListener(g,"change",Q);mxEvent.addListener(h,"change",function(L){Q(L,"custom"==h.value);mxEvent.consume(L)});mxEvent.addListener(y,"change",function(L){v.value=Editor.toUnit(Editor.fromUnit(v.value,Editor.pageSizeUnit),y.value);w.value=Editor.toUnit(Editor.fromUnit(w.value,-Editor.pageSizeUnit),y.value);Editor.pageSizeUnit=y.value;Q(L,!0);mxEvent.consume(L)});Q(null,!0);return{set:function(L){f=L;M(null,null,!0)},get:function(){return f},widthInput:v,heightInput:w}};+h.value?(u.value=Editor.toUnit(f.width,y.value),w.value=Editor.toUnit(f.height,y.value),g.setAttribute("checked","checked"),h.value="custom",m.style.display="none",k.style.display=""):(m.style.display="",k.style.display="none")};M();a.appendChild(h);mxUtils.br(a);a.appendChild(m);a.appendChild(k);var Q=function(K,W){K=G[h.value];null!=K.format?(u.value=Editor.toUnit(d.checked?K.format.height:K.format.width,y.value),w.value=Editor.toUnit(d.checked?K.format.width:K.format.height,y.value),k.style.display=+"none",m.style.display=""):(m.style.display="none",k.style.display="");K=parseFloat(u.value);if(isNaN(K)||0>=K)u.value=Editor.toUnit(f.width,y.value);K=parseFloat(w.value);if(isNaN(K)||0>=K)w.value=Editor.toUnit(f.height,y.value);K=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(u.value),y.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),y.value)));W||K.width==f.width&&K.height==f.height||(f=K,null!=e&&e(f))};mxEvent.addListener(b,"click",function(K){g.checked=!0;Q(K);mxEvent.consume(K)});+mxEvent.addListener(p,"click",function(K){d.checked=!0;Q(K);mxEvent.consume(K)});mxEvent.addListener(u,"blur",Q);mxEvent.addListener(u,"click",Q);mxEvent.addListener(w,"blur",Q);mxEvent.addListener(w,"click",Q);mxEvent.addListener(d,"change",Q);mxEvent.addListener(g,"change",Q);mxEvent.addListener(h,"change",function(K){Q(K,"custom"==h.value);mxEvent.consume(K)});mxEvent.addListener(y,"change",function(K){u.value=Editor.toUnit(Editor.fromUnit(u.value,Editor.pageSizeUnit),y.value);w.value=Editor.toUnit(Editor.fromUnit(w.value,+Editor.pageSizeUnit),y.value);Editor.pageSizeUnit=y.value;Q(K,!0);mxEvent.consume(K)});Q(null,!0);return{set:function(K){f=K;M(null,null,!0)},get:function(){return f},widthInput:u,heightInput:w}};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(a,b,f,e,g,d,h,m,p,k,v){p=null!=p?p:!0;var w=document.createElement("div"),y=document.createElement("div");y.style.width="100%";y.style.display="grid";y.style.gap="5px 8px";y.style.gridAutoColumns="auto 1fr";y.style.boxSizing="border-box";y.style.padding="3px";var C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.justifyContent="flex-end";C.style.minWidth="0";var D=document.createElement("div");D.style.display="inline-block";+var FilenameDialog=function(a,b,f,e,g,d,h,m,p,k,u){p=null!=p?p:!0;var w=document.createElement("div"),y=document.createElement("div");y.style.width="100%";y.style.display="grid";y.style.gap="5px 8px";y.style.gridAutoColumns="auto 1fr";y.style.boxSizing="border-box";y.style.padding="3px";var C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.justifyContent="flex-end";C.style.minWidth="0";var D=document.createElement("div");D.style.display="inline-block";D.style.textOverflow="ellipsis";D.style.whiteSpace="nowrap";D.style.overflow="hidden";D.style.fontSize="10pt";D.style.padding="2px 0";D.setAttribute("title",g||mxResources.get("filename"));mxUtils.write(D,(g||mxResources.get("filename"))+":");C.appendChild(D);y.appendChild(C);var E=document.createElement("input");E.setAttribute("value",b||"");E.style.flexGrow="1";var G=mxUtils.button(f,function(){if(null==d||d(E.value))p&&a.hideDialog(),e(E.value)});G.className="geBtn gePrimaryBtn";this.init=function(){if(null!=-g||null==h)if(null!=v?Editor.selectFilename(E):(E.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?E.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var J=y.parentNode;if(null!=J){var M=null;mxEvent.addListener(J,"dragleave",function(Q){null!=M&&(M.style.backgroundColor="",M=null);Q.stopPropagation();Q.preventDefault()});mxEvent.addListener(J,"dragover",mxUtils.bind(this,function(Q){null==M&&(!mxClient.IS_IE||10<document.documentMode)&&(M=E,M.style.backgroundColor=+g||null==h)if(null!=u?Editor.selectFilename(E):(E.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?E.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var J=y.parentNode;if(null!=J){var M=null;mxEvent.addListener(J,"dragleave",function(Q){null!=M&&(M.style.backgroundColor="",M=null);Q.stopPropagation();Q.preventDefault()});mxEvent.addListener(J,"dragover",mxUtils.bind(this,function(Q){null==M&&(!mxClient.IS_IE||10<document.documentMode)&&(M=E,M.style.backgroundColor="#ebf2f9");Q.stopPropagation();Q.preventDefault()}));mxEvent.addListener(J,"drop",mxUtils.bind(this,function(Q){null!=M&&(M.style.backgroundColor="",M=null);0<=mxUtils.indexOf(Q.dataTransfer.types,"text/uri-list")&&(E.value=decodeURIComponent(Q.dataTransfer.getData("text/uri-list")),G.click());Q.stopPropagation();Q.preventDefault()}))}}};C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.gap="4px";C.style.whiteSpace="nowrap";C.appendChild(E);y.appendChild(C);-null==g&&null!=h||null==v||null==a.editor.diagramFileTypes||(C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.textOverflow="ellipsis",C.style.justifyContent="flex-end",C.style.fontSize="10pt",mxUtils.write(C,mxResources.get("type")+":"),y.appendChild(C),C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.whiteSpace="nowrap",y.appendChild(C),b=FilenameDialog.createFileTypes(a,E,a.editor.diagramFileTypes),-b.style.width="100%",C.appendChild(b));null!=h&&y.appendChild(h);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=v?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");C=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=k&&k()});C.className="geBtn";null==m||a.isOffline()||row.appendChild(a.createHelpIcon(m));+null==g&&null!=h||null==u||null==a.editor.diagramFileTypes||(C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.textOverflow="ellipsis",C.style.justifyContent="flex-end",C.style.fontSize="10pt",mxUtils.write(C,mxResources.get("type")+":"),y.appendChild(C),C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.whiteSpace="nowrap",y.appendChild(C),b=FilenameDialog.createFileTypes(a,E,a.editor.diagramFileTypes),+b.style.width="100%",C.appendChild(b));null!=h&&y.appendChild(h);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=u?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");C=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=k&&k()});C.className="geBtn";null==m||a.isOffline()||row.appendChild(a.createHelpIcon(m));a.editor.cancelFirst&&row.appendChild(C);mxEvent.addListener(E,"keypress",function(J){13==J.keyCode&&G.click()});row.appendChild(G);a.editor.cancelFirst||row.appendChild(C);y.appendChild(row);w.appendChild(y);this.container=w};FilenameDialog.filenameHelpLink=null;FilenameDialog.createFileTypes=function(a,b,f){var e=document.createElement("select");for(a=0;a<f.length;a++){var g=document.createElement("option");g.setAttribute("value",a);mxUtils.write(g,mxResources.get(f[a].description)+" (."+f[a].extension+")");e.appendChild(g)}mxEvent.addListener(e,"change",function(d){d=f[e.value].extension;var h=b.value.lastIndexOf(".drawio.");h=0<h?h:b.value.lastIndexOf(".");"drawio"!=d&&(d="drawio."+d);b.value=0<h?b.value.substring(0,h+1)+d:b.value+"."+d;"createEvent"indocument?(d=document.createEvent("HTMLEvents"),d.initEvent("change",!1,!0),b.dispatchEvent(d)):b.fireEvent("onchange")});a=function(d){d=b.value.toLowerCase();for(var h=0,m=0;m<f.length;m++){var p=f[m].extension,k=null;"drawio"!=p&&(k=p,p=".drawio."+p);if(d.substring(d.length-p.length-1)=="."+p||null!=k&&d.substring(d.length-k.length-1)=="."+k){h=m;break}}e.value=h};mxEvent.addListener(b,"change",a);mxEvent.addListener(b,"keyup",a);a();return e};@@ -2069,21 +2070,21 @@ var WrapperWindow=function(a,b,f,e,g,d,h,m){m=null!=m?m:document.createElement("(function(){mxGraphView.prototype.validateBackgroundPage=function(){var h=this.graph;if(null!=h.container&&!h.transparentBackground){if(h.pageVisible){var m=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var p=h.container.firstChild;null!=p&&p.nodeType!=mxConstants.NODETYPE_ELEMENT;)p=p.nextSibling;null!=p&&(this.backgroundPageShape=this.createBackgroundPageShape(m),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,this.backgroundPageShape.init(h.container),p.style.position="absolute",h.container.insertBefore(this.backgroundPageShape.node,p),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(k){h.dblClick(k)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(k){h.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){null!=h.tooltipHandler&&h.tooltipHandler.isHideOnHover()&&h.tooltipHandler.hide();h.isMouseDown&&!mxEvent.isConsumed(k)&&h.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){h.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(k))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=m,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};-mxGraphView.prototype.validateBackgroundStyles=function(h,m,p){var k=this.graph;h=null!=h?h:1;var v=mxUtils.getLightDarkColor(null==k.background||k.background==mxConstants.NONE?k.defaultPageBackgroundColor:k.background).cssText,w=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,y=null!=v&&this.gridColor!=v.toLowerCase()?this.gridColor:"#ffffff",C="none",D="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(v=k.background);if(k.isGridEnabled()||k.gridVisible){D=+mxGraphView.prototype.validateBackgroundStyles=function(h,m,p){var k=this.graph;h=null!=h?h:1;var u=mxUtils.getLightDarkColor(null==k.background||k.background==mxConstants.NONE?k.defaultPageBackgroundColor:k.background).cssText,w=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,y=null!=u&&this.gridColor!=u.toLowerCase()?this.gridColor:"#ffffff",C="none",D="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(u=k.background);if(k.isGridEnabled()||k.gridVisible){D=10;mxClient.IS_SVG?(C=unescape(encodeURIComponent(this.createSvgGrid(y,h))),C=window.btoa?btoa(C):Base64.encode(C,!0),C="url(data:image/svg+xml;base64,"+C+")",D=k.gridSize*this.scale*this.gridSteps*h):C="url("+this.gridImage+")";var E=y=0;m=null!=m?m-this.translate.x*this.scale:0;p=null!=p?p-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,J=m%G;G=p%G;null!=k.view.backgroundPageShape&&(E=this.getBackgroundPageBounds(),y=1+E.x,E=1+E.y);D=-Math.round(D-mxUtils.mod(this.translate.x*-this.scale-y+m,D)+J*h)+"px "+-Math.round(D-mxUtils.mod(this.translate.y*this.scale-E+p,D)+G*h)+"px"}h=k.view.canvas;null!=h.ownerSVGElement&&(h=h.ownerSVGElement);y=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=D,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=v,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme=-"none"==k.getAdaptiveColors()?"light":"",h.style.backgroundImage="none",h.style.backgroundColor="",k.container.style.backgroundColor=y?k.diagramBackgroundColor:""):(h.style.backgroundPosition=D,h.style.backgroundImage=C,"1"==urlParams.transparent?k.container.style.background="transparent":!y||null!=k.background&&k.background!=mxConstants.NONE?h.style.backgroundColor=v:(h.style.backgroundColor=k.diagramBackgroundColor,k.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(h,-m){for(var p=this.graph.gridSize*this.scale*(null!=m?m:1);p<this.minGridSize;)p*=2;m=this.gridSteps*p;for(var k=[],v=1;v<this.gridSteps;v++){var w=v*p;k.push("M 0 "+w+" L "+m+" "+w+" M "+w+" 0 L "+w+" "+m)}h=mxUtils.getLightDarkColor(h);p="color-scheme: light dark;";mxClient.IS_SF&&(p="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+p+'" width="'+m+'" height="'+m+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'++this.scale-y+m,D)+J*h)+"px "+-Math.round(D-mxUtils.mod(this.translate.y*this.scale-E+p,D)+G*h)+"px"}h=k.view.canvas;null!=h.ownerSVGElement&&(h=h.ownerSVGElement);y=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=D,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=u,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme=+"none"==k.getAdaptiveColors()?"light":"",h.style.backgroundImage="none",h.style.backgroundColor="",k.container.style.backgroundColor=y?k.diagramBackgroundColor:""):(h.style.backgroundPosition=D,h.style.backgroundImage=C,"1"==urlParams.transparent?k.container.style.background="transparent":!y||null!=k.background&&k.background!=mxConstants.NONE?h.style.backgroundColor=u:(h.style.backgroundColor=k.diagramBackgroundColor,k.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(h,+m){for(var p=this.graph.gridSize*this.scale*(null!=m?m:1);p<this.minGridSize;)p*=2;m=this.gridSteps*p;for(var k=[],u=1;u<this.gridSteps;u++){var w=u*p;k.push("M 0 "+w+" L "+m+" "+w+" M "+w+" 0 L "+w+" "+m)}h=mxUtils.getLightDarkColor(h);p="color-scheme: light dark;";mxClient.IS_SF&&(p="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+p+'" width="'+m+'" height="'+m+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+m+'" height="'+m+'" patternUnits="userSpaceOnUse"><path d="'+k.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(h.cssText)+';" stroke="'+h.light+'" opacity="0.2" stroke-width="1"/><path d="M '+m+" 0 L 0 0 0 "+m+'" fill="none" style="stroke:'+mxUtils.htmlEntities(h.cssText)+';" stroke="'+h.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var a=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(h,m){a.apply(this,arguments);-if(null!=this.shiftPreview1){var p=this.view.canvas;null!=p.ownerSVGElement&&(p=p.ownerSVGElement);var k=this.gridSize*this.view.scale*this.view.gridSteps;k=-Math.round(k-mxUtils.mod(this.view.translate.x*this.view.scale+h,k))+"px "+-Math.round(k-mxUtils.mod(this.view.translate.y*this.view.scale+m,k))+"px";p.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(h,m,p){var k=this.view.scale,v=this.view.translate,w=this.pageFormat,y=k*this.pageScale,C=this.view.getBackgroundPageBounds();-m=C.width;p=C.height;var D=new mxRectangle(k*v.x,k*v.y,w.width*y,w.height*y),E=(h=h&&Math.min(D.width,D.height)>this.minPageBreakDist)?Math.ceil(p/D.height)-1:0,G=h?Math.ceil(m/D.width)-1:0,J=C.x+m,M=C.y+p;null==this.horizontalPageBreaks&&0<E&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);h=mxUtils.bind(this,function(Q){if(null!=Q){for(var L=Q==this.horizontalPageBreaks?E:G,W=0;W<=L;W++){var X=Q==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),-Math.round(C.y+(W+1)*D.height)),new mxPoint(Math.round(J),Math.round(C.y+(W+1)*D.height))]:[new mxPoint(Math.round(C.x+(W+1)*D.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(W+1)*D.width),Math.round(M))];null!=Q[W]?(Q[W].points=X,Q[W].redraw()):(X=new mxPolyline(X,this.pageBreakColor),X.dialect=this.dialect,X.isDashed=this.pageBreakDashed,X.pointerEvents=!1,X.init(this.view.backgroundPane),X.redraw(),Q[W]=X)}for(W=L;W<Q.length;W++)null!=Q[W]&&Q[W].destroy();Q.splice(L,Q.length-L)}});h(this.horizontalPageBreaks);-h(this.verticalPageBreaks)};var b=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(h,m,p){for(var k=0;k<m.length;k++){if(this.graph.isTableCell(m[k])||this.graph.isTableRow(m[k]))return!1;if(this.graph.getModel().isVertex(m[k])){var v=this.graph.getCellGeometry(m[k]);if(null!=v&&v.relative)return!1}}return b.apply(this,arguments)};var f=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var h=+if(null!=this.shiftPreview1){var p=this.view.canvas;null!=p.ownerSVGElement&&(p=p.ownerSVGElement);var k=this.gridSize*this.view.scale*this.view.gridSteps;k=-Math.round(k-mxUtils.mod(this.view.translate.x*this.view.scale+h,k))+"px "+-Math.round(k-mxUtils.mod(this.view.translate.y*this.view.scale+m,k))+"px";p.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(h,m,p){var k=this.view.scale,u=this.view.translate,w=this.pageFormat,y=k*this.pageScale,C=this.view.getBackgroundPageBounds();+m=C.width;p=C.height;var D=new mxRectangle(k*u.x,k*u.y,w.width*y,w.height*y),E=(h=h&&Math.min(D.width,D.height)>this.minPageBreakDist)?Math.ceil(p/D.height)-1:0,G=h?Math.ceil(m/D.width)-1:0,J=C.x+m,M=C.y+p;null==this.horizontalPageBreaks&&0<E&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);h=mxUtils.bind(this,function(Q){if(null!=Q){for(var K=Q==this.horizontalPageBreaks?E:G,W=0;W<=K;W++){var X=Q==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),+Math.round(C.y+(W+1)*D.height)),new mxPoint(Math.round(J),Math.round(C.y+(W+1)*D.height))]:[new mxPoint(Math.round(C.x+(W+1)*D.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(W+1)*D.width),Math.round(M))];null!=Q[W]?(Q[W].points=X,Q[W].redraw()):(X=new mxPolyline(X,this.pageBreakColor),X.dialect=this.dialect,X.isDashed=this.pageBreakDashed,X.pointerEvents=!1,X.init(this.view.backgroundPane),X.redraw(),Q[W]=X)}for(W=K;W<Q.length;W++)null!=Q[W]&&Q[W].destroy();Q.splice(K,Q.length-K)}});h(this.horizontalPageBreaks);+h(this.verticalPageBreaks)};var b=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(h,m,p){for(var k=0;k<m.length;k++){if(this.graph.isTableCell(m[k])||this.graph.isTableRow(m[k]))return!1;if(this.graph.getModel().isVertex(m[k])){var u=this.graph.getCellGeometry(m[k]);if(null!=u&&u.relative)return!1}}return b.apply(this,arguments)};var f=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var h=f.apply(this,arguments);h.intersects=mxUtils.bind(this,function(m,p){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(h,arguments)});return h};mxGraphView.prototype.createBackgroundPageShape=function(h){return new mxRectangleShape(h,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var h=this.getGraphBounds(),m=0<h.width?h.x/this.scale-this.translate.x:0,p=0<h.height?h.y/this.scale-this.translate.y:0,k=this.graph.pageFormat,-v=this.graph.pageScale,w=k.width*v;k=k.height*v;v=Math.floor(Math.min(0,m)/w);var y=Math.floor(Math.min(0,p)/k);return new mxRectangle(this.scale*(this.translate.x+v*w),this.scale*(this.translate.y+y*k),this.scale*(Math.ceil(Math.max(1,m+h.width/this.scale)/w)-v)*w,this.scale*(Math.ceil(Math.max(1,p+h.height/this.scale)/k)-y)*k)};var e=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(h,m){e.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||-this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=h+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var g=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(h,m,p,k,v,w){var y=g.apply(this,arguments);null==w||w||mxEvent.addListener(y,"mousedown",function(C){mxEvent.consume(C)});return y};var d=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=-function(h,m,p){var k=this.graph.model.getParent(h);if(m){var v=this.graph.model.isEdge(h)?null:this.graph.getCellGeometry(h);v=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(h)&&(null!=v&&v.relative||!this.graph.isContainer(k)||this.graph.isPart(h))}else if(v=d.apply(this,arguments),this.graph.isTableCell(h)||this.graph.isTableRow(h))v=k,this.graph.isTable(v)||(v=this.graph.model.getParent(v)),v=!this.graph.selectionCellsHandler.isHandled(v)||this.graph.isCellSelected(v)&&this.graph.isToggleEvent(p.getEvent())||-this.graph.isCellSelected(h)&&!this.graph.isToggleEvent(p.getEvent())||this.graph.isTableCell(h)&&this.graph.isCellSelected(k);return v};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(h){h=h.getCell();for(var m=this.graph.getModel(),p=m.getParent(h),k=this.graph.view.getState(p),v=this.graph.isCellSelected(h);null!=k&&(m.isVertex(p)||m.isEdge(p));){var w=this.graph.isCellSelected(p);v=v||w;if(w||!v&&(this.graph.isTableCell(h)||this.graph.isTableRow(h)))h=p;p=m.getParent(p)}return h}})();EditorUi=function(a,b,f){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var e=this,g=this.editor.graph;g.lightbox=f;var d=g.getGraphBounds;g.getGraphBounds=function(){var H=d.apply(this,arguments),S=this.backgroundImage;if(null!=S&&null!=S.width&&null!=S.height){var ea=this.view.translate,la=this.view.scale;H=mxRectangle.fromRectangle(H);H.add(new mxRectangle((ea.x+S.x)*la,(ea.y+S.y)*la,S.width*la,S.height*la))}return H};g.useCssTransforms&&+u=this.graph.pageScale,w=k.width*u;k=k.height*u;u=Math.floor(Math.min(0,m)/w);var y=Math.floor(Math.min(0,p)/k);return new mxRectangle(this.scale*(this.translate.x+u*w),this.scale*(this.translate.y+y*k),this.scale*(Math.ceil(Math.max(1,m+h.width/this.scale)/w)-u)*w,this.scale*(Math.ceil(Math.max(1,p+h.height/this.scale)/k)-y)*k)};var e=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(h,m){e.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||+this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=h+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var g=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(h,m,p,k,u,w){var y=g.apply(this,arguments);null==w||w||mxEvent.addListener(y,"mousedown",function(C){mxEvent.consume(C)});return y};var d=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=+function(h,m,p){var k=this.graph.model.getParent(h);if(m){var u=this.graph.model.isEdge(h)?null:this.graph.getCellGeometry(h);u=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(h)&&(null!=u&&u.relative||!this.graph.isContainer(k)||this.graph.isPart(h))}else if(u=d.apply(this,arguments),this.graph.isTableCell(h)||this.graph.isTableRow(h))u=k,this.graph.isTable(u)||(u=this.graph.model.getParent(u)),u=!this.graph.selectionCellsHandler.isHandled(u)||this.graph.isCellSelected(u)&&this.graph.isToggleEvent(p.getEvent())||+this.graph.isCellSelected(h)&&!this.graph.isToggleEvent(p.getEvent())||this.graph.isTableCell(h)&&this.graph.isCellSelected(k);return u};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(h){h=h.getCell();for(var m=this.graph.getModel(),p=m.getParent(h),k=this.graph.view.getState(p),u=this.graph.isCellSelected(h);null!=k&&(m.isVertex(p)||m.isEdge(p));){var w=this.graph.isCellSelected(p);u=u||w;if(w||!u&&(this.graph.isTableCell(h)||this.graph.isTableRow(h)))h=p;p=m.getParent(p)}return h}})();EditorUi=function(a,b,f){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var e=this,g=this.editor.graph;g.lightbox=f;var d=g.getGraphBounds;g.getGraphBounds=function(){var H=d.apply(this,arguments),S=this.backgroundImage;if(null!=S&&null!=S.width&&null!=S.height){var ea=this.view.translate,la=this.view.scale;H=mxRectangle.fromRectangle(H);H.add(new mxRectangle((ea.x+S.x)*la,(ea.y+S.y)*la,S.width*la,S.height*la))}return H};g.useCssTransforms&&(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(H,S){this.clearSelectionState()});g.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);g.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);g.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);g.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);g.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){g.isEnabled=function(){return!1};g.panningHandler.isForcePanningEvent=function(H){for(var S=H.getSource();null!=S&&S!=g.container;){if("foreignObject"===S.nodeName||"text"===S.nodeName)return!1;S=S.parentNode}return!mxEvent.isPopupTrigger(H.getEvent())};var h=g.panningHandler.start;g.panningHandler.start=function(){h.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!g.standalone){var m=!1,p=!1;this.setDefaultStyle=function(H){try{g.getModel().isEdge(H)?p=g.pasteEdgeStyle=!1:m=!1;var S=g.getCellStyle(H,!1),ea=[],la=[],O;for(O in S)ea.push(S[O]),la.push(O);g.getModel().isEdge(H)?g.currentEdgeStyle={}:g.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",ea,"cells",[H],"force",!0));g.getModel().isEdge(H)?p=g.pasteEdgeStyle=!0:m=!0}catch(V){this.handleError(V)}};this.clearDefaultStyle=function(){g.currentEdgeStyle=mxUtils.clone(g.defaultEdgeStyle);g.currentVertexStyle=mxUtils.clone(g.defaultVertexStyle);m=p=g.pasteEdgeStyle=@@ -2091,14 +2092,14 @@ p=g.pasteEdgeStyle=!1:m=!1;var S=g.getCellStyle(H,!1),ea=[],la=[],O;for(O in S)e!this.editor.editable||(this.menubarContainer.onselectstart=k,this.menubarContainer.onmousedown=k,this.toolbarContainer.onselectstart=k,this.toolbarContainer.onmousedown=k,this.diagramContainer.onselectstart=k,this.diagramContainer.onmousedown=k,this.sidebarContainer.onselectstart=k,this.sidebarContainer.onmousedown=k,this.formatContainer.onselectstart=k,this.formatContainer.onmousedown=k,null!=this.tabContainer&&(this.tabContainer.onselectstart=k),mxClient.IS_IOS&&(b=function(){var H=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var S=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{H=[parseInt(S[1],10),parseInt(S[2],10),parseInt(S[3]||0,10)]}catch(ea){}}return H}(),null!=b&&16<=b[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?(b=function(H){if(null!=H){var S=mxEvent.getSource(H);if("A"==S.nodeName)for(;null!=S;){if("geHint"==S.className)return!0;S=S.parentNode}}return k(H)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,"contextmenu",b):this.diagramContainer.oncontextmenu=b):g.panningHandler.usePopupTrigger=!1;g.init(this.diagramContainer);mxClient.IS_SVG&&null!=g.view.getDrawPane()&&-(b=g.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=g.graphHandler){var v=g.graphHandler.start;g.graphHandler.start=function(){null!=e.hoverIcons&&e.hoverIcons.reset();v.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(H){var S=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(H)-S.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(H)-S.y-this.diagramContainer.clientHeight?+(b=g.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=g.graphHandler){var u=g.graphHandler.start;g.graphHandler.start=function(){null!=e.hoverIcons&&e.hoverIcons.reset();u.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(H){var S=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(H)-S.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(H)-S.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var w=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(H,S){return e.isSpaceDown()||w.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(H){16==H.which?this.shiftDown=!0:32!=H.which||g.isEditing()?mxEvent.isConsumed(H)||27!=H.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),g.container.style.cursor="move",g.isEditing()||mxEvent.getSource(H)!=g.container||mxEvent.consume(H))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(H){g.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var y=g.panningHandler.isForcePanningEvent;g.panningHandler.isForcePanningEvent=function(H){return y.apply(this,arguments)||e.isSpaceDown()||mxEvent.isMouseEvent(H.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(H.getEvent()))&&(!mxEvent.isControlDown(H.getEvent())&&mxEvent.isRightMouseButton(H.getEvent())||mxEvent.isMiddleMouseButton(H.getEvent()))};var C=g.cellEditor.isStopEditingEvent;g.cellEditor.isStopEditingEvent=function(H){return C.apply(this,arguments)||13==H.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(H)||mxClient.IS_MAC&&mxEvent.isMetaDown(H)||mxClient.IS_SF&&mxEvent.isShiftDown(H))};var D=g.isZoomWheelEvent;g.isZoomWheelEvent=function(){return e.isSpaceDown()||D.apply(this,arguments)};var E=mxUtils.bind(this,-function(){if(null!=this.toolbar)for(var H=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,S=this.toolbar.container.firstChild;null!=S;){var ea=S.getAttribute("data-min-width");null!=ea&&parseInt(ea)>H?S.style.display="none":S.style.display="";S=S.nextSibling}}),G=!1,J=null,M=null,Q=null,L=mxUtils.bind(this,function(){if(null!=this.toolbar&&G!=g.cellEditor.isContentEditing()){for(var H=this.toolbar.container.firstChild,S=[];null!=H;){var ea=H.nextSibling;H.parentNode.removeChild(H);-S.push(H);H=ea}H=this.toolbar.fontMenu;ea=this.toolbar.sizeMenu;if(null==Q)this.toolbar.createTextToolbar();else{for(var la=0;la<Q.length;la++)this.toolbar.container.appendChild(Q[la]);this.toolbar.fontMenu=J;this.toolbar.sizeMenu=M}G=g.cellEditor.isContentEditing();J=H;M=ea;Q=S;E()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();L()}));this.addListener("currentThemeChanged",E);mxEvent.addListener(window,-"resize",E);E();g.isTouchPopupMenuEnabled=function(){return null==e.dialog};var W=g.cellEditor.startEditing;g.cellEditor.startEditing=function(){W.apply(this,arguments);L();if(g.cellEditor.isContentEditing()){var H=!1,S=function(){H||(H=!0,window.setTimeout(function(){var ea=g.getSelectedEditingElement();null!=ea&&(ea=mxUtils.getCurrentStyle(ea),null!=ea&&null!=e.toolbar&&(e.toolbar.setFontName(mxUtils.getCssFontFamily(ea.fontFamily)),e.toolbar.setFontSize(parseInt(ea.fontSize))));H=!1},0))};mxEvent.addListener(g.cellEditor.textarea,-"input",S);mxEvent.addListener(g.cellEditor.textarea,"touchend",S);mxEvent.addListener(g.cellEditor.textarea,"mouseup",S);mxEvent.addListener(g.cellEditor.textarea,"keyup",S);S()}};var X=g.cellEditor.stopEditing;g.cellEditor.stopEditing=function(H,S){try{X.apply(this,arguments),L()}catch(ea){e.handleError(ea)}};g.container.setAttribute("tabindex","0");g.container.style.cursor="default";if(window.self===window.top&&null!=g.container.parentNode)try{g.container.focus()}catch(H){}var T=g.fireMouseEvent;+function(){if(null!=this.toolbar)for(var H=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,S=this.toolbar.container.firstChild;null!=S;){var ea=S.getAttribute("data-min-width");null!=ea&&parseInt(ea)>H?S.style.display="none":S.style.display="";S=S.nextSibling}}),G=!1,J=null,M=null,Q=null,K=mxUtils.bind(this,function(){if(null!=this.toolbar&&G!=g.cellEditor.isContentEditing()){for(var H=this.toolbar.container.firstChild,S=[];null!=H;){var ea=H.nextSibling;H.parentNode.removeChild(H);+S.push(H);H=ea}H=this.toolbar.fontMenu;ea=this.toolbar.sizeMenu;if(null==Q)this.toolbar.createTextToolbar();else{for(var la=0;la<Q.length;la++)this.toolbar.container.appendChild(Q[la]);this.toolbar.fontMenu=J;this.toolbar.sizeMenu=M}G=g.cellEditor.isContentEditing();J=H;M=ea;Q=S;E()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();K()}));this.addListener("currentThemeChanged",E);mxEvent.addListener(window,+"resize",E);E();g.isTouchPopupMenuEnabled=function(){return null==e.dialog};var W=g.cellEditor.startEditing;g.cellEditor.startEditing=function(){W.apply(this,arguments);K();if(g.cellEditor.isContentEditing()){var H=!1,S=function(){H||(H=!0,window.setTimeout(function(){var ea=g.getSelectedEditingElement();null!=ea&&(ea=mxUtils.getCurrentStyle(ea),null!=ea&&null!=e.toolbar&&(e.toolbar.setFontName(mxUtils.getCssFontFamily(ea.fontFamily)),e.toolbar.setFontSize(parseInt(ea.fontSize))));H=!1},0))};mxEvent.addListener(g.cellEditor.textarea,+"input",S);mxEvent.addListener(g.cellEditor.textarea,"touchend",S);mxEvent.addListener(g.cellEditor.textarea,"mouseup",S);mxEvent.addListener(g.cellEditor.textarea,"keyup",S);S()}};var X=g.cellEditor.stopEditing;g.cellEditor.stopEditing=function(H,S){try{X.apply(this,arguments),K()}catch(ea){e.handleError(ea)}};g.container.setAttribute("tabindex","0");g.container.style.cursor="default";if(window.self===window.top&&null!=g.container.parentNode)try{g.container.focus()}catch(H){}var T=g.fireMouseEvent;g.fireMouseEvent=function(H,S,ea){try{H==mxEvent.MOUSE_DOWN&&this.container.focus(),T.apply(this,arguments)}catch(la){e.handleError(la)}};var N=g.foldCells;g.foldCells=function(H,S,ea,la,O){try{N.apply(this,arguments)}catch(V){e.handleError(V)}};g.popupMenuHandler.autoExpand=!0;null!=this.menus&&(g.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(H,S,ea){this.menus.createPopupMenu(H,S,ea)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(H){g.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};g.connectionHandler.addListener(mxEvent.CONNECT,function(H,S){var ea=[S.getProperty("cell")];S.getProperty("terminalInserted")&&(ea.push(S.getProperty("terminal")),window.setTimeout(function(){null!=e.hoverIcons&&e.hoverIcons.update(g.view.getState(ea[ea.length-1]))},0));g.pasteCellStyles(ea)});this.addListener("styleChanged",mxUtils.bind(this,function(H,S){H=S.getProperty("force");(this.updateDefaultStyle||H)&&g.copyCellStyles(S.getProperty("cells"),S.getProperty("keys"),S.getProperty("values"),g.currentVertexStyle,g.currentEdgeStyle,m,p);null!=this.toolbar&&(this.toolbar.setFontName(g.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(g.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&("orthogonalEdgeStyle"==g.currentEdgeStyle.edgeStyle&&"1"==g.currentEdgeStyle.curved?this.toolbar.setMenuIcon(this.toolbar.edgeStyleMenu,@@ -2121,28 +2122,28 @@ EditorUi.prototype.createSelectionState=function(){for(var a=this.editor.graph,bEditorUi.prototype.findCommonProperties=function(a,b,f,e){if(null!=b){var g=mxUtils.bind(this,function(h){if(null!=h)if(f)for(var m=0;m<h.length;m++){if("function"!==typeof h[m].isVisible||h[m].isVisible(e,this.format))b[h[m].name]=h[m]}else for(var p in b){var k=!1;for(m=0;m<h.length;m++)if(h[m].name==p&&h[m].type==b[p].type){k=!0;break}k||delete b[p]}}),d=this.editor.graph.view.getState(a);null!=d&&null!=d.shape&&(d.shape.commonCustomPropAdded||(d.shape.commonCustomPropAdded=!0,d.shape.customProperties=d.shape.customProperties||[],d.cell.vertex?Array.prototype.push.apply(d.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(d.shape.customProperties,Editor.commonEdgeProperties)),g(d.shape.customProperties));a=a.getAttribute("customProperties");if(null!=a)try{g(JSON.parse(a))}catch(h){}}};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(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),f=this.editor.graph.model,e=f.getParent(b[0]),g=f.getParent(e);if(null!=e&&null!=g){for(var d=e.getIndex(b[0]),h=g.getIndex(e),m=null,p=1,k=1,v=0,w=h<g.getChildCount()-1?f.getChildAt(f.getChildAt(g,h+1),d):null;v<b.length-1;){var y=b[++v];null==w||w!=y||null!=m&&p!=m||(m=p,p=0,k++,e=f.getParent(w),w=h+k<g.getChildCount()?f.getChildAt(f.getChildAt(g,h+k),d):null);var C=this.editor.graph.view.getState(y);-if(y==f.getChildAt(e,d+p)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))p++;else break}v==k*p-1&&(a.mergeCell=b[0],a.colspan=p,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.editor.graph.sizeDidChange()}),0)};+EditorUi.prototype.updateSelectionStateForTableCells=function(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),f=this.editor.graph.model,e=f.getParent(b[0]),g=f.getParent(e);if(null!=e&&null!=g){for(var d=e.getIndex(b[0]),h=g.getIndex(e),m=null,p=1,k=1,u=0,w=h<g.getChildCount()-1?f.getChildAt(f.getChildAt(g,h+1),d):null;u<b.length-1;){var y=b[++u];null==w||w!=y||null!=m&&p!=m||(m=p,p=0,k++,e=f.getParent(w),w=h+k<g.getChildCount()?f.getChildAt(f.getChildAt(g,h+k),d):null);var C=this.editor.graph.view.getState(y);+if(y==f.getChildAt(e,d+p)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))p++;else break}u==k*p-1&&(a.mergeCell=b[0],a.colspan=p,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.editor.graph.sizeDidChange()}),0)};EditorUi.prototype.createTimeout=function(a,b,f){var e=!0,g=null,d=mxUtils.bind(this,function(m){g.clear()&&(e=!1,m=null!=m?m:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(a,b,f)})},null!=f?f(m):this.handleError(m))}),h=window.setTimeout(d,null!=a?a:this.timeout);g={clear:function(){window.clearTimeout(h);return e},isAlive:function(){return e}};null!=b&&this.tryAndHandle(mxUtils.bind(this,function(){b(g)}),d);return g};EditorUi.prototype.tryAndHandle=function(a,b){try{a()}catch(f){null!=b?b(f):this.handleError(f)}};-EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,f){var e=this.editor.graph;a=null!=a?a:e.getSelectionCells();var g=Graph.colorStyles,d=document.createElement("div");e.model.beginUpdate();try{for(var h=0;h<a.length;h++)if(e.model.isEdge(a[h])||e.model.isVertex(a[h])){var m=e.getCellStyle(a[h],!1);if(null!=m)for(var p=0;p<g.length;p++)try{var k=m[g[p]];if(mxUtils.isLightDarkColor(k)){var v=mxUtils.getLightDarkColor(k);e.setCellStyles(g[p],v.light,[a[h]])}}catch(y){}b&&e.isHtmlLabel(a[h])&&-"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(e.getLabel(a[h])),Graph.addLightDarkColors(d,null,null,function(y,C,D){return mxUtils.isLightDarkColor(D)?(D=mxUtils.getLightDarkColor(D),y.style.setProperty(C,D.light),!0):!1})&&e.cellLabelChanged(a[h],d.innerHTML))}if(f&&mxUtils.isLightDarkColor(e.background)){v=mxUtils.getLightDarkColor(e.background);var w=new ChangePageSetup(this,v.light);w.ignoreImage=!0;e.model.execute(w)}}finally{e.model.endUpdate()}return a};+EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,f){var e=this.editor.graph;a=null!=a?a:e.getSelectionCells();var g=Graph.colorStyles,d=document.createElement("div");e.model.beginUpdate();try{for(var h=0;h<a.length;h++)if(e.model.isEdge(a[h])||e.model.isVertex(a[h])){var m=e.getCellStyle(a[h],!1);if(null!=m)for(var p=0;p<g.length;p++)try{var k=m[g[p]];if(mxUtils.isLightDarkColor(k)){var u=mxUtils.getLightDarkColor(k);e.setCellStyles(g[p],u.light,[a[h]])}}catch(y){}b&&e.isHtmlLabel(a[h])&&+"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(e.getLabel(a[h])),Graph.addLightDarkColors(d,null,null,function(y,C,D){return mxUtils.isLightDarkColor(D)?(D=mxUtils.getLightDarkColor(D),y.style.setProperty(C,D.light),!0):!1})&&e.cellLabelChanged(a[h],d.innerHTML))}if(f&&mxUtils.isLightDarkColor(e.background)){u=mxUtils.getLightDarkColor(e.background);var w=new ChangePageSetup(this,u.light);w.ignoreImage=!0;e.model.execute(w)}}finally{e.model.endUpdate()}return a};EditorUi.prototype.updateSelectionStateForCell=function(a,b,f,e){f=this.editor.graph;a.cells.push(b);if(f.getModel().isVertex(b)){a.connections=0<f.model.getEdgeCount(b);a.unlocked=a.unlocked&&!f.isCellLocked(b);a.resizable=a.resizable&&f.isCellResizable(b);a.rotatable=a.rotatable&&f.isCellRotatable(b);a.movable=a.movable&&f.isCellMovable(b)&&!f.isTableRow(b)&&!f.isTableCell(b);a.swimlane=a.swimlane||f.isSwimlane(b);a.table=a.table||f.isTable(b);a.cell=a.cell||f.isTableCell(b);a.row=a.row||f.isTableRow(b);a.vertices.push(b);var g=f.getCellGeometry(b);if(null!=g&&(0<g.width?null==a.width?a.width=g.width:a.width!=g.width&&(a.width=""):a.containsLabel=!0,0<g.height?null==a.height?a.height=g.height:a.height!=g.height&&(a.height=""):a.containsLabel=!0,!g.relative||null!=g.offset)){var d=g.relative?g.offset.x:g.x;g=g.relative?g.offset.y:g.y;null==a.x?a.x=d:a.x!=d&&(a.x="");null==a.y?a.y=g:a.y!=g&&(a.y="")}}else f.getModel().isEdge(b)&&(a.edges.push(b),a.connections=!0,a.resizable=!1,a.rotatable=!1,a.movable=!1);d=f.view.getState(b);null!=d&&(a.html=a.html&&f.isHtmlLabel(b),a.autoSize=a.autoSize||f.isAutoSizeState(d),a.glass=a.glass&&f.isGlassState(d),a.rounded=a.rounded&&f.isRoundedState(d),a.lineJumps=a.lineJumps&&f.isLineJumpState(d),a.image=a.image||f.isImageState(d),a.shadow=a.shadow&&f.isShadowState(d),a.fill=a.fill&&f.isFillState(d),a.gradient=a.fill&&f.isGradientState(d),a.stroke=a.stroke&&f.isStrokeState(d),b=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE,null),a.containsImage=a.containsImage||"image"==b,f.mergeStyle(d.style,a.style,e))};EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(p,k){"mouseDown"==k.getProperty("eventName")&&b.hideShapePicker()}));var f=mxUtils.bind(this,function(){b.hideShapePicker(!0)});a.addListener("wheel",f);a.addListener(mxEvent.ESCAPE,f);a.view.addListener(mxEvent.SCALE,f);a.view.addListener(mxEvent.SCALE_AND_TRANSLATE,f);a.getSelectionModel().addListener(mxEvent.CHANGE,f);var e=a.popupMenuHandler.isMenuShowing;-a.popupMenuHandler.isMenuShowing=function(){return e.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var g=a.dblClick;a.dblClick=function(p,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(p)||a.isCellLocked(a.getDefaultParent()))g.apply(this,arguments);else{var v=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));mxEvent.consume(p);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(v.x,v.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",-f);var d=this.hoverIcons.drag;this.hoverIcons.drag=function(){b.hideShapePicker();d.apply(this,arguments)};var h=this.hoverIcons.execute;this.hoverIcons.execute=function(p,k,v){var w=v.getEvent();this.graph.isCloneEvent(w)||mxEvent.isShiftDown(w)?h.apply(this,arguments):this.graph.connectVertex(p.cell,k,this.graph.defaultEdgeLength,w,null,null,mxUtils.bind(this,function(y,C,D){var E=a.getCompositeParent(p.cell);y=a.getCellGeometry(E);for(v.consume();null!=E&&a.model.isVertex(E)&&null!=y&&y.relative;)cell=-E,E=a.model.getParent(cell),y=a.getCellGeometry(E);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(v.getGraphX(),v.getGraphY(),E,mxUtils.bind(this,function(G){D(G);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(G))}),k)}),30)}),mxUtils.bind(this,function(y){this.graph.selectCellsForConnectVertex(y,w,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var v=-k.getProperty("arrow"),w=k.getProperty("direction"),y=k.getProperty("event");v=v.getBoundingClientRect();var C=mxUtils.getOffset(a.container),D=a.container.scrollLeft+v.x-C.x;C=a.container.scrollTop+v.y-C.y;var E=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(D,C,E,mxUtils.bind(this,function(J){null!=J&&a.connectVertex(E,w,a.defaultEdgeLength,y,!0,!1,function(M,Q,L){L(J);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(J))},-function(M){a.selectCellsForConnectVertex(M)},y,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,v,D,C,w),mxUtils.setOpacity(G,30),mxEvent.addListener(G,"mouseenter",function(){mxUtils.setOpacity(G,100)}),mxEvent.addListener(G,"mouseleave",function(){b.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m)}))}};+a.popupMenuHandler.isMenuShowing=function(){return e.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var g=a.dblClick;a.dblClick=function(p,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(p)||a.isCellLocked(a.getDefaultParent()))g.apply(this,arguments);else{var u=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));mxEvent.consume(p);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.x,u.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",+f);var d=this.hoverIcons.drag;this.hoverIcons.drag=function(){b.hideShapePicker();d.apply(this,arguments)};var h=this.hoverIcons.execute;this.hoverIcons.execute=function(p,k,u){var w=u.getEvent();this.graph.isCloneEvent(w)||mxEvent.isShiftDown(w)?h.apply(this,arguments):this.graph.connectVertex(p.cell,k,this.graph.defaultEdgeLength,w,null,null,mxUtils.bind(this,function(y,C,D){var E=a.getCompositeParent(p.cell);y=a.getCellGeometry(E);for(u.consume();null!=E&&a.model.isVertex(E)&&null!=y&&y.relative;)cell=+E,E=a.model.getParent(cell),y=a.getCellGeometry(E);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.getGraphX(),u.getGraphY(),E,mxUtils.bind(this,function(G){D(G);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(G))}),k)}),30)}),mxUtils.bind(this,function(y){this.graph.selectCellsForConnectVertex(y,w,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var u=+k.getProperty("arrow"),w=k.getProperty("direction"),y=k.getProperty("event");u=u.getBoundingClientRect();var C=mxUtils.getOffset(a.container),D=a.container.scrollLeft+u.x-C.x;C=a.container.scrollTop+u.y-C.y;var E=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(D,C,E,mxUtils.bind(this,function(J){null!=J&&a.connectVertex(E,w,a.defaultEdgeLength,y,!0,!1,function(M,Q,K){K(J);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(J))},+function(M){a.selectCellsForConnectVertex(M)},y,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,u,D,C,w),mxUtils.setOpacity(G,30),mxEvent.addListener(G,"mouseenter",function(){mxUtils.setOpacity(G,100)}),mxEvent.addListener(G,"mouseleave",function(){b.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m)}))}};EditorUi.prototype.centerShapePicker=function(a,b,f,e,g){if(g==mxConstants.DIRECTION_EAST||g==mxConstants.DIRECTION_WEST)a.style.width="40px";var d=a.getBoundingClientRect();g==mxConstants.DIRECTION_NORTH?(f-=d.width/2-10,e-=d.height+6):g==mxConstants.DIRECTION_SOUTH?(f-=d.width/2-10,e+=b.height+6):g==mxConstants.DIRECTION_WEST?(f-=d.width+6,e-=d.height/2-10):g==mxConstants.DIRECTION_EAST&&(f+=b.width+6,e-=d.height/2-10);a.style.left=f+"px";a.style.top=e+"px"};EditorUi.prototype.showShapePicker=function(a,b,f,e,g,d,h,m,p){var k=null;this.editor.graph.freehand.isDrawing()||(m=m||null==f,k=this.createShapePicker(a,b,f,e,g,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(f,d,m),d,h,m,p),null!=k&&(null==this.hoverIcons||d||this.hoverIcons.reset(),a=this.editor.graph,a.popupMenuHandler.hideMenu(),a.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=e,this.shapePicker=k));return k};-EditorUi.prototype.createShapePicker=function(a,b,f,e,g,d,h,m,p,k,v){v=null!=v?v:!0;var w=this.editor.graph,y=null;p=null!=p?p:function(E){E=E[0];var G=0,J=0,M=E.geometry;null!=M&&(w.model.isEdge(E)&&(E=M.getTerminalPoint(!1),M=new mxRectangle(0,0,E.x,E.y)),G=M.width/2,J=M.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-J))};if(null!=h&&0<h.length){var C=this;w=this.editor.graph;y=document.createElement("div");+EditorUi.prototype.createShapePicker=function(a,b,f,e,g,d,h,m,p,k,u){u=null!=u?u:!0;var w=this.editor.graph,y=null;p=null!=p?p:function(E){E=E[0];var G=0,J=0,M=E.geometry;null!=M&&(w.model.isEdge(E)&&(E=M.getTerminalPoint(!1),M=new mxRectangle(0,0,E.x,E.y)),G=M.width/2,J=M.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-J))};if(null!=h&&0<h.length){var C=this;w=this.editor.graph;y=document.createElement("div");g=w.view.getState(f);var D=null==f||null!=g&&w.isTransparentState(g)?null:w.copyStyle(f);y.className="geShapePicker";y.setAttribute("title",mxResources.get("sidebarTooltip"));y.style.left=Math.round(a)+"px";y.style.top=Math.round(b)+"px";mxClient.IS_POINTER&&(y.style.touchAction="none");m||mxUtils.setPrefixedStyle(y.style,"transform","translate(-22px,-22px)");w.container.appendChild(y);g=mxUtils.bind(this,function(E){var G=document.createElement("a");y.appendChild(G);null!=D&&"1"!=urlParams.sketch?-this.sidebar.graph.pasteStyle(D,[E]):this.sidebar.graph.pasteCellStyles([E],w.currentVertexStyle,w.currentEdgeStyle);var J=E.geometry;w.model.isEdge(E)&&(J=J.getTerminalPoint(!1),J=new mxRectangle(0,0,J.x,J.y));null!=J&&(J=this.sidebar.createVertexTemplateFromCells([E],J.width,J.height,"",!0,!1,null,!1,mxUtils.bind(this,function(M){if(!mxEvent.isAltDown(M)||1!=w.getSelectionCount()){if(!mxEvent.isShiftDown(M)||null==f&&w.isSelectionEmpty()){var Q=w.cloneCell(E);if(null!=e)e(Q);else{var L=p([Q]);w.model.isEdge(Q)?-Q.geometry.translate(L.x,L.y):(Q.geometry.x=L.x,Q.geometry.y=L.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);v&&w.startEditing(Q);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(Q))}}else Q=w.getEditableCells(null!=f?[f]:w.getSelectionCells()),w.updateShapes(E,Q);null!=d&&d(M);mxEvent.consume(M)}}),25,25,null,null,f),J.style.display="flex",J.style.alignItems=+this.sidebar.graph.pasteStyle(D,[E]):this.sidebar.graph.pasteCellStyles([E],w.currentVertexStyle,w.currentEdgeStyle);var J=E.geometry;w.model.isEdge(E)&&(J=J.getTerminalPoint(!1),J=new mxRectangle(0,0,J.x,J.y));null!=J&&(J=this.sidebar.createVertexTemplateFromCells([E],J.width,J.height,"",!0,!1,null,!1,mxUtils.bind(this,function(M){if(!mxEvent.isAltDown(M)||1!=w.getSelectionCount()){if(!mxEvent.isShiftDown(M)||null==f&&w.isSelectionEmpty()){var Q=w.cloneCell(E);if(null!=e)e(Q);else{var K=p([Q]);w.model.isEdge(Q)?+Q.geometry.translate(K.x,K.y):(Q.geometry.x=K.x,Q.geometry.y=K.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);u&&w.startEditing(Q);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(Q))}}else Q=w.getEditableCells(null!=f?[f]:w.getSelectionCells()),w.updateShapes(E,Q);null!=d&&d(M);mxEvent.consume(M)}}),25,25,null,null,f),J.style.display="flex",J.style.alignItems="center",J.style.justifyContent="center",G.appendChild(J))});for(k=0;k<(m?Math.min(h.length,4):h.length);k++)g(h[k]);h=y.offsetTop+y.clientHeight-(w.container.scrollTop+w.container.offsetHeight);0<h&&(y.style.top=Math.max(w.container.scrollTop+22,b-h)+"px");h=y.offsetLeft+y.clientWidth-(w.container.scrollLeft+w.container.offsetWidth);0<h&&(y.style.left=Math.max(w.container.scrollLeft+22,a-h)+"px")}return y};EditorUi.prototype.getCellsForShapePicker=function(a,b,f){var e=this.editor.graph,g=mxUtils.bind(this,function(d,h,m,p){return e.createVertex(null,null,p||"",0,0,h||120,m||60,d,!1)});b=mxUtils.bind(this,function(d,h,m){d=new mxCell(m||"",new mxGeometry(0,0,e.defaultEdgeLength+20,0),d);d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new mxPoint(d.geometry.width,null!=h?h:0),!1);d.geometry.points=null!=h?[new mxPoint(d.geometry.width/2,h)]:[];d.geometry.relative=!0;d.edge=!0;return d});if(null!=a)try{a=e.cloneCell(a),e.model.isVertex(a)&&null!=a.geometry&&(a.geometry.x=0,a.geometry.y=0)}catch(d){a=null}null==a&&(a=g(e.appendFontSize("text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;",e.vertexFontSize),40,20,"Text"),e.model.isVertex(a)&&e.isAutoSizeCell(a)&&Graph.createOffscreenGraph(e.getStylesheet()).updateCellSize(a));a=[a,g("whiteSpace=wrap;html=1;"),g("ellipse;whiteSpace=wrap;html=1;",80,80),g("rhombus;whiteSpace=wrap;html=1;",@@ -2159,8 +2160,8 @@ EditorUi.prototype.getImageForMarker=function(a,b,f){return"flexArrow"==f?null!=a?"1"!=b?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==a?Format.boxMarkerImage.src:"halfCircle"==a?Format.halfCircleMarkerImage.src:"openAsync"==a?Format.openAsyncFilledMarkerImage.src:"async"==a?"1"!=b?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==a?Format.dashMarkerImage.src:"baseDash"==a?Format.baseDashMarkerImage.src:"cross"==a?Format.crossMarkerImage.src:"circle"==a?Format.circleMarkerImage.src:"circlePlus"==a?Format.circlePlusMarkerImage.src:"ERone"==a?Format.EROneMarkerImage.src:"ERmandOne"==a?Format.ERmandOneMarkerImage.src:"ERmany"==a?Format.ERmanyMarkerImage.src:"ERoneToMany"==a?Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==a?Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==a?Format.ERzeroToManyMarkerImage.src:null};EditorUi.prototype.createMenus=function(){return null};EditorUi.prototype.updatePasteActionStates=function(){var a=this.editor.graph,b=this.actions.get("paste"),f=this.actions.get("pasteHere");b.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(null!=navigator.clipboard||!mxClipboard.isEmpty())&&a.isEnabled()&&!a.isCellLocked(a.getDefaultParent()));f.setEnabled(b.isEnabled())};-EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var h=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{h=h||d.getSelectionCells();h=d.getExportableCells(d.model.getTopmostCells(h));for(var m={},p=d.createCellLookup(h),k=d.cloneCells(h,null,m),v=new mxGraphModel,w=v.getChildAt(v.getRoot(),-0),y=0;y<k.length;y++){v.add(w,k[y]);var C=d.view.getState(h[y]);if(null!=C){var D=d.getCellGeometry(k[y]);null!=D&&D.relative&&!v.isEdge(h[y])&&null==p[mxObjectIdentity.get(v.getParent(h[y]))]&&(D.offset=null,D.relative=!1,D.x=C.x/C.view.scale-C.view.translate.x,D.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,p),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return h};var f=mxClipboard.paste;mxClipboard.paste=function(d){var h=+EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var h=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{h=h||d.getSelectionCells();h=d.getExportableCells(d.model.getTopmostCells(h));for(var m={},p=d.createCellLookup(h),k=d.cloneCells(h,null,m),u=new mxGraphModel,w=u.getChildAt(u.getRoot(),+0),y=0;y<k.length;y++){u.add(w,k[y]);var C=d.view.getState(h[y]);if(null!=C){var D=d.getCellGeometry(k[y]);null!=D&&D.relative&&!u.isEdge(h[y])&&null==p[mxObjectIdentity.get(u.getParent(h[y]))]&&(D.offset=null,D.relative=!1,D.x=C.x/C.view.scale-C.view.translate.x,D.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,p),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return h};var f=mxClipboard.paste;mxClipboard.paste=function(d){var h=null;d.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):h=f.apply(this,arguments);a.updatePasteActionStates();return h};var e=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){e.apply(this,arguments);a.updatePasteActionStates()};var g=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(d,h){g.apply(this,arguments);a.updatePasteActionStates()};this.updatePasteActionStates()};EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;EditorUi.prototype.buttonZoomDelay=600;EditorUi.prototype.initCanvas=function(){var a=this.editor.graph;a.timerAutoScroll=!0;a.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((a.container.offsetWidth-34)/a.view.scale)),Math.max(0,Math.round((a.container.offsetHeight-34)/a.view.scale)))};a.view.getBackgroundPageBounds=function(){var aa=this.graph.getPageLayout(),P=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+aa.x*P.width),this.scale*(this.translate.y+aa.y*P.height),this.scale*aa.width*@@ -2172,16 +2173,16 @@ za=a.view.scale,Ka=mxRectangle.fromRectangle(Ja);Ka.x=Ka.x/za-ya.x;Ka.y=Ka.y/za-"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var d=mxUtils.bind(this,function(){var aa=mxUtils.getCurrentStyle(a.container);a.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",d);d();var h=0;d=mxUtils.bind(this,function(aa,P,ba){h++;var ma=document.createElement("span");ma.style.paddingLeft="8px";ma.style.paddingRight="8px";ma.style.cursor="pointer";mxEvent.addListener(ma,"click",aa);null!=ba&&ma.setAttribute("title",ba);aa=document.createElement("img");aa.setAttribute("border","0");aa.setAttribute("src",P);aa.style.width="36px";aa.style.filter="invert(100%)";ma.appendChild(aa);this.chromelessToolbar.appendChild(ma);return ma});if(null!=g.backBtn){var m=Graph.sanitizeLink(g.backBtn.url);null!=m&&d(mxUtils.bind(this,function(aa){window.location.href=m;mxEvent.consume(aa)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var p=d(mxUtils.bind(this,function(aa){this.actions.get("previousPage").funct();mxEvent.consume(aa)}),Editor.chevronLeftImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.cursor="default";k.style.color=-mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var v=d(mxUtils.bind(this,function(aa){this.actions.get("nextPage").funct();mxEvent.consume(aa)}),Editor.chevronRightImage,mxResources.get("nextPage")),w=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){k.innerText="";var aa=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(k,aa+1+" / "+this.pages.length);k.setAttribute("title",mxResources.get("currentPage")+-": "+this.currentPage.getName());p.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(aa-1,this.pages.length)].getName());v.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(aa+1,this.pages.length)].getName())}});p.style.paddingLeft="0px";p.style.paddingRight="4px";v.style.paddingLeft="4px";v.style.paddingRight="0px";var y=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(v.style.display="",p.style.display=-"",k.style.display="inline-block"):(v.style.display="none",p.style.display="none",k.style.display="none");w()});if(null!=this.menus){var C=this.menus.get("pages");null!=C&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(aa){var P=new mxPopupMenu(C.funct);P.smartSeparators=!0;P.showDisabled=!0;P.autoExpand=!0;P.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(P,arguments);P.destroy()});var ba=mxUtils.getOffset(k);P.popup(ba.x,ba.y+k.offsetHeight,null,aa);mxEvent.addListener(P.div,+mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var u=d(mxUtils.bind(this,function(aa){this.actions.get("nextPage").funct();mxEvent.consume(aa)}),Editor.chevronRightImage,mxResources.get("nextPage")),w=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){k.innerText="";var aa=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(k,aa+1+" / "+this.pages.length);k.setAttribute("title",mxResources.get("currentPage")++": "+this.currentPage.getName());p.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(aa-1,this.pages.length)].getName());u.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(aa+1,this.pages.length)].getName())}});p.style.paddingLeft="0px";p.style.paddingRight="4px";u.style.paddingLeft="4px";u.style.paddingRight="0px";var y=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(u.style.display="",p.style.display=+"",k.style.display="inline-block"):(u.style.display="none",p.style.display="none",k.style.display="none");w()});if(null!=this.menus){var C=this.menus.get("pages");null!=C&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(aa){var P=new mxPopupMenu(C.funct);P.smartSeparators=!0;P.showDisabled=!0;P.autoExpand=!0;P.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(P,arguments);P.destroy()});var ba=mxUtils.getOffset(k);P.popup(ba.x,ba.y+k.offsetHeight,null,aa);mxEvent.addListener(P.div,"mouseleave",mxUtils.bind(this,function(){P.hideMenu()}))}))}this.editor.addListener("resetGraphView",y);this.editor.addListener("pageSelected",w)}d(mxUtils.bind(this,function(aa){this.actions.get("zoomOut").funct();mxEvent.consume(aa)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(aa){this.actions.get("zoomIn").funct();mxEvent.consume(aa)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(aa){a.isLightboxView()?(1==a.view.scale?this.lightboxFit():a.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(aa)}),Editor.zoomFitImage,mxResources.get("fit"));var D=null,E=null,G=mxUtils.bind(this,function(aa){null!=D&&(window.clearTimeout(D),D=null);null!=E&&(window.clearTimeout(E),E=null);D=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);D=null;E=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";E=null}),600)}),aa||200)}),J=mxUtils.bind(this,function(aa){null!=D&&(window.clearTimeout(D),D=null);null!=E&&(window.clearTimeout(E),E=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,aa||30)});if("1"==urlParams.layers){this.layersDialog=null;var M=d(mxUtils.bind(this,function(aa){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=a.createLayersDialog(mxUtils.bind(this,function(){this.chromelessResize&&this.chromelessResize()}),!0);mxEvent.addListener(this.layersDialog,"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var P=M.getBoundingClientRect();mxUtils.setPrefixedStyle(this.layersDialog.style,"borderRadius","5px");this.layersDialog.style.position="fixed";this.layersDialog.style.fontFamily=Editor.defaultHtmlFont;this.layersDialog.style.width="160px";this.layersDialog.style.padding="4px 2px 4px 2px";this.layersDialog.style.left=P.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";mxClient.IS_IE||mxClient.IS_IE11?(this.layersDialog.style.backgroundColor="#ffffff",this.layersDialog.style.border="2px solid black",this.layersDialog.style.color="#000000"):(this.layersDialog.style.backgroundColor="#000000",this.layersDialog.style.color="#ffffff",mxUtils.setOpacity(this.layersDialog,80));P=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=P.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(aa)}),Editor.layersImage,mxResources.get("layers")),Q=a.getModel();Q.addListener(mxEvent.CHANGE,function(){M.style.display=1<Q.getChildCount(Q.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(d);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||d(mxUtils.bind(this,function(aa){if(null!=this.editor.editButtonFunc)this.editor.editButtonFunc();-else if("_blank"==this.editor.editButtonLink){var P=null!=this.currentPage?this.currentPage.getId():null;this.editor.editAsNew(this.getEditBlankXml(),null,null,P)}else a.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(aa)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(y=0;y<this.lightboxToolbarActions.length;y++){var L=this.lightboxToolbarActions[y];L.elem=d(L.fn,L.icon,L.tooltip)}if(null!=g.refreshBtn){var W=null==g.refreshBtn.url?null:Graph.sanitizeLink(g.refreshBtn.url);+else if("_blank"==this.editor.editButtonLink){var P=null!=this.currentPage?this.currentPage.getId():null;this.editor.editAsNew(this.getEditBlankXml(),null,null,P)}else a.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(aa)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(y=0;y<this.lightboxToolbarActions.length;y++){var K=this.lightboxToolbarActions[y];K.elem=d(K.fn,K.icon,K.tooltip)}if(null!=g.refreshBtn){var W=null==g.refreshBtn.url?null:Graph.sanitizeLink(g.refreshBtn.url);d(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!=g.fullscreenBtn&&window.self!==window.top&&d(mxUtils.bind(this,function(aa){g.fullscreenBtn.url?a.openLink(g.fullscreenBtn.url):a.openLink(window.location.href);mxEvent.consume(aa)}),Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!g.noCloseBtn&&(g.closeBtn&&window.self===window.top||a.lightbox&&("1"==urlParams.close||this.container!=document.body))&&d(mxUtils.bind(this,function(aa){"1"==urlParams.close||g.closeBtn?window.close():(this.destroy(),mxEvent.consume(aa))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display="none";a.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform","translate(-50%,0)");a.container.appendChild(this.chromelessToolbar);mxEvent.addListener(a.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(aa){mxEvent.isTouchEvent(aa)||(mxEvent.isShiftDown(aa)||J(30),G())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(aa){mxEvent.consume(aa)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(aa){a.tooltipHandler.resetTimer();a.tooltipHandler.hideTooltip();mxEvent.isShiftDown(aa)?G():J(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(aa){mxEvent.isShiftDown(aa)?@@ -2249,11 +2250,11 @@ EditorUi.prototype.setStatusText=function(a){this.statusContainer.innerHTML=Grap"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(f,100);mxUtils.setPrefixedStyle(f.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(f.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(f.style,"transform","scaleX(0)");mxUtils.setOpacity(f,0);window.setTimeout(mxUtils.bind(this,function(){null!=f.parentNode&&f.parentNode.removeChild(f)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(a[b])};EditorUi.prototype.clearStatus=function(){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus("")}))};EditorUi.prototype.updateStatus=function(a){null!=a&&a();this.lastStatusUpdate=a};EditorUi.prototype.updateStatusAgain=function(){null!=this.lastStatusUpdate&&this.lastStatusUpdate()};EditorUi.prototype.createStatusDiv=function(a){var b=document.createElement("div");b.className="geStatusDiv";b.setAttribute("title",a);b.innerText=a;return b};EditorUi.prototype.createToolbar=function(a){return new Toolbar(this,a)};EditorUi.prototype.createSidebar=function(a){return new Sidebar(this,a)};EditorUi.prototype.createFormat=function(a){return new Format(this,a)};EditorUi.prototype.createDiv=function(a){var b=document.createElement("div");b.className=a;return b};-EditorUi.prototype.addSplitHandler=function(a,b,f,e){function g(w){if(null!=h){var y=new mxPoint(mxEvent.getClientX(w),mxEvent.getClientY(w));e(Math.max(0,m+(b?y.x-h.x:h.y-y.y)-f));mxEvent.consume(w);m!=v()&&(p=!0,k=null)}}function d(w){g(w);h=m=null}var h=null,m=null,p=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var v=mxUtils.bind(this,function(){var w=parseInt(b?a.offsetLeft:a.offsetTop);b||(w+=f);return w});mxEvent.addGestureListeners(a,function(w){h=new mxPoint(mxEvent.getClientX(w),-mxEvent.getClientY(w));m=v();p=!1;mxEvent.consume(w)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(w){if(!p&&this.hsplitClickEnabled){var y=null!=k?k-f:0;k=v();e(y);mxEvent.consume(w)}}));mxEvent.addGestureListeners(document,null,g,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,g,d)})};+EditorUi.prototype.addSplitHandler=function(a,b,f,e){function g(w){if(null!=h){var y=new mxPoint(mxEvent.getClientX(w),mxEvent.getClientY(w));e(Math.max(0,m+(b?y.x-h.x:h.y-y.y)-f));mxEvent.consume(w);m!=u()&&(p=!0,k=null)}}function d(w){g(w);h=m=null}var h=null,m=null,p=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var u=mxUtils.bind(this,function(){var w=parseInt(b?a.offsetLeft:a.offsetTop);b||(w+=f);return w});mxEvent.addGestureListeners(a,function(w){h=new mxPoint(mxEvent.getClientX(w),+mxEvent.getClientY(w));m=u();p=!1;mxEvent.consume(w)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(w){if(!p&&this.hsplitClickEnabled){var y=null!=k?k-f:0;k=u();e(y);mxEvent.consume(w)}}));mxEvent.addGestureListeners(document,null,g,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,g,d)})};EditorUi.prototype.prompt=function(a,b,f){a=new FilenameDialog(this,b,mxResources.get("apply"),function(e){f(parseFloat(e))},a);this.showDialog(a.container,300,80,!0,!0);a.init()};EditorUi.prototype.handleError=function(a,b,f,e,g){a=null!=a&&null!=a.error?a.error:a;if(null!=a||null!=b){g=mxUtils.htmlEntities(mxResources.get("unknownError"));var d=mxResources.get("ok");b=null!=b?b:mxResources.get("error");null!=a&&null!=a.message&&(g=mxUtils.htmlEntities(a.message));this.showError(b,g,d,f,null,null,null,null,null,null,null,null,e?f:null)}else null!=f&&f()};-EditorUi.prototype.showError=function(a,b,f,e,g,d,h,m,p,k,v,w,y){a=new ErrorDialog(this,a,b,f||mxResources.get("ok"),e,g,d,h,w,m,p);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,v||100+20*b,!0,!1,y);a.init()};EditorUi.prototype.showDialog=function(a,b,f,e,g,d,h,m,p,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,f,e,g,d,h,m,p,k);this.dialogs.push(this.dialog)};+EditorUi.prototype.showError=function(a,b,f,e,g,d,h,m,p,k,u,w,y){a=new ErrorDialog(this,a,b,f||mxResources.get("ok"),e,g,d,h,w,m,p);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,u||100+20*b,!0,!1,y);a.init()};EditorUi.prototype.showDialog=function(a,b,f,e,g,d,h,m,p,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,f,e,g,d,h,m,p,k);this.dialogs.push(this.dialog)};EditorUi.prototype.hideDialog=function(a,b,f){var e=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var g=this.dialogs.length-1;0<=g;g--)if(!this.dialogs[g].closing){e=this.dialogs[g];break}null==e||null!=f&&f!=this.dialog.container.firstChild||(e.closing=!0,0==e.close(a,b)?delete e.closing:(delete e.closing,a=mxUtils.lastIndexOf(this.dialogs,e),0<=a&&this.dialogs.splice(a,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog","dialog",e)),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 a=this.editor.graph;if(a.isEnabled())try{for(var b=a.getSelectionCells(),f=new mxDictionary,e=[],g=0;g<b.length;g++){var d=a.isTableCell(b[g])?a.model.getParent(b[g]):b[g];null==d||f.get(d)||(f.put(d,!0),e.push(d))}a.setSelectionCells(a.duplicateCells(e,!1))}catch(h){this.handleError(h)}};@@ -2274,12 +2275,12 @@ EditorUi.prototype.setBackgroundImage=function(a){this.editor.graph.setBackgrounEditorUi.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(a){function b(w,y,C){if(!e.isSelectionEmpty()&&e.isEnabled()){y=null!=y?y:1;var D=e.getCompositeParents(e.getSelectionCells()),E=0<D.length?D[0]:null;if(null!=E)if(C){e.getModel().beginUpdate();try{for(E=0;E<D.length;E++)if(e.getModel().isVertex(D[E])&&e.isCellResizable(D[E])){var G=e.getCellGeometry(D[E]);null!=G&&(G=G.clone(),37==w?G.width=Math.max(0,G.width-y):38==w?G.height=Math.max(0,G.height-y):39==w?G.width+=y:40==w&&(G.height+=y),e.getModel().setGeometry(D[E],G))}}finally{e.getModel().endUpdate()}}else{G=e.model.getParent(E);var J=e.getView().scale;C=null;1==e.getSelectionCount()&&e.model.isVertex(E)&&null!=e.layoutManager&&!e.isCellLocked(E)&&(C=e.layoutManager.getLayout(G));if(null!=C&&C.constructor==mxStackLayout)y=G.getIndex(E),37==w||38==w?e.model.add(G,E,Math.max(0,y-1)):(39==w||40==w)&&e.model.add(G,E,Math.min(e.model.getChildCount(G),y+1));else{var M=e.graphHandler;null!=M&&(null==M.first&&M.start(E,0,0,e.getMovableCells(D)),null!=M.first&&(E=-D=0,37==w?D=-y:38==w?E=-y:39==w?D=y:40==w&&(E=y),M.currentDx+=D*J,M.currentDy+=E*J,M.checkPreview(),M.updatePreview()),null!=h&&window.clearTimeout(h),h=window.setTimeout(function(){if(null!=M.first){var Q=M.roundLength(M.currentDx/J),L=M.roundLength(M.currentDy/J);M.moveCells(M.cells,Q,L);M.reset()}},400))}}}}var f=this,e=this.editor.graph,g=new mxKeyHandler(e),d=g.isEventIgnored;g.isEventIgnored=function(w){return!(mxEvent.isShiftDown(w)&&9==w.keyCode)&&(!this.isControlDown(w)||mxEvent.isShiftDown(w)||+D=0,37==w?D=-y:38==w?E=-y:39==w?D=y:40==w&&(E=y),M.currentDx+=D*J,M.currentDy+=E*J,M.checkPreview(),M.updatePreview()),null!=h&&window.clearTimeout(h),h=window.setTimeout(function(){if(null!=M.first){var Q=M.roundLength(M.currentDx/J),K=M.roundLength(M.currentDy/J);M.moveCells(M.cells,Q,K);M.reset()}},400))}}}}var f=this,e=this.editor.graph,g=new mxKeyHandler(e),d=g.isEventIgnored;g.isEventIgnored=function(w){return!(mxEvent.isShiftDown(w)&&9==w.keyCode)&&(!this.isControlDown(w)||mxEvent.isShiftDown(w)||90!=w.keyCode&&89!=w.keyCode&&188!=w.keyCode&&190!=w.keyCode&&85!=w.keyCode&&83!=w.keyCode)&&(66!=w.keyCode&&73!=w.keyCode||!this.isControlDown(w)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=w.keyCode&&107!=w.keyCode||!this.isControlDown(w)&&!mxEvent.isShiftDown(w)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&d.apply(this,arguments)};g.isEnabledForEvent=function(w){return!mxEvent.isConsumed(w)&&this.isGraphEvent(w)&&this.isEnabled()&&(null==f.dialogs||0==f.dialogs.length)};g.isControlDown=function(w){return mxEvent.isControlDown(w)||mxClient.IS_MAC&&w.metaKey};var h=null,m={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},p=g.getFunction;mxKeyHandler.prototype.getFunction=function(w){if(e.isEnabled()){var y=null;mxEvent.isShiftDown(w)&&this.isControlDown(w)&&mxEvent.isAltDown(w)?y=f.actions.get(f.ctrlAltShiftActions[w.keyCode]):mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)?y=f.actions.get(f.altShiftActions[w.keyCode]):this.isControlDown(w)&&mxEvent.isAltDown(w)&&(y=f.actions.get(f.ctrlAltActions[w.keyCode]));if(null!=y)return y.funct;if("/"==w.key&&!this.isControlDown(w)&&!mxEvent.isAltDown(w))return function(){var C=document.getElementById("geOmniSearch");null!=C&&30<C.clientWidth&&C.focus()};if(null!=m[w.keyCode]&&!e.isSelectionEmpty())if(!this.isControlDown(w)&&mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)){if(e.model.isVertex(e.getSelectionCell()))return function(){var C=e.connectVertex(e.getSelectionCell(),m[w.keyCode],e.defaultEdgeLength,w,!0);null!=C&&0<C.length&&(1==C.length&&e.model.isEdge(C[0])?e.setSelectionCell(e.model.getTerminal(C[0],!1)):e.setSelectionCell(C[C.length-1]),e.scrollCellToVisible(e.getSelectionCell()),null!=f.hoverIcons&&f.hoverIcons.update(e.view.getState(e.getSelectionCell())))}}else return this.isControlDown(w)?function(){b(w.keyCode,mxEvent.isShiftDown(w)?e.gridSize:null,!0)}:function(){b(w.keyCode,mxEvent.isShiftDown(w)?e.gridSize:null)}}return p.apply(this,-arguments)};g.bindAction=mxUtils.bind(this,function(w,y,C,D){var E=this.actions.get(C);null!=E&&(C=function(){E.isEnabled()&&E.funct.apply(this,arguments)},y?D?g.bindControlShiftKey(w,C):g.bindControlKey(w,C):D?g.bindShiftKey(w,C):g.bindKey(w,C))});var k=this,v=g.escape;g.escape=function(w){v.apply(this,arguments)};g.enter=function(){};g.bindControlShiftKey(36,function(){e.exitGroup()});g.bindControlShiftKey(35,function(){e.enterGroup()});g.bindShiftKey(36,function(){e.home()});g.bindKey(35,function(){e.refresh()});+arguments)};g.bindAction=mxUtils.bind(this,function(w,y,C,D){var E=this.actions.get(C);null!=E&&(C=function(){E.isEnabled()&&E.funct.apply(this,arguments)},y?D?g.bindControlShiftKey(w,C):g.bindControlKey(w,C):D?g.bindShiftKey(w,C):g.bindKey(w,C))});var k=this,u=g.escape;g.escape=function(w){u.apply(this,arguments)};g.enter=function(){};g.bindControlShiftKey(36,function(){e.exitGroup()});g.bindControlShiftKey(35,function(){e.enterGroup()});g.bindShiftKey(36,function(){e.home()});g.bindKey(35,function(){e.refresh()});g.bindAction(80,!0,"print");g.bindAction(107,!0,"zoomIn");g.bindAction(109,!0,"zoomOut");g.bindAction(61,!0,"zoomIn");g.bindAction(187,!0,"zoomIn");g.bindAction(222,!0,"zoomIn");g.bindAction(173,!0,"zoomOut");g.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)g.bindAction(79,!0,"outline",!0),g.bindControlKey(36,function(){e.isEnabled()&&e.foldCells(!0)}),g.bindControlKey(35,function(){e.isEnabled()&&e.foldCells(!1)}),g.bindControlKey(13,function(){k.ctrlEnter()}),g.bindAction(8,!1,"delete"),g.bindAction(8,!0,"deleteAll"),g.bindAction(8,!1,"deleteLabels",!0),g.bindAction(46,!1,"delete"),g.bindAction(46,!0,"deleteAll"),g.bindAction(46,!1,"deleteLabels",!0),g.bindAction(36,!1,"resetView"),g.bindAction(72,!0,"fitWindow",!0),g.bindAction(74,!0,"fitPage"),g.bindAction(74,!0,"fitTwoPages",!0),g.bindAction(48,!0,"customZoom"),g.bindAction(82,!0,"turn"),g.bindAction(82,!0,"clearDefaultStyle",!0),g.bindAction(83,!0,"save"),g.bindAction(83,!0,"saveAs",!0),g.bindAction(65,!0,"selectAll"),g.bindAction(65,!0,"selectNone",!0),g.bindAction(73,!0,"selectVertices",!0),g.bindAction(69,!0,"selectEdges",!0),g.bindAction(69,!0,"editStyle"),g.bindAction(66,!0,"bold"),g.bindAction(66,!0,"toBack",!0),g.bindAction(70,!0,"toFront",!0),g.bindAction(68,!0,"duplicate"),g.bindAction(68,!0,"setAsDefaultStyle",!0),g.bindAction(90,!0,"undo"),g.bindAction(90,!0,"redo",!0),g.bindAction(89,!0,"redo"),g.bindAction(89,!0,"autosize",!0),g.bindAction(88,!0,"cut"),g.bindAction(67,!0,"copy"),g.bindAction(86,!0,@@ -2316,41 +2317,41 @@ Sidebar.prototype.getTooltipOffset=function(a,b){if(mxUtils.isAncestorNode(this.2-b.height/2-6)};Sidebar.prototype.createMoreShapes=function(){var a=this.editorUi.createDiv("geSidebarFooter"),b=document.createElement("button");b.className="geBtn gePrimaryBtn";this.editorUi.dependsOnLanguage(mxUtils.bind(this,function(){b.innerHTML="<span>+</span>";mxUtils.write(b,mxResources.get("moreShapes"));b.setAttribute("title",mxResources.get("moreShapes"))}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(f){this.editorUi.actions.get("shapes").funct();mxEvent.consume(f)}));mxEvent.preventDefault(b);a.appendChild(b);return a};-Sidebar.prototype.createTooltip=function(a,b,f,e,g,d,h,m,p,k,v){v=null!=v?v:!0;this.tooltipMouseDown=p;p=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(y){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,null,+Sidebar.prototype.createTooltip=function(a,b,f,e,g,d,h,m,p,k,u){u=null!=u?u:!0;this.tooltipMouseDown=p;p=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(y){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,null,null,this.editorUi.editor.graph.getStylesheet());this.graph2.shapeBackgroundColor=this.graph.shapeBackgroundColor;this.graph2.resetViewOnRootChange=!1;this.graph2.foldingEnabled=!1;this.graph2.gridEnabled=!1;this.graph2.autoScroll=!1;this.graph2.setTooltips(!1);this.graph2.setConnectable(!1);this.graph2.setPanning(!1);this.graph2.setEnabled(!1);if(this.graph2.dialect==mxConstants.DIALECT_SVG){var w=this.graph2.view.getDrawPane().ownerSVGElement;null!=w&&(w.style.overflow="visible")}else this.graph2.view.canvas.style.overflow="visible";this.graph2.openLink=mxUtils.bind(this,function(){this.hideTooltip()});mxEvent.addGestureListeners(this.tooltip,mxUtils.bind(this,function(y){null!=this.tooltipMouseDown&&this.tooltipMouseDown(y);window.setTimeout(mxUtils.bind(this,function(){null!=this.tooltipCloseImage&&"none"!=this.tooltipCloseImage.style.display||this.hideTooltip()}),0)}),null,mxUtils.bind(this,function(y){this.hideTooltip()}));w=document.createElement("img");w.setAttribute("src",Editor.crossImage);w.setAttribute("title",mxResources.get("close"));w.className="geButton";this.tooltip.appendChild(w);this.tooltipCloseImage=w;mxEvent.addListener(w,"click",mxUtils.bind(this,function(y){this.hideTooltip();mxEvent.consume(y)}))}this.tooltipCloseImage.style.display=k?"":"none";this.graph2.model.clear();this.graph2.view.setTranslate(this.tooltipBorder,this.tooltipBorder);this.graph2.view.scale=!m&&(f>this.maxTooltipWidth||e>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/f,this.maxTooltipHeight/e))/100:-1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(p.includeDescendants(b),v?p.currentVertexStyle:p.defaultVertexStyle,v?p.currentEdgeStyle:p.defaultEdgeStyle,null,p.pasteEdgeStyle),this.graph2.addCells(b));mxClient.NO_FO=d;v=this.graph2.getGraphBounds();m&&0<f&&0<e&&(v.width>f||v.height>e)?(f=Math.round(100*Math.min(f/v.width,e/v.height))/-100,mxClient.NO_FO?(this.graph2.view.setScale(Math.round(100*Math.min(this.maxTooltipWidth/v.width,this.maxTooltipHeight/v.height))/100),v=this.graph2.getGraphBounds()):(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="scale("+f+")",this.graph2.view.getDrawPane().ownerSVGElement.style.transformOrigin="0 0",v.width*=f,v.height*=f)):mxClient.NO_FO||(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="");f=v.width+2*this.tooltipBorder+4;e=v.height+2*this.tooltipBorder;this.tooltip.style.overflow=+1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(p.includeDescendants(b),u?p.currentVertexStyle:p.defaultVertexStyle,u?p.currentEdgeStyle:p.defaultEdgeStyle,null,p.pasteEdgeStyle),this.graph2.addCells(b));mxClient.NO_FO=d;u=this.graph2.getGraphBounds();m&&0<f&&0<e&&(u.width>f||u.height>e)?(f=Math.round(100*Math.min(f/u.width,e/u.height))/+100,mxClient.NO_FO?(this.graph2.view.setScale(Math.round(100*Math.min(this.maxTooltipWidth/u.width,this.maxTooltipHeight/u.height))/100),u=this.graph2.getGraphBounds()):(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="scale("+f+")",this.graph2.view.getDrawPane().ownerSVGElement.style.transformOrigin="0 0",u.width*=f,u.height*=f)):mxClient.NO_FO||(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="");f=u.width+2*this.tooltipBorder+4;e=u.height+2*this.tooltipBorder;this.tooltip.style.overflow="visible";this.tooltip.style.width=f+"px";m=f;this.tooltipTitles&&null!=g&&0<g.length?(null==this.tooltipTitle?(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.style.borderTopStyle="solid",this.tooltipTitle.style.borderTopWidth="1px",this.tooltipTitle.style.textAlign="center",this.tooltipTitle.style.width="100%",this.tooltipTitle.style.overflow="hidden",this.tooltipTitle.style.position="absolute",this.tooltipTitle.style.paddingTop="6px",this.tooltipTitle.style.bottom="6px",this.tooltip.appendChild(this.tooltipTitle)):-this.tooltipTitle.innerText="",this.tooltipTitle.style.display="",mxUtils.write(this.tooltipTitle,g),this.tooltipTitle.setAttribute("title",g),m=Math.min(this.maxTooltipWidth,Math.max(f,this.tooltipTitle.scrollWidth+4)),g=this.tooltipTitle.offsetHeight+10,e+=g,this.tooltipTitle.style.marginTop=2-g+"px"):null!=this.tooltipTitle&&null!=this.tooltipTitle.parentNode&&(this.tooltipTitle.style.display="none");m>f&&(this.tooltip.style.width=m+"px");this.tooltip.style.height=e+"px";g=-Math.round(v.x-this.tooltipBorder)+-(m>f?(m-f)/2:0);f=-Math.round(v.y-this.tooltipBorder);h=null!=h?h:this.getTooltipOffset(a,v);a=h.x;h=h.y;0!=g||0!=f?this.graph2.view.canvas.setAttribute("transform","translate("+g+","+f+")"):this.graph2.view.canvas.removeAttribute("transform");this.tooltip.style.position="absolute";this.tooltip.style.left=a+"px";this.tooltip.style.top=h+"px";mxUtils.fit(this.tooltip,this.tooltipBorder);this.lastCreated=Date.now()};+this.tooltipTitle.innerText="",this.tooltipTitle.style.display="",mxUtils.write(this.tooltipTitle,g),this.tooltipTitle.setAttribute("title",g),m=Math.min(this.maxTooltipWidth,Math.max(f,this.tooltipTitle.scrollWidth+4)),g=this.tooltipTitle.offsetHeight+10,e+=g,this.tooltipTitle.style.marginTop=2-g+"px"):null!=this.tooltipTitle&&null!=this.tooltipTitle.parentNode&&(this.tooltipTitle.style.display="none");m>f&&(this.tooltip.style.width=m+"px");this.tooltip.style.height=e+"px";g=-Math.round(u.x-this.tooltipBorder)++(m>f?(m-f)/2:0);f=-Math.round(u.y-this.tooltipBorder);h=null!=h?h:this.getTooltipOffset(a,u);a=h.x;h=h.y;0!=g||0!=f?this.graph2.view.canvas.setAttribute("transform","translate("+g+","+f+")"):this.graph2.view.canvas.removeAttribute("transform");this.tooltip.style.position="absolute";this.tooltip.style.left=a+"px";this.tooltip.style.top=h+"px";mxUtils.fit(this.tooltip,this.tooltipBorder);this.lastCreated=Date.now()};Sidebar.prototype.showTooltip=function(a,b,f,e,g,d){if(this.enableTooltips&&this.showTooltips&&this.currentElt!=a){null!=this.thread&&(window.clearTimeout(this.thread),this.thread=null);var h=mxUtils.bind(this,function(){this.createTooltip(a,b,f,e,g,d)});null!=this.tooltip&&"none"!=this.tooltip.style.display?h():this.thread=window.setTimeout(h,this.tooltipDelay);this.currentElt=a}};Sidebar.prototype.hideTooltip=function(){null!=this.thread&&(window.clearTimeout(this.thread),this.thread=null);null!=this.tooltip&&(this.tooltip.style.display="none",this.currentElt=null);this.tooltipMouseDown=null};Sidebar.prototype.addDataEntry=function(a,b,f,e,g){null==a&&(a="");null!=e&&(a+=" "+e);return this.addEntry(a,mxUtils.bind(this,function(){return this.createVertexTemplateFromData(g,b,f,e)}))};Sidebar.prototype.addEntries=function(a){for(var b=0;b<a.length;b++)mxUtils.bind(this,function(f){var e=f.data,g=null!=f.title?f.title:"";null!=f.tags&&(g+=" "+f.tags);null!=e&&0<g.length?this.addEntry(g,mxUtils.bind(this,function(){e=this.editorUi.convertDataUri(e);var d="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==f.aspect&&(d+="aspect=fixed;");return this.createVertexTemplate(d+"image="+e,f.w,f.h,"",f.title||"",!1,!1,!0)})):null!=f.xml&&0<g.length&&this.addEntry(g,mxUtils.bind(this,function(){var d=this.editorUi.stringToCells("<"==f.xml.charAt(0)?f.xml:Graph.decompress(f.xml));return this.createVertexTemplateFromCells(d,f.w,f.h,f.title||"",!0,!1,!0)}))})(a[b])};Sidebar.prototype.setCurrentSearchEntryLibrary=function(a,b){this.currentSearchEntryLibrary=null!=a?{id:a,lib:b}:null};Sidebar.prototype.getKeyStyle=function(a){var b=[];if(null!=a){a=a.split(";");for(var f=0;f<a.length;f++){var e=a[f].split("=");1<e.length&&0>mxUtils.indexOf(this.ignoredStyles,e[0])&&b.push(e[0]+"="+e[1])}}return b.join(";")};Sidebar.prototype.addLibForStyle=function(a,b){""!=a&&(null==this.styleToLibs&&(this.styleToLibs={}),null==this.styleToLibs[a]&&(this.styleToLibs[a]=[]),this.styleToLibs[a].push(b))};Sidebar.prototype.getLibsForStyle=function(a){return null!=this.styleToLibs?this.styleToLibs[a]:null};-Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var f=this,e=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,p,k,v,w){if(null!=m)for(p=0;p<m.length;p++)f.addLibForStyle(f.getKeyStyle(m[p].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=e}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g,+Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var f=this,e=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,p,k,u,w){if(null!=m)for(p=0;p<m.length;p++)f.addLibForStyle(f.getKeyStyle(m[p].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=e}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g," ").split(" ");e=[];for(var g={},d=0;d<a.length;d++){null==g[a[d]]&&(g[a[d]]=!0,e.push(a[d]));var h=Editor.soundex(a[d].replace(/\.*\d*$/,""));h!=a[d]&&null==g[h]&&(g[h]=!0,e.push(h))}for(d=0;d<e.length;d++)this.addEntryForTag(e[d],b)}return b};Sidebar.prototype.addEntryForTag=function(a,b){if(null!=a&&1<a.length){var f=this.taglist[a];"object"!==typeof f&&(f={entries:[]},this.taglist[a]=f);f.entries.push(b)}};Sidebar.prototype.isEntryIgnored=function(a,b){b=!b;if(null!=a.parentLibraries&&b)for(var f=0;f<a.parentLibraries.length;f++)if(this.isEntryVisible(a.parentLibraries[f].id)){b=!1;break}return b};-Sidebar.prototype.searchEntries=function(a,b,f,e,g,d){if(null!=this.taglist&&null!=a){var h=a.toLowerCase().split(" ");a=new mxDictionary;g=(f+1)*b;for(var m=[],p=0,k=0;k<h.length;k++){var v=Editor.soundex(h[k].replace(/\.*\d*$/,""));if(0<v.length){m=this.taglist[h[k]];var w=null!=m?m.entries.slice():[];m=this.taglist[v];w=null!=m?w.concat(m.entries):w;v=new mxDictionary;if(0<w.length){m=[];for(var y=0;y<w.length;y++){var C=w[y];if(0==p==(null==a.get(C))&&null==v.get(C)&&(v.put(C,C),!this.isEntryIgnored(C,-d)&&(m.push(C),k==h.length-1&&m.length==g))){e(m.slice(f*b,g),g,!0,h);return}}}else m=[];a=v;p++}}d=m.length;e(m.slice(f*b,(f+1)*b),d,!1,h)}else e([],null,null,h)};Sidebar.prototype.filterTags=function(a){if(null!=a){a=a.split(" ");for(var b=[],f={},e=0;e<a.length;e++)null==f[a[e]]&&(f[a[e]]="1",b.push(a[e]));return b.join(" ")}return null};Sidebar.prototype.cloneCell=function(a,b){a=a.clone();null!=b&&(a.value=b);return a};Sidebar.prototype.showPopupMenuForEntry=function(a,b,f){};+Sidebar.prototype.searchEntries=function(a,b,f,e,g,d){if(null!=this.taglist&&null!=a){var h=a.toLowerCase().split(" ");a=new mxDictionary;g=(f+1)*b;for(var m=[],p=0,k=0;k<h.length;k++){var u=Editor.soundex(h[k].replace(/\.*\d*$/,""));if(0<u.length){m=this.taglist[h[k]];var w=null!=m?m.entries.slice():[];m=this.taglist[u];w=null!=m?w.concat(m.entries):w;u=new mxDictionary;if(0<w.length){m=[];for(var y=0;y<w.length;y++){var C=w[y];if(0==p==(null==a.get(C))&&null==u.get(C)&&(u.put(C,C),!this.isEntryIgnored(C,+d)&&(m.push(C),k==h.length-1&&m.length==g))){e(m.slice(f*b,g),g,!0,h);return}}}else m=[];a=u;p++}}d=m.length;e(m.slice(f*b,(f+1)*b),d,!1,h)}else e([],null,null,h)};Sidebar.prototype.filterTags=function(a){if(null!=a){a=a.split(" ");for(var b=[],f={},e=0;e<a.length;e++)null==f[a[e]]&&(f[a[e]]="1",b.push(a[e]));return b.join(" ")}return null};Sidebar.prototype.cloneCell=function(a,b){a=a.clone();null!=b&&(a.value=b);return a};Sidebar.prototype.showPopupMenuForEntry=function(a,b,f){};Sidebar.prototype.addSearchPalette=function(a){function b(H,S){E=S;H=H.firstChild.nextSibling.nextSibling;S=document.createElement("span");S.style.color="gray";S.innerHTML="Enter";H.appendChild(S)}function f(){k.setAttribute("src",Editor.magnifyImage);k.setAttribute("title",mxResources.get("search"));G.style.display="none";M=p.value="";N()}var e=this.editorUi,g=e.editor.graph,d=document.createElement("div");d.style.visibility="hidden";this.appendChild(d);var h=document.createElement("div");h.className="geSidebar geSearchSidebar";a||(h.style.display="none");var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.textOverflow="clip";m.style.cursor="default";var p=document.createElement("input");p.setAttribute("id","geOmniSearch");p.setAttribute("placeholder",mxResources.get("typeSlashToSearch"));p.setAttribute("type","text");m.appendChild(p);var k=document.createElement("img");k.setAttribute("src",Editor.magnifyImage);k.setAttribute("title",mxResources.get("search"));k.className=-"geAdaptiveAsset";m.appendChild(k);h.appendChild(m);var v=!1;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(H){v=!1;mxClient.IS_TOUCH||mxEvent.getSource(H)!=p||document.activeElement==p||(p.focus(),mxClient.IS_GC||mxClient.IS_FF?p.select():document.execCommand("selectAll",!1,null),v=!0)}),mxUtils.bind(this,function(H){mxEvent.getSource(H)==p&&v&&mxEvent.consume(H)}),mxUtils.bind(this,function(H){v&&(mxEvent.consume(H),v=!1)}));var w=[],y=mxUtils.bind(this,function(H,S){e.hideCurrentMenu();+"geAdaptiveAsset";m.appendChild(k);h.appendChild(m);var u=!1;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(H){u=!1;mxClient.IS_TOUCH||mxEvent.getSource(H)!=p||document.activeElement==p||(p.focus(),mxClient.IS_GC||mxClient.IS_FF?p.select():document.execCommand("selectAll",!1,null),u=!0)}),mxUtils.bind(this,function(H){mxEvent.getSource(H)==p&&u&&mxEvent.consume(H)}),mxUtils.bind(this,function(H){u&&(mxEvent.consume(H),u=!1)}));var w=[],y=mxUtils.bind(this,function(H,S){e.hideCurrentMenu();mxUtils.remove(H,w);w.unshift(H);5<w.length&&w.pop();H.funct.apply(this,S);p.value=null}),C="about deleteAll showBoundingBox createSidebarEntry downloadDesktop toggleGoogleFonts".split(" "),D=mxUtils.bind(this,function(H){var S=null,ea;for(ea in e.actions.actions){var la=0>C.indexOf(ea)&&"test"!=ea.substring(0,4)?e.actions.get(ea):null;if(null!=la&&la.isEnabled()&&la.visible){if(ea.toLowerCase()==H)return la;for(var O=H.toLowerCase().split(" "),V=0,Y=0;Y<O.length;Y++)0==O[Y].length?V++:(0<=ea.toLowerCase().indexOf(O[Y])||0<=la.getTitle().toLowerCase().indexOf(O[Y]))&&V++;V==O.length&&(0>w.indexOf(S)||null!=S&&!S.isEnabled())&&(S=la)}}return S}),E=null;e.addMenuHandler(p,mxUtils.bind(this,function(H,S){function ea(ia){if(null!=ia&&ia.visible){var ta=H.addItem(ia.getTitle(),null,function(){y(ia,arguments)},S,null,ia.isEnabled());ia.toggleAction&&ia.isSelected()&&H.addCheckmark(ta,Editor.checkmarkImage);null!=E||!ia.isEnabled()||0!=p.value.length&&V!=ia||b(ta,function(){y(ia,arguments);g.container.focus()})}}var la=p.value.toLowerCase();E=null;var O=H.addItem(mxResources.get("searchShapes"),null,mxUtils.bind(this,function(){ca()}),S);b(O,function(){ca()});H.addItem(mxResources.get("findInDiagram"),null,mxUtils.bind(this,function(){e.hideCurrentMenu();e.showSearchWindow(!0,p.value);p.value=""}),S);Editor.enableChatGpt&&!e.isOffline()&&e.isOwnGDriveDomain()&&e.isExternalDataComms()&&"draw.io"==e.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&H.addItem(mxResources.get("generate"),null,mxUtils.bind(this,function(){e.openTemplateDialog(encodeURIComponent(p.value));p.value=""}),S);!e.isOffline()&&e.isOwnGDriveDomain()&&e.isExternalDataComms()&&H.addItem(mxResources.get("help"),null,mxUtils.bind(this,function(){e.searchHelp(p.value);p.value=""}),S);H.addSeparator();var V=0<p.value.length?D(la):null;ea(V);for(O=0;O<w.length;O++)w[O]!=V&&ea(w[O]);if(0<la.length&&null!=e.pages)for(H.addSeparator(),O=0;O<e.pages.length&&!function(ia){if(null!=ia.getName()&&0<=ia.getName().toLowerCase().indexOf(la)){var ta=function(){e.selectPage(ia);g.container.focus();p.value=""},aa=H.addItem(ia.getName()+" ("+mxResources.get("page")+")",null,ta,S);null==E&&b(aa,ta);return!0}return!1}(e.pages[O]);O++);if(0<la.length&&null!=e.sidebar&&null!=e.sidebar.entries)for(H.addSeparator(),O=0;O<e.sidebar.entries.length;O++)for(var Y=e.sidebar.entries[O].entries,ha=0;ha<Y.length;ha++)(function(ia){var ta=e.sidebar.getConfigurationById(ia.id),aa=ia.title.toLowerCase().split(" ");null!=ta&&0<=mxUtils.indexOf(aa,la)&&(aa=function(){var P=e.sidebar.showPalettes(ta.prefix||"",ta.libs||[ta.id],!0);p.value="";null!=P&&1<P.length&&(null==P[1].firstChild||null!=P[1].firstChild.firstChild&&"none"!=P[1].firstChild.style.display||P[0].click(),P[0].scrollIntoView({behavior:"smooth"}))},ia=H.addItem(ia.title+" ("+mxResources.get("openLibrary")+")",null,aa,S),null==E&&b(ia,aa));return!0})(Y[ha])}),null,!0);var G=document.createElement("div");G.style.display="none";G.style.paddingTop="8px";G.style.alignItems="center";G.style.justifyContent="center";-var J=mxUtils.button(mxResources.get("moreResults"),function(){ca()});J.setAttribute("title",mxResources.get("moreResults"));J.className="geBtn gePrimaryBtn";J.style.borderRadius="16px";J.style.padding="8px 12px";G.appendChild(J);h.appendChild(G);var M="",Q=!1,L=!1,W=0,X={},T=12,N=mxUtils.bind(this,function(){Q=!1;this.currentSearch=null;for(var H=h.firstChild;null!=H;){var S=H.nextSibling;H!=m&&H!=G&&H.parentNode.removeChild(H);H=S}});mxEvent.addListener(k,"click",function(){k.getAttribute("src")!=-Editor.magnifyImage&&f();p.focus()});var ca=mxUtils.bind(this,function(){e.hideCurrentMenu();T=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=p.value){if(null!=G.parentNode&&(M!=p.value&&(N(),M=p.value,X={},L=!1,W=0),!Q&&!L)){J.setAttribute("disabled","true");G.style.display="flex";J.style.cursor="wait";J.innerHTML="";mxUtils.write(J,mxResources.get("loading")+"...");Q=!0;var H={};this.currentSearch=H;try{this.searchEntries(M,T,W,mxUtils.bind(this,+var J=mxUtils.button(mxResources.get("moreResults"),function(){ca()});J.setAttribute("title",mxResources.get("moreResults"));J.className="geBtn gePrimaryBtn";J.style.borderRadius="16px";J.style.padding="8px 12px";G.appendChild(J);h.appendChild(G);var M="",Q=!1,K=!1,W=0,X={},T=12,N=mxUtils.bind(this,function(){Q=!1;this.currentSearch=null;for(var H=h.firstChild;null!=H;){var S=H.nextSibling;H!=m&&H!=G&&H.parentNode.removeChild(H);H=S}});mxEvent.addListener(k,"click",function(){k.getAttribute("src")!=+Editor.magnifyImage&&f();p.focus()});var ca=mxUtils.bind(this,function(){e.hideCurrentMenu();T=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=p.value){if(null!=G.parentNode&&(M!=p.value&&(N(),M=p.value,X={},K=!1,W=0),!Q&&!K)){J.setAttribute("disabled","true");G.style.display="flex";J.style.cursor="wait";J.innerHTML="";mxUtils.write(J,mxResources.get("loading")+"...");Q=!0;var H={};this.currentSearch=H;try{this.searchEntries(M,T,W,mxUtils.bind(this,function(S,ea,la,O){if(this.currentSearch==H){S=null!=S?S:[];Q=!1;W++;this.insertSearchHint(h,M,T,W,S,ea,la,O);0==S.length&&1==W&&(M="");null!=G.parentNode&&G.parentNode.removeChild(G);for(ea=0;ea<S.length;ea++)mxUtils.bind(this,function(V){try{var Y=V();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(V,!1)&&(Y.style.opacity=this.closedLibraryOpacity);null==X[Y.innerHTML]?(X[Y.innerHTML]=null!=V.parentLibraries?V.parentLibraries.slice():[],h.appendChild(Y)):null!=V.parentLibraries&&(X[Y.innerHTML]=X[Y.innerHTML].concat(V.parentLibraries));mxEvent.addGestureListeners(Y,null,null,mxUtils.bind(this,function(ha){var ia=X[Y.innerHTML];mxEvent.isPopupTrigger(ha)&&this.showPopupMenuForEntry(Y,ia,ha)}));mxEvent.disableContextMenu(Y)}catch(ha){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(ha.stack)):console.error(ha))}})(S[ea]);la?(J.removeAttribute("disabled"),J.innerHTML="",mxUtils.write(J,mxResources.get("moreResults"))):-(J.innerHTML=mxResources.get("reset"),G.style.display="none",L=!0);J.style.cursor="";h.appendChild(G)}}),mxUtils.bind(this,function(){J.style.cursor=""}),this.searchClosedLibraries)}catch(S){e.handleError(S)}}}else N(),M=p.value="",X={},G.style.display="none",L=!1,p.focus()});this.searchShapes=function(H){p.value=H;ca()};mxEvent.addListener(p,"keydown",mxUtils.bind(this,function(H){13==H.keyCode&&null!=E?(E(H,H),mxEvent.consume(H)):9==H.keyCode?(g.container.focus(),mxEvent.consume(H)):27==H.keyCode&&-(f(),mxEvent.consume(H))}));a=mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){""==p.value?(k.setAttribute("src",Editor.magnifyImage),k.setAttribute("title",mxResources.get("search"))):(k.setAttribute("src",Editor.crossImage),k.setAttribute("title",mxResources.get("reset")));""==p.value?(L=!0,G.style.display="none"):p.value!=M?(G.style.display="none",L=!1):Q||(G.style.display=L?"none":"flex")}),0)});mxEvent.addListener(p,"keyup",a);mxEvent.addListener(p,"paste",a);mxEvent.addListener(p,+(J.innerHTML=mxResources.get("reset"),G.style.display="none",K=!0);J.style.cursor="";h.appendChild(G)}}),mxUtils.bind(this,function(){J.style.cursor=""}),this.searchClosedLibraries)}catch(S){e.handleError(S)}}}else N(),M=p.value="",X={},G.style.display="none",K=!1,p.focus()});this.searchShapes=function(H){p.value=H;ca()};mxEvent.addListener(p,"keydown",mxUtils.bind(this,function(H){13==H.keyCode&&null!=E?(E(H,H),mxEvent.consume(H)):9==H.keyCode?(g.container.focus(),mxEvent.consume(H)):27==H.keyCode&&+(f(),mxEvent.consume(H))}));a=mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){""==p.value?(k.setAttribute("src",Editor.magnifyImage),k.setAttribute("title",mxResources.get("search"))):(k.setAttribute("src",Editor.crossImage),k.setAttribute("title",mxResources.get("reset")));""==p.value?(K=!0,G.style.display="none"):p.value!=M?(G.style.display="none",K=!1):Q||(G.style.display=K?"none":"flex")}),0)});mxEvent.addListener(p,"keyup",a);mxEvent.addListener(p,"paste",a);mxEvent.addListener(p,"cut",a);mxEvent.addListener(p,"mousedown",function(H){H.stopPropagation&&H.stopPropagation();H.cancelBubble=!0});mxEvent.addListener(p,"selectstart",function(H){H.stopPropagation&&H.stopPropagation();H.cancelBubble=!0});a=document.createElement("div");a.appendChild(h);this.appendChild(a);this.palettes.search=[d,a]};Sidebar.prototype.insertSearchHint=function(a,b,f,e,g,d,h,m){0==g.length&&1==e&&(f=document.createElement("div"),f.className="geSidebarText",b=mxResources.get("noResultsFor",[b]),f.setAttribute("title",b),mxUtils.write(f,b),a.appendChild(f))};Sidebar.prototype.addGeneralPalette=function(a){this.setCurrentSearchEntryLibrary("general","general");var b=this.editorUi.editor.graph,f=this,e=parseInt(this.initialDefaultVertexStyle.fontSize);e=isNaN(e)?"":"fontSize="+Math.min(16,e)+";";var g=b.appendFontSize("edgeLabel;resizable=0;html=1;",b.edgeFontSize),d=new mxCell("List Item",new mxGeometry(0,0,80,30),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;"+@@ -2457,23 +2458,23 @@ d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new0,"Use","Dependency",null,"uml dependency use"),this.createEdgeTemplateEntry("endArrow=block;endSize=16;endFill=0;html=1;",160,0,"Extends","Generalization",null,"uml generalization extend"),this.createEdgeTemplateEntry("endArrow=block;startArrow=block;endFill=1;startFill=1;html=1;",160,0,"","Association 2",null,"uml association"),this.createEdgeTemplateEntry("endArrow=open;startArrow=circlePlus;endFill=0;startFill=0;endSize=8;html=1;",160,0,"","Inner Class",null,"uml inner class"),this.createEdgeTemplateEntry("endArrow=open;startArrow=cross;endFill=0;startFill=0;endSize=8;startSize=10;html=1;",160,0,"","Terminate",null,"uml terminate"),this.createEdgeTemplateEntry("endArrow=block;dashed=1;endFill=0;endSize=12;html=1;",160,0,"","Implementation",null,"uml realization implementation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=0;endSize=24;html=1;",160,0,"","Aggregation 2",null,"uml aggregation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=1;endSize=24;html=1;",160,0,"","Composition 2",null,"uml composition"),this.createEdgeTemplateEntry("endArrow=open;endFill=1;endSize=12;html=1;",160,0,"","Association 3",null,"uml association")];this.addPaletteFunctions("uml",mxResources.get("uml"),a||!1,g);this.setCurrentSearchEntryLibrary()};Sidebar.prototype.createTitle=function(a){var b=document.createElement("a");b.setAttribute("title",mxResources.get("sidebarTooltip"));b.className="geTitle";var f=document.createElement("span");mxUtils.write(f,a);b.appendChild(f);return b};-Sidebar.prototype.createThumb=function(a,b,f,e,g,d,h,m,p,k,v,w){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #ffffff)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(var(--ge-panel-color), var(--ge-dark-panel-color))";this.graph.view.scaleAndTranslate(null!=w?w:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==w&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/+Sidebar.prototype.createThumb=function(a,b,f,e,g,d,h,m,p,k,u,w){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #ffffff)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(var(--ge-panel-color), var(--ge-dark-panel-color))";this.graph.view.scaleAndTranslate(null!=w?w:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==w&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/a.width,(f-2*this.thumbBorder)/a.height))/100,this.graph.view.scaleAndTranslate(k,(b-a.width*k)/2/k-a.x,(f-a.height*k)/2/k-a.y));this.graph.dialect!=mxConstants.DIALECT_SVG||mxClient.NO_FO||null==this.graph.view.getCanvas().ownerSVGElement?(k=this.graph.container.cloneNode(!1),k.innerHTML=this.graph.container.innerHTML):k=this.graph.view.getCanvas().ownerSVGElement.cloneNode(!0);this.graph.getModel().clear();this.graph.view.scaleAndTranslate(1,0,0);mxClient.NO_FO=d;k.style.position="relative";k.style.overflow=-null!=w?"visible":"hidden";k.style.left=(null!=v?v:this.thumbBorder-1)+"px";k.style.top=k.style.left;k.style.width=b+"px";k.style.height=f+"px";k.style.visibility="";k.style.minWidth="";k.style.minHeight="";this.disablePointerEvents(k);e.appendChild(k);this.sidebarTitles&&null!=g&&0!=h&&(e.style.height=this.thumbHeight+0+this.sidebarTitleSize+8+"px",b=document.createElement("div"),b.style.color=Editor.isDarkMode()?"#A0A0A0":"#303030",b.style.fontSize=this.sidebarTitleSize+"px",b.style.textAlign="center",+null!=w?"visible":"hidden";k.style.left=(null!=u?u:this.thumbBorder-1)+"px";k.style.top=k.style.left;k.style.width=b+"px";k.style.height=f+"px";k.style.visibility="";k.style.minWidth="";k.style.minHeight="";this.disablePointerEvents(k);e.appendChild(k);this.sidebarTitles&&null!=g&&0!=h&&(e.style.height=this.thumbHeight+0+this.sidebarTitleSize+8+"px",b=document.createElement("div"),b.style.color=Editor.isDarkMode()?"#A0A0A0":"#303030",b.style.fontSize=this.sidebarTitleSize+"px",b.style.textAlign="center",b.style.whiteSpace="nowrap",b.style.overflow="hidden",b.style.textOverflow="ellipsis",mxClient.IS_IE&&(b.style.height=this.sidebarTitleSize+12+"px"),b.style.paddingTop="4px",mxUtils.write(b,g),e.appendChild(b));return a};Sidebar.prototype.createSection=function(a){return mxUtils.bind(this,function(){var b=document.createElement("div");b.setAttribute("title",a);b.style.textOverflow="ellipsis";b.style.whiteSpace="nowrap";b.style.textAlign="center";b.style.overflow="hidden";b.style.width="100%";b.style.padding="14px 0";mxUtils.write(b,a);return b})};-Sidebar.prototype.createItem=function(a,b,f,e,g,d,h,m,p,k,v,w,y,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;v=null!=v?v:this.thumbHeight;var D=document.createElement("a"),E=2*this.thumbBorder;D.style.width=k+E+"px";D.style.height=v+E+"px";mxEvent.addListener(D,"click",function(J){mxEvent.consume(J)});var G=new mxRectangle(0,0,g,d);null!=a&&0<a.length?(E=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(E),this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),-null!=w?(D.className="geButton",D.style.backgroundImage="url("+w+")",D.style.backgroundRepeat="no-repeat",D.style.backgroundPosition="center",D.style.backgroundSize="24px 24px"):(D.className="geItem",this.createThumb(E,k,v,D,b,f,e,g,d)),1<a.length||a[0].vertex?(e=this.createDragSource(D,this.createDropHandler(a,!0,h,G,y,C),this.createDragPreview(g,d),a,G,y),this.addClickHandler(D,e,a,p,y),e.isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guidesEnabled})):+Sidebar.prototype.createItem=function(a,b,f,e,g,d,h,m,p,k,u,w,y,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;u=null!=u?u:this.thumbHeight;var D=document.createElement("a"),E=2*this.thumbBorder;D.style.width=k+E+"px";D.style.height=u+E+"px";mxEvent.addListener(D,"click",function(J){mxEvent.consume(J)});var G=new mxRectangle(0,0,g,d);null!=a&&0<a.length?(E=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(E),this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),+null!=w?(D.className="geButton",D.style.backgroundImage="url("+w+")",D.style.backgroundRepeat="no-repeat",D.style.backgroundPosition="center",D.style.backgroundSize="24px 24px"):(D.className="geItem",this.createThumb(E,k,u,D,b,f,e,g,d)),1<a.length||a[0].vertex?(e=this.createDragSource(D,this.createDropHandler(a,!0,h,G,y,C),this.createDragPreview(g,d),a,G,y),this.addClickHandler(D,e,a,p,y),e.isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guidesEnabled})):null!=a[0]&&a[0].edge&&(e=this.createDragSource(D,this.createDropHandler(a,!1,h,G,y,C),this.createDragPreview(g,d),a,G,y),this.addClickHandler(D,e,a,p)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(D,null,mxUtils.bind(this,function(J){mxEvent.isMouseEvent(J)&&this.showTooltip(D,a,G.width,G.height,b,f)}))):(D.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",D.setAttribute("title",b));return D};-Sidebar.prototype.createDropHandler=function(a,b,f,e,g,d){f=null!=f?f:!0;return mxUtils.bind(this,function(h,m,p,k,v,w){for(w=w?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=w&&w!=this.container;)w=w.parentNode;if(null==w&&h.isEnabled()){a=h.getImportableCells(a);if(0<a.length){h.stopEditing();w=null==p||mxEvent.isAltDown(m)?!1:h.isValidDropTarget(p,a,m);var y=null;null==p||w||(p=null);if(!h.isCellLocked(p||-h.getDefaultParent())){h.model.beginUpdate();try{k=Math.round(k);v=Math.round(v);if(b&&h.isSplitTarget(p,a,m)){var C=h.view.scale,D=h.view.translate,E=(k+D.x)*C,G=(v+D.y)*C,J=h.cloneCells(a);h.splitEdge(p,J,null,k-e.width/2,v-e.height/2,E,G);y=J}else if(0<a.length&&(y=h.importCells(a,k,v,p),h.model.isVertex(d)&&1==y.length&&h.model.isVertex(y[0]))){var M=h.insertEdge(h.model.getParent(d),null,"",d,y[0],h.createCurrentEdgeStyle());h.applyNewEdgeStyle(d,[M]);y.push(M);h.connectionHandler.insertBeforeSource&&-h.insertEdgeBeforeCell(M,d)}if(null!=h.layoutManager){var Q=h.layoutManager.getLayout(p);if(null!=Q){C=h.view.scale;D=h.view.translate;E=(k+D.x)*C;G=(v+D.y)*C;for(var L=0;L<y.length;L++)Q.moveCell(y[L],E,G)}}!f||null!=m&&mxEvent.isShiftDown(m)||h.fireEvent(new mxEventObject("cellsInserted","cells",y));for(L=0;L<y.length;L++)h.model.isVertex(y[L])&&h.isAutoSizeCell(y[L])&&h.updateCellSize(y[L])}catch(W){this.editorUi.handleError(W)}finally{h.model.endUpdate()}null!=y&&0<y.length&&(h.scrollCellToVisible(y[0]),+Sidebar.prototype.createDropHandler=function(a,b,f,e,g,d){f=null!=f?f:!0;return mxUtils.bind(this,function(h,m,p,k,u,w){for(w=w?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=w&&w!=this.container;)w=w.parentNode;if(null==w&&h.isEnabled()){a=h.getImportableCells(a);if(0<a.length){h.stopEditing();w=null==p||mxEvent.isAltDown(m)?!1:h.isValidDropTarget(p,a,m);var y=null;null==p||w||(p=null);if(!h.isCellLocked(p||+h.getDefaultParent())){h.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&h.isSplitTarget(p,a,m)){var C=h.view.scale,D=h.view.translate,E=(k+D.x)*C,G=(u+D.y)*C,J=h.cloneCells(a);h.splitEdge(p,J,null,k-e.width/2,u-e.height/2,E,G);y=J}else if(0<a.length&&(y=h.importCells(a,k,u,p),h.model.isVertex(d)&&1==y.length&&h.model.isVertex(y[0]))){var M=h.insertEdge(h.model.getParent(d),null,"",d,y[0],h.createCurrentEdgeStyle());h.applyNewEdgeStyle(d,[M]);y.push(M);h.connectionHandler.insertBeforeSource&&+h.insertEdgeBeforeCell(M,d)}if(null!=h.layoutManager){var Q=h.layoutManager.getLayout(p);if(null!=Q){C=h.view.scale;D=h.view.translate;E=(k+D.x)*C;G=(u+D.y)*C;for(var K=0;K<y.length;K++)Q.moveCell(y[K],E,G)}}!f||null!=m&&mxEvent.isShiftDown(m)||h.fireEvent(new mxEventObject("cellsInserted","cells",y));for(K=0;K<y.length;K++)h.model.isVertex(y[K])&&h.isAutoSizeCell(y[K])&&h.updateCellSize(y[K])}catch(W){this.editorUi.handleError(W)}finally{h.model.endUpdate()}null!=y&&0<y.length&&(h.scrollCellToVisible(y[0]),h.setSelectionCells(y));(g||h.editAfterInsert&&null!=m&&mxEvent.isMouseEvent(m)&&null!=y&&1==y.length)&&window.setTimeout(function(){h.startEditing(y[0])},0)}}mxEvent.consume(m)}})};Sidebar.prototype.createDragPreview=function(a,b){var f=document.createElement("div");f.className="geDragPreview";f.style.width=a+"px";f.style.height=b+"px";return f};-Sidebar.prototype.dropAndConnect=function(a,b,f,e,g,d,h){var m=this.editorUi.editor.graph,p=m.model.isEdge(a)||null!=d?d:h;p=this.getDropAndConnectGeometry(a,b[p],f,b);var k=[];if(null!=p){var v=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),y=m.getCellGeometry(b[e]),C=m.model.getParent(a),D=!0;if(null!=m.layoutManager){var E=m.layoutManager.getLayout(C);null!=E&&E.constructor==mxStackLayout&&(D=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=E=0;if(null!=k){var J=k.origin;E=J.x;+Sidebar.prototype.dropAndConnect=function(a,b,f,e,g,d,h){var m=this.editorUi.editor.graph,p=m.model.isEdge(a)||null!=d?d:h;p=this.getDropAndConnectGeometry(a,b[p],f,b);var k=[];if(null!=p){var u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),y=m.getCellGeometry(b[e]),C=m.model.getParent(a),D=!0;if(null!=m.layoutManager){var E=m.layoutManager.getLayout(C);null!=E&&E.constructor==mxStackLayout&&(D=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=E=0;if(null!=k){var J=k.origin;E=J.x;G=J.y}var M=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&D),Q=m.getCellAt((p.x+E+m.view.translate.x)*m.view.scale,(p.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(ca,H,S){return!m.isContainer(ca.cell)});if(null!=Q&&Q!=C)k=m.view.getState(Q),null!=k&&(J=k.origin,C=Q,M=!0,m.model.isEdge(a)||(p.x-=J.x-E,p.y-=J.y-G));else if(!D||m.isTableRow(a)||m.isTableCell(a))p.x+=E,p.y+=G;E=y.x;G=y.y;m.model.isEdge(b[e])&&(G=E=0);k=b=m.importCells(b,p.x-(M?E:0),p.y--(M?G:0),M?C:null);if(m.model.isEdge(a))m.model.setTerminal(a,b[e],f==mxConstants.DIRECTION_NORTH),null!=h&&null!=d&&(m.model.remove(b[h]),m.updateShapes(b[h],[a]));else if(m.model.isEdge(b[e])&&null==d){m.model.setTerminal(b[e],a,!0);var L=m.getCellGeometry(b[e]),W=null!=L?L.getTerminalPoint(!0):null;L.points=null;if(null!=W)for(f=0;f<b.length;f++)if(m.model.isEdge(b[f])&&f!=e){var X=m.getCellGeometry(b[f]),T=null!=X?X.getTerminalPoint(!0):null;null!=T&&T.x==W.x&&T.y==W.y&&m.model.setTerminal(b[f],-a,!0)}if(null!=L.getTerminalPoint(!1))L.setTerminalPoint(p.getTerminalPoint(!1),!1);else if(M&&m.model.isVertex(C)){var N=m.view.getState(C);J=N.cell!=m.view.currentRoot?N.origin:new mxPoint(0,0);m.cellsMoved(b,J.x,J.y,null,null,!0)}}else null!=d&&(y=m.getCellGeometry(b[d]),E=p.x-Math.round(y.x),G=p.y-Math.round(y.y),p.x=Math.round(y.x),p.y=Math.round(y.y),m.model.setGeometry(b[e],p),m.cellsMoved(b,E,G,null,null,!0),k=b.slice(),v=1==k.length?k[0]:null,null!=h?m.model.setTerminal(b[h],a,!0):b.push(m.insertEdge(null,-null,"",a,b[e],m.createCurrentEdgeStyle())));null!=g&&mxEvent.isShiftDown(g)||m.fireEvent(new mxEventObject("cellsInserted","cells",b))}catch(ca){this.editorUi.handleError(ca)}finally{m.model.endUpdate()}m.editAfterInsert&&null!=g&&mxEvent.isMouseEvent(g)&&null!=v&&window.setTimeout(function(){m.startEditing(v)},0)}null!=h&&1<k.length&&k.splice(h,1);return k};+(M?G:0),M?C:null);if(m.model.isEdge(a))m.model.setTerminal(a,b[e],f==mxConstants.DIRECTION_NORTH),null!=h&&null!=d&&(m.model.remove(b[h]),m.updateShapes(b[h],[a]));else if(m.model.isEdge(b[e])&&null==d){m.model.setTerminal(b[e],a,!0);var K=m.getCellGeometry(b[e]),W=null!=K?K.getTerminalPoint(!0):null;K.points=null;if(null!=W)for(f=0;f<b.length;f++)if(m.model.isEdge(b[f])&&f!=e){var X=m.getCellGeometry(b[f]),T=null!=X?X.getTerminalPoint(!0):null;null!=T&&T.x==W.x&&T.y==W.y&&m.model.setTerminal(b[f],+a,!0)}if(null!=K.getTerminalPoint(!1))K.setTerminalPoint(p.getTerminalPoint(!1),!1);else if(M&&m.model.isVertex(C)){var N=m.view.getState(C);J=N.cell!=m.view.currentRoot?N.origin:new mxPoint(0,0);m.cellsMoved(b,J.x,J.y,null,null,!0)}}else null!=d&&(y=m.getCellGeometry(b[d]),E=p.x-Math.round(y.x),G=p.y-Math.round(y.y),p.x=Math.round(y.x),p.y=Math.round(y.y),m.model.setGeometry(b[e],p),m.cellsMoved(b,E,G,null,null,!0),k=b.slice(),u=1==k.length?k[0]:null,null!=h?m.model.setTerminal(b[h],a,!0):b.push(m.insertEdge(null,+null,"",a,b[e],m.createCurrentEdgeStyle())));null!=g&&mxEvent.isShiftDown(g)||m.fireEvent(new mxEventObject("cellsInserted","cells",b))}catch(ca){this.editorUi.handleError(ca)}finally{m.model.endUpdate()}m.editAfterInsert&&null!=g&&mxEvent.isMouseEvent(g)&&null!=u&&window.setTimeout(function(){m.startEditing(u)},0)}null!=h&&1<k.length&&k.splice(h,1);return k};Sidebar.prototype.getDropAndConnectGeometry=function(a,b,f,e){var g=this.editorUi.editor.graph,d=g.view,h=1<e.length,m=g.view.getState(a),p=g.getCellGeometry(a);e=g.getCellGeometry(b);null!=m&&null!=p&&null!=e&&(e=e.clone(),g.model.isEdge(a)?(p=m.absolutePoints,b=p[0],g=p[p.length-1],f==mxConstants.DIRECTION_NORTH?(e.x=b.x/d.scale-d.translate.x-e.width/2,e.y=b.y/d.scale-d.translate.y-e.height/2):(e.x=g.x/d.scale-d.translate.x-e.width/2,e.y=g.y/d.scale-d.translate.y-e.height/2)):(p.relative&&(p=p.clone(),p.x=(m.x-d.translate.x)/d.scale,p.y=(m.y-d.translate.y)/d.scale),d=g.defaultEdgeLength,g.model.isEdge(b)&&null!=e.getTerminalPoint(!0)&&null!=e.getTerminalPoint(!1)?(b=e.getTerminalPoint(!0),g=e.getTerminalPoint(!1),d=g.x-b.x,b=g.y-b.y,d=Math.sqrt(d*d+b*b),e.x=p.getCenterX(),e.y=p.getCenterY(),e.width=1,e.height=1,f==mxConstants.DIRECTION_NORTH?(e.height=d,e.y=p.y-d,e.setTerminalPoint(new mxPoint(e.x,e.y),!1)):f==mxConstants.DIRECTION_EAST?(e.width=d,e.x=p.x+p.width,e.setTerminalPoint(new mxPoint(e.x+e.width,e.y),!1)):f==mxConstants.DIRECTION_SOUTH?(e.height=d,e.y=p.y+p.height,e.setTerminalPoint(new mxPoint(e.x,e.y+e.height),!1)):f==mxConstants.DIRECTION_WEST&&(e.width=d,e.x=p.x-d,e.setTerminalPoint(new mxPoint(e.x,e.y),!1))):(!h&&45<e.width&&45<e.height&&45<p.width&&45<p.height&&(e.width*=p.height/e.height,e.height=p.height),e.x=p.x+p.width/2-e.width/2,e.y=p.y+p.height/2-e.height/2,f==mxConstants.DIRECTION_NORTH?e.y=e.y-p.height/2-e.height/2-d:f==mxConstants.DIRECTION_EAST?e.x=e.x+p.width/2+@@ -2481,69 +2482,69 @@ e.width/2+d:f==mxConstants.DIRECTION_SOUTH?e.y=e.y+p.height/2+e.height/2+d:f==mx2):f==mxConstants.DIRECTION_WEST&&(e.x-=p.getCenterX()+p.width/2,e.y-=p.getCenterY()))))));return e};Sidebar.prototype.isDropStyleEnabled=function(a,b){var f=!0;null!=b&&1==a.length&&(a=this.graph.getCellStyle(a[b]),null!=a&&(f=mxUtils.getValue(a,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(a,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE));return f};Sidebar.prototype.isDropStyleTargetIgnored=function(a){return this.graph.isSwimlane(a.cell)||this.graph.isTableCell(a.cell)||this.graph.isTableRow(a.cell)||this.graph.isTable(a.cell)};Sidebar.prototype.disablePointerEvents=function(a){mxUtils.visitNodes(a,mxUtils.bind(this,function(b){b.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.style&&(b.style.pointerEvents="none",b.removeAttribute("pointer-events"))}))};Sidebar.prototype.createDragSource=function(a,b,f,e,g,d){function h(na,ya){var za=mxUtils.createImage(na.src);za.style.width=na.width+"px";za.style.height=na.height+"px";null!=ya&&za.setAttribute("title",ya);mxUtils.setOpacity(za,na==this.refreshTarget?30:20);za.style.position="absolute";za.style.cursor="crosshair";return za}function m(na,ya,za,Ka){null!=Ka.parentNode&&(mxUtils.contains(za,na,ya)?(mxUtils.setOpacity(Ka,100),V=Ka):mxUtils.setOpacity(Ka,Ka==H?30:20));return za}var p=this.editorUi,k=-p.editor.graph,v=null,w=null,y=this;d=0;for(var C=this.livePreview,D=0;D<e.length&&C;D++)d+=k.model.getDescendants(e[D]).length,C=d<k.graphHandler.maxLivePreview;for(D=0;D<e.length&&(null==w&&k.model.isVertex(e[D])?w=D:null==v&&k.model.isEdge(e[D])&&null==k.model.getTerminal(e[D],!0)&&(v=D),null==w||null==v);D++);var E=this.isDropStyleEnabled(e,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(na,ya,za,Ka,Qa){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=e&&null!=-L&&V==H){var Ia=na.isCellSelected(L.cell)?na.getSelectionCells():[L.cell];na.updateShapes(na.model.isEdge(L.cell)?e[0]:e[w],Ia,!0);na.setSelectionCells(Ia)}else null!=e&&null!=V&&null!=M&&V!=H?(Ia=na.model.isEdge(M.cell)||null==v?w:v,na.setSelectionCells(this.dropAndConnect(M.cell,e,O,Ia,ya,w,v))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(na.view.getState(na.getSelectionCell()))}),f,0,0,k.autoscroll,!0,!0);C&&(G.createDragElement=mxUtils.bind(this,function(){return G.createPreviewElement(this.graph)}),+p.editor.graph,u=null,w=null,y=this;d=0;for(var C=this.livePreview,D=0;D<e.length&&C;D++)d+=k.model.getDescendants(e[D]).length,C=d<k.graphHandler.maxLivePreview;for(D=0;D<e.length&&(null==w&&k.model.isVertex(e[D])?w=D:null==u&&k.model.isEdge(e[D])&&null==k.model.getTerminal(e[D],!0)&&(u=D),null==w||null==u);D++);var E=this.isDropStyleEnabled(e,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(na,ya,za,Ka,Qa){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=e&&null!=+K&&V==H){var Ia=na.isCellSelected(K.cell)?na.getSelectionCells():[K.cell];na.updateShapes(na.model.isEdge(K.cell)?e[0]:e[w],Ia,!0);na.setSelectionCells(Ia)}else null!=e&&null!=V&&null!=M&&V!=H?(Ia=na.model.isEdge(M.cell)||null==u?w:u,na.setSelectionCells(this.dropAndConnect(M.cell,e,O,Ia,ya,w,u))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(na.view.getState(na.getSelectionCell()))}),f,0,0,k.autoscroll,!0,!0);C&&(G.createDragElement=mxUtils.bind(this,function(){return G.createPreviewElement(this.graph)}),G.createPreviewElement=mxUtils.bind(this,function(na){var ya=document.createElement("a");ya.className="geItem";ya.style.overflow="visible";na=na.view.scale;ya.style.width=na*Math.max(1,g.width)+"px";ya.style.height=na*Math.max(1,g.height)+"px";mxUtils.setOpacity(ya,50);var za=k.cloneCells(e);this.graph.pasteCellStyles(k.includeDescendants(za),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);y.createThumb(za,na*Math.max(1,g.width),na*Math.max(1,g.height),ya,null,null,null,null,null,k.shapeBackgroundColor,-0,na);return ya}));var J=G.mouseDown;G.mouseDown=function(na){mxEvent.isPopupTrigger(na)||mxEvent.isMultiTouchEvent(na)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),J.apply(this,arguments))};var M=null,Q=null,L=null,W=!1,X=h(this.triangleUp,mxResources.get("connect")),T=h(this.triangleRight,mxResources.get("connect")),N=h(this.triangleDown,mxResources.get("connect")),ca=h(this.triangleLeft,mxResources.get("connect")),H=h(this.refreshTarget,mxResources.get("replace")),S=null,ea=h(this.roundDrop),+0,na);return ya}));var J=G.mouseDown;G.mouseDown=function(na){mxEvent.isPopupTrigger(na)||mxEvent.isMultiTouchEvent(na)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),J.apply(this,arguments))};var M=null,Q=null,K=null,W=!1,X=h(this.triangleUp,mxResources.get("connect")),T=h(this.triangleRight,mxResources.get("connect")),N=h(this.triangleDown,mxResources.get("connect")),ca=h(this.triangleLeft,mxResources.get("connect")),H=h(this.refreshTarget,mxResources.get("replace")),S=null,ea=h(this.roundDrop),la=h(this.roundDrop),O=mxConstants.DIRECTION_NORTH,V=null,Y=G.createPreviewElement;G.createPreviewElement=function(na){var ya=Y.apply(this,arguments);this.previewElementWidth=ya.style.width;this.previewElementHeight=ya.style.height;ya.style.pointerEvents="none";return ya};var ha=G.dragEnter;G.dragEnter=function(na,ya){null!=p.hoverIcons&&p.hoverIcons.setDisplay("none");ha.apply(this,arguments)};var ia=G.dragExit;G.dragExit=function(na,ya){null!=p.hoverIcons&&p.hoverIcons.setDisplay("");ia.apply(this,-arguments)};G.dragOver=function(na,ya){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=V&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var za=na.view;if(null!=L&&V==H)this.previewElement.style.display="none";else if(null!=M&&null!=V){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ka=na.model.isEdge(M.cell)||null!=w?w:v,Qa=y.getDropAndConnectGeometry(M.cell,e[Ka],O,e),Ia=na.model.isEdge(M.cell)?+arguments)};G.dragOver=function(na,ya){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=V&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var za=na.view;if(null!=K&&V==H)this.previewElement.style.display="none";else if(null!=M&&null!=V){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ka=na.model.isEdge(M.cell)||null!=w?w:u,Qa=y.getDropAndConnectGeometry(M.cell,e[Ka],O,e),Ia=na.model.isEdge(M.cell)?null:na.getCellGeometry(M.cell),Ha=na.getCellGeometry(e[Ka]),ra=na.model.getParent(M.cell),Da=za.translate.x*za.scale,Va=za.translate.y*za.scale;null!=Ia&&!Ia.relative&&na.model.isVertex(ra)&&ra!=za.currentRoot&&(Va=za.getState(ra),Da=Va.x,Va=Va.y);Ia=Ha.x;Ha=Ha.y;na.model.isEdge(e[Ka])&&(Ha=Ia=0);this.previewElement.style.left=(Qa.x-Ia)*za.scale+Da+"px";this.previewElement.style.top=(Qa.y-Ha)*za.scale+Va+"px";1==e.length&&(this.previewElement.style.width=Qa.width*za.scale+"px",this.previewElement.style.height=Qa.height*za.scale+"px",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="none",this.previewElement.className="geDragPreview",mxUtils.setOpacity(this.previewElement,100)));this.previewElement.style.display=""}else null!=G.currentHighlight&&null!=G.currentHighlight.state&&na.model.isEdge(G.currentHighlight.state.cell)?(this.previewElement.style.left=Math.round(parseInt(this.previewElement.style.left)-g.width*za.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)-g.height*za.scale/2)+"px"):(this.previewElement.style.width=this.previewElementWidth,this.previewElement.style.height=this.previewElementHeight,this.previewElement.style.display="",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="",mxUtils.setOpacity(this.previewElement,50),this.previewElement.className=""))}};var ta=(new Date).getTime(),aa=0,P=null,ba=this.editorUi.editor.graph.getCellStyle(e[0]);G.getDropTarget=mxUtils.bind(this,function(na,ya,za,Ka){var Qa=mxEvent.isAltDown(Ka)||null==e?null:na.getCellAt(ya,za,null,null,null,function(Va,Wa,$a){return na.isContainer(Va.cell)&&"0"!=mxUtils.getValue(Va.style,"dropTarget","1")});if(null!=Qa&&!this.graph.isCellConnectable(Qa)&&!this.graph.model.isEdge(Qa)){var Ia=this.graph.getModel().getParent(Qa);this.graph.getModel().isVertex(Ia)&&this.graph.isCellConnectable(Ia)&&(Qa=Ia)}na.isCellLocked(Qa)&&(Qa=null);var Ha=na.view.getState(Qa);Ia=V=null;P!=Ha?(ta=(new Date).getTime(),aa=0,P=Ha,null!=this.updateThread&&window.clearTimeout(this.updateThread),null!=Ha&&(this.updateThread=window.setTimeout(function(){null==V&&(P=Ha,G.getDropTarget(na,ya,za,Ka))},this.dropTargetDelay+10))):aa=(new Date).getTime()-ta;if(E&&2500>aa&&null!=Ha&&!mxEvent.isShiftDown(Ka)&&(mxUtils.getValue(Ha.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)&&(mxUtils.getValue(Ha.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ha.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ha.style,-mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)||1500<aa||na.model.isEdge(Ha.cell))&&aa>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ha)&&(na.model.isVertex(Ha.cell)&&null!=w||na.model.isEdge(Ha.cell)&&na.model.isEdge(e[0]))){if(na.isCellEditable(Ha.cell)){L=Ha;var ra=na.model.isEdge(Ha.cell)?na.view.getPoint(Ha):new mxPoint(Ha.getCenterX(),Ha.getCenterY());ra=new mxRectangle(ra.x-this.refreshTarget.width/2,ra.y-this.refreshTarget.height/-2,this.refreshTarget.width,this.refreshTarget.height);H.style.left=Math.floor(ra.x)+"px";H.style.top=Math.floor(ra.y)+"px";null==S&&(na.container.appendChild(H),S=H.parentNode);m(ya,za,ra,H)}}else null==L||!mxUtils.contains(L,ya,za)||1500<aa&&!mxEvent.isShiftDown(Ka)?(L=null,null!=S&&(H.parentNode.removeChild(H),S=null)):null!=L&&null!=S&&(ra=na.model.isEdge(L.cell)?na.view.getPoint(L):new mxPoint(L.getCenterX(),L.getCenterY()),ra=new mxRectangle(ra.x-this.refreshTarget.width/2,ra.y-this.refreshTarget.height/+mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)||1500<aa||na.model.isEdge(Ha.cell))&&aa>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ha)&&(na.model.isVertex(Ha.cell)&&null!=w||na.model.isEdge(Ha.cell)&&na.model.isEdge(e[0]))){if(na.isCellEditable(Ha.cell)){K=Ha;var ra=na.model.isEdge(Ha.cell)?na.view.getPoint(Ha):new mxPoint(Ha.getCenterX(),Ha.getCenterY());ra=new mxRectangle(ra.x-this.refreshTarget.width/2,ra.y-this.refreshTarget.height/+2,this.refreshTarget.width,this.refreshTarget.height);H.style.left=Math.floor(ra.x)+"px";H.style.top=Math.floor(ra.y)+"px";null==S&&(na.container.appendChild(H),S=H.parentNode);m(ya,za,ra,H)}}else null==K||!mxUtils.contains(K,ya,za)||1500<aa&&!mxEvent.isShiftDown(Ka)?(K=null,null!=S&&(H.parentNode.removeChild(H),S=null)):null!=K&&null!=S&&(ra=na.model.isEdge(K.cell)?na.view.getPoint(K):new mxPoint(K.getCenterX(),K.getCenterY()),ra=new mxRectangle(ra.x-this.refreshTarget.width/2,ra.y-this.refreshTarget.height/2,this.refreshTarget.width,this.refreshTarget.height),m(ya,za,ra,H));if(W&&null!=M&&!mxEvent.isAltDown(Ka)&&null==V){Ia=mxRectangle.fromRectangle(M);if(na.model.isEdge(M.cell)){var Da=M.absolutePoints;null!=ea.parentNode&&(ra=Da[0],Ia.add(m(ya,za,new mxRectangle(ra.x-this.roundDrop.width/2,ra.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),ea)));null!=la.parentNode&&(Da=Da[Da.length-1],Ia.add(m(ya,za,new mxRectangle(Da.x-this.roundDrop.width/2,Da.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),la)))}else ra=mxRectangle.fromRectangle(M),null!=M.shape&&null!=M.shape.boundingBox&&(ra=mxRectangle.fromRectangle(M.shape.boundingBox)),ra.grow(this.graph.tolerance),ra.grow(HoverIcons.prototype.arrowSpacing),Da=this.graph.selectionCellsHandler.getHandler(M.cell),null!=Da&&(ra.x-=Da.horizontalOffset/2,ra.y-=Da.verticalOffset/2,ra.width+=Da.horizontalOffset,ra.height+=Da.verticalOffset,null!=Da.rotationShape&&null!=Da.rotationShape.node&&"hidden"!=Da.rotationShape.node.style.visibility&&"none"!=Da.rotationShape.node.style.display&&null!=Da.rotationShape.boundingBox&&ra.add(Da.rotationShape.boundingBox)),Ia.add(m(ya,za,new mxRectangle(M.getCenterX()-this.triangleUp.width/2,ra.y-this.triangleUp.height,this.triangleUp.width,this.triangleUp.height),X)),Ia.add(m(ya,za,new mxRectangle(ra.x+ra.width,M.getCenterY()-this.triangleRight.height/2,this.triangleRight.width,this.triangleRight.height),T)),Ia.add(m(ya,za,new mxRectangle(M.getCenterX()-this.triangleDown.width/2,ra.y+ra.height,this.triangleDown.width,-this.triangleDown.height),N)),Ia.add(m(ya,za,new mxRectangle(ra.x-this.triangleLeft.width,M.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),ca));null!=Ia&&Ia.grow(10)}O=mxConstants.DIRECTION_NORTH;V==T?O=mxConstants.DIRECTION_EAST:V==N||V==la?O=mxConstants.DIRECTION_SOUTH:V==ca&&(O=mxConstants.DIRECTION_WEST);null!=L&&V==H&&(Ha=L);ra=(null==w||na.isCellConnectable(e[w]))&&(na.model.isEdge(Qa)&&null!=w||na.model.isVertex(Qa)&&na.isCellConnectable(Qa));if(null!=+this.triangleDown.height),N)),Ia.add(m(ya,za,new mxRectangle(ra.x-this.triangleLeft.width,M.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),ca));null!=Ia&&Ia.grow(10)}O=mxConstants.DIRECTION_NORTH;V==T?O=mxConstants.DIRECTION_EAST:V==N||V==la?O=mxConstants.DIRECTION_SOUTH:V==ca&&(O=mxConstants.DIRECTION_WEST);null!=K&&V==H&&(Ha=K);ra=(null==w||na.isCellConnectable(e[w]))&&(na.model.isEdge(Qa)&&null!=w||na.model.isVertex(Qa)&&na.isCellConnectable(Qa));if(null!=M&&5E3<=aa||M!=Ha&&(null==Ia||!mxUtils.contains(Ia,ya,za)||500<aa&&null==V&&ra))if(W=!1,M=5E3>aa&&aa>this.dropTargetDelay||na.model.isEdge(Qa)?Ha:null,null!=M&&ra){Ia=[ea,la,X,T,N,ca];for(ra=0;ra<Ia.length;ra++)null!=Ia[ra].parentNode&&Ia[ra].parentNode.removeChild(Ia[ra]);na.model.isEdge(Qa)?(Da=Ha.absolutePoints,null!=Da&&(ra=Da[0],Da=Da[Da.length-1],ea.style.left=Math.floor(ra.x-this.roundDrop.width/2)+"px",ea.style.top=Math.floor(ra.y-this.roundDrop.height/2)+"px",la.style.left=Math.floor(Da.x-this.roundDrop.width/2)+"px",la.style.top=Math.floor(Da.y-this.roundDrop.height/2)+"px",null==na.model.getTerminal(Qa,!0)&&na.container.appendChild(ea),null==na.model.getTerminal(Qa,!1)&&na.container.appendChild(la))):(ra=mxRectangle.fromRectangle(Ha),null!=Ha.shape&&null!=Ha.shape.boundingBox&&(ra=mxRectangle.fromRectangle(Ha.shape.boundingBox)),ra.grow(this.graph.tolerance),ra.grow(HoverIcons.prototype.arrowSpacing),Da=this.graph.selectionCellsHandler.getHandler(Ha.cell),null!=Da&&(ra.x-=Da.horizontalOffset/2,ra.y-=Da.verticalOffset/2,ra.width+=Da.horizontalOffset,ra.height+=Da.verticalOffset,null!=Da.rotationShape&&null!=Da.rotationShape.node&&"hidden"!=Da.rotationShape.node.style.visibility&&"none"!=Da.rotationShape.node.style.display&&null!=Da.rotationShape.boundingBox&&ra.add(Da.rotationShape.boundingBox)),X.style.left=Math.floor(Ha.getCenterX()-this.triangleUp.width/2)+"px",X.style.top=Math.floor(ra.y-this.triangleUp.height)+"px",T.style.left=Math.floor(ra.x+ra.width)+"px",T.style.top=Math.floor(Ha.getCenterY()-this.triangleRight.height/2)+"px",N.style.left=X.style.left,N.style.top=Math.floor(ra.y+ra.height)+"px",ca.style.left=Math.floor(ra.x-this.triangleLeft.width)+"px",ca.style.top=T.style.top,"eastwest"!=Ha.style.portConstraint&&(na.container.appendChild(X),na.container.appendChild(N)),na.container.appendChild(T),na.container.appendChild(ca));null!=Ha&&(Q=na.selectionCellsHandler.getHandler(Ha.cell),null!=Q&&null!=Q.setHandlesVisible&&Q.setHandlesVisible(!1));W=!0}else for(Ia=[ea,la,X,T,N,ca],ra=0;ra<-Ia.length;ra++)null!=Ia[ra].parentNode&&Ia[ra].parentNode.removeChild(Ia[ra]);W||null==Q||Q.setHandlesVisible(!0);Qa=mxEvent.isAltDown(Ka)&&!mxEvent.isShiftDown(Ka)||null!=L&&V==H?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Qa||null==V&&na.isSplitTarget(Qa,e,Ka)||(Qa=na.getDropTarget(e,Ka,Qa,!0));return Qa});var ma=G.startDrag;G.startDrag=function(na){y.activeDragSource=this;ma.apply(this,arguments)};var Ja=G.stopDrag;G.stopDrag=function(){Ja.apply(this,arguments);for(var na=-[ea,la,H,X,T,N,ca],ya=0;ya<na.length;ya++)null!=na[ya].parentNode&&na[ya].parentNode.removeChild(na[ya]);null!=M&&null!=Q&&Q.reset();V=S=L=M=Q=y.activeDragSource=null};return G};+Ia.length;ra++)null!=Ia[ra].parentNode&&Ia[ra].parentNode.removeChild(Ia[ra]);W||null==Q||Q.setHandlesVisible(!0);Qa=mxEvent.isAltDown(Ka)&&!mxEvent.isShiftDown(Ka)||null!=K&&V==H?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Qa||null==V&&na.isSplitTarget(Qa,e,Ka)||(Qa=na.getDropTarget(e,Ka,Qa,!0));return Qa});var ma=G.startDrag;G.startDrag=function(na){y.activeDragSource=this;ma.apply(this,arguments)};var Ja=G.stopDrag;G.stopDrag=function(){Ja.apply(this,arguments);for(var na=+[ea,la,H,X,T,N,ca],ya=0;ya<na.length;ya++)null!=na[ya].parentNode&&na[ya].parentNode.removeChild(na[ya]);null!=M&&null!=Q&&Q.reset();V=S=K=M=Q=y.activeDragSource=null};return G};Sidebar.prototype.itemClicked=function(a,b,f,e){e=this.editorUi.editor.graph;e.container.focus();if(mxEvent.isAltDown(f)&&1==e.getSelectionCount()){for(var g=b=null,d=0;d<a.length&&(null==g&&e.model.isVertex(a[d])?g=d:null==b&&e.model.isEdge(a[d])&&null==e.model.getTerminal(a[d],!0)&&(b=d),null==g||null==b);d++);d=null==b?g:b;e.setSelectionCells(this.dropAndConnect(e.getSelectionCell(),a,mxEvent.isMetaDown(f)||mxEvent.isControlDown(f)?mxEvent.isShiftDown(f)?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH:mxEvent.isShiftDown(f)?mxConstants.DIRECTION_EAST:mxConstants.DIRECTION_SOUTH,d,f,g,b));e.scrollCellToVisible(e.getSelectionCell())}else mxEvent.isShiftDown(f)&&!e.isSelectionEmpty()?(f=e.getEditableCells(e.getSelectionCells()),e.updateShapes(a[0],f,!0),e.scrollCellToVisible(f)):(a=mxEvent.isAltDown(f)?e.getFreeInsertPoint():e.getCenterInsertPoint(e.getBoundingBoxFromGeometry(a,!0)),b.drop(e,f,null,a.x,a.y,!0))};-Sidebar.prototype.addClickHandler=function(a,b,f,e){var g=b.getGraphForEvent,d=b.mouseDown,h=b.mouseMove,m=b.mouseUp,p=this.editorUi.editor.graph.tolerance,k=!1,v=null,w=this,y=null;b.getGraphForEvent=function(C){return k?g.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);v=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));y=a.style.opacity;k=!1;""==y&&(y="1");null!=this.dragElement&&(this.dragElement.style.display="none")};b.mouseMove=function(C){(k=null!=v&&(Math.abs(v.x--mxEvent.getClientX(C))>p||Math.abs(v.y-mxEvent.getClientY(C))>p))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="");h.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=e&&e(C),mxEvent.isConsumed(C)||w.itemClicked(f,b,C,a)),m.apply(b,arguments),v=null,w.currentElt=a}catch(D){b.reset(),w.editorUi.handleError(D)}}};-Sidebar.prototype.createVertexTemplateEntry=function(a,b,f,e,g,d,h,m){null!=m&&null!=g&&(m+=" "+g);m=null!=m&&0<m.length?m:null!=g?g.toLowerCase():"";return this.addEntry(m,mxUtils.bind(this,function(){return this.createVertexTemplate(a,b,f,e,g,d,h)}))};Sidebar.prototype.createVertexTemplate=function(a,b,f,e,g,d,h,m,p,k,v,w,y,C){a=[new mxCell(null!=e?e:"",new mxGeometry(0,0,b,f),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,f,g,d,h,m,p,k,v,w,y,C)};-Sidebar.prototype.createVertexTemplateFromData=function(a,b,f,e,g,d,h,m){var p=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),v=new mxCodec(k),w=new mxGraphModel;v.decode(k.documentElement,w);p=this.graph.cloneCells(w.root.getChildAt(0).children)}catch(y){e=mxResources.get("error")+": "+y.message}return this.createVertexTemplateFromCells(p,b,f,e,g,d,h,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,f,e,g,d,h,m,p,k,v,w,y,C){return this.createItem(a,e,g,d,b,f,h,m,p,k,v,w,y,C)};+Sidebar.prototype.addClickHandler=function(a,b,f,e){var g=b.getGraphForEvent,d=b.mouseDown,h=b.mouseMove,m=b.mouseUp,p=this.editorUi.editor.graph.tolerance,k=!1,u=null,w=this,y=null;b.getGraphForEvent=function(C){return k?g.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));y=a.style.opacity;k=!1;""==y&&(y="1");null!=this.dragElement&&(this.dragElement.style.display="none")};b.mouseMove=function(C){(k=null!=u&&(Math.abs(u.x-+mxEvent.getClientX(C))>p||Math.abs(u.y-mxEvent.getClientY(C))>p))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="");h.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=e&&e(C),mxEvent.isConsumed(C)||w.itemClicked(f,b,C,a)),m.apply(b,arguments),u=null,w.currentElt=a}catch(D){b.reset(),w.editorUi.handleError(D)}}};+Sidebar.prototype.createVertexTemplateEntry=function(a,b,f,e,g,d,h,m){null!=m&&null!=g&&(m+=" "+g);m=null!=m&&0<m.length?m:null!=g?g.toLowerCase():"";return this.addEntry(m,mxUtils.bind(this,function(){return this.createVertexTemplate(a,b,f,e,g,d,h)}))};Sidebar.prototype.createVertexTemplate=function(a,b,f,e,g,d,h,m,p,k,u,w,y,C){a=[new mxCell(null!=e?e:"",new mxGeometry(0,0,b,f),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,f,g,d,h,m,p,k,u,w,y,C)};+Sidebar.prototype.createVertexTemplateFromData=function(a,b,f,e,g,d,h,m){var p=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),u=new mxCodec(k),w=new mxGraphModel;u.decode(k.documentElement,w);p=this.graph.cloneCells(w.root.getChildAt(0).children)}catch(y){e=mxResources.get("error")+": "+y.message}return this.createVertexTemplateFromCells(p,b,f,e,g,d,h,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,f,e,g,d,h,m,p,k,u,w,y,C){return this.createItem(a,e,g,d,b,f,h,m,p,k,u,w,y,C)};Sidebar.prototype.createEdgeTemplateEntry=function(a,b,f,e,g,d,h,m,p){h=null!=h&&0<h.length?h:g.toLowerCase();return this.addEntry(h,mxUtils.bind(this,function(){return this.createEdgeTemplate(a,b,f,e,g,d,m,p)}))};-Sidebar.prototype.createEdgeTemplate=function(a,b,f,e,g,d,h,m){a=new mxCell(null!=e?e:"",new mxGeometry(0,0,b,f),a);a.geometry.setTerminalPoint(new mxPoint(0,f),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,f,g,d,h,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,f,e,g,d,h,m,p,k,v,w){return this.createItem(a,e,g,null!=m?m:!0,b,f,d,h,p,k,v,w)};+Sidebar.prototype.createEdgeTemplate=function(a,b,f,e,g,d,h,m){a=new mxCell(null!=e?e:"",new mxGeometry(0,0,b,f),a);a.geometry.setTerminalPoint(new mxPoint(0,f),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,f,g,d,h,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,f,e,g,d,h,m,p,k,u,w){return this.createItem(a,e,g,null!=m?m:!0,b,f,d,h,p,k,u,w)};Sidebar.prototype.addPaletteFunctions=function(a,b,f,e){this.addPalette(a,b,f,mxUtils.bind(this,function(g){for(var d=0;d<e.length;d++)g.appendChild(e[d](g))}))};Sidebar.prototype.addPalette=function(a,b,f,e){b=this.createTitle(b);this.appendChild(b);var g=document.createElement("div");g.className="geSidebar";mxClient.IS_POINTER&&(g.style.touchAction="none");f&&this.expandLibraries?(e(g),e=null):g.style.display="none";this.addFoldingHandler(b,g,e);f=document.createElement("div");f.appendChild(g);this.appendChild(f);null!=a&&(this.palettes[a]=[b,f]);return g};Sidebar.prototype.addFoldingHandler=function(a,b,f){var e=!1;a.style.backgroundImage="none"==b.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";mxEvent.addListener(a,"click",mxUtils.bind(this,function(g){if(a.contains(mxEvent.getSource(g))){if("none"==b.style.display){if(e)this.setContentVisible(b,!0);else if(e=!0,null!=f){a.style.cursor="wait";for(var d=[],h=0;h<a.children.length;h++)d.push(a.children[h]);a.innerHTML=mxResources.get("loading")+"...";window.setTimeout(mxUtils.bind(this,function(){this.setContentVisible(b,!0);a.style.cursor="";a.innerHTML="";for(var m=0;m<d.length;m++)a.appendChild(d[m]);m=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;f(b,a);mxClient.NO_FO=m}),mxClient.IS_FF?20:0)}else this.setContentVisible(b,!0);a.style.backgroundImage="url('"+Editor.arrowDownImage+"')"}else a.style.backgroundImage="url('"+Editor.arrowRightImage+"')",this.setContentVisible(b,!1);mxEvent.consume(g)}}));mxEvent.preventDefault(a)};Sidebar.prototype.setContentVisible=function(a,b){var f=Editor.transitionDelay;mxUtils.setPrefixedStyle(a.style,"transition","all "+f+"s linear");b?(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),a.style.display="block",window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform","scaleY(1)");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",null)}),1E3*f)}),0)):(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",null);a.style.display="none"}),1E3*f))};Sidebar.prototype.removePalette=function(a){var b=this.palettes[a];if(null!=b){this.palettes[a]=null;for(a=0;a<b.length;a++)this.container.removeChild(b[a]);return!0}return!1};-Sidebar.prototype.addImagePalette=function(a,b,f,e,g,d,h){for(var m=[],p=0;p<g.length;p++)mxUtils.bind(this,function(k,v,w){if(null==w&&(null==f||"img/lib/clip_art/"!=f.substring(0,17))){w=k.lastIndexOf("/");var y=k.lastIndexOf(".");w=k.substring(0<=w?w+1:0,0<=y?y:k.length).replace(/[-_]/g," ")}m.push(this.createVertexTemplateEntry("image;html=1;image="+f+k+e,this.defaultImageWidth,this.defaultImageHeight,"",v,null!=v,null,this.filterTags(w)))})(g[p],null!=d?d[p]:null,null!=h?h[g[p]]:null);this.addPaletteFunctions(a,+Sidebar.prototype.addImagePalette=function(a,b,f,e,g,d,h){for(var m=[],p=0;p<g.length;p++)mxUtils.bind(this,function(k,u,w){if(null==w&&(null==f||"img/lib/clip_art/"!=f.substring(0,17))){w=k.lastIndexOf("/");var y=k.lastIndexOf(".");w=k.substring(0<=w?w+1:0,0<=y?y:k.length).replace(/[-_]/g," ")}m.push(this.createVertexTemplateEntry("image;html=1;image="+f+k+e,this.defaultImageWidth,this.defaultImageHeight,"",u,null!=u,null,this.filterTags(w)))})(g[p],null!=d?d[p]:null,null!=h?h[g[p]]:null);this.addPaletteFunctions(a,b,!1,m)};Sidebar.prototype.getTagsForStencil=function(a,b,f){a=a.split(".");for(var e=1;e<a.length;e++)a[e]=a[e].replace(/_/g," ");a.push(b.replace(/_/g," "));null!=f&&a.push(f);return a.slice(1,a.length)};-Sidebar.prototype.addStencilPalette=function(a,b,f,e,g,d,h,m,p,k){h=null!=h?h:1;if(this.addStencilsToIndex){var v=[];if(null!=p)for(k=0;k<p.length;k++)v.push(p[k]);mxStencilRegistry.loadStencilSet(f,mxUtils.bind(this,function(w,y,C,D,E){if(null==g||0>mxUtils.indexOf(g,y)){C=this.getTagsForStencil(w,y);var G=null!=m?m[y]:null;null!=G&&C.push(G);v.push(this.createVertexTemplateEntry("shape="+w+y.toLowerCase()+e,Math.round(D*h),Math.round(E*h),"",y.replace(/_/g," "),null,null,this.filterTags(C.join(" "))))}}),-!0,!0);this.addPaletteFunctions(a,b,!1,v)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==e&&(e="");null!=d&&d.call(this,w);if(null!=p)for(var y=0;y<p.length;y++)p[y](w);mxStencilRegistry.loadStencilSet(f,mxUtils.bind(this,function(C,D,E,G,J){(null==g||0>mxUtils.indexOf(g,D))&&w.appendChild(this.createVertexTemplate("shape="+C+D.toLowerCase()+e,Math.round(G*h),Math.round(J*h),"",D.replace(/_/g," "),!0))}),!0)}))};+Sidebar.prototype.addStencilPalette=function(a,b,f,e,g,d,h,m,p,k){h=null!=h?h:1;if(this.addStencilsToIndex){var u=[];if(null!=p)for(k=0;k<p.length;k++)u.push(p[k]);mxStencilRegistry.loadStencilSet(f,mxUtils.bind(this,function(w,y,C,D,E){if(null==g||0>mxUtils.indexOf(g,y)){C=this.getTagsForStencil(w,y);var G=null!=m?m[y]:null;null!=G&&C.push(G);u.push(this.createVertexTemplateEntry("shape="+w+y.toLowerCase()+e,Math.round(D*h),Math.round(E*h),"",y.replace(/_/g," "),null,null,this.filterTags(C.join(" "))))}}),+!0,!0);this.addPaletteFunctions(a,b,!1,u)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==e&&(e="");null!=d&&d.call(this,w);if(null!=p)for(var y=0;y<p.length;y++)p[y](w);mxStencilRegistry.loadStencilSet(f,mxUtils.bind(this,function(C,D,E,G,J){(null==g||0>mxUtils.indexOf(g,D))&&w.appendChild(this.createVertexTemplate("shape="+C+D.toLowerCase()+e,Math.round(G*h),Math.round(J*h),"",D.replace(/_/g," "),!0))}),!0)}))};Sidebar.prototype.destroy=function(){null!=this.graph&&(null!=this.graph.container&&null!=this.graph.container.parentNode&&this.graph.container.parentNode.removeChild(this.graph.container),this.graph.destroy(),this.graph=null);null!=this.escapeListener&&(this.editorUi.editor.graph.removeListener(this.escapeListener),this.escapeListener=null);null!=this.refreshListener&&(this.editorUi.removeListener(this.refreshListener),this.refreshListener=null);null!=this.pointerUpHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerup":"mouseup",this.pointerUpHandler),this.pointerUpHandler=null);null!=this.pointerDownHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerdown":"mousedown",this.pointerDownHandler),this.pointerDownHandler=null);null!=this.pointerMoveHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.pointerMoveHandler),this.pointerMoveHandler=null);null!=this.pointerOutHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerout":"mouseout",this.pointerOutHandler),this.pointerOutHandler=null)};(function(){var a=[["nbsp","160"],["shy","173"]],b=mxUtils.parseXml;mxUtils.parseXml=function(e){for(var g=0;g<a.length;g++)e=e.replace(new RegExp("&"+a[g][0]+";","g"),"&#"+a[g][1]+";");return b(e)};var f=mxUtils.getSizeForString;mxUtils.getSizeForString=function(e,g,d,h){return f(Graph.sanitizeHtml(e),g,d,h)}})();Date.prototype.toISOString||function(){function a(b){b=String(b);1===b.length&&(b="0"+b);return b}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(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 a=Object.prototype.toString,b=function(e){return"function"===typeof e||"[object Function]"===a.call(e)},f=Math.pow(2,53)-1;return function(e){var g=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var d=1<arguments.length?arguments[1]:void 0,h;if("undefined"!==typeof d){if(!b(d))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(h=-arguments[2])}var m=Number(g.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),f);for(var p=b(this)?Object(new this(m)):Array(m),k=0,v;k<m;)v=g[k],p[k]=d?"undefined"===typeof h?d(v,k):d.call(h,v,k):v,k+=1;p.length=m;return p}}());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(" ");+arguments[2])}var m=Number(g.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),f);for(var p=b(this)?Object(new this(m)):Array(m),k=0,u;k<m;)u=g[k],p[k]=d?"undefined"===typeof h?d(u,k):d.call(h,u,k):u,k+=1;p.length=m;return p}}());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 a=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===a||"en-ca"===a||"es-mx"===a?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(b){}})();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(a){this.unit!=a&&(this.unit=a,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",a)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(a,b,f){return null};mxImageShape.prototype.getImageDataUri=function(){var a=String(this.image);if("data:image/svg+xml;base64,"==a.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=a)this.clippedSvg=Graph.clipSvgDataUri(a),this.clippedImage=a;a=this.clippedSvg}return a};(function(){var a=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(b,f,e,g,d){return"default"==g&&null!=d?"fillcolor"==e.nodeName?d.shapeBackgroundColor:d.shapeForegroundColor:a.apply(this,arguments)}})();(function(){var a=mxResources.get;mxResources.get=function(b,f,e){null==e&&(e=b);return a.apply(this,[b,f,e])}})();-(function(){var a=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(b,f,e,g,d,h,m,p){var k=a.apply(this,arguments);if(null!=f){var v=k.getElementsByTagName("img");0<v.length&&(v[0].className="geButton")}return k}})();+(function(){var a=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(b,f,e,g,d,h,m,p){var k=a.apply(this,arguments);if(null!=f){var u=k.getElementsByTagName("img");0<u.length&&(u[0].className="geButton")}return k}})();Graph=function(a,b,f,e,g,d){mxGraph.call(this,a,b,f,e);this.themes=g||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=d?d:!1;a=this.baseUrl;b=a.indexOf("//");this.domainPathUrl=this.domainUrl="";0<b&&(b=a.indexOf("/",b+2),0<b&&(this.domainUrl=a.substring(0,b)),b=a.lastIndexOf("/"),0<b&&(this.domainPathUrl=a.substring(0,b+1)));this.isHtmlLabel=function(O){O=this.getCurrentCellStyle(O);-return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var h=null,m=null,p=null,k=null,v=!1,w=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,V){if("mouseDown"==V.getProperty("eventName")&&this.isEnabled()){O=V.getProperty("event");var Y=O.getState();V=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=Y&&(w=this.isCellSelected(Y.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var ha=this.selectionCellsHandler.getHandler(Y.cell);+return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var h=null,m=null,p=null,k=null,u=!1,w=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,V){if("mouseDown"==V.getProperty("eventName")&&this.isEnabled()){O=V.getProperty("event");var Y=O.getState();V=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=Y&&(w=this.isCellSelected(Y.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var ha=this.selectionCellsHandler.getHandler(Y.cell);if(null==ha||null==ha.getHandleForEvent(O)){var ia=new mxRectangle(O.getGraphX()-1,O.getGraphY()-1),ta=mxEvent.isTouchEvent(O.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;ha=ta+2;ia.grow(ta);if(this.isTableCell(Y.cell)&&this.isCellMovable(Y.cell)&&!this.isCellSelected(Y.cell)&&!(mxUtils.contains(Y,O.getGraphX()-ha,O.getGraphY()-ha)&&mxUtils.contains(Y,O.getGraphX()-ha,O.getGraphY()+ha)&&mxUtils.contains(Y,O.getGraphX()+ha,O.getGraphY()+ha)&&mxUtils.contains(Y,O.getGraphX()+ha,O.getGraphY()-ha))){var aa=this.model.getParent(Y.cell);ha=this.model.getParent(aa);if(!this.isCellSelected(ha)){ta*=V;var P=2*ta;if(this.model.getChildAt(ha,0)!=aa&&mxUtils.intersects(ia,new mxRectangle(Y.x,Y.y-ta,Y.width,P))||this.model.getChildAt(aa,0)!=Y.cell&&mxUtils.intersects(ia,new mxRectangle(Y.x-ta,Y.y,P,Y.height))||mxUtils.intersects(ia,new mxRectangle(Y.x,Y.y+Y.height-ta,Y.width,P))||mxUtils.intersects(ia,new mxRectangle(Y.x+Y.width-ta,Y.y,P,Y.height)))aa=this.selectionCellsHandler.isHandled(ha),this.selectCellForEvent(ha,O.getEvent()),ha=this.selectionCellsHandler.getHandler(ha),null!=ha&&(ta=ha.getHandleForEvent(O),null!=ta&&(ha.start(O.getGraphX(),O.getGraphY(),ta),ha.blockDelayedSelection=!aa,O.consume()))}}for(;!O.isConsumed()&&null!=Y&&(this.isTableCell(Y.cell)||this.isTableRow(Y.cell)||this.isTable(Y.cell));)this.isSwimlane(Y.cell)&&this.isCellMovable(Y.cell)&&(ha=this.getActualStartSize(Y.cell),(0<ha.x||0<ha.width)&&mxUtils.intersects(ia,new mxRectangle(Y.x+(ha.x-ha.width-1)*V+(0==ha.x?Y.width:0),Y.y,1,Y.height))||(0<ha.y||0<ha.height)&&mxUtils.intersects(ia,new mxRectangle(Y.x,Y.y+(ha.y-ha.height-1)*V+(0==ha.y?Y.height:0),Y.width,1)))&&(this.selectCellForEvent(Y.cell,O.getEvent()),ha=this.selectionCellsHandler.getHandler(Y.cell),null!=ha&&null!=ha.customHandles&&(ta=mxEvent.CUSTOM_HANDLE-ha.customHandles.length+1,ha.start(O.getGraphX(),O.getGraphY(),ta),O.consume())),Y=this.view.getState(this.model.getParent(Y.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,-function(O,V){if("mouseDown"==V.getProperty("eventName")&&this.isEnabled()){O=V.getProperty("event");var Y=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(V)||mxEvent.isShiftDown(V)||w||null==Y||!this.model.isEdge(Y.cell)||(h=new mxPoint(O.getGraphX(),O.getGraphY()),v=this.isCellSelected(Y.cell),p=Y,m=O,null!=Y.text&&null!=Y.text.boundingBox&&mxUtils.contains(Y.text.boundingBox,O.getGraphX(),O.getGraphY())?k=mxEvent.LABEL_HANDLE:(V=this.selectionCellsHandler.getHandler(Y.cell),+function(O,V){if("mouseDown"==V.getProperty("eventName")&&this.isEnabled()){O=V.getProperty("event");var Y=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(V)||mxEvent.isShiftDown(V)||w||null==Y||!this.model.isEdge(Y.cell)||(h=new mxPoint(O.getGraphX(),O.getGraphY()),u=this.isCellSelected(Y.cell),p=Y,m=O,null!=Y.text&&null!=Y.text.boundingBox&&mxUtils.contains(Y.text.boundingBox,O.getGraphX(),O.getGraphY())?k=mxEvent.LABEL_HANDLE:(V=this.selectionCellsHandler.getHandler(Y.cell),null!=V&&null!=V.bends&&0<V.bends.length&&(k=V.getHandleForEvent(O))))}}));this.addMouseListener({mouseDown:function(O,V){},mouseMove:mxUtils.bind(this,function(O,V){O=this.selectionCellsHandler.handlers.map;for(var Y in O)if(null!=O[Y].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(V.getEvent())){var ha=this.tolerance;if(null!=h&&null!=p&&null!=m){if(Y=p,null!=k||Math.abs(h.x-V.getGraphX())>ha||Math.abs(h.y-V.getGraphY())>ha){var ia=null;mxEvent.isShiftDown(V.getEvent())||-(ia=this.selectionCellsHandler.getHandler(Y.cell));if(null!=ia&&null!=ia.bends&&0<ia.bends.length){ia.redrawHandles();var ta=null!=k?k:ia.getHandleForEvent(m),aa=this.view.getEdgeStyle(Y),P=aa==mxEdgeStyle.EntityRelation;ha=Y.absolutePoints;v||(ta=k);ta!=mxEvent.LABEL_HANDLE&&null!=ha&&(ta=k,null==ta&&(O=new mxRectangle(h.x,h.y),O.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(O,ha[0].x,ha[0].y)?ta=0:mxUtils.contains(O,ha[ha.length-1].x,ha[ha.length-1].y)?ta=ia.bends.length-1:+(ia=this.selectionCellsHandler.getHandler(Y.cell));if(null!=ia&&null!=ia.bends&&0<ia.bends.length){ia.redrawHandles();var ta=null!=k?k:ia.getHandleForEvent(m),aa=this.view.getEdgeStyle(Y),P=aa==mxEdgeStyle.EntityRelation;ha=Y.absolutePoints;u||(ta=k);ta!=mxEvent.LABEL_HANDLE&&null!=ha&&(ta=k,null==ta&&(O=new mxRectangle(h.x,h.y),O.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(O,ha[0].x,ha[0].y)?ta=0:mxUtils.contains(O,ha[ha.length-1].x,ha[ha.length-1].y)?ta=ia.bends.length-1:null!=ha&&(null==aa&&null==ta||aa==mxEdgeStyle.SegmentConnector||aa==mxEdgeStyle.OrthConnector)&&(null!=aa&&(2==ha.length||3==ha.length&&(0==Math.round(ha[0].x-ha[1].x)&&0==Math.round(ha[1].x-ha[2].x)||0==Math.round(ha[0].y-ha[1].y)&&0==Math.round(ha[1].y-ha[2].y)))?ta=2:(ta=mxUtils.findNearestSegment(Y,h.x,h.y),ta=null==aa?mxEvent.VIRTUAL_HANDLE-ta:ta+1))),null==ta&&(ta=mxEvent.VIRTUAL_HANDLE));O=ta==mxEvent.LABEL_HANDLE||0==ta||ta==ia.bends.length-1;if(!P&&(null!=Y.visibleSourceState||null!=Y.visibleTargetState)||-O)ia.start(V.getGraphX(),V.getGraphX(),ta),V.consume(),this.graphHandler.reset()}null!=ia&&(this.selectionCellsHandler.isHandlerActive(ia)?this.isCellSelected(Y.cell)||(this.selectionCellsHandler.handlers.put(Y.cell,ia),this.selectCellForEvent(Y.cell,V.getEvent())):this.isCellSelected(Y.cell)||ia.destroy());v=!1;h=m=p=k=null}}else if(Y=V.getState(),null!=Y&&this.isCellEditable(Y.cell)){O=this.model.getParent(Y.cell);ia=null;if(this.model.isEdge(Y.cell)&&!this.isCellSelected(Y.cell)&&!mxEvent.isAltDown(V.getEvent())&&+O)ia.start(V.getGraphX(),V.getGraphX(),ta),V.consume(),this.graphHandler.reset()}null!=ia&&(this.selectionCellsHandler.isHandlerActive(ia)?this.isCellSelected(Y.cell)||(this.selectionCellsHandler.handlers.put(Y.cell,ia),this.selectCellForEvent(Y.cell,V.getEvent())):this.isCellSelected(Y.cell)||ia.destroy());u=!1;h=m=p=k=null}}else if(Y=V.getState(),null!=Y&&this.isCellEditable(Y.cell)){O=this.model.getParent(Y.cell);ia=null;if(this.model.isEdge(Y.cell)&&!this.isCellSelected(Y.cell)&&!mxEvent.isAltDown(V.getEvent())&&!mxEvent.isShiftDown(V.getEvent())&&!this.isAncestorSelected(Y.cell)&&(this.isSwimlane(O)||this.model.isLayer(O)||this.getCurrentRoot()==O)){if(O=new mxRectangle(V.getGraphX(),V.getGraphY()),O.grow(mxEdgeHandler.prototype.handleImage.width/2),ha=Y.absolutePoints,null!=ha)null!=Y.text&&null!=Y.text.boundingBox&&mxUtils.contains(Y.text.boundingBox,V.getGraphX(),V.getGraphY())?ia="move":mxUtils.contains(O,ha[0].x,ha[0].y)||mxUtils.contains(O,ha[ha.length-1].x,ha[ha.length-1].y)?ia="pointer":(aa=this.view.getEdgeStyle(Y),aa==mxEdgeStyle.EntityRelation||null==Y.visibleSourceState&&null==Y.visibleTargetState||(ia="crosshair",aa!=mxEdgeStyle.SegmentConnector&&aa!=mxEdgeStyle.OrthConnector))||(V=mxUtils.findNearestSegment(Y,V.getGraphX(),V.getGraphY()),V<ha.length-1&&0<=V&&(ia=0==Math.round(ha[V].x-ha[V+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(V.getEvent())){ha=mxShape.prototype.svgStrokeTolerance/2;O=new mxRectangle(V.getGraphX(),V.getGraphY());O.grow(ha);if(this.isTableCell(Y.cell)&&this.isCellMovable(Y.cell)&&(V=this.model.getParent(Y.cell),ha=this.model.getParent(V),!this.isCellSelected(ha)))if(mxUtils.intersects(O,new mxRectangle(Y.x,Y.y-2,Y.width,4))&&this.model.getChildAt(ha,0)!=V||mxUtils.intersects(O,new mxRectangle(Y.x,Y.y+Y.height-2,Y.width,4)))ia="row-resize";else if(mxUtils.intersects(O,new mxRectangle(Y.x-2,Y.y,4,Y.height))&&this.model.getChildAt(V,0)!=Y.cell||mxUtils.intersects(O,new mxRectangle(Y.x+Y.width-2,Y.y,4,Y.height)))ia="col-resize";for(V=Y;null==ia&&null!=V&&(this.isTableCell(V.cell)||@@ -2554,8 +2555,8 @@ this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSourcP)*ia+ha.x)*ta,(aa.y*Y+ha.y)*ta,ia*ta,Y*ta));for(P=1;P<aa.height;P++)V.push(new mxRectangle((aa.x*ia+ha.x)*ta,((aa.y+P)*Y+ha.y)*ta,ia*ta,Y*ta));O=V.concat(O)}return O};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(O,V){return null==O.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(O){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var D=this.graphHandler.getCells;this.graphHandler.getCells=function(O){for(var V=D.apply(this,arguments),Y=new mxDictionary,ha=[],ia=0;ia<V.length;ia++){var ta=this.graph.isTableCell(O)&&this.graph.isTableCell(V[ia])&&this.graph.isCellSelected(V[ia])?this.graph.model.getParent(V[ia]):this.graph.isTableRow(O)&&this.graph.isTableRow(V[ia])&&this.graph.isCellSelected(V[ia])?V[ia]:this.graph.getCompositeParent(V[ia]);null==ta||Y.get(ta)||(Y.put(ta,!0),ha.push(ta))}return ha};var E=this.graphHandler.start;this.graphHandler.start=function(O,V,Y,ha){var ia=!1;this.graph.isTableCell(O)&&(this.graph.isCellSelected(O)?ia=!0:O=this.graph.model.getParent(O));ia||this.graph.isTableRow(O)&&this.graph.isCellSelected(O)||(O=this.graph.getCompositeParent(O));E.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(O,V){V=this.graph.getCompositeParent(V);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(O,V,Y,ha,ia,ta){var aa=-mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=ha&&this.graph.applyNewEdgeStyle(ha,[aa]);return aa};var G=new mxRubberband(this);this.getRubberband=function(){return G};var J=(new Date).getTime(),M=0,Q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;Q.apply(this,arguments);O!=this.currentState?(J=(new Date).getTime(),M=0):M=(new Date).getTime()-J};var L=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=-function(O){return mxEvent.isShiftDown(O.getEvent())&&mxEvent.isAltDown(O.getEvent())?!1:null!=this.currentState&&O.getState()==this.currentState&&2E3<M||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&L.apply(this,arguments)};var W=this.isToggleEvent;this.isToggleEvent=function(O){return W.apply(this,arguments)||mxEvent.isShiftDown(O)};var X=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(X=this.container.style.cursor,+mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=ha&&this.graph.applyNewEdgeStyle(ha,[aa]);return aa};var G=new mxRubberband(this);this.getRubberband=function(){return G};var J=(new Date).getTime(),M=0,Q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;Q.apply(this,arguments);O!=this.currentState?(J=(new Date).getTime(),M=0):M=(new Date).getTime()-J};var K=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=+function(O){return mxEvent.isShiftDown(O.getEvent())&&mxEvent.isAltDown(O.getEvent())?!1:null!=this.currentState&&O.getState()==this.currentState&&2E3<M||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&K.apply(this,arguments)};var W=this.isToggleEvent;this.isToggleEvent=function(O){return W.apply(this,arguments)||mxEvent.isShiftDown(O)};var X=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(X=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=X)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(O){return mxEvent.isMouseEvent(O.getEvent())};var T=this.click;this.click=function(O){var V=null==O.state&&null!=O.sourceState&&this.isCellLocked(this.getLayerForCell(O.sourceState.cell));if(this.isEnabled()&&!V||O.isConsumed())return T.apply(this,arguments);var Y=V?O.sourceState.cell:O.getCell();if(null!=Y){var ha=this.getClickableLinkForCell(Y);null!=ha?this.isCustomLink(ha)?this.customLinkClicked(ha,Y):this.openLink(ha):V&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(O){return O.sourceState};var N=this.tooltipHandler.show;this.tooltipHandler.show=function(){N.apply(this,arguments);if(null!=this.div)for(var O=this.div.getElementsByTagName("a"),V=0;V<O.length;V++)null!=O[V].getAttribute("href")&&null==O[V].getAttribute("target")&&O[V].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(O){return O.sourceState};this.getCursorForMouseEvent=function(O){var V=null==O.state&&null!=O.sourceState&&this.isCellLocked(O.sourceState.cell);return this.getCursorForCell(V?O.sourceState.cell:O.getCell())};var ca=this.getCursorForCell;this.getCursorForCell=function(O){if(!this.isEnabled()||this.isCellLocked(O)){if(null!=this.getClickableLinkForCell(O))return"pointer";if(this.isCellLocked(O))return"default"}return ca.apply(this,@@ -2576,9 +2577,9 @@ Graph.createSvgImage=function(a,b,f,e,g){f=unescape(encodeURIComponent(Graph.svgGraph.getSvgFromDataUri=function(a){return null!=a&&"data:image/svg"==a.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(a.substring(a.indexOf(",")+1)))):null};Graph.createSvgNode=function(a,b,f,e,g){var d=mxUtils.createXmlDocument(),h=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"svg"):d.createElement("svg");null!=g&&h.setAttribute("style","background: "+g.light+"; background-color: "+g.cssText+";");null==d.createElementNS?(h.setAttribute("xmlns",mxConstants.NS_SVG),h.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):h.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);h.setAttribute("version","1.1");h.setAttribute("width",f+"px");h.setAttribute("height",e+"px");h.setAttribute("viewBox",a+" "+b+" "+f+" "+e);d.appendChild(h);return h};-Graph.htmlToPng=function(a,b,f,e,g,d){g=null!=g?g:"";d=null!=d?d:Editor.htmlRasterScale;var h=document.createElement("canvas");h.width=b*d;h.height=f*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=h.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);e(h.toDataURL())}catch(v){e(null)}});var p=mxUtils.createXmlDocument();p=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");a=(new mxSvgCanvas2D(p)).convertHtml(a);m.onerror=+Graph.htmlToPng=function(a,b,f,e,g,d){g=null!=g?g:"";d=null!=d?d:Editor.htmlRasterScale;var h=document.createElement("canvas");h.width=b*d;h.height=f*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=h.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);e(h.toDataURL())}catch(u){e(null)}});var p=mxUtils.createXmlDocument();p=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");a=(new mxSvgCanvas2D(p)).convertHtml(a);m.onerror=function(k){e(null)};m.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+b+'" height="'+f+'">'+(""!=g?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+g+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+a+"</div></foreignObject></svg>")};-Graph.addLightDarkColors=function(a,b,f,e){function g(y,C,D){return null!=e?e(y,C,D):mxUtils.isValidColor(D)?(null==h&&null!=b&&(h={}),null!=h&&(h[C]=y.style.getPropertyValue(C)),D=mxUtils.getLightDarkColor(D,null,null,f),y.style.setProperty(C,D.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),h=null,m=!1,p=0;p<d.length;p++)if(d[p]!=a&&null!=d[p].style){h=null;for(var k=0;k<d[p].style.length;k++){var v=d[p].style.item(k),w=d[p].style.getPropertyValue(v);m=g(d[p],v,w)||m}"FONT"==d[p].nodeName&&+Graph.addLightDarkColors=function(a,b,f,e){function g(y,C,D){return null!=e?e(y,C,D):mxUtils.isValidColor(D)?(null==h&&null!=b&&(h={}),null!=h&&(h[C]=y.style.getPropertyValue(C)),D=mxUtils.getLightDarkColor(D,null,null,f),y.style.setProperty(C,D.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),h=null,m=!1,p=0;p<d.length;p++)if(d[p]!=a&&null!=d[p].style){h=null;for(var k=0;k<d[p].style.length;k++){var u=d[p].style.item(k),w=d[p].style.getPropertyValue(u);m=g(d[p],u,w)||m}"FONT"==d[p].nodeName&&""==d[p].style.getPropertyValue("color")&&(w=d[p].getAttribute("color"),m=g(d[p],"color",w)||m);null!=b&&null!=h&&d[p].setAttribute(b,JSON.stringify(h))}return m};Graph.removeLightDarkColors=function(a,b){a=a.getElementsByTagName("*");for(var f=!1,e=0;e<a.length;e++)try{var g=a[e].getAttribute(b);if(null!=g){a[e].removeAttribute(b);var d=JSON.parse(g),h;for(h in d){var m=d[h];""==m?(a[e].style[h]=null,""==a[e].getAttribute("style")&&a[e].removeAttribute("style")):a[e].style[h]=m;f=!0}}}catch(p){}return f};Graph.getGivenColor=function(a,b){var f=null;if(a.nodeType==mxConstants.NODETYPE_ELEMENT){try{var e=a.getAttribute(Graph.backupStyleAttribute);if(null!=e){var g=JSON.parse(e);null!=g&&null!=g[b]&&("color"==b&&"FONT"==a.nodeName&&""==g[b]&&null!=a.getAttribute("color")?f=a.getAttribute("color"):""!=g[b]&&(f=g[b]))}}catch(d){}null==f&&""!=a.style[b]&&(f=a.style[b])}return f};Graph.setTextColor=function(a,b,f){for(var e=f?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,g=f?"color":"background-color",d=a.getElementsByTagName("*"),h=[],m=0;m<d.length;m++)h.push({node:d[m],value:d[m].style[g]});document.execCommand(f?"forecolor":"backcolor",!1,e);a=a.getElementsByTagName("*");for(m=0;m<a.length;m++){if(m<h.length&&h[m].node==a[m]&&h[m].value!=a[m].style[g]&&""==a[m].style[g])try{if(d=a[m].getAttribute(Graph.backupStyleAttribute),null!=d){var p=JSON.parse(d);p[g]=@@ -2591,22 +2592,22 @@ Graph.decompress=function(a,b,f){if(null==a||0==a.length||"undefined"===typeof pGraph.fadeNodes=function(a,b,f,e,g){g=null!=g?g:1E3;Graph.setTransitionForNodes(a,null);Graph.setOpacityForNodes(a,b);window.setTimeout(function(){Graph.setTransitionForNodes(a,"all "+g+"ms ease-in-out");Graph.setOpacityForNodes(a,f);window.setTimeout(function(){Graph.setTransitionForNodes(a,null);null!=e&&e()},g)},0)};Graph.exploreFromCell=function(a,b,f){pageSize=null!=f&&null!=f.pageSize?f.pageSize:8;minSize=null!=f&&null!=f.minSize?f.minSize:180;(function(e,g){function d(w){w.view.states.visit(function(y,C){null!=C.shape&&w.model.isEdge(w.model.getParent(C.cell))?C.shape.node.parentNode.appendChild(C.shape.node):null!=C.text&&w.model.isEdge(C.cell)&&C.text.node.parentNode.appendChild(C.text.node)})}function h(w,y){if(w.getModel().isVertex(y)){var C=w.container.offsetWidth/2,D=w.container.offsetHeight/2;w.rootCell=y.referenceCell||y;w.getModel().beginUpdate();try{pageSize=null!=f&&null!=f.pageSize?f.pageSize:8+Math.max(0,Math.floor(Math.min(w.container.offsetWidth-800/120,w.container.offsetHeight-600)/30));for(var E=y.referenceCell||y,G=e.model.getCell(E.sourceCellId),J=e.getEdges(G,null,!0,!0,!1,!0),M=[],Q=0;Q<J.length;Q++)null!=J[Q].getTerminal(!0)&&null!=J[Q].getTerminal(!1)&&e.isCellVisible(J[Q])&&!e.isEdgeIgnored(J[Q])&&e.isCellVisible(J[Q].getTerminal(!0))&&e.isCellVisible(J[Q].getTerminal(!1))&&e.isCellVisible(e.getLayerForCell(J[Q]))&&-M.push(J[Q]);M=J=M;if(null!=y.startIndex||0<pageSize&&J.length>pageSize){var L=y.startIndex||0;M=J.slice(Math.max(0,L),Math.min(J.length,L+pageSize))}M=e.getOpposites(M,G).concat(M);var W=w.cloneCells(M);for(Q=0;Q<M.length;Q++)if(W[Q].sourceCellId=M[Q].id,w.model.isEdge(W[Q]))for(W[Q].geometry.x=0,W[Q].geometry.y=0,W[Q].geometry.points=null,W[Q].setStyle(W[Q].getStyle()+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffe0;textOpacity=100;"),W[Q].setTerminal(E,+M.push(J[Q]);M=J=M;if(null!=y.startIndex||0<pageSize&&J.length>pageSize){var K=y.startIndex||0;M=J.slice(Math.max(0,K),Math.min(J.length,K+pageSize))}M=e.getOpposites(M,G).concat(M);var W=w.cloneCells(M);for(Q=0;Q<M.length;Q++)if(W[Q].sourceCellId=M[Q].id,w.model.isEdge(W[Q]))for(W[Q].geometry.x=0,W[Q].geometry.y=0,W[Q].geometry.points=null,W[Q].setStyle(W[Q].getStyle()+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffe0;textOpacity=100;"),W[Q].setTerminal(E,null==W[Q].getTerminal(!0)),G=0;G<W[Q].getChildCount();G++){var X=W[Q].getChildAt(G);null!=X.geometry&&X.geometry.relative&&(X.setStyle(X.getStyle()+";labelBackgroundColor=#ffffffe0;textOpacity=100;"),X.geometry.offset=new mxPoint(0,0),X.geometry.y=0,X.geometry.x=.5>X.geometry.x?-.8:.5<X.geometry.x?.8:0)}if(0<y.startIndex){var T=w.createVertex(null,null,mxResources.get("previousPage")+" ("+Math.ceil((y.startIndex||0)/pageSize)+"/"+Math.ceil(J.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");T.referenceCell=E;T.startIndex=Math.max(0,(y.startIndex||0)-pageSize);W.splice(0,0,T)}if(J.length>(y.startIndex||0)+pageSize){var N=w.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((y.startIndex||0)/pageSize)+2)+"/"+Math.ceil(J.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");N.referenceCell=E;N.startIndex=(y.startIndex||0)+pageSize;W.splice(0,0,N)}for(var ca in w.getModel().cells){var H=w.getModel().getCell(ca);H!=w.rootCell&&!w.getModel().isAncestor(w.rootCell,H)&&w.getModel().isVertex(H)&&w.removeCells([H])}w.addCells(W);var S=w.getModel().getGeometry(w.rootCell);null!=S&&(S=S.clone(),S.x=C-S.width/2,S.y=D-S.height/3,w.getModel().setGeometry(w.rootCell,S));y=[];for(ca in w.getModel().cells)H=w.getModel().getCell(ca),H!=w.rootCell&&w.getModel().isVertex(H)&&w.getModel().getParent(H)==w.getDefaultParent()&&(y.push(H),S=w.getModel().getGeometry(H),null!=S&&(S.x=C-S.width/2,S.y=D-S.height/2));var ea=y.length,la=2*Math.PI/ea,O=Math.max(minSize,Math.min(w.container.offsetWidth/2-40,w.container.offsetHeight/2-80));for(C=0;C<ea;C++)S=w.getModel().getGeometry(y[C]),null!=S&&(S=S.clone(),S.x+=O*Math.sin(C*la),S.y+=O*Math.cos(C*la),w.getModel().setGeometry(y[C],S))}finally{w.getModel().endUpdate()}}}var m=document.createElement("div");m.style.position="absolute";m.style.display="block";m.style.overflow="auto";m.style.width="100%";m.style.height="100%";m.style.left="0px";m.style.top="0px";m.style.zIndex=2;m.style.background=e.background==mxConstants.NONE||null==e.background?"light-dark(#ffffff,"+Editor.darkColor+")":e.background;var p=document.createElement("img");p.setAttribute("src",Editor.closeBlackImage);p.style.position="absolute";p.style.cursor="pointer";p.style.right="10px";p.style.top="10px";m.appendChild(p);var k=document.createElement("div");k.style.position="absolute";k.style.cursor="pointer";k.style.right="38px";k.style.top="14px";k.style.textAlign="right";k.style.verticalAlign="top";mxUtils.write(k,mxResources.get("close"));m.appendChild(k);document.body.appendChild(m);-var v=function(w){27==w.keyCode&&p.click()};mxEvent.addListener(document,"keydown",v);(function(w){var y=new Graph(w);y.keepEdgesInBackground=!0;y.isCellResizable=function(){return!1};y.isCellRotatable=function(){return!1};y.getCursorForCell=function(M){return this.model.isVertex(M)?"pointer":null};y.getFoldingImage=function(){return null};var C=function(){mxEvent.removeListener(document,"keydown",v);w.parentNode.removeChild(w);e.scrollCellToVisible(g)};mxEvent.addListener(p,"click",C);mxEvent.addListener(k,-"click",C);y.setEnabled(!1);var D=y.click;y.click=function(M){var Q=M.getCell(),L=null!=Q?null!=Q.referenceCell?Q.referenceCell:Q:null;null!=Q&&0<y.getEdges(L).length?h(y,Q):D.apply(this,arguments)};C=y.container.offsetWidth/2;var E=y.container.offsetHeight/3;y.model.beginUpdate();var G=y.importCells([g])[0];G.sourceCellId=g.id;G.geometry.x=C-G.geometry.width/2;G.geometry.y=E-G.geometry.height/2;y.model.endUpdate();var J=!1;y.getModel().addListener(mxEvent.CHANGE,function(M,Q){J||(M=Q.getProperty("edit").changes,-mxText.prototype.enableBoundingBox=!1,y.labelsVisible=!1,J=!0,mxEffects.animateChanges(y,M,function(){var L=new mxParallelEdgeLayout(y);L.spacing=60;var W=L.layout;L.layout=function(X){L.spacing=Math.min(60,Math.max(30,60-5*X.length));W.apply(this,arguments)};L.execute(y.getDefaultParent());mxText.prototype.enableBoundingBox=!0;y.labelsVisible=!0;y.tooltipHandler.hide();y.refresh();d(y);J=!1}))});h(y,G)})(m)})(a,b)};Graph.removeKeys=function(a,b){for(var f in a)b(f)&&delete a[f]};+var u=function(w){27==w.keyCode&&p.click()};mxEvent.addListener(document,"keydown",u);(function(w){var y=new Graph(w);y.keepEdgesInBackground=!0;y.isCellResizable=function(){return!1};y.isCellRotatable=function(){return!1};y.getCursorForCell=function(M){return this.model.isVertex(M)?"pointer":null};y.getFoldingImage=function(){return null};var C=function(){mxEvent.removeListener(document,"keydown",u);w.parentNode.removeChild(w);e.scrollCellToVisible(g)};mxEvent.addListener(p,"click",C);mxEvent.addListener(k,+"click",C);y.setEnabled(!1);var D=y.click;y.click=function(M){var Q=M.getCell(),K=null!=Q?null!=Q.referenceCell?Q.referenceCell:Q:null;null!=Q&&0<y.getEdges(K).length?h(y,Q):D.apply(this,arguments)};C=y.container.offsetWidth/2;var E=y.container.offsetHeight/3;y.model.beginUpdate();var G=y.importCells([g])[0];G.sourceCellId=g.id;G.geometry.x=C-G.geometry.width/2;G.geometry.y=E-G.geometry.height/2;y.model.endUpdate();var J=!1;y.getModel().addListener(mxEvent.CHANGE,function(M,Q){J||(M=Q.getProperty("edit").changes,+mxText.prototype.enableBoundingBox=!1,y.labelsVisible=!1,J=!0,mxEffects.animateChanges(y,M,function(){var K=new mxParallelEdgeLayout(y);K.spacing=60;var W=K.layout;K.layout=function(X){K.spacing=Math.min(60,Math.max(30,60-5*X.length));W.apply(this,arguments)};K.execute(y.getDefaultParent());mxText.prototype.enableBoundingBox=!0;y.labelsVisible=!0;y.tooltipHandler.hide();y.refresh();d(y);J=!1}))});h(y,G)})(m)})(a,b)};Graph.removeKeys=function(a,b){for(var f in a)b(f)&&delete a[f]};Graph.setTransitionForNodes=function(a,b){for(var f=0;f<a.length;f++)mxUtils.setPrefixedStyle(a[f].style,"transition",b)};Graph.setOpacityForNodes=function(a,b){for(var f=0;f<a.length;f++)a[f].style.opacity=b};Graph.removePasteFormatting=function(a,b){for(;null!=a;){null!=a.firstChild&&Graph.removePasteFormatting(a.firstChild,!0);var f=a.nextSibling;if(a.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=a.style){"#000000"==a.style.color&&(a.style.color="");if("SPAN"==a.nodeName&&"Apple-tab-span"==a.className){var e=Graph.createTabNode(4);a.parentNode.replaceChild(e,a);a=e}if("P"==a.nodeName&&"p1"==a.className){for(;null!=a.firstChild;)a.parentNode.insertBefore(a.firstChild,a);null!=f&&"P"==f.nodeName&&"p1"==f.className&&a.parentNode.insertBefore(a.ownerDocument.createElement("br"),a);a.parentNode.removeChild(a)}!b&&null!=a.innerHTML&&0<=a.innerHTML.indexOf("\t")&&(e=Graph.createTabNode(4),a.innerHTML=a.innerHTML.replace(/\t/g,e.outerHTML))}a=f}};Graph.createTabNode=function(a){var b="\t";if(null!=a)for(b="";0<a;)b+=" ",a--;a=document.createElement("span");a.style.whiteSpace="pre";a.appendChild(document.createTextNode(b));return a};Graph.sanitizeHtml=function(a,b){return Graph.domPurify(a,!1)};Graph.sanitizeLink=function(a){if(null==a)return null;var b=document.createElement("a");b.setAttribute("href",a);Graph.sanitizeNode(b);return b.getAttribute("href")};Graph.sanitizeNode=function(a){return Graph.domPurify(a,!0)};DOMPurify.addHook("afterSanitizeAttributes",function(a){"use"==a.nodeName&&(null!=a.getAttribute("xlink:href")&&!a.getAttribute("xlink:href").startsWith("#")||null!=a.getAttribute("href")&&!a.getAttribute("href").startsWith("#"))&&a.remove()});Graph.domPurify=function(a,b){window.DOM_PURIFY_CONFIG.IN_PLACE=b;return DOMPurify.sanitize(a,window.DOM_PURIFY_CONFIG)};Graph.clipSvgDataUri=function(a){if(null!=a&&"data:image/svg+xml;base64,"==a.substring(0,26))try{var b=document.createElement("div");b.style.position="absolute";b.style.visibility="hidden";var f=decodeURIComponent(escape(atob(a.substring(26)))),e=f.indexOf("<svg");if(0<=e){b.innerHTML=Graph.sanitizeHtml(f.substring(e));var g=b.getElementsByTagName("svg");if(0<g.length){document.body.appendChild(b);try{e=f=1;var d=g[0].getAttribute("width"),h=g[0].getAttribute("height");d=null!=d&&"%"!=d.charAt(d.length--1)?parseFloat(d):NaN;h=null!=h&&"%"!=h.charAt(h.length-1)?parseFloat(h):NaN;var m=g[0].getAttribute("viewBox");if(null!=m&&!isNaN(d)&&!isNaN(h)){var p=m.split(" ");4<=m.length&&(f=parseFloat(p[2])/d,e=parseFloat(p[3])/h,new mxRectangle(parseFloat(p[0]),parseFloat(p[1]),parseFloat(p[2]),parseFloat(p[3])))}var k=g[0].getBBox();if(0<k.width&&0<k.height){d=0;var v=g[0].querySelectorAll("[stroke-width]");for(h=0;h<v.length;h++)d=Math.max(d,parseFloat(v[h].getAttribute("stroke-width")));k=new mxRectangle(k.x,+1)?parseFloat(d):NaN;h=null!=h&&"%"!=h.charAt(h.length-1)?parseFloat(h):NaN;var m=g[0].getAttribute("viewBox");if(null!=m&&!isNaN(d)&&!isNaN(h)){var p=m.split(" ");4<=m.length&&(f=parseFloat(p[2])/d,e=parseFloat(p[3])/h,new mxRectangle(parseFloat(p[0]),parseFloat(p[1]),parseFloat(p[2]),parseFloat(p[3])))}var k=g[0].getBBox();if(0<k.width&&0<k.height){d=0;var u=g[0].querySelectorAll("[stroke-width]");for(h=0;h<u.length;h++)d=Math.max(d,parseFloat(u[h].getAttribute("stroke-width")));k=new mxRectangle(k.x,k.y,k.width,k.height);k.grow(d/2);b.getElementsByTagName("svg")[0].setAttribute("viewBox",k.x+" "+k.y+" "+k.width+" "+k.height);b.getElementsByTagName("svg")[0].setAttribute("width",k.width/f);b.getElementsByTagName("svg")[0].setAttribute("height",k.height/e)}}catch(w){}finally{document.body.removeChild(b)}a=Editor.createSvgDataUri(mxUtils.getXml(g[0]))}}}catch(w){}return a};Graph.createRemoveIcon=function(a,b){var f=document.createElement("img");f.setAttribute("src",Dialog.prototype.clearImage);f.setAttribute("title",a);f.setAttribute("width","13");f.setAttribute("height","10");f.style.marginLeft="4px";f.style.marginBottom="-1px";f.style.cursor="pointer";mxEvent.addListener(f,"click",b);return f};Graph.isPageLink=function(a){return null!=a&&"data:page/id,"==a.substring(0,13)};Graph.rewritePageLinks=function(a,b){function f(g,d){var h=g.getAttribute(d);if(null!=h){Graph.isPageLink(h)&&(h="#"+h.substring(h.indexOf(":")+1));var m=d;b&&"xlink:href"==d&&(g.removeAttribute(d),m="href");g.setAttribute(m,h)}}a=a.getElementsByTagName("a");if(null!=a)for(var e=0;e<a.length;e++)f(a[e],"href"),f(a[e],"xlink:href")};Graph.isLink=function(a){return null!=a&&a.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};@@ -2615,32 +2616,32 @@ Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBaGraph.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(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(f,e){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var g=f.view.graph.tolerance,d=!0,h=null,m=mxUtils.bind(this,function(v){d=!0;h=new mxPoint(mxEvent.getClientX(v),mxEvent.getClientY(v))}),p=mxUtils.bind(this,function(v){d=d&&null!=h&&Math.abs(h.x-mxEvent.getClientX(v))<g&&Math.abs(h.y-mxEvent.getClientY(v))<g}),k=mxUtils.bind(this,function(v){if(d)for(var w=mxEvent.getSource(v);null!=-w&&w!=e.node;){if("a"==w.nodeName.toLowerCase()){f.view.graph.labelLinkClicked(f,w,v);break}w=w.parentNode}});mxEvent.addGestureListeners(e.node,m,p,k);mxEvent.addListener(e.node,"click",function(v){mxEvent.consume(v)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(f){var e=mxEvent.getSource(f);"A"==e.nodeName&&(e=e.getAttribute("href"),null!=+Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(f,e){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var g=f.view.graph.tolerance,d=!0,h=null,m=mxUtils.bind(this,function(u){d=!0;h=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),p=mxUtils.bind(this,function(u){d=d&&null!=h&&Math.abs(h.x-mxEvent.getClientX(u))<g&&Math.abs(h.y-mxEvent.getClientY(u))<g}),k=mxUtils.bind(this,function(u){if(d)for(var w=mxEvent.getSource(u);null!=+w&&w!=e.node;){if("a"==w.nodeName.toLowerCase()){f.view.graph.labelLinkClicked(f,w,u);break}w=w.parentNode}});mxEvent.addGestureListeners(e.node,m,p,k);mxEvent.addListener(e.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(f){var e=mxEvent.getSource(f);"A"==e.nodeName&&(e=e.getAttribute("href"),null!=e&&this.graph.isCustomLink(e)&&(mxEvent.isTouchEvent(f)||!mxEvent.isPopupTrigger(f))&&this.graph.customLinkClicked(e)&&mxEvent.consume(f))}))}}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(h){var m=mxUtils.getValue(h.style,mxConstants.STYLE_SHAPE,null);return!this.isSpecialColor(h.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(h.style,"lineShape",null)&&(this.model.isVertex(h.cell)||"arrow"==m||"pipe"==m||"wire"==m||"filledEdge"==m||"flexArrow"==m||"mxgraph.arrows2.wedgeArrow"==m)};Graph.prototype.isGradientState=function(h){var m=mxUtils.getValue(h.style,mxConstants.STYLE_SHAPE,null);return this.isFillState(h)&&"wire"!=m&&"pipe"!=m};Graph.prototype.isStrokeState=function(h){return!0};Graph.prototype.getTextColor=function(h,m){for(var p=m?"color":"background-color",k=h==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(h,p);null==k&&null!=h&&h!=this.cellEditor.textarea.parentNode;)k=h==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(h,p),h=h.parentNode;if("rgba(0, 0, 0, 0)"==k||"transparent"==k)k=mxConstants.NONE;return k};Graph.prototype.isSpecialColor=function(h){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],h)};Graph.prototype.isGlassState=function(h){h=mxUtils.getValue(h.style,mxConstants.STYLE_SHAPE,null);return"label"==h||"rectangle"==h||"internalStorage"==h||"ext"==h||"umlLifeline"==h||"swimlane"==h||"process"==h};Graph.prototype.isRoundedState=function(h){return null!=h.shape?h.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(h.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(h){var m=mxUtils.getValue(h.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(h.style,mxConstants.STYLE_CURVED,!1)&&("connector"==m||"filledEdge"==m||"wire"==m)};Graph.prototype.isAutoSizeState=function(h){return"1"==mxUtils.getValue(h.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(h){return null!=-mxUtils.getValue(h.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(h){return!0};Graph.prototype.getVerticesAndEdges=function(h,m){h=null!=h?h:!0;m=null!=m?m:!0;var p=this.model;return p.filterDescendants(function(k){return h&&p.isVertex(k)||m&&p.isEdge(k)},p.getRoot())};Graph.prototype.applyNewEdgeStyle=function(h,m,p){h=this.getCellStyle(h).newEdgeStyle;if(null!=h){this.model.beginUpdate();try{var k=JSON.parse(h),v;for(v in k)this.setCellStyles(v,k[v],m),"edgeStyle"==-v&&"elbowEdgeStyle"==k[v]&&null!=p&&this.setCellStyles("elbow",p==mxConstants.DIRECTION_SOUTH||p==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(h){for(var m={},p=0;p<h.length;p++){var k=this.view.getState(h[p]);null!=k&&this.mergeStyle(k.style,m,0==p)}return m};Graph.prototype.mergeStyle=function(h,m,p){if(null!=h){var k={},v;for(v in h){var w=h[v];null!=w&&(k[v]=!0,null==m[v]&&p?m[v]=w:m[v]!=w&&delete m[v])}for(v in m)k[v]||-delete m[v]}};Graph.prototype.getStartEditingCell=function(h,m){m=this.getCellStyle(h);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(h)&&(!this.isSwimlane(h)||0==m)&&""==this.getLabel(h)&&0<this.model.getChildCount(h)&&(h=this.model.getChildAt(h,0),m=this.getCellStyle(h),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(h)&&(!this.isSwimlane(h)||0==m)&&""==this.getLabel(h)&&0<this.model.getChildCount(h))for(m=0;m<this.model.getChildCount(h);m++){var p=-this.model.getChildAt(h,m);if(this.isCellEditable(p)){h=p;break}}return h};Graph.prototype.copyStyle=function(h){return this.getCellStyle(h,!1)};Graph.prototype.pasteStyle=function(h,m,p,k){null!=h&&(k||(p=null!=p?p:Graph.cellStyles,Graph.removeKeys(h,function(v){return 0>mxUtils.indexOf(p,v)})),this.updateCellStyles(h,m))};Graph.prototype.copyCellStyles=function(h,m,p,k,v,w,y){var C=!1,D=!1;if(0<h.length)for(var E=0;E<h.length&&(C=this.getModel().isVertex(h[E])||C,!(D=this.getModel().isEdge(h[E])||-D)||!C);E++);else D=C=!0;C=C&&!w;D=D&&!y;for(E=0;E<m.length;E++)if(h=0<=mxUtils.indexOf(Graph.textStyles,m[E]),"strokeColor"!=m[E]||null!=p[E]&&"none"!=p[E])if(0<=mxUtils.indexOf(Graph.cellStyles,m[E])||"shape"==m[E])if("shape"!=m[E]&&(C||h)&&(null==p[E]?delete k[m[E]]:k[m[E]]=p[E]),D||h)null==p[E]?delete v[m[E]]:v[m[E]]=p[E]};Graph.prototype.includeDescendants=function(h){for(var m=[],p=0;p<h.length;p++)m=m.concat(this.model.getDescendants(h[p]));return m};Graph.prototype.pasteCellStyles=function(h,-m,p,k,v){m=null!=m?m:this.currentVertexStyle;p=null!=p?p:this.currentEdgeStyle;v=null!=v?v:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var w=0;w<h.length;w++){var y=h[w],C=this.model.getStyle(y),D=!1;null!=y.style&&(pairs=y.style.split(";"),D=D||0<=mxUtils.indexOf(pairs,"text"));if(D)var E=Graph.textStyles;else if(E=Graph.cellStyles.slice(),!k)for(var G=null!=C?C.split(";"):[],J=0;J<G.length;J++){var M=G[J],Q=M.indexOf("=");if(0<=Q){var L=M.substring(0,Q),W=mxUtils.indexOf(E,L);0<=W&&E.splice(W,-1);for(D=0;D<Graph.cellStyleGroups.length;D++){var X=Graph.cellStyleGroups[D];if(0<=mxUtils.indexOf(X,L))for(var T=0;T<X.length;T++){var N=mxUtils.indexOf(E,X[T]);0<=N&&E.splice(N,1)}}}}var ca=this.model.isEdge(y);D=ca?p:m;for(J=0;J<E.length;J++){L=E[J];var H=D[L];null!=H&&("edgeStyle"!=L||v)&&(ca||!ca&&0>mxUtils.indexOf(Graph.edgeStyles,L))&&(C=mxUtils.setStyle(C,L,H),"fontFamily"==L&&null==D.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),ca&&"rounded"==L&&"1"==H&&null==D.curved&&(C=mxUtils.setStyle(C,-"curved",null)))}Editor.simpleLabels&&(C=mxUtils.setStyle(mxUtils.setStyle(C,"html",null),"whiteSpace",null));this.model.setStyle(y,C)}}finally{this.model.endUpdate()}return h};Graph.prototype.updateCellStyles=function(h,m){this.model.beginUpdate();try{for(var p=0;p<m.length;p++)if(this.model.isVertex(m[p])||this.model.isEdge(m[p])){var k=this.getCellStyle(m[p],!1),v=k[mxConstants.STYLE_PERIMETER],w=!1;for(C in h){var y=h[C];if(k[C]!=y){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=-y){w=!0;var C="participant"}this.setCellStyles(C,y,[m[p]])}}w&&this.setCellStyles(mxConstants.STYLE_PERIMETER,v,[m[p]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=-function(h,m,p,k,v,w){this.useCssTransforms&&(h=h/this.currentScale-this.currentTranslate.x,m=m/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(h,m,p,k,v,w){k=null!=k?k:!0;v=null!=v?v:!0;null==p&&(p=this.getCurrentRoot(),null==p&&(p=this.getModel().getRoot()));if(null!=p)for(var y=this.model.getChildCount(p)-1;0<=y;y--){var C=this.model.getChildAt(p,y),D=this.getScaledCellAt(h,m,C,k,v,w);if(null!=D)return D;if(this.isCellVisible(C)&&-(v&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(D=this.view.getState(C),null!=D&&(null==w||!w(D,h,m))&&this.intersects(D,h,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(h){return!this.isSwimlane(h.cell)&&0<this.model.getChildCount(h.cell)&&!this.isCellCollapsed(h.cell)&&"1"==mxUtils.getValue(h.style,"recursiveResize","1")&&null==mxUtils.getValue(h.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(h){for(var m=this.getCellGeometry(h);null!=m&&-m.relative;)h=this.getModel().getParent(h),m=this.getCellGeometry(h);return h};Graph.prototype.isPart=function(h){return"1"==mxUtils.getValue(this.getCurrentCellStyle(h),"part","0")||this.isTableCell(h)||this.isTableRow(h)};Graph.prototype.getCompositeParents=function(h){for(var m=new mxDictionary,p=[],k=0;k<h.length;k++){var v=this.getCompositeParent(h[k]);this.isTableCell(v)&&(v=this.graph.model.getParent(v));this.isTableRow(v)&&(v=this.graph.model.getParent(v));null==v||m.get(v)||(m.put(v,!0),-p.push(v))}return p};Graph.prototype.getReferenceTerminal=function(h){if(null!=h){var m=this.getCellGeometry(h);null!=m&&m.relative&&(h=this.model.getParent(h))}null!=h&&this.model.isEdge(h)&&(h=this.model.getParent(h));null!=h&&(h=this.getCompositeParent(h));return h};Graph.prototype.getCompositeParent=function(h){for(;this.isPart(h);){var m=this.model.getParent(h);if(!this.model.isVertex(m))break;h=m}return h};Graph.prototype.filterSelectionCells=function(h){var m=this.getSelectionCells();if(null!=+mxUtils.getValue(h.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(h){return!0};Graph.prototype.getVerticesAndEdges=function(h,m){h=null!=h?h:!0;m=null!=m?m:!0;var p=this.model;return p.filterDescendants(function(k){return h&&p.isVertex(k)||m&&p.isEdge(k)},p.getRoot())};Graph.prototype.applyNewEdgeStyle=function(h,m,p){h=this.getCellStyle(h).newEdgeStyle;if(null!=h){this.model.beginUpdate();try{var k=JSON.parse(h),u;for(u in k)this.setCellStyles(u,k[u],m),"edgeStyle"==+u&&"elbowEdgeStyle"==k[u]&&null!=p&&this.setCellStyles("elbow",p==mxConstants.DIRECTION_SOUTH||p==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(h){for(var m={},p=0;p<h.length;p++){var k=this.view.getState(h[p]);null!=k&&this.mergeStyle(k.style,m,0==p)}return m};Graph.prototype.mergeStyle=function(h,m,p){if(null!=h){var k={},u;for(u in h){var w=h[u];null!=w&&(k[u]=!0,null==m[u]&&p?m[u]=w:m[u]!=w&&delete m[u])}for(u in m)k[u]||+delete m[u]}};Graph.prototype.getStartEditingCell=function(h,m){m=this.getCellStyle(h);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(h)&&(!this.isSwimlane(h)||0==m)&&""==this.getLabel(h)&&0<this.model.getChildCount(h)&&(h=this.model.getChildAt(h,0),m=this.getCellStyle(h),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(h)&&(!this.isSwimlane(h)||0==m)&&""==this.getLabel(h)&&0<this.model.getChildCount(h))for(m=0;m<this.model.getChildCount(h);m++){var p=+this.model.getChildAt(h,m);if(this.isCellEditable(p)){h=p;break}}return h};Graph.prototype.copyStyle=function(h){return this.getCellStyle(h,!1)};Graph.prototype.pasteStyle=function(h,m,p,k){null!=h&&(k||(p=null!=p?p:Graph.cellStyles,Graph.removeKeys(h,function(u){return 0>mxUtils.indexOf(p,u)})),this.updateCellStyles(h,m))};Graph.prototype.copyCellStyles=function(h,m,p,k,u,w,y){var C=!1,D=!1;if(0<h.length)for(var E=0;E<h.length&&(C=this.getModel().isVertex(h[E])||C,!(D=this.getModel().isEdge(h[E])||+D)||!C);E++);else D=C=!0;C=C&&!w;D=D&&!y;for(E=0;E<m.length;E++)if(h=0<=mxUtils.indexOf(Graph.textStyles,m[E]),"strokeColor"!=m[E]||null!=p[E]&&"none"!=p[E])if(0<=mxUtils.indexOf(Graph.cellStyles,m[E])||"shape"==m[E])if("shape"!=m[E]&&(C||h)&&(null==p[E]?delete k[m[E]]:k[m[E]]=p[E]),D||h)null==p[E]?delete u[m[E]]:u[m[E]]=p[E]};Graph.prototype.includeDescendants=function(h){for(var m=[],p=0;p<h.length;p++)m=m.concat(this.model.getDescendants(h[p]));return m};Graph.prototype.pasteCellStyles=function(h,+m,p,k,u){m=null!=m?m:this.currentVertexStyle;p=null!=p?p:this.currentEdgeStyle;u=null!=u?u:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var w=0;w<h.length;w++){var y=h[w],C=this.model.getStyle(y),D=!1;null!=y.style&&(pairs=y.style.split(";"),D=D||0<=mxUtils.indexOf(pairs,"text"));if(D)var E=Graph.textStyles;else if(E=Graph.cellStyles.slice(),!k)for(var G=null!=C?C.split(";"):[],J=0;J<G.length;J++){var M=G[J],Q=M.indexOf("=");if(0<=Q){var K=M.substring(0,Q),W=mxUtils.indexOf(E,K);0<=W&&E.splice(W,+1);for(D=0;D<Graph.cellStyleGroups.length;D++){var X=Graph.cellStyleGroups[D];if(0<=mxUtils.indexOf(X,K))for(var T=0;T<X.length;T++){var N=mxUtils.indexOf(E,X[T]);0<=N&&E.splice(N,1)}}}}var ca=this.model.isEdge(y);D=ca?p:m;for(J=0;J<E.length;J++){K=E[J];var H=D[K];null!=H&&("edgeStyle"!=K||u)&&(ca||!ca&&0>mxUtils.indexOf(Graph.edgeStyles,K))&&(C=mxUtils.setStyle(C,K,H),"fontFamily"==K&&null==D.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),ca&&"rounded"==K&&"1"==H&&null==D.curved&&(C=mxUtils.setStyle(C,+"curved",null)))}Editor.simpleLabels&&(C=mxUtils.setStyle(mxUtils.setStyle(C,"html",null),"whiteSpace",null));this.model.setStyle(y,C)}}finally{this.model.endUpdate()}return h};Graph.prototype.updateCellStyles=function(h,m){this.model.beginUpdate();try{for(var p=0;p<m.length;p++)if(this.model.isVertex(m[p])||this.model.isEdge(m[p])){var k=this.getCellStyle(m[p],!1),u=k[mxConstants.STYLE_PERIMETER],w=!1;for(C in h){var y=h[C];if(k[C]!=y){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=+y){w=!0;var C="participant"}this.setCellStyles(C,y,[m[p]])}}w&&this.setCellStyles(mxConstants.STYLE_PERIMETER,u,[m[p]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=+function(h,m,p,k,u,w){this.useCssTransforms&&(h=h/this.currentScale-this.currentTranslate.x,m=m/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(h,m,p,k,u,w){k=null!=k?k:!0;u=null!=u?u:!0;null==p&&(p=this.getCurrentRoot(),null==p&&(p=this.getModel().getRoot()));if(null!=p)for(var y=this.model.getChildCount(p)-1;0<=y;y--){var C=this.model.getChildAt(p,y),D=this.getScaledCellAt(h,m,C,k,u,w);if(null!=D)return D;if(this.isCellVisible(C)&&+(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(D=this.view.getState(C),null!=D&&(null==w||!w(D,h,m))&&this.intersects(D,h,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(h){return!this.isSwimlane(h.cell)&&0<this.model.getChildCount(h.cell)&&!this.isCellCollapsed(h.cell)&&"1"==mxUtils.getValue(h.style,"recursiveResize","1")&&null==mxUtils.getValue(h.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(h){for(var m=this.getCellGeometry(h);null!=m&&+m.relative;)h=this.getModel().getParent(h),m=this.getCellGeometry(h);return h};Graph.prototype.isPart=function(h){return"1"==mxUtils.getValue(this.getCurrentCellStyle(h),"part","0")||this.isTableCell(h)||this.isTableRow(h)};Graph.prototype.getCompositeParents=function(h){for(var m=new mxDictionary,p=[],k=0;k<h.length;k++){var u=this.getCompositeParent(h[k]);this.isTableCell(u)&&(u=this.graph.model.getParent(u));this.isTableRow(u)&&(u=this.graph.model.getParent(u));null==u||m.get(u)||(m.put(u,!0),+p.push(u))}return p};Graph.prototype.getReferenceTerminal=function(h){if(null!=h){var m=this.getCellGeometry(h);null!=m&&m.relative&&(h=this.model.getParent(h))}null!=h&&this.model.isEdge(h)&&(h=this.model.getParent(h));null!=h&&(h=this.getCompositeParent(h));return h};Graph.prototype.getCompositeParent=function(h){for(;this.isPart(h);){var m=this.model.getParent(h);if(!this.model.isVertex(m))break;h=m}return h};Graph.prototype.filterSelectionCells=function(h){var m=this.getSelectionCells();if(null!=h){for(var p=[],k=0;k<m.length;k++)h(m[k])||p.push(m[k]);m=p}return m};var a=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(h){if(this.useCssTransforms){var m=this.currentScale,p=this.currentTranslate;h=new mxRectangle((h.x+2*p.x)*m-p.x,(h.y+2*p.y)*m-p.y,h.width*m,h.height*m)}a.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(h){h=this.strokeWidth;this.graph.useCssTransforms&&(h/=this.graph.currentScale);return h};mxGraphView.prototype.getGraphBounds=function(){var h=this.graphBounds;if(this.graph.useCssTransforms){var m=this.graph.currentTranslate,p=this.graph.currentScale;h=new mxRectangle((h.x+m.x)*p,(h.y+m.y)*p,h.width*p,h.height*p)}return h};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var b=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(h){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);b.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 f=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(h){h=f.apply(this,arguments);for(var m=[],p=0;p<h.length;p++)this.isTableRow(h[p])||this.isTableCell(h[p])||m.push(h[p]);return m};var e=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(h){h=e.apply(this,arguments);for(var m=[],p=0;p<h.length;p++)this.isTable(h[p])||this.isTableRow(h[p])||this.isTableCell(h[p])||m.push(h[p]);return m};Graph.prototype.updateCssTransform=function(){var h=this.view.getDrawPane();if(null!=h)if(h=h.parentNode,this.useCssTransforms){var m=h.getAttribute("transform");h.setAttribute("transformOrigin","0 0");var p=Math.round(100*this.currentScale)/100;h.setAttribute("transform","scale("+p+","+p+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");m!=h.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",h.getAttribute("transform"))}else h.removeAttribute("transformOrigin"),h.removeAttribute("transform")};var g=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var h=this.graph.useCssTransforms,-m=this.scale,p=this.translate;h&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);g.apply(this,arguments);h&&(this.scale=m,this.translate=p)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(h,m,p){var k=this.useCssTransforms,v=this.view.scale,w=this.view.translate;k&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=v,this.view.translate=w,this.useCssTransforms=+m=this.scale,p=this.translate;h&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);g.apply(this,arguments);h&&(this.scale=m,this.translate=p)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(h,m,p){var k=this.useCssTransforms,u=this.view.scale,w=this.view.translate;k&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=u,this.view.translate=w,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};Graph.prototype.labelLinkClicked=function(a,b,f){var e=b.getAttribute("href");e!=Graph.sanitizeLink(e)&&Graph.sanitizeNode(b);if(null!=e&&!this.isCustomLink(e)&&(mxEvent.isLeftMouseButton(f)&&!mxEvent.isPopupTrigger(f)||mxEvent.isTouchEvent(f))){if(!this.isEnabled()||this.isCellLocked(a.cell))a=this.isBlankLink(e)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(e),a);mxEvent.consume(f)}};Graph.prototype.openLink=function(a,b,f){var e=window;try{if(a=Graph.sanitizeLink(a),null!=a)if("_self"==b&&window!=window.top)window.location.href=a;else if(a.substring(0,this.baseUrl.length)!=this.baseUrl||"#"!=a.charAt(this.baseUrl.length)||"_top"!=b||window!=window.top||navigator.standalone)e=window.open(a,null!=b?b:"_blank",f?null:"noopener,noreferrer"),null==e||f||(e.opener=null);else{var g=a.split("#")[1];window.location.hash=="#"+g&&(window.location.hash="");window.location.hash=g}}catch(d){}return e};Graph.prototype.getLinkTitle=function(a){return a.substring(a.lastIndexOf("/")+1)};Graph.prototype.isCustomLink=function(a){return"data:"==a.substring(0,5)};Graph.prototype.customLinkClicked=function(a,b){return!1};Graph.prototype.isExternalProtocol=function(a){return"mailto:"===a.substring(0,7)};Graph.prototype.isBlankLink=function(a){return!this.isExternalProtocol(a)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(a)&&a.substring(0,this.domainUrl.length)!==this.domainUrl)};@@ -2655,7 +2656,7 @@ Graph.prototype.createLayouts=function(a){for(var b=[],f=0;f<a.length;f++)if(0<=Graph.prototype.getDataForCells=function(a,b){for(var f=[],e=0;e<a.length;e++){var g={};g.id=a[e].id;var d=null!=a[e].value?a[e].value.attributes:null;this.isReplacePlaceholders(a[e])&&b&&(g.value=this.getLabel(a[e]));if(null!=d)for(var h=0;h<d.length;h++)g[d[h].nodeName]=d[h].nodeValue;else g.label=this.convertValueToString(a[e]);f.push(g)}return f};Graph.prototype.getNodesForCells=function(a){for(var b=[],f=0;f<a.length;f++){var e=this.view.getState(a[f]);if(null!=e){for(var g=this.cellRenderer.getShapesForState(e),d=0;d<g.length;d++)null!=g[d]&&null!=g[d].node&&b.push(g[d].node);null!=e.control&&null!=e.control.node&&b.push(e.control.node)}}return b};Graph.prototype.createWipeAnimations=function(a,b){for(var f=[],e=0;e<a.length;e++){var g=this.view.getState(a[e]);null!=g&&null!=g.shape&&(this.model.isEdge(g.cell)&&null!=g.absolutePoints&&1<g.absolutePoints.length?f.push(this.createEdgeWipeAnimation(g,b)):this.model.isVertex(g.cell)&&null!=g.shape.bounds&&f.push(this.createVertexWipeAnimation(g,b)))}return f};-Graph.prototype.createEdgeWipeAnimation=function(a,b){var f=a.absolutePoints.slice(),e=a.segments,g=a.length,d=f.length;return{execute:mxUtils.bind(this,function(h,m){if(null!=a.shape){var p=[f[0]];m=h/m;b||(m=1-m);for(var k=g*m,v=1;v<d;v++)if(k<=e[v-1]){p.push(new mxPoint(f[v-1].x+(f[v].x-f[v-1].x)*k/e[v-1],f[v-1].y+(f[v].y-f[v-1].y)*k/e[v-1]));break}else k-=e[v-1],p.push(f[v]);a.shape.points=p;a.shape.redraw();0==h&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=+Graph.prototype.createEdgeWipeAnimation=function(a,b){var f=a.absolutePoints.slice(),e=a.segments,g=a.length,d=f.length;return{execute:mxUtils.bind(this,function(h,m){if(null!=a.shape){var p=[f[0]];m=h/m;b||(m=1-m);for(var k=g*m,u=1;u<d;u++)if(k<=e[u-1]){p.push(new mxPoint(f[u-1].x+(f[u].x-f[u-1].x)*k/e[u-1],f[u-1].y+(f[u].y-f[u-1].y)*k/e[u-1]));break}else k-=e[u-1],p.push(f[u]);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=m)}}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.points=f,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 f=new mxRectangle.fromRectangle(a.shape.bounds);return{execute:mxUtils.bind(this,function(e,g){null!=a.shape&&(g=e/g,b||(g=1-g),a.shape.bounds=new mxRectangle(f.x,f.y,f.width*g,f.height),a.shape.redraw(),0==e&&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=f,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,f,e){f=null!=f?f:30;e=null!=e?e:30;var g=null,d=0,h=mxUtils.bind(this,function(){if(d==f||this.stoppingCustomActions){window.clearInterval(g);for(var m=0;m<a.length;m++)a[m].stop();null!=b&&b()}else for(m=0;m<a.length;m++)a[m].execute(d,f);d++});g=window.setInterval(h,e);h()};@@ -2670,11 +2671,11 @@ Graph.prototype.isLabelMovable=function(a){var b=this.getCurrentCellStyle(a);retGraph.prototype.getClickableLinkForCell=function(a){do{var b=this.getLinkForCell(a);if(null!=b)return b;a=this.model.getParent(a)}while(null!=a);return null};Graph.prototype.getGlobalVariable=function(a){var b=null;"date"==a?b=(new Date).toLocaleDateString():"time"==a?b=(new Date).toLocaleTimeString():"timestamp"==a?b=(new Date).toLocaleString():"date{"==a.substring(0,5)&&(a=a.substring(5,a.length-1),b=this.formatDate(new Date,a));return b};Graph.prototype.formatDate=function(a,b,f){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 e=this.dateFormatCache,g=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,h=function(J,M){J=String(J);for(M=M||2;J.length<M;)J="0"+J;return J};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(a)||-/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(e.masks[b]||b||e.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),f=!0);var m=f?"getUTC":"get",p=a[m+"Date"](),k=a[m+"Day"](),v=a[m+"Month"](),w=a[m+"FullYear"](),y=a[m+"Hours"](),C=a[m+"Minutes"](),D=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var E=f?0:a.getTimezoneOffset(),G={d:p,dd:h(p),ddd:e.i18n.dayNames[k],dddd:e.i18n.dayNames[k+7],m:v+1,mm:h(v+1),mmm:e.i18n.monthNames[v],mmmm:e.i18n.monthNames[v++/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(e.masks[b]||b||e.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),f=!0);var m=f?"getUTC":"get",p=a[m+"Date"](),k=a[m+"Day"](),u=a[m+"Month"](),w=a[m+"FullYear"](),y=a[m+"Hours"](),C=a[m+"Minutes"](),D=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var E=f?0:a.getTimezoneOffset(),G={d:p,dd:h(p),ddd:e.i18n.dayNames[k],dddd:e.i18n.dayNames[k+7],m:u+1,mm:h(u+1),mmm:e.i18n.monthNames[u],mmmm:e.i18n.monthNames[u+12],yy:String(w).slice(2),yyyy:w,h:y%12||12,hh:h(y%12||12),H:y,HH:h(y),M:C,MM:h(C),s:D,ss:h(D),l:h(m,3),L:h(99<m?Math.round(m/10):m),t:12>y?"a":"p",tt:12>y?"am":"pm",T:12>y?"A":"P",TT:12>y?"AM":"PM",Z:f?"UTC":(String(a).match(g)||[""]).pop().replace(d,""),o:(0<E?"-":"+")+h(100*Math.floor(Math.abs(E)/60)+Math.abs(E)%60,4),S:["th","st","nd","rd"][3<p%10?0:(10!=p%100-p%10)*p%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(J){return J in G?G[J]:J.slice(1,J.length-1)})};Graph.prototype.getLayerForCell=function(a){for(;null!=a&&!this.model.isLayer(a);)a=this.model.getParent(a);return a};Graph.prototype.getLayerForCells=function(a){var b=null;if(0<a.length){b=this.getLayerForCell(a[0]);for(var f=1;f<a.length;f++)if(!this.model.isAncestor(b,a[f])){b=null;break}}return b};-Graph.prototype.createLayersDialog=function(a,b){var f=document.createElement("div");f.style.position="absolute";for(var e=this.getModel(),g=e.getChildCount(e.root),d=0;d<g;d++)mxUtils.bind(this,function(h){function m(){e.isVisible(h)?(v.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(k,75)):(v.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(k,25))}var p=this.convertValueToString(h)||mxResources.get("background")||"Background",k=document.createElement("div");k.style.overflow=-"hidden";k.style.textOverflow="ellipsis";k.style.padding="2px";k.style.whiteSpace="nowrap";k.style.cursor="pointer";k.setAttribute("title",mxResources.get(e.isVisible(h)?"hideIt":"show",[p]));var v=document.createElement("img");v.setAttribute("draggable","false");v.setAttribute("align","absmiddle");v.setAttribute("border","0");v.style.position="relative";v.style.width="16px";v.style.padding="0px 6px 0 4px";b&&(v.style.filter="invert(100%)",v.style.top="-2px");k.appendChild(v);mxUtils.write(k,p);f.appendChild(k);+Graph.prototype.createLayersDialog=function(a,b){var f=document.createElement("div");f.style.position="absolute";for(var e=this.getModel(),g=e.getChildCount(e.root),d=0;d<g;d++)mxUtils.bind(this,function(h){function m(){e.isVisible(h)?(u.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(k,75)):(u.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(k,25))}var p=this.convertValueToString(h)||mxResources.get("background")||"Background",k=document.createElement("div");k.style.overflow=+"hidden";k.style.textOverflow="ellipsis";k.style.padding="2px";k.style.whiteSpace="nowrap";k.style.cursor="pointer";k.setAttribute("title",mxResources.get(e.isVisible(h)?"hideIt":"show",[p]));var u=document.createElement("img");u.setAttribute("draggable","false");u.setAttribute("align","absmiddle");u.setAttribute("border","0");u.style.position="relative";u.style.width="16px";u.style.padding="0px 6px 0 4px";b&&(u.style.filter="invert(100%)",u.style.top="-2px");k.appendChild(u);mxUtils.write(k,p);f.appendChild(k);mxEvent.addListener(k,"click",function(){e.setVisible(h,!e.isVisible(h));m();null!=a&&a(h)});m()})(e.getChildAt(e.root,d));return f};Graph.prototype.replacePlaceholders=function(a,b,f,e){e=[];if(null!=b){for(var g=0;match=this.placeholderPattern.exec(b);){var d=match[0];if(2<d.length&&"%label%"!=d&&"%tooltip%"!=d){var h=null;if(match.index>g&&"%"==b.charAt(match.index-1))h=d.substring(1);else{var m=d.substring(1,d.length-1),p={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==m)h=a.id;else if("width"===m.substring(0,5)&&this.model.isVertex(a)){var k=this.getCellGeometry(a);null!=k&&(h=k.width,5<m.length&&(h=Editor.toUnit(h,p[m.substring(6)])))}else if("height"==m.substring(0,6)&&this.model.isVertex(a))k=this.getCellGeometry(a),null!=k&&(h=k.height,6<m.length&&(h=Editor.toUnit(h,p[m.substring(7)])));else if("length"==m.substring(0,6)){for(k=a;null!=k&&!this.model.isEdge(k);)k=this.model.getParent(k);k=this.view.getState(k);null!=k&&(h=Math.round(k.length/this.view.scale),6<m.length&&(h=Editor.toUnit(h,p[m.substring(7)])))}else if(0>m.indexOf("{"))for(p=a;null==h&&null!=@@ -2688,13 +2689,13 @@ Graph.prototype.updateShapes=function(a,b,f){this.model.beginUpdate();try{var e=this.model.isEdge(a)&&this.model.isEdge(b[d]))if(f){var h=this.model.getStyle(b[d]);if(null!=h){var m=h.split(";");0<m.length&&0>m[0].indexOf("=")&&(m=m.slice(1));this.model.setStyle(b[d],m.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[b[d]]);this.setCellStyles("points",null,[b[d]]);this.pasteStyle(g,[b[d]],null,!0)}else g=this.copyStyle(b[d]),this.model.setStyle(b[d],e),this.pasteStyle(g,[b[d]]);"1"==mxUtils.getValue(this.getCellStyle(b[d],!1),"composite","0")&&this.removeChildCells(b[d])}}finally{this.model.endUpdate()}};Graph.prototype.selectCellsForConnectVertex=function(a,b,f){2==a.length&&this.model.isVertex(a[1])?(this.setSelectionCell(a[1]),this.scrollCellToVisible(a[1]),null!=f&&(mxEvent.isTouchEvent(b)?f.update(f.getState(this.view.getState(a[1]))):f.reset())):this.setSelectionCells(a)};Graph.prototype.isCloneConnectSource=function(a){var b=null;null!=this.layoutManager&&(b=this.layoutManager.getLayout(this.model.getParent(a)));return this.isTableRow(a)||this.isTableCell(a)||null!=b&&b.constructor==mxStackLayout};Graph.prototype.insertEdgeBeforeCell=function(a,b){for(var f=b;null!=f.parent&&null!=f.geometry&&f.geometry.relative&&f.parent!=a.parent;)f=this.model.getParent(f);null!=f&&null!=f.parent&&f.parent==a.parent&&(b=f.parent.getIndex(f),this.model.add(f.parent,a,b))};-Graph.prototype.connectVertex=function(a,b,f,e,g,d,h,m){d=d?d:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative&&this.model.isVertex(a.parent);)a=a.parent;var p=this.isCloneConnectSource(a),k=p?a:this.getCompositeParent(a),v=a.geometry.relative&&null!=a.parent.geometry?new mxPoint(a.parent.geometry.width*a.geometry.x,a.parent.geometry.height*a.geometry.y):new mxPoint(k.geometry.x,k.geometry.y);b==mxConstants.DIRECTION_NORTH?(v.x+=k.geometry.width/2,v.y-=f):b==-mxConstants.DIRECTION_SOUTH?(v.x+=k.geometry.width/2,v.y+=k.geometry.height+f):(v.x=b==mxConstants.DIRECTION_WEST?v.x-f:v.x+(k.geometry.width+f),v.y+=k.geometry.height/2);var w=this.view.getState(this.model.getParent(a));f=this.view.scale;var y=this.view.translate;k=y.x*f;y=y.y*f;null!=w&&this.model.isVertex(w.cell)&&(k=w.x,y=w.y);this.model.isVertex(a.parent)&&a.geometry.relative&&(v.x+=a.parent.geometry.x,v.y+=a.parent.geometry.y);d=d?null:(new mxRectangle(k+v.x*f,y+v.y*f)).grow(40*f);d=null!=d?+Graph.prototype.connectVertex=function(a,b,f,e,g,d,h,m){d=d?d:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative&&this.model.isVertex(a.parent);)a=a.parent;var p=this.isCloneConnectSource(a),k=p?a:this.getCompositeParent(a),u=a.geometry.relative&&null!=a.parent.geometry?new mxPoint(a.parent.geometry.width*a.geometry.x,a.parent.geometry.height*a.geometry.y):new mxPoint(k.geometry.x,k.geometry.y);b==mxConstants.DIRECTION_NORTH?(u.x+=k.geometry.width/2,u.y-=f):b==+mxConstants.DIRECTION_SOUTH?(u.x+=k.geometry.width/2,u.y+=k.geometry.height+f):(u.x=b==mxConstants.DIRECTION_WEST?u.x-f:u.x+(k.geometry.width+f),u.y+=k.geometry.height/2);var w=this.view.getState(this.model.getParent(a));f=this.view.scale;var y=this.view.translate;k=y.x*f;y=y.y*f;null!=w&&this.model.isVertex(w.cell)&&(k=w.x,y=w.y);this.model.isVertex(a.parent)&&a.geometry.relative&&(u.x+=a.parent.geometry.x,u.y+=a.parent.geometry.y);d=d?null:(new mxRectangle(k+u.x*f,y+u.y*f)).grow(40*f);d=null!=d?this.getCells(0,0,0,0,null,null,d,null,!0):null;w=this.view.getState(a);var C=null,D=null;if(null!=d){d=d.reverse();for(var E=0;E<d.length;E++)if(!this.isCellLocked(d[E])&&!this.model.isEdge(d[E])&&d[E]!=a)if(!this.model.isAncestor(a,d[E])&&this.isContainer(d[E])&&(null==C||d[E]==this.model.getParent(a)))C=d[E];else if(null==D&&this.isCellConnectable(d[E])&&!this.model.isAncestor(d[E],a)&&!this.isSwimlane(d[E])){var G=this.view.getState(d[E]);null==w||null==G||mxUtils.intersects(w,G)||(D=d[E])}}var J=-!mxEvent.isShiftDown(e)||mxEvent.isControlDown(e)||g;J&&("1"!=urlParams.sketch||g)&&(b==mxConstants.DIRECTION_NORTH?v.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?v.y+=a.geometry.height/2:v.x=b==mxConstants.DIRECTION_WEST?v.x-a.geometry.width/2:v.x+a.geometry.width/2);var M=[],Q=D;D=C;g=mxUtils.bind(this,function(L){if(null==h||null!=L||null==D&&p){this.model.beginUpdate();try{if(null==Q&&J){var W=this.getAbsoluteParent(null!=L?L:a);W=p?a:this.getCompositeParent(W);Q=null!=L?L:this.duplicateCells([W],-!1)[0];null!=L&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var X=this.getCellGeometry(Q);null!=X&&(null!=L&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?v.y-=X.height/2:b==mxConstants.DIRECTION_SOUTH?v.y+=X.height/2:v.x=b==mxConstants.DIRECTION_WEST?v.x-X.width/2:v.x+X.width/2),X.x=v.x-X.width/2,X.y=v.y-X.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),D=null):J&&!p&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var T=mxEvent.isControlDown(e)&&-mxEvent.isShiftDown(e)&&J||null==D&&p?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=T&&(M.push(T),this.applyNewEdgeStyle(a,[T],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(T,a));if(null==D&&null!=Q&&null!=a.parent&&p&&b==mxConstants.DIRECTION_WEST){var N=a.parent.getIndex(a);this.model.add(a.parent,Q,N)}null==D&&null!=Q&&M.push(Q);null==Q&&null!=T&&T.geometry.setTerminalPoint(v,!1);null!=T&&this.fireEvent(new mxEventObject("cellsInserted",-"cells",[T]))}finally{this.model.endUpdate()}}if(null!=m)m(M);else return M});if(null==h||null!=Q||!J||null==D&&p)return g(Q);h(k+v.x*f,y+v.y*f,g)};+!mxEvent.isShiftDown(e)||mxEvent.isControlDown(e)||g;J&&("1"!=urlParams.sketch||g)&&(b==mxConstants.DIRECTION_NORTH?u.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=a.geometry.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-a.geometry.width/2:u.x+a.geometry.width/2);var M=[],Q=D;D=C;g=mxUtils.bind(this,function(K){if(null==h||null!=K||null==D&&p){this.model.beginUpdate();try{if(null==Q&&J){var W=this.getAbsoluteParent(null!=K?K:a);W=p?a:this.getCompositeParent(W);Q=null!=K?K:this.duplicateCells([W],+!1)[0];null!=K&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var X=this.getCellGeometry(Q);null!=X&&(null!=K&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?u.y-=X.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=X.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-X.width/2:u.x+X.width/2),X.x=u.x-X.width/2,X.y=u.y-X.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),D=null):J&&!p&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var T=mxEvent.isControlDown(e)&&+mxEvent.isShiftDown(e)&&J||null==D&&p?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=T&&(M.push(T),this.applyNewEdgeStyle(a,[T],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(T,a));if(null==D&&null!=Q&&null!=a.parent&&p&&b==mxConstants.DIRECTION_WEST){var N=a.parent.getIndex(a);this.model.add(a.parent,Q,N)}null==D&&null!=Q&&M.push(Q);null==Q&&null!=T&&T.geometry.setTerminalPoint(u,!1);null!=T&&this.fireEvent(new mxEventObject("cellsInserted",+"cells",[T]))}finally{this.model.endUpdate()}}if(null!=m)m(M);else return M});if(null==h||null!=Q||!J||null==D&&p)return g(Q);h(k+u.x*f,y+u.y*f,g)};Graph.prototype.getIndexableText=function(a){a=null!=a?a:this.model.getDescendants(this.model.root);for(var b=document.createElement("div"),f=[],e,g=0;g<a.length;g++)if(e=a[g],this.model.isVertex(e)||this.model.isEdge(e))this.isHtmlLabel(e)?(b.innerHTML=Graph.sanitizeHtml(this.getLabel(e)),e=mxUtils.extractTextWithWhitespace([b])):e=this.getLabel(e),e=mxUtils.trim(e.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<e.length&&f.push(e);return f.join(" ")};Graph.prototype.convertValueToString=function(a){var b=this.model.getValue(a);if(null!=b&&"object"==typeof b){var f=null;if(this.isReplacePlaceholders(a)&&null!=a.getAttribute("placeholder")){b=a.getAttribute("placeholder");for(var e=a;null==f&&null!=e;)null!=e.value&&"object"==typeof e.value&&(f=e.hasAttribute(b)?null!=e.getAttribute(b)?e.getAttribute(b):"":null),e=this.model.getParent(e)}else f=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(f=b.getAttribute("label_"+Graph.diagramLanguage)),null==f&&(f=b.getAttribute("label")||"");return f||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(a){return null!=a&&null!=a.text&&null!=a.text.node?a.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(a,b){return null!=a.value&&"object"==typeof a.value?(a=a.value.getAttribute("link"),b||(a=mxUtils.removeJavascriptProtocol(a)),a):null};@@ -2706,8 +2707,8 @@ Graph.prototype.getDefaultColor=function(a,b,f){b="default"+b.charAt(0).toUpperCGraph.prototype.setAdaptiveColors=function(a){this.adaptiveColors="default"==a?null:a;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(a=this.view.getDrawPane().ownerSVGElement,null!=a&&(a.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};Graph.prototype.updateAlternateBounds=function(a,b,f){if(null!=a&&null!=b&&null!=this.layoutManager&&null!=b.alternateBounds){var e=this.layoutManager.getLayout(this.model.getParent(a));null!=e&&e.constructor==mxStackLayout&&(e.horizontal?b.alternateBounds.height=0:b.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.moveCellsTo=function(a,b){if(null!=a&&null!=b){for(var f=!0,e=0;e<a.length&&f;e++)f=f&&this.model.isEdge(a[e]);e=null;if(1==a.length&&f){var g=this.getCellGeometry(a[0]);null!=g&&(e=g.getTerminalPoint(!0))}e=null!=e?e:this.getBoundingBoxFromGeometry(a,f);null!=e&&(f=Math.round(this.snap(b.x)),b=Math.round(this.snap(b.y)),this.cellsMoved(a,f-e.x,b-e.y))}};Graph.prototype.isMoveCellsEvent=function(a,b){return mxEvent.isShiftDown(a)||"1"==mxUtils.getValue(b.style,"moveCells","0")};-Graph.prototype.foldCells=function(a,b,f,e,g){b=null!=b?b:!1;null==f&&(f=this.getFoldableCells(this.getSelectionCells(),a));if(null!=f){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<f.length;d++){var h=this.view.getState(f[d]),m=this.getCellGeometry(f[d]);if(null!=h&&null!=m){var p=0,k=0;if(m.alternateBounds)p=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var v=this.useCssTransforms?1:this.view.scale;-p=Math.round(m.width-h.width/v);k=Math.round(m.height-h.height/v)}if(0!=k||0!=p){var w=this.model.getParent(f[d]),y=this.layoutManager.getLayout(w);null==y?null!=g&&this.isMoveCellsEvent(g,h)&&this.moveSiblings(h,w,p,k):null!=g&&mxEvent.isAltDown(g)||y.constructor!=mxStackLayout||y.resizeLast||this.resizeParentStacks(w,y,p,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(f)}};+Graph.prototype.foldCells=function(a,b,f,e,g){b=null!=b?b:!1;null==f&&(f=this.getFoldableCells(this.getSelectionCells(),a));if(null!=f){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<f.length;d++){var h=this.view.getState(f[d]),m=this.getCellGeometry(f[d]);if(null!=h&&null!=m){var p=0,k=0;if(m.alternateBounds)p=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var u=this.useCssTransforms?1:this.view.scale;+p=Math.round(m.width-h.width/u);k=Math.round(m.height-h.height/u)}if(0!=k||0!=p){var w=this.model.getParent(f[d]),y=this.layoutManager.getLayout(w);null==y?null!=g&&this.isMoveCellsEvent(g,h)&&this.moveSiblings(h,w,p,k):null!=g&&mxEvent.isAltDown(g)||y.constructor!=mxStackLayout||y.resizeLast||this.resizeParentStacks(w,y,p,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(f)}};Graph.prototype.moveSiblings=function(a,b,f,e){this.model.beginUpdate();try{var g=this.getCellsBeyond(a.x,a.y,b,!0,!0);for(b=0;b<g.length;b++)if(g[b]!=a.cell){var d=this.view.getState(g[b]),h=this.getCellGeometry(g[b]);null!=d&&null!=h&&(h=h.clone(),h.translate(Math.round(f*Math.max(0,Math.min(1,(d.x-a.x)/a.width))),Math.round(e*Math.max(0,Math.min(1,(d.y-a.y)/a.height)))),this.model.setGeometry(g[b],h))}}finally{this.model.endUpdate()}};Graph.prototype.resizeParentStacks=function(a,b,f,e){if(null!=this.layoutManager&&null!=b&&b.constructor==mxStackLayout&&!b.resizeLast){this.model.beginUpdate();try{for(var g=b.horizontal;null!=a&&null!=b&&b.constructor==mxStackLayout&&b.horizontal==g&&!b.resizeLast;){var d=this.getCellGeometry(a),h=this.view.getState(a);null!=h&&null!=d&&(d=d.clone(),b.horizontal?d.width+=f+Math.min(0,h.width/this.view.scale-d.width):d.height+=e+Math.min(0,h.height/this.view.scale-d.height),this.model.setGeometry(a,d));a=this.model.getParent(a);b=this.layoutManager.getLayout(a)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(a){var b=this.getCurrentCellStyle(a);return this.isSwimlane(a)?"0"!=b.container:"1"==b.container};Graph.prototype.isCellConnectable=function(a){var b=this.getCurrentCellStyle(a);return!this.isCellLocked(this.getLayerForCell(a))&&(null!=b.connectable?"0"!=b.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};@@ -2748,7 +2749,7 @@ HoverIcons.prototype.click=function(a,b,f){var e=f.getEvent(),g=f.getGraphX(),d=HoverIcons.prototype.execute=function(a,b,f){f=f.getEvent();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(a.cell,b,this.graph.defaultEdgeLength,f,this.graph.isCloneEvent(f),this.graph.isCloneEvent(f)),f,this)};HoverIcons.prototype.reset=function(a){null!=a&&!a||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 a=mxRectangle.fromRectangle(this.currentState);null!=this.currentState.shape&&null!=this.currentState.shape.boundingBox&&(a=mxRectangle.fromRectangle(this.currentState.shape.boundingBox));a.grow(this.graph.tolerance);a.grow(this.arrowSpacing);var b=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(b=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var f=null;null!=b&&(a.x-=b.horizontalOffset/2,a.y-=b.verticalOffset/2,a.width+=b.horizontalOffset,a.height+=b.verticalOffset,null!=b.rotationShape&&null!=b.rotationShape.node&&"hidden"!=b.rotationShape.node.style.visibility&&"none"!=b.rotationShape.node.style.display&&null!=b.rotationShape.boundingBox&&-(f=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,p,k){if(null!=f){var v=new mxRectangle(p,k,m.clientWidth,m.clientHeight);mxUtils.intersects(v,f)&&(m==this.arrowUp?k-=v.y+v.height-f.y:m==this.arrowRight?p+=f.x+f.width-v.x:m==this.arrowDown?k+=f.y+f.height-v.y:m==this.arrowLeft&&(p-=v.x+v.width-f.x))}m.style.left=p+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-+(f=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,p,k){if(null!=f){var u=new mxRectangle(p,k,m.clientWidth,m.clientHeight);mxUtils.intersects(u,f)&&(m==this.arrowUp?k-=u.y+u.height-f.y:m==this.arrowRight?p+=f.x+f.width-u.x:m==this.arrowDown?k+=f.y+f.height-u.y:m==this.arrowLeft&&(p-=u.x+u.width-f.x))}m.style.left=p+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-this.triangleUp.height-this.tolerance));b(this.arrowRight,Math.round(a.x+a.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));b(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(a.y+a.height-this.tolerance));b(this.arrowLeft,Math.round(a.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){b=this.graph.getCellAt(a.x+a.width+this.triangleRight.width/2,this.currentState.getCenterY());var e=this.graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),g=this.graph.getCellAt(this.currentState.getCenterX(),a.y-this.triangleUp.height/2);a=this.graph.getCellAt(this.currentState.getCenterX(),a.y+a.height+this.triangleDown.height/2);null!=b&&b==e&&e==g&&g==a&&(a=g=e=b=null);var d=this.graph.getCellGeometry(this.currentState.cell),h=mxUtils.bind(this,function(m,p){var k=this.graph.model.isVertex(m)&&this.graph.getCellGeometry(m);null==m||this.graph.model.isAncestor(m,this.currentState.cell)||this.graph.isSwimlane(m)||!(null==k||null==d||k.height<3*d.height&&k.width<3*d.width)?p.style.visibility="visible":p.style.visibility="hidden"});h(b,this.arrowRight);h(e,this.arrowLeft);h(g,this.arrowUp);h(a,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")),@@ -2767,38 +2768,38 @@ Graph.prototype.setTableValues=function(a,b,f){for(var e=this.model.getChildCellGraph.prototype.createCrossFunctionalSwimlane=function(a,b,f,e,g,d,h,m,p){f=null!=f?f:120;e=null!=e?e:120;h=null!=h?h:"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;collapsible=0;recursiveResize=0;expand=0;";m=null!=m?m:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";p=null!=p?p:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";g=this.createVertex(null,null,null!=g?g:"",0,0,b*f,a*e,null!=d?d:"shape=table;childLayout=tableLayout;"+(null==g?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");d=mxUtils.getValue(this.getCellStyle(g),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);g.geometry.width+=d;g.geometry.height+=d;h=this.createVertex(null,null,"",0,d,b*f+d,e,h);g.insert(this.createParent(h,this.createVertex(null,null,"",d,0,f,e,m),b,f,0));return 1<a?(h.geometry.y=e+d,this.createParent(g,this.createParent(h,this.createVertex(null,null,"",d,0,f,e,p),b,f,0),a-1,0,e)):g};-Graph.prototype.visitTableCells=function(a,b){var f=null,e=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var g=0;g<e.length;g++){for(var d=this.getActualStartSize(e[g],!0),h=this.model.getChildCells(e[g],!0),m=this.getCellStyle(e[g],!0),p=null,k=[],v=0;v<h.length;v++){var w=this.getCellGeometry(h[v]),y={cell:h[v],rospan:1,colspan:1,row:g,col:v,geo:w};w=null!=w.alternateBounds?w.alternateBounds:w;y.point=new mxPoint(w.width+(null!=p?p.point.x:a.x+d.x),w.height+(null!=f&&null!=-f[0]?f[0].point.y:a.y+d.y));y.actual=y;null!=f&&null!=f[v]&&1<f[v].rowspan?(y.rowspan=f[v].rowspan-1,y.colspan=f[v].colspan,y.actual=f[v].actual):null!=p&&1<p.colspan?(y.rowspan=p.rowspan,y.colspan=p.colspan-1,y.actual=p.actual):(p=this.getCurrentCellStyle(h[v],!0),null!=p&&(y.rowspan=parseInt(p.rowspan||1),y.colspan=parseInt(p.colspan||1)));p=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(y,h.length,+Graph.prototype.visitTableCells=function(a,b){var f=null,e=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var g=0;g<e.length;g++){for(var d=this.getActualStartSize(e[g],!0),h=this.model.getChildCells(e[g],!0),m=this.getCellStyle(e[g],!0),p=null,k=[],u=0;u<h.length;u++){var w=this.getCellGeometry(h[u]),y={cell:h[u],rospan:1,colspan:1,row:g,col:u,geo:w};w=null!=w.alternateBounds?w.alternateBounds:w;y.point=new mxPoint(w.width+(null!=p?p.point.x:a.x+d.x),w.height+(null!=f&&null!=+f[0]?f[0].point.y:a.y+d.y));y.actual=y;null!=f&&null!=f[u]&&1<f[u].rowspan?(y.rowspan=f[u].rowspan-1,y.colspan=f[u].colspan,y.actual=f[u].actual):null!=p&&1<p.colspan?(y.rowspan=p.rowspan,y.colspan=p.colspan-1,y.actual=p.actual):(p=this.getCurrentCellStyle(h[u],!0),null!=p&&(y.rowspan=parseInt(p.rowspan||1),y.colspan=parseInt(p.colspan||1)));p=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(y,h.length,e.length,a.x+(p?d.x:0),a.y+(p?d.y:0));k.push(y);p=y}f=k}};Graph.prototype.getTableLines=function(a,b,f){var e=[],g=[];(b||f)&&this.visitTableCells(a,mxUtils.bind(this,function(d,h,m,p,k){b&&d.row<m-1&&(null==e[d.row]&&(e[d.row]=[new mxPoint(p,d.point.y)]),1<d.rowspan&&e[d.row].push(null),e[d.row].push(d.point));f&&d.col<h-1&&(null==g[d.col]&&(g[d.col]=[new mxPoint(d.point.x,k)]),1<d.colspan&&g[d.col].push(null),g[d.col].push(d.point))}));return e.concat(g)};Graph.prototype.isTableCell=function(a){return this.model.isVertex(a)&&this.isTableRow(this.model.getParent(a))};Graph.prototype.isTableRow=function(a){return this.model.isVertex(a)&&this.isTable(this.model.getParent(a))};Graph.prototype.isTable=function(a){a=this.getCellStyle(a);return null!=a&&"tableLayout"==a.childLayout};Graph.prototype.isStack=function(a){a=this.getCellStyle(a);return null!=a&&"stackLayout"==a.childLayout};Graph.prototype.isStackChild=function(a){return this.model.isVertex(a)&&this.isStack(this.model.getParent(a))};-Graph.prototype.setTableRowHeight=function(a,b,f){f=null!=f?f:!0;var e=this.getModel();e.beginUpdate();try{var g=this.getCellGeometry(a);if(null!=g){g=g.clone();g.height+=b;e.setGeometry(a,g);var d=e.getParent(a),h=e.getChildCells(d,!0);if(!f){var m=mxUtils.indexOf(h,a);if(m<h.length-1){var p=h[m+1],k=this.getCellGeometry(p);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,e.setGeometry(p,k))}}var v=this.getCellGeometry(d);null!=v&&(f||(f=a==h[h.length-1]),f&&(v=v.clone(),v.height+=b,e.setGeometry(d,v)))}}finally{e.endUpdate()}};-Graph.prototype.setTableColumnWidth=function(a,b,f){f=null!=f?f:!1;var e=this.getModel(),g=e.getParent(a),d=e.getParent(g),h=e.getChildCells(g,!0);a=mxUtils.indexOf(h,a);var m=a==h.length-1;e.beginUpdate();try{for(var p=e.getChildCells(d,!0),k=0;k<p.length;k++){g=p[k];h=e.getChildCells(g,!0);var v=h[a],w=this.getCellGeometry(v);null!=w&&(w=w.clone(),w.width+=b,null!=w.alternateBounds&&(w.alternateBounds.width+=b),e.setGeometry(v,w));a<h.length-1&&(v=h[a+1],w=this.getCellGeometry(v),null!=w&&(w=w.clone(),-w.x+=b,f||(w.width-=b,null!=w.alternateBounds&&(w.alternateBounds.width-=b)),e.setGeometry(v,w)))}if(m||f){var y=this.getCellGeometry(d);null!=y&&(y=y.clone(),y.width+=b,e.setGeometry(d,y))}null!=this.layoutManager&&this.layoutManager.executeLayout(d)}finally{e.endUpdate()}};function TableLayout(a){mxGraphLayout.call(this,a)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};+Graph.prototype.setTableRowHeight=function(a,b,f){f=null!=f?f:!0;var e=this.getModel();e.beginUpdate();try{var g=this.getCellGeometry(a);if(null!=g){g=g.clone();g.height+=b;e.setGeometry(a,g);var d=e.getParent(a),h=e.getChildCells(d,!0);if(!f){var m=mxUtils.indexOf(h,a);if(m<h.length-1){var p=h[m+1],k=this.getCellGeometry(p);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,e.setGeometry(p,k))}}var u=this.getCellGeometry(d);null!=u&&(f||(f=a==h[h.length-1]),f&&(u=u.clone(),u.height+=b,e.setGeometry(d,u)))}}finally{e.endUpdate()}};+Graph.prototype.setTableColumnWidth=function(a,b,f){f=null!=f?f:!1;var e=this.getModel(),g=e.getParent(a),d=e.getParent(g),h=e.getChildCells(g,!0);a=mxUtils.indexOf(h,a);var m=a==h.length-1;e.beginUpdate();try{for(var p=e.getChildCells(d,!0),k=0;k<p.length;k++){g=p[k];h=e.getChildCells(g,!0);var u=h[a],w=this.getCellGeometry(u);null!=w&&(w=w.clone(),w.width+=b,null!=w.alternateBounds&&(w.alternateBounds.width+=b),e.setGeometry(u,w));a<h.length-1&&(u=h[a+1],w=this.getCellGeometry(u),null!=w&&(w=w.clone(),+w.x+=b,f||(w.width-=b,null!=w.alternateBounds&&(w.alternateBounds.width-=b)),e.setGeometry(u,w)))}if(m||f){var y=this.getCellGeometry(d);null!=y&&(y=y.clone(),y.width+=b,e.setGeometry(d,y))}null!=this.layoutManager&&this.layoutManager.executeLayout(d)}finally{e.endUpdate()}};function TableLayout(a){mxGraphLayout.call(this,a)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};TableLayout.prototype.isVertexIgnored=function(a){return!this.graph.getModel().isVertex(a)||!this.graph.isCellVisible(a)};TableLayout.prototype.getSize=function(a,b){for(var f=0,e=0;e<a.length;e++)if(!this.isVertexIgnored(a[e])){var g=this.graph.getCellGeometry(a[e]);null!=g&&(f+=b?g.width:g.height)}return f};TableLayout.prototype.getRowLayout=function(a,b){var f=this.graph.model.getChildCells(a,!0),e=this.graph.getActualStartSize(a,!0);a=this.getSize(f,!0);b=b-e.x-e.width;var g=[];e=e.x;for(var d=0;d<f.length;d++){var h=this.graph.getCellGeometry(f[d]);null!=h&&(e+=(null!=h.alternateBounds?h.alternateBounds.width:h.width)*b/a,g.push(Math.round(e)))}return g};TableLayout.prototype.layoutRow=function(a,b,f,e){var g=this.graph.getModel(),d=g.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var h=a.x,m=0;null!=b&&(b=b.slice(),b.splice(0,0,a.x));for(var p=0;p<d.length;p++){var k=this.graph.getCellGeometry(d[p]);null!=k&&(k=k.clone(),k.y=a.y,k.height=f-a.y-a.height,null!=b?(k.x=b[p],k.width=b[p+1]-k.x,p==d.length-1&&p<b.length-2&&(k.width=e-k.x-a.x-a.width)):(k.x=h,h+=k.width,p==d.length-1?k.width=e-a.x-a.width-m:m+=k.width),k.alternateBounds=new mxRectangle(0,0,k.width,k.height),g.setGeometry(d[p],k))}return m};-TableLayout.prototype.execute=function(a){if(null!=a){var b=this.graph.getActualStartSize(a,!0),f=this.graph.getCellGeometry(a),e=this.graph.getCellStyle(a),g="1"==mxUtils.getValue(e,"resizeLastRow","0"),d="1"==mxUtils.getValue(e,"resizeLast","0");e="1"==mxUtils.getValue(e,"fixedRows","0");var h=this.graph.getModel(),m=0;h.beginUpdate();try{for(var p=f.height-b.y-b.height,k=f.width-b.x-b.width,v=h.getChildCells(a,!0),w=0;w<v.length;w++)h.setVisible(v[w],!0);var y=this.getSize(v,!1);if(0<p&&0<k&&0<-v.length&&0<y){if(g){var C=this.graph.getCellGeometry(v[v.length-1]);null!=C&&(C=C.clone(),C.height=p-y+C.height,h.setGeometry(v[v.length-1],C))}var D=d?null:this.getRowLayout(v[0],k),E=[],G=b.y;for(w=0;w<v.length;w++)C=this.graph.getCellGeometry(v[w]),null!=C&&(C=C.clone(),C.x=b.x,C.width=k,C.y=Math.round(G),G=g||e?G+C.height:G+C.height/y*p,C.height=Math.round(G)-C.y,h.setGeometry(v[w],C)),m=Math.max(m,this.layoutRow(v[w],D,C.height,k,E));e&&p<y&&(f=f.clone(),f.height=G+b.height,h.setGeometry(a,-f));d&&k<m+Graph.minTableColumnWidth&&(f=f.clone(),f.width=m+b.width+b.x+Graph.minTableColumnWidth,h.setGeometry(a,f));this.graph.visitTableCells(a,mxUtils.bind(this,function(J){h.setVisible(J.cell,J.actual.cell==J.cell);if(J.actual.cell!=J.cell){if(J.actual.row==J.row){var M=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo;J.actual.geo.width+=M.width}J.actual.col==J.col&&(M=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo,J.actual.geo.height+=M.height)}}))}else for(w=0;w<v.length;w++)h.setVisible(v[w],+TableLayout.prototype.execute=function(a){if(null!=a){var b=this.graph.getActualStartSize(a,!0),f=this.graph.getCellGeometry(a),e=this.graph.getCellStyle(a),g="1"==mxUtils.getValue(e,"resizeLastRow","0"),d="1"==mxUtils.getValue(e,"resizeLast","0");e="1"==mxUtils.getValue(e,"fixedRows","0");var h=this.graph.getModel(),m=0;h.beginUpdate();try{for(var p=f.height-b.y-b.height,k=f.width-b.x-b.width,u=h.getChildCells(a,!0),w=0;w<u.length;w++)h.setVisible(u[w],!0);var y=this.getSize(u,!1);if(0<p&&0<k&&0<+u.length&&0<y){if(g){var C=this.graph.getCellGeometry(u[u.length-1]);null!=C&&(C=C.clone(),C.height=p-y+C.height,h.setGeometry(u[u.length-1],C))}var D=d?null:this.getRowLayout(u[0],k),E=[],G=b.y;for(w=0;w<u.length;w++)C=this.graph.getCellGeometry(u[w]),null!=C&&(C=C.clone(),C.x=b.x,C.width=k,C.y=Math.round(G),G=g||e?G+C.height:G+C.height/y*p,C.height=Math.round(G)-C.y,h.setGeometry(u[w],C)),m=Math.max(m,this.layoutRow(u[w],D,C.height,k,E));e&&p<y&&(f=f.clone(),f.height=G+b.height,h.setGeometry(a,+f));d&&k<m+Graph.minTableColumnWidth&&(f=f.clone(),f.width=m+b.width+b.x+Graph.minTableColumnWidth,h.setGeometry(a,f));this.graph.visitTableCells(a,mxUtils.bind(this,function(J){h.setVisible(J.cell,J.actual.cell==J.cell);if(J.actual.cell!=J.cell){if(J.actual.row==J.row){var M=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo;J.actual.geo.width+=M.width}J.actual.col==J.col&&(M=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo,J.actual.geo.height+=M.height)}}))}else for(w=0;w<u.length;w++)h.setVisible(u[w],!1)}finally{h.endUpdate()}}};(function(){var a=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){a.apply(this,arguments);this.validEdges=[]};var b=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(w,y){y=null!=y?y:!0;var C=this.getState(w);null!=C&&y&&this.graph.model.isEdge(C.cell)&&null!=C.style&&1!=C.style[mxConstants.STYLE_CURVED]&&!C.invalid&&this.updateLineJumps(C)&&this.graph.cellRenderer.redraw(C,!1,this.isRendering());C=b.apply(this,arguments);null!=C&&y&&this.graph.model.isEdge(C.cell)&&null!=C.style&&1!=C.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(C);return C};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(w){var y=null!=this.node?this.node.getElementsByTagName("path"):null;if(null!=y)for(var C=null,D=0;D<y.length;D++)if("hidden"!=y[D].getAttribute("visibility")){if(!(null!=C&&C!=y[D].getAttribute("d")||null!=w&&0!=--w))return y[D]}else null==C&&(C=y[D].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 f=mxShape.prototype.paint;mxShape.prototype.paint=function(w){f.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var e=mxShape.prototype.createSvgCanvas;mxShape.prototype.createSvgCanvas=function(w){w=e.apply(this,arguments);null!=this.state&&(w.adaptiveColors=this.state.view.graph.getAdaptiveColors());return w};var g=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(w,y){return g.apply(this,arguments)||null!=w.routedPoints&&null!=y.routedPoints&&!mxUtils.equalPoints(y.routedPoints,w.routedPoints)};var d=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(w){d.apply(this,arguments);this.graph.model.isEdge(w.cell)&&1!=w.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(w)};mxGraphView.prototype.updateLineJumps=function(w){var y=w.absolutePoints;if(Graph.lineJumpsEnabled){var C=null!=w.routedPoints,D=null;if(null!=y&&null!=this.validEdges&&"none"!==mxUtils.getValue(w.style,"jumpStyle","none")){var E=function(la,O,V){var Y=new mxPoint(O,V);Y.type=la;D.push(Y);-Y=null!=w.routedPoints?w.routedPoints[D.length-1]:null;return null==Y||Y.type!=la||Y.x!=O||Y.y!=V},G=.5*this.scale;C=!1;D=[];for(var J=0;J<y.length-1;J++){for(var M=y[J+1],Q=y[J],L=[],W=y[J+2];J<y.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,W.x,W.y,M.x,M.y)<1*this.scale*this.scale;)M=W,J++,W=y[J+2];C=E(0,Q.x,Q.y)||C;for(var X=0;X<this.validEdges.length;X++){var T=this.validEdges[X],N=T.absolutePoints;if(null!=N&&mxUtils.intersects(w,T)&&"1"!=T.style.noJump){var ca=null;for(T=0;T<N.length-1;T++){var H=N[T++Y=null!=w.routedPoints?w.routedPoints[D.length-1]:null;return null==Y||Y.type!=la||Y.x!=O||Y.y!=V},G=.5*this.scale;C=!1;D=[];for(var J=0;J<y.length-1;J++){for(var M=y[J+1],Q=y[J],K=[],W=y[J+2];J<y.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,W.x,W.y,M.x,M.y)<1*this.scale*this.scale;)M=W,J++,W=y[J+2];C=E(0,Q.x,Q.y)||C;for(var X=0;X<this.validEdges.length;X++){var T=this.validEdges[X],N=T.absolutePoints;if(null!=N&&mxUtils.intersects(w,T)&&"1"!=T.style.noJump){var ca=null;for(T=0;T<N.length-1;T++){var H=N[T+1],S=N[T];for(W=N[T+2];T<N.length-2&&mxUtils.ptSegDistSq(S.x,S.y,W.x,W.y,H.x,H.y)<1*this.scale*this.scale;)H=W,T++,W=N[T+2];var ea=mxUtils.intersection(Q.x,Q.y,M.x,M.y,S.x,S.y,H.x,H.y);if(null!=ea&&(Math.abs(ea.x-Q.x)>G||Math.abs(ea.y-Q.y)>G)&&(Math.abs(ea.x-M.x)>G||Math.abs(ea.y-M.y)>G)&&(null==ca||mxUtils.ptLineDist(Q.x,Q.y,M.x,M.y,ca.x,ca.y)>G||mxUtils.ptLineDist(Q.x,Q.y,M.x,M.y,S.x,S.y)>G)&&(null==W||mxUtils.ptLineDist(Q.x,Q.y,M.x,M.y,W.x,W.y)>G||mxUtils.ptLineDist(Q.x,Q.y,M.x,M.y,H.x,H.y)>G)){W=-ea.x-Q.x;ca=ea.y-Q.y;ea={distSq:W*W+ca*ca,x:ea.x,y:ea.y};for(W=0;W<L.length;W++)if(L[W].distSq>ea.distSq){L.splice(W,0,ea);ea=null;break}null==ea||0!=L.length&&L[L.length-1].x===ea.x&&L[L.length-1].y===ea.y||L.push(ea)}ca=S}}}for(T=0;T<L.length;T++)C=E(1,L[T].x,L[T].y)||C}ea=y[y.length-1];C=E(0,ea.x,ea.y)||C}w.routedPoints=D;return C}return!1};var h=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(w,y,C){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||-null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)h.apply(this,arguments);else{var D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,E=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),J=!0,M=null,Q=null,L=[],W=null;w.begin();for(var X=0;X<this.state.routedPoints.length;X++){var T=this.state.routedPoints[X],N=new mxPoint(T.x/-this.scale,T.y/this.scale);0==X?N=y[0]:X==this.state.routedPoints.length-1&&(N=y[y.length-1]);var ca=!1;if(null!=M&&1==T.type){var H=this.state.routedPoints[X+1];T=H.x/this.scale-N.x;H=H.y/this.scale-N.y;T=T*T+H*H;null==W&&(W=new mxPoint(N.x-M.x,N.y-M.y),Q=Math.sqrt(W.x*W.x+W.y*W.y),0<Q?(W.x=W.x*E/Q,W.y=W.y*E/Q):W=null);T>E*E&&0<Q&&(T=M.x-N.x,H=M.y-N.y,T=T*T+H*H,T>E*E&&(ca=new mxPoint(N.x-W.x,N.y-W.y),T=new mxPoint(N.x+W.x,N.y+W.y),L.push(ca),this.addPoints(w,L,C,D,!1,null,J),L=0>Math.round(W.x)||-0==Math.round(W.x)&&0>=Math.round(W.y)?1:-1,J=!1,"sharp"==G?(w.lineTo(ca.x-W.y*L,ca.y+W.x*L),w.lineTo(T.x-W.y*L,T.y+W.x*L),w.lineTo(T.x,T.y)):"line"==G?(w.moveTo(ca.x+W.y*L,ca.y-W.x*L),w.lineTo(ca.x-W.y*L,ca.y+W.x*L),w.moveTo(T.x-W.y*L,T.y+W.x*L),w.lineTo(T.x+W.y*L,T.y-W.x*L),w.moveTo(T.x,T.y)):"arc"==G?(L*=1.3,w.curveTo(ca.x-W.y*L,ca.y+W.x*L,T.x-W.y*L,T.y+W.x*L,T.x,T.y)):(w.moveTo(T.x,T.y),J=!0),L=[T],ca=!0))}else W=null;ca||(L.push(N),M=N)}this.addPoints(w,L,C,D,!1,null,J);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;+ea.x-Q.x;ca=ea.y-Q.y;ea={distSq:W*W+ca*ca,x:ea.x,y:ea.y};for(W=0;W<K.length;W++)if(K[W].distSq>ea.distSq){K.splice(W,0,ea);ea=null;break}null==ea||0!=K.length&&K[K.length-1].x===ea.x&&K[K.length-1].y===ea.y||K.push(ea)}ca=S}}}for(T=0;T<K.length;T++)C=E(1,K[T].x,K[T].y)||C}ea=y[y.length-1];C=E(0,ea.x,ea.y)||C}w.routedPoints=D;return C}return!1};var h=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(w,y,C){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||+null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)h.apply(this,arguments);else{var D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,E=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),J=!0,M=null,Q=null,K=[],W=null;w.begin();for(var X=0;X<this.state.routedPoints.length;X++){var T=this.state.routedPoints[X],N=new mxPoint(T.x/+this.scale,T.y/this.scale);0==X?N=y[0]:X==this.state.routedPoints.length-1&&(N=y[y.length-1]);var ca=!1;if(null!=M&&1==T.type){var H=this.state.routedPoints[X+1];T=H.x/this.scale-N.x;H=H.y/this.scale-N.y;T=T*T+H*H;null==W&&(W=new mxPoint(N.x-M.x,N.y-M.y),Q=Math.sqrt(W.x*W.x+W.y*W.y),0<Q?(W.x=W.x*E/Q,W.y=W.y*E/Q):W=null);T>E*E&&0<Q&&(T=M.x-N.x,H=M.y-N.y,T=T*T+H*H,T>E*E&&(ca=new mxPoint(N.x-W.x,N.y-W.y),T=new mxPoint(N.x+W.x,N.y+W.y),K.push(ca),this.addPoints(w,K,C,D,!1,null,J),K=0>Math.round(W.x)||+0==Math.round(W.x)&&0>=Math.round(W.y)?1:-1,J=!1,"sharp"==G?(w.lineTo(ca.x-W.y*K,ca.y+W.x*K),w.lineTo(T.x-W.y*K,T.y+W.x*K),w.lineTo(T.x,T.y)):"line"==G?(w.moveTo(ca.x+W.y*K,ca.y-W.x*K),w.lineTo(ca.x-W.y*K,ca.y+W.x*K),w.moveTo(T.x-W.y*K,T.y+W.x*K),w.lineTo(T.x+W.y*K,T.y-W.x*K),w.moveTo(T.x,T.y)):"arc"==G?(K*=1.3,w.curveTo(ca.x-W.y*K,ca.y+W.x*K,T.x-W.y*K,T.y+W.x*K,T.x,T.y)):(w.moveTo(T.x,T.y),J=!0),K=[T],ca=!0))}else W=null;ca||(K.push(N),M=N)}this.addPoints(w,K,C,D,!1,null,J);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(w,y,C,D){return null!=y&&"centerPerimeter"==y.style[mxConstants.STYLE_PERIMETER]?new mxPoint(y.getCenterX(),y.getCenterY()):m.apply(this,arguments)};var p=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(w,y,C,D){if(null==y||null==w||"1"!=y.style.snapToPoint&&"1"!=w.style.snapToPoint)p.apply(this,arguments);else{y=this.getTerminalPort(w,y,D);var E=this.getNextPoint(w,C,D),G=this.graph.isOrthogonal(w),-J=mxUtils.toRadians(Number(y.style[mxConstants.STYLE_ROTATION]||"0")),M=new mxPoint(y.getCenterX(),y.getCenterY());if(0!=J){var Q=Math.cos(-J),L=Math.sin(-J);E=mxUtils.getRotatedPoint(E,Q,L,M)}Q=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);Q+=parseFloat(w.style[D?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);E=this.getPerimeterPoint(y,E,0==J&&G,Q);0!=J&&(Q=Math.cos(J),L=Math.sin(J),E=mxUtils.getRotatedPoint(E,Q,L,M));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,+J=mxUtils.toRadians(Number(y.style[mxConstants.STYLE_ROTATION]||"0")),M=new mxPoint(y.getCenterX(),y.getCenterY());if(0!=J){var Q=Math.cos(-J),K=Math.sin(-J);E=mxUtils.getRotatedPoint(E,Q,K,M)}Q=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);Q+=parseFloat(w.style[D?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);E=this.getPerimeterPoint(y,E,0==J&&G,Q);0!=J&&(Q=Math.cos(J),K=Math.sin(J),E=mxUtils.getRotatedPoint(E,Q,K,M));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,y,C,D,E),D)}};mxGraphView.prototype.snapToAnchorPoint=function(w,y,C,D,E){if(null!=y&&null!=w){w=this.graph.getAllConnectionConstraints(y);D=C=null;if(null!=w)for(var G=0;G<w.length;G++){var J=this.graph.getConnectionPoint(y,w[G]);if(null!=J){var M=(J.x-E.x)*(J.x-E.x)+(J.y-E.y)*(J.y-E.y);if(null==D||M<D)C=J,D=M}}null!=C&&(E=C)}return E};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,y,C){var D=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&-null!=C.state&&(D=C.state.view.graph.replacePlaceholders(C.state.cell,D));return D};var v=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(w){if(null!=w.style&&"undefined"!==typeof pako){var y=mxUtils.getValue(w.style,mxConstants.STYLE_SHAPE,null);if(null!=y&&"string"===typeof y&&"stencil("==y.substring(0,8))try{var C=y.substring(8,y.length-1),D=mxUtils.parseXml(Graph.decompress(C));return new mxShape(new mxStencil(D.documentElement))}catch(E){null!=window.console&&-console.log("Error in shape: "+E)}}return v.apply(this,arguments)}})();mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];mxStencilRegistry.filesLoaded={};mxStencilRegistry.isFileLoaded=function(a){return!mxClient.IS_FF&&mxStencilRegistry.filesLoaded[a]};mxStencilRegistry.setFileLoaded=function(a){mxStencilRegistry.filesLoaded[a]=!0};+null!=C.state&&(D=C.state.view.graph.replacePlaceholders(C.state.cell,D));return D};var u=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(w){if(null!=w.style&&"undefined"!==typeof pako){var y=mxUtils.getValue(w.style,mxConstants.STYLE_SHAPE,null);if(null!=y&&"string"===typeof y&&"stencil("==y.substring(0,8))try{var C=y.substring(8,y.length-1),D=mxUtils.parseXml(Graph.decompress(C));return new mxShape(new mxStencil(D.documentElement))}catch(E){null!=window.console&&+console.log("Error in shape: "+E)}}return u.apply(this,arguments)}})();mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];mxStencilRegistry.filesLoaded={};mxStencilRegistry.isFileLoaded=function(a){return!mxClient.IS_FF&&mxStencilRegistry.filesLoaded[a]};mxStencilRegistry.setFileLoaded=function(a){mxStencilRegistry.filesLoaded[a]=!0};mxStencilRegistry.getStencil=function(a){var b=mxStencilRegistry.stencils[a];if(null==b&&null==mxCellRenderer.defaultShapes[a]&&mxStencilRegistry.dynamicLoading){var f=mxStencilRegistry.getBasenameForStencil(a);if(null!=f){b=mxStencilRegistry.libraries[f];if(null!=b){if(null==mxStencilRegistry.packages[f]){for(var e=0;e<b.length;e++){var g=b[e];if(!mxStencilRegistry.isFileLoaded(g))if(mxStencilRegistry.setFileLoaded(g),".xml"==g.toLowerCase().substring(g.length-4,g.length))mxStencilRegistry.loadStencilSet(g,null);else if(".js"==g.toLowerCase().substring(g.length-3,g.length))try{if(mxStencilRegistry.allowEval){var d=mxUtils.load(g);null!=d&&200<=d.getStatus()&&299>=d.getStatus()&&eval.call(window,d.getText())}}catch(h){null!=window.console&&console.log("error in getStencil:",a,f,b,g,h)}}mxStencilRegistry.packages[f]=1}}else f=f.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+f+".xml",null);b=mxStencilRegistry.stencils[a]}}return b};mxStencilRegistry.getBasenameForStencil=function(a){var b=null;if(null!=a&&"string"===typeof a&&(a=a.split("."),0<a.length&&"mxgraph"==a[0])){b=a[1];for(var f=2;f<a.length-1;f++)b+="/"+a[f]}return b};@@ -2811,108 +2812,108 @@ mxConstants.HANDLE_STROKECOLOR="#0088cf";mxConstants.VERTEX_SELECTION_COLOR="#005;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(q){return!mxEvent.isAltDown(q)||mxEvent.isShiftDown(q)};var f=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(q){return f.apply(this,arguments)||this.graph.isTableRow(q)||this.graph.isTableCell(q)};var e=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=function(q){return e.apply(this,arguments)||this.graph.isEdgeIgnored(q)};var g=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(q){return this.graph.isCloneEvent(q)!=g.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var q=new mxEllipse(null,this.highlightColor,this.highlightColor,0);q.opacity=mxConstants.HIGHLIGHT_OPACITY;return q};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=-"crosshair";mxConnectionHandler.prototype.createEdgeState=function(q){q=this.graph.createCurrentEdgeStyle();q=this.graph.createEdge(null,null,null,null,null,q);q=new mxCellState(this.graph.view,q,this.graph.getCellStyle(q));for(var A in this.graph.currentEdgeStyle)q.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)q.style[A]=F[A]}catch(K){}}q.style=this.graph.postProcessCellStyle(q.cell,q.style);return q};+"crosshair";mxConnectionHandler.prototype.createEdgeState=function(q){q=this.graph.createCurrentEdgeStyle();q=this.graph.createEdge(null,null,null,null,null,q);q=new mxCellState(this.graph.view,q,this.graph.getCellStyle(q));for(var A in this.graph.currentEdgeStyle)q.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)q.style[A]=F[A]}catch(L){}}q.style=this.graph.postProcessCellStyle(q.cell,q.style);return q};var d=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var q=d.apply(this,arguments);q.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return q};mxConnectionHandler.prototype.updatePreview=function(q){};var h=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var q=h.apply(this,arguments),A=q.getCell;q.getCell=mxUtils.bind(this,function(B){var F=A.apply(this,arguments);this.error=null;return F});return q};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var q="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",A="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),B=0;B<A.length;B++)null!=this.currentEdgeStyle[A[B]]&&(q+=A[B]+"="+this.currentEdgeStyle[A[B]]+";");null!=this.currentEdgeStyle.orthogonalLoop?q+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(q+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?q+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(q+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(q+="elbow="+this.currentEdgeStyle.elbow+";");return q=null!=this.currentEdgeStyle.html?q+("html="+this.currentEdgeStyle.html+";"):q+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var q=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=-q&&(new mxCodec(q.ownerDocument)).decode(q,this.getStylesheet())};Graph.prototype.createCellLookup=function(q,A){A=null!=A?A:{};for(var B=0;B<q.length;B++){var F=q[B];A[mxObjectIdentity.get(F)]=F.getId();for(var K=this.model.getChildCount(F),R=0;R<K;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(q,A,B){B=null!=B?B:{};for(var F in q){var K=A[F];null==B[K]&&(B[K]=q[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(q,A,-B,F){A=null!=A?A:0;B=null!=B?B:0;var K=new mxCodec(q.ownerDocument),R=new mxGraphModel;K.decode(q,R);q=[];K={};var Z={},ja=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),K));if(null!=ja){var fa=this.createCellLookup([R.root]);ja=ja.slice();this.model.beginUpdate();try{if(1!=ja.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<ja.length;R++)ka=this.model.getChildren(this.moveCells([ja[R]],A,B,!1,this.model.getRoot())[0]),null!=ka&&(q=q.concat(ka));else{var ka=R.getChildren(ja[0]);-null!=ka&&(q=this.moveCells(ka,A,B,!1,this.getDefaultParent()),Z[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=q&&(this.createCellMapping(K,fa,Z),this.updateCustomLinks(Z,q),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var va=this.getBoundingBoxFromGeometry(q,!0);null!=va&&this.moveCells(q,A-va.x,B-va.y)}}finally{this.model.endUpdate()}}return q};Graph.prototype.encodeCells=function(q){for(var A={},B=this.cloneCells(q,null,A),F=new mxDictionary,K=0;K<q.length;K++)F.put(q[K],-!0);var R=new mxCodec,Z=new mxGraphModel,ja=Z.getChildAt(Z.getRoot(),0);for(K=0;K<B.length;K++){Z.add(ja,B[K]);var fa=this.view.getState(q[K]);if(null!=fa){var ka=this.getCellGeometry(B[K]);null!=ka&&ka.relative&&!this.model.isEdge(q[K])&&null==F.get(this.model.getParent(q[K]))&&(ka.offset=null,ka.relative=!1,ka.x=fa.x/fa.view.scale-fa.view.translate.x,ka.y=fa.y/fa.view.scale-fa.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(q)),B);return R.encode(Z)};Graph.prototype.isSwimlane=+q&&(new mxCodec(q.ownerDocument)).decode(q,this.getStylesheet())};Graph.prototype.createCellLookup=function(q,A){A=null!=A?A:{};for(var B=0;B<q.length;B++){var F=q[B];A[mxObjectIdentity.get(F)]=F.getId();for(var L=this.model.getChildCount(F),R=0;R<L;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(q,A,B){B=null!=B?B:{};for(var F in q){var L=A[F];null==B[L]&&(B[L]=q[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(q,A,+B,F){A=null!=A?A:0;B=null!=B?B:0;var L=new mxCodec(q.ownerDocument),R=new mxGraphModel;L.decode(q,R);q=[];L={};var Z={},ja=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),L));if(null!=ja){var fa=this.createCellLookup([R.root]);ja=ja.slice();this.model.beginUpdate();try{if(1!=ja.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<ja.length;R++)ka=this.model.getChildren(this.moveCells([ja[R]],A,B,!1,this.model.getRoot())[0]),null!=ka&&(q=q.concat(ka));else{var ka=R.getChildren(ja[0]);+null!=ka&&(q=this.moveCells(ka,A,B,!1,this.getDefaultParent()),Z[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=q&&(this.createCellMapping(L,fa,Z),this.updateCustomLinks(Z,q),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var va=this.getBoundingBoxFromGeometry(q,!0);null!=va&&this.moveCells(q,A-va.x,B-va.y)}}finally{this.model.endUpdate()}}return q};Graph.prototype.encodeCells=function(q){for(var A={},B=this.cloneCells(q,null,A),F=new mxDictionary,L=0;L<q.length;L++)F.put(q[L],+!0);var R=new mxCodec,Z=new mxGraphModel,ja=Z.getChildAt(Z.getRoot(),0);for(L=0;L<B.length;L++){Z.add(ja,B[L]);var fa=this.view.getState(q[L]);if(null!=fa){var ka=this.getCellGeometry(B[L]);null!=ka&&ka.relative&&!this.model.isEdge(q[L])&&null==F.get(this.model.getParent(q[L]))&&(ka.offset=null,ka.relative=!1,ka.x=fa.x/fa.view.scale-fa.view.translate.x,ka.y=fa.y/fa.view.scale-fa.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(q)),B);return R.encode(Z)};Graph.prototype.isSwimlane=function(q,A){var B=null;null==q||this.model.isEdge(q)||this.model.getParent(q)==this.model.getRoot()||(B=this.getCurrentCellStyle(q,A)[mxConstants.STYLE_SHAPE]);return B==mxConstants.SHAPE_SWIMLANE||"table"==B||"tableRow"==B};var m=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(q){return null!=q&&m.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellEditable(this.model.getParent(q)):!0:!1};var p=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=-function(q){return null!=q&&p.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellMovable(this.model.getParent(q)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(q){var A=this.model.getParent(q);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var v=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(q,A,B,F,K,R,Z,ja){null==ja&&(ja=this.model.getParent(q),-this.isTable(ja)||this.isTableRow(ja))&&(ja=this.getCellAt(R,Z,null,!0,!1));B=null;this.model.beginUpdate();try{B=v.apply(this,[q,A,B,F,K,R,Z,ja]);this.model.setValue(B,"");var fa=this.getChildCells(B,!0);for(A=0;A<fa.length;A++){var ka=this.getCellGeometry(fa[A]);null!=ka&&ka.relative&&0<ka.x&&this.model.remove(fa[A])}var va=this.getChildCells(q,!0);for(A=0;A<va.length;A++)ka=this.getCellGeometry(va[A]),null!=ka&&ka.relative&&0>=ka.x&&this.model.remove(va[A]);var Ma=this.model.getTerminal(B,!1);-if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[q]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[q]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(q,A,B){if(A||B)w.apply(this,arguments);else{var F=this.getSelectionCell(),K=null,R=[],Z=mxUtils.bind(this,-function(ja){if(null!=this.view.getState(ja)&&(this.model.isVertex(ja)||this.model.isEdge(ja)))if(R.push(ja),ja==F)K=R.length-1;else if(q&&null==F&&0<R.length||null!=K&&q&&R.length>K||!q&&0<K)return;for(var fa=0;fa<this.model.getChildCount(ja);fa++)Z(this.model.getChildAt(ja,fa))});Z(this.model.root);0<R.length&&(K=null!=K?mxUtils.mod(K+(q?1:-1),R.length):0,this.setSelectionCell(R[K]))}};Graph.prototype.swapShapes=function(q,A){if(this.model.isVertex(q)&&this.model.isVertex(A)&&2==this.getMovableCells([q,-A]).length){var B=this.getCellGeometry(q),F=this.getCellGeometry(A);if(null!=B&&null!=F){var K=B.clone(),R=F.clone();this.model.beginUpdate();try{K.x=F.getCenterX()-B.width/2,K.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(q,K),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var y=Graph.prototype.moveCells;Graph.prototype.moveCells=function(q,A,B,F,K,R,Z){Z=null!=Z?Z:{};if(this.isTable(K)){for(var ja=[],fa=0;fa<q.length;fa++)this.isTable(q[fa])?-ja=ja.concat(this.model.getChildCells(q[fa],!0).reverse()):ja.push(q[fa]);q=ja}this.model.beginUpdate();try{ja=[];for(fa=0;fa<q.length;fa++)if(null!=K&&this.isTableRow(q[fa])){var ka=this.model.getParent(q[fa]),va=this.getCellGeometry(q[fa]);this.isTable(ka)&&ja.push(ka);if(null!=ka&&null!=va&&this.isTable(ka)&&this.isTable(K)&&(F||ka!=K)){if(!F){var Ma=this.getCellGeometry(ka);null!=Ma&&(Ma=Ma.clone(),Ma.height-=va.height,this.model.setGeometry(ka,Ma))}Ma=this.getCellGeometry(K);null!=Ma&&(Ma=Ma.clone(),-Ma.height+=va.height,this.model.setGeometry(K,Ma));var Na=this.model.getChildCells(K,!0);if(0<Na.length){q[fa]=F?this.cloneCell(q[fa]):q[fa];var Aa=this.model.getChildCells(q[fa],!0),Ga=this.model.getChildCells(Na[0],!0),wa=Ga.length-Aa.length;if(0<wa)for(var ua=0;ua<wa;ua++){var Ta=this.cloneCell(Aa[Aa.length-1]);null!=Ta&&(Ta.value="",this.model.add(q[fa],Ta))}else if(0>wa)for(ua=0;ua>wa;ua--)this.model.remove(Aa[Aa.length+ua-1]);Aa=this.model.getChildCells(q[fa],!0);for(ua=0;ua<Ga.length;ua++){var Ra=+function(q){return null!=q&&p.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellMovable(this.model.getParent(q)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(q){var A=this.model.getParent(q);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(q,A,B,F,L,R,Z,ja){null==ja&&(ja=this.model.getParent(q),+this.isTable(ja)||this.isTableRow(ja))&&(ja=this.getCellAt(R,Z,null,!0,!1));B=null;this.model.beginUpdate();try{B=u.apply(this,[q,A,B,F,L,R,Z,ja]);this.model.setValue(B,"");var fa=this.getChildCells(B,!0);for(A=0;A<fa.length;A++){var ka=this.getCellGeometry(fa[A]);null!=ka&&ka.relative&&0<ka.x&&this.model.remove(fa[A])}var va=this.getChildCells(q,!0);for(A=0;A<va.length;A++)ka=this.getCellGeometry(va[A]),null!=ka&&ka.relative&&0>=ka.x&&this.model.remove(va[A]);var Ma=this.model.getTerminal(B,!1);+if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[q]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[q]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(q,A,B){if(A||B)w.apply(this,arguments);else{var F=this.getSelectionCell(),L=null,R=[],Z=mxUtils.bind(this,+function(ja){if(null!=this.view.getState(ja)&&(this.model.isVertex(ja)||this.model.isEdge(ja)))if(R.push(ja),ja==F)L=R.length-1;else if(q&&null==F&&0<R.length||null!=L&&q&&R.length>L||!q&&0<L)return;for(var fa=0;fa<this.model.getChildCount(ja);fa++)Z(this.model.getChildAt(ja,fa))});Z(this.model.root);0<R.length&&(L=null!=L?mxUtils.mod(L+(q?1:-1),R.length):0,this.setSelectionCell(R[L]))}};Graph.prototype.swapShapes=function(q,A){if(this.model.isVertex(q)&&this.model.isVertex(A)&&2==this.getMovableCells([q,+A]).length){var B=this.getCellGeometry(q),F=this.getCellGeometry(A);if(null!=B&&null!=F){var L=B.clone(),R=F.clone();this.model.beginUpdate();try{L.x=F.getCenterX()-B.width/2,L.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(q,L),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var y=Graph.prototype.moveCells;Graph.prototype.moveCells=function(q,A,B,F,L,R,Z){Z=null!=Z?Z:{};if(this.isTable(L)){for(var ja=[],fa=0;fa<q.length;fa++)this.isTable(q[fa])?+ja=ja.concat(this.model.getChildCells(q[fa],!0).reverse()):ja.push(q[fa]);q=ja}this.model.beginUpdate();try{ja=[];for(fa=0;fa<q.length;fa++)if(null!=L&&this.isTableRow(q[fa])){var ka=this.model.getParent(q[fa]),va=this.getCellGeometry(q[fa]);this.isTable(ka)&&ja.push(ka);if(null!=ka&&null!=va&&this.isTable(ka)&&this.isTable(L)&&(F||ka!=L)){if(!F){var Ma=this.getCellGeometry(ka);null!=Ma&&(Ma=Ma.clone(),Ma.height-=va.height,this.model.setGeometry(ka,Ma))}Ma=this.getCellGeometry(L);null!=Ma&&(Ma=Ma.clone(),+Ma.height+=va.height,this.model.setGeometry(L,Ma));var Na=this.model.getChildCells(L,!0);if(0<Na.length){q[fa]=F?this.cloneCell(q[fa]):q[fa];var Aa=this.model.getChildCells(q[fa],!0),Ga=this.model.getChildCells(Na[0],!0),wa=Ga.length-Aa.length;if(0<wa)for(var ua=0;ua<wa;ua++){var Ta=this.cloneCell(Aa[Aa.length-1]);null!=Ta&&(Ta.value="",this.model.add(q[fa],Ta))}else if(0>wa)for(ua=0;ua>wa;ua--)this.model.remove(Aa[Aa.length+ua-1]);Aa=this.model.getChildCells(q[fa],!0);for(ua=0;ua<Ga.length;ua++){var Ra=this.getCellGeometry(Ga[ua]),Oa=this.getCellGeometry(Aa[ua]);null!=Ra&&null!=Oa&&(Oa=Oa.clone(),Oa.width=Ra.width,this.model.setGeometry(Aa[ua],Oa))}}}}var Sa=y.apply(this,arguments);for(fa=0;fa<ja.length;fa++)!F&&this.model.contains(ja[fa])&&0==this.model.getChildCount(ja[fa])&&this.model.remove(ja[fa]);F&&this.updateCustomLinks(this.createCellMapping(Z,this.createCellLookup(q)),Sa)}finally{this.model.endUpdate()}return Sa};var C=Graph.prototype.removeCells;Graph.prototype.removeCells=function(q,-A){var B=[];this.model.beginUpdate();try{for(var F=0;F<q.length;F++)if(this.isTableCell(q[F])){var K=this.model.getParent(q[F]),R=this.model.getParent(K);1==this.model.getChildCount(K)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(q[F],"")}else{if(this.isTableRow(q[F])&&(R=this.model.getParent(q[F]),0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R))){for(var Z=this.model.getChildCells(R,!0),ja=0,fa=0;fa<Z.length;fa++)0<=mxUtils.indexOf(q,+A){var B=[];this.model.beginUpdate();try{for(var F=0;F<q.length;F++)if(this.isTableCell(q[F])){var L=this.model.getParent(q[F]),R=this.model.getParent(L);1==this.model.getChildCount(L)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(q[F],"")}else{if(this.isTableRow(q[F])&&(R=this.model.getParent(q[F]),0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R))){for(var Z=this.model.getChildCells(R,!0),ja=0,fa=0;fa<Z.length;fa++)0<=mxUtils.indexOf(q,Z[fa])&&ja++;ja==Z.length&&B.push(R)}B.push(q[F])}B=C.apply(this,[B,A])}finally{this.model.endUpdate()}return B};Graph.prototype.updateCustomLinks=function(q,A,B){B=null!=B?B:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&B.updateCustomLinksForCell(q,A[F],B)};Graph.prototype.updateCustomLinksForCell=function(q,A){this.doUpdateCustomLinksForCell(q,A);for(var B=this.model.getChildCount(A),F=0;F<B;F++)this.updateCustomLinksForCell(q,this.model.getChildAt(A,F))};Graph.prototype.doUpdateCustomLinksForCell=-function(q,A){};Graph.prototype.getAllConnectionConstraints=function(q,A){if(null!=q){A=mxUtils.getValue(q.style,"points",null);if(null!=A){q=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];q.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return q}if(null!=q.shape&&null!=q.shape.bounds){F=q.shape.direction;A=q.shape.bounds;var K=q.shape.scale;B=A.width/K;A=A.height/K;if(F==mxConstants.DIRECTION_NORTH||+function(q,A){};Graph.prototype.getAllConnectionConstraints=function(q,A){if(null!=q){A=mxUtils.getValue(q.style,"points",null);if(null!=A){q=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];q.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return q}if(null!=q.shape&&null!=q.shape.bounds){F=q.shape.direction;A=q.shape.bounds;var L=q.shape.scale;B=A.width/L;A=A.height/L;if(F==mxConstants.DIRECTION_NORTH||F==mxConstants.DIRECTION_SOUTH)F=B,B=A,A=F;A=q.shape.getConstraints(q.style,B,A);if(null!=A)return A;if(null!=q.shape.stencil&&null!=q.shape.stencil.constraints)return q.shape.stencil.constraints;if(null!=q.shape.constraints)return q.shape.constraints}}return null};Graph.prototype.flipEdge=function(q){if(null!=q){var A=this.getCurrentCellStyle(q);A=mxUtils.getValue(A,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;-this.setCellStyles(mxConstants.STYLE_ELBOW,A,[q])}};Graph.prototype.isValidRoot=function(q){for(var A=this.model.getChildCount(q),B=0,F=0;F<A;F++){var K=this.model.getChildAt(q,F);this.model.isVertex(K)&&(K=this.getCellGeometry(K),null==K||K.relative||B++)}return 0<B||this.isContainer(q)};Graph.prototype.isValidDropTarget=function(q,A,B){for(var F=this.getCurrentCellStyle(q),K=!0,R=!0,Z=0;Z<A.length&&R;Z++)K=K&&this.isTable(A[Z]),R=R&&this.isTableRow(A[Z]);return!this.isCellLocked(q)&&(this.isTargetShape(q,-A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(q))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(q))&&!this.isTableRow(q)&&(!this.isTable(q)||R||K))};Graph.prototype.createGroupCell=function(){var q=mxGraph.prototype.createGroupCell.apply(this,arguments);q.setStyle("group");return q};Graph.prototype.isExtendParentsOnAdd=function(q){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=+this.setCellStyles(mxConstants.STYLE_ELBOW,A,[q])}};Graph.prototype.isValidRoot=function(q){for(var A=this.model.getChildCount(q),B=0,F=0;F<A;F++){var L=this.model.getChildAt(q,F);this.model.isVertex(L)&&(L=this.getCellGeometry(L),null==L||L.relative||B++)}return 0<B||this.isContainer(q)};Graph.prototype.isValidDropTarget=function(q,A,B){for(var F=this.getCurrentCellStyle(q),L=!0,R=!0,Z=0;Z<A.length&&R;Z++)L=L&&this.isTable(A[Z]),R=R&&this.isTableRow(A[Z]);return!this.isCellLocked(q)&&(this.isTargetShape(q,+A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(q))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(q))&&!this.isTableRow(q)&&(!this.isTable(q)||R||L))};Graph.prototype.createGroupCell=function(){var q=mxGraph.prototype.createGroupCell.apply(this,arguments);q.setStyle("group");return q};Graph.prototype.isExtendParentsOnAdd=function(q){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=q&&null!=this.layoutManager){var B=this.model.getParent(q);null!=B&&(B=this.layoutManager.getLayout(B),null!=B&&B.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(q,A,B){B=null!=B?B:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,B&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(q,A){var B=this.getModel(),F=[];B.beginUpdate();-try{for(var K=0;K<q.length;K++){var R=q[K];if(B.isEdge(R)){var Z=B.getTerminal(R,!0),ja=B.getTerminal(R,!1);B.setTerminal(R,ja,!0);B.setTerminal(R,Z,!1);var fa=B.getGeometry(R);if(null!=fa){fa=fa.clone();null!=fa.points&&fa.points.reverse();var ka=fa.getTerminalPoint(!0),va=fa.getTerminalPoint(!1);fa.setTerminalPoint(ka,!1);fa.setTerminalPoint(va,!0);B.setGeometry(R,fa);var Ma=this.view.getState(R),Na=this.view.getState(Z),Aa=this.view.getState(ja);if(null!=Ma){var Ga=null!=Na?this.getConnectionConstraint(Ma,+try{for(var L=0;L<q.length;L++){var R=q[L];if(B.isEdge(R)){var Z=B.getTerminal(R,!0),ja=B.getTerminal(R,!1);B.setTerminal(R,ja,!0);B.setTerminal(R,Z,!1);var fa=B.getGeometry(R);if(null!=fa){fa=fa.clone();null!=fa.points&&fa.points.reverse();var ka=fa.getTerminalPoint(!0),va=fa.getTerminalPoint(!1);fa.setTerminalPoint(ka,!1);fa.setTerminalPoint(va,!0);B.setGeometry(R,fa);var Ma=this.view.getState(R),Na=this.view.getState(Z),Aa=this.view.getState(ja);if(null!=Ma){var Ga=null!=Na?this.getConnectionConstraint(Ma,Na,!0):null,wa=null!=Aa?this.getConnectionConstraint(Ma,Aa,!1):null;this.setConnectionConstraint(R,Z,!0,wa);this.setConnectionConstraint(R,ja,!1,Ga);var ua=mxUtils.getValue(Ma.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ma.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(B.isVertex(R)&&(fa=this.getCellGeometry(R),null!=fa)){if(!(this.isTable(R)||this.isTableRow(R)||this.isTableCell(R)||this.isSwimlane(R))){fa=fa.clone();fa.x+=fa.width/2-fa.height/2;fa.y+=fa.height/2-fa.width/2;var Ta=fa.width;fa.width=fa.height;fa.height=Ta;B.setGeometry(R,fa)}var Ra=this.view.getState(R);if(null!=Ra){var Oa=[mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_NORTH],Sa=mxUtils.getValue(Ra.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);this.setCellStyles(mxConstants.STYLE_DIRECTION,Oa[mxUtils.mod(mxUtils.indexOf(Oa,Sa)+(A?-1:1),Oa.length)],[R])}F.push(R)}}}finally{B.endUpdate()}return F};Graph.prototype.stencilHasPlaceholders=function(q){if(null!=q&&null!=q.fgNode)for(q=q.fgNode.firstChild;null!=q;){if("text"==q.nodeName&&"1"==q.getAttribute("placeholders"))return!0;q=q.nextSibling}return!1};var D=Graph.prototype.processChange;Graph.prototype.processChange=function(q){if(q instanceof mxGeometryChange&&(this.isTableCell(q.cell)||this.isTableRow(q.cell))&&(null==q.previous&&null!=q.geometry||null!=q.previous&&!q.previous.equals(q.geometry))){var A=q.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}D.apply(this,arguments);q instanceof mxValueChange&&null!=q.cell&&null!=q.cell.value&&"object"==typeof q.cell.value&&this.invalidateDescendantsWithPlaceholders(q.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(q){q=this.model.getDescendants(q);if(0<q.length)for(var A=0;A<q.length;A++){var B=this.view.getState(q[A]);null!=B&&null!=B.shape&&null!=B.shape.stencil&&this.stencilHasPlaceholders(B.shape.stencil)?this.removeStateForCell(q[A]):this.isReplacePlaceholders(q[A])&&this.view.invalidate(q[A],!1,!1)}};Graph.prototype.replaceElement=function(q,A){A=q.ownerDocument.createElement(null!=A?A:"span");for(var B=Array.prototype.slice.call(q.attributes);attr=B.pop();)A.setAttribute(attr.nodeName,attr.nodeValue);A.innerHTML=-q.innerHTML;q.parentNode.replaceChild(A,q)};Graph.prototype.processElements=function(q,A){if(null!=q){q=q.getElementsByTagName("*");for(var B=0;B<q.length;B++)null!=q[B]&&A(q[B])}};Graph.prototype.updateLabelElements=function(q,A,B){q=null!=q?q:this.getSelectionCells();for(var F=document.createElement("div"),K=0;K<q.length;K++){var R=this.getCurrentCellStyle(q[K]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(q[K]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var Z=F.getElementsByTagName(null!=-B?B:"*"),ja=0;ja<Z.length;ja++)A(Z[ja]);F.innerHTML!=R&&this.cellLabelChanged(q[K],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(q,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=q.value&&"object"==typeof q.value){if(this.isReplacePlaceholders(q)&&null!=q.getAttribute("placeholder"))for(var F=q.getAttribute("placeholder"),K=q;null!=K;){if(K==this.model.getRoot()||null!=K.value&&"object"==typeof K.value&&K.hasAttribute(F)){this.setAttributeForCell(K,F,A);break}K=this.model.getParent(K)}var R=-q.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(q){if(null!=q){for(var A=new mxDictionary,B=0;B<q.length;B++)A.put(q[B],!0);var F=[];for(B=0;B<q.length;B++){var K=this.model.getParent(q[B]);null==K||A.get(K)||(A.put(K,!0),-F.push(K))}for(B=0;B<F.length;B++)if(K=this.view.getState(F[B]),null!=K&&(this.model.isEdge(K.cell)||this.model.isVertex(K.cell))&&this.isCellDeletable(K.cell)&&this.isTransparentState(K)){for(var R=!0,Z=0;Z<this.model.getChildCount(K.cell)&&R;Z++)A.get(this.model.getChildAt(K.cell,Z))||(R=!1);R&&q.push(K.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(q){for(var A=[],B=0;B<q.length;B++)this.isCellDeletable(q[B])&&this.isTransparentState(this.view.getState(q[B]))&&+q.innerHTML;q.parentNode.replaceChild(A,q)};Graph.prototype.processElements=function(q,A){if(null!=q){q=q.getElementsByTagName("*");for(var B=0;B<q.length;B++)null!=q[B]&&A(q[B])}};Graph.prototype.updateLabelElements=function(q,A,B){q=null!=q?q:this.getSelectionCells();for(var F=document.createElement("div"),L=0;L<q.length;L++){var R=this.getCurrentCellStyle(q[L]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(q[L]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var Z=F.getElementsByTagName(null!=+B?B:"*"),ja=0;ja<Z.length;ja++)A(Z[ja]);F.innerHTML!=R&&this.cellLabelChanged(q[L],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(q,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=q.value&&"object"==typeof q.value){if(this.isReplacePlaceholders(q)&&null!=q.getAttribute("placeholder"))for(var F=q.getAttribute("placeholder"),L=q;null!=L;){if(L==this.model.getRoot()||null!=L.value&&"object"==typeof L.value&&L.hasAttribute(F)){this.setAttributeForCell(L,F,A);break}L=this.model.getParent(L)}var R=+q.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(q){if(null!=q){for(var A=new mxDictionary,B=0;B<q.length;B++)A.put(q[B],!0);var F=[];for(B=0;B<q.length;B++){var L=this.model.getParent(q[B]);null==L||A.get(L)||(A.put(L,!0),+F.push(L))}for(B=0;B<F.length;B++)if(L=this.view.getState(F[B]),null!=L&&(this.model.isEdge(L.cell)||this.model.isVertex(L.cell))&&this.isCellDeletable(L.cell)&&this.isTransparentState(L)){for(var R=!0,Z=0;Z<this.model.getChildCount(L.cell)&&R;Z++)A.get(this.model.getChildAt(L.cell,Z))||(R=!1);R&&q.push(L.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(q){for(var A=[],B=0;B<q.length;B++)this.isCellDeletable(q[B])&&this.isTransparentState(this.view.getState(q[B]))&&A.push(q[B]);q=A;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(q,A){this.setAttributeForCell(q,"link",A)};Graph.prototype.setTooltipForCell=function(q,A){var B="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(q.value)&&q.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(B="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(q,B,A)};Graph.prototype.getAttributeForCell=function(q,A,B){q=null!=q.value&&"object"===typeof q.value?q.value.getAttribute(A):null;return null!=q?q:B};Graph.prototype.setAttributeForCell=function(q,A,B){if(null!=q.value&&"object"==typeof q.value)var F=q.value.cloneNode(!0);else F=mxUtils.createXmlDocument().createElement("UserObject"),F.setAttribute("label",q.value||"");null!=B?F.setAttribute(A,B):F.removeAttribute(A);this.model.setValue(q,F)};Graph.prototype.isTargetShape=function(q,A,B){q=mxUtils.getValue(this.getCurrentCellStyle(q),mxConstants.STYLE_SHAPE,"");for(B=0;B<-A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,q))return!0}return!1};var E=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(q,A,B,F){if(mxEvent.isAltDown(A))return null;for(var K=0;K<q.length;K++){var R=this.model.getParent(q[K]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(q,R))return null}R=E.apply(this,arguments);var Z=!0;for(K=0;K<q.length&&Z;K++)Z=Z&&this.isTableRow(q[K]);Z&&(this.isTableCell(R)&&(R=+A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,q))return!0}return!1};var E=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(q,A,B,F){if(mxEvent.isAltDown(A))return null;for(var L=0;L<q.length;L++){var R=this.model.getParent(q[L]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(q,R))return null}R=E.apply(this,arguments);var Z=!0;for(L=0;L<q.length&&Z;L++)Z=Z&&this.isTableRow(q[L]);Z&&(this.isTableCell(R)&&(R=this.model.getParent(R)),this.isTableRow(R)&&(R=this.model.getParent(R)),this.isTable(R)||(R=null));return R};Graph.prototype.click=function(q){mxGraph.prototype.click.call(this,q);this.firstClickState=q.getState();this.firstClickSource=q.getSource()};Graph.prototype.dblClick=function(q,A){this.isEnabled()&&(A=this.insertTextForEvent(q,A),mxGraph.prototype.dblClick.call(this,q,A))};Graph.prototype.insertTextForEvent=function(q,A){var B=mxUtils.convertPoint(this.container,mxEvent.getClientX(q),mxEvent.getClientY(q));-if(null!=q&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,K=mxEvent.getSource(q);this.firstClickState!=F||this.firstClickSource!=K||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(q)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&K==this.view.getCanvas().ownerSVGElement)||-(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var q=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),K=this.getPageSize();A=Math.max(A,F.x*K.width);B=Math.max(B,F.y*K.height)}return new mxPoint(this.snap(A+q),this.snap(B+q))};Graph.prototype.getFreeInsertPoint=+if(null!=q&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,L=mxEvent.getSource(q);this.firstClickState!=F||this.firstClickSource!=L||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(q)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&L==this.view.getCanvas().ownerSVGElement)||+(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var q=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),L=this.getPageSize();A=Math.max(A,F.x*L.width);B=Math.max(B,F.y*L.height)}return new mxPoint(this.snap(A+q),this.snap(B+q))};Graph.prototype.getFreeInsertPoint=function(){var q=this.view,A=this.getGraphBounds(),B=this.getInsertPoint(),F=this.snap(Math.round(Math.max(B.x,A.x/q.scale-q.translate.x+(0==A.width?2*this.gridSize:0))));q=this.snap(Math.round(Math.max(B.y,(A.y+A.height)/q.scale-q.translate.y+2*this.gridSize)));return new mxPoint(F,q)};Graph.prototype.getCenterInsertPoint=function(q){q=null!=q?q:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-this.view.translate.x-q.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-q.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/2/this.view.scale-this.view.translate.x-q.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-q.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.appendFontSize=function(q,A){q=null!=q?q:"";null!=-A&&(0<q.length&&";"!=q.charAt(q.length-1)&&(q+=";"),q+="fontSize="+A+";");return q};Graph.prototype.addText=function(q,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var K=this.view.getRelativePoint(B,q,A);F.geometry.x=Math.round(1E4*K.x)/1E4;F.geometry.y=Math.round(K.y);-F.geometry.offset=new mxPoint(0,0);K=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((q-K.x)/R),Math.round((A-K.y)/R))}else K=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(q/this.view.scale)-K.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-K.y-(null!=B?B.origin.y:0),F.style+=+A&&(0<q.length&&";"!=q.charAt(q.length-1)&&(q+=";"),q+="fontSize="+A+";");return q};Graph.prototype.addText=function(q,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var L=this.view.getRelativePoint(B,q,A);F.geometry.x=Math.round(1E4*L.x)/1E4;F.geometry.y=Math.round(L.y);+F.geometry.offset=new mxPoint(0,0);L=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((q-L.x)/R),Math.round((A-L.y)/R))}else L=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(q/this.view.scale)-L.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-L.y-(null!=B?B.origin.y:0),F.style+="autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=B?B.cell:null),this.fireEvent(new mxEventObject("textInserted","cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(q,A,B){var F=mxUtils.bind(this,function(){var fa=this.container.getElementsByTagName("a");if(null!=fa)for(var ka=0;ka<fa.length;ka++){var va=this.getAbsoluteUrl(fa[ka].getAttribute("href"));null!=va&&(fa[ka].setAttribute("rel",this.linkRelation),-fa[ka].setAttribute("href",va),null!=A&&mxEvent.addGestureListeners(fa[ka],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var K=this.container.style.cursor,R=this.getTolerance(),Z=this,ja={currentState:null,currentLink:null,currentTarget:null,highlight:null!=q&&""!=q&&q!=mxConstants.NONE?new mxCellHighlight(Z,q,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(fa){var ka=fa.sourceState;if(null==ka||null==Z.getLinkForCell(ka.cell))fa=Z.getCellAt(fa.getGraphX(),+fa[ka].setAttribute("href",va),null!=A&&mxEvent.addGestureListeners(fa[ka],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var L=this.container.style.cursor,R=this.getTolerance(),Z=this,ja={currentState:null,currentLink:null,currentTarget:null,highlight:null!=q&&""!=q&&q!=mxConstants.NONE?new mxCellHighlight(Z,q,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(fa){var ka=fa.sourceState;if(null==ka||null==Z.getLinkForCell(ka.cell))fa=Z.getCellAt(fa.getGraphX(),fa.getGraphY(),null,null,null,function(va,Ma,Na){return null==Z.getLinkForCell(va.cell)}),ka=null==ka||Z.model.isAncestor(fa,ka.cell)?Z.view.getState(fa):null;ka!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ka,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(fa,ka){this.startX=ka.getGraphX();this.startY=ka.getGraphY();this.scrollLeft=Z.container.scrollLeft;this.scrollTop=Z.container.scrollTop;null==this.currentLink&&"auto"==Z.container.style.overflow&&(Z.container.style.cursor="move");this.updateCurrentState(ka)},mouseMove:function(fa,ka){if(Z.isMouseDown)null!=this.currentLink&&(fa=Math.abs(this.startX-ka.getGraphX()),ka=Math.abs(this.startY-ka.getGraphY()),(fa>R||ka>R)&&this.clear());else{for(fa=ka.getSource();null!=fa&&"a"!=fa.nodeName.toLowerCase();)fa=fa.parentNode;null!=fa?this.clear():(null!=Z.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&Z.tooltipHandler.reset(ka,!0,this.currentState),(null==this.currentState||ka.getState()!=this.currentState&&null!=ka.sourceState||!Z.intersects(this.currentState,ka.getGraphX(),ka.getGraphY()))&&this.updateCurrentState(ka))}},mouseUp:function(fa,ka){var va=ka.getSource();for(fa=ka.getEvent();null!=va&&"a"!=va.nodeName.toLowerCase();)va=va.parentNode;null==va&&Math.abs(this.scrollLeft-Z.container.scrollLeft)<R&&Math.abs(this.scrollTop-Z.container.scrollTop)<R&&(null==ka.sourceState||!ka.isSource(ka.sourceState.control))&&((mxEvent.isLeftMouseButton(fa)||mxEvent.isMiddleMouseButton(fa))&&!mxEvent.isPopupTrigger(fa)||mxEvent.isTouchEvent(fa))&&(null!=this.currentLink?(va=Z.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&va||null==A||A(fa,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(fa)||(fa=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(fa)?"_blank":va?Z.linkTarget:"_top",Z.openLink(this.currentLink,fa),ka.consume())):null!=B&&!ka.isConsumed()&&Math.abs(this.scrollLeft-Z.container.scrollLeft)<-R&&Math.abs(this.scrollTop-Z.container.scrollTop)<R&&Math.abs(this.startX-ka.getGraphX())<R&&Math.abs(this.startY-ka.getGraphY())<R&&B(ka.getEvent()));this.clear()},activate:function(fa){this.currentLink=Z.getAbsoluteUrl(Z.getLinkForCell(fa.cell));null!=this.currentLink&&(this.currentTarget=Z.getLinkTargetForCell(fa.cell),Z.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(fa))},clear:function(){null!=Z.container&&(Z.container.style.cursor=K);this.currentLink=this.currentState=-this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=Z.tooltipHandler&&Z.tooltipHandler.hide()}};Z.click=function(fa){};Z.addMouseListener(ja);mxEvent.addListener(document,"mouseleave",function(fa){ja.clear()})};Graph.prototype.duplicateCells=function(q,A){q=null!=q?q:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<q.length;B++)this.isTableCell(q[B])&&(q[B]=this.model.getParent(q[B]));q=this.model.getTopmostCells(q);var F=this.getModel(),K=this.gridSize,R=[];F.beginUpdate();-try{var Z={},ja=this.createCellLookup(q),fa=this.cloneCells(q,!1,Z,!0);for(B=0;B<q.length;B++){var ka=F.getParent(q[B]);if(null!=ka){var va=this.moveCells([fa[B]],K,K,!1)[0];R.push(va);if(A)F.add(ka,fa[B]);else{var Ma=ka.getIndex(q[B]);F.add(ka,fa[B],Ma+1)}if(this.isTable(ka)){var Na=this.getCellGeometry(fa[B]),Aa=this.getCellGeometry(ka);null!=Na&&null!=Aa&&(Aa=Aa.clone(),Aa.height+=Na.height,F.setGeometry(ka,Aa))}}else R.push(fa[B])}this.updateCustomLinks(this.createCellMapping(Z,ja),fa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,-"cells",fa))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(q,A,B){if(null!=q&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),K=[],R=0;R<F.length;R++)K.push(F[R]);document.execCommand("insertimage",!1,q);q=this.cellEditor.textarea.getElementsByTagName("img");if(q.length==K.length+1)for(R=q.length-1;0<=R;R--)if(0==R||q[R]!=K[R-1]){q[R].setAttribute("width",A);q[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(q){if(null!=+R&&Math.abs(this.scrollTop-Z.container.scrollTop)<R&&Math.abs(this.startX-ka.getGraphX())<R&&Math.abs(this.startY-ka.getGraphY())<R&&B(ka.getEvent()));this.clear()},activate:function(fa){this.currentLink=Z.getAbsoluteUrl(Z.getLinkForCell(fa.cell));null!=this.currentLink&&(this.currentTarget=Z.getLinkTargetForCell(fa.cell),Z.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(fa))},clear:function(){null!=Z.container&&(Z.container.style.cursor=L);this.currentLink=this.currentState=+this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=Z.tooltipHandler&&Z.tooltipHandler.hide()}};Z.click=function(fa){};Z.addMouseListener(ja);mxEvent.addListener(document,"mouseleave",function(fa){ja.clear()})};Graph.prototype.duplicateCells=function(q,A){q=null!=q?q:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<q.length;B++)this.isTableCell(q[B])&&(q[B]=this.model.getParent(q[B]));q=this.model.getTopmostCells(q);var F=this.getModel(),L=this.gridSize,R=[];F.beginUpdate();+try{var Z={},ja=this.createCellLookup(q),fa=this.cloneCells(q,!1,Z,!0);for(B=0;B<q.length;B++){var ka=F.getParent(q[B]);if(null!=ka){var va=this.moveCells([fa[B]],L,L,!1)[0];R.push(va);if(A)F.add(ka,fa[B]);else{var Ma=ka.getIndex(q[B]);F.add(ka,fa[B],Ma+1)}if(this.isTable(ka)){var Na=this.getCellGeometry(fa[B]),Aa=this.getCellGeometry(ka);null!=Na&&null!=Aa&&(Aa=Aa.clone(),Aa.height+=Na.height,F.setGeometry(ka,Aa))}}else R.push(fa[B])}this.updateCustomLinks(this.createCellMapping(Z,ja),fa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,+"cells",fa))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(q,A,B){if(null!=q&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),L=[],R=0;R<F.length;R++)L.push(F[R]);document.execCommand("insertimage",!1,q);q=this.cellEditor.textarea.getElementsByTagName("img");if(q.length==L.length+1)for(R=q.length-1;0<=R;R--)if(0==R||q[R]!=L[R-1]){q[R].setAttribute("width",A);q[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(q){if(null!=this.cellEditor.textarea)if(0==q.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var A=this.cellEditor.textarea.getElementsByTagName("a"),B=[],F=0;F<A.length;F++)B.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(q));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==B.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=B[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(B=A[0].parentNode;null!=A[0].firstChild;)B.insertBefore(A[0].firstChild,A[0]);-B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(q))};Graph.prototype.isCellResizable=function(q){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(q);return!this.isTableCell(q)&&!this.isTableRow(q)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(q,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],K=-null,R=null,Z=0,ja=0;ja<A.length;ja++)if(this.getModel().isVertex(A[ja])){var fa=this.view.getState(A[ja]);if(null!=fa){var ka=q?fa.getCenterX():fa.getCenterY();K=null!=K?Math.max(K,ka):ka;R=null!=R?Math.min(R,ka):ka;B&&(Z+=q?fa.width:fa.height);F.push(fa)}}if(2<F.length){F.sort(function(Ga,wa){return q?Ga.x-wa.x:Ga.y-wa.y});B&&(Z-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);fa=this.view.translate;ka=this.view.scale;R=R/ka-(q?fa.x:fa.y);K=K/ka-(q?fa.x:fa.y);this.getModel().beginUpdate();-try{var va=(K-R-Z)/(F.length-1),Ma=R+(B?q?F[0].width/2:F[0].height/2:0);for(ja=1;ja<F.length-1;ja++){var Na=this.view.getState(this.model.getParent(F[ja].cell)),Aa=this.getCellGeometry(F[ja].cell);Ma+=va;null!=Aa&&null!=Na&&(Aa=Aa.clone(),q?Aa.x=Math.round(Ma-(B?0:Aa.width/2))-Na.origin.x:Aa.y=Math.round(Ma-(B?0:Aa.height/2))-Na.origin.y,this.getModel().setGeometry(F[ja].cell,Aa));B&&(Ma+=q?F[ja].width:F[ja].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(q){return mxClient.IS_MAC&&-mxEvent.isMetaDown(q)||mxEvent.isControlDown(q)};Graph.prototype.createSvgImageExport=function(q){q=new mxImageExport;q.addCellData=function(B,F,K){F.setAttribute("data-cell-id",B.id);if(K)if(mxUtils.isNode(B.value))for(K=0;K<B.value.attributes.length;K++){var R=B.value.attributes[K];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=q.visitStatesRecursive;-q.visitStatesRecursive=function(B,F,K){if(null!=B){var R=F.root,Z=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=Z.createElementNS?Z.createElementNS(mxConstants.NS_SVG,"g"):Z.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};q.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});q.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});-return q};Graph.prototype.parseBackgroundImage=function(q){var A=null;null!=q&&0<q.length&&(q=JSON.parse(q),A=new mxImage(q.src,q.width,q.height));return A};Graph.prototype.getBackgroundImageObject=function(q){return q};Graph.prototype.getSvg=function(q,A,B,F,K,R,Z,ja,fa,ka,va,Ma,Na,Aa,Ga,wa){var ua=null;if(null!=Aa)for(ua=new mxDictionary,va=0;va<Aa.length;va++)ua.put(Aa[va],!0);Aa=this.useCssTransforms;var Ta=this.enableFlowAnimation;this.enableFlowAnimation=!1;Aa&&(this.useCssTransforms=!1,this.view.revalidate(),-this.sizeDidChange());try{A=null!=A?A:1;B=null!=B?B:0;K=null!=K?K:!0;R=null!=R?R:!0;Z=null!=Z?Z:!0;ka=null!=ka?ka:!1;var Ra="page"==Na?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Na?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Oa=this.backgroundImage,Sa=this.view.translate,Xa=this.view.scale;"diagram"==Na&&null!=Oa&&null!=Oa.width&&null!=Oa.height&&(Ra=mxRectangle.fromRectangle(Ra),Ra.add(new mxRectangle((Sa.x+Oa.x)*Xa,(Sa.y+Oa.y)*Xa,Oa.width*Xa,Oa.height*-Xa)));if(null==Ra)throw Error(mxResources.get("drawingEmpty"));F=A/Xa;var kb=Math.max(1,Math.ceil(Ra.width*F)+2*B)+(ka&&0==B?5:0),tb=Math.max(1,Math.ceil(Ra.height*F)+2*B)+(ka&&0==B?5:0);K=K?-.5:0;var ub=mxUtils.getLightDarkColor(q),lb=Graph.createSvgNode(K,K,kb,tb,ub),mb=lb.ownerDocument;if(null!=q){var fb=mxUtils.createElementNs(mb,mxConstants.NS_SVG,"rect");fb.setAttribute("fill",ub.light);fb.style.fill=ub.cssText;fb.setAttribute("width","100%");fb.setAttribute("height","100%");fb.setAttribute("x",+B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(q))};Graph.prototype.isCellResizable=function(q){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(q);return!this.isTableCell(q)&&!this.isTableRow(q)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(q,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],L=+null,R=null,Z=0,ja=0;ja<A.length;ja++)if(this.getModel().isVertex(A[ja])){var fa=this.view.getState(A[ja]);if(null!=fa){var ka=q?fa.getCenterX():fa.getCenterY();L=null!=L?Math.max(L,ka):ka;R=null!=R?Math.min(R,ka):ka;B&&(Z+=q?fa.width:fa.height);F.push(fa)}}if(2<F.length){F.sort(function(Ga,wa){return q?Ga.x-wa.x:Ga.y-wa.y});B&&(Z-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);fa=this.view.translate;ka=this.view.scale;R=R/ka-(q?fa.x:fa.y);L=L/ka-(q?fa.x:fa.y);this.getModel().beginUpdate();+try{var va=(L-R-Z)/(F.length-1),Ma=R+(B?q?F[0].width/2:F[0].height/2:0);for(ja=1;ja<F.length-1;ja++){var Na=this.view.getState(this.model.getParent(F[ja].cell)),Aa=this.getCellGeometry(F[ja].cell);Ma+=va;null!=Aa&&null!=Na&&(Aa=Aa.clone(),q?Aa.x=Math.round(Ma-(B?0:Aa.width/2))-Na.origin.x:Aa.y=Math.round(Ma-(B?0:Aa.height/2))-Na.origin.y,this.getModel().setGeometry(F[ja].cell,Aa));B&&(Ma+=q?F[ja].width:F[ja].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(q){return mxClient.IS_MAC&&+mxEvent.isMetaDown(q)||mxEvent.isControlDown(q)};Graph.prototype.createSvgImageExport=function(q){q=new mxImageExport;q.addCellData=function(B,F,L){F.setAttribute("data-cell-id",B.id);if(L)if(mxUtils.isNode(B.value))for(L=0;L<B.value.attributes.length;L++){var R=B.value.attributes[L];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=q.visitStatesRecursive;+q.visitStatesRecursive=function(B,F,L){if(null!=B){var R=F.root,Z=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=Z.createElementNS?Z.createElementNS(mxConstants.NS_SVG,"g"):Z.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};q.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});q.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});+return q};Graph.prototype.parseBackgroundImage=function(q){var A=null;null!=q&&0<q.length&&(q=JSON.parse(q),A=new mxImage(q.src,q.width,q.height));return A};Graph.prototype.getBackgroundImageObject=function(q){return q};Graph.prototype.getSvg=function(q,A,B,F,L,R,Z,ja,fa,ka,va,Ma,Na,Aa,Ga,wa){var ua=null;if(null!=Aa)for(ua=new mxDictionary,va=0;va<Aa.length;va++)ua.put(Aa[va],!0);Aa=this.useCssTransforms;var Ta=this.enableFlowAnimation;this.enableFlowAnimation=!1;Aa&&(this.useCssTransforms=!1,this.view.revalidate(),+this.sizeDidChange());try{A=null!=A?A:1;B=null!=B?B:0;L=null!=L?L:!0;R=null!=R?R:!0;Z=null!=Z?Z:!0;ka=null!=ka?ka:!1;var Ra="page"==Na?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Na?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Oa=this.backgroundImage,Sa=this.view.translate,Xa=this.view.scale;"diagram"==Na&&null!=Oa&&null!=Oa.width&&null!=Oa.height&&(Ra=mxRectangle.fromRectangle(Ra),Ra.add(new mxRectangle((Sa.x+Oa.x)*Xa,(Sa.y+Oa.y)*Xa,Oa.width*Xa,Oa.height*+Xa)));if(null==Ra)throw Error(mxResources.get("drawingEmpty"));F=A/Xa;var kb=Math.max(1,Math.ceil(Ra.width*F)+2*B)+(ka&&0==B?5:0),tb=Math.max(1,Math.ceil(Ra.height*F)+2*B)+(ka&&0==B?5:0);L=L?-.5:0;var ub=mxUtils.getLightDarkColor(q),lb=Graph.createSvgNode(L,L,kb,tb,ub),mb=lb.ownerDocument;if(null!=q){var fb=mxUtils.createElementNs(mb,mxConstants.NS_SVG,"rect");fb.setAttribute("fill",ub.light);fb.style.fill=ub.cssText;fb.setAttribute("width","100%");fb.setAttribute("height","100%");fb.setAttribute("x","0");fb.setAttribute("y","0");lb.appendChild(fb)}var nb=mxUtils.createElementNs(mb,mxConstants.NS_SVG,"g");lb.appendChild(nb);var cb=this.createSvgCanvas(nb);cb.translate(Math.floor(B/A-Ra.x/Xa),Math.floor(B/A-Ra.y/Xa));cb.idPrefix="drawio-svg-"+Editor.guid();var vb=document.createElement("div"),wb=cb.getAlternateText;cb.getAlternateText=function(La,ob,ab,jb,hb,Ya,xb,Ab,c,l,t,n,r){if(null!=Ya&&0<this.state.fontSize)try{mxUtils.isNode(Ya)?Ya=Ya.innerText:(vb.innerHTML=Ya,Ya=mxUtils.extractTextWithWhitespace(vb.childNodes));-for(var u=Math.ceil(2*jb/this.state.fontSize),x=[],I=0,z=0;(0==u||I<u)&&z<Ya.length;){var da=Ya.charCodeAt(z);if(10==da||13==da){if(0<I)break}else x.push(Ya.charAt(z)),255>da&&I++;z++}x.length<Ya.length&&1<Ya.length-x.length&&(Ya=mxUtils.trim(x.join(""))+"...");return Ya}catch(U){return wb.apply(this,arguments)}else return wb.apply(this,arguments)};null!=Oa&&null!=Oa.width&&null!=Oa.height&&(q=Xa/A,K=new mxRectangle((Oa.x+Sa.x)*q,(Oa.y+Sa.y)*q,Oa.width*q,Oa.height*q),mxUtils.intersects(Ra,K)&&cb.image(Oa.x++for(var v=Math.ceil(2*jb/this.state.fontSize),x=[],I=0,z=0;(0==v||I<v)&&z<Ya.length;){var da=Ya.charCodeAt(z);if(10==da||13==da){if(0<I)break}else x.push(Ya.charAt(z)),255>da&&I++;z++}x.length<Ya.length&&1<Ya.length-x.length&&(Ya=mxUtils.trim(x.join(""))+"...");return Ya}catch(U){return wb.apply(this,arguments)}else return wb.apply(this,arguments)};null!=Oa&&null!=Oa.width&&null!=Oa.height&&(q=Xa/A,L=new mxRectangle((Oa.x+Sa.x)*q,(Oa.y+Sa.y)*q,Oa.width*q,Oa.height*q),mxUtils.intersects(Ra,L)&&cb.image(Oa.x+Sa.x,Oa.y+Sa.y,Oa.width,Oa.height,Oa.src,!0));cb.scale(F);cb.textEnabled=Z;ja=null!=ja?ja:this.createSvgImageExport();var yb=ja.getLinkForCellState;ja.getLinkForCellState=function(La,ob){var ab=La.view.graph.getAbsoluteUrl(yb.apply(this,arguments));return null==ab||La.view.graph.isCustomLink(ab)?null:ab};ja.getLinkTargetForCellState=function(La,ob){return La.view.graph.getLinkTargetForCell(La.cell)};var sb=ja.drawCellState,qb=null,rb=mxUtils.bind(this,function(){if(null==qb){qb="ge-flow-animation-"+Editor.guid();var La=null!=mb.createElementNS?mb.createElementNS(mxConstants.NS_SVG,"style"):mb.createElement("style");La.innerHTML=this.createFlowAnimationCss(qb);mb.getElementsByTagName("defs")[0].appendChild(La)}return qb});ja.drawCellState=function(La,ob){for(var ab=La.view.graph,jb=null!=ua?ua.get(La.cell):ab.isCellSelected(La.cell),hb=ab.model.getParent(La.cell);!(R&&null==ua||jb)&&null!=hb;)jb=null!=ua?ua.get(hb):ab.isCellSelected(hb),hb=ab.model.getParent(hb);if(null!=La.shape)try{var Ya=La.shape.isFlowAnimationEnabled,xb=La.shape.addFlowAnimationToShape;La.shape.isFlowAnimationEnabled=function(){return Ta&&ab.model.isEdge(La.cell)&&"1"==mxUtils.getValue(La.style,"flowAnimation","0")};La.shape.addFlowAnimationToShape=function(){ab.addFlowAnimationToNode(this.getFlowAnimationPath(),La.style,A,rb())};if(R&&null==ua||jb)ab.view.redrawEnumerationState(La),sb.apply(this,arguments),this.doDrawShape(La.secondLabel,ob)}finally{La.shape.isFlowAnimationEnabled=Ya,La.shape.addFlowAnimationToShape=xb}};var ib=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;ja.drawState(this.getView().getState(ib),cb);this.addForeignObjectWarning(cb,lb);wa?this.disableSvgLinks(lb):this.updateSvgLinks(lb,fa,!0);return lb}finally{this.enableFlowAnimation=Ta,Aa&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(q,A){if("0"!=urlParams["svg-warning"]&&0<A.getElementsByTagName("foreignObject").length){var B=q.createElement("switch"),-F=q.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var K=q.createElement("a");K.setAttribute("transform","translate(0,-5)");null==K.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(K.setAttribute("xlink:href",Graph.foreignObjectWarningLink),K.setAttribute("target","_blank")):(K.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),K.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));q=-q.createElement("text");q.setAttribute("text-anchor","middle");q.setAttribute("font-size","10px");q.setAttribute("x","50%");q.setAttribute("y","100%");mxUtils.write(q,Graph.foreignObjectWarningText);B.appendChild(F);K.appendChild(q);B.appendChild(K);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(q,A){q=q.getElementsByTagName("a");for(var B=0;B<q.length;B++){var F=q[B].getAttribute("href");null==F&&(F=q[B].getAttribute("xlink:href"));null!=F&&(q[B].style.pointerEvents="none",q[B].setAttribute("href",-""));A&&A(q[B])}};Graph.prototype.updateSvgLinks=function(q,A,B){q=q.getElementsByTagName("a");for(var F=0;F<q.length;F++)if(null==q[F].getAttribute("target")){var K=q[F].getAttribute("href");null==K&&(K=q[F].getAttribute("xlink:href"));null!=K&&(null!=A&&/^https?:\/\//.test(K)?q[F].setAttribute("target",A):B&&this.isCustomLink(K)&&q[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(q){q=new mxSvgCanvas2D(q);q.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;+F=q.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var L=q.createElement("a");L.setAttribute("transform","translate(0,-5)");null==L.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(L.setAttribute("xlink:href",Graph.foreignObjectWarningLink),L.setAttribute("target","_blank")):(L.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),L.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));q=+q.createElement("text");q.setAttribute("text-anchor","middle");q.setAttribute("font-size","10px");q.setAttribute("x","50%");q.setAttribute("y","100%");mxUtils.write(q,Graph.foreignObjectWarningText);B.appendChild(F);L.appendChild(q);B.appendChild(L);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(q,A){q=q.getElementsByTagName("a");for(var B=0;B<q.length;B++){var F=q[B].getAttribute("href");null==F&&(F=q[B].getAttribute("xlink:href"));null!=F&&(q[B].style.pointerEvents="none",q[B].setAttribute("href",+""));A&&A(q[B])}};Graph.prototype.updateSvgLinks=function(q,A,B){q=q.getElementsByTagName("a");for(var F=0;F<q.length;F++)if(null==q[F].getAttribute("target")){var L=q[F].getAttribute("href");null==L&&(L=q[F].getAttribute("xlink:href"));null!=L&&(null!=A&&/^https?:\/\//.test(L)?q[F].setAttribute("target",A):B&&this.isCustomLink(L)&&q[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(q){q=new mxSvgCanvas2D(q);q.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;q.adaptiveColors=this.getAdaptiveColors();q.pointerEvents=!0;return q};Graph.prototype.getSelectedElement=function(){var q=null;if(window.getSelection){var A=window.getSelection();A.getRangeAt&&A.rangeCount&&(q=A.getRangeAt(0).commonAncestorContainer)}else document.selection&&(q=document.selection.createRange().parentElement());return q};Graph.prototype.getSelectedEditingElement=function(){var q=null;if(null!=this.cellEditor.textarea)for(q=this.getSelectedElement();null!=q&&q.nodeType!=mxConstants.NODETYPE_ELEMENT;)q=q.parentNode;return q};Graph.prototype.getParentByName=function(q,A,B){for(;null!=q&&q.nodeName!=A;){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.getParentByNames=function(q,A,B){for(;null!=q&&!(0<=mxUtils.indexOf(A,q.nodeName));){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.selectNode=function(q){var A=null;if(window.getSelection){if(A=window.getSelection(),A.getRangeAt&&A.rangeCount){var B=document.createRange();B.selectNode(q);A.removeAllRanges();A.addRange(B)}}else(A=-document.selection)&&"Control"!=A.type&&(q=A.createRange(),q.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",q),B.select())};Graph.prototype.flipEdgePoints=function(q,A,B){var F=this.getCellGeometry(q);if(null!=F){F=F.clone();if(null!=F.points)for(var K=0;K<F.points.length;K++)A?F.points[K].x=B+(B-F.points[K].x):F.points[K].y=B+(B-F.points[K].y);K=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};K(F.getTerminalPoint(!0));K(F.getTerminalPoint(!1));this.model.setGeometry(q,F)}};Graph.prototype.flipChildren=-function(q,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(q),K=0;K<F;K++){var R=this.model.getChildAt(q,K);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var Z=this.getCellGeometry(R);null!=Z&&(Z=Z.clone(),A?Z.x=B+(B-Z.x-Z.width):Z.y=B+(B-Z.y-Z.height),this.model.setGeometry(R,Z))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(q,A){this.model.beginUpdate();try{q=this.model.getTopmostCells(q);for(var B=[],F=0;F<q.length;F++)if(this.model.isEdge(q[F])){var K=-this.view.getState(q[F]);null!=K&&this.flipEdgePoints(q[F],A,(A?K.getCenterX():K.getCenterY())/this.view.scale-(A?K.origin.x:K.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(q[F]);null!=R&&this.flipChildren(q[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(q[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=function(q,A){var B=null;if(null!=q&&0<q.length){this.model.beginUpdate();-try{for(var F=0;F<q.length;F++){var K=this.model.getParent(q[F]);if(this.isTable(K)){var R=this.getCellGeometry(q[F]),Z=this.getCellGeometry(K);null!=R&&null!=Z&&(Z=Z.clone(),Z.height-=R.height,this.model.setGeometry(K,Z))}}var ja=this.selectParentAfterDelete?this.model.getParents(q):null;this.removeCells(q,A)}finally{this.model.endUpdate()}if(null!=ja)for(B=[],F=0;F<ja.length;F++)this.model.contains(ja[F])&&(this.model.isVertex(ja[F])||this.model.isEdge(ja[F]))&&B.push(ja[F])}return B};Graph.prototype.insertTableColumn=-function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,K=0;if(this.isTableCell(q)){var R=B.getParent(q);F=B.getParent(R);K=mxUtils.indexOf(B.getChildCells(R,!0),q)}else this.isTableRow(q)?F=B.getParent(q):q=B.getChildCells(F,!0)[0],A||(K=B.getChildCells(q,!0).length-1);var Z=B.getChildCells(F,!0),ja=Graph.minTableColumnWidth;for(q=0;q<Z.length;q++){var fa=B.getChildCells(Z[q],!0)[K],ka=B.cloneCell(fa,!1);null==ka&&(ka=this.createVertex());var va=this.getCellGeometry(ka);ka.value=null;ka.style=-mxUtils.setStyle(mxUtils.setStyle(ka.style,"rowspan",null),"colspan",null);if(null!=va){null!=va.alternateBounds&&(va.width=va.alternateBounds.width,va.height=va.alternateBounds.height,va.alternateBounds=null);ja=va.width;var Ma=this.getCellGeometry(Z[q]);null!=Ma&&(va.height=Ma.height)}B.add(Z[q],ka,K+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=ja,B.setGeometry(F,Na))}finally{B.endUpdate()}};Graph.prototype.deleteLane=function(q){var A=this.getModel();A.beginUpdate();-try{var B=null;B="stackLayout"==this.getCurrentCellStyle(q).childLayout?q:A.getParent(q);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==q&&(q=F[F.length-1]),A.remove(q))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(q).childLayout){F=q;var K=B.getChildCells(F,!0);q=K[A?0:K.length-1]}else F=B.getParent(q);var R=F.getIndex(q);q=B.cloneCell(q,!1);q.value=null;B.add(F,q,R+(A?0:1))}finally{B.endUpdate()}};-Graph.prototype.insertTableRow=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,K=q;if(this.isTableCell(q))K=B.getParent(q),F=B.getParent(K);else if(this.isTableRow(q))F=B.getParent(q);else{var R=B.getChildCells(F,!0);K=R[A?0:R.length-1]}var Z=B.getChildCells(K,!0),ja=F.getIndex(K);K=B.cloneCell(K,!1);K.value=null;var fa=this.getCellGeometry(K);if(null!=fa){for(R=0;R<Z.length;R++){q=B.cloneCell(Z[R],!1);q.value=null;q.style=mxUtils.setStyle(mxUtils.setStyle(q.style,"rowspan",null),-"colspan",null);var ka=this.getCellGeometry(q);null!=ka&&(null!=ka.alternateBounds&&(ka.width=ka.alternateBounds.width,ka.height=ka.alternateBounds.height,ka.alternateBounds=null),ka.height=fa.height);K.insert(q)}B.add(F,K,ja+(A?0:1));var va=this.getCellGeometry(F);null!=va&&(va=va.clone(),va.height+=fa.height,B.setGeometry(F,va))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(F=A.getParent(q));this.isTableRow(F)&&-(B=A.getParent(F));var K=A.getChildCells(B,!0);if(0==K.length)A.remove(B);else{this.isTableRow(F)||(F=K[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var Z=R.length-1;this.isTableCell(q)&&(Z=mxUtils.indexOf(R,q));for(F=q=0;F<K.length;F++){var ja=A.getChildCells(K[F],!0)[Z];A.remove(ja);var fa=this.getCellGeometry(ja);null!=fa&&(q=Math.max(q,fa.width))}var ka=this.getCellGeometry(B);null!=ka&&(ka=ka.clone(),ka.width-=q,A.setGeometry(B,ka))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=-function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(q=F=A.getParent(q));this.isTableRow(q)&&(B=A.getParent(F));var K=A.getChildCells(B,!0);if(1>=K.length)A.remove(B);else{this.isTableRow(F)||(F=K[K.length-1]);A.remove(F);q=0;var R=this.getCellGeometry(F);null!=R&&(q=R.height);var Z=this.getCellGeometry(B);null!=Z&&(Z=Z.clone(),Z.height-=q,A.setGeometry(B,Z))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(q,A){for(var B=q.tBodies[0],F=B.rows[0].cells,-K=q=0;K<F.length;K++){var R=F[K].getAttribute("colspan");q+=null!=R?parseInt(R):1}A=B.insertRow(A);for(K=0;K<q;K++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(q,A){q.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(q,A){var B=q.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var K=document.createElement("th");B.rows[F].appendChild(K);mxUtils.br(K)}q=q.tBodies[0];for(B=0;B<q.rows.length;B++)F=q.rows[B].insertCell(A),mxUtils.br(F);return q.rows[0].cells[0<=+document.selection)&&"Control"!=A.type&&(q=A.createRange(),q.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",q),B.select())};Graph.prototype.flipEdgePoints=function(q,A,B){var F=this.getCellGeometry(q);if(null!=F){F=F.clone();if(null!=F.points)for(var L=0;L<F.points.length;L++)A?F.points[L].x=B+(B-F.points[L].x):F.points[L].y=B+(B-F.points[L].y);L=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};L(F.getTerminalPoint(!0));L(F.getTerminalPoint(!1));this.model.setGeometry(q,F)}};Graph.prototype.flipChildren=+function(q,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(q),L=0;L<F;L++){var R=this.model.getChildAt(q,L);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var Z=this.getCellGeometry(R);null!=Z&&(Z=Z.clone(),A?Z.x=B+(B-Z.x-Z.width):Z.y=B+(B-Z.y-Z.height),this.model.setGeometry(R,Z))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(q,A){this.model.beginUpdate();try{q=this.model.getTopmostCells(q);for(var B=[],F=0;F<q.length;F++)if(this.model.isEdge(q[F])){var L=+this.view.getState(q[F]);null!=L&&this.flipEdgePoints(q[F],A,(A?L.getCenterX():L.getCenterY())/this.view.scale-(A?L.origin.x:L.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(q[F]);null!=R&&this.flipChildren(q[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(q[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=function(q,A){var B=null;if(null!=q&&0<q.length){this.model.beginUpdate();+try{for(var F=0;F<q.length;F++){var L=this.model.getParent(q[F]);if(this.isTable(L)){var R=this.getCellGeometry(q[F]),Z=this.getCellGeometry(L);null!=R&&null!=Z&&(Z=Z.clone(),Z.height-=R.height,this.model.setGeometry(L,Z))}}var ja=this.selectParentAfterDelete?this.model.getParents(q):null;this.removeCells(q,A)}finally{this.model.endUpdate()}if(null!=ja)for(B=[],F=0;F<ja.length;F++)this.model.contains(ja[F])&&(this.model.isVertex(ja[F])||this.model.isEdge(ja[F]))&&B.push(ja[F])}return B};Graph.prototype.insertTableColumn=+function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,L=0;if(this.isTableCell(q)){var R=B.getParent(q);F=B.getParent(R);L=mxUtils.indexOf(B.getChildCells(R,!0),q)}else this.isTableRow(q)?F=B.getParent(q):q=B.getChildCells(F,!0)[0],A||(L=B.getChildCells(q,!0).length-1);var Z=B.getChildCells(F,!0),ja=Graph.minTableColumnWidth;for(q=0;q<Z.length;q++){var fa=B.getChildCells(Z[q],!0)[L],ka=B.cloneCell(fa,!1);null==ka&&(ka=this.createVertex());var va=this.getCellGeometry(ka);ka.value=null;ka.style=+mxUtils.setStyle(mxUtils.setStyle(ka.style,"rowspan",null),"colspan",null);if(null!=va){null!=va.alternateBounds&&(va.width=va.alternateBounds.width,va.height=va.alternateBounds.height,va.alternateBounds=null);ja=va.width;var Ma=this.getCellGeometry(Z[q]);null!=Ma&&(va.height=Ma.height)}B.add(Z[q],ka,L+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=ja,B.setGeometry(F,Na))}finally{B.endUpdate()}};Graph.prototype.deleteLane=function(q){var A=this.getModel();A.beginUpdate();+try{var B=null;B="stackLayout"==this.getCurrentCellStyle(q).childLayout?q:A.getParent(q);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==q&&(q=F[F.length-1]),A.remove(q))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(q).childLayout){F=q;var L=B.getChildCells(F,!0);q=L[A?0:L.length-1]}else F=B.getParent(q);var R=F.getIndex(q);q=B.cloneCell(q,!1);q.value=null;B.add(F,q,R+(A?0:1))}finally{B.endUpdate()}};+Graph.prototype.insertTableRow=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,L=q;if(this.isTableCell(q))L=B.getParent(q),F=B.getParent(L);else if(this.isTableRow(q))F=B.getParent(q);else{var R=B.getChildCells(F,!0);L=R[A?0:R.length-1]}var Z=B.getChildCells(L,!0),ja=F.getIndex(L);L=B.cloneCell(L,!1);L.value=null;var fa=this.getCellGeometry(L);if(null!=fa){for(R=0;R<Z.length;R++){q=B.cloneCell(Z[R],!1);q.value=null;q.style=mxUtils.setStyle(mxUtils.setStyle(q.style,"rowspan",null),+"colspan",null);var ka=this.getCellGeometry(q);null!=ka&&(null!=ka.alternateBounds&&(ka.width=ka.alternateBounds.width,ka.height=ka.alternateBounds.height,ka.alternateBounds=null),ka.height=fa.height);L.insert(q)}B.add(F,L,ja+(A?0:1));var va=this.getCellGeometry(F);null!=va&&(va=va.clone(),va.height+=fa.height,B.setGeometry(F,va))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(F=A.getParent(q));this.isTableRow(F)&&+(B=A.getParent(F));var L=A.getChildCells(B,!0);if(0==L.length)A.remove(B);else{this.isTableRow(F)||(F=L[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var Z=R.length-1;this.isTableCell(q)&&(Z=mxUtils.indexOf(R,q));for(F=q=0;F<L.length;F++){var ja=A.getChildCells(L[F],!0)[Z];A.remove(ja);var fa=this.getCellGeometry(ja);null!=fa&&(q=Math.max(q,fa.width))}var ka=this.getCellGeometry(B);null!=ka&&(ka=ka.clone(),ka.width-=q,A.setGeometry(B,ka))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=+function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(q=F=A.getParent(q));this.isTableRow(q)&&(B=A.getParent(F));var L=A.getChildCells(B,!0);if(1>=L.length)A.remove(B);else{this.isTableRow(F)||(F=L[L.length-1]);A.remove(F);q=0;var R=this.getCellGeometry(F);null!=R&&(q=R.height);var Z=this.getCellGeometry(B);null!=Z&&(Z=Z.clone(),Z.height-=q,A.setGeometry(B,Z))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(q,A){for(var B=q.tBodies[0],F=B.rows[0].cells,+L=q=0;L<F.length;L++){var R=F[L].getAttribute("colspan");q+=null!=R?parseInt(R):1}A=B.insertRow(A);for(L=0;L<q;L++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(q,A){q.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(q,A){var B=q.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var L=document.createElement("th");B.rows[F].appendChild(L);mxUtils.br(L)}q=q.tBodies[0];for(B=0;B<q.rows.length;B++)F=q.rows[B].insertCell(A),mxUtils.br(F);return q.rows[0].cells[0<=A?A:q.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(q,A){if(0<=A){q=q.tBodies[0].rows;for(var B=0;B<q.length;B++)q[B].cells.length>A&&q[B].deleteCell(A)}};Graph.prototype.pasteHtmlAtCaret=function(q){if(window.getSelection){var A=window.getSelection();if(A.getRangeAt&&A.rangeCount){A=A.getRangeAt(0);A.deleteContents();var B=document.createElement("div");B.innerHTML=q;q=document.createDocumentFragment();for(var F;F=B.firstChild;)lastNode=q.appendChild(F);A.insertNode(q)}}else(A=document.selection)&&-"Control"!=A.type&&A.createRange().pasteHTML(q)};Graph.prototype.createLinkForHint=function(q,A,B){function F(R,Z){R.length>Z&&(R=R.substring(0,Math.round(Z/2))+"..."+R.substring(R.length-Math.round(Z/4)));return R}q=null!=q?q:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(q)?this.getLinkTitle(q):q;var K=document.createElement("a");K.setAttribute("rel",this.linkRelation);K.setAttribute("href",this.getAbsoluteUrl(q));K.setAttribute("title",F(this.isCustomLink(q)?this.getLinkTitle(q):-q,80));null!=this.linkTarget&&K.setAttribute("target",this.linkTarget);mxUtils.write(K,F(A,40));this.isCustomLink(q)&&mxEvent.addListener(K,"click",mxUtils.bind(this,function(R){this.customLinkClicked(q,B);mxEvent.consume(R)}));return K};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(R,Z){this.popupMenuHandler.hideMenu()});var q=this.updateMouseEvent;this.updateMouseEvent=-function(R){R=q.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var Z=this.getCellAt(R.graphX,R.graphY);null!=Z&&this.isSwimlane(Z)&&this.hitsSwimlaneContent(Z,R.graphX,R.graphY)||(R.state=this.view.getState(Z),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return R};var A=!1,B=!1,F=!1,K=this.fireMouseEvent;this.fireMouseEvent=function(R,-Z,ja){R==mxEvent.MOUSE_DOWN&&(Z=this.updateMouseEvent(Z),A=this.isCellSelected(Z.getCell()),B=this.isSelectionEmpty(),F=this.popupMenuHandler.isMenuShowing());K.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(R,Z){if(null!=this.freehand&&!this.freehand.isDrawing()){var ja=mxEvent.isMouseEvent(Z.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==Z.getState()||!Z.isSource(Z.getState().control))&&(this.popupMenuHandler.popupTrigger||+"Control"!=A.type&&A.createRange().pasteHTML(q)};Graph.prototype.createLinkForHint=function(q,A,B){function F(R,Z){R.length>Z&&(R=R.substring(0,Math.round(Z/2))+"..."+R.substring(R.length-Math.round(Z/4)));return R}q=null!=q?q:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(q)?this.getLinkTitle(q):q;var L=document.createElement("a");L.setAttribute("rel",this.linkRelation);L.setAttribute("href",this.getAbsoluteUrl(q));L.setAttribute("title",F(this.isCustomLink(q)?this.getLinkTitle(q):+q,80));null!=this.linkTarget&&L.setAttribute("target",this.linkTarget);mxUtils.write(L,F(A,40));this.isCustomLink(q)&&mxEvent.addListener(L,"click",mxUtils.bind(this,function(R){this.customLinkClicked(q,B);mxEvent.consume(R)}));return L};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(R,Z){this.popupMenuHandler.hideMenu()});var q=this.updateMouseEvent;this.updateMouseEvent=+function(R){R=q.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var Z=this.getCellAt(R.graphX,R.graphY);null!=Z&&this.isSwimlane(Z)&&this.hitsSwimlaneContent(Z,R.graphX,R.graphY)||(R.state=this.view.getState(Z),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return R};var A=!1,B=!1,F=!1,L=this.fireMouseEvent;this.fireMouseEvent=function(R,+Z,ja){R==mxEvent.MOUSE_DOWN&&(Z=this.updateMouseEvent(Z),A=this.isCellSelected(Z.getCell()),B=this.isSelectionEmpty(),F=this.popupMenuHandler.isMenuShowing());L.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(R,Z){if(null!=this.freehand&&!this.freehand.isDrawing()){var ja=mxEvent.isMouseEvent(Z.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==Z.getState()||!Z.isSource(Z.getState().control))&&(this.popupMenuHandler.popupTrigger||!F&&!ja&&(B&&null==Z.getCell()&&this.isSelectionEmpty()||A&&this.isCellSelected(Z.getCell())));ja=!A||ja?null:mxUtils.bind(this,function(fa){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()&&this.isTouchPopupMenuEnabled()){var ka=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(Z.getX()+ka.x+1,Z.getY()+ka.y+1,fa,Z.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[R,Z,ja])}})};Graph.prototype.isTouchPopupMenuEnabled=function(){return!0};mxCellEditor.prototype.isContentEditing=function(){var q=this.graph.view.getState(this.editingCell);return null!=q&&1==q.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var q="";window.getSelection?q=window.getSelection():document.getSelection?q=document.getSelection():document.selection&&(q=document.selection.createRange().text);return""!=-q};mxCellEditor.prototype.insertTab=function(q){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);q=Graph.createTabNode(q);B.insertNode(q);B.setStartAfter(q);B.setEndAfter(q);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(q,A){var B=this.graph.getView().getState(this.editingCell);if(null!=B){B=mxUtils.getValue(B.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=B&&"vertical-"==B.substring(0,9),K=null!=-A&&mxEvent.isShiftDown(A);if(K||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(Z){K||F||window.getSelection().containsNode(Z,!0)?(Z.removeAttribute("align"),Z.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(q)}F||document.execCommand("justify"+q.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var q=window.getSelection();if(q.getRangeAt&&q.rangeCount){for(var A=+q};mxCellEditor.prototype.insertTab=function(q){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);q=Graph.createTabNode(q);B.insertNode(q);B.setStartAfter(q);B.setEndAfter(q);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(q,A){var B=this.graph.getView().getState(this.editingCell);if(null!=B){B=mxUtils.getValue(B.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=B&&"vertical-"==B.substring(0,9),L=null!=+A&&mxEvent.isShiftDown(A);if(L||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(Z){L||F||window.getSelection().containsNode(Z,!0)?(Z.removeAttribute("align"),Z.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(q)}F||document.execCommand("justify"+q.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var q=window.getSelection();if(q.getRangeAt&&q.rangeCount){for(var A=[],B=0,F=q.rangeCount;B<F;++B)A.push(q.getRangeAt(B));return A}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(q){try{if(q)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var A=0,B=q.length;A<B;++A)sel.addRange(q[A])}else document.selection&&q.select&&q.select()}catch(F){}};var G=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(q){null!=q.text&&(q.text.replaceLinefeeds="0"!=mxUtils.getValue(q.style,"nl2Br","1"));G.apply(this,arguments)};var J=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(q,A){this.isKeepFocusEvent(q)||!mxEvent.isAltDown(q.getEvent())?J.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(q){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var M=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(q,A){q=this.graph.getStartEditingCell(q,A);M.apply(this,arguments);var B=this.graph.view.getState(q);this.textarea.className=null!=B&&1==B.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.textarea.style.colorScheme="none"==this.graph.getAdaptiveColors()?"light":"";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(q)};mxCellEditor.prototype.toggleViewMode=function(){var q=this.graph.view.getState(this.editingCell);if(null!=q){var A=null!=q&&"0"!=mxUtils.getValue(q.style,"nl2Br","1"),B=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);ja=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<ja.length&&"\n"==ja.charAt(ja.length-1)&&(ja=ja.substring(0,ja.length-1));ja=Graph.sanitizeHtml(A?ja.replace(/\n/g,"<br/>"):ja,!0);this.textarea.className="mxCellEditor geContentEditable";fa=mxUtils.getValue(q.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);-A=mxUtils.getValue(q.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),K=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,Z=[];(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&Z.push("underline");-(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&Z.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(fa)+"px";this.textarea.style.textDecoration=Z.join(" ");this.textarea.style.fontWeight=K?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=+A=mxUtils.getValue(q.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),L=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,Z=[];(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&Z.push("underline");+(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&Z.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(fa)+"px";this.textarea.style.textDecoration=Z.join(" ");this.textarea.style.fontWeight=L?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=F;this.textarea.style.padding="0px";this.textarea.innerHTML!=ja&&(this.textarea.innerHTML=ja,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors());this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerText="");Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);var ja=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(ja=mxUtils.replaceTrailingNewlines(ja,"<div><br></div>"));ja=Graph.sanitizeHtml(A?ja.replace(/\n/g,"").replace(/<br\s*.?>/g,"<br>"):ja,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var fa=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(fa)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=ja&&(this.textarea.innerHTML=ja);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=@@ -2921,40 +2922,40 @@ mxUtils.getValue(q.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDD"px",this.bounds.height=parseInt(this.textarea.style.height)*B);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/B)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*B);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+B+","+B+")")}else this.textarea.style.height="",this.textarea.style.overflow="",Q.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(q,A){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var B=this.graph.getEditingValue(q.cell,A);"1"==mxUtils.getValue(q.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(B,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=function(q,A){mxCellEditorSetEditingValue.apply(this,arguments);"1"==mxUtils.getValue(q.style,"html","0")&&Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors())};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(q){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);-var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(q.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var L=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(q){this.codeViewMode&&this.toggleViewMode();L.apply(this,arguments);this.focusContainer()};+var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(q.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var K=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(q){this.codeViewMode&&this.toggleViewMode();K.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(q){}};var W=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(q,A){this.graph.getModel().beginUpdate();try{W.apply(this,arguments),""==A&&this.graph.isCellDeletable(q.cell)&&0==this.graph.model.getChildCount(q.cell)&&this.graph.isTransparentState(q)&&this.graph.removeCells([q.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(q){q=mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getBorderColor=function(q){q=mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getMinimumSize=function(q){var A=this.graph.getView().scale;return new mxRectangle(0,0,null==q.text?30:q.text.size*A+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=function(q,A){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(A.getEvent)};mxGraphView.prototype.formatUnitText=function(q){return q?b(q,this.unit):q};mxGraphHandler.prototype.updateHint=function(q){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var A=this.graph.view.translate,B=this.graph.view.scale;q=this.roundLength((this.bounds.x+this.currentDx)/B-A.x);A=this.roundLength((this.bounds.y+this.currentDy)/B-A.y);B=this.graph.view.unit;this.hint.innerHTML=b(q,B)+", "+b(A,B);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var X=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=-function(q,A){X.apply(this,arguments);var B=this.graph.getCellStyle(q);if(null==B.childLayout){var F=this.graph.model.getParent(q),K=null!=F?this.graph.getCellGeometry(F):null;if(null!=K&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var Z=this.graph.getActualStartSize(F);K=K.clone();B?K.height=A.height+Z.y+Z.height+2*R:K.width=A.width+Z.x+Z.width+2*R;-this.graph.model.setGeometry(F,K)}}};var T=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function q(ja){B.get(ja)||(B.put(ja,!0),K.push(ja))}for(var A=T.apply(this,arguments),B=new mxDictionary,F=this.graph.model,K=[],R=0;R<A.length;R++){var Z=A[R];this.graph.isTableCell(Z)?q(F.getParent(F.getParent(Z))):this.graph.isTableRow(Z)&&q(F.getParent(Z));q(Z)}return K};var N=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=+function(q,A){X.apply(this,arguments);var B=this.graph.getCellStyle(q);if(null==B.childLayout){var F=this.graph.model.getParent(q),L=null!=F?this.graph.getCellGeometry(F):null;if(null!=L&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var Z=this.graph.getActualStartSize(F);L=L.clone();B?L.height=A.height+Z.y+Z.height+2*R:L.width=A.width+Z.x+Z.width+2*R;+this.graph.model.setGeometry(F,L)}}};var T=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function q(ja){B.get(ja)||(B.put(ja,!0),L.push(ja))}for(var A=T.apply(this,arguments),B=new mxDictionary,F=this.graph.model,L=[],R=0;R<A.length;R++){var Z=A[R];this.graph.isTableCell(Z)?q(F.getParent(F.getParent(Z))):this.graph.isTableRow(Z)&&q(F.getParent(Z));q(Z)}return L};var N=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=function(q){return N.apply(this,arguments)&&!mxEvent.isControlDown(q.getEvent())&&!mxEvent.isShiftDown(q.getEvent())};var ca=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return ca.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var H=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=function(q){var A=H.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};var S=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(q){var A=S.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var q=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+q.x/2,this.bounds.y+this.rotationHandleVSpacing-q.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(q,A){return this.graph.isRecursiveVertexResize(q)&&!mxEvent.isAltDown(A.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(q,A){return mxEvent.isControlDown(A.getEvent())||mxEvent.isMetaDown(A.getEvent())};var ea=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return ea.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var la=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return la.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var O=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(q){return q.tableHandle||O.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var q=0;this.graph.isTableRow(this.state.cell)?q=1:this.graph.isTableCell(this.state.cell)&&(q=2);return q};var V=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return V.apply(this,arguments).grow(-this.getSelectionBorderInset())};var Y=null,ha=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==Y&&(Y=mxCellRenderer.defaultShapes.tableLine);var q=ha.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var A=function(Ga,wa,ua){for(var Ta=[],Ra=0;Ra<Ga.length;Ra++){var Oa=Ga[Ra];Ta.push(null==Oa?null:new mxPoint((fa+Oa.x+wa)*R,(ka+Oa.y+ua)*-R))}return Ta},B=this,F=this.graph,K=F.model,R=F.view.scale,Z=this.state,ja=this.selectionBorder,fa=this.state.origin.x+F.view.translate.x,ka=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var va=F.view.getCellStates(K.getChildCells(this.state.cell,!0));if(0<va.length){var Ma=K.getChildCells(va[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),Aa=F.getTableLines(this.state.cell,!0,!1);for(K=0;K<va.length;K++)mxUtils.bind(this,function(Ga){var wa=va[Ga],ua=null;if(F.isCellMovable(wa.cell)){ua=+R))}return Ta},B=this,F=this.graph,L=F.model,R=F.view.scale,Z=this.state,ja=this.selectionBorder,fa=this.state.origin.x+F.view.translate.x,ka=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var va=F.view.getCellStates(L.getChildCells(this.state.cell,!0));if(0<va.length){var Ma=L.getChildCells(va[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),Aa=F.getTableLines(this.state.cell,!0,!1);for(L=0;L<va.length;L++)mxUtils.bind(this,function(Ga){var wa=va[Ga],ua=null;if(F.isCellMovable(wa.cell)){ua=Ga<va.length-1?va[Ga+1]:null;ua=null!=ua?F.getCellGeometry(ua.cell):null;var Ta=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Aa[Ga]?new Y(Aa[Ga],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);ua.isDashed=ja.isDashed;ua.svgStrokeTolerance++;ua=new mxHandle(wa,"row-resize",null,ua);ua.tableHandle=!0;var Ra=0;ua.shape.node.parentNode.insertBefore(ua.shape.node,ua.shape.node.parentNode.firstChild);ua.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Ra?mxConstants.NONE:ja.stroke;if(this.shape.constructor==Y)this.shape.line=A(Aa[Ga],0,Ra),this.shape.updateBoundsFromLine();else{var Sa=F.getActualStartSize(Z.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+Ra*R;this.shape.bounds.x=Z.x+(Ga==va.length-1?0:Sa.x*R);this.shape.bounds.width=Z.width-(Ga==va.length-1?0:Sa.width+Sa.x+R)}this.shape.redraw()}};var Oa=!1;ua.setPosition=function(Sa,Xa,kb){Ra=Math.max(Graph.minTableRowHeight-Sa.height,Xa.y-Sa.y-Sa.height);-Oa=mxEvent.isShiftDown(kb.getEvent());null!=Ta&&Oa&&(Ra=Math.min(Ra,Ta.height-Graph.minTableRowHeight))};ua.execute=function(Sa){if(0!=Ra)F.setTableRowHeight(this.state.cell,Ra,!Oa);else if(!B.blockDelayedSelection){var Xa=F.getCellAt(Sa.getGraphX(),Sa.getGraphY())||Z.cell;F.graphHandler.selectCellForEvent(Xa,Sa)}Ra=0};ua.reset=function(){Ra=0}}q.push(ua)})(K);for(K=0;K<Ma.length;K++)mxUtils.bind(this,function(Ga){var wa=F.view.getState(Ma[Ga]),ua=F.getCellGeometry(Ma[Ga]),Ta=null!=ua.alternateBounds?+Oa=mxEvent.isShiftDown(kb.getEvent());null!=Ta&&Oa&&(Ra=Math.min(Ra,Ta.height-Graph.minTableRowHeight))};ua.execute=function(Sa){if(0!=Ra)F.setTableRowHeight(this.state.cell,Ra,!Oa);else if(!B.blockDelayedSelection){var Xa=F.getCellAt(Sa.getGraphX(),Sa.getGraphY())||Z.cell;F.graphHandler.selectCellForEvent(Xa,Sa)}Ra=0};ua.reset=function(){Ra=0}}q.push(ua)})(L);for(L=0;L<Ma.length;L++)mxUtils.bind(this,function(Ga){var wa=F.view.getState(Ma[Ga]),ua=F.getCellGeometry(Ma[Ga]),Ta=null!=ua.alternateBounds?ua.alternateBounds:ua;null==wa&&(wa=new mxCellState(F.view,Ma[Ga],F.getCellStyle(Ma[Ga])),wa.x=Z.x+ua.x*R,wa.y=Z.y+ua.y*R,wa.width=Ta.width*R,wa.height=Ta.height*R,wa.updateCachedBounds());ua=Ga<Ma.length-1?Ma[Ga+1]:null;ua=null!=ua?F.getCellGeometry(ua):null;var Ra=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Na[Ga]?new Y(Na[Ga],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);ua.isDashed=ja.isDashed;ua.svgStrokeTolerance++;wa=new mxHandle(wa,"col-resize",null,ua);wa.tableHandle=!0;var Oa=0;wa.shape.node.parentNode.insertBefore(wa.shape.node,wa.shape.node.parentNode.firstChild);wa.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Oa?mxConstants.NONE:ja.stroke;if(this.shape.constructor==Y)this.shape.line=A(Na[Ga],Oa,0),this.shape.updateBoundsFromLine();else{var Xa=F.getActualStartSize(Z.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(Ta.width+Oa)*R;this.shape.bounds.y=Z.y+(Ga==Ma.length-1?0:Xa.y*R);this.shape.bounds.height=Z.height-(Ga==Ma.length-1?0:(Xa.height+Xa.y)*R)}this.shape.redraw()}};var Sa=!1;wa.setPosition=function(Xa,kb,tb){Oa=Math.max(Graph.minTableColumnWidth-Ta.width,kb.x-Xa.x-Ta.width);Sa=mxEvent.isShiftDown(tb.getEvent());null==Ra||Sa||(Oa=Math.min(Oa,Ra.width-Graph.minTableColumnWidth))};wa.execute=function(Xa){if(0!=Oa)F.setTableColumnWidth(this.state.cell,Oa,Sa);else if(!B.blockDelayedSelection){var kb=F.getCellAt(Xa.getGraphX(),Xa.getGraphY())||Z.cell;F.graphHandler.selectCellForEvent(kb,Xa)}Oa=-0};wa.positionChanged=function(){};wa.reset=function(){Oa=0};q.push(wa)})(K)}}return null!=q?q.reverse():null};var ia=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(q){ia.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=q?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=+0};wa.positionChanged=function(){};wa.reset=function(){Oa=0};q.push(wa)})(L)}}return null!=q?q.reverse():null};var ia=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(q){ia.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=q?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=q?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var q=this.isMoveHandlesVisible();q&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():q||null==this.moveHandles||this.destroyMoveHandles();if(q&&null==this.moveHandles){for(q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].parentNode.removeChild(this.moveHandles[q]);-this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var q=this.graph,A=q.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(K){if(null!=K&&A.isVertex(K.cell)&&q.isCellMovable(K.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=K;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());-R.node.style.cursor="move";mxEvent.addGestureListeners(R.node,mxUtils.bind(this,function(Z){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(Z)&&this.graph.isCellSelected(K.cell)||this.graph.selectCellForEvent(K.cell,Z);mxEvent.isPopupTrigger(Z)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(Z),mxEvent.getClientY(Z),this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(Z),-this.graph.isMouseDown=!0);mxEvent.consume(Z)}),null,mxUtils.bind(this,function(Z){mxEvent.isPopupTrigger(Z)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(Z),mxEvent.getClientY(Z),K.cell,Z),mxEvent.consume(Z))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].destroy();+this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var q=this.graph,A=q.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(L){if(null!=L&&A.isVertex(L.cell)&&q.isCellMovable(L.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=L;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());+R.node.style.cursor="move";mxEvent.addGestureListeners(R.node,mxUtils.bind(this,function(Z){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(Z)&&this.graph.isCellSelected(L.cell)||this.graph.selectCellForEvent(L.cell,Z);mxEvent.isPopupTrigger(Z)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(Z),mxEvent.getClientY(Z),this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(Z),+this.graph.isMouseDown=!0);mxEvent.consume(Z)}),null,mxUtils.bind(this,function(Z){mxEvent.isPopupTrigger(Z)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(Z),mxEvent.getClientY(Z),L.cell,Z),mxEvent.consume(Z))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].destroy();this.moveHandles=null}};mxVertexHandler.prototype.destroyCornerHandles=function(){if(null!=this.cornerHandles){for(var q=0;q<this.cornerHandles.length;q++)null!=this.cornerHandles[q]&&null!=this.cornerHandles[q].node&&null!=this.cornerHandles[q].node.parentNode&&this.cornerHandles[q].node.parentNode.removeChild(this.cornerHandles[q].node);this.cornerHandles=null}};var ta=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ta.apply(this,arguments);this.destroyMoveHandles();this.destroyCornerHandles();if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=[];for(var q=0;4>q;q++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();q=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var aa=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var q=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||-this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var F=0;F<this.customHandles.length;F++)if(null!=this.customHandles[F]&&null!=this.customHandles[F].shape&&null!=this.customHandles[F].shape.bounds){var K=this.customHandles[F].shape.bounds,R=K.getCenterX(),Z=K.getCenterY();if(Math.abs(this.state.x-R)<K.width/2||Math.abs(this.state.y-Z)<K.height/2||Math.abs(this.state.x+this.state.width-R)<K.width/2||Math.abs(this.state.y+this.state.height-Z)<K.height/2){B=+this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var F=0;F<this.customHandles.length;F++)if(null!=this.customHandles[F]&&null!=this.customHandles[F].shape&&null!=this.customHandles[F].shape.bounds){var L=this.customHandles[F].shape.bounds,R=L.getCenterX(),Z=L.getCenterY();if(Math.abs(this.state.x-R)<L.width/2||Math.abs(this.state.y-Z)<L.height/2||Math.abs(this.state.x+this.state.width-R)<L.width/2||Math.abs(this.state.y+this.state.height-Z)<L.height/2){B=!0;break}}B&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(A/=2,this.graph.isTable(this.state.cell)&&(A+=7),q.x=this.sizers[0].bounds.width+A,q.y=this.sizers[0].bounds.height+A):q=aa.apply(this,arguments);return q};mxVertexHandler.prototype.updateHint=function(q){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"°";else{q=this.state.view.scale;var A=this.state.view.unit;this.hint.innerHTML=b(this.roundLength(this.bounds.width/q),A)+" x "+b(this.roundLength(this.bounds.height/q),A)}q=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==q&&(q=this.bounds);this.hint.style.left=q.x+Math.round((q.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=q.y+q.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var P=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){P.apply(this,arguments);var q=this.graph.getLinkForCell(this.state.cell),A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var ba=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(q,A){ba.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var ma=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(q,A){ma.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(q,A,B){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,-K=this.graph.view.scale,R=this.roundLength(A.x/K-F.x);F=this.roundLength(A.y/K-F.y);var Z=this.graph.view.unit;this.hint.innerHTML=b(R,Z)+", "+b(F,Z);this.hint.style.visibility="visible";null!=B&&(B.view.updateEdgeBounds(B),this.hint.innerHTML+=" ("+(Z==mxConstants.POINTS?Math.round(B.length/K):b(B.length/K,Z))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(B=this.constraintHandler.currentConstraint.point,+L=this.graph.view.scale,R=this.roundLength(A.x/L-F.x);F=this.roundLength(A.y/L-F.y);var Z=this.graph.view.unit;this.hint.innerHTML=b(R,Z)+", "+b(F,Z);this.hint.style.visibility="visible";null!=B&&(B.view.updateEdgeBounds(B),this.hint.innerHTML+=" ("+(Z==mxConstants.POINTS?Math.round(B.length/L):b(B.length/L,Z))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(B=this.constraintHandler.currentConstraint.point,this.hint.innerHTML="["+Math.round(100*B.x)+"%, "+Math.round(100*B.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(q.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(q.getGraphY(),A.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 4.5 2 L 4.5 7 M 2 4.5 L 7 4.5 z" stroke="#000"/>');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle=Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="5" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'<path d="m 8 3 L 13 8 L 8 13 L 3 8 z" stroke="#fff" fill="#fca000"/>');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');@@ -2968,9 +2969,9 @@ HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.protfunction(q){return!mxEvent.isShiftDown(q.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent=function(q){return!mxEvent.isShiftDown(q.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)mxShape.prototype.svgStrokeTolerance=18,mxVertexHandler.prototype.tolerance=12,mxEdgeHandler.prototype.tolerance=12,Graph.prototype.tolerance=12,mxVertexHandler.prototype.rotationHandleVSpacing=-16,mxConstraintHandler.prototype.getTolerance=function(q){return mxEvent.isMouseEvent(q.getEvent())?4:this.graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return null==q.getState()&&!mxEvent.isMouseEvent(A)||mxEvent.isPopupTrigger(A)&&(null==q.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))}}else mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return mxEvent.isLeftMouseButton(A)&&(this.useLeftButtonForPanning&&null==q.getState()||mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A))||this.usePopupTrigger&&mxEvent.isPopupTrigger(A)};mxRubberband.prototype.isSpaceEvent=function(q){return this.graph.isEnabled()&&!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(q.getEvent())||mxEvent.isMetaDown(q.getEvent()))&&mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(q,A){if(this.cancelled)this.cancelled=!1,A.consume();else{var B=-null!=this.div&&"none"!=this.div.style.display,F=null,K=null,R=q=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,K=this.first.y,q=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-K)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(q=this.graph.snap(q),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(q)<this.graph.tolerance&&(q=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();-try{var Z=this.graph.getCellsBeyond(F,K,this.graph.getDefaultParent(),!0,!0);for(B=0;B<Z.length;B++)if(this.graph.isCellMovable(Z[B])){var ja=this.graph.view.getState(Z[B]),fa=this.graph.getCellGeometry(Z[B]);null!=ja&&null!=fa&&(fa=fa.clone(),fa.translate(q,R),this.graph.model.setGeometry(Z[B],fa))}}finally{this.graph.model.endUpdate()}}else Z=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(Z,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(q,A){if(!A.isConsumed()&&-null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);q=mxUtils.getOffset(this.graph.container);B.x-=q.x;B.y-=q.y;q=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-q,K=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(K)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(q,B),this.isSpaceEvent(A)?(q=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/+null!=this.div&&"none"!=this.div.style.display,F=null,L=null,R=q=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,L=this.first.y,q=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-L)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(q=this.graph.snap(q),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(q)<this.graph.tolerance&&(q=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();+try{var Z=this.graph.getCellsBeyond(F,L,this.graph.getDefaultParent(),!0,!0);for(B=0;B<Z.length;B++)if(this.graph.isCellMovable(Z[B])){var ja=this.graph.view.getState(Z[B]),fa=this.graph.getCellGeometry(Z[B]);null!=ja&&null!=fa&&(fa=fa.clone(),fa.translate(q,R),this.graph.model.setGeometry(Z[B],fa))}}finally{this.graph.model.endUpdate()}}else Z=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(Z,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(q,A){if(!A.isConsumed()&&+null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);q=mxUtils.getOffset(this.graph.container);B.x-=q.x;B.y-=q.y;q=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-q,L=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(L)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(q,B),this.isSpaceEvent(A)?(q=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/F)*F,this.height=this.graph.snap(this.height/F)*F,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=q-this.width),this.y<this.first.y&&(this.y=B-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+"px",this.div.style.borderWidth=0>=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Ja=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Ja.apply(this,arguments)};var na=(new Date).getTime(),ya=0,za=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(q,@@ -2979,16 +2980,16 @@ A,B,F){za.apply(this,arguments);B!=this.currentTerminalState?(na=(new Date).getTnull!=q&&null!=F?B?this.endTerminalHandleImage:this.terminalHandleImage:B?this.endHandleImage:this.handleImage;if(null!=B)return B=new mxImageShape(new mxRectangle(0,0,B.width,B.height),B.src),B.preserveImageAspect=!1,B;B=mxConstants.HANDLE_SIZE;this.preferHtml&&--B;return new mxRectangleShape(new mxRectangle(0,0,B,B),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Qa=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(q,A,B,F){F=A==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Qa.apply(this,arguments)};var Ia=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(q){if(null!=q&&1==q.length){var A=this.graph.getModel(),B=A.getParent(q[0]),F=this.graph.getCellGeometry(q[0]);if(A.isEdge(B)&&null!=F&&F.relative&&(A=this.graph.view.getState(q[0]),null!=A&&2>A.width&&2>A.height&&null!=A.text&&null!=A.text.boundingBox))return mxRectangle.fromRectangle(A.text.boundingBox)}return Ia.apply(this,arguments)};var Ha=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var q=Ha.apply(this,arguments),A=[],B=0;B<q.length;B++)"1"!=mxUtils.getValue(q[B].style,"part","0")&&A.push(q[B]);return A};var ra=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(q){var A=this.graph.getModel(),B=A.getParent(q.cell),F=this.graph.getCellGeometry(q.cell);return A.isEdge(B)&&null!=F&&F.relative&&2>q.width&&2>q.height&&null!=-q.text&&null!=q.text.boundingBox?(A=q.text.unrotatedBoundingBox||q.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ra.apply(this,arguments)};var Da=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(q,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),K=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==K||!K.relative||null==this.state||+q.text&&null!=q.text.boundingBox?(A=q.text.unrotatedBoundingBox||q.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ra.apply(this,arguments)};var Da=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(q,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),L=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==L||!L.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Da.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var q=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),A=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&q==mxConstants.NONE&&A==mxConstants.NONE?(q=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,q,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Va=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(q,A){Va.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Wa=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(q,A){Wa.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(q,A){try{if(null==q&&(null==A||0==A.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);else if(null!=q||null!=A&&0<A.length){var B=document.createElement("img");B.className="geAdaptiveAsset";B.setAttribute("src",Editor.editImage);B.setAttribute("title",mxResources.get("editLink"));B.setAttribute("width","14");B.setAttribute("height","14");B.style.paddingLeft="8px";B.style.marginLeft="auto";B.style.marginBottom="-1px";B.style.cursor="pointer";var F=B.cloneNode(!0);F.setAttribute("src",Editor.trashImage);F.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));-F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=q){var K=document.createElement("div");-K.style.display="flex";K.style.alignItems="center";K.appendChild(this.graph.createLinkForHint(q,null,this.state.cell));this.linkHint.appendChild(K);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);K.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(ja){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(ja)}));var Z=F.cloneNode(!0);K.appendChild(Z);mxEvent.addListener(Z,-"click",mxUtils.bind(this,function(ja){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(ja)}))}}if(null!=A)for(K=0;K<A.length;K++)mxUtils.bind(this,function(ja,fa){var ka=document.createElement("div");ka.style.display="flex";ka.style.alignItems="center";ka.style.marginTop=null!=q||0<fa?"6px":"0px";ka.appendChild(this.graph.createLinkForHint(ja.getAttribute("href"),mxUtils.getTextContent(ja),this.state.cell));var va=B.cloneNode(!0);ka.appendChild(va);var Ma=mxUtils.bind(this,function(Na){var Aa=+F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=q){var L=document.createElement("div");+L.style.display="flex";L.style.alignItems="center";L.appendChild(this.graph.createLinkForHint(q,null,this.state.cell));this.linkHint.appendChild(L);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);L.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(ja){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(ja)}));var Z=F.cloneNode(!0);L.appendChild(Z);mxEvent.addListener(Z,+"click",mxUtils.bind(this,function(ja){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(ja)}))}}if(null!=A)for(L=0;L<A.length;L++)mxUtils.bind(this,function(ja,fa){var ka=document.createElement("div");ka.style.display="flex";ka.style.alignItems="center";ka.style.marginTop=null!=q||0<fa?"6px":"0px";ka.appendChild(this.graph.createLinkForHint(ja.getAttribute("href"),mxUtils.getTextContent(ja),this.state.cell));var va=B.cloneNode(!0);ka.appendChild(va);var Ma=mxUtils.bind(this,function(Na){var Aa=document.createElement("div");Aa.innerHTML=Graph.sanitizeHtml(this.graph.getLabel(this.state.cell));var Ga=Aa.getElementsByTagName("a")[fa];if(null!=Ga){if(null==Na||""==Na){for(Na=Ga.cloneNode(!0).firstChild;null!=Na;)Ga.parentNode.insertBefore(Na.cloneNode(!0),Ga),Na=Na.nextSibling;Ga.parentNode.removeChild(Ga)}else Ga.setAttribute("href",Na);this.graph.labelChanged(this.state.cell,Aa.innerHTML)}});mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){this.graph.showLinkDialog(ja.getAttribute("href")||-"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));va=F.cloneNode(!0);ka.appendChild(va);mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ka)})(A[K],K)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(ja){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var $a=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var q=$a.apply(this,+"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));va=F.cloneNode(!0);ka.appendChild(va);mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ka)})(A[L],L)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(ja){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var $a=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var q=$a.apply(this,arguments);q.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return q};var db=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){db.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var pb=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&(this.moveHandles[q].bounds.x=Math.round(this.moveHandles[q].rowState.x+this.moveHandles[q].rowState.width-this.moveHandles[q].bounds.width/2),this.moveHandles[q].bounds.y=Math.round(this.moveHandles[q].rowState.y+(this.moveHandles[q].rowState.height-this.moveHandles[q].bounds.height)/2),this.moveHandles[q].redraw());if(null!=this.cornerHandles){q=this.getSelectionBorderInset();var A=this.cornerHandles,B=A[0].bounds.height/2;A[0].bounds.x=this.state.x-A[0].bounds.width/2+q;A[0].bounds.y=this.state.y-B+q;A[0].redraw();A[1].bounds.x=A[0].bounds.x+this.state.width-2*q;A[1].bounds.y=A[0].bounds.y;A[1].redraw();A[2].bounds.x=A[0].bounds.x;A[2].bounds.y=this.state.y+this.state.height-2*q;A[2].redraw();A[3].bounds.x=A[1].bounds.x;A[3].bounds.y=A[2].bounds.y;A[3].redraw();for(q=0;q<this.cornerHandles.length;q++)this.cornerHandles[q].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.setAttribute("title",@@ -3027,49 +3028,49 @@ Format.processMenuIcon=function(a,b){var f=a.getElementsByTagName("img");0<f.lenFormat.prototype.init=function(){var a=this.editorUi,b=a.editor,f=b.graph;this.update=mxUtils.bind(this,function(e,g){this.refresh()});f.getSelectionModel().addListener(mxEvent.CHANGE,this.update);f.getModel().addListener(mxEvent.CHANGE,this.update);f.addListener(mxEvent.EDITING_STARTED,this.update);f.addListener(mxEvent.EDITING_STOPPED,this.update);f.getView().addListener("unitChanged",this.update);b.addListener("autosaveChanged",this.update);f.addListener(mxEvent.ROOT,this.update);a.addListener("styleChanged",this.update);a.addListener("lockedChanged",this.update);a.addListener("languageChanged",this.update);a.addListener("formatWidthChanged",this.update);this.refresh()};Format.prototype.clear=function(){this.container.innerText="";if(null!=this.panels)for(var a=0;a<this.panels.length;a++)this.panels[a].destroy();this.panels=[]};Format.prototype.refresh=function(){null!=this.pendingRefresh&&(window.clearTimeout(this.pendingRefresh),this.pendingRefresh=null);this.pendingRefresh=window.setTimeout(mxUtils.bind(this,function(){this.immediateRefresh()}))};-Format.prototype.immediateRefresh=function(){if(0!=this.container.offsetWidth){this.clear();var a=this.editorUi,b=a.editor.graph,f=document.createElement("div");f.className="geFormatContent";var e=document.createElement("div");e.className="geFormatTitle";this.container.appendChild(f);var g=a.getSelectionState(),d=g.containsLabel,h=null,m=null,p=mxUtils.bind(this,function(D,E,G,J){var M=mxUtils.bind(this,function(L,W){h!=D&&(W||(d?this.labelIndex=G:b.isSelectionEmpty()?this.diagramIndex=G:this.currentIndex=-G),null!=h&&h.classList.remove("geActiveFormatTitle"),h=D,h.classList.add("geActiveFormatTitle"),m!=E&&(null!=m&&(m.style.display="none"),m=E,m.style.display=""))});mxEvent.addListener(D,"click",M);var Q=d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex;(J&&null==h||G==Q)&&M(null,J&&null==h)}),k=0;if(b.isSelectionEmpty()){var v=document.createElement("div");mxUtils.write(v,mxResources.get("diagram"));e.appendChild(v);e.setAttribute("title",mxResources.get("diagram"));f.appendChild(e);-g=f.cloneNode(!1);this.panels.push(new DiagramFormatPanel(this,a,g));this.container.appendChild(g);g.style.display="none";var w=e.cloneNode(!1);p(e,g,k++);var y=f.cloneNode(!1);y.style.display="none";v=document.createElement("div");mxUtils.write(v,mxResources.get("style"));w.appendChild(v);w.setAttribute("title",mxResources.get("style"));f.appendChild(w);this.panels.push(new DiagramStylePanel(this,a,y));this.container.appendChild(y);p(w,y,k++,!0)}else if(b.isEditing())v=document.createElement("div"),-mxUtils.write(v,mxResources.get("text")),e.appendChild(v),e.setAttribute("title",mxResources.get("text")),f.appendChild(e),y=f.cloneNode(!1),y.style.display="none",this.panels.push(new TextFormatPanel(this,a,y)),this.container.appendChild(y),p(e,y,k++,!0);else{w=e.cloneNode(!1);var C=w.cloneNode(!1);0<g.cells.length&&(v=document.createElement("div"),mxUtils.write(v,mxResources.get("style")),e.appendChild(v),e.setAttribute("title",mxResources.get("style")),f.appendChild(e),y=f.cloneNode(!1),y.style.display=-"none",this.panels.push(new StyleFormatPanel(this,a,y)),this.container.appendChild(y),p(e,y,k++));v=document.createElement("div");mxUtils.write(v,mxResources.get("text"));w.appendChild(v);w.setAttribute("title",mxResources.get("text"));f.appendChild(w);y=f.cloneNode(!1);y.style.display="none";this.panels.push(new TextFormatPanel(this,a,y));this.container.appendChild(y);v=document.createElement("div");mxUtils.write(v,mxResources.get("arrange"));C.appendChild(v);C.setAttribute("title",mxResources.get("arrange"));+Format.prototype.immediateRefresh=function(){if(0!=this.container.offsetWidth){this.clear();var a=this.editorUi,b=a.editor.graph,f=document.createElement("div");f.className="geFormatContent";var e=document.createElement("div");e.className="geFormatTitle";this.container.appendChild(f);var g=a.getSelectionState(),d=g.containsLabel,h=null,m=null,p=mxUtils.bind(this,function(D,E,G,J){var M=mxUtils.bind(this,function(K,W){h!=D&&(W||(d?this.labelIndex=G:b.isSelectionEmpty()?this.diagramIndex=G:this.currentIndex=+G),null!=h&&h.classList.remove("geActiveFormatTitle"),h=D,h.classList.add("geActiveFormatTitle"),m!=E&&(null!=m&&(m.style.display="none"),m=E,m.style.display=""))});mxEvent.addListener(D,"click",M);var Q=d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex;(J&&null==h||G==Q)&&M(null,J&&null==h)}),k=0;if(b.isSelectionEmpty()){var u=document.createElement("div");mxUtils.write(u,mxResources.get("diagram"));e.appendChild(u);e.setAttribute("title",mxResources.get("diagram"));f.appendChild(e);+g=f.cloneNode(!1);this.panels.push(new DiagramFormatPanel(this,a,g));this.container.appendChild(g);g.style.display="none";var w=e.cloneNode(!1);p(e,g,k++);var y=f.cloneNode(!1);y.style.display="none";u=document.createElement("div");mxUtils.write(u,mxResources.get("style"));w.appendChild(u);w.setAttribute("title",mxResources.get("style"));f.appendChild(w);this.panels.push(new DiagramStylePanel(this,a,y));this.container.appendChild(y);p(w,y,k++,!0)}else if(b.isEditing())u=document.createElement("div"),+mxUtils.write(u,mxResources.get("text")),e.appendChild(u),e.setAttribute("title",mxResources.get("text")),f.appendChild(e),y=f.cloneNode(!1),y.style.display="none",this.panels.push(new TextFormatPanel(this,a,y)),this.container.appendChild(y),p(e,y,k++,!0);else{w=e.cloneNode(!1);var C=w.cloneNode(!1);0<g.cells.length&&(u=document.createElement("div"),mxUtils.write(u,mxResources.get("style")),e.appendChild(u),e.setAttribute("title",mxResources.get("style")),f.appendChild(e),y=f.cloneNode(!1),y.style.display=+"none",this.panels.push(new StyleFormatPanel(this,a,y)),this.container.appendChild(y),p(e,y,k++));u=document.createElement("div");mxUtils.write(u,mxResources.get("text"));w.appendChild(u);w.setAttribute("title",mxResources.get("text"));f.appendChild(w);y=f.cloneNode(!1);y.style.display="none";this.panels.push(new TextFormatPanel(this,a,y));this.container.appendChild(y);u=document.createElement("div");mxUtils.write(u,mxResources.get("arrange"));C.appendChild(u);C.setAttribute("title",mxResources.get("arrange"));f.appendChild(C);e=f.cloneNode(!1);e.style.display="none";this.panels.push(new ArrangePanel(this,a,e));this.container.appendChild(e);0<g.cells.length?p(w,y,k++):w.style.display="none";p(C,e,k++,!0)}f.className="geFormatTitleContainer"}};BaseFormatPanel=function(a,b,f){this.format=a;this.editorUi=b;this.container=f;this.listeners=[]};BaseFormatPanel.prototype.buttonBackgroundColor="transparent";-BaseFormatPanel.prototype.installInputHandler=function(a,b,f,e,g,d,h,m,p){d=null!=d?d:"";m=null!=m?m:!1;var k=this.editorUi,v=k.editor.graph;e=null!=e?e:1;g=null!=g?g:999;var w=null,y=!1,C=null,D=mxUtils.bind(this,function(E){var G=m?parseFloat(a.value):parseInt(a.value);p&&(G=this.fromUnit(G));if(G!=C){C=G;isNaN(G)||b!=mxConstants.STYLE_ROTATION||(G=mxUtils.mod(Math.round(100*G),36E3)/100);G=Math.min(g,Math.max(e,isNaN(G)?f:G));if(v.cellEditor.isContentEditing()&&h)y||(y=!0,null!=w&&(v.cellEditor.restoreSelection(w),-w=null),h(G),a.value=(p?this.inUnit(G):G)+d,y=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,f)){v.isEditing()&&v.stopEditing(!0);v.getModel().beginUpdate();try{var J=k.getSelectionState().cells;v.setCellStyles(b,G,J);b==mxConstants.STYLE_FONTSIZE&&v.updateLabelElements(J,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var M=0;M<J.length;M++)0==v.model.getChildCount(J[M])&&v.autoSizeCell(J[M],!1);k.fireEvent(new mxEventObject("styleChanged",-"keys",[b],"values",[G],"cells",J))}finally{v.getModel().endUpdate()}}a.value=(p?this.inUnit(G):G)+d}mxEvent.consume(E)});h&&v.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(E){document.activeElement==v.cellEditor.textarea&&(w=v.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",D);mxEvent.addListener(a,"blur",D);return D};BaseFormatPanel.prototype.createPanel=function(){var a=document.createElement("div");a.className="geFormatSection";return a};+BaseFormatPanel.prototype.installInputHandler=function(a,b,f,e,g,d,h,m,p){d=null!=d?d:"";m=null!=m?m:!1;var k=this.editorUi,u=k.editor.graph;e=null!=e?e:1;g=null!=g?g:999;var w=null,y=!1,C=null,D=mxUtils.bind(this,function(E){var G=m?parseFloat(a.value):parseInt(a.value);p&&(G=this.fromUnit(G));if(G!=C){C=G;isNaN(G)||b!=mxConstants.STYLE_ROTATION||(G=mxUtils.mod(Math.round(100*G),36E3)/100);G=Math.min(g,Math.max(e,isNaN(G)?f:G));if(u.cellEditor.isContentEditing()&&h)y||(y=!0,null!=w&&(u.cellEditor.restoreSelection(w),+w=null),h(G),a.value=(p?this.inUnit(G):G)+d,y=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,f)){u.isEditing()&&u.stopEditing(!0);u.getModel().beginUpdate();try{var J=k.getSelectionState().cells;u.setCellStyles(b,G,J);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(J,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var M=0;M<J.length;M++)0==u.model.getChildCount(J[M])&&u.autoSizeCell(J[M],!1);k.fireEvent(new mxEventObject("styleChanged",+"keys",[b],"values",[G],"cells",J))}finally{u.getModel().endUpdate()}}a.value=(p?this.inUnit(G):G)+d}mxEvent.consume(E)});h&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(E){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",D);mxEvent.addListener(a,"blur",D);return D};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";mxUtils.write(b,a);return b};BaseFormatPanel.prototype.addAction=function(a,b){var f=this.editorUi.actions.get(b);b=null;if(null!=f&&f.isEnabled()){b=mxUtils.button(f.getTitle(),mxUtils.bind(this,function(g){try{f.funct(g,g)}catch(d){this.editorUi.handleError(d)}}));var e=null!=f.shortcut?" ("+f.shortcut+")":"";b.setAttribute("title",f.getTitle()+e);b.style.marginBottom="2px";b.className="geFullWidthElement";a.appendChild(b)}return b};BaseFormatPanel.prototype.addActions=function(a,b){for(var f=null,e=null,g=0,d=0;d<b.length;d++){var h=this.addAction(a,b[d]);null!=h&&(g++,0==mxUtils.mod(g,2)&&(e.style.marginRight="4px",e.style.width="104px",h.style.width="104px",f.parentNode.removeChild(f)),f=mxUtils.br(a),e=h)}return g};BaseFormatPanel.prototype.createStepper=function(a,b,f,e,g,d,h){f=null!=f?f:1;var m=10*f;e=document.createElement("div");e.className="geBtnStepper";e.style.position="absolute";e.style.left="200px";var p=document.createElement("div");p.style.height="9px";p.style.backgroundImage="url("+Editor.arrowUpImage+")";p.style.width="10px";e.appendChild(p);var k=p.cloneNode(!1);k.style.backgroundImage="url("+Editor.arrowDownImage+")";e.appendChild(k);mxEvent.addGestureListeners(k,function(w){mxEvent.consume(w)},-null,function(w){""==a.value&&(a.value=d||"2");var y=h?parseFloat(a.value):parseInt(a.value);isNaN(y)||(a.value=y-(mxEvent.isShiftDown(w)?m:f),null!=b&&b(w));mxEvent.consume(w)});mxEvent.addGestureListeners(p,function(w){mxEvent.consume(w)},null,function(w){""==a.value&&(a.value=d||"0");var y=h?parseFloat(a.value):parseInt(a.value);isNaN(y)||(a.value=y+(mxEvent.isShiftDown(w)?m:f),null!=b&&b(w));mxEvent.consume(w)});if(g){var v=null;mxEvent.addGestureListeners(e,function(w){mxEvent.consume(w)},null,-function(w){if(null!=v){try{v.select()}catch(y){}v=null;mxEvent.consume(w)}})}else mxEvent.addListener(e,"click",function(w){mxEvent.consume(w)});return e};-BaseFormatPanel.prototype.createOption=function(a,b,f,e,g){var d=document.createElement("div");d.className="geFormatEntry";var h=document.createElement("input");h.setAttribute("type","checkbox");d.appendChild(h);var m=document.createElement("span");m.className="geStyleLabel";m.setAttribute("title",a);mxUtils.write(m,a);d.appendChild(m);var p=!1,k=b(),v=function(w,y){p||(p=!0,w?(h.setAttribute("checked","checked"),h.defaultChecked=!0,h.checked=!0):(h.removeAttribute("checked"),h.defaultChecked=!1,-h.checked=!1),k!=w&&(k=w,b()!=k&&f(k,y)),p=!1)};mxEvent.addListener(d,"click",function(w){if("disabled"!=h.getAttribute("disabled")){var y=mxEvent.getSource(w);if(y==d||y==m)h.checked=!h.checked;v(h.checked,w)}});v(k);null!=e&&(e.install(v),this.listeners.push(e));null!=g&&g(d);return d};-BaseFormatPanel.prototype.createCellOption=function(a,b,f,e,g,d,h,m,p){var k=this.editorUi,v=k.editor.graph;e=null!=e?"null"==e?null:e:1;g=null!=g?"null"==g?null:g:0;var w=null!=p?v.getCommonStyle(p):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(w,b,f)!=g},function(y){m&&v.stopEditing();if(null!=h)h.funct();else{v.getModel().beginUpdate();try{var C=null!=p?p:k.getSelectionState().cells;y=y?e:g;v.setCellStyles(b,y,C);null!=d&&d(C,y);k.fireEvent(new mxEventObject("styleChanged",-"keys",[b],"values",[y],"cells",C))}finally{v.getModel().endUpdate()}}},{install:function(y){this.listener=function(){y(mxUtils.getValue(w,b,f)!=g)};v.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){v.getModel().removeListener(this.listener)}})};-BaseFormatPanel.prototype.createColorOption=function(a,b,f,e,g,d,h,m,p,k){function v(T,N){"default"!=T||N||(T=m);"default"!=T&&p&&(T=mxUtils.getLightDarkColor(T),T=k()?T.dark:T.light);return T}var w=null!=k;k=null!=k?k:Editor.isDarkMode;var y=this.editorUi.editor.graph,C=document.createElement("div");C.className="geFormatEntry";var D=document.createElement("input");D.setAttribute("type","checkbox");h||C.appendChild(D);var E=document.createElement("span");mxUtils.write(E,a);C.appendChild(E);var G=-b(),J=!1,M=null,Q=null,L=document.createElement("input");L.setAttribute("type","color");L.style.position="relative";L.style.visibility="hidden";L.style.top="10px";L.style.width="0px";L.style.height="0px";L.style.border="none";mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_TOUCH||(M=document.createElement("img"),M.src=Editor.colorDropperImage,M.className="geColorDropper geAdaptiveAsset",mxEvent.addListener(M,"click",function(T){L.value=v(G);L.click();mxEvent.consume(T)}));var W=null,X=function(T,N){J||+null,function(w){""==a.value&&(a.value=d||"2");var y=h?parseFloat(a.value):parseInt(a.value);isNaN(y)||(a.value=y-(mxEvent.isShiftDown(w)?m:f),null!=b&&b(w));mxEvent.consume(w)});mxEvent.addGestureListeners(p,function(w){mxEvent.consume(w)},null,function(w){""==a.value&&(a.value=d||"0");var y=h?parseFloat(a.value):parseInt(a.value);isNaN(y)||(a.value=y+(mxEvent.isShiftDown(w)?m:f),null!=b&&b(w));mxEvent.consume(w)});if(g){var u=null;mxEvent.addGestureListeners(e,function(w){mxEvent.consume(w)},null,+function(w){if(null!=u){try{u.select()}catch(y){}u=null;mxEvent.consume(w)}})}else mxEvent.addListener(e,"click",function(w){mxEvent.consume(w)});return e};+BaseFormatPanel.prototype.createOption=function(a,b,f,e,g){var d=document.createElement("div");d.className="geFormatEntry";var h=document.createElement("input");h.setAttribute("type","checkbox");d.appendChild(h);var m=document.createElement("span");m.className="geStyleLabel";m.setAttribute("title",a);mxUtils.write(m,a);d.appendChild(m);var p=!1,k=b(),u=function(w,y){p||(p=!0,w?(h.setAttribute("checked","checked"),h.defaultChecked=!0,h.checked=!0):(h.removeAttribute("checked"),h.defaultChecked=!1,+h.checked=!1),k!=w&&(k=w,b()!=k&&f(k,y)),p=!1)};mxEvent.addListener(d,"click",function(w){if("disabled"!=h.getAttribute("disabled")){var y=mxEvent.getSource(w);if(y==d||y==m)h.checked=!h.checked;u(h.checked,w)}});u(k);null!=e&&(e.install(u),this.listeners.push(e));null!=g&&g(d);return d};+BaseFormatPanel.prototype.createCellOption=function(a,b,f,e,g,d,h,m,p){var k=this.editorUi,u=k.editor.graph;e=null!=e?"null"==e?null:e:1;g=null!=g?"null"==g?null:g:0;var w=null!=p?u.getCommonStyle(p):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(w,b,f)!=g},function(y){m&&u.stopEditing();if(null!=h)h.funct();else{u.getModel().beginUpdate();try{var C=null!=p?p:k.getSelectionState().cells;y=y?e:g;u.setCellStyles(b,y,C);null!=d&&d(C,y);k.fireEvent(new mxEventObject("styleChanged",+"keys",[b],"values",[y],"cells",C))}finally{u.getModel().endUpdate()}}},{install:function(y){this.listener=function(){y(mxUtils.getValue(w,b,f)!=g)};u.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){u.getModel().removeListener(this.listener)}})};+BaseFormatPanel.prototype.createColorOption=function(a,b,f,e,g,d,h,m,p,k){function u(T,N){"default"!=T||N||(T=m);"default"!=T&&p&&(T=mxUtils.getLightDarkColor(T),T=k()?T.dark:T.light);return T}var w=null!=k;k=null!=k?k:Editor.isDarkMode;var y=this.editorUi.editor.graph,C=document.createElement("div");C.className="geFormatEntry";var D=document.createElement("input");D.setAttribute("type","checkbox");h||C.appendChild(D);var E=document.createElement("span");mxUtils.write(E,a);C.appendChild(E);var G=+b(),J=!1,M=null,Q=null,K=document.createElement("input");K.setAttribute("type","color");K.style.position="relative";K.style.visibility="hidden";K.style.top="10px";K.style.width="0px";K.style.height="0px";K.style.border="none";mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_TOUCH||(M=document.createElement("img"),M.src=Editor.colorDropperImage,M.className="geColorDropper geAdaptiveAsset",mxEvent.addListener(M,"click",function(T){K.value=u(G);K.click();mxEvent.consume(T)}));var W=null,X=function(T,N){J||(J=!0,null!=d&&d(T),N||(null!=W&&(y.cellEditor.restoreSelection(W),W=null),f(T)),G=b(),T=mxUtils.getLightDarkColor("default"!=G?G:m),N=document.createElement("div"),N.style.width="21px",N.style.height="12px",N.style.margin="2px 18px 2px 3px",N.style.borderWidth="1px",N.style.borderStyle="solid",N.style.backgroundColor=T.cssText,Q.innerText="",Q.appendChild(N),!p&&mxUtils.isLightDarkColor(G)&&T.light!=T.dark?N.style.background="linear-gradient(to right bottom, "+T.cssText+" 50%, "+mxUtils.invertLightDarkColor(T).cssText+" 50.3%)":p&&w&&(N.style.backgroundColor=k()?T.dark:T.light),null!=M?(N.style.width="21px",N.style.margin="2px 18px 2px 3px",N.appendChild(M)):(N.style.width="36px",N.style.margin="3px"),null!=G&&G!=mxConstants.NONE&&1<G.length&&"string"===typeof G&&(T="#"==G.charAt(0)?G.substring(1).toUpperCase():G,T=ColorDialog.prototype.colorNames[T],null!=T?Q.setAttribute("title",T):"default"==G?Q.setAttribute("title",mxResources.get("useBlackAndWhite")):Q.setAttribute("title",G)),y.isSpecialColor(G)?D.style.display=-"none":(D.style.display="",null!=G&&G!=mxConstants.NONE?(D.setAttribute("checked","checked"),D.defaultChecked=!0,D.checked=!0):(D.removeAttribute("checked"),D.defaultChecked=!1,D.checked=!1)),Q.style.display=D.checked||h?"":"none",J=!1)};C.appendChild(L);mxEvent.addListener(L,"change",function(){var T=L.value;if(!p){var N=mxUtils.getLightDarkColor(G);k()?N.dark=T:N.light=T;T="light-dark("+N.light+", "+N.dark+")"}X(T)});Q=mxUtils.button("",mxUtils.bind(this,function(T){var N=m;p&&k()&&mxUtils.isLightDarkColor(N)&&-(N=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(v(G,!0),function(ca){X(ca)},"default"==e?"default":null,N,p);mxEvent.consume(T)}));Q.className="geColorBtn";Q.style.display=D.checked||h?"":"none";C.appendChild(Q);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&Q.setAttribute("title",a);h||(mxEvent.addListener(C,"click",function(T){T=mxEvent.getSource(T);if(T==D||"INPUT"!=T.nodeName)T!=D&&(D.checked=!D.checked),-D.checked||null==G||G==mxConstants.NONE||e==mxConstants.NONE||(e=v(G)),X(D.checked?e:mxConstants.NONE)}),mxEvent.addGestureListeners(D,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(W=y.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(W=y.cellEditor.saveSelection())})));X(G,!0);null!=g&&g.install(function(){X(G,!0)},this.listeners.push(g));return C};-BaseFormatPanel.prototype.createCellColorOption=function(a,b,f,e,g,d){var h=this.editorUi,m=h.editor.graph;return this.createColorOption(a,function(){var p=m.getCellStyle(m.getSelectionCell(),!1);return null!=p?p[b]:null},function(p){m.getModel().beginUpdate();try{var k=h.getSelectionState().cells;m.setCellStyles(b,p,k);null!=g&&g(p);h.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[p],"cells",k))}finally{m.getModel().endUpdate()}},f||mxConstants.NONE,{install:function(p){this.listener=-function(){var k=m.getCellStyle(m.getSelectionCell(),!1);null!=k&&p(k[b],!0)};m.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){m.getModel().removeListener(this.listener)}},e,null,d)};BaseFormatPanel.prototype.addArrow=function(a){var b=document.createElement("div");b.className="geAdaptiveAsset geArrow";b.style.backgroundImage="url("+Editor.thinExpandImage+")";a.className="geStyleBtn";a.appendChild(b);return b};+"none":(D.style.display="",null!=G&&G!=mxConstants.NONE?(D.setAttribute("checked","checked"),D.defaultChecked=!0,D.checked=!0):(D.removeAttribute("checked"),D.defaultChecked=!1,D.checked=!1)),Q.style.display=D.checked||h?"":"none",J=!1)};C.appendChild(K);mxEvent.addListener(K,"change",function(){var T=K.value;if(!p){var N=mxUtils.getLightDarkColor(G);k()?N.dark=T:N.light=T;T="light-dark("+N.light+", "+N.dark+")"}X(T)});Q=mxUtils.button("",mxUtils.bind(this,function(T){var N=m;p&&k()&&mxUtils.isLightDarkColor(N)&&+(N=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(ca){X(ca)},"default"==e?"default":null,N,p);mxEvent.consume(T)}));Q.className="geColorBtn";Q.style.display=D.checked||h?"":"none";C.appendChild(Q);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&Q.setAttribute("title",a);h||(mxEvent.addListener(C,"click",function(T){T=mxEvent.getSource(T);if(T==D||"INPUT"!=T.nodeName)T!=D&&(D.checked=!D.checked),+D.checked||null==G||G==mxConstants.NONE||e==mxConstants.NONE||(e=u(G)),X(D.checked?e:mxConstants.NONE)}),mxEvent.addGestureListeners(D,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(W=y.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(W=y.cellEditor.saveSelection())})));X(G,!0);null!=g&&g.install(function(){X(G,!0)},this.listeners.push(g));return C};+BaseFormatPanel.prototype.createCellColorOption=function(a,b,f,e,g,d,h){var m=this.editorUi,p=m.editor.graph;return this.createColorOption(a,function(){var k=p.getCellStyle(p.getSelectionCell(),!1);return null!=k?null!=k[b]?k[b]:h:null},function(k){p.getModel().beginUpdate();try{var u=m.getSelectionState().cells;p.setCellStyles(b,k,u);null!=g&&g(k);m.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[k],"cells",u))}finally{p.getModel().endUpdate()}},f||mxConstants.NONE,{install:function(k){this.listener=+function(){var u=p.getCellStyle(p.getSelectionCell(),!1);null!=u&&k(null!=u[b]?u[b]:h,!0)};p.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){p.getModel().removeListener(this.listener)}},e,null,d)};BaseFormatPanel.prototype.addArrow=function(a){var b=document.createElement("div");b.className="geAdaptiveAsset geArrow";b.style.backgroundImage="url("+Editor.thinExpandImage+")";a.className="geStyleBtn";a.appendChild(b);return b};BaseFormatPanel.prototype.addUnitInput=function(a,b,f,e,g,d,h,m,p){b=document.createElement("input");b.style.position="absolute";b.style.left=216-f-e+"px";b.style.width=e+"px";a.appendChild(b);e=this.createStepper(b,g,d,m,null,p);e.style.left=216-f+"px";a.appendChild(e);return b};-BaseFormatPanel.prototype.addGenericInput=function(a,b,f,e,g,d){var h=this.editorUi.editor.graph,m=function(){d(p.value)},p=this.addUnitInput(a,b,f,e,m),k=mxUtils.bind(this,function(v,w,y){if(y||p!=document.activeElement)p.value=g()+b});mxEvent.addListener(p,"keydown",function(v){13==v.keyCode?(h.container.focus(),mxEvent.consume(v)):27==v.keyCode&&(k(null,null,!0),h.container.focus(),mxEvent.consume(v))});h.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){h.getModel().removeListener(k)}});+BaseFormatPanel.prototype.addGenericInput=function(a,b,f,e,g,d){var h=this.editorUi.editor.graph,m=function(){d(p.value)},p=this.addUnitInput(a,b,f,e,m),k=mxUtils.bind(this,function(u,w,y){if(y||p!=document.activeElement)p.value=g()+b});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(h.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),h.container.focus(),mxEvent.consume(u))});h.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){h.getModel().removeListener(k)}});k();mxEvent.addListener(p,"blur",m);mxEvent.addListener(p,"change",m);return p};-BaseFormatPanel.prototype.createRelativeOption=function(a,b,f,e,g){f=null!=f?f:52;var d=this.editorUi,h=d.editor.graph,m=this.createPanel();m.className="geFormatEntry";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(v){if(null!=e)e(p);else{var w=parseInt(p.value);w=Math.min(100,Math.max(0,isNaN(w)?100:w));var y=h.view.getState(d.getSelectionState().cells[0]);null!=y&&w!=mxUtils.getValue(y.style,b,100)&&(100==w&&(w=null),y=d.getSelectionState().cells,h.setCellStyles(b,w,y),-this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[w],"cells",y)));p.value=(null!=w?w:"100")+" %"}mxEvent.consume(v)});var p=this.addUnitInput(m,"%",16,f,a,10,0,null!=e);if(null!=b){var k=mxUtils.bind(this,function(v,w,y){if(y||p!=document.activeElement)v=d.getSelectionState(),v=parseInt(mxUtils.getValue(v.style,b,100)),p.value=isNaN(v)?"":v+" %"});mxEvent.addListener(p,"keydown",function(v){13==v.keyCode?(h.container.focus(),mxEvent.consume(v)):27==v.keyCode&&(k(null,null,-!0),h.container.focus(),mxEvent.consume(v))});h.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){h.getModel().removeListener(k)}});k()}mxEvent.addListener(p,"blur",a);mxEvent.addListener(p,"change",a);null!=g&&g(p);return m};+BaseFormatPanel.prototype.createRelativeOption=function(a,b,f,e,g){f=null!=f?f:52;var d=this.editorUi,h=d.editor.graph,m=this.createPanel();m.className="geFormatEntry";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(u){if(null!=e)e(p);else{var w=parseInt(p.value);w=Math.min(100,Math.max(0,isNaN(w)?100:w));var y=h.view.getState(d.getSelectionState().cells[0]);null!=y&&w!=mxUtils.getValue(y.style,b,100)&&(100==w&&(w=null),y=d.getSelectionState().cells,h.setCellStyles(b,w,y),+this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[w],"cells",y)));p.value=(null!=w?w:"100")+" %"}mxEvent.consume(u)});var p=this.addUnitInput(m,"%",16,f,a,10,0,null!=e);if(null!=b){var k=mxUtils.bind(this,function(u,w,y){if(y||p!=document.activeElement)u=d.getSelectionState(),u=parseInt(mxUtils.getValue(u.style,b,100)),p.value=isNaN(u)?"":u+" %"});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(h.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,+!0),h.container.focus(),mxEvent.consume(u))});h.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){h.getModel().removeListener(k)}});k()}mxEvent.addListener(p,"blur",a);mxEvent.addListener(p,"change",a);null!=g&&g(p);return m};BaseFormatPanel.prototype.addLabel=function(a,b,f,e){e=null!=e?e:61;var g=document.createElement("div");mxUtils.write(g,b);g.style.position="absolute";g.style.left=226-f-e+"px";g.style.width=e+"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(f){13==f.keyCode?(this.editorUi.editor.graph.container.focus(),mxEvent.consume(f)):27==f.keyCode&&(null!=b&&b(null,null,!0),this.editorUi.editor.graph.container.focus(),mxEvent.consume(f))}))};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,f){BaseFormatPanel.call(this,a,b,f);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,f=b.editor.graph,e=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=e.vertices[0];1<f.getSelectionCount()&&(f.isTableCell(d)&&(d=f.model.getParent(d)),f.isTableRow(d)&&(d=f.model.getParent(d)));var h=e.table||e.row||e.cell,m=f.isStack(d)||-f.isStackChild(d),p=h;m&&(h="0"==(f.isStack(d)?e.style:f.getCellStyle(f.model.getParent(d))).horizontalStack,p=!h);var k=[];p&&(k=k.concat([b.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!0):f.insertTableColumn(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!1):f.insertTableColumn(d,!1)}catch(v){b.handleError(v)}}),-g),b.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{m?f.deleteLane(d):f.deleteTableColumn(d)}catch(v){b.handleError(v)}}),g)]));h&&(k=k.concat([b.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!0):f.insertTableRow(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!1):-f.insertTableRow(d,!1)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{m?f.deleteLane(d):f.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!=e.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<e.style.colspan||1<e.style.rowspan)p+=this.addActions(a,["unmergeCells"]);0<p&&(g.style.paddingBottom="2px")}else a.style.display=+f.isStackChild(d),p=h;m&&(h="0"==(f.isStack(d)?e.style:f.getCellStyle(f.model.getParent(d))).horizontalStack,p=!h);var k=[];p&&(k=k.concat([b.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!0):f.insertTableColumn(d,!0)}catch(u){b.handleError(u)}}),g),b.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!1):f.insertTableColumn(d,!1)}catch(u){b.handleError(u)}}),+g),b.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{m?f.deleteLane(d):f.deleteTableColumn(d)}catch(u){b.handleError(u)}}),g)]));h&&(k=k.concat([b.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!0):f.insertTableRow(d,!0)}catch(u){b.handleError(u)}}),g),b.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!1):+f.insertTableRow(d,!1)}catch(u){b.handleError(u)}}),g),b.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{m?f.deleteLane(d):f.deleteTableRow(d)}catch(u){b.handleError(u)}}),g)]));if(0<k.length){a.appendChild(g);3<k.length&&(k[2].style.marginRight="10px");p=0;if(null!=e.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<e.style.colspan||1<e.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,f=b.editor.graph;b=b.getSelectionState();var e=this.addActions(a,["group","ungroup"])+this.addActions(a,["removeFromGroup"]);b.cell||b.row||(e+=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 m=this.editorUi.actions.get(d[h].action);if(null==m||m.enabled){var p=document.createElement("option");p.setAttribute("value",d[h].action);p.setAttribute("title",d[h].label+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""));mxUtils.write(p,d[h].label);g.appendChild(p)}}1<g.children.length&&(g.value="reset",a.appendChild(g),mxUtils.br(a),e++,mxEvent.addListener(g,"change",mxUtils.bind(this,function(k){k=this.editorUi.actions.get(g.value);@@ -3083,44 +3084,44 @@ ArrangePanel.prototype.addDistribute=function(a){var b=this.editorUi.editor.grapf.style.width="104px";a.appendChild(f);mxUtils.br(a);f=document.createElement("div");f.style.margin="6px 0 0 0";f.style.display="flex";f.style.justifyContent="center";f.style.alignItems="center";var e=document.createElement("input");e.setAttribute("type","checkbox");e.setAttribute("id","spacingCheckbox");e.style.margin="0 6px 0 0";f.appendChild(e);var g=document.createElement("label");g.style.verticalAlign="top";g.setAttribute("for","spacingCheckbox");g.style.userSelect="none";mxUtils.write(g,mxResources.get("spacing"));f.appendChild(g);a.appendChild(f);return a};ArrangePanel.prototype.addAngle=function(a){var b=this.editorUi,f=b.editor.graph,e=b.getSelectionState(),g=document.createElement("div");g.style.position="absolute";g.style.marginTop="4px";g.style.width="70px";g.style.fontWeight="bold";a.style.minHeight="20px";var d=null,h=null,m=null;!e.rotatable||e.table||e.row||e.cell||(mxUtils.write(g,mxResources.get("angle")),a.appendChild(g),d=this.addUnitInput(a,"°",16,52,function(){h.apply(this,arguments)}),mxUtils.br(a));e.containsLabel||(g=mxResources.get("reverse"),-0<e.vertices.length&&0<e.edges.length?g=mxResources.get("turn")+" / "+g:0<e.vertices.length&&(g=mxResources.get("turn")),m=mxUtils.button(g,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",g+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.className="geFullWidthElement",a.appendChild(m),null!=d&&(m.style.marginTop="10px"));if(null!=d){var p=mxUtils.bind(this,function(k,v,w){if(w||document.activeElement!=d)e=b.getSelectionState(),k=parseFloat(mxUtils.getValue(e.style,mxConstants.STYLE_ROTATION,+0<e.vertices.length&&0<e.edges.length?g=mxResources.get("turn")+" / "+g:0<e.vertices.length&&(g=mxResources.get("turn")),m=mxUtils.button(g,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",g+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.className="geFullWidthElement",a.appendChild(m),null!=d&&(m.style.marginTop="10px"));if(null!=d){var p=mxUtils.bind(this,function(k,u,w){if(w||document.activeElement!=d)e=b.getSelectionState(),k=parseFloat(mxUtils.getValue(e.style,mxConstants.STYLE_ROTATION,0)),d.value=isNaN(k)?"":k+"°"});h=this.installInputHandler(d,mxConstants.STYLE_ROTATION,0,0,360,"°",null,!0);this.addKeyHandler(d,p);f.getModel().addListener(mxEvent.CHANGE,p);this.listeners.push({destroy:function(){f.getModel().removeListener(p)}});p()}return a};BaseFormatPanel.prototype.getUnit=function(a){var b="";switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:b="pt";break;case mxConstants.INCHES:b='"';break;case mxConstants.MILLIMETERS:b="mm";break;case mxConstants.METERS:b="m"}return(a?a:"")+b};BaseFormatPanel.prototype.inUnit=function(a){return this.editorUi.editor.graph.view.formatUnitText(a)};BaseFormatPanel.prototype.fromUnit=function(a){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return a;case mxConstants.INCHES:return a*mxConstants.PIXELS_PER_INCH;case mxConstants.MILLIMETERS:return a*mxConstants.PIXELS_PER_MM;case mxConstants.METERS:return a*mxConstants.PIXELS_PER_MM*1E3}};BaseFormatPanel.prototype.isFloatUnit=function(){return this.editorUi.editor.graph.view.unit!=mxConstants.POINTS};BaseFormatPanel.prototype.getUnitStep=function(){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return 1;case mxConstants.INCHES:return.1;case mxConstants.MILLIMETERS:return.5;case mxConstants.METERS:return.001}};ArrangePanel.prototype.addGeometry=function(a){var b=this,f=this.editorUi,e=f.editor.graph,g=e.getModel(),d=f.getSelectionState(),h=this.createPanel();h.style.height="60px";var m=document.createElement("div");m.className="geStyleLabel";m.style.position="absolute";m.style.fontWeight="bold";m.style.marginTop="4px";m.style.maxWidth="50px";mxUtils.write(m,mxResources.get("size"));h.appendChild(m);var p=this.addUnitInput(h,this.getUnit(),87,52,function(){C.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),k=this.addUnitInput(h,this.getUnit(),16,52,function(){D.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());m=document.createElement("div");m.style.backgroundImage="url("+Editor.autosizeImage+")";m.className="geButton";m.style.margin="0";m.style.width="21px";m.style.height="21px";m.style.left="52px";mxUtils.setOpacity(m,50);mxEvent.addListener(m,"click",function(){f.actions.get("autosize").funct()});h.appendChild(m);d.row?(p.style.visibility="hidden",p.nextSibling.style.visibility=-"hidden"):this.addLabel(h,mxResources.get("width"),87,64).style.marginTop="0px";this.addLabel(h,mxResources.get("height"),16,64).style.marginTop="0px";mxUtils.br(h);var v=document.createElement("div");v.className="geFormatEntry";v.style.marginTop="14px";var w=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");w.className="geFullWidthElement";v.appendChild(w);d.cell||d.row?m.style.visibility="hidden":h.appendChild(v);var y=w.getElementsByTagName("input")[0];+"hidden"):this.addLabel(h,mxResources.get("width"),87,64).style.marginTop="0px";this.addLabel(h,mxResources.get("height"),16,64).style.marginTop="0px";mxUtils.br(h);var u=document.createElement("div");u.className="geFormatEntry";u.style.marginTop="14px";var w=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");w.className="geFullWidthElement";u.appendChild(w);d.cell||d.row?m.style.visibility="hidden":h.appendChild(u);var y=w.getElementsByTagName("input")[0];this.addKeyHandler(p,X);this.addKeyHandler(k,X);var C=this.addGeometryHandler(p,function(H,S,ea){S=Math.max(1,b.fromUnit(S));if(e.isTableCell(ea))return e.setTableColumnWidth(ea,S-H.width,!0),!0;0<H.width&&(y.checked&&(H.height=Math.round(H.height*S*100/H.width)/100),H.width=S)});var D=this.addGeometryHandler(k,function(H,S,ea){S=Math.max(1,b.fromUnit(S));e.isTableCell(ea)&&(ea=g.getParent(ea));if(e.isTableRow(ea))return e.setTableRowHeight(ea,S-H.height),!0;0<H.height&&(y.checked&&(H.width=Math.round(H.width*S*100/H.height)/100),H.height=S)});(d.resizable||d.row||d.cell)&&a.appendChild(h);var E=this.createPanel();E.style.paddingBottom="30px";m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("position"));E.appendChild(m);var G=this.addUnitInput(E,this.getUnit(),87,52,function(){T.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),J=this.addUnitInput(E,this.getUnit(),16,-52,function(){N.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(E);v=!0;var M=null,Q=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var L=e.getCellGeometry(d.vertices[0]);if(null!=L&&L.relative){mxUtils.br(E);m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";mxUtils.write(m,mxResources.get("relative"));E.appendChild(m);M=this.addGenericInput(E," %",87,52,function(){return Math.round(1E3*L.x)/-10},function(H){H=parseFloat(H);if(!isNaN(H)){g.beginUpdate();try{L=L.clone(),L.x=parseFloat(H)/100,g.setGeometry(d.vertices[0],L)}finally{g.endUpdate()}}});if(g.isEdge(g.getParent(d.vertices[0]))){v=!1;var W=null;Q=this.addUnitInput(E,this.getUnit(),16,52,function(){W.apply(this,arguments)});W=this.addGeometryHandler(Q,function(H,S){H.y=b.fromUnit(S)})}else Q=this.addGenericInput(E," %",16,52,function(){return Math.round(1E3*L.y)/10},function(H){H=parseFloat(H);if(!isNaN(H)){g.beginUpdate();try{L=-L.clone(),L.y=parseFloat(H)/100,g.setGeometry(d.vertices[0],L)}finally{g.endUpdate()}}});mxUtils.br(E)}}a.appendChild(E)}this.addLabel(E,mxResources.get(v?"left":"line"),87,64);this.addLabel(E,mxResources.get(v?"top":"orthogonal"),16,64);var X=mxUtils.bind(this,function(H,S,ea){d=f.getSelectionState();if(d.containsLabel||d.vertices.length!=e.getSelectionCount()||null==d.width||null==d.height)h.style.display="none";else{h.style.display="";if(ea||document.activeElement!=p)p.value=this.inUnit(d.width)++52,function(){N.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(E);u=!0;var M=null,Q=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var K=e.getCellGeometry(d.vertices[0]);if(null!=K&&K.relative){mxUtils.br(E);m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";mxUtils.write(m,mxResources.get("relative"));E.appendChild(m);M=this.addGenericInput(E," %",87,52,function(){return Math.round(1E3*K.x)/+10},function(H){H=parseFloat(H);if(!isNaN(H)){g.beginUpdate();try{K=K.clone(),K.x=parseFloat(H)/100,g.setGeometry(d.vertices[0],K)}finally{g.endUpdate()}}});if(g.isEdge(g.getParent(d.vertices[0]))){u=!1;var W=null;Q=this.addUnitInput(E,this.getUnit(),16,52,function(){W.apply(this,arguments)});W=this.addGeometryHandler(Q,function(H,S){H.y=b.fromUnit(S)})}else Q=this.addGenericInput(E," %",16,52,function(){return Math.round(1E3*K.y)/10},function(H){H=parseFloat(H);if(!isNaN(H)){g.beginUpdate();try{K=+K.clone(),K.y=parseFloat(H)/100,g.setGeometry(d.vertices[0],K)}finally{g.endUpdate()}}});mxUtils.br(E)}}a.appendChild(E)}this.addLabel(E,mxResources.get(u?"left":"line"),87,64);this.addLabel(E,mxResources.get(u?"top":"orthogonal"),16,64);var X=mxUtils.bind(this,function(H,S,ea){d=f.getSelectionState();if(d.containsLabel||d.vertices.length!=e.getSelectionCount()||null==d.width||null==d.height)h.style.display="none";else{h.style.display="";if(ea||document.activeElement!=p)p.value=this.inUnit(d.width)+" "+this.getUnit();if(ea||document.activeElement!=k)k.value=this.inUnit(d.height)+" "+this.getUnit()}if(d.vertices.length==e.getSelectionCount()&&0<d.vertices.length&&null!=d.x&&null!=d.y){H=e.getCellGeometry(d.vertices[0]);E.style.display="";if(ea||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(ea||document.activeElement!=J)J.value=this.inUnit(d.y)+" "+this.getUnit();null!=H&&H.relative&&(null==M||!ea&&document.activeElement==M||(M.value=Math.round(1E3*H.x)/10+" %"),null==Q||!ea&&document.activeElement==Q||(g.isEdge(g.getParent(d.vertices[0]))?Q.value=this.inUnit(H.y)+" "+this.getUnit():Q.value=Math.round(1E3*H.y)/10+" %"))}else E.style.display="none"});this.listeners.push({destroy:function(){g.removeListener(X)}});g.addListener(mxEvent.CHANGE,X);this.addKeyHandler(G,X);this.addKeyHandler(J,X);X();var T=this.addGeometryHandler(G,function(H,S){S=b.fromUnit(S);H.relative?(H.offset=null!=H.offset?H.offset:new mxPoint,H.offset.x=S):H.x=S});var N=this.addGeometryHandler(J,-function(H,S){S=b.fromUnit(S);H.relative?(H.offset=null!=H.offset?H.offset:new mxPoint,H.offset.y=S):H.y=S});if(d.movable){if(0==d.edges.length&&1==d.vertices.length&&g.isEdge(g.getParent(d.vertices[0]))&&(L=e.getCellGeometry(d.vertices[0]),null!=L&&L.relative)){var ca=document.createElement("select");ca.style.position="absolute";ca.style.width="134px";ca.style.left="77px";m=document.createElement("option");m.setAttribute("value","none");m.setAttribute("title",mxResources.get("move"));mxUtils.write(m,+function(H,S){S=b.fromUnit(S);H.relative?(H.offset=null!=H.offset?H.offset:new mxPoint,H.offset.y=S):H.y=S});if(d.movable){if(0==d.edges.length&&1==d.vertices.length&&g.isEdge(g.getParent(d.vertices[0]))&&(K=e.getCellGeometry(d.vertices[0]),null!=K&&K.relative)){var ca=document.createElement("select");ca.style.position="absolute";ca.style.width="134px";ca.style.left="77px";m=document.createElement("option");m.setAttribute("value","none");m.setAttribute("title",mxResources.get("move"));mxUtils.write(m,mxResources.get("move")+"...");ca.appendChild(m);m=document.createElement("option");m.setAttribute("value","start");m.setAttribute("title",mxResources.get("linestart"));mxUtils.write(m,mxResources.get("linestart"));ca.appendChild(m);m=document.createElement("option");m.setAttribute("value","center");m.setAttribute("title",mxResources.get("center"));mxUtils.write(m,mxResources.get("center"));ca.appendChild(m);m=document.createElement("option");m.setAttribute("value","end");m.setAttribute("title",mxResources.get("lineend"));-mxUtils.write(m,mxResources.get("lineend"));ca.appendChild(m);mxEvent.addListener(ca,"change",function(H){if("none"!=ca.value){g.beginUpdate();try{L=L.clone(),L.x="start"==ca.value?-1:"end"==ca.value?1:0,L.y=0,L.offset=new mxPoint,g.setGeometry(d.vertices[0],L)}finally{g.endUpdate()}}ca.value="none"});mxUtils.br(E);mxUtils.br(E);E.appendChild(ca)}a.appendChild(E)}};-ArrangePanel.prototype.addGeometryHandler=function(a,b){function f(m){if(""!=a.value){var p=parseFloat(a.value);if(isNaN(p))a.value=d+" "+h.getUnit();else if(p!=d){g.getModel().beginUpdate();try{for(var k=e.getSelectionState().cells,v=0;v<k.length;v++)if(g.getModel().isVertex(k[v])){var w=g.getCellGeometry(k[v]);if(null!=w&&(w=w.clone(),!b(w,p,k[v]))){var y=g.view.getState(k[v]);null!=y&&g.isRecursiveVertexResize(y)&&g.resizeChildCells(k[v],w);g.getModel().setGeometry(k[v],w);g.constrainChildCells(k[v])}}}finally{g.getModel().endUpdate()}d=+mxUtils.write(m,mxResources.get("lineend"));ca.appendChild(m);mxEvent.addListener(ca,"change",function(H){if("none"!=ca.value){g.beginUpdate();try{K=K.clone(),K.x="start"==ca.value?-1:"end"==ca.value?1:0,K.y=0,K.offset=new mxPoint,g.setGeometry(d.vertices[0],K)}finally{g.endUpdate()}}ca.value="none"});mxUtils.br(E);mxUtils.br(E);E.appendChild(ca)}a.appendChild(E)}};+ArrangePanel.prototype.addGeometryHandler=function(a,b){function f(m){if(""!=a.value){var p=parseFloat(a.value);if(isNaN(p))a.value=d+" "+h.getUnit();else if(p!=d){g.getModel().beginUpdate();try{for(var k=e.getSelectionState().cells,u=0;u<k.length;u++)if(g.getModel().isVertex(k[u])){var w=g.getCellGeometry(k[u]);if(null!=w&&(w=w.clone(),!b(w,p,k[u]))){var y=g.view.getState(k[u]);null!=y&&g.isRecursiveVertexResize(y)&&g.resizeChildCells(k[u],w);g.getModel().setGeometry(k[u],w);g.constrainChildCells(k[u])}}}finally{g.getModel().endUpdate()}d=p;a.value=p+" "+h.getUnit()}}mxEvent.consume(m)}var e=this.editorUi,g=e.editor.graph,d=null,h=this;mxEvent.addListener(a,"blur",f);mxEvent.addListener(a,"change",f);mxEvent.addListener(a,"focus",function(){d=a.value});return f};-ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function f(h){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){g.getModel().beginUpdate();try{for(var p=e.getSelectionState().cells,k=0;k<p.length;k++)if(g.getModel().isEdge(p[k])){var v=g.getCellGeometry(p[k]);null!=v&&(v=v.clone(),b(v,m),g.getModel().setGeometry(p[k],v))}}finally{g.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(h)}var e=this.editorUi,g=e.editor.graph,d=null;mxEvent.addListener(a,+ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function f(h){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){g.getModel().beginUpdate();try{for(var p=e.getSelectionState().cells,k=0;k<p.length;k++)if(g.getModel().isEdge(p[k])){var u=g.getCellGeometry(p[k]);null!=u&&(u=u.clone(),b(u,m),g.getModel().setGeometry(p[k],u))}}finally{g.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(h)}var e=this.editorUi,g=e.editor.graph,d=null;mxEvent.addListener(a,"blur",f);mxEvent.addListener(a,"change",f);mxEvent.addListener(a,"focus",function(){d=a.value});return f};-ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this,f=this.editorUi,e=f.editor.graph,g=f.getSelectionState(),d=this.createPanel(),h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="0px";h.style.fontWeight="bold";mxUtils.write(h,mxResources.get("width"));d.appendChild(h);var m=this.addUnitInput(d,"pt",12,44,function(){p.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,E);var p=mxUtils.bind(this,function(L){var W=parseInt(m.value);-W=Math.min(999,Math.max(1,isNaN(W)?1:W));if(W!=mxUtils.getValue(g.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var X=f.getSelectionState().cells;e.setCellStyles("width",W,X);f.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[W],"cells",X))}m.value=W+" pt";mxEvent.consume(L)});mxEvent.addListener(m,"blur",p);mxEvent.addListener(m,"change",p);a.appendChild(d);var k=this.createPanel();k.style.paddingBottom="30px";h=document.createElement("div");h.style.position=-"absolute";h.style.width="70px";h.style.marginTop="4px";mxUtils.write(h,mxResources.get("linestart"));k.appendChild(h);var v=this.addUnitInput(k,this.getUnit(),87,52,function(){G.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),w=this.addUnitInput(k,this.getUnit(),16,52,function(){J.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),87,64);this.addLabel(k,mxResources.get("top"),16,64);a.appendChild(k);-this.addKeyHandler(v,E);this.addKeyHandler(w,E);var y=this.createPanel();y.style.paddingBottom="30px";h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="4px";mxUtils.write(h,mxResources.get("lineend"));y.appendChild(h);var C=this.addUnitInput(y,this.getUnit(),87,52,function(){M.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),D=this.addUnitInput(y,this.getUnit(),16,52,function(){Q.apply(this,arguments)},this.getUnitStep(),null,-null,this.isFloatUnit());mxUtils.br(y);this.addLabel(y,mxResources.get("left"),87,64);this.addLabel(y,mxResources.get("top"),16,64);a.appendChild(y);this.addKeyHandler(C,E);this.addKeyHandler(D,E);var E=mxUtils.bind(this,function(L,W,X){g=f.getSelectionState();L=g.cells[0];if("link"==g.style.shape||"flexArrow"==g.style.shape){if(d.style.display="",X||document.activeElement!=m)X=mxUtils.getValue(g.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth),m.value=X+" pt"}else d.style.display=-"none";1==g.cells.length&&e.model.isEdge(L)?(X=e.model.getGeometry(L),null!=X&&null!=X.sourcePoint&&null==e.model.getTerminal(L,!0)?(v.value=this.inUnit(X.sourcePoint.x)+" "+this.getUnit(),w.value=this.inUnit(X.sourcePoint.y)+" "+this.getUnit()):k.style.display="none",null!=X&&null!=X.targetPoint&&null==e.model.getTerminal(L,!1)?(C.value=this.inUnit(X.targetPoint.x)+" "+this.getUnit(),D.value=this.inUnit(X.targetPoint.y)+" "+this.getUnit()):y.style.display="none"):(k.style.display="none",y.style.display=-"none")});var G=this.addEdgeGeometryHandler(v,function(L,W){null!=L.sourcePoint&&(L.sourcePoint.x=b.fromUnit(W))});var J=this.addEdgeGeometryHandler(w,function(L,W){null!=L.sourcePoint&&(L.sourcePoint.y=b.fromUnit(W))});var M=this.addEdgeGeometryHandler(C,function(L,W){null!=L.targetPoint&&(L.targetPoint.x=b.fromUnit(W))});var Q=this.addEdgeGeometryHandler(D,function(L,W){null!=L.targetPoint&&(L.targetPoint.y=b.fromUnit(W))});e.getModel().addListener(mxEvent.CHANGE,E);this.listeners.push({destroy:function(){e.getModel().removeListener(E)}});+ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this,f=this.editorUi,e=f.editor.graph,g=f.getSelectionState(),d=this.createPanel(),h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="0px";h.style.fontWeight="bold";mxUtils.write(h,mxResources.get("width"));d.appendChild(h);var m=this.addUnitInput(d,"pt",12,44,function(){p.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,E);var p=mxUtils.bind(this,function(K){var W=parseInt(m.value);+W=Math.min(999,Math.max(1,isNaN(W)?1:W));if(W!=mxUtils.getValue(g.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var X=f.getSelectionState().cells;e.setCellStyles("width",W,X);f.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[W],"cells",X))}m.value=W+" pt";mxEvent.consume(K)});mxEvent.addListener(m,"blur",p);mxEvent.addListener(m,"change",p);a.appendChild(d);var k=this.createPanel();k.style.paddingBottom="30px";h=document.createElement("div");h.style.position=+"absolute";h.style.width="70px";h.style.marginTop="4px";mxUtils.write(h,mxResources.get("linestart"));k.appendChild(h);var u=this.addUnitInput(k,this.getUnit(),87,52,function(){G.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),w=this.addUnitInput(k,this.getUnit(),16,52,function(){J.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),87,64);this.addLabel(k,mxResources.get("top"),16,64);a.appendChild(k);+this.addKeyHandler(u,E);this.addKeyHandler(w,E);var y=this.createPanel();y.style.paddingBottom="30px";h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="4px";mxUtils.write(h,mxResources.get("lineend"));y.appendChild(h);var C=this.addUnitInput(y,this.getUnit(),87,52,function(){M.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),D=this.addUnitInput(y,this.getUnit(),16,52,function(){Q.apply(this,arguments)},this.getUnitStep(),null,+null,this.isFloatUnit());mxUtils.br(y);this.addLabel(y,mxResources.get("left"),87,64);this.addLabel(y,mxResources.get("top"),16,64);a.appendChild(y);this.addKeyHandler(C,E);this.addKeyHandler(D,E);var E=mxUtils.bind(this,function(K,W,X){g=f.getSelectionState();K=g.cells[0];if("link"==g.style.shape||"flexArrow"==g.style.shape){if(d.style.display="",X||document.activeElement!=m)X=mxUtils.getValue(g.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth),m.value=X+" pt"}else d.style.display=+"none";1==g.cells.length&&e.model.isEdge(K)?(X=e.model.getGeometry(K),null!=X&&null!=X.sourcePoint&&null==e.model.getTerminal(K,!0)?(u.value=this.inUnit(X.sourcePoint.x)+" "+this.getUnit(),w.value=this.inUnit(X.sourcePoint.y)+" "+this.getUnit()):k.style.display="none",null!=X&&null!=X.targetPoint&&null==e.model.getTerminal(K,!1)?(C.value=this.inUnit(X.targetPoint.x)+" "+this.getUnit(),D.value=this.inUnit(X.targetPoint.y)+" "+this.getUnit()):y.style.display="none"):(k.style.display="none",y.style.display=+"none")});var G=this.addEdgeGeometryHandler(u,function(K,W){null!=K.sourcePoint&&(K.sourcePoint.x=b.fromUnit(W))});var J=this.addEdgeGeometryHandler(w,function(K,W){null!=K.sourcePoint&&(K.sourcePoint.y=b.fromUnit(W))});var M=this.addEdgeGeometryHandler(C,function(K,W){null!=K.targetPoint&&(K.targetPoint.x=b.fromUnit(W))});var Q=this.addEdgeGeometryHandler(D,function(K,W){null!=K.targetPoint&&(K.targetPoint.y=b.fromUnit(W))});e.getModel().addListener(mxEvent.CHANGE,E);this.listeners.push({destroy:function(){e.getModel().removeListener(E)}});E()};TextFormatPanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);this.init()};mxUtils.extend(TextFormatPanel,BaseFormatPanel);TextFormatPanel.prototype.init=function(){this.container.appendChild(this.addFont(this.createPanel()));this.container.appendChild(this.addFontOps(this.createPanel()))};TextFormatPanel.prototype.addFontOps=function(a){0==this.addActions(a,["removeFormat"])&&(a.style.display="none");return a};TextFormatPanel.prototype.addFont=function(a){function b(q){q=null!=q?q.fontSize:null;return null!=q&&"px"==q.substring(q.length-2)?parseFloat(q):mxConstants.DEFAULT_FONTSIZE}function f(q,A){if(null!=q&&""!=q.textContent){q.style.lineHeight="";var B=mxUtils.getCurrentStyle(q);parseFloat(B.fontSize)*A/100!=parseFloat(B.lineHeight)?q.style.lineHeight=A+"%":""==q.getAttribute("style")&&q.removeAttribute("style")}}function e(q,A){A?q.classList.add("geActiveItem"):q.classList.remove("geActiveItem")}var g=-this.editorUi,d=g.editor.graph,h=g.getSelectionState(),m=this.createTitle(mxResources.get("font"));a.appendChild(m);m=this.createPanel();m.className="geFormatEntry";if(d.cellEditor.isContentEditing()){var p=m.cloneNode(),k=g.toolbar.addMenu(g.menus.get("formatBlock"),mxResources.get("style"),null,p);this.addArrow(k);k.style.margin="0px";k.style.position="relative";k.classList.add("geFullWidthElement");a.appendChild(p)}k=m.cloneNode(!1);a.appendChild(k);p=this.createPanel();var v=g.toolbar.addMenu(g.menus.get("fontFamily"),-"Helvetica",null,k);this.addArrow(v);v.style.margin="0px";v.style.position="relative";v.classList.add("geFullWidthElement");"inherit"==h.style[mxConstants.STYLE_FONTFAMILY]&&(k.style.display="none");k=m.cloneNode(!1);var w=g.toolbar.addItems(["bold","italic","underline"],k,!0,[Editor.boldImage,Editor.italicImage,Editor.underlineImage]);w[0].setAttribute("title",mxResources.get("bold")+" ("+g.actions.get("bold").shortcut+")");w[1].setAttribute("title",mxResources.get("italic")+" ("+g.actions.get("italic").shortcut++this.editorUi,d=g.editor.graph,h=g.getSelectionState(),m=this.createTitle(mxResources.get("font"));a.appendChild(m);m=this.createPanel();m.className="geFormatEntry";if(d.cellEditor.isContentEditing()){var p=m.cloneNode(),k=g.toolbar.addMenu(g.menus.get("formatBlock"),mxResources.get("style"),null,p);this.addArrow(k);k.style.margin="0px";k.style.position="relative";k.classList.add("geFullWidthElement");a.appendChild(p)}k=m.cloneNode(!1);a.appendChild(k);p=this.createPanel();var u=g.toolbar.addMenu(g.menus.get("fontFamily"),+"Helvetica",null,k);this.addArrow(u);u.style.margin="0px";u.style.position="relative";u.classList.add("geFullWidthElement");"inherit"==h.style[mxConstants.STYLE_FONTFAMILY]&&(k.style.display="none");k=m.cloneNode(!1);var w=g.toolbar.addItems(["bold","italic","underline"],k,!0,[Editor.boldImage,Editor.italicImage,Editor.underlineImage]);w[0].setAttribute("title",mxResources.get("bold")+" ("+g.actions.get("bold").shortcut+")");w[1].setAttribute("title",mxResources.get("italic")+" ("+g.actions.get("italic").shortcut+")");w[2].setAttribute("title",mxResources.get("underline")+" ("+g.actions.get("underline").shortcut+")");var y=g.toolbar.addItems(["vertical"],k,!0,[Editor.verticalTextImage])[0];a.appendChild(k);var C=m.cloneNode(!1),D=function(q){return function(){return q()}},E=g.addButton(Editor.alignLeftImage,mxResources.get("left"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_LEFT,q);g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],"cells",h.cells))}:D(g.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_LEFT])),C),G=g.addButton(Editor.alignCenterImage,mxResources.get("center"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_CENTER,q);g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_CENTER],"cells",h.cells))}:D(g.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_CENTER])),C),J=g.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,q);g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",h.cells))}:D(g.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);d.cellEditor.isContentEditing()&&(W=g.addButton(Editor.strikethroughImage,mxResources.get("strikethrough"),function(){document.execCommand("strikeThrough",-!1,null)},k));var M=g.addButton(Editor.alignTopImage,mxResources.get("top"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),Q=g.addButton(Editor.alignMiddleImage,mxResources.get("middle"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_MIDDLE])),C),L=g.addButton(Editor.alignBottomImage,mxResources.get("bottom"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),-C);a.appendChild(C);var W,X,T,N;if(d.cellEditor.isContentEditing()){M.style.display="none";Q.style.display="none";L.style.display="none";y.style.display="none";var ca=g.addButton(Editor.alignJustifyImage,mxResources.get("block"),function(){document.execCommand("justifyfull",!1,null)},C);ca.style.marginRight="9px";var H=g.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C);H.style.marginLeft="10px";var S=g.addButton(Editor.superscriptImage,+!1,null)},k));var M=g.addButton(Editor.alignTopImage,mxResources.get("top"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),Q=g.addButton(Editor.alignMiddleImage,mxResources.get("middle"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_MIDDLE])),C),K=g.addButton(Editor.alignBottomImage,mxResources.get("bottom"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),+C);a.appendChild(C);var W,X,T,N;if(d.cellEditor.isContentEditing()){M.style.display="none";Q.style.display="none";K.style.display="none";y.style.display="none";var ca=g.addButton(Editor.alignJustifyImage,mxResources.get("block"),function(){document.execCommand("justifyfull",!1,null)},C);ca.style.marginRight="9px";var H=g.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C);H.style.marginLeft="10px";var S=g.addButton(Editor.superscriptImage,mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)",function(){document.execCommand("superscript",!1,null)},C);H.style.marginLeft="10px";D=C.cloneNode(!1);D.style.paddingTop="4px";C=[g.addButton(Editor.orderedListImage,mxResources.get("numberedList"),function(){document.execCommand("insertorderedlist",!1,null)},D),g.addButton(Editor.unorderedListImage,mxResources.get("bulletedList"),function(){document.execCommand("insertunorderedlist",!1,null)},D),g.addButton(Editor.indentImage,mxResources.get("increaseIndent"),function(){document.execCommand("indent",!1,null)},D),g.addButton(Editor.outdentImage,mxResources.get("decreaseIndent"),function(){document.execCommand("outdent",!1,null)},D),g.addButton(Editor.removeFormatImage,mxResources.get("removeFormat"),function(){document.execCommand("removeformat",!1,null)},D),g.addButton(Editor.codeImage,mxResources.get("html"),function(){d.cellEditor.toggleViewMode()},D)];C[C.length-2].style.marginLeft="10px";a.appendChild(D)}else w[2].style.marginRight="12px",J.style.marginRight="12px";C=m.cloneNode(!1);mxUtils.write(C,mxResources.get("position"));var ea=document.createElement("select");ea.style.left="114px";ea.style.width="98px";var la="topLeft top topRight left center right bottomLeft bottom bottomRight".split(" "),O={topLeft:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM],top:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_BOTTOM],topRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_TOP,@@ -3140,38 +3141,38 @@ C=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null"convertToSvg","0");k.style.fontWeight="bold";p.appendChild(k);if(!g.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)k.getElementsByTagName("span")[0].style.maxWidth="172px",k.appendChild(g.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/5165"));k=this.createPanel();k.style.height="86px";C=document.createElement("div");C.style.position="absolute";C.style.width="70px";C.style.marginTop="0px";C.style.fontWeight="bold";mxUtils.write(C,mxResources.get("spacing"));k.appendChild(C);var za=this.addUnitInput(k,this.getUnit(),87,52,function(){db.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ka=this.addUnitInput(k,this.getUnit(),16,52,function(){$a.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());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 Qa=this.addUnitInput(k,this.getUnit(),158,52,function(){Za.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ia=this.addUnitInput(k,this.getUnit(),87,52,function(){eb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ha=this.addUnitInput(k,this.getUnit(),16,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());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 ra=null,Da=null;-a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(q){var A=""==q.value?120:parseInt(q.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ra&&(d.cellEditor.restoreSelection(ra),ra=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&B==d.cellEditor.textarea){var F=window.getSelection();if(F.getRangeAt&&0<F.rangeCount){var K=F.getRangeAt(0);B=document.createElement("div");B.appendChild(K.extractContents());d.cellEditor.textarea.innerHTML=-"";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();K=new Range;K.selectNodeContents(B);F.addRange(K)}}if(null!=B)for(B!=d.cellEditor.textarea&&f(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),K=0;K<B.length;K++)F.containsNode(B[K],!0)&&f(B[K],A)}q.value=A+" %"},function(q){Da=q;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(A){document.activeElement==d.cellEditor.textarea&&(ra=d.cellEditor.saveSelection())}));mxEvent.addListener(q,"touchstart",function(){document.activeElement==+a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(q){var A=""==q.value?120:parseInt(q.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ra&&(d.cellEditor.restoreSelection(ra),ra=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&B==d.cellEditor.textarea){var F=window.getSelection();if(F.getRangeAt&&0<F.rangeCount){var L=F.getRangeAt(0);B=document.createElement("div");B.appendChild(L.extractContents());d.cellEditor.textarea.innerHTML=+"";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();L=new Range;L.selectNodeContents(B);F.addRange(L)}}if(null!=B)for(B!=d.cellEditor.textarea&&f(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),L=0;L<B.length;L++)F.containsNode(B[L],!0)&&f(B[L],A)}q.value=A+" %"},function(q){Da=q;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(A){document.activeElement==d.cellEditor.textarea&&(ra=d.cellEditor.saveSelection())}));mxEvent.addListener(q,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(ra=d.cellEditor.saveSelection())});q.value="120 %"}));p=m.cloneNode(!1);g.toolbar.addItems(["link","image"],p,!0,[Editor.linkImage,Editor.imageImage]);C=[g.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1)},p),g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(q){g.menus.addInsertTableItem(q,null,null,!1)})),null,Editor.tableImage,p)];k=this.createPanel();k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(p);a.appendChild(k);k=m.cloneNode(!1);C=[g.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=X&&d.insertColumn(X,null!=T?T.cellIndex:0)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=X&&d.insertColumn(X,null!=T?T.cellIndex+1:-1)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=X&&null!=T&&d.deleteColumn(X,T.cellIndex)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=X&&null!=N&&d.insertRow(X,N.sectionRowIndex)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=X&&null!=N&&d.insertRow(X,N.sectionRowIndex+1)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.removeRowImage,-mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=X&&null!=N&&d.deleteRow(X,N.sectionRowIndex)}catch(q){g.handleError(q)}}),k)];C[2].style.marginRight="10px";p=this.createPanel();p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(k);m=m.cloneNode(!1);C=[g.addButton(Editor.strokeColorImage,mxResources.get("borderColor"),mxUtils.bind(this,function(q){if(null!=X){var A=X.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,K,-R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(K).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});g.pickColor(A,function(B){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(K){K.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),g.addButton(Editor.fillColorImage,-mxResources.get("backgroundColor"),mxUtils.bind(this,function(q){if(null!=X){var A=X.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,K,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(K).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});g.pickColor(A,function(B){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(K){K.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?+mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=X&&null!=N&&d.deleteRow(X,N.sectionRowIndex)}catch(q){g.handleError(q)}}),k)];C[2].style.marginRight="10px";p=this.createPanel();p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(k);m=m.cloneNode(!1);C=[g.addButton(Editor.strokeColorImage,mxResources.get("borderColor"),mxUtils.bind(this,function(q){if(null!=X){var A=X.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,L,+R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(L).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});g.pickColor(A,function(B){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(L){L.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),g.addButton(Editor.fillColorImage,+mxResources.get("backgroundColor"),mxUtils.bind(this,function(q){if(null!=X){var A=X.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,L,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(L).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});g.pickColor(A,function(B){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(L){L.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?"":B})}}),m),g.addButton(Editor.spacingImage,mxResources.get("spacing"),function(){if(null!=X){var q=X.getAttribute("cellPadding")||0;q=new FilenameDialog(g,q,mxResources.get("apply"),mxUtils.bind(this,function(A){null!=A&&0<A.length?X.setAttribute("cellPadding",A):X.removeAttribute("cellPadding")}),mxResources.get("spacing"));g.showDialog(q.container,300,80,!0,!0);q.init()}},m),g.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=X&&X.setAttribute("align","left")},m),g.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=X&&X.setAttribute("align","center")},m),g.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=X&&X.setAttribute("align","right")},m)];C[2].style.marginRight="10px";p.appendChild(m);a.appendChild(p);var Va=p}else a.appendChild(p),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(D=0;3>D;D++)(function(q){mxEvent.addListener(w[q],"click",function(){e(w[q],""==w[q].style.backgroundImage)})})(D);-var Wa=mxUtils.bind(this,function(q,A,B){h=g.getSelectionState();q=mxUtils.getValue(h.style,mxConstants.STYLE_FONTSTYLE,0);e(w[0],(q&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);e(w[1],(q&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);e(w[2],(q&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);g.toolbar.setMenuText(v,mxUtils.getValue(h.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont));e(y,"0"==mxUtils.getValue(h.style,mxConstants.STYLE_HORIZONTAL,"1"));if(B||document.activeElement!=-ta)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ta.value=isNaN(q)?"":q+" "+Editor.fontSizeUnit;q=mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);e(E,q==mxConstants.ALIGN_LEFT);e(G,q==mxConstants.ALIGN_CENTER);e(J,q==mxConstants.ALIGN_RIGHT);q=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);e(M,q==mxConstants.ALIGN_TOP);e(Q,q==mxConstants.ALIGN_MIDDLE);e(L,q==mxConstants.ALIGN_BOTTOM);+var Wa=mxUtils.bind(this,function(q,A,B){h=g.getSelectionState();q=mxUtils.getValue(h.style,mxConstants.STYLE_FONTSTYLE,0);e(w[0],(q&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);e(w[1],(q&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);e(w[2],(q&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);g.toolbar.setMenuText(u,mxUtils.getValue(h.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont));e(y,"0"==mxUtils.getValue(h.style,mxConstants.STYLE_HORIZONTAL,"1"));if(B||document.activeElement!=+ta)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ta.value=isNaN(q)?"":q+" "+Editor.fontSizeUnit;q=mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);e(E,q==mxConstants.ALIGN_LEFT);e(G,q==mxConstants.ALIGN_CENTER);e(J,q==mxConstants.ALIGN_RIGHT);q=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);e(M,q==mxConstants.ALIGN_TOP);e(Q,q==mxConstants.ALIGN_MIDDLE);e(K,q==mxConstants.ALIGN_BOTTOM);q=mxUtils.getValue(h.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);A=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);ea.value=q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_TOP?"topLeft":q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_TOP?"top":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_TOP?"topRight":q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_BOTTOM?"bottomLeft":q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_BOTTOM?"bottom":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_BOTTOM?"bottomRight":q==mxConstants.ALIGN_LEFT?"left":q==mxConstants.ALIGN_RIGHT?"right":"center";q=mxUtils.getValue(h.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);q==mxConstants.TEXT_DIRECTION_RTL?Y.value="rightToLeft":q==mxConstants.TEXT_DIRECTION_LTR?Y.value="leftToRight":q!=mxConstants.TEXT_DIRECTION_AUTO&&h.html?q==mxConstants.TEXT_DIRECTION_VERTICAL_LR?Y.value="vertical-leftToRight":q==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(Y.value="vertical-rightToLeft"):Y.value="automatic";if(B||document.activeElement!=Ka)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING,2)),Ka.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=za)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_TOP,0)),za.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ha)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ha.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ia)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ia.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Qa)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_LEFT,0)),Qa.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit()});var $a=this.installInputHandler(Ka,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var db=this.installInputHandler(za,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ha,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var eb=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_BOTTOM,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var Za=this.installInputHandler(Qa,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(ta,Wa);this.addKeyHandler(Ka,Wa);this.addKeyHandler(za,Wa);this.addKeyHandler(Ha,Wa);this.addKeyHandler(Ia,Wa);this.addKeyHandler(Qa,Wa);d.getModel().addListener(mxEvent.CHANGE,Wa);this.listeners.push({destroy:function(){d.getModel().removeListener(Wa)}});Wa();if(d.cellEditor.isContentEditing()){var gb=null,bb=!1;m=mxUtils.bind(this,function(){bb||(bb=!0,window.setTimeout(mxUtils.bind(this,function(){var q=d.getSelectedEditingElement();if(null!=q&&null!=d.cellEditor.textarea){var A=function(Aa,Ga){if(null!=Aa&&null!=Ga){if(Aa==Ga)return!0;if(Aa.length>-Ga.length+1)return Aa.substring(Aa.length-Ga.length-1,Aa.length)=="-"+Ga}return!1},B=function(Aa){if(null!=d.getParentByName(q,Aa,d.cellEditor.textarea))return!0;for(var Ga=q;null!=Ga&&1==Ga.childNodes.length;)if(Ga=Ga.childNodes[0],Ga.nodeName==Aa)return!0;return!1},F=function(Aa){for(;null!=Aa&&Aa!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(Aa).display)return Aa;Aa=Aa.parentNode}return null},K=mxUtils.getCurrentStyle(q),R=q==d.cellEditor.textarea||""==q.style.lineHeight?null:q.style.lineHeight,-Z=q==d.cellEditor.textarea||""==q.style.fontSize?null:b(K);if(window.getSelection)for(var ja=q.getElementsByTagName("*"),fa=window.getSelection(),ka=0;ka<ja.length&&(!fa.containsNode(ja[ka],!0)||null==ja[ka].style||(null==Z&&""!=ja[ka].style.fontSize&&(Z=parseFloat(ja[ka].style.fontSize)),null==R&&""!=ja[ka].style.lineHeight&&(R=ja[ka].style.lineHeight),null==Z||null==R));ka++);null==Z&&(Z=b(K));if(null==R)for(ja=q;null!=ja&&ja!=d.cellEditor.textarea.parentNode;){if(null!=ja.style&&""!=ja.style.lineHeight){R=-ja.style.lineHeight;break}ja=ja.parentNode}if(null!=K){e(w[0],"bold"==K.fontWeight||400<K.fontWeight||B("B")||B("STRONG"));e(w[1],"italic"==K.fontStyle||B("I")||B("EM"));e(w[2],"underline"==K.textDecorationLine||B("U"));e(W,"line-through"==K.textDecorationLine||B("STRIKE"));e(S,B("SUP"));e(H,B("SUB"));var va=F(q);if(null!=va){B=function(Aa,Ga){Na.push({name:Aa,dispName:Ga,type:"string",getValue:function(){return Ma[Aa]},valueChanged:function(wa,ua){var Ta=va.style,Ra=wa;parseInt(Ra)==Ra&&(Ra+="px",+Ga.length+1)return Aa.substring(Aa.length-Ga.length-1,Aa.length)=="-"+Ga}return!1},B=function(Aa){if(null!=d.getParentByName(q,Aa,d.cellEditor.textarea))return!0;for(var Ga=q;null!=Ga&&1==Ga.childNodes.length;)if(Ga=Ga.childNodes[0],Ga.nodeName==Aa)return!0;return!1},F=function(Aa){for(;null!=Aa&&Aa!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(Aa).display)return Aa;Aa=Aa.parentNode}return null},L=mxUtils.getCurrentStyle(q),R=q==d.cellEditor.textarea||""==q.style.lineHeight?null:q.style.lineHeight,+Z=q==d.cellEditor.textarea||""==q.style.fontSize?null:b(L);if(window.getSelection)for(var ja=q.getElementsByTagName("*"),fa=window.getSelection(),ka=0;ka<ja.length&&(!fa.containsNode(ja[ka],!0)||null==ja[ka].style||(null==Z&&""!=ja[ka].style.fontSize&&(Z=parseFloat(ja[ka].style.fontSize)),null==R&&""!=ja[ka].style.lineHeight&&(R=ja[ka].style.lineHeight),null==Z||null==R));ka++);null==Z&&(Z=b(L));if(null==R)for(ja=q;null!=ja&&ja!=d.cellEditor.textarea.parentNode;){if(null!=ja.style&&""!=ja.style.lineHeight){R=+ja.style.lineHeight;break}ja=ja.parentNode}if(null!=L){e(w[0],"bold"==L.fontWeight||400<L.fontWeight||B("B")||B("STRONG"));e(w[1],"italic"==L.fontStyle||B("I")||B("EM"));e(w[2],"underline"==L.textDecorationLine||B("U"));e(W,"line-through"==L.textDecorationLine||B("STRIKE"));e(S,B("SUP"));e(H,B("SUB"));var va=F(q);if(null!=va){B=function(Aa,Ga){Na.push({name:Aa,dispName:Ga,type:"string",getValue:function(){return Ma[Aa]},valueChanged:function(wa,ua){var Ta=va.style,Ra=wa;parseInt(Ra)==Ra&&(Ra+="px",null!=ua&&(ua.value=Ra));Ta[Aa]=Ra;""==wa&&null!=ua&&(ua.value=Ma[Aa])}})};var Ma=mxUtils.getCurrentStyle(va),Na=[];B("paddingTop","Padding Top");B("paddingRight","Padding Right");B("paddingLeft","Padding Left");B("paddingBottom","Padding Bottom");B("marginTop","Margin Top");B("marginRight","Margin Right");B("marginLeft","Margin Left");B("marginBottom","Margin Bottom");B=this.createPanel();this.addProperties(B,Na,h,!0);null!=gb?gb.parentNode.replaceChild(B,gb):a.appendChild(B);gb=B}d.cellEditor.isTableSelected()?-(e(ca,A(K.textAlign,"justify")),e(E,A(K.textAlign,"left")),e(G,A(K.textAlign,"center")),e(J,A(K.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),A(K.textAlign,"justify")?(e(ca,A(K.textAlign,"justify")),e(E,!1),e(G,!1),e(J,!1)):(e(ca,!1),e(E,B==mxConstants.ALIGN_LEFT),e(G,B==mxConstants.ALIGN_CENTER),e(J,B==mxConstants.ALIGN_RIGHT)));X=d.getParentByName(q,"TABLE",d.cellEditor.textarea);N=null==X?null:d.getParentByName(q,"TR",X);-T=null==X?null:d.getParentByNames(q,["TD","TH"],X);Va.style.display=null!=X?"":"none";document.activeElement!=ta&&(ta.value=isNaN(Z)?"":Z+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?Da.value=R.replace("%"," %"):(A=parseFloat(R),isNaN(A)?Da.value="120 %":Da.value=Math.round(100*A)+" %"));null!=ba&&(ma=d.getTextColor(q,!0),ba(ma,!0));null!=aa&&(P=d.getTextColor(q,!1),aa(P,!0));g.toolbar.setMenuText(v,mxUtils.getCssFontFamily(K.fontFamily))}}bb=!1}),0))});mxEvent.addListener(d.cellEditor.textarea,+(e(ca,A(L.textAlign,"justify")),e(E,A(L.textAlign,"left")),e(G,A(L.textAlign,"center")),e(J,A(L.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),A(L.textAlign,"justify")?(e(ca,A(L.textAlign,"justify")),e(E,!1),e(G,!1),e(J,!1)):(e(ca,!1),e(E,B==mxConstants.ALIGN_LEFT),e(G,B==mxConstants.ALIGN_CENTER),e(J,B==mxConstants.ALIGN_RIGHT)));X=d.getParentByName(q,"TABLE",d.cellEditor.textarea);N=null==X?null:d.getParentByName(q,"TR",X);+T=null==X?null:d.getParentByNames(q,["TD","TH"],X);Va.style.display=null!=X?"":"none";document.activeElement!=ta&&(ta.value=isNaN(Z)?"":Z+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?Da.value=R.replace("%"," %"):(A=parseFloat(R),isNaN(A)?Da.value="120 %":Da.value=Math.round(100*A)+" %"));null!=ba&&(ma=d.getTextColor(q,!0),ba(ma,!0));null!=aa&&(P=d.getTextColor(q,!1),aa(P,!0));g.toolbar.setMenuText(u,mxUtils.getCssFontFamily(L.fontFamily))}}bb=!1}),0))});mxEvent.addListener(d.cellEditor.textarea,"input",m);mxEvent.addListener(d.cellEditor.textarea,"touchend",m);mxEvent.addListener(d.cellEditor.textarea,"mouseup",m);mxEvent.addListener(d.cellEditor.textarea,"keyup",m);this.listeners.push({destroy:function(){}});m()}return a};StyleFormatPanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);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(""),f=document.createElement("style");mxUtils.setTextContent(f,a);b.body.appendChild(f);return f.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 f=b.style.editableCssRules;if(null!=f){var e=new RegExp(f),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 m="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(f=0;f<v.length;f++)this.addSvgRule(a,v[f],h,k[b],v,f,e,m,p)}}}}catch(w){}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,f,e,g,d,h,m,p){var k=this.editorUi,v=k.editor.graph;h.test(b.selectorText)&&(h=mxUtils.bind(this,function(w,y,C,D){var E=mxUtils.trim(w.style.getPropertyValue(y));if(""!=E&&"url("!=E.substring(0,4)){var G=E;"transparent"==G?G=mxConstants.NONE:(E=mxUtils.isLightDarkColor(G))&&D?D=!1:E||D||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(J){g[d].style.setProperty(y,J==mxConstants.NONE?-"transparent":mxUtils.getLightDarkColor(J).cssText);J="";p&&mxUtils.isLightDarkColor(g[d].style[y])&&(f.documentElement.style.colorScheme="light dark");for(var M=0;M<g.length;M++)J+=g[M].cssText+" ";e.textContent=J;J=mxUtils.getXml(f.documentElement);v.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(J))):Base64.encode(J,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(J){},destroy:function(){}},null,null,null,D);a.appendChild(w);+"darkMode",null),p=""==h.documentElement.style.colorScheme,k=h.getElementsByTagName("style");for(b=0;b<k.length;b++){var u=this.getCssRules(mxUtils.getTextContent(k[b]));for(f=0;f<u.length;f++)this.addSvgRule(a,u[f],h,k[b],u,f,e,m,p)}}}}catch(w){}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,f,e,g,d,h,m,p){var k=this.editorUi,u=k.editor.graph;h.test(b.selectorText)&&(h=mxUtils.bind(this,function(w,y,C,D){var E=mxUtils.trim(w.style.getPropertyValue(y));if(""!=E&&"url("!=E.substring(0,4)){var G=E;"transparent"==G?G=mxConstants.NONE:(E=mxUtils.isLightDarkColor(G))&&D?D=!1:E||D||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(J){g[d].style.setProperty(y,J==mxConstants.NONE?+"transparent":mxUtils.getLightDarkColor(J).cssText);J="";p&&mxUtils.isLightDarkColor(g[d].style[y])&&(f.documentElement.style.colorScheme="light dark");for(var M=0;M<g.length;M++)J+=g[M].cssText+" ";e.textContent=J;J=mxUtils.getXml(f.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(J))):Base64.encode(J,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(J){},destroy:function(){}},null,null,null,D);a.appendChild(w);a.style.display=""}}),h(b,"fill",mxResources.get("fill"),m),h(b,"stroke",mxResources.get("line"),m),h(b,"stop-color",mxResources.get("gradient"),m))};StyleFormatPanel.prototype.addEditOps=function(a){var b=this.editorUi.getSelectionState();if(1==b.cells.length){var f=document.createElement("select");f.style.position="relative";f.style.marginBottom="2px";f.className="geFullWidthElement";var e="edit copyAsText editLink editShape editImage editData copyData pasteData editConnectionPoints editGeometry editTooltip editStyle".split(" "),g=null;if(null!=this.editorUi.sidebar){var d=this.editorUi.sidebar.getKeyStyle(b.cells[0].style);g=this.editorUi.sidebar.getLibsForStyle(d);null!=g||this.editorUi.sidebar.isSearchIndexLoaded()||null==b.style.shape||"mxgraph."!=String(b.style.shape).substring(0,8)||(g=[])}null!=g&&e.push("openLibrary");for(d=0;d<e.length;d++){var h=this.editorUi.actions.get(e[d]);if(null==h||h.enabled){var m=document.createElement("option");m.setAttribute("value",e[d]);var p=mxResources.get(e[d]);mxUtils.write(m,p+"...");null!=h&&null!=h.shortcut&&(p+=" ("+h.shortcut+")");m.setAttribute("title",p);f.appendChild(m)}}1<f.children.length&&(a.appendChild(f),@@ -3179,18 +3180,18 @@ mxEvent.addListener(f,"change",mxUtils.bind(this,function(k){"openLibrary"==f.vae=e.view.getState(e.getSelectionCell()),null!=e&&null!=mxUtils.getValue(e.style,mxConstants.STYLE_IMAGE,null)&&(e=mxUtils.button(mxResources.get("crop")+"...",mxUtils.bind(this,function(k){this.editorUi.actions.get("crop").funct()})),e.setAttribute("title",mxResources.get("crop")),f.style.width="104px",e.style.width="104px",e.style.position="relative",e.style.top="-1px",e.style.marginLeft="2px",e.style.marginBottom="1px",a.appendChild(e))))}return a};StyleFormatPanel.prototype.addFill=function(a){function b(){h.innerHTML="";C=1;for(var E=0;E<Editor.fillStyles.length;E++){var G=document.createElement("option");G.setAttribute("value",Editor.fillStyles[E].val);mxUtils.write(G,Editor.fillStyles[E].dispName);h.appendChild(G)}}var f=this.editorUi,e=f.editor.graph,g=f.getSelectionState(),d=document.createElement("select");d.style.position="absolute";d.style.left="72px";d.style.width="90px";var h=d.cloneNode(!1);mxEvent.addListener(d,"click",function(E){mxEvent.consume(E)});mxEvent.addListener(h,"click",function(E){mxEvent.consume(E)});var m=this.createCellColorOption(mxResources.get("gradient"),mxConstants.STYLE_GRADIENTCOLOR,"default",function(E){d.style.display=null==E||E==mxConstants.NONE?"none":""},function(E){e.updateCellStyles({gradientColor:E},e.getSelectionCells())},e.getDefaultColor(g.style,mxConstants.STYLE_GRADIENTCOLOR,e.shapeForegroundColor,e.shapeBackgroundColor));m.style.fontWeight="bold";var p="image"==g.style.shape?mxConstants.STYLE_IMAGE_BACKGROUND:-mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),p,"default",null,mxUtils.bind(this,function(E){e.setCellStyles(p,E,g.cells)}),e.getDefaultColor(g.style,p,e.shapeBackgroundColor,e.shapeForegroundColor));k.style.fontWeight="bold";var v=mxUtils.getValue(g.style,p,null);m.style.display=null!=v&&v!=mxConstants.NONE&&g.fill&&"image"!=g.style.shape?"":"none";var w=[mxConstants.DIRECTION_NORTH,mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,-mxConstants.DIRECTION_RADIAL];for(v=0;v<w.length;v++){var y=document.createElement("option");y.setAttribute("value",w[v]);mxUtils.write(y,mxResources.get(w[v]));d.appendChild(y)}m.appendChild(d);var C;b();g.gradient&&k.appendChild(h);var D=mxUtils.bind(this,function(){g=f.getSelectionState();var E=mxUtils.getValue(g.style,mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(g.style,"fillStyle","auto");""==E&&(E=mxConstants.DIRECTION_SOUTH);d.value=E;a.style.display=+mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),p,"default",null,mxUtils.bind(this,function(E){e.setCellStyles(p,E,g.cells)}),e.getDefaultColor(g.style,p,e.shapeBackgroundColor,e.shapeForegroundColor));k.style.fontWeight="bold";var u=mxUtils.getValue(g.style,p,null);m.style.display=null!=u&&u!=mxConstants.NONE&&g.fill&&"image"!=g.style.shape?"":"none";var w=[mxConstants.DIRECTION_NORTH,mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,+mxConstants.DIRECTION_RADIAL];for(u=0;u<w.length;u++){var y=document.createElement("option");y.setAttribute("value",w[u]);mxUtils.write(y,mxResources.get(w[u]));d.appendChild(y)}m.appendChild(d);var C;b();g.gradient&&k.appendChild(h);var D=mxUtils.bind(this,function(){g=f.getSelectionState();var E=mxUtils.getValue(g.style,mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(g.style,"fillStyle","auto");""==E&&(E=mxConstants.DIRECTION_SOUTH);d.value=E;a.style.display=g.fill?"":"none";E=mxUtils.getValue(g.style,p,null);if(g.fill&&null!=E&&E!=mxConstants.NONE&&"filledEdge"!=g.style.shape){if("1"==g.style.sketch){if(2!=C){h.innerHTML="";C=2;for(E=0;E<Editor.roughFillStyles.length;E++){var J=document.createElement("option");J.setAttribute("value",Editor.roughFillStyles[E].val);mxUtils.write(J,Editor.roughFillStyles[E].dispName);h.appendChild(J)}h.value="auto"}}else 1!=C&&b();h.value=G;h.value||(G="auto",h.value=G);h.style.display="1"==g.style.sketch||"none"==d.style.display?"":"none";m.style.display=!g.gradient||g.containsImage||"1"==g.style.sketch&&"solid"!=G&&"auto"!=G?"none":""}else h.style.display="none",m.style.display="none"});e.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){e.getModel().removeListener(D)}});D();mxEvent.addListener(d,"change",function(E){e.setCellStyles(mxConstants.STYLE_GRADIENT_DIRECTION,d.value,g.cells);f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_GRADIENT_DIRECTION],"values",[d.value],-"cells",g.cells));mxEvent.consume(E)});mxEvent.addListener(h,"change",function(E){e.setCellStyles("fillStyle",h.value,g.cells);f.fireEvent(new mxEventObject("styleChanged","keys",["fillStyle"],"values",[h.value],"cells",g.cells));mxEvent.consume(E)});a.appendChild(k);a.appendChild(m);k=this.getCustomColors();for(v=0;v<k.length;v++)a.appendChild(this.createCellColorOption(k[v].title,k[v].key,k[v].defaultValue,null,null,k[v].defaultColorValue));k=mxUtils.bind(this,function(E,G,J){if(null!=E){E=E.split(",");-G=null!=G?G.split(","):null;for(var M=0;M<E.length;M++){var Q=E[M].replace(/([a-z])([A-Z])/g,"$1 $2"),L=null!=G?G[mxUtils.mod(M,G.length)]:"default";a.appendChild(this.createCellColorOption(Q.charAt(0).toUpperCase()+Q.substring(1),E[M],L,null,null,J))}}});k(g.style.fillColorStyles,g.style.defaultFillColors,e.shapeBackgroundColor);k(g.style.strokeColorStyles,g.style.defaultStrokeColors,e.shapeForegroundColor);return a};+"cells",g.cells));mxEvent.consume(E)});mxEvent.addListener(h,"change",function(E){e.setCellStyles("fillStyle",h.value,g.cells);f.fireEvent(new mxEventObject("styleChanged","keys",["fillStyle"],"values",[h.value],"cells",g.cells));mxEvent.consume(E)});a.appendChild(k);a.appendChild(m);k=this.getCustomColors();for(u=0;u<k.length;u++)a.appendChild(this.createCellColorOption(k[u].title,k[u].key,k[u].defaultValue,null,null,k[u].defaultColorValue));k=mxUtils.bind(this,function(E,G,J){if(null!=E){E=E.split(",");+G=null!=G?G.split(","):null;for(var M=0;M<E.length;M++){var Q=E[M].replace(/([a-z])([A-Z])/g,"$1 $2"),K=null!=G?G[mxUtils.mod(M,G.length)]:null,W=null!=K?K:"default";a.appendChild(this.createCellColorOption(Q.charAt(0).toUpperCase()+Q.substring(1),E[M],W,null,null,J,K))}}});k(g.style.fillColorStyles,g.style.defaultFillColors,e.shapeBackgroundColor);k(g.style.strokeColorStyles,g.style.defaultStrokeColors,e.shapeForegroundColor);return a};StyleFormatPanel.prototype.getCustomColors=function(){var a=this.editorUi.getSelectionState(),b=[];if(null!=a.customProperties)for(var f in a.customProperties){var e=a.customProperties[f];null!=e&&"color"==e.type&&e.primary&&b.push({title:e.dispName,defaultValue:null==e.defVal?"#000000":e.defVal,key:e.name})}a.swimlane&&(a=this.editorUi.editor.graph,b.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default",defaultColorValue:a.shapeBackgroundColor}));return b};StyleFormatPanel.prototype.addStroke=function(a){function b(P){var ba=e.fromUnit(parseFloat(M.value));ba=Math.min(999,Math.max(0,isNaN(ba)?1:ba));ba!=mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ba,h.cells),g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ba],"cells",h.cells)));M.value=e.inUnit(ba)+" "+e.getUnit();mxEvent.consume(P)}function f(P){var ba=e.fromUnit(parseFloat(Q.value));ba=Math.min(999,Math.max(0,isNaN(ba)?1:ba));ba!=mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ba,h.cells),g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ba],"cells",h.cells)));Q.value=e.inUnit(ba)+" "+e.getUnit();mxEvent.consume(P)}var e=this,g=this.editorUi,d=g.editor.graph,h=g.getSelectionState(),m=document.createElement("div");m.className="geFormatEntry";h.stroke||(m.style.display="none");var p=document.createElement("select");-p.style.position="absolute";p.style.left="72px";p.style.width="90px";for(var k=["sharp","rounded","curved"],v=0;v<k.length;v++){var w=document.createElement("option");w.setAttribute("value",k[v]);mxUtils.write(w,mxResources.get(k[v]));p.appendChild(w)}mxEvent.addListener(p,"change",function(P){d.getModel().beginUpdate();try{var ba=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],ma=["0","0"];"rounded"==p.value?ma=["1","0"]:"curved"==p.value&&(ma=["0","1"]);for(var Ja=0;Ja<ba.length;Ja++)d.setCellStyles(ba[Ja],-ma[Ja],h.cells);g.fireEvent(new mxEventObject("styleChanged","keys",ba,"values",ma,"cells",h.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(P)});mxEvent.addListener(p,"click",function(P){mxEvent.consume(P)});var y="image"==h.style.shape?mxConstants.STYLE_IMAGE_BORDER:mxConstants.STYLE_STROKECOLOR;k="image"==h.style.shape?mxResources.get("border"):mxResources.get("line");v=this.createCellColorOption(k,y,"default",null,mxUtils.bind(this,function(P){d.setCellStyles(y,P,h.cells);if(null==P||-P==mxConstants.NONE){P=[];for(var ba=0;ba<h.cells.length;ba++)(d.isTableCell(h.cells[ba])||d.isTableRow(h.cells[ba]))&&P.push(h.cells[ba]);0<P.length&&d.setCellStyles(y,"inherit",P)}}),d.shapeForegroundColor);v.style.fontWeight="bold";v.appendChild(p);var C=m.cloneNode(!1);C.style.position="relative";var D=mxUtils.bind(this,function(P,ba,ma,Ja,na){P=this.editorUi.menus.styleChange(P,"",Ja,na,"",null);Ja=document.createElement("div");na=ma.split(" ");2==na.length?(ma=parseInt(na[0])+parseInt(na[1]),+p.style.position="absolute";p.style.left="72px";p.style.width="90px";for(var k=["sharp","rounded","curved"],u=0;u<k.length;u++){var w=document.createElement("option");w.setAttribute("value",k[u]);mxUtils.write(w,mxResources.get(k[u]));p.appendChild(w)}mxEvent.addListener(p,"change",function(P){d.getModel().beginUpdate();try{var ba=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],ma=["0","0"];"rounded"==p.value?ma=["1","0"]:"curved"==p.value&&(ma=["0","1"]);for(var Ja=0;Ja<ba.length;Ja++)d.setCellStyles(ba[Ja],+ma[Ja],h.cells);g.fireEvent(new mxEventObject("styleChanged","keys",ba,"values",ma,"cells",h.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(P)});mxEvent.addListener(p,"click",function(P){mxEvent.consume(P)});var y="image"==h.style.shape?mxConstants.STYLE_IMAGE_BORDER:mxConstants.STYLE_STROKECOLOR;k="image"==h.style.shape?mxResources.get("border"):mxResources.get("line");u=this.createCellColorOption(k,y,"default",null,mxUtils.bind(this,function(P){d.setCellStyles(y,P,h.cells);if(null==P||+P==mxConstants.NONE){P=[];for(var ba=0;ba<h.cells.length;ba++)(d.isTableCell(h.cells[ba])||d.isTableRow(h.cells[ba]))&&P.push(h.cells[ba]);0<P.length&&d.setCellStyles(y,"inherit",P)}}),d.shapeForegroundColor);u.style.fontWeight="bold";u.appendChild(p);var C=m.cloneNode(!1);C.style.position="relative";var D=mxUtils.bind(this,function(P,ba,ma,Ja,na){P=this.editorUi.menus.styleChange(P,"",Ja,na,"",null);Ja=document.createElement("div");na=ma.split(" ");2==na.length?(ma=parseInt(na[0])+parseInt(na[1]),na=parseInt(na[0])/ma*100,Ja.style.borderBottomStyle="none",Ja.style.backgroundImage="linear-gradient(to right, black "+na+"%, transparent 0%)",Ja.style.backgroundSize=ma+"px 1px"):Ja.style.borderBottomStyle=ma;P.firstChild.firstChild.className="geStyleMenuItem";P.firstChild.firstChild.style.width=ba+"px";P.firstChild.firstChild.appendChild(Ja);return P}),E=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){D(P,110,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));D(P,110,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");D(P,110,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");D(P,110,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");D(P,110,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");D(P,110,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");D(P,110,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 4"]).setAttribute("title",mxResources.get("dotted")+" (3)")})),"",null,C),G=C.cloneNode(!1),J=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){var ba=[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,@@ -3199,7 +3200,7 @@ mxConstants.STYLE_DASHED,"width"];Format.processMenuIcon(this.editorUi.menus.sty"",ba,["pipe",null,null,null,null],"",null,null,null,!0,Format.pipeEdgeImage.src)).setAttribute("title","Pipe");Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,["wire",null,null,"1",null],"",null,null,null,!0,Format.wireEdgeImage.src)).setAttribute("title","Wire")})),"",null,G);w=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){D(P,40,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));D(P,40,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");D(P,40,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");D(P,40,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");D(P,40,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");D(P,40,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");D(P,40,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 4"]).setAttribute("title",mxResources.get("dotted")+" (3)")})),"",null,G);k=C.cloneNode(!1);var M=document.createElement("input");M.style.position="absolute";M.style.width="52px";M.style.left="148px";M.setAttribute("title",mxResources.get("linewidth"));-C.appendChild(M);var Q=M.cloneNode(!0);Q.style.width="56px";Q.style.left="144px";G.appendChild(Q);var L=this.createStepper(M,b,this.getUnitStep(),null,null,this.isFloatUnit());L.style.display=M.style.display;C.appendChild(L);L=this.createStepper(Q,f,this.getUnitStep(),null,null,this.isFloatUnit());L.style.display=Q.style.display;G.appendChild(L);mxEvent.addListener(M,"blur",b);mxEvent.addListener(M,"change",b);mxEvent.addListener(Q,"blur",f);mxEvent.addListener(Q,"change",f);var W=g.toolbar.addMenu(new Menu(mxUtils.bind(this,+C.appendChild(M);var Q=M.cloneNode(!0);Q.style.width="56px";Q.style.left="144px";G.appendChild(Q);var K=this.createStepper(M,b,this.getUnitStep(),null,null,this.isFloatUnit());K.style.display=M.style.display;C.appendChild(K);K=this.createStepper(Q,f,this.getUnitStep(),null,null,this.isFloatUnit());K.style.display=Q.style.display;G.appendChild(K);mxEvent.addListener(M,"blur",b);mxEvent.addListener(M,"change",b);mxEvent.addListener(Q,"blur",f);mxEvent.addListener(Q,"change",f);var W=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){"arrow"!=h.style.shape&&(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],null,null,!0,Format.straightImage.src)).setAttribute("title",mxResources.get("straight")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],null,null,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],null,null,!0,Format.horizontalElbowImage.src)).setAttribute("title",mxResources.get("vertical")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,null,!0,Format.verticalElbowImage.src)).setAttribute("title",mxResources.get("horizontal")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],null,null,!0,Format.horizontalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,@@ -3233,10 +3234,10 @@ Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STY!1,Format.ERzeroToOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src),"scaleX(-1)")):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW],[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)").setAttribute("title",mxResources.get("block")),P.div.style.width="40px",window.setTimeout(mxUtils.bind(this,function(){null!=P.div&&mxUtils.fit(P.div)}),0)})),"",null,k);J.style.width="67px";J.style.marginRight="2px";w.style.width="67px";w.style.marginRight="2px";W.style.width="67px";W.style.marginRight="2px";X.style.width="67px";X.style.marginRight="2px";T.style.width="67px";T.style.marginRight="2px";this.addArrow(J).appendChild(document.createElement("div"));this.addArrow(W).appendChild(document.createElement("div"));this.addArrow(X);this.addArrow(T);E.style.width="142px";E=this.addArrow(E);w=this.addArrow(w);var N=document.createElement("div");N.className="gePatternPreview";N.style.width="100px";N.style.borderBottomStyle=-"solid";E.appendChild(N);var ca=document.createElement("div");ca.className="gePatternPreview";ca.style.width="36px";ca.style.borderBottomStyle="solid";w.appendChild(ca);a.appendChild(v);a.appendChild(G);a.appendChild(C);v=C.cloneNode(!1);v.style.display="block";v.style.height="60px";v.style.paddingTop="2px";w=document.createElement("div");w.style.position="absolute";w.style.maxWidth="78px";w.style.overflow="hidden";w.style.textOverflow="ellipsis";w.style.marginTop="4px";w.style.fontWeight="normal";-mxUtils.write(w,mxResources.get("size"));v.appendChild(w);var H=this.addUnitInput(v,this.getUnit(),82,52,function(){Y.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),S=this.addUnitInput(v,this.getUnit(),16,52,function(){ia.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(v);E=document.createElement("div");E.style.height="8px";v.appendChild(E);w=w.cloneNode(!1);mxUtils.write(w,mxResources.get("spacing"));v.appendChild(w);var ea=this.addUnitInput(v,-this.getUnit(),82,52,function(){ha.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),la=this.addUnitInput(v,this.getUnit(),16,52,function(){ta.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(v);this.addLabel(v,mxResources.get("linestart"),82,62).style.fontSize="10px";this.addLabel(v,mxResources.get("lineend"),16,62).style.fontSize="10px";mxUtils.br(v);m=m.cloneNode(!1);m.className="geFormatEntry";w=document.createElement("div");mxUtils.write(w,-mxResources.get("perimeter"));m.appendChild(w);var O=this.addUnitInput(m,this.getUnit(),16,52,function(){aa.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());h.edges.length==h.cells.length?(a.appendChild(k),a.appendChild(v)):h.vertices.length==h.cells.length&&a.appendChild(m);var V=mxUtils.bind(this,function(P,ba,ma){function Ja(na,ya,za,Ka){za=za.getElementsByTagName("div")[0];null!=za&&g.updateCssForMarker(za,Ka,h.style.shape,na,ya);return za}h=g.getSelectionState();if(ma||+"solid";E.appendChild(N);var ca=document.createElement("div");ca.className="gePatternPreview";ca.style.width="36px";ca.style.borderBottomStyle="solid";w.appendChild(ca);a.appendChild(u);a.appendChild(G);a.appendChild(C);u=C.cloneNode(!1);u.style.display="block";u.style.height="60px";u.style.paddingTop="2px";w=document.createElement("div");w.style.position="absolute";w.style.maxWidth="78px";w.style.overflow="hidden";w.style.textOverflow="ellipsis";w.style.marginTop="4px";w.style.fontWeight="normal";+mxUtils.write(w,mxResources.get("size"));u.appendChild(w);var H=this.addUnitInput(u,this.getUnit(),82,52,function(){Y.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),S=this.addUnitInput(u,this.getUnit(),16,52,function(){ia.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);E=document.createElement("div");E.style.height="8px";u.appendChild(E);w=w.cloneNode(!1);mxUtils.write(w,mxResources.get("spacing"));u.appendChild(w);var ea=this.addUnitInput(u,+this.getUnit(),82,52,function(){ha.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),la=this.addUnitInput(u,this.getUnit(),16,52,function(){ta.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);this.addLabel(u,mxResources.get("linestart"),82,62).style.fontSize="10px";this.addLabel(u,mxResources.get("lineend"),16,62).style.fontSize="10px";mxUtils.br(u);m=m.cloneNode(!1);m.className="geFormatEntry";w=document.createElement("div");mxUtils.write(w,+mxResources.get("perimeter"));m.appendChild(w);var O=this.addUnitInput(m,this.getUnit(),16,52,function(){aa.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());h.edges.length==h.cells.length?(a.appendChild(k),a.appendChild(u)):h.vertices.length==h.cells.length&&a.appendChild(m);var V=mxUtils.bind(this,function(P,ba,ma){function Ja(na,ya,za,Ka){za=za.getElementsByTagName("div")[0];null!=za&&g.updateCssForMarker(za,Ka,h.style.shape,na,ya);return za}h=g.getSelectionState();if(ma||document.activeElement!=M)P=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)),M.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit();if(ma||document.activeElement!=Q)P=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)),Q.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit();p.style.visibility="connector"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape?"":"hidden";"1"==mxUtils.getValue(h.style,mxConstants.STYLE_CURVED,null)?p.value="curved":"1"==mxUtils.getValue(h.style,mxConstants.STYLE_ROUNDED,null)&&(p.value="rounded");N.style.borderBottom="1px solid black";"1"==mxUtils.getValue(h.style,mxConstants.STYLE_DASHED,null)&&(P=mxUtils.getValue(h.style,mxConstants.STYLE_DASH_PATTERN,""),ba=String(P).split(" "),2<=ba.length?(P=parseInt(ba[0])+parseInt(ba[1]),ba=parseInt(ba[0])/P*100,N.style.borderBottom="1px solid transparent",N.style.backgroundImage="linear-gradient(to right, black "+ba+"%, transparent 0%)",N.style.backgroundPosition="bottom left",N.style.backgroundSize=P+"px 1px",N.style.backgroundRepeat="repeat-x"):N.style.borderBottom="1px dashed black");ca.style.backgroundImage=N.style.backgroundImage;ca.style.backgroundPosition=N.style.backgroundPosition;ca.style.backgroundSize=N.style.backgroundSize;ca.style.backgroundRepeat=N.style.backgroundRepeat;ca.style.borderBottom=N.style.borderBottom;P=W.getElementsByTagName("div")[1];null!=P&&(ba=mxUtils.getValue(h.style,mxConstants.STYLE_EDGE,null),"1"==mxUtils.getValue(h.style,@@ -3250,35 +3251,35 @@ h.lineJumps&&(a.style.borderBottomStyle="none");Ja(mxUtils.getValue(h.style,mxConull,this.isFloatUnit(),!0);this.addKeyHandler(M,V);this.addKeyHandler(H,V);this.addKeyHandler(ea,V);this.addKeyHandler(S,V);this.addKeyHandler(la,V);this.addKeyHandler(O,V);d.getModel().addListener(mxEvent.CHANGE,V);this.listeners.push({destroy:function(){d.getModel().removeListener(V)}});V();return a};StyleFormatPanel.prototype.addLineJumps=function(a){var b=this.editorUi,f=b.editor.graph,e=b.getSelectionState();a.style.height="22px";if(Graph.lineJumpsEnabled&&0<e.edges.length&&0==e.vertices.length&&e.lineJumps){a.style.display="flex";a.style.alignItems="center";var g=document.createElement("div");g.style.position="absolute";g.style.maxWidth="72px";g.style.overflow="hidden";g.style.textOverflow="ellipsis";mxUtils.write(g,mxResources.get("lineJumps"));a.appendChild(g);var d=document.createElement("select");d.style.left="72px";d.style.width="72px";g=["none","arc","gap","sharp","line"];for(var h=0;h<g.length;h++){var m=document.createElement("option");m.setAttribute("value",g[h]);mxUtils.write(m,mxResources.get(g[h]));d.appendChild(m)}mxEvent.addListener(d,"change",function(w){f.getModel().beginUpdate();try{f.setCellStyles("jumpStyle",d.value,e.cells),b.fireEvent(new mxEventObject("styleChanged","keys",["jumpStyle"],"values",[d.value],"cells",e.cells))}finally{f.getModel().endUpdate()}mxEvent.consume(w)});-mxEvent.addListener(d,"click",function(w){mxEvent.consume(w)});a.appendChild(d);var p=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(p,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var v=mxUtils.bind(this,function(w,y,C){e=b.getSelectionState();d.value=mxUtils.getValue(e.style,"jumpStyle","none");if(C||document.activeElement!=p)w=parseInt(mxUtils.getValue(e.style,-"jumpSize",Graph.defaultJumpSize)),p.value=isNaN(w)?"":this.inUnit(w)+" "+this.getUnit()});this.addKeyHandler(p,v);f.getModel().addListener(mxEvent.CHANGE,v);this.listeners.push({destroy:function(){f.getModel().removeListener(v)}});v()}else a.style.display="none";return a};+mxEvent.addListener(d,"click",function(w){mxEvent.consume(w)});a.appendChild(d);var p=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(p,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var u=mxUtils.bind(this,function(w,y,C){e=b.getSelectionState();d.value=mxUtils.getValue(e.style,"jumpStyle","none");if(C||document.activeElement!=p)w=parseInt(mxUtils.getValue(e.style,+"jumpSize",Graph.defaultJumpSize)),p.value=isNaN(w)?"":this.inUnit(w)+" "+this.getUnit()});this.addKeyHandler(p,u);f.getModel().addListener(mxEvent.CHANGE,u);this.listeners.push({destroy:function(){f.getModel().removeListener(u)}});u()}else a.style.display="none";return a};StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi,f=b.editor.graph,e=b.getSelectionState(),g=document.createElement("table");g.className="geFullWidthElement";g.style.fontWeight="bold";g.style.tableLayout="fixed";var d=document.createElement("tbody"),h=document.createElement("tr");h.style.padding="0px";var m=document.createElement("td");m.style.padding="0px";m.style.width="50%";m.style.verticalAlign="top";var p=m.cloneNode(!0);p.style.paddingLeft="8px";h.appendChild(m);h.appendChild(p);-d.appendChild(h);g.appendChild(d);a.appendChild(g);var k=m,v=mxUtils.bind(this,function(y,C,D,E){y=this.createCellOption(y,C,D,null,null,E);y.style.alignItems="top";k.appendChild(y);k=k==m?p:m;return y}),w=mxUtils.bind(this,function(y,C,D){e=b.getSelectionState();m.innerText="";p.innerText="";k=m;e.rounded&&v(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);e.swimlane&&v(mxResources.get("divider"),"swimlaneLine",1);v(mxResources.get("sketch"),"sketch",0,function(G,J){f.updateCellStyles({sketch:J?-"1":null,curveFitting:J?Editor.sketchDefaultCurveFitting:null,jiggle:J?Editor.sketchDefaultJiggle:null},G)});e.glass&&v(mxResources.get("glass"),mxConstants.STYLE_GLASS,0);y=v(mxResources.get("shadow"),mxConstants.STYLE_SHADOW,0);Editor.enableShadowOption||(y.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(y,60));0<e.edges.length&&0==e.vertices.length&&v(mxResources.get("flowAnimation",null,"Flow Animation"),"flowAnimation",0);if(null!=e.customProperties)for(var E in e.customProperties)y=-e.customProperties[E],null!=y&&"bool"==y.type&&y.primary&&v(y.dispName,E,y.defVal?"1":"0")});f.getModel().addListener(mxEvent.CHANGE,w);this.listeners.push({destroy:function(){f.getModel().removeListener(w)}});w();return a};StyleFormatPanel.prototype.addStyleOps=function(a){1==this.editorUi.getSelectionState().cells.length&&this.addActions(a,["setAsDefaultStyle"]);return a};DiagramStylePanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);this.init()};mxUtils.extend(DiagramStylePanel,BaseFormatPanel);+d.appendChild(h);g.appendChild(d);a.appendChild(g);var k=m,u=mxUtils.bind(this,function(y,C,D,E){y=this.createCellOption(y,C,D,null,null,E);y.style.alignItems="top";k.appendChild(y);k=k==m?p:m;return y}),w=mxUtils.bind(this,function(y,C,D){e=b.getSelectionState();m.innerText="";p.innerText="";k=m;e.rounded&&u(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);e.swimlane&&u(mxResources.get("divider"),"swimlaneLine",1);u(mxResources.get("sketch"),"sketch",0,function(G,J){f.updateCellStyles({sketch:J?+"1":null,curveFitting:J?Editor.sketchDefaultCurveFitting:null,jiggle:J?Editor.sketchDefaultJiggle:null},G)});e.glass&&u(mxResources.get("glass"),mxConstants.STYLE_GLASS,0);y=u(mxResources.get("shadow"),mxConstants.STYLE_SHADOW,0);Editor.enableShadowOption||(y.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(y,60));0<e.edges.length&&0==e.vertices.length&&u(mxResources.get("flowAnimation",null,"Flow Animation"),"flowAnimation",0);if(null!=e.customProperties)for(var E in e.customProperties)y=+e.customProperties[E],null!=y&&"bool"==y.type&&y.primary&&u(y.dispName,E,y.defVal?"1":"0")});f.getModel().addListener(mxEvent.CHANGE,w);this.listeners.push({destroy:function(){f.getModel().removeListener(w)}});w();return a};StyleFormatPanel.prototype.addStyleOps=function(a){1==this.editorUi.getSelectionState().cells.length&&this.addActions(a,["setAsDefaultStyle"]);return a};DiagramStylePanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);this.init()};mxUtils.extend(DiagramStylePanel,BaseFormatPanel);DiagramStylePanel.prototype.init=function(){this.container.appendChild(this.addView(this.createPanel()))};DiagramStylePanel.prototype.getGlobalStyleButtons=function(){var a=this.editorUi,b=a.editor.graph,f=document.createElement("div");f.className="geFormatEntry";var e=document.createElement("input");e.setAttribute("type","checkbox");e.checked=Editor.sketchMode;f.appendChild(e);mxUtils.write(f,mxResources.get("sketch"));mxEvent.addListener(f,"click",function(d){if(b.isEnabled()){var h=!Editor.sketchMode;b.updateCellStyles({sketch:h?"1":null,curveFitting:h?Editor.sketchDefaultCurveFitting:null,jiggle:h?Editor.sketchDefaultJiggle:null},b.getVerticesAndEdges());a.setSketchMode(h);mxEvent.consume(d)}});f=[f,mxUtils.button(mxResources.get("rounded"),mxUtils.bind(this,function(d){var h=b.getVerticesAndEdges(),m=!0;if(0<h.length)for(var p=0;p<h.length;p++){var k=b.getCellStyle(h[p]);if(0==mxUtils.getValue(k,mxConstants.STYLE_ROUNDED,0)){m=!1;break}}m=!m;b.updateCellStyles({rounded:m?"1":"0"},h);m?(b.currentEdgeStyle.rounded="1",b.currentVertexStyle.rounded="1"):(delete b.currentEdgeStyle.rounded,delete b.currentVertexStyle.rounded);mxEvent.consume(d)}))];if(!b.isEnabled())for(e=0;e<f.length;e++)if("BUTTON"==f[e].nodeName)f[e].setAttribute("disabled","disabled");else{var g=f[e].getElementsByTagName("input");0<g.length&&g[0].setAttribute("disabled","disabled")}return f};DiagramStylePanel.prototype.addView=function(a){var b=this.editorUi,f=b.editor.graph,e=document.createElement("div");e.className="geFormatEntry";if(f.isEnabled()){var g=document.createElement("table");g.style.tableLayout="fixed";g.style.width="204px";var d=document.createElement("tbody"),h=document.createElement("tr"),m=document.createElement("td"),p=m.cloneNode(!0),k=document.createElement("div");k.style.display="inline-block";k.style.boxSizing="border-box";k.style.overflow="hidden";k.style.textOverflow=-"ellipsis";var v=mxResources.get("adaptiveColors");m.setAttribute("title",v);mxUtils.write(k,v);m.appendChild(k);mxUtils.lightDarkColorSupported?(k.style.width="75%",k=document.createElement("img"),k.setAttribute("title",mxResources.get("light")+"/"+mxResources.get("dark")),k.setAttribute("src",Editor.contrastImage),k.className="geButton",k.style.width="18px",k.style.height="18px",k.style.verticalAlign="bottom",m.appendChild(k),mxEvent.addListener(k,"click",function(){f.isEnabled()&&b.setDarkMode(!Editor.isDarkMode())})):+"ellipsis";var u=mxResources.get("adaptiveColors");m.setAttribute("title",u);mxUtils.write(k,u);m.appendChild(k);mxUtils.lightDarkColorSupported?(k.style.width="75%",k=document.createElement("img"),k.setAttribute("title",mxResources.get("light")+"/"+mxResources.get("dark")),k.setAttribute("src",Editor.contrastImage),k.className="geButton",k.style.width="18px",k.style.height="18px",k.style.verticalAlign="bottom",m.appendChild(k),mxEvent.addListener(k,"click",function(){f.isEnabled()&&b.setDarkMode(!Editor.isDarkMode())})):k.style.width="100%";var w=document.createElement("select");w.style.width="82px";k=document.createElement("option");k.setAttribute("title",mxResources.get("default")+" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")");mxUtils.write(k,mxUtils.htmlEntities(k.getAttribute("title")));k.setAttribute("value","default");w.appendChild(k);k=document.createElement("option");k.setAttribute("title",mxResources.get("automatic"));mxUtils.write(k,mxUtils.htmlEntities(k.getAttribute("title")));k.setAttribute("value","auto");w.appendChild(k);k=document.createElement("option");k.setAttribute("title",mxResources.get("simple"));mxUtils.write(k,mxUtils.htmlEntities(k.getAttribute("title")));k.setAttribute("value","simple");w.appendChild(k);k=document.createElement("option");k.setAttribute("title",mxResources.get("none"));mxUtils.write(k,mxUtils.htmlEntities(k.getAttribute("title")));k.setAttribute("value","none");w.appendChild(k);w.value=null==f.adaptiveColors?"default":f.adaptiveColors;mxEvent.addListener(w,"change",-function(){var C=new ChangePageSetup(b);C.ignoreColor=!0;C.ignoreImage=!0;C.adaptiveColors=w.value;f.model.execute(C)});p.appendChild(w);(!b.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&p.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"));h.appendChild(m);h.appendChild(p);d.appendChild(h);k=this.getGlobalStyleButtons();for(v=0;v<k.length;v+=2){m=m.cloneNode(!1);p=p.cloneNode(!1);h=h.cloneNode(!1);var y=k[v];y.style.width="100%";m.appendChild(y);-h.appendChild(m);y=k[v+1];null!=y&&(y.style.width="100%",p.appendChild(y));h.appendChild(p);d.appendChild(h)}g.appendChild(d);e.appendChild(g);a.appendChild(e);f.isEnabled()&&null!=Editor.styles&&this.addGraphStyles(a)}return a};+function(){var C=new ChangePageSetup(b);C.ignoreColor=!0;C.ignoreImage=!0;C.adaptiveColors=w.value;f.model.execute(C)});p.appendChild(w);(!b.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&p.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"));h.appendChild(m);h.appendChild(p);d.appendChild(h);k=this.getGlobalStyleButtons();for(u=0;u<k.length;u+=2){m=m.cloneNode(!1);p=p.cloneNode(!1);h=h.cloneNode(!1);var y=k[u];y.style.width="100%";m.appendChild(y);+h.appendChild(m);y=k[u+1];null!=y&&(y.style.width="100%",p.appendChild(y));h.appendChild(p);d.appendChild(h)}g.appendChild(d);e.appendChild(g);a.appendChild(e);f.isEnabled()&&null!=Editor.styles&&this.addGraphStyles(a)}return a};DiagramStylePanel.prototype.addGraphStyles=function(a){var b=this.editorUi,f=b.editor.graph,e=f.getModel(),g=f.view.gridColor,d=["fillColor","strokeColor","fontColor","gradientColor"];a.style.whiteSpace="normal";var h=mxUtils.bind(this,function(W,X){var T=f.getVerticesAndEdges();e.beginUpdate();try{for(var N=0;N<T.length;N++){var ca=f.getCellStyle(T[N]);p||null==ca.labelBackgroundColor?p&&f.updateCellStyles({labelBackgroundColor:mxConstants.NONE},[T[N]]):f.updateCellStyles({labelBackgroundColor:null!=X?X.background:null},[T[N]]);for(var H=e.isEdge(T[N]),S=e.getStyle(T[N]),ea=H?f.currentEdgeStyle:f.currentVertexStyle,la=0;la<W.length;la++)if(null!=ca[W[la]]&&ca[W[la]]!=mxConstants.NONE||W[la]!=mxConstants.STYLE_FILLCOLOR&&W[la]!=mxConstants.STYLE_STROKECOLOR)S=p&&H&&W[la]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(S,W[la],"default"):mxUtils.setStyle(S,W[la],ea[W[la]]);e.setStyle(T[N],S)}}finally{e.endUpdate()}}),m=mxUtils.bind(this,function(W,X,T){if(null!=W)for(var N=0;N<X.length;N++)if(null!=W[X[N]]&&W[X[N]]!=mxConstants.NONE||X[N]!=mxConstants.STYLE_FILLCOLOR&&X[N]!=mxConstants.STYLE_STROKECOLOR)W[X[N]]=T[X[N]]}),p=!0,k=mxUtils.bind(this,function(W,X,T,N,ca){if(null!=W){null!=T&&(p||null==X.labelBackgroundColor?p&&(X.labelBackgroundColor=mxConstants.NONE):(N=null!=N?N.background:null,ca=null!=ca?ca:f,null==N&&(N=ca.background),null==N&&(N=ca.defaultPageBackgroundColor),X.labelBackgroundColor=N));for(var H in W)if(null==T||null!=X[H]&&X[H]!=mxConstants.NONE||H!=mxConstants.STYLE_FILLCOLOR&&-H!=mxConstants.STYLE_STROKECOLOR)p&&e.isEdge(T)&&H==mxConstants.STYLE_FONTCOLOR?X[H]="default":X[H]=W[H]}}),v=mxUtils.bind(this,function(W,X,T,N,ca){var H=document.createElement("div");H.style.position="relative";H.style.pointerEvents="none";H.style.width="60px";H.style.height="60px";ca.appendChild(H);var S=new Graph(H,null,null,f.getStylesheet());S.shapeForegroundColor="light-dark(#000000, #c0c0c0)";S.shapeBackgroundColor="light-dark(var(--ge-panel-color), var(--ge-dark-panel-color))";S.resetViewOnRootChange=+H!=mxConstants.STYLE_STROKECOLOR)p&&e.isEdge(T)&&H==mxConstants.STYLE_FONTCOLOR?X[H]="default":X[H]=W[H]}}),u=mxUtils.bind(this,function(W,X,T,N,ca){var H=document.createElement("div");H.style.position="relative";H.style.pointerEvents="none";H.style.width="60px";H.style.height="60px";ca.appendChild(H);var S=new Graph(H,null,null,f.getStylesheet());S.shapeForegroundColor="light-dark(#000000, #c0c0c0)";S.shapeBackgroundColor="light-dark(var(--ge-panel-color), var(--ge-dark-panel-color))";S.resetViewOnRootChange=!1;S.foldingEnabled=!1;S.gridEnabled=!1;S.autoScroll=!1;S.setTooltips(!1);S.setConnectable(!1);S.setPanning(!1);S.setEnabled(!1);S.getCellStyle=function(O,V){V=null!=V?V:!0;var Y=mxUtils.clone(f.getCellStyle.apply(this,arguments)),ha=f.stylesheet.getDefaultVertexStyle(),ia=X;e.isEdge(O)&&(ha=f.stylesheet.getDefaultEdgeStyle(),ia=T);m(Y,d,ha);k(W,Y,O,N,S);k(ia,Y,O,N,S);V&&(Y=f.postProcessCellStyle(O,Y));return Y};S.model.beginUpdate();try{var ea=S.insertVertex(S.getDefaultParent(),null,"Shape",2,2,56,30,"strokeWidth=2;"),la=S.insertEdge(S.getDefaultParent(),null,"Connector",ea,ea,"edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;endSize=3;strokeWidth=2;");la.geometry.points=[new mxPoint(28,46)];la.geometry.offset=new mxPoint(0,8)}finally{S.model.endUpdate()}ca=S.view.getDrawPane().ownerSVGElement;null!=ca&&(H=ca.cloneNode(!0),H.style.position="absolute",H.style.clipPath="rect(0 52% 100% 0)",ca.style.clipPath="rect(0 100% 100% 51%)",ca.style.colorScheme="light",ca.parentNode.appendChild(H))}),-w=document.createElement("div");w.style.whiteSpace="normal";a.appendChild(w);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var y=mxUtils.bind(this,function(W,X,T,N,ca){var H=this.format.cachedStyleEntries[ca];null==H&&(H=document.createElement("div"),H.className="geGraphStylePreview",p||null==N||null==N.background||(H.style.backgroundColor=N.background),v(W,X,T,N,H),mxEvent.addGestureListeners(H,mxUtils.bind(this,function(S){H.style.opacity=.6}),null,mxUtils.bind(this,+w=document.createElement("div");w.style.whiteSpace="normal";a.appendChild(w);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var y=mxUtils.bind(this,function(W,X,T,N,ca){var H=this.format.cachedStyleEntries[ca];null==H&&(H=document.createElement("div"),H.className="geGraphStylePreview",p||null==N||null==N.background||(H.style.backgroundColor=N.background),u(W,X,T,N,H),mxEvent.addGestureListeners(H,mxUtils.bind(this,function(S){H.style.opacity=.6}),null,mxUtils.bind(this,function(S){H.style.opacity="";f.currentVertexStyle=mxUtils.clone(f.defaultVertexStyle);f.currentEdgeStyle=mxUtils.clone(f.defaultEdgeStyle);k(W,f.currentVertexStyle);k(W,f.currentEdgeStyle);k(X,f.currentVertexStyle);k(T,f.currentEdgeStyle);e.beginUpdate();try{var ea=d.slice(),la;for(la in W)ea.push(la);h(ea,N);if(!p){var O=new ChangePageSetup(b,null!=N?N.background:null);O.ignoreImage=!0;e.execute(O);e.execute(new ChangeGridColor(b,null!=N&&null!=N.gridColor?N.gridColor:g))}}finally{e.endUpdate()}})),mxClient.IS_TOUCH||(mxEvent.addListener(H,"mouseenter",mxUtils.bind(this,function(S){var ea=f.getCellStyle;S=f.background;var la=f.view.gridColor;p||(f.background=null!=N?N.background:null,f.view.gridColor=null!=N&&null!=N.gridColor?N.gridColor:g);f.getCellStyle=function(O,V){V=null!=V?V:!0;var Y=mxUtils.clone(ea.apply(this,arguments)),ha=f.stylesheet.getDefaultVertexStyle(),ia=X;e.isEdge(O)&&(ha=f.stylesheet.getDefaultEdgeStyle(),ia=T);m(Y,d,ha);k(W,Y,O,N);k(ia,Y,O,N);V&&(Y=this.postProcessCellStyle(O,Y));return Y};f.refresh();f.getCellStyle=ea;f.background=S;f.view.gridColor=la})),mxEvent.addListener(H,"mouseleave",mxUtils.bind(this,function(S){f.refresh()}))),mxClient.IS_IE||mxClient.IS_IE11||(this.format.cachedStyleEntries[ca]=H));w.appendChild(H)}),C=Math.ceil(Editor.styles.length/10);this.format.currentStylePage=null!=this.format.currentStylePage?this.format.currentStylePage:0;var D=[],E=mxUtils.bind(this,function(){0<D.length&&(D[this.format.currentStylePage].style.background="#84d7ff");for(var W=10*this.format.currentStylePage;W<Math.min(10*(this.format.currentStylePage+1),Editor.styles.length);W++){var X=Editor.styles[W];y(X.commonStyle,X.vertexStyle,X.edgeStyle,X.graph,W)}}),G=mxUtils.bind(this,function(W){0<=W&&W<C&&(D[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=W,E())});if(1<C){var J=document.createElement("div");J.className="geSwitcher";J.style.width="200px";for(var M=0;M<C;M++){var Q=document.createElement("div");-Q.className="geSwitcherDot";mxUtils.bind(this,function(W,X){mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){G(W)}))})(M,Q);J.appendChild(Q);D.push(Q)}a.appendChild(J);E();if(15>C&&0<D.length){M=document.createElement("div");M.className="geButton";M.style.backgroundImage="url("+Editor.chevronLeftImage+")";var L=M.cloneNode(!1);L.style.backgroundImage="url("+Editor.chevronRightImage+")";J.insertBefore(M,D[0]);J.appendChild(L);mxEvent.addListener(M,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage--1,C))}));mxEvent.addListener(L,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,C))}))}}else E();return a};DiagramFormatPanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);this.init()};mxUtils.extend(DiagramFormatPanel,BaseFormatPanel);DiagramFormatPanel.showPageView=!0;DiagramFormatPanel.prototype.showBackgroundImageOption=!0;+Q.className="geSwitcherDot";mxUtils.bind(this,function(W,X){mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){G(W)}))})(M,Q);J.appendChild(Q);D.push(Q)}a.appendChild(J);E();if(15>C&&0<D.length){M=document.createElement("div");M.className="geButton";M.style.backgroundImage="url("+Editor.chevronLeftImage+")";var K=M.cloneNode(!1);K.style.backgroundImage="url("+Editor.chevronRightImage+")";J.insertBefore(M,D[0]);J.appendChild(K);mxEvent.addListener(M,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage-+1,C))}));mxEvent.addListener(K,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,C))}))}}else E();return a};DiagramFormatPanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);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.addView=function(a){var b=this.editorUi,f=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("view")));this.addGridOption(a);DiagramFormatPanel.showPageView&&a.appendChild(this.createOption(mxResources.get("pageView"),function(){return f.pageVisible},function(d){b.actions.get("pageView").funct()},{install:function(d){this.listener=function(){d(f.pageVisible)};b.addListener("pageViewChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}));if(f.isEnabled()){if(this.showBackgroundImageOption){var e=this.createOption(mxResources.get("background"),function(){return null!=f.backgroundImage},function(d){d||(d=new ChangePageSetup(b,null,null),d.ignoreColor=!0,f.model.execute(d))},{install:function(d){this.listener=function(){d(null!=f.backgroundImage)};b.addListener("backgroundImageChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}),g=e.getElementsByTagName("input")[0];null!=g&&(g.style.visibility=null!=f.backgroundImage?@@ -3288,218 +3289,218 @@ function(d){d=new ChangePageSetup(b,d);d.ignoreImage=!0;f.model.execute(d)},"#ffDiagramFormatPanel.prototype.addOptions=function(a){var b=this.editorUi,f=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("options")));f.isEnabled()&&(a.appendChild(this.createOption(mxResources.get("connectionArrows"),function(){return f.connectionArrowsEnabled},function(e){b.actions.get("connectionArrows").funct()},{install:function(e){this.listener=function(){e(f.connectionArrowsEnabled)};b.addListener("connectionArrowsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),a.appendChild(this.createOption(mxResources.get("connectionPoints"),function(){return f.connectionHandler.isEnabled()},function(e){b.actions.get("connectionPoints").funct()},{install:function(e){this.listener=function(){e(f.connectionHandler.isEnabled())};b.addListener("connectionPointsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),a.appendChild(this.createOption(mxResources.get("guides"),function(){return f.graphHandler.guidesEnabled},function(e){b.actions.get("guides").funct()},{install:function(e){this.listener=function(){e(f.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=f.isFloatUnit()?parseFloat(d.value):parseInt(d.value);v=f.fromUnit(Math.max(f.inUnit(1),isNaN(v)?f.inUnit(10):v));v!=g.getGridSize()&&(mxGraph.prototype.gridSize=v,g.setGridSize(v));d.value=f.inUnit(v)+" "+f.getUnit();mxEvent.consume(k)}var f=this,e=this.editorUi,g=e.editor.graph,d=document.createElement("input");d.style.position="absolute";d.style.width="50px";d.value=this.inUnit(g.getGridSize())+" "+this.getUnit();var h=+DiagramFormatPanel.prototype.addGridOption=function(a){function b(k){var u=f.isFloatUnit()?parseFloat(d.value):parseInt(d.value);u=f.fromUnit(Math.max(f.inUnit(1),isNaN(u)?f.inUnit(10):u));u!=g.getGridSize()&&(mxGraph.prototype.gridSize=u,g.setGridSize(u));d.value=f.inUnit(u)+" "+f.getUnit();mxEvent.consume(k)}var f=this,e=this.editorUi,g=e.editor.graph,d=document.createElement("input");d.style.position="absolute";d.style.width="50px";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 m=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),e.setGridColor(k,m()));d.style.display=g.isGridEnabled()?"":"none";h.style.display=d.style.display;v!=g.isGridEnabled()&&(g.defaultGridEnabled=g.isGridEnabled(),e.fireEvent(new mxEventObject("gridEnabledChanged")))},+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 u=g.isGridEnabled();k==mxConstants.NONE?g.setGridEnabled(!1):(g.setGridEnabled(!0),e.setGridColor(k,m()));d.style.display=g.isGridEnabled()?"":"none";h.style.display=d.style.display;u!=g.isGridEnabled()&&(g.defaultGridEnabled=g.isGridEnabled(),e.fireEvent(new mxEventObject("gridEnabledChanged")))},g.view.gridColor,{install:function(k){this.listener=function(){k(g.isGridEnabled()?g.view.gridColor:mxConstants.NONE)};e.addListener("darkModeChanged",this.listener);e.addListener("gridColorChanged",this.listener);e.addListener("gridEnabledChanged",this.listener)},destroy:function(){e.removeListener(this.listener)}},null,null,p,!0,m);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,f=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("paperSize")));var e=PageSetupDialog.addPageFormatPanel(a,"formatpanel",f.pageFormat,function(d){if(null==f.pageFormat||f.pageFormat.width!=d.width||f.pageFormat.height!=d.height)d=new ChangePageSetup(b,null,null,d),d.ignoreColor=!0,d.ignoreImage=!0,f.model.execute(d)});this.addKeyHandler(e.widthInput,function(){e.set(f.pageFormat)});this.addKeyHandler(e.heightInput,function(){e.set(f.pageFormat)});var g=function(){e.set(f.pageFormat)};b.addListener("pageFormatChanged",g);this.listeners.push({destroy:function(){b.removeListener(g)}});f.getModel().addListener(mxEvent.CHANGE,g);this.listeners.push({destroy:function(){f.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,l,t){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=t?t:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function f(){mxSwimlane.call(this)}function e(){mxCylinder.call(this)}function g(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function h(){mxActor.call(this)}function m(){mxCylinder.call(this)}function p(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function w(){mxShape.call(this)}-function y(){mxShape.call(this)}function C(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1}function D(){mxActor.call(this)}function E(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function J(){mxActor.call(this)}function M(){mxActor.call(this)}function Q(){mxActor.call(this)}function L(){mxActor.call(this)}function W(){mxActor.call(this)}function X(){mxActor.call(this)}function T(){mxActor.call(this)}function N(c,l){this.canvas=c;this.canvas.setLineJoin("round");+DiagramFormatPanel.prototype.destroy=function(){BaseFormatPanel.prototype.destroy.apply(this,arguments);this.gridEnabledListener&&(this.editorUi.removeListener(this.gridEnabledListener),this.gridEnabledListener=null)};(function(){function a(c,l,t){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=t?t:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function f(){mxSwimlane.call(this)}function e(){mxCylinder.call(this)}function g(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function h(){mxActor.call(this)}function m(){mxCylinder.call(this)}function p(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function w(){mxShape.call(this)}+function y(){mxShape.call(this)}function C(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1}function D(){mxActor.call(this)}function E(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function J(){mxActor.call(this)}function M(){mxActor.call(this)}function Q(){mxActor.call(this)}function K(){mxActor.call(this)}function W(){mxActor.call(this)}function X(){mxActor.call(this)}function T(){mxActor.call(this)}function N(c,l){this.canvas=c;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.defaultVariation=l;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,N.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,N.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,N.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,N.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,N.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,N.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function H(){mxRectangleShape.call(this)}function S(){mxActor.call(this)}function ea(){mxActor.call(this)}function la(){mxActor.call(this)}function O(){mxRectangleShape.call(this)}function V(){mxRectangleShape.call(this)}function Y(){mxCylinder.call(this)}function ha(){mxShape.call(this)}function ia(){mxShape.call(this)}function ta(){mxEllipse.call(this)}function aa(){mxShape.call(this)}function P(){mxShape.call(this)}function ba(){mxRectangleShape.call(this)}function ma(){mxShape.call(this)}function Ja(){mxShape.call(this)}function na(){mxShape.call(this)}function ya(){mxShape.call(this)}function za(){mxShape.call(this)}function Ka(){mxCylinder.call(this)}function Qa(){mxCylinder.call(this)}function Ia(){mxRectangleShape.call(this)}function Ha(){mxDoubleEllipse.call(this)}function ra(){mxDoubleEllipse.call(this)}function Da(){mxArrowConnector.call(this);-this.spacing=0}function Va(){mxArrowConnector.call(this);this.spacing=0}function Wa(){mxActor.call(this)}function $a(){mxRectangleShape.call(this)}function db(){mxActor.call(this)}function pb(){mxActor.call(this)}function eb(){mxActor.call(this)}function Za(){mxActor.call(this)}function gb(){mxActor.call(this)}function bb(){mxActor.call(this)}function q(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function K(){mxEllipse.call(this)}+this.spacing=0}function Va(){mxArrowConnector.call(this);this.spacing=0}function Wa(){mxActor.call(this)}function $a(){mxRectangleShape.call(this)}function db(){mxActor.call(this)}function pb(){mxActor.call(this)}function eb(){mxActor.call(this)}function Za(){mxActor.call(this)}function gb(){mxActor.call(this)}function bb(){mxActor.call(this)}function q(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function L(){mxEllipse.call(this)}function R(){mxEllipse.call(this)}function Z(){mxEllipse.call(this)}function ja(){mxRhombus.call(this)}function fa(){mxEllipse.call(this)}function ka(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Ma(){mxEllipse.call(this)}function Na(){mxActor.call(this)}function Aa(){mxActor.call(this)}function Ga(){mxActor.call(this)}function wa(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=-!0;this.indent=2;this.rectOutline="single"}function ua(){mxConnector.call(this)}function Ta(){mxConnector.call(this)}function Ra(c,l,t,n,r,u,x,I,z,da){x+=z;var U=n.clone();n.x-=r*(2*x+z);n.y-=u*(2*x+z);r*=x+z;u*=x+z;return function(){c.ellipse(U.x-r-x,U.y-u-x,2*x,2*x);da?c.fillAndStroke():c.stroke()}}mxUtils.extend(a,mxShape);a.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var t=this.line[l];null!=t&&(t=new mxRectangle(t.x,t.y,this.strokewidth,-this.strokewidth),null==c?c=t:c.add(t))}this.bounds=null!=c?c:new mxRectangle};a.prototype.paintVertexShape=function(c,l,t,n,r){this.paintTableLine(c,this.line,0,0)};a.prototype.paintTableLine=function(c,l,t,n){if(null!=l){var r=null;c.begin();for(var u=0;u<l.length;u++){var x=l[u];null!=x&&(null==r?c.moveTo(x.x+t,x.y+n):null!=r&&c.lineTo(x.x+t,x.y+n));r=x}c.end();c.stroke()}};a.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=-this.line)for(var t=null,n=0;n<this.line.length&&!l;n++){var r=this.line[n];null!=r&&null!=t&&(l=mxUtils.rectangleIntersectsSegment(c,t,r));t=r}return l};mxCellRenderer.registerShape("tableLine",a);mxUtils.extend(b,mxSwimlane);b.prototype.getLabelBounds=function(c){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};b.prototype.paintVertexShape=function(c,l,t,n,r){var u=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):-!1,x=this.isHorizontal(),I=this.getTitleSize();0==I||this.outline?va.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-t));u||this.outline||!(x&&I<r||!x&&I<n)||this.paintForeground(c,l,t,n,r)};b.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.state){var u=this.flipH,x=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var I=u;u=x;x=I}c.rotate(-this.getShapeRotation(),-u,x,l+n/2,t+r/2);s=this.scale;l=this.bounds.x/s;t=this.bounds.y/s;n=this.bounds.width/s;r=this.bounds.height/s;this.paintTableForeground(c,l,t,n,r)}};b.prototype.paintTableForeground=function(c,l,t,n,r){n=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(r=0;r<n.length;r++)a.prototype.paintTableLine(c,n[r],l,t)};b.prototype.configurePointerEvents=function(c){0==this.getTitleSize()?-c.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",b);mxUtils.extend(f,b);f.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",f);mxUtils.extend(e,mxCylinder);e.prototype.size=20;e.prototype.darkOpacity=0;e.prototype.darkOpacity2=0;e.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,-parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-u,0);c.lineTo(n,u);c.lineTo(n,r);c.lineTo(u,r);c.lineTo(0,r-u);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(n-u,0),c.lineTo(n,u),c.lineTo(u,-u),c.close(),c.fill()),0!=I&&(c.setFillAlpha(Math.abs(I)),c.setFillColor(0>I?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(u,u),c.lineTo(u,r),c.lineTo(0,r-u),c.close(),c.fill()),c.begin(),c.moveTo(u,r),c.lineTo(u,u),c.lineTo(0,0),c.moveTo(u,u),c.lineTo(n,u),c.end(),c.stroke())};e.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube",+!0;this.indent=2;this.rectOutline="single"}function ua(){mxConnector.call(this)}function Ta(){mxConnector.call(this)}function Ra(c,l,t,n,r,v,x,I,z,da){x+=z;var U=n.clone();n.x-=r*(2*x+z);n.y-=v*(2*x+z);r*=x+z;v*=x+z;return function(){c.ellipse(U.x-r-x,U.y-v-x,2*x,2*x);da?c.fillAndStroke():c.stroke()}}mxUtils.extend(a,mxShape);a.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var t=this.line[l];null!=t&&(t=new mxRectangle(t.x,t.y,this.strokewidth,+this.strokewidth),null==c?c=t:c.add(t))}this.bounds=null!=c?c:new mxRectangle};a.prototype.paintVertexShape=function(c,l,t,n,r){this.paintTableLine(c,this.line,0,0)};a.prototype.paintTableLine=function(c,l,t,n){if(null!=l){var r=null;c.begin();for(var v=0;v<l.length;v++){var x=l[v];null!=x&&(null==r?c.moveTo(x.x+t,x.y+n):null!=r&&c.lineTo(x.x+t,x.y+n));r=x}c.end();c.stroke()}};a.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=+this.line)for(var t=null,n=0;n<this.line.length&&!l;n++){var r=this.line[n];null!=r&&null!=t&&(l=mxUtils.rectangleIntersectsSegment(c,t,r));t=r}return l};mxCellRenderer.registerShape("tableLine",a);mxUtils.extend(b,mxSwimlane);b.prototype.getLabelBounds=function(c){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};b.prototype.paintVertexShape=function(c,l,t,n,r){var v=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):+!1,x=this.isHorizontal(),I=this.getTitleSize();0==I||this.outline?va.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-t));v||this.outline||!(x&&I<r||!x&&I<n)||this.paintForeground(c,l,t,n,r)};b.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.state){var v=this.flipH,x=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var I=v;v=x;x=I}c.rotate(-this.getShapeRotation(),+v,x,l+n/2,t+r/2);s=this.scale;l=this.bounds.x/s;t=this.bounds.y/s;n=this.bounds.width/s;r=this.bounds.height/s;this.paintTableForeground(c,l,t,n,r)}};b.prototype.paintTableForeground=function(c,l,t,n,r){n=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(r=0;r<n.length;r++)a.prototype.paintTableLine(c,n[r],l,t)};b.prototype.configurePointerEvents=function(c){0==this.getTitleSize()?+c.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",b);mxUtils.extend(f,b);f.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",f);mxUtils.extend(e,mxCylinder);e.prototype.size=20;e.prototype.darkOpacity=0;e.prototype.darkOpacity2=0;e.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,+parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-v,0);c.lineTo(n,v);c.lineTo(n,r);c.lineTo(v,r);c.lineTo(0,r-v);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(n-v,0),c.lineTo(n,v),c.lineTo(v,+v),c.close(),c.fill()),0!=I&&(c.setFillAlpha(Math.abs(I)),c.setFillColor(0>I?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(v,v),c.lineTo(v,r),c.lineTo(0,r-v),c.close(),c.fill()),c.begin(),c.moveTo(v,r),c.lineTo(v,v),c.lineTo(0,0),c.moveTo(v,v),c.lineTo(n,v),c.end(),c.stroke())};e.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube",e);var Oa=Math.tan(mxUtils.toRadians(30)),Sa=(.5-Oa)/2;mxCellRenderer.registerShape("isoRectangle",h);mxUtils.extend(g,mxConnector);g.prototype.paintEdgeShape=function(c,l){var t=this.createMarker(c,l,!0),n=this.createMarker(c,l,!1);c.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&c.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);c.setShadow(!1);c.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,-arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=t&&t();null!=n&&n()};mxCellRenderer.registerShape("wire",g);mxUtils.extend(d,mxCylinder);d.prototype.size=6;d.prototype.paintVertexShape=function(c,l,t,n,r){c.setFillColor(this.stroke);var u=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(l+.5*(n-u),t+.5*(r-u),u,u);c.fill();c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};mxCellRenderer.registerShape("waypoint",-d);mxUtils.extend(h,mxActor);h.prototype.size=20;h.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/Oa);c.translate((n-l)/2,(r-l)/2+l/4);c.moveTo(0,.25*l);c.lineTo(.5*l,l*Sa);c.lineTo(l,.25*l);c.lineTo(.5*l,(.5-Sa)*l);c.lineTo(0,.25*l);c.close();c.end()};mxCellRenderer.registerShape("isoRectangle",h);mxUtils.extend(m,mxCylinder);m.prototype.size=20;m.prototype.redrawPath=function(c,l,t,n,r,u){l=Math.min(n,r/(.5+Oa));u?(c.moveTo(0,.25*l),c.lineTo(.5*l,(.5-Sa)*l),c.lineTo(l,.25*l),c.moveTo(.5*-l,(.5-Sa)*l),c.lineTo(.5*l,(1-Sa)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Sa),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Sa)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(p,mxCylinder);p.prototype.redrawPath=function(c,l,t,n,r,u){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(u&&null!=this.fill||!u&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),u||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,-l),c.curveTo(0,2*l,n,2*l,n,l),u||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),u||(c.stroke(),c.begin()),c.translate(0,-l);u||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};p.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",p);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=-0;k.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-u,0);c.lineTo(n,u);c.lineTo(n,r);c.lineTo(0,r);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),-c.begin(),c.moveTo(n-u,0),c.lineTo(n-u,u),c.lineTo(n,u),c.close(),c.fill()),c.begin(),c.moveTo(n-u,0),c.lineTo(n-u,u),c.lineTo(n,u),c.end(),c.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(v,k);mxCellRenderer.registerShape("note2",v);v.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(w,mxShape);w.prototype.isoAngle=-15;w.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;u=Math.min(n*Math.tan(u),.5*r);c.translate(l,t);c.begin();c.moveTo(.5*n,0);c.lineTo(n,u);c.lineTo(n,r-u);c.lineTo(.5*n,r);c.lineTo(0,r-u);c.lineTo(0,u);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,u);c.lineTo(.5*n,2*u);c.lineTo(n,u);c.moveTo(.5*n,2*u);c.lineTo(.5*n,r);c.stroke()};mxCellRenderer.registerShape("isoCube2",-w);mxUtils.extend(y,mxShape);y.prototype.size=15;y.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.translate(l,t);0==u?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),c.moveTo(0,u),c.arcTo(.5*n,u,0,0,1,.5*n,0),c.arcTo(.5*n,u,0,0,1,n,u),c.lineTo(n,r-u),c.arcTo(.5*n,u,0,0,1,.5*n,r),c.arcTo(.5*n,u,0,0,1,0,r-u),c.close(),c.fillAndStroke(),c.setShadow(!1),c.begin(),c.moveTo(n,u),c.arcTo(.5*n,u,0,0,1,.5*n,2*u),c.arcTo(.5*-n,u,0,0,1,0,u),c.stroke())};mxCellRenderer.registerShape("cylinder2",y);mxUtils.extend(C,mxCylinder);C.prototype.size=15;C.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"lid",!0);c.translate(l,t);0==u?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),x?(c.moveTo(0,u),c.arcTo(.5*n,u,0,0,1,.5*n,0),c.arcTo(.5*n,u,0,0,1,n,u)):(c.moveTo(0,0),c.arcTo(.5*n,u,0,0,0,.5*n,u),c.arcTo(.5*n,u,-0,0,0,n,0)),c.lineTo(n,r-u),c.arcTo(.5*n,u,0,0,1,.5*n,r),c.arcTo(.5*n,u,0,0,1,0,r-u),c.close(),c.fillAndStroke(),c.setShadow(!1),x&&(c.begin(),c.moveTo(n,u),c.arcTo(.5*n,u,0,0,1,.5*n,2*u),c.arcTo(.5*n,u,0,0,1,0,u),c.stroke()))};mxCellRenderer.registerShape("cylinder3",C);mxUtils.extend(D,mxActor);D.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n/2,.5*r,n,0);c.quadTo(.5*n,r/2,n,r);c.quadTo(n/2,.5*r,0,r);c.quadTo(.5*n,r/2,0,0);c.end()};mxCellRenderer.registerShape("switch",D);mxUtils.extend(E,-mxCylinder);E.prototype.tabWidth=60;E.prototype.tabHeight=20;E.prototype.tabPosition="right";E.prototype.arcSize=.1;E.prototype.isRoundable=function(){return!0};E.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var u=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),x=mxUtils.getValue(this.style,-"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1),z=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));I||(z*=Math.min(n,r));z=Math.min(z,.5*n,.5*(r-t));l=Math.max(l,z);l=Math.min(n-z,l);x||(z=0);c.begin();"left"==u?(c.moveTo(Math.max(z,0),t),c.lineTo(Math.max(z,0),0),c.lineTo(l,0),c.lineTo(l,t)):(c.moveTo(n-l,t),c.lineTo(n-l,0),c.lineTo(n-Math.max(z,0),0),c.lineTo(n-Math.max(z,0),t));x?(c.moveTo(0,z+t),c.arcTo(z,z,0,0,1,z,t),c.lineTo(n-z,t),c.arcTo(z,z,0,0,1,n,z+t),c.lineTo(n,+arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=t&&t();null!=n&&n()};mxCellRenderer.registerShape("wire",g);mxUtils.extend(d,mxCylinder);d.prototype.size=6;d.prototype.paintVertexShape=function(c,l,t,n,r){c.setFillColor(this.stroke);var v=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(l+.5*(n-v),t+.5*(r-v),v,v);c.fill();c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};mxCellRenderer.registerShape("waypoint",+d);mxUtils.extend(h,mxActor);h.prototype.size=20;h.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/Oa);c.translate((n-l)/2,(r-l)/2+l/4);c.moveTo(0,.25*l);c.lineTo(.5*l,l*Sa);c.lineTo(l,.25*l);c.lineTo(.5*l,(.5-Sa)*l);c.lineTo(0,.25*l);c.close();c.end()};mxCellRenderer.registerShape("isoRectangle",h);mxUtils.extend(m,mxCylinder);m.prototype.size=20;m.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(n,r/(.5+Oa));v?(c.moveTo(0,.25*l),c.lineTo(.5*l,(.5-Sa)*l),c.lineTo(l,.25*l),c.moveTo(.5*+l,(.5-Sa)*l),c.lineTo(.5*l,(1-Sa)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Sa),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Sa)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(p,mxCylinder);p.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,+l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,-l);v||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};p.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",p);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=+0;k.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-v,0);c.lineTo(n,v);c.lineTo(n,r);c.lineTo(0,r);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),+c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.close(),c.fill()),c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.end(),c.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(u,k);mxCellRenderer.registerShape("note2",u);u.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(w,mxShape);w.prototype.isoAngle=+15;w.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(n*Math.tan(v),.5*r);c.translate(l,t);c.begin();c.moveTo(.5*n,0);c.lineTo(n,v);c.lineTo(n,r-v);c.lineTo(.5*n,r);c.lineTo(0,r-v);c.lineTo(0,v);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,v);c.lineTo(.5*n,2*v);c.lineTo(n,v);c.moveTo(.5*n,2*v);c.lineTo(.5*n,r);c.stroke()};mxCellRenderer.registerShape("isoCube2",+w);mxUtils.extend(y,mxShape);y.prototype.size=15;y.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.translate(l,t);0==v?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),c.moveTo(0,v),c.arcTo(.5*n,v,0,0,1,.5*n,0),c.arcTo(.5*n,v,0,0,1,n,v),c.lineTo(n,r-v),c.arcTo(.5*n,v,0,0,1,.5*n,r),c.arcTo(.5*n,v,0,0,1,0,r-v),c.close(),c.fillAndStroke(),c.setShadow(!1),c.begin(),c.moveTo(n,v),c.arcTo(.5*n,v,0,0,1,.5*n,2*v),c.arcTo(.5*+n,v,0,0,1,0,v),c.stroke())};mxCellRenderer.registerShape("cylinder2",y);mxUtils.extend(C,mxCylinder);C.prototype.size=15;C.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"lid",!0);c.translate(l,t);0==v?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),x?(c.moveTo(0,v),c.arcTo(.5*n,v,0,0,1,.5*n,0),c.arcTo(.5*n,v,0,0,1,n,v)):(c.moveTo(0,0),c.arcTo(.5*n,v,0,0,0,.5*n,v),c.arcTo(.5*n,v,+0,0,0,n,0)),c.lineTo(n,r-v),c.arcTo(.5*n,v,0,0,1,.5*n,r),c.arcTo(.5*n,v,0,0,1,0,r-v),c.close(),c.fillAndStroke(),c.setShadow(!1),x&&(c.begin(),c.moveTo(n,v),c.arcTo(.5*n,v,0,0,1,.5*n,2*v),c.arcTo(.5*n,v,0,0,1,0,v),c.stroke()))};mxCellRenderer.registerShape("cylinder3",C);mxUtils.extend(D,mxActor);D.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n/2,.5*r,n,0);c.quadTo(.5*n,r/2,n,r);c.quadTo(n/2,.5*r,0,r);c.quadTo(.5*n,r/2,0,0);c.end()};mxCellRenderer.registerShape("switch",D);mxUtils.extend(E,+mxCylinder);E.prototype.tabWidth=60;E.prototype.tabHeight=20;E.prototype.tabPosition="right";E.prototype.arcSize=.1;E.prototype.isRoundable=function(){return!0};E.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var v=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),x=mxUtils.getValue(this.style,+"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1),z=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));I||(z*=Math.min(n,r));z=Math.min(z,.5*n,.5*(r-t));l=Math.max(l,z);l=Math.min(n-z,l);x||(z=0);c.begin();"left"==v?(c.moveTo(Math.max(z,0),t),c.lineTo(Math.max(z,0),0),c.lineTo(l,0),c.lineTo(l,t)):(c.moveTo(n-l,t),c.lineTo(n-l,0),c.lineTo(n-Math.max(z,0),0),c.lineTo(n-Math.max(z,0),t));x?(c.moveTo(0,z+t),c.arcTo(z,z,0,0,1,z,t),c.lineTo(n-z,t),c.arcTo(z,z,0,0,1,n,z+t),c.lineTo(n,r-z),c.arcTo(z,z,0,0,1,n-z,r),c.lineTo(z,r),c.arcTo(z,z,0,0,1,0,r-z)):(c.moveTo(0,t),c.lineTo(n,t),c.lineTo(n,r),c.lineTo(0,r));c.close();c.fillAndStroke();c.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(c.begin(),c.moveTo(n-30,t+20),c.lineTo(n-20,t+10),c.lineTo(n-10,t+20),c.close(),c.stroke())};mxCellRenderer.registerShape("folder",E);E.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"tabHeight",-15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var t=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),r=mxUtils.getValue(this.style,"absoluteArcSize",!1),u=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));r||(u*=Math.min(c.width,c.height));u=Math.min(u,.5*c.width,.5*(c.height-l));n||(u=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?-new mxRectangle(u,0,Math.min(c.width,c.width-t),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-t),0,u,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};mxUtils.extend(G,mxCylinder);G.prototype.arcSize=.1;G.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);var u=mxUtils.getValue(this.style,"rounded",!1),x=mxUtils.getValue(this.style,"absoluteArcSize",!1);l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));-t=mxUtils.getValue(this.style,"umlStateConnection",null);x||(l*=Math.min(n,r));l=Math.min(l,.5*n,.5*r);u||(l=0);u=0;null!=t&&(u=10);c.begin();c.moveTo(u,l);c.arcTo(l,l,0,0,1,u+l,0);c.lineTo(n-l,0);c.arcTo(l,l,0,0,1,n,l);c.lineTo(n,r-l);c.arcTo(l,l,0,0,1,n-l,r);c.lineTo(u+l,r);c.arcTo(l,l,0,0,1,u,r-l);c.close();c.fillAndStroke();c.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(c.roundrect(n-40,r-20,10,10,3,3),c.stroke(),c.roundrect(n-20,r-20,10,10,3,3),c.stroke(),+15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var t=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),r=mxUtils.getValue(this.style,"absoluteArcSize",!1),v=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));r||(v*=Math.min(c.width,c.height));v=Math.min(v,.5*c.width,.5*(c.height-l));n||(v=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?+new mxRectangle(v,0,Math.min(c.width,c.width-t),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-t),0,v,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};mxUtils.extend(G,mxCylinder);G.prototype.arcSize=.1;G.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);var v=mxUtils.getValue(this.style,"rounded",!1),x=mxUtils.getValue(this.style,"absoluteArcSize",!1);l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));+t=mxUtils.getValue(this.style,"umlStateConnection",null);x||(l*=Math.min(n,r));l=Math.min(l,.5*n,.5*r);v||(l=0);v=0;null!=t&&(v=10);c.begin();c.moveTo(v,l);c.arcTo(l,l,0,0,1,v+l,0);c.lineTo(n-l,0);c.arcTo(l,l,0,0,1,n,l);c.lineTo(n,r-l);c.arcTo(l,l,0,0,1,n-l,r);c.lineTo(v+l,r);c.arcTo(l,l,0,0,1,v,r-l);c.close();c.fillAndStroke();c.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(c.roundrect(n-40,r-20,10,10,3,3),c.stroke(),c.roundrect(n-20,r-20,10,10,3,3),c.stroke(),c.begin(),c.moveTo(n-30,r-15),c.lineTo(n-20,r-15),c.stroke());"connPointRefEntry"==t?(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke()):"connPointRefExit"==t&&(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke(),c.begin(),c.moveTo(5,.5*r-5),c.lineTo(15,.5*r+5),c.moveTo(15,.5*r-5),c.lineTo(5,.5*r+5),c.stroke())};G.prototype.getLabelMargins=function(c){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",G);mxUtils.extend(J,mxActor);J.prototype.size=30;J.prototype.isRoundable=function(){return!0};J.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n,0),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("card",J);mxUtils.extend(M,mxActor);M.prototype.size=.4;M.prototype.redrawPath=function(c,l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,l/2);c.quadTo(n/4,1.4*l,n/2,l/2);c.quadTo(3*n/4,l*(1-1.4),n,l/2);c.lineTo(n,r-l/2);c.quadTo(3*n/4,r-1.4*l,n/2,r-l/2);c.quadTo(n/4,r-l*(1-1.4),0,r-l/2);c.lineTo(0,l/2);c.close();c.end()};M.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",this.size),t=c.width,n=c.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return l*=n,new mxRectangle(c.x,c.y+l,t,n-2*l);l*=t;return new mxRectangle(c.x+l,c.y,t-2*l,n)}return c};mxCellRenderer.registerShape("tape",M);mxUtils.extend(Q,mxActor);Q.prototype.size=.3;Q.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*c.height):null};Q.prototype.redrawPath=function(c,l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,0);c.lineTo(n,0);c.lineTo(n,r-l/2);c.quadTo(3*n/4,r-1.4*l,n/2,r-l/2);c.quadTo(n/4,r-l*(1-1.4),0,r-l/2);c.lineTo(0,l/2);c.close();c.end()};mxCellRenderer.registerShape("document",Q);var Xa=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(c,l,t,n){var r=mxUtils.getValue(this.style,"size");return null!=r?n*Math.max(0,Math.min(1,r)):Xa.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,c.height*l),0,0)}return null};C.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(l/=2);return new mxRectangle(0,Math.min(c.height*this.scale,2*l*this.scale),0,Math.max(0,.3*-l*this.scale))}return null};E.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var t=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),r=mxUtils.getValue(this.style,"absoluteArcSize",!1),u=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));-r||(u*=Math.min(c.width,c.height));u=Math.min(u,.5*c.width,.5*(c.height-l));n||(u=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(u,0,Math.min(c.width,c.width-t),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-t),0,u,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};G.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,-"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};v.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,Math.max(0,l*this.scale))}return null};mxUtils.extend(L,mxActor);L.prototype.size=.2;L.prototype.fixedSize=20;L.prototype.isRoundable=function(){return!0};L.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,-"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r),new mxPoint(l,0),new mxPoint(n,0),new mxPoint(n-l,r)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("parallelogram",L);mxUtils.extend(W,mxActor);W.prototype.size=.2;W.prototype.fixedSize=+l*this.scale))}return null};E.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var t=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),r=mxUtils.getValue(this.style,"absoluteArcSize",!1),v=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));+r||(v*=Math.min(c.width,c.height));v=Math.min(v,.5*c.width,.5*(c.height-l));n||(v=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(v,0,Math.min(c.width,c.width-t),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-t),0,v,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};G.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,+"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};u.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,Math.max(0,l*this.scale))}return null};mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,+"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r),new mxPoint(l,0),new mxPoint(n,0),new mxPoint(n-l,r)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("parallelogram",K);mxUtils.extend(W,mxActor);W.prototype.size=.2;W.prototype.fixedSize=20;W.prototype.isRoundable=function(){return!0};W.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r),new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,r)],this.isRounded,t,!0)};mxCellRenderer.registerShape("trapezoid",W);mxUtils.extend(X,mxActor);X.prototype.size=.5;X.prototype.redrawPath=function(c,l,t,n,r){c.setFillColor(null);l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(n,0),new mxPoint(l,0),new mxPoint(l,r/2),new mxPoint(0,r/2),new mxPoint(l,r/2),new mxPoint(l,r),new mxPoint(n,r)],this.isRounded,t,!1);c.end()};mxCellRenderer.registerShape("curlyBracket",X);mxUtils.extend(T,mxActor);T.prototype.redrawPath=function(c,l,t,n,r){c.setStrokeWidth(1);c.setFillColor(this.stroke);l=n/5;c.rect(0,0,l,r);c.fillAndStroke();c.rect(2*l,0,l,r);c.fillAndStroke();c.rect(4*l,0,l,r);c.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",T);N.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};N.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)};N.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};N.prototype.curveTo=function(c,l,t,n,r,u){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=u};N.prototype.arcTo=function(c,l,t,n,r,u,x){this.originalArcTo.apply(this.canvas,arguments);this.lastX=u;this.lastY=-x};N.prototype.lineTo=function(c,l){if(null!=this.lastX&&null!=this.lastY){var t=function(U){return"number"===typeof U?U?0>U?-1:1:U===U?0:NaN:NaN},n=Math.abs(c-this.lastX),r=Math.abs(l-this.lastY),u=Math.sqrt(n*n+r*r);if(2>u){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;return}var x=Math.round(u/10),I=this.defaultVariation;5>x&&(x=5,I/=3);var z=t(c-this.lastX)*n/x;t=t(l-this.lastY)*r/x;n/=u;r/=u;for(u=0;u<x;u++){var da=(Math.random()-.5)*I;this.originalLineTo.call(this.canvas,-z*u+this.lastX-da*r,t*u+this.lastY-da*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l};N.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 kb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){kb.apply(this,+null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};N.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};N.prototype.curveTo=function(c,l,t,n,r,v){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=v};N.prototype.arcTo=function(c,l,t,n,r,v,x){this.originalArcTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=+x};N.prototype.lineTo=function(c,l){if(null!=this.lastX&&null!=this.lastY){var t=function(U){return"number"===typeof U?U?0>U?-1:1:U===U?0:NaN:NaN},n=Math.abs(c-this.lastX),r=Math.abs(l-this.lastY),v=Math.sqrt(n*n+r*r);if(2>v){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;return}var x=Math.round(v/10),I=this.defaultVariation;5>x&&(x=5,I/=3);var z=t(c-this.lastX)*n/x;t=t(l-this.lastY)*r/x;n/=v;r/=v;for(v=0;v<x;v++){var da=(Math.random()-.5)*I;this.originalLineTo.call(this.canvas,+z*v+this.lastX-da*r,t*v+this.lastY-da*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l};N.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 kb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){kb.apply(this,arguments);null==c.handJiggle&&(c.handJiggle=this.createHandJiggle(c))};var tb=mxShape.prototype.afterPaint;mxShape.prototype.afterPaint=function(c){tb.apply(this,arguments);null!=c.handJiggle&&(c.handJiggle.destroy(),delete c.handJiggle)};mxShape.prototype.createComicCanvas=function(c){return new N(c,mxUtils.getValue(this.style,"jiggle",Editor.sketchDefaultJiggle))};mxShape.prototype.createHandJiggle=function(c){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(c)};var ub=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"))&&ub.apply(this,arguments)};var lb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(c,l,t,n,r){if(null==c.handJiggle||c.handJiggle.constructor!=N)lb.apply(this,arguments);-else{var u=!0;null!=this.style&&(u="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(u||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)u||null!=this.fill&&this.fill!=mxConstants.NONE||(c.pointerEvents=!1),c.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?u=Math.min(n/2,Math.min(r/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(u=mxUtils.getValue(this.style,-mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,u=Math.min(n*u,r*u)),c.moveTo(l+u,t),c.lineTo(l+n-u,t),c.quadTo(l+n,t,l+n,t+u),c.lineTo(l+n,t+r-u),c.quadTo(l+n,t+r,l+n-u,t+r),c.lineTo(l+u,t+r),c.quadTo(l,t+r,l,t+r-u),c.lineTo(l,t+u),c.quadTo(l,t,l+u,t)):(c.moveTo(l,t),c.lineTo(l+n,t),c.lineTo(l+n,t+r),c.lineTo(l,t+r),c.lineTo(l,t)),c.close(),c.end(),c.fillAndStroke()}};mxUtils.extend(ca,mxRectangleShape);ca.prototype.size=.1;ca.prototype.fixedSize=!1;ca.prototype.isHtmlAllowed=+else{var v=!0;null!=this.style&&(v="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(v||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)v||null!=this.fill&&this.fill!=mxConstants.NONE||(c.pointerEvents=!1),c.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?v=Math.min(n/2,Math.min(r/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(v=mxUtils.getValue(this.style,+mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,v=Math.min(n*v,r*v)),c.moveTo(l+v,t),c.lineTo(l+n-v,t),c.quadTo(l+n,t,l+n,t+v),c.lineTo(l+n,t+r-v),c.quadTo(l+n,t+r,l+n-v,t+r),c.lineTo(l+v,t+r),c.quadTo(l,t+r,l,t+r-v),c.lineTo(l,t+v),c.quadTo(l,t,l+v,t)):(c.moveTo(l,t),c.lineTo(l+n,t),c.lineTo(l+n,t+r),c.lineTo(l,t+r),c.lineTo(l,t)),c.close(),c.end(),c.fillAndStroke()}};mxUtils.extend(ca,mxRectangleShape);ca.prototype.size=.1;ca.prototype.fixedSize=!1;ca.prototype.isHtmlAllowed=function(){return!1};ca.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var l=c.width,t=c.height;c=new mxRectangle(c.x,c.y,l,t);var n=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));if(this.isRounded){var r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/-100;n=Math.max(n,Math.min(l*r,t*r))}c.x+=Math.round(n);c.width-=Math.round(2*n);return c}return c};ca.prototype.paintForeground=function(c,l,t,n,r){var u=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),x=parseFloat(mxUtils.getValue(this.style,"size",this.size));x=u?Math.max(0,Math.min(n,x)):n*Math.max(0,Math.min(1,x));this.isRounded&&(u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,x=Math.max(x,Math.min(n*u,r*u)));x=Math.round(x);c.begin();+100;n=Math.max(n,Math.min(l*r,t*r))}c.x+=Math.round(n);c.width-=Math.round(2*n);return c}return c};ca.prototype.paintForeground=function(c,l,t,n,r){var v=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),x=parseFloat(mxUtils.getValue(this.style,"size",this.size));x=v?Math.max(0,Math.min(n,x)):n*Math.max(0,Math.min(1,x));this.isRounded&&(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,x=Math.max(x,Math.min(n*v,r*v)));x=Math.round(x);c.begin();c.moveTo(l+x,t);c.lineTo(l+x,t+r);c.moveTo(l+n-x,t);c.lineTo(l+n-x,t+r);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(H,mxRectangleShape);H.prototype.paintBackground=function(c,l,t,n,r){c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};H.prototype.paintForeground=function(c,l,t,n,r){};mxCellRenderer.registerShape("transparent",H);mxUtils.extend(S,mxHexagon);-S.prototype.size=30;S.prototype.position=.5;S.prototype.position2=.5;S.prototype.base=20;S.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};S.prototype.isRoundable=function(){return!0};S.prototype.redrawPath=function(c,l,t,n,r){l=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var u=n*Math.max(0,-Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),x=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),I=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-t),new mxPoint(Math.min(n,u+I),r-t),new mxPoint(x,r),new mxPoint(Math.max(0,u),r-t),new mxPoint(0,r-t)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",S);mxUtils.extend(ea,+S.prototype.size=30;S.prototype.position=.5;S.prototype.position2=.5;S.prototype.base=20;S.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};S.prototype.isRoundable=function(){return!0};S.prototype.redrawPath=function(c,l,t,n,r){l=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var v=n*Math.max(0,+Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),x=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),I=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-t),new mxPoint(Math.min(n,v+I),r-t),new mxPoint(x,r),new mxPoint(Math.max(0,v),r-t),new mxPoint(0,r-t)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",S);mxUtils.extend(ea,mxActor);ea.prototype.size=.2;ea.prototype.fixedSize=20;ea.prototype.isRoundable=function(){return!0};ea.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(0,r),new mxPoint(l,r/2)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("step",ea);mxUtils.extend(la,mxHexagon);la.prototype.size=.25;la.prototype.fixedSize=20;la.prototype.isRoundable=function(){return!0};la.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,-"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,.5*r),new mxPoint(n-l,r),new mxPoint(l,r),new mxPoint(0,.5*r)],this.isRounded,t,!0)};mxCellRenderer.registerShape("hexagon",la);mxUtils.extend(O,mxRectangleShape);O.prototype.isHtmlAllowed=function(){return!1};O.prototype.paintForeground=function(c,l,t,n,r){var u=Math.min(n/5,r/5)+1;c.begin();c.moveTo(l+n/2,t+u);c.lineTo(l+n/2,-t+r-u);c.moveTo(l+u,t+r/2);c.lineTo(l+n-u,t+r/2);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",O);var mb=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};mxRhombus.prototype.paintVertexShape=-function(c,l,t,n,r){mb.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var u=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=u;t+=u;n-=2*u;r-=2*u;0<n&&0<r&&(c.setShadow(!1),mb.apply(this,[c,l,t,n,r]))}};mxUtils.extend(V,mxRectangleShape);V.prototype.isHtmlAllowed=function(){return!1};V.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;-return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};V.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var u=Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=u;t+=u;n-=2*u;r-=2*u;0<n&&0<r&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);u=0;do{var x=mxCellRenderer.defaultShapes[this.style["symbol"+u]];if(null!=x){var I=this.style["symbol"+u+"Align"],-z=this.style["symbol"+u+"VerticalAlign"],da=this.style["symbol"+u+"Width"],U=this.style["symbol"+u+"Height"],Fa=this.style["symbol"+u+"Spacing"]||0,Ua=this.style["symbol"+u+"VSpacing"]||Fa,Pa=this.style["symbol"+u+"ArcSpacing"];null!=Pa&&(Pa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Fa+=Pa,Ua+=Pa);Pa=l;var oa=t;Pa=I==mxConstants.ALIGN_CENTER?Pa+(n-da)/2:I==mxConstants.ALIGN_RIGHT?Pa+(n-da-Fa):Pa+Fa;oa=z==mxConstants.ALIGN_MIDDLE?oa+(r-U)/2:z==mxConstants.ALIGN_BOTTOM?oa+(r-U-Ua):oa+-Ua;c.save();I=new x;I.style=this.style;x.prototype.paintVertexShape.call(I,c,Pa,oa,da,U);c.restore()}u++}while(null!=x)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",V);mxUtils.extend(Y,mxCylinder);Y.prototype.redrawPath=function(c,l,t,n,r,u){u?(c.moveTo(0,0),c.lineTo(n/2,r/2),c.lineTo(n,0),c.end()):(c.moveTo(0,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(0,r),c.close())};mxCellRenderer.registerShape("message",Y);mxUtils.extend(ha,mxShape);ha.prototype.paintBackground=+"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,.5*r),new mxPoint(n-l,r),new mxPoint(l,r),new mxPoint(0,.5*r)],this.isRounded,t,!0)};mxCellRenderer.registerShape("hexagon",la);mxUtils.extend(O,mxRectangleShape);O.prototype.isHtmlAllowed=function(){return!1};O.prototype.paintForeground=function(c,l,t,n,r){var v=Math.min(n/5,r/5)+1;c.begin();c.moveTo(l+n/2,t+v);c.lineTo(l+n/2,+t+r-v);c.moveTo(l+v,t+r/2);c.lineTo(l+n-v,t+r/2);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",O);var mb=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};mxRhombus.prototype.paintVertexShape=+function(c,l,t,n,r){mb.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var v=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=v;t+=v;n-=2*v;r-=2*v;0<n&&0<r&&(c.setShadow(!1),mb.apply(this,[c,l,t,n,r]))}};mxUtils.extend(V,mxRectangleShape);V.prototype.isHtmlAllowed=function(){return!1};V.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;+return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};V.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var v=Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=v;t+=v;n-=2*v;r-=2*v;0<n&&0<r&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);v=0;do{var x=mxCellRenderer.defaultShapes[this.style["symbol"+v]];if(null!=x){var I=this.style["symbol"+v+"Align"],+z=this.style["symbol"+v+"VerticalAlign"],da=this.style["symbol"+v+"Width"],U=this.style["symbol"+v+"Height"],Fa=this.style["symbol"+v+"Spacing"]||0,Ua=this.style["symbol"+v+"VSpacing"]||Fa,Pa=this.style["symbol"+v+"ArcSpacing"];null!=Pa&&(Pa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Fa+=Pa,Ua+=Pa);Pa=l;var oa=t;Pa=I==mxConstants.ALIGN_CENTER?Pa+(n-da)/2:I==mxConstants.ALIGN_RIGHT?Pa+(n-da-Fa):Pa+Fa;oa=z==mxConstants.ALIGN_MIDDLE?oa+(r-U)/2:z==mxConstants.ALIGN_BOTTOM?oa+(r-U-Ua):oa++Ua;c.save();I=new x;I.style=this.style;x.prototype.paintVertexShape.call(I,c,Pa,oa,da,U);c.restore()}v++}while(null!=x)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",V);mxUtils.extend(Y,mxCylinder);Y.prototype.redrawPath=function(c,l,t,n,r,v){v?(c.moveTo(0,0),c.lineTo(n/2,r/2),c.lineTo(n,0),c.end()):(c.moveTo(0,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(0,r),c.close())};mxCellRenderer.registerShape("message",Y);mxUtils.extend(ha,mxShape);ha.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.ellipse(n/4,0,n/2,r/4);c.fillAndStroke();c.begin();c.moveTo(n/2,r/4);c.lineTo(n/2,2*r/3);c.moveTo(n/2,r/3);c.lineTo(0,r/3);c.moveTo(n/2,r/3);c.lineTo(n,r/3);c.moveTo(n/2,2*r/3);c.lineTo(0,r);c.moveTo(n/2,2*r/3);c.lineTo(n,r);c.end();c.stroke()};mxCellRenderer.registerShape("umlActor",ha);mxUtils.extend(ia,mxShape);ia.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};ia.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(0,r/4);c.lineTo(0,3*r/4);c.end();c.stroke();c.begin();c.moveTo(0,r/2);c.lineTo(n/6,r/2);c.end();c.stroke();c.ellipse(n/6,0,5*n/6,r);c.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",ia);mxUtils.extend(ta,mxEllipse);ta.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+n/8,t+r);c.lineTo(l+7*n/8,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("umlEntity",ta);mxUtils.extend(aa,mxShape);aa.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(n,0);c.lineTo(0,r);c.moveTo(0,0);c.lineTo(n,r);c.end();c.stroke()};mxCellRenderer.registerShape("umlDestroy",aa);mxUtils.extend(P,mxShape);P.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/8,c.width,7*c.height/8)};P.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,0);c.end();c.stroke();c.ellipse(0,r/8,n,7*r/8);c.fillAndStroke()};P.prototype.paintForeground=-function(c,l,t,n,r){c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,r/4);c.end();c.stroke()};mxCellRenderer.registerShape("umlControl",P);mxUtils.extend(ba,mxRectangleShape);ba.prototype.size=40;ba.prototype.isHtmlAllowed=function(){return!1};ba.prototype.getLabelBounds=function(c){var l=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,l)};ba.prototype.paintBackground=function(c,l,t,n,r){var u=Math.max(0,Math.min(r,-parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"participant");null==x||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,c,l,t,n,u):(x=this.state.view.graph.cellRenderer.getShape(x),null!=x&&x!=ba&&(x=new x,x.apply(this.state),c.save(),x.paintVertexShape(c,l,t,n,u),c.restore()));u<r&&(c.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),c.begin(),c.moveTo(l+n/2,t+u),c.lineTo(l+n/2,t+r),c.end(),c.stroke())};ba.prototype.paintForeground=-function(c,l,t,n,r){var u=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,c,l,t,n,Math.min(r,u))};mxCellRenderer.registerShape("umlLifeline",ba);mxUtils.extend(ma,mxShape);ma.prototype.width=60;ma.prototype.height=30;ma.prototype.corner=10;ma.prototype.configurePointerEvents=function(c){var l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=l&&l!=mxConstants.NONE&&-0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};ma.prototype.getLabelMargins=function(c){return new mxRectangle(0,0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};ma.prototype.paintBackground=function(c,l,t,n,r){var u=this.corner,x=Math.min(n,Math.max(u,parseFloat(mxUtils.getValue(this.style,"width",-this.width)))),I=Math.min(r,Math.max(1.5*u,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),z=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);z!=mxConstants.NONE&&(c.setFillColor(z),c.rect(l,t,n,r),c.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(c,l,t,n,r),c.setGradient(this.fill,this.gradient,l,t,n,r,this.gradientDirection)):c.setFillColor(this.fill);c.pointerEvents=!0;-c.begin();c.moveTo(l,t);c.lineTo(l+x,t);c.lineTo(l+x,t+Math.max(0,I-1.5*u));c.lineTo(l+Math.max(0,x-u),t+I);c.lineTo(l,t+I);c.close();c.fillAndStroke();this.configurePointerEvents(c);c.begin();c.moveTo(l+x,t);c.lineTo(l+n,t);c.lineTo(l+n,t+r);c.lineTo(l,t+r);c.lineTo(l,t+I);c.stroke()};mxCellRenderer.registerShape("umlFrame",ma);mxPerimeter.CenterPerimeter=function(c,l,t,n){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=+function(c,l,t,n,r){c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,r/4);c.end();c.stroke()};mxCellRenderer.registerShape("umlControl",P);mxUtils.extend(ba,mxRectangleShape);ba.prototype.size=40;ba.prototype.isHtmlAllowed=function(){return!1};ba.prototype.getLabelBounds=function(c){var l=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,l)};ba.prototype.paintBackground=function(c,l,t,n,r){var v=Math.max(0,Math.min(r,+parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"participant");null==x||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,c,l,t,n,v):(x=this.state.view.graph.cellRenderer.getShape(x),null!=x&&x!=ba&&(x=new x,x.apply(this.state),c.save(),x.paintVertexShape(c,l,t,n,v),c.restore()));v<r&&(c.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),c.begin(),c.moveTo(l+n/2,t+v),c.lineTo(l+n/2,t+r),c.end(),c.stroke())};ba.prototype.paintForeground=+function(c,l,t,n,r){var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,c,l,t,n,Math.min(r,v))};mxCellRenderer.registerShape("umlLifeline",ba);mxUtils.extend(ma,mxShape);ma.prototype.width=60;ma.prototype.height=30;ma.prototype.corner=10;ma.prototype.configurePointerEvents=function(c){var l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=l&&l!=mxConstants.NONE&&+0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};ma.prototype.getLabelMargins=function(c){return new mxRectangle(0,0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};ma.prototype.paintBackground=function(c,l,t,n,r){var v=this.corner,x=Math.min(n,Math.max(v,parseFloat(mxUtils.getValue(this.style,"width",+this.width)))),I=Math.min(r,Math.max(1.5*v,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),z=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);z!=mxConstants.NONE&&(c.setFillColor(z),c.rect(l,t,n,r),c.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(c,l,t,n,r),c.setGradient(this.fill,this.gradient,l,t,n,r,this.gradientDirection)):c.setFillColor(this.fill);c.pointerEvents=!0;+c.begin();c.moveTo(l,t);c.lineTo(l+x,t);c.lineTo(l+x,t+Math.max(0,I-1.5*v));c.lineTo(l+Math.max(0,x-v),t+I);c.lineTo(l,t+I);c.close();c.fillAndStroke();this.configurePointerEvents(c);c.begin();c.moveTo(l+x,t);c.lineTo(l+n,t);c.lineTo(l+n,t+r);c.lineTo(l,t+r);c.lineTo(l,t+I);c.stroke()};mxCellRenderer.registerShape("umlFrame",ma);mxPerimeter.CenterPerimeter=function(c,l,t,n){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(c,l,t,n){n=ba.prototype.size;null!=l&&(n=mxUtils.getValue(l.style,"size",n)*l.view.scale);l=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;t.x<c.getCenterX()&&(l=-1*(l+1));return new mxPoint(c.getCenterX()+l,Math.min(c.y+c.height,Math.max(c.y+n,t.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(c,l,t,n){n=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(c,l,t,n){n=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;null!=l.style.backboneSize&&(n+=parseFloat(l.style.backboneSize)*l.view.scale/2-1);if("south"==l.style[mxConstants.STYLE_DIRECTION]||"north"==l.style[mxConstants.STYLE_DIRECTION])return t.x<c.getCenterX()&&(n=-1*(n+1)),new mxPoint(c.getCenterX()+n,Math.min(c.y+c.height,Math.max(c.y,t.y)));t.y<c.getCenterY()&&(n=-1*(n+1));return new mxPoint(Math.min(c.x+c.width,Math.max(c.x,t.x)),c.getCenterY()+n)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(c,l,t,n){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(c,new mxRectangle(0,0,0,Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(l.style,"size",S.prototype.size))*l.view.scale))),l.style),l,t,n)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(c,-l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),u=r?L.prototype.fixedSize:L.prototype.size;null!=l&&(u=mxUtils.getValue(l.style,"size",u));r&&(u*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I),new mxPoint(x+z,I+r),new mxPoint(x+-z,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I)]):(r=r?Math.max(0,Math.min(.5*z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x+r,I),new mxPoint(x+z,I),new mxPoint(x+z-r,I+da),new mxPoint(x,I+da),new mxPoint(x+r,I)]);da=c.getCenterX();c=c.getCenterY();c=new mxPoint(da,c);n&&(t.x<x||t.x>x+z?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,c,t)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,-"fixedSize","0"),u=r?W.prototype.fixedSize:W.prototype.size;null!=l&&(u=mxUtils.getValue(l.style,"size",u));r&&(u*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(.5*z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x+r,I),new mxPoint(x+z-r,I),new mxPoint(x+z,I+da),new mxPoint(x,I+da),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_WEST?-(r=r?Math.max(0,Math.min(z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I),new mxPoint(x+z,I),new mxPoint(x+z-r,I+da),new mxPoint(x+r,I+da),new mxPoint(x,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I+r),new mxPoint(x+z,I),new mxPoint(x+z,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da-r),new mxPoint(x,-I+da),new mxPoint(x,I)]);da=c.getCenterX();c=c.getCenterY();c=new mxPoint(da,c);n&&(t.x<x||t.x>x+z?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,c,t)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),u=r?ea.prototype.fixedSize:ea.prototype.size;null!=l&&(u=mxUtils.getValue(l.style,"size",u));r&&(u*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height,U=c.getCenterX();-c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I),new mxPoint(x+z-r,I),new mxPoint(x+z,c),new mxPoint(x+z-r,I+da),new mxPoint(x,I+da),new mxPoint(x+r,c),new mxPoint(x,I)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x+r,I),new mxPoint(x+z,I),new mxPoint(x+-z-r,c),new mxPoint(x+z,I+da),new mxPoint(x+r,I+da),new mxPoint(x,c),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I+r),new mxPoint(U,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da),new mxPoint(U,I+da-r),new mxPoint(x,I+da),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I),new mxPoint(U,I+r),new mxPoint(x+z,I),new mxPoint(x+z,I+da-r),new mxPoint(U,I+da),new mxPoint(x,-I+da-r),new mxPoint(x,I)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(I,U,t)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),u=r?la.prototype.fixedSize:la.prototype.size;null!=l&&(u=mxUtils.getValue(l.style,"size",u));r&&(u*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height,U=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,-mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(U,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da-r),new mxPoint(U,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I+r),new mxPoint(U,I)]):(r=r?Math.max(0,Math.min(z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x+r,I),new mxPoint(x+z-r,I),new mxPoint(x+z,c),new mxPoint(x+z-r,I+da),new mxPoint(x+-r,I+da),new mxPoint(x,c),new mxPoint(x+r,I)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(I,U,t)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(Ja,mxShape);Ja.prototype.size=10;Ja.prototype.paintBackground=function(c,l,t,n,r){var u=parseFloat(mxUtils.getValue(this.style,"size",this.size));c.translate(l,t);c.ellipse((n-u)/2,0,u,u);c.fillAndStroke();c.begin();c.moveTo(n/2,u);c.lineTo(n/2,r);c.end();c.stroke()};-mxCellRenderer.registerShape("lollipop",Ja);mxUtils.extend(na,mxShape);na.prototype.size=10;na.prototype.inset=2;na.prototype.paintBackground=function(c,l,t,n,r){var u=parseFloat(mxUtils.getValue(this.style,"size",this.size)),x=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.begin();c.moveTo(n/2,u+x);c.lineTo(n/2,r);c.end();c.stroke();c.begin();c.moveTo((n-u)/2-x,u/2);c.quadTo((n-u)/2-x,u+x,n/2,u+x);c.quadTo((n+u)/2+x,u+x,(n+u)/2+x,u/2);c.end();c.stroke()};-mxCellRenderer.registerShape("requires",na);mxUtils.extend(ya,mxShape);ya.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.end();c.stroke()};mxCellRenderer.registerShape("requiredInterface",ya);mxUtils.extend(za,mxShape);za.prototype.inset=2;za.prototype.paintBackground=function(c,l,t,n,r){var u=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.ellipse(0,u,n-2*u,r-2*u);c.fillAndStroke();-c.begin();c.moveTo(n/2,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n/2,r);c.end();c.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",za);mxUtils.extend(Ka,mxCylinder);Ka.prototype.jettyWidth=20;Ka.prototype.jettyHeight=10;Ka.prototype.redrawPath=function(c,l,t,n,r,u){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=Math.min(l,r-l),z=Math.min(I+2*l,r-l);u?(c.moveTo(t,I),-c.lineTo(x,I),c.lineTo(x,I+l),c.lineTo(t,I+l),c.moveTo(t,z),c.lineTo(x,z),c.lineTo(x,z+l),c.lineTo(t,z+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,z+l),c.lineTo(0,z+l),c.lineTo(0,z),c.lineTo(t,z),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("module",Ka);mxUtils.extend(Qa,mxCylinder);Qa.prototype.jettyWidth=32;Qa.prototype.jettyHeight=12;Qa.prototype.redrawPath=function(c,l,t,n,r,u){var x=parseFloat(mxUtils.getValue(this.style,-"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=.3*r-l/2,z=.7*r-l/2;u?(c.moveTo(t,I),c.lineTo(x,I),c.lineTo(x,I+l),c.lineTo(t,I+l),c.moveTo(t,z),c.lineTo(x,z),c.lineTo(x,z+l),c.lineTo(t,z+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,z+l),c.lineTo(0,z+l),c.lineTo(0,z),c.lineTo(t,z),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("component",-Qa);mxUtils.extend(Ia,mxRectangleShape);Ia.prototype.paintForeground=function(c,l,t,n,r){var u=n/2,x=r/2,I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;c.begin();this.addPoints(c,[new mxPoint(l+u,t),new mxPoint(l+n,t+x),new mxPoint(l+u,t+r),new mxPoint(l,t+x)],this.isRounded,I,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Ia);mxUtils.extend(Ha,mxDoubleEllipse);Ha.prototype.outerStroke=-!0;Ha.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.min(4,Math.min(n/5,r/5));0<n&&0<r&&(c.ellipse(l+u,t+u,n-2*u,r-2*u),c.fillAndStroke());c.setShadow(!1);this.outerStroke&&(c.ellipse(l,t,n,r),c.stroke())};mxCellRenderer.registerShape("endState",Ha);mxUtils.extend(ra,Ha);ra.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",ra);mxUtils.extend(Da,mxArrowConnector);Da.prototype.defaultWidth=4;Da.prototype.isOpenEnded=function(){return!0};Da.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,+l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?K.prototype.fixedSize:K.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+z,I+r),new mxPoint(x++z,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I)]):(r=r?Math.max(0,Math.min(.5*z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+z,I),new mxPoint(x+z-r,I+da),new mxPoint(x,I+da),new mxPoint(x+r,I)]);da=c.getCenterX();c=c.getCenterY();c=new mxPoint(da,c);n&&(t.x<x||t.x>x+z?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,c,t)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,+"fixedSize","0"),v=r?W.prototype.fixedSize:W.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(.5*z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+z-r,I),new mxPoint(x+z,I+da),new mxPoint(x,I+da),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_WEST?+(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+z,I),new mxPoint(x+z-r,I+da),new mxPoint(x+r,I+da),new mxPoint(x,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I+r),new mxPoint(x+z,I),new mxPoint(x+z,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da-r),new mxPoint(x,+I+da),new mxPoint(x,I)]);da=c.getCenterX();c=c.getCenterY();c=new mxPoint(da,c);n&&(t.x<x||t.x>x+z?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,c,t)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?ea.prototype.fixedSize:ea.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height,U=c.getCenterX();+c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+z-r,I),new mxPoint(x+z,c),new mxPoint(x+z-r,I+da),new mxPoint(x,I+da),new mxPoint(x+r,c),new mxPoint(x,I)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+z,I),new mxPoint(x++z-r,c),new mxPoint(x+z,I+da),new mxPoint(x+r,I+da),new mxPoint(x,c),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I+r),new mxPoint(U,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da),new mxPoint(U,I+da-r),new mxPoint(x,I+da),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(U,I+r),new mxPoint(x+z,I),new mxPoint(x+z,I+da-r),new mxPoint(U,I+da),new mxPoint(x,+I+da-r),new mxPoint(x,I)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(I,U,t)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?la.prototype.fixedSize:la.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height,U=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,+mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(U,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da-r),new mxPoint(U,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I+r),new mxPoint(U,I)]):(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+z-r,I),new mxPoint(x+z,c),new mxPoint(x+z-r,I+da),new mxPoint(x++r,I+da),new mxPoint(x,c),new mxPoint(x+r,I)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(I,U,t)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(Ja,mxShape);Ja.prototype.size=10;Ja.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"size",this.size));c.translate(l,t);c.ellipse((n-v)/2,0,v,v);c.fillAndStroke();c.begin();c.moveTo(n/2,v);c.lineTo(n/2,r);c.end();c.stroke()};+mxCellRenderer.registerShape("lollipop",Ja);mxUtils.extend(na,mxShape);na.prototype.size=10;na.prototype.inset=2;na.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"size",this.size)),x=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.begin();c.moveTo(n/2,v+x);c.lineTo(n/2,r);c.end();c.stroke();c.begin();c.moveTo((n-v)/2-x,v/2);c.quadTo((n-v)/2-x,v+x,n/2,v+x);c.quadTo((n+v)/2+x,v+x,(n+v)/2+x,v/2);c.end();c.stroke()};+mxCellRenderer.registerShape("requires",na);mxUtils.extend(ya,mxShape);ya.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.end();c.stroke()};mxCellRenderer.registerShape("requiredInterface",ya);mxUtils.extend(za,mxShape);za.prototype.inset=2;za.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.ellipse(0,v,n-2*v,r-2*v);c.fillAndStroke();+c.begin();c.moveTo(n/2,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n/2,r);c.end();c.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",za);mxUtils.extend(Ka,mxCylinder);Ka.prototype.jettyWidth=20;Ka.prototype.jettyHeight=10;Ka.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=Math.min(l,r-l),z=Math.min(I+2*l,r-l);v?(c.moveTo(t,I),+c.lineTo(x,I),c.lineTo(x,I+l),c.lineTo(t,I+l),c.moveTo(t,z),c.lineTo(x,z),c.lineTo(x,z+l),c.lineTo(t,z+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,z+l),c.lineTo(0,z+l),c.lineTo(0,z),c.lineTo(t,z),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("module",Ka);mxUtils.extend(Qa,mxCylinder);Qa.prototype.jettyWidth=32;Qa.prototype.jettyHeight=12;Qa.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,+"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=.3*r-l/2,z=.7*r-l/2;v?(c.moveTo(t,I),c.lineTo(x,I),c.lineTo(x,I+l),c.lineTo(t,I+l),c.moveTo(t,z),c.lineTo(x,z),c.lineTo(x,z+l),c.lineTo(t,z+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,z+l),c.lineTo(0,z+l),c.lineTo(0,z),c.lineTo(t,z),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("component",+Qa);mxUtils.extend(Ia,mxRectangleShape);Ia.prototype.paintForeground=function(c,l,t,n,r){var v=n/2,x=r/2,I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;c.begin();this.addPoints(c,[new mxPoint(l+v,t),new mxPoint(l+n,t+x),new mxPoint(l+v,t+r),new mxPoint(l,t+x)],this.isRounded,I,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Ia);mxUtils.extend(Ha,mxDoubleEllipse);Ha.prototype.outerStroke=+!0;Ha.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.min(4,Math.min(n/5,r/5));0<n&&0<r&&(c.ellipse(l+v,t+v,n-2*v,r-2*v),c.fillAndStroke());c.setShadow(!1);this.outerStroke&&(c.ellipse(l,t,n,r),c.stroke())};mxCellRenderer.registerShape("endState",Ha);mxUtils.extend(ra,Ha);ra.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",ra);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(Va,mxArrowConnector);Va.prototype.defaultWidth=10;Va.prototype.defaultArrowWidth=20;Va.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};Va.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};Va.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",Va);mxUtils.extend(Wa,mxActor);Wa.prototype.size=30;Wa.prototype.isRoundable=function(){return!0};Wa.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,-[new mxPoint(0,r),new mxPoint(0,l),new mxPoint(n,0),new mxPoint(n,r)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("manualInput",Wa);mxUtils.extend($a,mxRectangleShape);$a.prototype.dx=20;$a.prototype.dy=20;$a.prototype.isHtmlAllowed=function(){return!1};$a.prototype.paintForeground=function(c,l,t,n,r){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var u=0;if(this.isRounded){var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/-100;u=Math.max(u,Math.min(n*x,r*x))}x=Math.max(u,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));u=Math.max(u,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.begin();c.moveTo(l,t+u);c.lineTo(l+n,t+u);c.end();c.stroke();c.begin();c.moveTo(l+x,t);c.lineTo(l+x,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("internalStorage",$a);mxUtils.extend(db,mxActor);db.prototype.dx=20;db.prototype.dy=20;db.prototype.isRoundable=function(){return!0};db.prototype.redrawPath=-function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t),new mxPoint(l,t),new mxPoint(l,r),new mxPoint(0,r)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("corner",+[new mxPoint(0,r),new mxPoint(0,l),new mxPoint(n,0),new mxPoint(n,r)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("manualInput",Wa);mxUtils.extend($a,mxRectangleShape);$a.prototype.dx=20;$a.prototype.dy=20;$a.prototype.isHtmlAllowed=function(){return!1};$a.prototype.paintForeground=function(c,l,t,n,r){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var v=0;if(this.isRounded){var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/+100;v=Math.max(v,Math.min(n*x,r*x))}x=Math.max(v,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));v=Math.max(v,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.begin();c.moveTo(l,t+v);c.lineTo(l+n,t+v);c.end();c.stroke();c.begin();c.moveTo(l+x,t);c.lineTo(l+x,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("internalStorage",$a);mxUtils.extend(db,mxActor);db.prototype.dx=20;db.prototype.dy=20;db.prototype.isRoundable=function(){return!0};db.prototype.redrawPath=+function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t),new mxPoint(l,t),new mxPoint(l,r),new mxPoint(0,r)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("corner",db);mxUtils.extend(pb,mxActor);pb.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.lineTo(0,r);c.end();c.moveTo(n,0);c.lineTo(n,r);c.end();c.moveTo(0,r/2);c.lineTo(n,r/2);c.end()};mxCellRenderer.registerShape("crossbar",pb);mxUtils.extend(eb,mxActor);eb.prototype.dx=20;eb.prototype.dy=20;eb.prototype.isRoundable=function(){return!0};eb.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,-"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t),new mxPoint((n+l)/2,t),new mxPoint((n+l)/2,r),new mxPoint((n-l)/2,r),new mxPoint((n-l)/2,t),new mxPoint(0,t)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("tee",eb);mxUtils.extend(Za,mxActor);Za.prototype.arrowWidth=.3;Za.prototype.arrowSize=.2;Za.prototype.isRoundable=-function(){return!0};Za.prototype.redrawPath=function(c,l,t,n,r){var u=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));t=(r-u)/2;u=t+u;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,u),new mxPoint(0,-u)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("singleArrow",Za);mxUtils.extend(gb,mxActor);gb.prototype.isRoundable=function(){return!0};gb.prototype.redrawPath=function(c,l,t,n,r){var u=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Za.prototype.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Za.prototype.arrowSize))));t=(r-u)/2;u=t+u;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/-2;this.addPoints(c,[new mxPoint(0,r/2),new mxPoint(l,0),new mxPoint(l,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,u),new mxPoint(l,u),new mxPoint(l,r)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("doubleArrow",gb);mxUtils.extend(bb,mxActor);bb.prototype.size=.1;bb.prototype.fixedSize=20;bb.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,+"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t),new mxPoint((n+l)/2,t),new mxPoint((n+l)/2,r),new mxPoint((n-l)/2,r),new mxPoint((n-l)/2,t),new mxPoint(0,t)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("tee",eb);mxUtils.extend(Za,mxActor);Za.prototype.arrowWidth=.3;Za.prototype.arrowSize=.2;Za.prototype.isRoundable=+function(){return!0};Za.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(0,+v)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("singleArrow",Za);mxUtils.extend(gb,mxActor);gb.prototype.isRoundable=function(){return!0};gb.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Za.prototype.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Za.prototype.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/+2;this.addPoints(c,[new mxPoint(0,r/2),new mxPoint(l,0),new mxPoint(l,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(l,v),new mxPoint(l,r)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("doubleArrow",gb);mxUtils.extend(bb,mxActor);bb.prototype.size=.1;bb.prototype.fixedSize=20;bb.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(l,0);c.lineTo(n,0);c.quadTo(n-2*l,r/2,n,r);c.lineTo(l,r);c.quadTo(l-2*l,r/2,l,0);c.close();c.end()};mxCellRenderer.registerShape("dataStorage",bb);mxUtils.extend(q,mxActor);q.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.close();c.end()};mxCellRenderer.registerShape("or",q);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.quadTo(n/2,r/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",A);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.isRoundable=function(){return!0};B.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n/2,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,.8*l),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,.8*l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("loopLimit",B);mxUtils.extend(F,mxActor);F.prototype.size=.375;F.prototype.isRoundable=function(){return!0};F.prototype.redrawPath=function(c,l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,-r-l),new mxPoint(n/2,r),new mxPoint(0,r-l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("offPageConnector",F);mxUtils.extend(K,mxEllipse);K.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+n/2,t+r);c.lineTo(l+n,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("tapeData",K);mxUtils.extend(R,mxEllipse);R.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);+r-l),new mxPoint(n/2,r),new mxPoint(0,r-l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("offPageConnector",F);mxUtils.extend(L,mxEllipse);L.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+n/2,t+r);c.lineTo(l+n,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("tapeData",L);mxUtils.extend(R,mxEllipse);R.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l,t+r/2);c.lineTo(l+n,t+r/2);c.end();c.stroke();c.begin();c.moveTo(l+n/2,t);c.lineTo(l+n/2,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("orEllipse",R);mxUtils.extend(Z,mxEllipse);Z.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l+.145*n,t+.145*r);c.lineTo(l+.855*n,t+.855*r);c.end();c.stroke();c.begin();c.moveTo(l+.855*n,t+.145*r);c.lineTo(l+.145*n,t+.855*r);c.end();c.stroke()};mxCellRenderer.registerShape("sumEllipse",Z);mxUtils.extend(ja,mxRhombus);ja.prototype.paintVertexShape=function(c,l,t,n,r){mxRhombus.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l,t+r/2);c.lineTo(l+n,t+r/2);c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",ja);mxUtils.extend(fa,mxEllipse);fa.prototype.paintVertexShape=function(c,l,t,n,r){c.begin();c.moveTo(l,t);c.lineTo(l+n,t);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke();c.begin();-c.moveTo(l,t+r);c.lineTo(l+n,t+r);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",fa);mxUtils.extend(ka,mxEllipse);ka.prototype.paintVertexShape=function(c,l,t,n,r){var u=c.state.strokeWidth/2,x=10+2*u,I=t+r-x/2;c.begin();c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+u,I);c.lineTo(l+u+x,I-x/2);c.moveTo(l+u,I);c.lineTo(l+u+x,I+x/2);c.moveTo(l+u,I);c.lineTo(l+n-u,I);c.moveTo(l+n,t);c.lineTo(l+n,t+r);c.moveTo(l+n-u,I);c.lineTo(l+n-x-u,I-x/2);c.moveTo(l+n-u,I);c.lineTo(l+-n-x-u,I+x/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ka);mxUtils.extend(va,mxEllipse);va.prototype.drawHidden=!0;va.prototype.paintVertexShape=function(c,l,t,n,r){this.outline||c.setStrokeColor(null);if(null!=this.style){var u=c.pointerEvents,x=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||x||(c.pointerEvents=!1);var I="1"==mxUtils.getValue(this.style,"top","1"),z="1"==mxUtils.getValue(this.style,"left","1"),-da="1"==mxUtils.getValue(this.style,"right","1"),U="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||x||this.outline||I||da||U||z?(c.rect(l,t,n,r),c.fill(),c.pointerEvents=u,c.setStrokeColor(this.stroke),c.setLineCap("square"),c.begin(),c.moveTo(l,t),this.outline||I?c.lineTo(l+n,t):c.moveTo(l+n,t),this.outline||da?c.lineTo(l+n,t+r):c.moveTo(l+n,t+r),this.outline||U?c.lineTo(l,t+r):c.moveTo(l,t+r),(this.outline||z)&&c.lineTo(l,t),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};+c.moveTo(l,t+r);c.lineTo(l+n,t+r);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",fa);mxUtils.extend(ka,mxEllipse);ka.prototype.paintVertexShape=function(c,l,t,n,r){var v=c.state.strokeWidth/2,x=10+2*v,I=t+r-x/2;c.begin();c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+v,I);c.lineTo(l+v+x,I-x/2);c.moveTo(l+v,I);c.lineTo(l+v+x,I+x/2);c.moveTo(l+v,I);c.lineTo(l+n-v,I);c.moveTo(l+n,t);c.lineTo(l+n,t+r);c.moveTo(l+n-v,I);c.lineTo(l+n-x-v,I-x/2);c.moveTo(l+n-v,I);c.lineTo(l++n-x-v,I+x/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ka);mxUtils.extend(va,mxEllipse);va.prototype.drawHidden=!0;va.prototype.paintVertexShape=function(c,l,t,n,r){this.outline||c.setStrokeColor(null);if(null!=this.style){var v=c.pointerEvents,x=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||x||(c.pointerEvents=!1);var I="1"==mxUtils.getValue(this.style,"top","1"),z="1"==mxUtils.getValue(this.style,"left","1"),+da="1"==mxUtils.getValue(this.style,"right","1"),U="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||x||this.outline||I||da||U||z?(c.rect(l,t,n,r),c.fill(),c.pointerEvents=v,c.setStrokeColor(this.stroke),c.setLineCap("square"),c.begin(),c.moveTo(l,t),this.outline||I?c.lineTo(l+n,t):c.moveTo(l+n,t),this.outline||da?c.lineTo(l+n,t+r):c.moveTo(l+n,t+r),this.outline||U?c.lineTo(l,t+r):c.moveTo(l,t+r),(this.outline||z)&&c.lineTo(l,t),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",va);mxUtils.extend(Ma,mxEllipse);Ma.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"==mxUtils.getValue(this.style,"line")?(c.moveTo(l+n/2,t),c.lineTo(l+n/2,t+r)):(c.moveTo(l,t+r/2),c.lineTo(l+n,t+r/2));c.end();c.stroke()};mxCellRenderer.registerShape("lineEllipse",Ma);mxUtils.extend(Na,mxActor);Na.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/2);c.moveTo(0,-0);c.lineTo(n-l,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n-l,r);c.lineTo(0,r);c.close();c.end()};mxCellRenderer.registerShape("delay",Na);mxUtils.extend(Aa,mxActor);Aa.prototype.size=.2;Aa.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(r,n);var u=Math.max(0,Math.min(l,l*parseFloat(mxUtils.getValue(this.style,"size",this.size))));l=(r-u)/2;t=l+u;var x=(n-u)/2;u=x+u;c.moveTo(0,l);c.lineTo(x,l);c.lineTo(x,0);c.lineTo(u,0);c.lineTo(u,l);c.lineTo(n,l);c.lineTo(n,t);c.lineTo(u,t);c.lineTo(u,r);c.lineTo(x,+0);c.lineTo(n-l,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n-l,r);c.lineTo(0,r);c.close();c.end()};mxCellRenderer.registerShape("delay",Na);mxUtils.extend(Aa,mxActor);Aa.prototype.size=.2;Aa.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(r,n);var v=Math.max(0,Math.min(l,l*parseFloat(mxUtils.getValue(this.style,"size",this.size))));l=(r-v)/2;t=l+v;var x=(n-v)/2;v=x+v;c.moveTo(0,l);c.lineTo(x,l);c.lineTo(x,0);c.lineTo(v,0);c.lineTo(v,l);c.lineTo(n,l);c.lineTo(n,t);c.lineTo(v,t);c.lineTo(v,r);c.lineTo(x,r);c.lineTo(x,t);c.lineTo(0,t);c.close();c.end()};mxCellRenderer.registerShape("cross",Aa);mxUtils.extend(Ga,mxActor);Ga.prototype.size=.25;Ga.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/2);t=Math.min(n-l,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*n);c.moveTo(0,r/2);c.lineTo(t,0);c.lineTo(n-l,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n-l,r);c.lineTo(t,r);c.close();c.end()};mxCellRenderer.registerShape("display",Ga);mxUtils.extend(wa,mxActor);wa.prototype.cst={RECT2:"mxgraph.basic.rect"};wa.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"}]}];wa.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);this.strictDrawShape(c,0,0,n,r)};wa.prototype.strictDrawShape=-function(c,l,t,n,r,u){var x=u&&u.rectStyle?u.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),I=u&&u.absoluteCornerSize?u.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),z=u&&u.size?u.size:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),da=u&&u.rectOutline?u.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),U=u&&u.indent?u.indent:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,-"indent",this.indent)))),Fa=u&&u.dashed?u.dashed:mxUtils.getValue(this.style,"dashed",!1),Ua=u&&u.dashPattern?u.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),Pa=u&&u.relIndent?u.relIndent:Math.max(0,Math.min(50,U)),oa=u&&u.top?u.top:mxUtils.getValue(this.style,"top",!0),sa=u&&u.right?u.right:mxUtils.getValue(this.style,"right",!0),qa=u&&u.bottom?u.bottom:mxUtils.getValue(this.style,"bottom",!0),pa=u&&u.left?u.left:mxUtils.getValue(this.style,"left",!0),xa=u&&u.topLeftStyle?u.topLeftStyle:-mxUtils.getValue(this.style,"topLeftStyle","default"),Ba=u&&u.topRightStyle?u.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),Ca=u&&u.bottomRightStyle?u.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),Ea=u&&u.bottomLeftStyle?u.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),Cb=u&&u.fillColor?u.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");u&&u.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var Db=-u&&u.strokeWidth?u.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),zb=u&&u.fillColor2?u.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),Bb=u&&u.gradientColor2?u.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),Eb=u&&u.gradientDirection2?u.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Fb=u&&u.opacity?u.opacity:mxUtils.getValue(this.style,"opacity","100"),Gb=Math.max(0,Math.min(50,z));u=wa.prototype;c.setDashed(Fa);Ua&&""!=Ua&&-c.setDashPattern(Ua);c.setStrokeWidth(Db);z=Math.min(.5*r,.5*n,z);I||(z=Gb*Math.min(n,r)/100);z=Math.min(z,.5*Math.min(n,r));I||(U=Math.min(Pa*Math.min(n,r)/100));U=Math.min(U,.5*Math.min(n,r)-z);(oa||sa||qa||pa)&&"frame"!=da&&(c.begin(),oa?u.moveNW(c,l,t,n,r,x,xa,z,pa):c.moveTo(0,0),oa&&u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),sa&&u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),qa&&u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),pa&&u.paintSW(c,-l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Fa=I=Fb,"none"==zb&&(I=0),"none"==Bb&&(Fa=0),c.setGradient(zb,Bb,0,0,n,r,Eb,I,Fa),c.begin(),oa?u.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa):c.moveTo(U,0),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),pa&&qa&&u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),qa&&sa&&u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),sa&&oa&&u.paintNEInner(c,-l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),oa&&pa&&u.paintNWInner(c,l,t,n,r,x,xa,z,U),c.fill(),"none"==Cb&&(c.begin(),u.paintFolds(c,l,t,n,r,x,xa,Ba,Ca,Ea,z,oa,sa,qa,pa),c.stroke()));oa||sa||qa||!pa?oa||sa||!qa||pa?!oa&&!sa&&qa&&pa?"frame"!=da?(c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(u.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,-l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa||!sa||qa||pa?!oa&&sa&&!qa&&pa?"frame"!=da?(c.begin(),u.moveSW(c,l,t,n,r,x,xa,z,qa),u.paintLeft(c,-l,t,n,r,x,xa,z,oa),"double"==da&&(u.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke(),c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(u.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),u.moveSW(c,l,t,n,r,x,xa,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke(),c.begin(),-u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa&&sa&&qa&&!pa?"frame"!=da?(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,-r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa&&sa&&qa&&pa?"frame"!=da?(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,-l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(u.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,-l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa||sa||qa||pa?oa&&!sa&&!qa&&pa?"frame"!=da?(c.begin(),u.moveSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,-z,sa),"double"==da&&(u.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),u.moveSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):-oa&&!sa&&qa&&!pa?"frame"!=da?(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&(u.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke(),c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),-u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke(),c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa&&!sa&&qa&&pa?"frame"!=da?(c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&-(u.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,-l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa&&sa&&!qa&&!pa?"frame"!=da?(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(u.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,-x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):oa&&sa&&!qa&&pa?"frame"!=da?(c.begin(),u.moveSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,-l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(u.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),u.moveSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,-n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):oa&&sa&&qa&&!pa?"frame"!=da?(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,-Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,-Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):oa&&sa&&qa&&pa&&("frame"!=da?(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,-z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),"double"==da&&(u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,-Ea,z,U,qa,pa),c.close()),c.stroke()):(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),-u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke())):"frame"!=da?(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&(u.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.lineNEInner(c,-l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(u.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),u.moveSE(c,-l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),u.moveSW(c,l,t,n,r,x,xa,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(u.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,-l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),u.moveSW(c,l,t,n,r,x,xa,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke());c.begin();u.paintFolds(c,l,t,n,r,x,xa,Ba,Ca,Ea,z,oa,sa,qa,pa);c.stroke()};wa.prototype.moveNW=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.moveTo(0,0):c.moveTo(0,I)};wa.prototype.moveNE=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==-u||!z?c.moveTo(n,0):c.moveTo(n-I,0)};wa.prototype.moveSE=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.moveTo(n,r):c.moveTo(n,r-I)};wa.prototype.moveSW=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.moveTo(0,r):c.moveTo(I,r)};wa.prototype.paintNW=function(c,l,t,n,r,u,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==u||"invRound"==x||"default"==x&&"invRound"==u){l=0;if("rounded"==x||"default"==x&&"rounded"==u)l=1;c.arcTo(I,I,0,0,l,I,0)}else("snip"==-x||"default"==x&&"snip"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(I,0);else c.lineTo(0,0)};wa.prototype.paintTop=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.lineTo(n,0):c.lineTo(n-I,0)};wa.prototype.paintNE=function(c,l,t,n,r,u,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==u||"invRound"==x||"default"==x&&"invRound"==u){l=0;if("rounded"==x||"default"==x&&"rounded"==u)l=1;c.arcTo(I,I,0,0,l,n,I)}else("snip"==x||"default"==x&&"snip"==u||"fold"==x||"default"==-x&&"fold"==u)&&c.lineTo(n,I);else c.lineTo(n,0)};wa.prototype.paintRight=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.lineTo(n,r):c.lineTo(n,r-I)};wa.prototype.paintLeft=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.lineTo(0,0):c.lineTo(0,I)};wa.prototype.paintSE=function(c,l,t,n,r,u,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==u||"invRound"==x||"default"==x&&"invRound"==u){l=0;if("rounded"==x||"default"==x&&"rounded"==u)l=1;c.arcTo(I,-I,0,0,l,n-I,r)}else("snip"==x||"default"==x&&"snip"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(n-I,r);else c.lineTo(n,r)};wa.prototype.paintBottom=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.lineTo(0,r):c.lineTo(I,r)};wa.prototype.paintSW=function(c,l,t,n,r,u,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==u||"invRound"==x||"default"==x&&"invRound"==u){l=0;if("rounded"==x||"default"==x&&"rounded"==u)l=1;c.arcTo(I,I,0,0,l,0,r-I)}else("snip"==x||"default"==-x&&"snip"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(0,r-I);else c.lineTo(0,r)};wa.prototype.paintNWInner=function(c,l,t,n,r,u,x,I,z){if("rounded"==x||"default"==x&&"rounded"==u)c.arcTo(I-.5*z,I-.5*z,0,0,0,z,.5*z+I);else if("invRound"==x||"default"==x&&"invRound"==u)c.arcTo(I+z,I+z,0,0,1,z,z+I);else if("snip"==x||"default"==x&&"snip"==u)c.lineTo(z,.5*z+I);else if("fold"==x||"default"==x&&"fold"==u)c.lineTo(z+I,z+I),c.lineTo(z,z+I)};wa.prototype.paintTopInner=function(c,l,t,n,r,u,x,I,z,da,U){da||-U?!da&&U?c.lineTo(0,z):da&&!U?c.lineTo(z,0):da?"square"==x||"default"==x&&"square"==u?c.lineTo(z,z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(I+.5*z,z):c.lineTo(I+z,z):c.lineTo(0,z):c.lineTo(0,0)};wa.prototype.paintNEInner=function(c,l,t,n,r,u,x,I,z){if("rounded"==x||"default"==x&&"rounded"==u)c.arcTo(I-.5*z,I-.5*z,0,0,0,n-I-.5*z,z);else if("invRound"==x||"default"==x&&"invRound"==u)c.arcTo(I+z,I+z,0,0,1,n-I-z,z);else if("snip"==x||"default"==x&&"snip"==-u)c.lineTo(n-I-.5*z,z);else if("fold"==x||"default"==x&&"fold"==u)c.lineTo(n-I-z,I+z),c.lineTo(n-I-z,z)};wa.prototype.paintRightInner=function(c,l,t,n,r,u,x,I,z,da,U){da||U?!da&&U?c.lineTo(n-z,0):da&&!U?c.lineTo(n,z):da?"square"==x||"default"==x&&"square"==u?c.lineTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(n-z,I+.5*z):c.lineTo(n-z,I+z):c.lineTo(n-z,0):c.lineTo(n,0)};wa.prototype.paintLeftInner=function(c,l,t,n,r,u,x,I,z,da,U){da||U?!da&&U?c.lineTo(z,-r):da&&!U?c.lineTo(0,r-z):da?"square"==x||"default"==x&&"square"==u?c.lineTo(z,r-z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(z,r-I-.5*z):c.lineTo(z,r-I-z):c.lineTo(z,r):c.lineTo(0,r)};wa.prototype.paintSEInner=function(c,l,t,n,r,u,x,I,z){if("rounded"==x||"default"==x&&"rounded"==u)c.arcTo(I-.5*z,I-.5*z,0,0,0,n-z,r-I-.5*z);else if("invRound"==x||"default"==x&&"invRound"==u)c.arcTo(I+z,I+z,0,0,1,n-z,r-I-z);else if("snip"==x||"default"==x&&"snip"==u)c.lineTo(n--z,r-I-.5*z);else if("fold"==x||"default"==x&&"fold"==u)c.lineTo(n-I-z,r-I-z),c.lineTo(n-z,r-I-z)};wa.prototype.paintBottomInner=function(c,l,t,n,r,u,x,I,z,da,U){da||U?!da&&U?c.lineTo(n,r-z):da&&!U?c.lineTo(n-z,r):"square"==x||"default"==x&&"square"==u||!da?c.lineTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(n-I-.5*z,r-z):c.lineTo(n-I-z,r-z):c.lineTo(n,r)};wa.prototype.paintSWInner=function(c,l,t,n,r,u,x,I,z,da){if(!da)c.lineTo(z,r);else if("square"==-x||"default"==x&&"square"==u)c.lineTo(z,r-z);else if("rounded"==x||"default"==x&&"rounded"==u)c.arcTo(I-.5*z,I-.5*z,0,0,0,I+.5*z,r-z);else if("invRound"==x||"default"==x&&"invRound"==u)c.arcTo(I+z,I+z,0,0,1,I+z,r-z);else if("snip"==x||"default"==x&&"snip"==u)c.lineTo(I+.5*z,r-z);else if("fold"==x||"default"==x&&"fold"==u)c.lineTo(z+I,r-I-z),c.lineTo(z+I,r-z)};wa.prototype.moveSWInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u?c.moveTo(z,r-z):"rounded"==x||"default"==-x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.moveTo(z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.moveTo(z,r-I-z):c.moveTo(0,r-z)};wa.prototype.lineSWInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u?c.lineTo(z,r-z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(z,r-I-z):-c.lineTo(0,r-z)};wa.prototype.moveSEInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u?c.moveTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.moveTo(n-z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.moveTo(n-z,r-I-z):c.moveTo(n-z,r)};wa.prototype.lineSEInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u?c.lineTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==-u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(n-z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(n-z,r-I-z):c.lineTo(n-z,r)};wa.prototype.moveNEInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u||da?c.moveTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.moveTo(n-z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.moveTo(n-z,I+z):c.moveTo(n,-z)};wa.prototype.lineNEInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u||da?c.lineTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(n-z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(n-z,I+z):c.lineTo(n,z)};wa.prototype.moveNWInner=function(c,l,t,n,r,u,x,I,z,da,U){da||U?!da&&U?c.moveTo(z,0):da&&!U?c.moveTo(0,z):"square"==x||"default"==x&&"square"==u?c.moveTo(z,z):"rounded"==-x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.moveTo(z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.moveTo(z,I+z):c.moveTo(0,0)};wa.prototype.lineNWInner=function(c,l,t,n,r,u,x,I,z,da,U){da||U?!da&&U?c.lineTo(z,0):da&&!U?c.lineTo(0,z):"square"==x||"default"==x&&"square"==u?c.lineTo(z,z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==-x||"default"==x&&"fold"==u)&&c.lineTo(z,I+z):c.lineTo(0,0)};wa.prototype.paintFolds=function(c,l,t,n,r,u,x,I,z,da,U,Fa,Ua,Pa,oa){if("fold"==u||"fold"==x||"fold"==I||"fold"==z||"fold"==da)("fold"==x||"default"==x&&"fold"==u)&&Fa&&oa&&(c.moveTo(0,U),c.lineTo(U,U),c.lineTo(U,0)),("fold"==I||"default"==I&&"fold"==u)&&Fa&&Ua&&(c.moveTo(n-U,0),c.lineTo(n-U,U),c.lineTo(n,U)),("fold"==z||"default"==z&&"fold"==u)&&Pa&&Ua&&(c.moveTo(n-U,r),c.lineTo(n-U,r-U),c.lineTo(n,r-U)),("fold"==da||"default"==da&&"fold"==-u)&&Pa&&oa&&(c.moveTo(0,r-U),c.lineTo(U,r-U),c.lineTo(U,r))};mxCellRenderer.registerShape(wa.prototype.cst.RECT2,wa);wa.prototype.constraints=null;mxUtils.extend(ua,mxConnector);ua.prototype.origPaintEdgeShape=ua.prototype.paintEdgeShape;ua.prototype.paintEdgeShape=function(c,l){for(var t=[],n=0;n<l.length;n++)t.push(mxUtils.clone(l[n]));n=c.state.dashed;var r=c.state.fixDash;ua.prototype.origPaintEdgeShape.apply(this,[c,t]);3<=c.state.strokeWidth&&(t=mxUtils.getValue(this.style,"fillColor",null),+function(c,l,t,n,r,v){var x=v&&v.rectStyle?v.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),I=v&&v.absoluteCornerSize?v.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),z=v&&v.size?v.size:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),da=v&&v.rectOutline?v.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),U=v&&v.indent?v.indent:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,+"indent",this.indent)))),Fa=v&&v.dashed?v.dashed:mxUtils.getValue(this.style,"dashed",!1),Ua=v&&v.dashPattern?v.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),Pa=v&&v.relIndent?v.relIndent:Math.max(0,Math.min(50,U)),oa=v&&v.top?v.top:mxUtils.getValue(this.style,"top",!0),sa=v&&v.right?v.right:mxUtils.getValue(this.style,"right",!0),qa=v&&v.bottom?v.bottom:mxUtils.getValue(this.style,"bottom",!0),pa=v&&v.left?v.left:mxUtils.getValue(this.style,"left",!0),xa=v&&v.topLeftStyle?v.topLeftStyle:+mxUtils.getValue(this.style,"topLeftStyle","default"),Ba=v&&v.topRightStyle?v.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),Ca=v&&v.bottomRightStyle?v.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),Ea=v&&v.bottomLeftStyle?v.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),Cb=v&&v.fillColor?v.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");v&&v.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var Db=+v&&v.strokeWidth?v.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),zb=v&&v.fillColor2?v.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),Bb=v&&v.gradientColor2?v.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),Eb=v&&v.gradientDirection2?v.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Fb=v&&v.opacity?v.opacity:mxUtils.getValue(this.style,"opacity","100"),Gb=Math.max(0,Math.min(50,z));v=wa.prototype;c.setDashed(Fa);Ua&&""!=Ua&&+c.setDashPattern(Ua);c.setStrokeWidth(Db);z=Math.min(.5*r,.5*n,z);I||(z=Gb*Math.min(n,r)/100);z=Math.min(z,.5*Math.min(n,r));I||(U=Math.min(Pa*Math.min(n,r)/100));U=Math.min(U,.5*Math.min(n,r)-z);(oa||sa||qa||pa)&&"frame"!=da&&(c.begin(),oa?v.moveNW(c,l,t,n,r,x,xa,z,pa):c.moveTo(0,0),oa&&v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),sa&&v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),qa&&v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),pa&&v.paintSW(c,+l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Fa=I=Fb,"none"==zb&&(I=0),"none"==Bb&&(Fa=0),c.setGradient(zb,Bb,0,0,n,r,Eb,I,Fa),c.begin(),oa?v.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa):c.moveTo(U,0),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),pa&&qa&&v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),qa&&sa&&v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),sa&&oa&&v.paintNEInner(c,+l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),oa&&pa&&v.paintNWInner(c,l,t,n,r,x,xa,z,U),c.fill(),"none"==Cb&&(c.begin(),v.paintFolds(c,l,t,n,r,x,xa,Ba,Ca,Ea,z,oa,sa,qa,pa),c.stroke()));oa||sa||qa||!pa?oa||sa||!qa||pa?!oa&&!sa&&qa&&pa?"frame"!=da?(c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,+l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa||!sa||qa||pa?!oa&&sa&&!qa&&pa?"frame"!=da?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,z,qa),v.paintLeft(c,+l,t,n,r,x,xa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke(),c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(v.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,xa,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke(),c.begin(),+v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa&&sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,+r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa&&sa&&qa&&pa?"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,+l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,+l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa||sa||qa||pa?oa&&!sa&&!qa&&pa?"frame"!=da?(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,+z,sa),"double"==da&&(v.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):+oa&&!sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&(v.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke(),c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),+v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke(),c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa&&!sa&&qa&&pa?"frame"!=da?(c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&+(v.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,+l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa&&sa&&!qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(v.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,+x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):oa&&sa&&!qa&&pa?"frame"!=da?(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,+l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(v.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,+n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):oa&&sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,+Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,+Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):oa&&sa&&qa&&pa&&("frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,+z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),"double"==da&&(v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,+Ea,z,U,qa,pa),c.close()),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),+v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke())):"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&(v.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.lineNEInner(c,+l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(v.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),v.moveSE(c,+l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,+l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,xa,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke());c.begin();v.paintFolds(c,l,t,n,r,x,xa,Ba,Ca,Ea,z,oa,sa,qa,pa);c.stroke()};wa.prototype.moveNW=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(0,0):c.moveTo(0,I)};wa.prototype.moveNE=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==+v||!z?c.moveTo(n,0):c.moveTo(n-I,0)};wa.prototype.moveSE=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(n,r):c.moveTo(n,r-I)};wa.prototype.moveSW=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(0,r):c.moveTo(I,r)};wa.prototype.paintNW=function(c,l,t,n,r,v,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,I,0)}else("snip"==+x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(I,0);else c.lineTo(0,0)};wa.prototype.paintTop=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(n,0):c.lineTo(n-I,0)};wa.prototype.paintNE=function(c,l,t,n,r,v,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,n,I)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==+x&&"fold"==v)&&c.lineTo(n,I);else c.lineTo(n,0)};wa.prototype.paintRight=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(n,r):c.lineTo(n,r-I)};wa.prototype.paintLeft=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(0,0):c.lineTo(0,I)};wa.prototype.paintSE=function(c,l,t,n,r,v,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,+I,0,0,l,n-I,r)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-I,r);else c.lineTo(n,r)};wa.prototype.paintBottom=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(0,r):c.lineTo(I,r)};wa.prototype.paintSW=function(c,l,t,n,r,v,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,0,r-I)}else("snip"==x||"default"==+x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(0,r-I);else c.lineTo(0,r)};wa.prototype.paintNWInner=function(c,l,t,n,r,v,x,I,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*z,I-.5*z,0,0,0,z,.5*z+I);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+z,I+z,0,0,1,z,z+I);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(z,.5*z+I);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(z+I,z+I),c.lineTo(z,z+I)};wa.prototype.paintTopInner=function(c,l,t,n,r,v,x,I,z,da,U){da||+U?!da&&U?c.lineTo(0,z):da&&!U?c.lineTo(z,0):da?"square"==x||"default"==x&&"square"==v?c.lineTo(z,z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(I+.5*z,z):c.lineTo(I+z,z):c.lineTo(0,z):c.lineTo(0,0)};wa.prototype.paintNEInner=function(c,l,t,n,r,v,x,I,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*z,I-.5*z,0,0,0,n-I-.5*z,z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+z,I+z,0,0,1,n-I-z,z);else if("snip"==x||"default"==x&&"snip"==+v)c.lineTo(n-I-.5*z,z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-I-z,I+z),c.lineTo(n-I-z,z)};wa.prototype.paintRightInner=function(c,l,t,n,r,v,x,I,z,da,U){da||U?!da&&U?c.lineTo(n-z,0):da&&!U?c.lineTo(n,z):da?"square"==x||"default"==x&&"square"==v?c.lineTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-z,I+.5*z):c.lineTo(n-z,I+z):c.lineTo(n-z,0):c.lineTo(n,0)};wa.prototype.paintLeftInner=function(c,l,t,n,r,v,x,I,z,da,U){da||U?!da&&U?c.lineTo(z,+r):da&&!U?c.lineTo(0,r-z):da?"square"==x||"default"==x&&"square"==v?c.lineTo(z,r-z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(z,r-I-.5*z):c.lineTo(z,r-I-z):c.lineTo(z,r):c.lineTo(0,r)};wa.prototype.paintSEInner=function(c,l,t,n,r,v,x,I,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*z,I-.5*z,0,0,0,n-z,r-I-.5*z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+z,I+z,0,0,1,n-z,r-I-z);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-+z,r-I-.5*z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-I-z,r-I-z),c.lineTo(n-z,r-I-z)};wa.prototype.paintBottomInner=function(c,l,t,n,r,v,x,I,z,da,U){da||U?!da&&U?c.lineTo(n,r-z):da&&!U?c.lineTo(n-z,r):"square"==x||"default"==x&&"square"==v||!da?c.lineTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-I-.5*z,r-z):c.lineTo(n-I-z,r-z):c.lineTo(n,r)};wa.prototype.paintSWInner=function(c,l,t,n,r,v,x,I,z,da){if(!da)c.lineTo(z,r);else if("square"==+x||"default"==x&&"square"==v)c.lineTo(z,r-z);else if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*z,I-.5*z,0,0,0,I+.5*z,r-z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+z,I+z,0,0,1,I+z,r-z);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(I+.5*z,r-z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(z+I,r-I-z),c.lineTo(z+I,r-z)};wa.prototype.moveSWInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v?c.moveTo(z,r-z):"rounded"==x||"default"==+x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(z,r-I-z):c.moveTo(0,r-z)};wa.prototype.lineSWInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v?c.lineTo(z,r-z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(z,r-I-z):+c.lineTo(0,r-z)};wa.prototype.moveSEInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v?c.moveTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-z,r-I-z):c.moveTo(n-z,r)};wa.prototype.lineSEInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v?c.lineTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==+v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-z,r-I-z):c.lineTo(n-z,r)};wa.prototype.moveNEInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v||da?c.moveTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-z,I+z):c.moveTo(n,+z)};wa.prototype.lineNEInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v||da?c.lineTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-z,I+z):c.lineTo(n,z)};wa.prototype.moveNWInner=function(c,l,t,n,r,v,x,I,z,da,U){da||U?!da&&U?c.moveTo(z,0):da&&!U?c.moveTo(0,z):"square"==x||"default"==x&&"square"==v?c.moveTo(z,z):"rounded"==+x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(z,I+z):c.moveTo(0,0)};wa.prototype.lineNWInner=function(c,l,t,n,r,v,x,I,z,da,U){da||U?!da&&U?c.lineTo(z,0):da&&!U?c.lineTo(0,z):"square"==x||"default"==x&&"square"==v?c.lineTo(z,z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==+x||"default"==x&&"fold"==v)&&c.lineTo(z,I+z):c.lineTo(0,0)};wa.prototype.paintFolds=function(c,l,t,n,r,v,x,I,z,da,U,Fa,Ua,Pa,oa){if("fold"==v||"fold"==x||"fold"==I||"fold"==z||"fold"==da)("fold"==x||"default"==x&&"fold"==v)&&Fa&&oa&&(c.moveTo(0,U),c.lineTo(U,U),c.lineTo(U,0)),("fold"==I||"default"==I&&"fold"==v)&&Fa&&Ua&&(c.moveTo(n-U,0),c.lineTo(n-U,U),c.lineTo(n,U)),("fold"==z||"default"==z&&"fold"==v)&&Pa&&Ua&&(c.moveTo(n-U,r),c.lineTo(n-U,r-U),c.lineTo(n,r-U)),("fold"==da||"default"==da&&"fold"==+v)&&Pa&&oa&&(c.moveTo(0,r-U),c.lineTo(U,r-U),c.lineTo(U,r))};mxCellRenderer.registerShape(wa.prototype.cst.RECT2,wa);wa.prototype.constraints=null;mxUtils.extend(ua,mxConnector);ua.prototype.origPaintEdgeShape=ua.prototype.paintEdgeShape;ua.prototype.paintEdgeShape=function(c,l){for(var t=[],n=0;n<l.length;n++)t.push(mxUtils.clone(l[n]));n=c.state.dashed;var r=c.state.fixDash;ua.prototype.origPaintEdgeShape.apply(this,[c,t]);3<=c.state.strokeWidth&&(t=mxUtils.getValue(this.style,"fillColor",null),null!=t&&(c.setStrokeColor(t),c.setStrokeWidth(c.state.strokeWidth-2),c.setDashed(n,r),ua.prototype.origPaintEdgeShape.apply(this,[c,l])))};mxCellRenderer.registerShape("filledEdge",ua);mxUtils.extend(Ta,mxConnector);Ta.prototype.defaultWidth=4;Ta.prototype.getEdgeWidth=function(){return Math.max(0,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Ta.prototype.getFlowAnimationPath=function(){return mxShape.prototype.getFlowAnimationPath.call(this,2)};Ta.prototype.origPaintEdgeShape=Ta.prototype.paintEdgeShape;-Ta.prototype.paintEdgeShape=function(c,l){for(var t=[],n=0;n<l.length;n++)t.push(mxUtils.clone(l[n]));n=c.state.dashed;var r=c.state.fixDash,u=this.getEdgeWidth();c.setStrokeWidth(u+2*this.strokewidth);c.setDashed(!1);Ta.prototype.origPaintEdgeShape.apply(this,[c,t]);t=mxUtils.getValue(this.style,"fillColor",null);null!=t&&(c.setStrokeWidth(u),c.setStrokeColor(t),c.setDashed(n,r),Ta.prototype.origPaintEdgeShape.apply(this,[c,l]))};mxCellRenderer.registerShape("pipe",Ta);"undefined"!==typeof StyleFormatPanel&&-function(){var c=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var l=this.editorUi.getSelectionState(),t=c.apply(this,arguments);"umlFrame"==l.style.shape&&t.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return t}}();mxMarker.addMarker("dash",function(c,l,t,n,r,u,x,I,z,da){var U=r*(x+z+1),Fa=u*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Fa/2,n.y-Fa/2+U/2);c.lineTo(n.x+Fa/2-3*U/2,n.y-3*Fa/2-U/2);-c.stroke()}});mxMarker.addMarker("box",function(c,l,t,n,r,u,x,I,z,da){var U=r*(x+z+1),Fa=u*(x+z+1),Ua=n.x+U/2,Pa=n.y+Fa/2;n.x-=U;n.y-=Fa;return function(){c.begin();c.moveTo(Ua-U/2-Fa/2,Pa-Fa/2+U/2);c.lineTo(Ua-U/2+Fa/2,Pa-Fa/2-U/2);c.lineTo(Ua+Fa/2-3*U/2,Pa-3*Fa/2-U/2);c.lineTo(Ua-Fa/2-3*U/2,Pa-3*Fa/2+U/2);c.close();da?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,u,x,I,z,da){var U=r*(x+z+1),Fa=u*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Fa/2,n.y-Fa/2+U/-2);c.lineTo(n.x+Fa/2-3*U/2,n.y-3*Fa/2-U/2);c.moveTo(n.x-U/2+Fa/2,n.y-Fa/2-U/2);c.lineTo(n.x-Fa/2-3*U/2,n.y-3*Fa/2+U/2);c.stroke()}});mxMarker.addMarker("circle",Ra);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,u,x,I,z,da){var U=n.clone(),Fa=Ra.apply(this,arguments),Ua=r*(x+2*z),Pa=u*(x+2*z);return function(){Fa.apply(this,arguments);c.begin();c.moveTo(U.x-r*z,U.y-u*z);c.lineTo(U.x-2*Ua+r*z,U.y-2*Pa+u*z);c.moveTo(U.x-Ua-Pa+u*z,U.y-Pa+Ua-r*z);c.lineTo(U.x+Pa-Ua-u*z,U.y-Pa-Ua+r*z);c.stroke()}});-mxMarker.addMarker("halfCircle",function(c,l,t,n,r,u,x,I,z,da){var U=r*(x+z+1),Fa=u*(x+z+1),Ua=n.clone();n.x-=U;n.y-=Fa;return function(){c.begin();c.moveTo(Ua.x-Fa,Ua.y+U);c.quadTo(n.x-Fa,n.y+U,n.x,n.y);c.quadTo(n.x+Fa,n.y-U,Ua.x+Fa,Ua.y-U);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,u,x,I,z,da){l=r*z*1.118;t=u*z*1.118;r*=x+z;u*=x+z;var U=n.clone();U.x-=l;U.y-=t;n.x+=-r-l;n.y+=-u-t;return function(){c.begin();c.moveTo(U.x,U.y);I?c.lineTo(U.x-r-u/2,U.y-u+r/2):c.lineTo(U.x+u/2-r,U.y--u-r/2);c.lineTo(U.x-r,U.y-u);c.close();da?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,u,x,I,z,da,U){u*=I+da;x*=I+da;var Fa=r.clone();return function(){l.begin();l.moveTo(Fa.x,Fa.y);z?l.lineTo(Fa.x-u-x/c,Fa.y-x+u/c):l.lineTo(Fa.x+x/c-u,Fa.y-x-u/c);l.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var fb=function(c,l,t){return nb(c,["width"],l,function(n,r,u,x,I){I=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(x.x+-r*n/4+u*I/2,x.y+u*n/4-r*I/2)},function(n,r,u,x,I,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));c.style.width=Math.round(2*n)/c.view.scale-t})},nb=function(c,l,t,n,r){return La(c,l,function(u){var x=c.absolutePoints;if(null!=x&&0<x.length){var I=x.length-1;u=c.view.translate;var z=c.view.scale,da=t?x[0]:x[I];x=t?x[1]:x[I-1];I=x.x-da.x;var U=x.y-da.y,Fa=Math.sqrt(I*I+U*U);da=n.call(this,Fa,I/Fa,U/Fa,da,x);return new mxPoint(da.x/z-u.x,da.y/z-u.y)}return null},function(u,x,I){var z=c.absolutePoints,-da=z.length-1;u=c.view.translate;var U=c.view.scale,Fa=t?z[0]:z[da];z=t?z[1]:z[da-1];da=z.x-Fa.x;var Ua=z.y-Fa.y,Pa=Math.sqrt(da*da+Ua*Ua);x.x=(x.x+u.x)*U;x.y=(x.y+u.y)*U;r.call(this,Pa,da/Pa,Ua/Pa,Fa,z,x,I)})},cb=function(c,l){return function(t){return[nb(t,["startWidth"],!0,function(n,r,u,x,I){I=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(x.x+r*n/4+u*I/2,x.y+u*n/4-r*I/2)},function(n,r,u,x,I,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));t.style.startWidth=+Ta.prototype.paintEdgeShape=function(c,l){for(var t=[],n=0;n<l.length;n++)t.push(mxUtils.clone(l[n]));n=c.state.dashed;var r=c.state.fixDash,v=this.getEdgeWidth();c.setStrokeWidth(v+2*this.strokewidth);c.setDashed(!1);Ta.prototype.origPaintEdgeShape.apply(this,[c,t]);t=mxUtils.getValue(this.style,"fillColor",null);null!=t&&(c.setStrokeWidth(v),c.setStrokeColor(t),c.setDashed(n,r),Ta.prototype.origPaintEdgeShape.apply(this,[c,l]))};mxCellRenderer.registerShape("pipe",Ta);"undefined"!==typeof StyleFormatPanel&&+function(){var c=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var l=this.editorUi.getSelectionState(),t=c.apply(this,arguments);"umlFrame"==l.style.shape&&t.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return t}}();mxMarker.addMarker("dash",function(c,l,t,n,r,v,x,I,z,da){var U=r*(x+z+1),Fa=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Fa/2,n.y-Fa/2+U/2);c.lineTo(n.x+Fa/2-3*U/2,n.y-3*Fa/2-U/2);+c.stroke()}});mxMarker.addMarker("box",function(c,l,t,n,r,v,x,I,z,da){var U=r*(x+z+1),Fa=v*(x+z+1),Ua=n.x+U/2,Pa=n.y+Fa/2;n.x-=U;n.y-=Fa;return function(){c.begin();c.moveTo(Ua-U/2-Fa/2,Pa-Fa/2+U/2);c.lineTo(Ua-U/2+Fa/2,Pa-Fa/2-U/2);c.lineTo(Ua+Fa/2-3*U/2,Pa-3*Fa/2-U/2);c.lineTo(Ua-Fa/2-3*U/2,Pa-3*Fa/2+U/2);c.close();da?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,x,I,z,da){var U=r*(x+z+1),Fa=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Fa/2,n.y-Fa/2+U/+2);c.lineTo(n.x+Fa/2-3*U/2,n.y-3*Fa/2-U/2);c.moveTo(n.x-U/2+Fa/2,n.y-Fa/2-U/2);c.lineTo(n.x-Fa/2-3*U/2,n.y-3*Fa/2+U/2);c.stroke()}});mxMarker.addMarker("circle",Ra);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,v,x,I,z,da){var U=n.clone(),Fa=Ra.apply(this,arguments),Ua=r*(x+2*z),Pa=v*(x+2*z);return function(){Fa.apply(this,arguments);c.begin();c.moveTo(U.x-r*z,U.y-v*z);c.lineTo(U.x-2*Ua+r*z,U.y-2*Pa+v*z);c.moveTo(U.x-Ua-Pa+v*z,U.y-Pa+Ua-r*z);c.lineTo(U.x+Pa-Ua-v*z,U.y-Pa-Ua+r*z);c.stroke()}});+mxMarker.addMarker("halfCircle",function(c,l,t,n,r,v,x,I,z,da){var U=r*(x+z+1),Fa=v*(x+z+1),Ua=n.clone();n.x-=U;n.y-=Fa;return function(){c.begin();c.moveTo(Ua.x-Fa,Ua.y+U);c.quadTo(n.x-Fa,n.y+U,n.x,n.y);c.quadTo(n.x+Fa,n.y-U,Ua.x+Fa,Ua.y-U);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,v,x,I,z,da){l=r*z*1.118;t=v*z*1.118;r*=x+z;v*=x+z;var U=n.clone();U.x-=l;U.y-=t;n.x+=-r-l;n.y+=-v-t;return function(){c.begin();c.moveTo(U.x,U.y);I?c.lineTo(U.x-r-v/2,U.y-v+r/2):c.lineTo(U.x+v/2-r,U.y-+v-r/2);c.lineTo(U.x-r,U.y-v);c.close();da?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,v,x,I,z,da,U){v*=I+da;x*=I+da;var Fa=r.clone();return function(){l.begin();l.moveTo(Fa.x,Fa.y);z?l.lineTo(Fa.x-v-x/c,Fa.y-x+v/c):l.lineTo(Fa.x+x/c-v,Fa.y-x-v/c);l.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var fb=function(c,l,t){return nb(c,["width"],l,function(n,r,v,x,I){I=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(x.x++r*n/4+v*I/2,x.y+v*n/4-r*I/2)},function(n,r,v,x,I,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));c.style.width=Math.round(2*n)/c.view.scale-t})},nb=function(c,l,t,n,r){return La(c,l,function(v){var x=c.absolutePoints;if(null!=x&&0<x.length){var I=x.length-1;v=c.view.translate;var z=c.view.scale,da=t?x[0]:x[I];x=t?x[1]:x[I-1];I=x.x-da.x;var U=x.y-da.y,Fa=Math.sqrt(I*I+U*U);da=n.call(this,Fa,I/Fa,U/Fa,da,x);return new mxPoint(da.x/z-v.x,da.y/z-v.y)}return null},function(v,x,I){var z=c.absolutePoints,+da=z.length-1;v=c.view.translate;var U=c.view.scale,Fa=t?z[0]:z[da];z=t?z[1]:z[da-1];da=z.x-Fa.x;var Ua=z.y-Fa.y,Pa=Math.sqrt(da*da+Ua*Ua);x.x=(x.x+v.x)*U;x.y=(x.y+v.y)*U;r.call(this,Pa,da/Pa,Ua/Pa,Fa,z,x,I)})},cb=function(c,l){return function(t){return[nb(t,["startWidth"],!0,function(n,r,v,x,I){I=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(x.x+r*n/4+v*I/2,x.y+v*n/4-r*I/2)},function(n,r,v,x,I,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));t.style.startWidth=Math.round(2*n)/t.view.scale-l})]}},vb=function(c){return function(l){return[La(l,["arrowWidth","arrowSize"],function(t){var n=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",Za.prototype.arrowWidth))),r=Math.max(0,Math.min(c,mxUtils.getValue(this.state.style,"arrowSize",Za.prototype.arrowSize)));return new mxPoint(t.x+(1-r)*t.width,t.y+(1-n)*t.height/2)},function(t,n){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(t.y+t.height/2-n.y)/t.height*2));this.state.style.arrowSize=-Math.max(0,Math.min(c,(t.x+t.width-n.x)/t.width))})]}},wb=function(c){return function(l){return[La(l,["size"],function(t){var n=Math.max(0,Math.min(.5*t.height,parseFloat(mxUtils.getValue(this.state.style,"size",c))));return new mxPoint(t.x,t.y+n)},function(t,n){this.state.style.size=Math.max(0,n.y-t.y)},!0)]}},yb=function(c,l,t){return function(n){var r=[La(n,["size"],function(u){var x=Math.max(0,Math.min(u.width,Math.min(u.height,parseFloat(mxUtils.getValue(this.state.style,"size",l)))))*c;return new mxPoint(u.x+-x,u.y+x)},function(u,x){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(u.width,x.x-u.x),Math.min(u.height,x.y-u.y)))/c)},!1)];t&&mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(ib(n));return r}},sb=function(c,l,t,n,r){t=null!=t?t:.5;return function(u){var x=[La(u,["size"],function(I){var z=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,da=parseFloat(mxUtils.getValue(this.state.style,"size",z?r:c));return new mxPoint(I.x+Math.max(0,Math.min(.5*I.width,-da*(z?1:I.width))),I.getCenterY())},function(I,z,da){I=null!=r&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?z.x-I.x:Math.max(0,Math.min(t,(z.x-I.x)/I.width));this.state.style.size=I},!1,n)];l&&mxUtils.getValue(u.style,mxConstants.STYLE_ROUNDED,!1)&&x.push(ib(u));return x}},qb=function(c,l,t){c=null!=c?c:.5;return function(n){var r=[La(n,["size"],function(u){var x=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,I=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,-"size",x?t:l)));return new mxPoint(u.x+Math.min(.75*u.width*c,I*(x?.75:.75*u.width)),u.y+u.height/4)},function(u,x){u=null!=t&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?x.x-u.x:Math.max(0,Math.min(c,(x.x-u.x)/u.width*.75));this.state.style.size=u},!1,!0)];mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(ib(n));return r}},rb=function(){return function(c){var l=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l}},ib=function(c,l){return La(c,+Math.max(0,Math.min(c,(t.x+t.width-n.x)/t.width))})]}},wb=function(c){return function(l){return[La(l,["size"],function(t){var n=Math.max(0,Math.min(.5*t.height,parseFloat(mxUtils.getValue(this.state.style,"size",c))));return new mxPoint(t.x,t.y+n)},function(t,n){this.state.style.size=Math.max(0,n.y-t.y)},!0)]}},yb=function(c,l,t){return function(n){var r=[La(n,["size"],function(v){var x=Math.max(0,Math.min(v.width,Math.min(v.height,parseFloat(mxUtils.getValue(this.state.style,"size",l)))))*c;return new mxPoint(v.x++x,v.y+x)},function(v,x){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(v.width,x.x-v.x),Math.min(v.height,x.y-v.y)))/c)},!1)];t&&mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(ib(n));return r}},sb=function(c,l,t,n,r){t=null!=t?t:.5;return function(v){var x=[La(v,["size"],function(I){var z=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,da=parseFloat(mxUtils.getValue(this.state.style,"size",z?r:c));return new mxPoint(I.x+Math.max(0,Math.min(.5*I.width,+da*(z?1:I.width))),I.getCenterY())},function(I,z,da){I=null!=r&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?z.x-I.x:Math.max(0,Math.min(t,(z.x-I.x)/I.width));this.state.style.size=I},!1,n)];l&&mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&x.push(ib(v));return x}},qb=function(c,l,t){c=null!=c?c:.5;return function(n){var r=[La(n,["size"],function(v){var x=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,I=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,+"size",x?t:l)));return new mxPoint(v.x+Math.min(.75*v.width*c,I*(x?.75:.75*v.width)),v.y+v.height/4)},function(v,x){v=null!=t&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?x.x-v.x:Math.max(0,Math.min(c,(x.x-v.x)/v.width*.75));this.state.style.size=v},!1,!0)];mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(ib(n));return r}},rb=function(){return function(c){var l=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l}},ib=function(c,l){return La(c,[mxConstants.STYLE_ARCSIZE],function(t){var n=null!=l?l:t.height/8;if("1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var r=mxUtils.getValue(c.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(t.x+t.width-Math.min(t.width/2,r),t.y+n)}r=Math.max(0,parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(t.x+t.width-Math.min(Math.max(t.width/2,t.height/2),Math.min(t.width,t.height)*-r),t.y+n)},function(t,n,r){"1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(t.width,2*(t.x+t.width-n.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(t.width-n.x+t.x)/Math.min(t.width,t.height))))})},La=function(c,l,t,n,r,u,x){var I=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);I.execute=function(da){for(var U=0;U<l.length;U++)this.copyStyle(l[U]);-x&&x(da)};I.getPosition=t;I.setPosition=n;I.ignoreGrid=null!=r?r:!0;if(u){var z=I.positionChanged;I.positionChanged=function(){z.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return I},ob={link:function(c){return[fb(c,!0,10),fb(c,!1,10)]},pipe:function(c){return[fb(c,!0,10),fb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,t=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(nb(c,["width",mxConstants.STYLE_STARTSIZE,-mxConstants.STYLE_ENDSIZE],!0,function(n,r,u,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+u*n/2,x.y+u*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,u,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+u,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*+r),t.y+n)},function(t,n,r){"1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(t.width,2*(t.x+t.width-n.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(t.width-n.x+t.x)/Math.min(t.width,t.height))))})},La=function(c,l,t,n,r,v,x){var I=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);I.execute=function(da){for(var U=0;U<l.length;U++)this.copyStyle(l[U]);+x&&x(da)};I.getPosition=t;I.setPosition=n;I.ignoreGrid=null!=r?r:!0;if(v){var z=I.positionChanged;I.positionChanged=function(){z.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return I},ob={link:function(c){return[fb(c,!0,10),fb(c,!1,10)]},pipe:function(c){return[fb(c,!0,10),fb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,t=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(nb(c,["width",mxConstants.STYLE_STARTSIZE,+mxConstants.STYLE_ENDSIZE],!0,function(n,r,v,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(da.getEvent())||Math.abs(parseFloat(c.style[mxConstants.STYLE_STARTSIZE])-parseFloat(c.style[mxConstants.STYLE_ENDSIZE]))<l/6&&(c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE])})),t.push(nb(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,-mxConstants.STYLE_ENDSIZE],!0,function(n,r,u,x,I){n=(c.shape.getStartArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+u*n/2,x.y+u*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,u,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+u,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_STARTSIZE]=+mxConstants.STYLE_ENDSIZE],!0,function(n,r,v,x,I){n=(c.shape.getStartArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.startWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE],c.style.endWidth=c.style.startWidth;mxEvent.isAltDown(da.getEvent())||(Math.abs(parseFloat(c.style[mxConstants.STYLE_STARTSIZE])-parseFloat(c.style[mxConstants.STYLE_ENDSIZE]))<l/6&&(c.style[mxConstants.STYLE_STARTSIZE]=-c.style[mxConstants.STYLE_ENDSIZE]),Math.abs(parseFloat(c.style.startWidth)-parseFloat(c.style.endWidth))<l&&(c.style.startWidth=c.style.endWidth))})));mxUtils.getValue(c.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(nb(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,u,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+-r*(I+c.shape.strokewidth*c.view.scale)-u*n/2,x.y+u*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,u,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+u,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];-mxEvent.isAltDown(da.getEvent())||Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE])})),t.push(nb(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,u,x,I){n=(c.shape.getEndArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+-r*(I+c.shape.strokewidth*c.view.scale)-u*n/2,x.y+u*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,u,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+u,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.endWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=+c.style[mxConstants.STYLE_ENDSIZE]),Math.abs(parseFloat(c.style.startWidth)-parseFloat(c.style.endWidth))<l&&(c.style.startWidth=c.style.endWidth))})));mxUtils.getValue(c.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(nb(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x++r*(I+c.shape.strokewidth*c.view.scale)-v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];+mxEvent.isAltDown(da.getEvent())||Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE])})),t.push(nb(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,I){n=(c.shape.getEndArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x++r*(I+c.shape.strokewidth*c.view.scale)-v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.endWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE],c.style.startWidth=c.style.endWidth;mxEvent.isAltDown(da.getEvent())||(Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE]),Math.abs(parseFloat(c.style.endWidth)-parseFloat(c.style.startWidth))<l&&(c.style.endWidth=c.style.startWidth))})));return t},swimlane:function(c){var l=[];if(mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED)){var t=parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));l.push(ib(c,t/2))}l.push(La(c,[mxConstants.STYLE_STARTSIZE],function(n){var r=parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(c.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(n.getCenterX(),n.y+Math.max(0,Math.min(n.height,r))):new mxPoint(n.x+Math.max(0,Math.min(n.width,r)),n.getCenterY())},function(n,r){c.style[mxConstants.STYLE_STARTSIZE]=-1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(n.height,r.y-n.y))):Math.round(Math.max(0,Math.min(n.width,r.x-n.x)))},!1,null,function(n){var r=c.view.graph;if(!mxEvent.isShiftDown(n.getEvent())&&!mxEvent.isControlDown(n.getEvent())&&(r.isTableRow(c.cell)||r.isTableCell(c.cell))){n=r.getSwimlaneDirection(c.style);var u=r.model.getParent(c.cell);u=r.model.getChildCells(u,!0);for(var x=[],I=0;I<u.length;I++)u[I]!=c.cell&&r.isSwimlane(u[I])&&r.getSwimlaneDirection(r.getCurrentCellStyle(u[I]))==-n&&x.push(u[I]);r.setCellStyles(mxConstants.STYLE_STARTSIZE,c.style[mxConstants.STYLE_STARTSIZE],x)}}));return l},label:rb(),ext:rb(),rectangle:rb(),triangle:rb(),rhombus:rb(),umlLifeline:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",ba.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},umlFrame:function(c){return[La(c,+1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(n.height,r.y-n.y))):Math.round(Math.max(0,Math.min(n.width,r.x-n.x)))},!1,null,function(n){var r=c.view.graph;if(!mxEvent.isShiftDown(n.getEvent())&&!mxEvent.isControlDown(n.getEvent())&&(r.isTableRow(c.cell)||r.isTableCell(c.cell))){n=r.getSwimlaneDirection(c.style);var v=r.model.getParent(c.cell);v=r.model.getChildCells(v,!0);for(var x=[],I=0;I<v.length;I++)v[I]!=c.cell&&r.isSwimlane(v[I])&&r.getSwimlaneDirection(r.getCurrentCellStyle(v[I]))==+n&&x.push(v[I]);r.setCellStyles(mxConstants.STYLE_STARTSIZE,c.style[mxConstants.STYLE_STARTSIZE],x)}}));return l},label:rb(),ext:rb(),rectangle:rb(),triangle:rb(),rhombus:rb(),umlLifeline:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",ba.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},umlFrame:function(c){return[La(c,["width","height"],function(l){var t=Math.max(ma.prototype.corner,Math.min(l.width,mxUtils.getValue(this.state.style,"width",ma.prototype.width))),n=Math.max(1.5*ma.prototype.corner,Math.min(l.height,mxUtils.getValue(this.state.style,"height",ma.prototype.height)));return new mxPoint(l.x+t,l.y+n)},function(l,t){this.state.style.width=Math.round(Math.max(ma.prototype.corner,Math.min(l.width,t.x-l.x)));this.state.style.height=Math.round(Math.max(1.5*ma.prototype.corner,Math.min(l.height,t.y-l.y)))},!1)]},process:function(c){var l=[La(c,["size"],function(t){var n="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),r=parseFloat(mxUtils.getValue(this.state.style,"size",ca.prototype.size));return n?new mxPoint(t.x+r,t.y+t.height/4):new mxPoint(t.x+t.width*r,t.y+t.height/4)},function(t,n){t="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*t.width,n.x-t.x)):Math.max(0,Math.min(.5,(n.x-t.x)/t.width));this.state.style.size=t},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l},cross:function(c){return[La(c,["size"],function(l){var t=Math.min(l.width,l.height);t=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",Aa.prototype.size)))*t/2;return new mxPoint(l.getCenterX()-t,l.getCenterY()-t)},function(l,t){var n=Math.min(l.width,l.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,l.getCenterY()-t.y)/n*2,Math.max(0,l.getCenterX()-t.x)/n*2)))})]},note:function(c){return[La(c,["size"],function(l){var t=Math.max(0,-Math.min(l.width,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",k.prototype.size)))));return new mxPoint(l.x+l.width-t,l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(l.width,l.x+l.width-t.x),Math.min(l.height,t.y-l.y))))})]},note2:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(l.width,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",v.prototype.size)))));return new mxPoint(l.x+l.width-t,l.y+t)},+Math.min(l.width,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",k.prototype.size)))));return new mxPoint(l.x+l.width-t,l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(l.width,l.x+l.width-t.x),Math.min(l.height,t.y-l.y))))})]},note2:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(l.width,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",u.prototype.size)))));return new mxPoint(l.x+l.width-t,l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(l.width,l.x+l.width-t.x),Math.min(l.height,t.y-l.y))))})]},manualInput:function(c){var l=[La(c,["size"],function(t){var n=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"size",Wa.prototype.size)));return new mxPoint(t.x+t.width/4,t.y+3*n/4)},function(t,n){this.state.style.size=Math.round(Math.max(0,Math.min(t.height,4*(n.y-t.y)/3)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l},dataStorage:function(c){return[La(c,["size"],function(l){var t="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),n=parseFloat(mxUtils.getValue(this.state.style,"size",t?bb.prototype.fixedSize:bb.prototype.size));return new mxPoint(l.x+l.width-n*(t?1:l.width),l.getCenterY())},function(l,t){l="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(l.width,l.x+l.width-t.x)):Math.max(0,Math.min(1,(l.x+l.width-t.x)/l.width));this.state.style.size=l},!1)]},callout:function(c){var l=[La(c,["size","position"],function(t){var n=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"size",S.prototype.size))),r=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",S.prototype.position)));mxUtils.getValue(this.state.style,"base",S.prototype.base);return new mxPoint(t.x+r*t.width,t.y+t.height-n)},function(t,n){mxUtils.getValue(this.state.style,"base",S.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(t.height,t.y+t.height-n.y)));this.state.style.position=Math.round(100*Math.max(0,Math.min(1,(n.x-t.x)/t.width)))/100},!1),La(c,["position2"],function(t){var n=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",S.prototype.position2)));return new mxPoint(t.x+n*t.width,t.y+t.height)},function(t,n){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(n.x-t.x)/t.width)))/100},!1),La(c,["base"],function(t){var n=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"size",S.prototype.size))),r=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,-"position",S.prototype.position))),u=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"base",S.prototype.base)));return new mxPoint(t.x+Math.min(t.width,r*t.width+u),t.y+t.height-n)},function(t,n){var r=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",S.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(t.width,n.x-t.x-r*t.width)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l},internalStorage:function(c){var l=+"position",S.prototype.position))),v=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"base",S.prototype.base)));return new mxPoint(t.x+Math.min(t.width,r*t.width+v),t.y+t.height-n)},function(t,n){var r=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",S.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(t.width,n.x-t.x-r*t.width)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l},internalStorage:function(c){var l=[La(c,["dx","dy"],function(t){var n=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",$a.prototype.dx))),r=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",$a.prototype.dy)));return new mxPoint(t.x+n,t.y+r)},function(t,n){this.state.style.dx=Math.round(Math.max(0,Math.min(t.width,n.x-t.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,n.y-t.y)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l},module:function(c){return[La(c,["jettyWidth","jettyHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"jettyWidth",Ka.prototype.jettyWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"jettyHeight",Ka.prototype.jettyHeight)));return new mxPoint(l.x+t/2,l.y+2*n)},function(l,t){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(l.width,t.x-l.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(l.height,t.y-l.y))/2)})]},corner:function(c){return[La(c,["dx","dy"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"dx",db.prototype.dx))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"dy",db.prototype.dy)));return new mxPoint(l.x+t,l.y+n)},function(l,t){this.state.style.dx=Math.round(Math.max(0,Math.min(l.width,t.x-l.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},tee:function(c){return[La(c,["dx","dy"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,@@ -3509,10 +3510,10 @@ folder:function(c){return[La(c,["tabWidth","tabHeight"],function(l){var t=Math.m!1)]},tape:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",M.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t*l.height/2)},function(l,t){this.state.style.size=Math.max(0,Math.min(1,(t.y-l.y)/l.height*2))},!1)]},isoCube2:function(c){return[La(c,["isoAngle"],function(l){var t=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",w.isoAngle))))*Math.PI/200;return new mxPoint(l.x,l.y+Math.min(l.width*Math.tan(t),.5*l.height))},function(l,t){this.state.style.isoAngle=Math.max(0,50*(t.y-l.y)/l.height)},!0)]},cylinder2:wb(y.prototype.size),cylinder3:wb(C.prototype.size),offPageConnector:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",F.prototype.size))));return new mxPoint(l.getCenterX(),l.y+(1-t)*l.height)},function(l,t){this.state.style.size=Math.max(0,Math.min(1,(l.y+l.height-t.y)/l.height))},!1)]},"mxgraph.basic.rect":function(c){var l=[Graph.createHandle(c,["size"],function(t){var n=Math.max(0,Math.min(t.width/2,t.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));return new mxPoint(t.x+n,t.y+n)},function(t,n){this.state.style.size=Math.round(100*Math.max(0,Math.min(t.height/2,t.width/2,n.x-t.x)))/100})];c=Graph.createHandle(c,["indent"],function(t){var n=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(t.x+.75*t.width,t.y+n*t.height/200)},function(t,-n){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(n.y-t.y)/t.height)))/100});l.push(c);return l},step:sb(ea.prototype.size,!0,null,!0,ea.prototype.fixedSize),hexagon:sb(la.prototype.size,!0,.5,!0,la.prototype.fixedSize),curlyBracket:sb(X.prototype.size,!1),display:sb(Ga.prototype.size,!1),cube:yb(1,e.prototype.size,!1),card:yb(.5,J.prototype.size,!0),loopLimit:yb(.5,B.prototype.size,!0),trapezoid:qb(.5,W.prototype.size,W.prototype.fixedSize),parallelogram:qb(1,L.prototype.size,-L.prototype.fixedSize)};Graph.createHandle=La;Graph.handleFactory=ob;var ab=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){var c=ab.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var l=this.state.style.shape;null==mxCellRenderer.defaultShapes[l]&&null==mxStencilRegistry.getStencil(l)?l=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(l=mxConstants.SHAPE_SWIMLANE);l=ob[l];null==l&&null!=this.state.shape&&+n){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(n.y-t.y)/t.height)))/100});l.push(c);return l},step:sb(ea.prototype.size,!0,null,!0,ea.prototype.fixedSize),hexagon:sb(la.prototype.size,!0,.5,!0,la.prototype.fixedSize),curlyBracket:sb(X.prototype.size,!1),display:sb(Ga.prototype.size,!1),cube:yb(1,e.prototype.size,!1),card:yb(.5,J.prototype.size,!0),loopLimit:yb(.5,B.prototype.size,!0),trapezoid:qb(.5,W.prototype.size,W.prototype.fixedSize),parallelogram:qb(1,K.prototype.size,+K.prototype.fixedSize)};Graph.createHandle=La;Graph.handleFactory=ob;var ab=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){var c=ab.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var l=this.state.style.shape;null==mxCellRenderer.defaultShapes[l]&&null==mxStencilRegistry.getStencil(l)?l=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(l=mxConstants.SHAPE_SWIMLANE);l=ob[l];null==l&&null!=this.state.shape&&this.state.shape.isRoundable()&&(l=ob[mxConstants.SHAPE_RECTANGLE]);null!=l&&(l=l(this.state),null!=l&&(c=null==c?l:c.concat(l)))}return c};mxEdgeHandler.prototype.createCustomHandles=function(){var c=this.state.style.shape;null==mxCellRenderer.defaultShapes[c]&&null==mxStencilRegistry.getStencil(c)&&(c=mxConstants.SHAPE_CONNECTOR);c=ob[c];return null!=c?c(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var jb=new mxPoint(1,0),hb=new mxPoint(1,0),Ya=mxUtils.toRadians(-30);-jb=mxUtils.getRotatedPoint(jb,Math.cos(Ya),Math.sin(Ya));var xb=mxUtils.toRadians(-150);hb=mxUtils.getRotatedPoint(hb,Math.cos(xb),Math.sin(xb));mxEdgeStyle.IsometricConnector=function(c,l,t,n,r){var u=c.view;n=null!=n&&0<n.length?n[0]:null;var x=c.absolutePoints,I=x[0];x=x[x.length-1];null!=n&&(n=u.transformControlPoint(c,n));null==I&&null!=l&&(I=new mxPoint(l.getCenterX(),l.getCenterY()));null==x&&null!=t&&(x=new mxPoint(t.getCenterX(),t.getCenterY()));var z=jb.x,da=jb.y,U=hb.x,Fa=hb.y,Ua="horizontal"==+jb=mxUtils.getRotatedPoint(jb,Math.cos(Ya),Math.sin(Ya));var xb=mxUtils.toRadians(-150);hb=mxUtils.getRotatedPoint(hb,Math.cos(xb),Math.sin(xb));mxEdgeStyle.IsometricConnector=function(c,l,t,n,r){var v=c.view;n=null!=n&&0<n.length?n[0]:null;var x=c.absolutePoints,I=x[0];x=x[x.length-1];null!=n&&(n=v.transformControlPoint(c,n));null==I&&null!=l&&(I=new mxPoint(l.getCenterX(),l.getCenterY()));null==x&&null!=t&&(x=new mxPoint(t.getCenterX(),t.getCenterY()));var z=jb.x,da=jb.y,U=hb.x,Fa=hb.y,Ua="horizontal"==mxUtils.getValue(c.style,"elbow","horizontal");if(null!=x&&null!=I){c=function(oa,sa,qa){oa-=Pa.x;var pa=sa-Pa.y;sa=(Fa*oa-U*pa)/(z*Fa-da*U);oa=(da*oa-z*pa)/(da*U-z*Fa);Ua?(qa&&(Pa=new mxPoint(Pa.x+z*sa,Pa.y+da*sa),r.push(Pa)),Pa=new mxPoint(Pa.x+U*oa,Pa.y+Fa*oa)):(qa&&(Pa=new mxPoint(Pa.x+U*oa,Pa.y+Fa*oa),r.push(Pa)),Pa=new mxPoint(Pa.x+z*sa,Pa.y+da*sa));r.push(Pa)};var Pa=I;null==n&&(n=new mxPoint(I.x+(x.x-I.x)/2,I.y+(x.y-I.y)/2));c(n.x,n.y,!0);c(x.x,x.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Ab=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(c,l){if(l==mxEdgeStyle.IsometricConnector){var t=new mxElbowEdgeHandler(c);t.snapToTerminals=!1;return t}return Ab.apply(this,arguments)};h.prototype.constraints=[];m.prototype.getConstraints=function(c,l,t){c=[];var n=Math.tan(mxUtils.toRadians(30)),r=(.5-n)/2;n=Math.min(l,t/(.5+n));l=(l-n)/2;t=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t+.25*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+.5*n,t+n*r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+n,t+.25*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+n,t+.75*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+.5*n,t+(1-r)*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t+.75*n));return c};w.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;n=Math.min(l*@@ -3533,7 +3534,7 @@ null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*n,."tabWidth",this.tabWidth)))),r=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?(c.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,0)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,r)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),r))):(c.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*n,0)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,r)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),r)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.25*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.75*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.25*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,0,t));c.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return c};$a.prototype.constraints=mxRectangleShape.prototype.constraints;bb.prototype.constraints=mxRectangleShape.prototype.constraints;K.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;Z.prototype.constraints=mxEllipse.prototype.constraints;Ma.prototype.constraints=+0),!1,null,0,t));c.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return c};$a.prototype.constraints=mxRectangleShape.prototype.constraints;bb.prototype.constraints=mxRectangleShape.prototype.constraints;L.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;Z.prototype.constraints=mxEllipse.prototype.constraints;Ma.prototype.constraints=mxEllipse.prototype.constraints;Wa.prototype.constraints=mxRectangleShape.prototype.constraints;Na.prototype.constraints=mxRectangleShape.prototype.constraints;Ga.prototype.getConstraints=function(c,l,t){c=[];var n=Math.min(l,t/2),r=Math.min(l-n,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*l);c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));return c};Ka.prototype.getConstraints=function(c,l,t){l=parseFloat(mxUtils.getValue(c,"jettyWidth",Ka.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,"jettyHeight",Ka.prototype.jettyHeight));var n=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,l),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,@@ -3549,7 +3550,7 @@ l),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(1),!1)];mxDoubleEllipse.prototype.constraints=mxEllipse.prototype.constraints;mxRhombus.prototype.constraints=mxEllipse.prototype.constraints;mxTriangle.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0)];mxHexagon.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.375,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.625,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.375,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.625,1),!0)];mxCloud.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.25),!1),new mxConnectionConstraint(new mxPoint(.4,.1),!1),new mxConnectionConstraint(new mxPoint(.16,.55),!1),new mxConnectionConstraint(new mxPoint(.07,.4),!1),new mxConnectionConstraint(new mxPoint(.31,.8),!1),new mxConnectionConstraint(new mxPoint(.13,.77),!1),new mxConnectionConstraint(new mxPoint(.8,.8),!1),new mxConnectionConstraint(new mxPoint(.55,-.95),!1),new mxConnectionConstraint(new mxPoint(.875,.5),!1),new mxConnectionConstraint(new mxPoint(.96,.7),!1),new mxConnectionConstraint(new mxPoint(.625,.2),!1),new mxConnectionConstraint(new mxPoint(.88,.25),!1)];L.prototype.constraints=mxRectangleShape.prototype.constraints;W.prototype.constraints=mxRectangleShape.prototype.constraints;Q.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,+.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)];K.prototype.constraints=mxRectangleShape.prototype.constraints;W.prototype.constraints=mxRectangleShape.prototype.constraints;Q.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;eb.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),r=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*l+.25*n,r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),.5*(t+r)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),.5*(t+r)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*l-.25*n,r));c.push(new mxConnectionConstraint(new mxPoint(0,@@ -3559,76 +3560,76 @@ new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(newfunction(c,l,t){c=[];var n=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),r=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));n=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-r),n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-r),t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));return c};gb.prototype.getConstraints=function(c,l,t){c=[];var n=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Za.prototype.arrowWidth)))),r=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Za.prototype.arrowSize))));n=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*l,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));return c};Aa.prototype.getConstraints=-function(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mxUtils.getValue(this.style,"size",this.size))));n=(t-r)/2;var u=n+r,x=(l-r)/2;r=x+r;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,0));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),n));c.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,0,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,n));return c};ba.prototype.constraints=null;q.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(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mxUtils.getValue(this.style,"size",this.size))));n=(t-r)/2;var v=n+r,x=(l-r)/2;r=x+r;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,0));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),n));c.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,0,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,n));return c};ba.prototype.constraints=null;q.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)];A.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)];ya.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];za.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(a){this.editorUi=a;this.actions={};this.init()}-Actions.prototype.init=function(){function a(k){d.escape();k=d.deleteCells(d.getDeletableCells(d.getSelectionCells()),k);null!=k&&d.setSelectionCells(k)}function b(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),v=0;v<k.length;v++)d.cellLabelChanged(k[v],"")}finally{d.getModel().endUpdate()}}}function f(k,v,w,y,C){C.getModel().beginUpdate();try{var D=C.getCellGeometry(k);null!=D&&w&&y&&(w/=y,D=D.clone(),1<w?D.height=D.width/w:D.width=D.height*w,C.getModel().setGeometry(k,-D));C.setCellStyles(mxConstants.STYLE_CLIP_PATH,v,[k]);C.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[k])}finally{C.getModel().endUpdate()}}var e=this.editorUi,g=e.editor,d=g.graph,h=function(){return Action.prototype.isEnabled.apply(this,arguments)&&d.isEnabled()};this.addAction("new...",function(){d.openLink(e.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";e.openFile()});var m=new Action("smartFit",function(){d.popupMenuHandler.hideMenu();var k=d.view.scale,-v=d.container.scrollLeft,w=d.container.scrollTop,y=d.view.translate.x,C=d.view.translate.y;e.actions.get("resetView").funct();1E-5>Math.abs(k-d.view.scale)&&5>Math.abs(v-d.container.scrollLeft)&&5>Math.abs(w-d.container.scrollTop)&&y==d.view.translate.x&&C==d.view.translate.y&&e.actions.get("fitWindow").funct()},null,null,"Enter");m.getTitle=function(){return mxResources.get("fitWindow")+" / "+mxResources.get("resetView")};this.put("smartFit",m);this.addAction("keyPressEnter",function(){d.isSelectionEmpty()?-e.actions.get("smartFit").funct():d.isEnabled()&&d.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){e.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(k,v){try{var w=mxUtils.parseXml(k);g.graph.setSelectionCells(g.graph.importGraphModel(w.documentElement))}catch(y){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+y.message)}}));e.showDialog((new OpenDialog(this)).container,+Actions.prototype.init=function(){function a(k){d.escape();k=d.deleteCells(d.getDeletableCells(d.getSelectionCells()),k);null!=k&&d.setSelectionCells(k)}function b(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),u=0;u<k.length;u++)d.cellLabelChanged(k[u],"")}finally{d.getModel().endUpdate()}}}function f(k,u,w,y,C){C.getModel().beginUpdate();try{var D=C.getCellGeometry(k);null!=D&&w&&y&&(w/=y,D=D.clone(),1<w?D.height=D.width/w:D.width=D.height*w,C.getModel().setGeometry(k,+D));C.setCellStyles(mxConstants.STYLE_CLIP_PATH,u,[k]);C.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[k])}finally{C.getModel().endUpdate()}}var e=this.editorUi,g=e.editor,d=g.graph,h=function(){return Action.prototype.isEnabled.apply(this,arguments)&&d.isEnabled()};this.addAction("new...",function(){d.openLink(e.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";e.openFile()});var m=new Action("smartFit",function(){d.popupMenuHandler.hideMenu();var k=d.view.scale,+u=d.container.scrollLeft,w=d.container.scrollTop,y=d.view.translate.x,C=d.view.translate.y;e.actions.get("resetView").funct();1E-5>Math.abs(k-d.view.scale)&&5>Math.abs(u-d.container.scrollLeft)&&5>Math.abs(w-d.container.scrollTop)&&y==d.view.translate.x&&C==d.view.translate.y&&e.actions.get("fitWindow").funct()},null,null,"Enter");m.getTitle=function(){return mxResources.get("fitWindow")+" / "+mxResources.get("resetView")};this.put("smartFit",m);this.addAction("keyPressEnter",function(){d.isSelectionEmpty()?+e.actions.get("smartFit").funct():d.isEnabled()&&d.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){e.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(k,u){try{var w=mxUtils.parseXml(k);g.graph.setSelectionCells(g.graph.importGraphModel(w.documentElement))}catch(y){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+y.message)}}));e.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=h;this.addAction("save",function(){e.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=h;this.addAction("saveAs...",function(){e.saveFile(!0)},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+S");this.addAction("export...",function(){e.showDialog((new ExportDialog(e)).container,300,340,!0,!0)});this.addAction("editDiagram...",function(){var k=new EditDiagramDialog(e);e.showDialog(k.container,620,420,!0,!1);k.init()}).isEnabled=h;this.addAction("pageSetup...",function(){e.showDialog((new PageSetupDialog(e)).container,320,240,!0,!0)}).isEnabled=h;this.addAction("print...",function(){e.showPrintDialog()},null,"",Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(d,null,10,10)});this.addAction("undo",function(){e.undo()},null,"",Editor.ctrlKey+"+Z");this.addAction("redo",function(){e.redo()},null,"",mxClient.IS_WIN?Editor.ctrlKey+"+Y":Editor.ctrlKey+"+"+Editor.shiftKey+"+Z");this.addAction("cut",function(){var k=null;try{k=e.copyXml(),-null!=k&&d.removeCells(k,!1)}catch(v){}try{null==k&&mxClipboard.cut(d)}catch(v){e.handleError(v)}},null,"",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{e.copyXml()}catch(k){}try{mxClipboard.copy(d)}catch(k){e.handleError(k)}},null,"",Editor.ctrlKey+"+C");this.addAction("paste",function(){e.pasteFromClipboard()},!1,"",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(k){e.pasteFromClipboard(d.popupMenuHandler.getTriggerPoint())});this.addAction("swap",function(){var k=d.getSelectionCells();-2==k.length&&d.swapShapes(k[0],k[1])});this.addAction("copySize",function(){var k=d.getSelectionCell();d.isEnabled()&&null!=k&&d.getModel().isVertex(k)&&(k=d.getCellGeometry(k),null!=k&&(e.copiedSize=new mxRectangle(k.x,k.y,k.width,k.height)))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+F");this.addAction("pasteSize",function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=e.copiedSize){d.getModel().beginUpdate();try{for(var k=d.getResizableCells(d.getSelectionCells()),v=0;v<k.length;v++)if(d.getModel().isVertex(k[v])){var w=-d.getCellGeometry(k[v]);null!=w&&(w=w.clone(),w.width=e.copiedSize.width,w.height=e.copiedSize.height,d.getModel().setGeometry(k[v],w))}}finally{d.getModel().endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+V");this.addAction("copyData",function(){var k=d.getSelectionCell()||d.getModel().getRoot();d.isEnabled()&&null!=k&&(k=k.cloneValue(),null==k||isNaN(k.nodeType)||(e.copiedValue=k))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+B");this.addAction("copyAsText",function(){var k=d.getSelectionCell();-if(d.isEnabled()&&null!=k)try{d.isHtmlLabel(k)?e.writeHtmlToClipboard(d.getLabel(k),mxUtils.bind(this,function(v){e.handleError(v)})):e.writeTextToClipboard(d.getLabel(k),mxUtils.bind(this,function(v){e.handleError(v)}))}catch(v){e.handleError(v)}});this.addAction("pasteData",function(k,v){function w(D,E){var G=y.getValue(D);E=D.cloneValue(E);E.removeAttribute("placeholders");null==G||isNaN(G.nodeType)||E.setAttribute("placeholders",G.getAttribute("placeholders"));null!=k&&mxEvent.isShiftDown(k)||-E.setAttribute("label",d.convertValueToString(D));y.setValue(D,E)}k=null!=v?v:k;var y=d.getModel();if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=e.copiedValue){y.beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());if(0==C.length)w(y.getRoot(),e.copiedValue);else for(v=0;v<C.length;v++)w(C[v],e.copiedValue)}finally{y.endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+E");this.addAction("delete",function(k,v){k=null!=v?v:k;null!=k&&mxEvent.isShiftDown(k)?b():a(null!=k&&(mxEvent.isControlDown(k)||+null!=k&&d.removeCells(k,!1)}catch(u){}try{null==k&&mxClipboard.cut(d)}catch(u){e.handleError(u)}},null,"",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{e.copyXml()}catch(k){}try{mxClipboard.copy(d)}catch(k){e.handleError(k)}},null,"",Editor.ctrlKey+"+C");this.addAction("paste",function(){e.pasteFromClipboard()},!1,"",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(k){e.pasteFromClipboard(d.popupMenuHandler.getTriggerPoint())});this.addAction("swap",function(){var k=d.getSelectionCells();+2==k.length&&d.swapShapes(k[0],k[1])});this.addAction("copySize",function(){var k=d.getSelectionCell();d.isEnabled()&&null!=k&&d.getModel().isVertex(k)&&(k=d.getCellGeometry(k),null!=k&&(e.copiedSize=new mxRectangle(k.x,k.y,k.width,k.height)))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+F");this.addAction("pasteSize",function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=e.copiedSize){d.getModel().beginUpdate();try{for(var k=d.getResizableCells(d.getSelectionCells()),u=0;u<k.length;u++)if(d.getModel().isVertex(k[u])){var w=+d.getCellGeometry(k[u]);null!=w&&(w=w.clone(),w.width=e.copiedSize.width,w.height=e.copiedSize.height,d.getModel().setGeometry(k[u],w))}}finally{d.getModel().endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+V");this.addAction("copyData",function(){var k=d.getSelectionCell()||d.getModel().getRoot();d.isEnabled()&&null!=k&&(k=k.cloneValue(),null==k||isNaN(k.nodeType)||(e.copiedValue=k))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+B");this.addAction("copyAsText",function(){var k=d.getSelectionCell();+if(d.isEnabled()&&null!=k)try{d.isHtmlLabel(k)?e.writeHtmlToClipboard(d.getLabel(k),mxUtils.bind(this,function(u){e.handleError(u)})):e.writeTextToClipboard(d.getLabel(k),mxUtils.bind(this,function(u){e.handleError(u)}))}catch(u){e.handleError(u)}});this.addAction("pasteData",function(k,u){function w(D,E){var G=y.getValue(D);E=D.cloneValue(E);E.removeAttribute("placeholders");null==G||isNaN(G.nodeType)||E.setAttribute("placeholders",G.getAttribute("placeholders"));null!=k&&mxEvent.isShiftDown(k)||+E.setAttribute("label",d.convertValueToString(D));y.setValue(D,E)}k=null!=u?u:k;var y=d.getModel();if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=e.copiedValue){y.beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());if(0==C.length)w(y.getRoot(),e.copiedValue);else for(u=0;u<C.length;u++)w(C[u],e.copiedValue)}finally{y.endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+E");this.addAction("delete",function(k,u){k=null!=u?u:k;null!=k&&mxEvent.isShiftDown(k)?b():a(null!=k&&(mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||mxEvent.isAltDown(k)))},null,null,"Delete");this.addAction("deleteAll",function(){a(!0)});this.addAction("deleteLabels",function(){b()},null,null,Editor.ctrlKey+"+Delete");this.addAction("duplicate",function(){try{d.setSelectionCells(d.duplicateCells()),d.scrollCellToVisible(d.getSelectionCell())}catch(k){e.handleError(k)}},null,null,Editor.ctrlKey+"+D");this.put("mergeCells",new Action("merge",function(){var k=e.getSelectionState();if(null!=k.mergeCell){d.getModel().beginUpdate();-try{d.setCellStyles("rowspan",k.rowspan,[k.mergeCell]),d.setCellStyles("colspan",k.colspan,[k.mergeCell])}finally{d.getModel().endUpdate()}}}));this.put("unmergeCells",new Action("unmerge",function(){var k=e.getSelectionState();if(0<k.cells.length){d.getModel().beginUpdate();try{d.setCellStyles("rowspan",null,k.cells),d.setCellStyles("colspan",null,k.cells)}finally{d.getModel().endUpdate()}}}));m=new Action("turn",function(k,v){k=null!=v?v:k;d.turnShapes(d.getResizableCells(d.getSelectionCells()),+try{d.setCellStyles("rowspan",k.rowspan,[k.mergeCell]),d.setCellStyles("colspan",k.colspan,[k.mergeCell])}finally{d.getModel().endUpdate()}}}));this.put("unmergeCells",new Action("unmerge",function(){var k=e.getSelectionState();if(0<k.cells.length){d.getModel().beginUpdate();try{d.setCellStyles("rowspan",null,k.cells),d.setCellStyles("colspan",null,k.cells)}finally{d.getModel().endUpdate()}}}));m=new Action("turn",function(k,u){k=null!=u?u:k;d.turnShapes(d.getResizableCells(d.getSelectionCells()),null!=k?mxEvent.isShiftDown(k):!1)},null,null,mxClient.IS_SF?null:Editor.ctrlKey+"+R");m.getTitle=function(){return mxResources.get("turn")+" / "+mxResources.get("reverse")};this.put("turn",m);this.put("selectConnections",new Action("selectEdges",function(k){k=d.getSelectionCell();d.isEnabled()&&null!=k&&d.addSelectionCells(d.getEdges(k))}));this.addAction("selectVertices",function(){d.selectVertices(null,!0)},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+I");this.addAction("selectEdges",function(){d.selectEdges()},-null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+E");this.addAction("selectAll",function(){d.selectAll(null,!0)},null,null,Editor.ctrlKey+"+A");this.addAction("selectNone",function(){d.clearSelection()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+A");this.addAction("lockUnlock",function(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),v=d.getCurrentCellStyle(d.getSelectionCell()),w=1==mxUtils.getValue(v,mxConstants.STYLE_EDITABLE,1)?0:1;d.setCellStyles(mxConstants.STYLE_MOVABLE,+null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+E");this.addAction("selectAll",function(){d.selectAll(null,!0)},null,null,Editor.ctrlKey+"+A");this.addAction("selectNone",function(){d.clearSelection()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+A");this.addAction("lockUnlock",function(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),u=d.getCurrentCellStyle(d.getSelectionCell()),w=1==mxUtils.getValue(u,mxConstants.STYLE_EDITABLE,1)?0:1;d.setCellStyles(mxConstants.STYLE_MOVABLE,w,k);d.setCellStyles(mxConstants.STYLE_RESIZABLE,w,k);d.setCellStyles(mxConstants.STYLE_ROTATABLE,w,k);d.setCellStyles(mxConstants.STYLE_DELETABLE,w,k);d.setCellStyles(mxConstants.STYLE_EDITABLE,w,k);d.setCellStyles("locked",1==w?0:1,k);d.setCellStyles("connectable",w,k)}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+L");this.addAction("explore",function(){var k=d.getSelectionCell();d.model.isEdge(k)&&(k=d.model.getTerminal(k,!0));d.model.isVertex(k)&&Graph.exploreFromCell(e.editor.graph,k)});this.addAction("home",function(){d.home()},null,null,"Shift+Home");this.addAction("exitGroup",function(){d.exitGroup()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+Home");this.addAction("enterGroup",function(){d.enterGroup()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+End");this.addAction("collapse",function(){d.foldCells(!0)},null,null,Editor.ctrlKey+"+Home");this.addAction("expand",function(){d.foldCells(!1)},null,null,Editor.ctrlKey+"+End");this.addAction("toFront",function(){d.orderCells(!1)},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+F");this.addAction("toBack",function(){d.orderCells(!0)},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+B");this.addAction("bringForward",function(k){d.orderCells(!1,null,!0)},null,null,Editor.ctrlKey+"+Alt+Shift+F");this.addAction("sendBackward",function(k){d.orderCells(!0,null,!0)},null,null,Editor.ctrlKey+"+Alt+Shift+B");this.addAction("group",function(){if(d.isEnabled()){var k=mxUtils.sortCells(d.getSelectionCells(),!0);1!=k.length||d.isTable(k[0])||-d.isTableRow(k[0])?(k=d.getCellsForGroup(k),1<k.length&&d.setSelectionCell(d.groupCells(null,0,k))):d.setCellStyles("container","1")}},null,null,Editor.ctrlKey+"+G");this.addAction("ungroup",function(){if(d.isEnabled()){var k=d.getEditableCells(d.getSelectionCells());d.model.beginUpdate();try{var v=d.ungroupCells();if(null!=k)for(var w=0;w<k.length;w++)d.model.contains(k[w])&&(0==d.model.getChildCount(k[w])&&d.model.isVertex(k[w])&&d.setCellStyles("container","0",[k[w]]),v.push(k[w]))}finally{d.model.endUpdate()}0<-v.length&&d.setSelectionCells(v)}},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+U");this.addAction("removeFromGroup",function(){if(d.isEnabled()){var k=d.getSelectionCells();if(null!=k){for(var v=[],w=0;w<k.length;w++)d.isTableRow(k[w])||d.isTableCell(k[w])||v.push(k[w]);d.removeCellsFromParent(v);0<v.length&&d.scrollCellToVisible(v[0])}}});this.addAction("edit",function(){d.isEnabled()&&d.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){var k=d.getSelectionCell()||-d.getModel().getRoot();e.showDataDialog(k)},null,null,Editor.ctrlKey+"+M");this.addAction("editTooltip...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var v="";if(mxUtils.isNode(k.value)){var w=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&k.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(w=k.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==w&&(w=k.value.getAttribute("tooltip"));null!=w&&(v=w)}v=new TextareaDialog(e,mxResources.get("editTooltip")+-":",v,function(y){d.setTooltipForCell(k,y)});e.showDialog(v.container,320,200,!0,!0);v.init()}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+T");this.addAction("openLink",function(){var k=d.getLinkForCell(d.getSelectionCell());null!=k&&d.openLink(k)});this.addAction("editLink...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var v=d.getLinkForCell(k,!0)||"";e.showLinkDialog(v,mxResources.get("ok"),function(w,y,C){d.getModel().beginUpdate();try{d.setLinkForCell(k,+d.isTableRow(k[0])?(k=d.getCellsForGroup(k),1<k.length&&d.setSelectionCell(d.groupCells(null,0,k))):d.setCellStyles("container","1")}},null,null,Editor.ctrlKey+"+G");this.addAction("ungroup",function(){if(d.isEnabled()){var k=d.getEditableCells(d.getSelectionCells());d.model.beginUpdate();try{var u=d.ungroupCells();if(null!=k)for(var w=0;w<k.length;w++)d.model.contains(k[w])&&(0==d.model.getChildCount(k[w])&&d.model.isVertex(k[w])&&d.setCellStyles("container","0",[k[w]]),u.push(k[w]))}finally{d.model.endUpdate()}0<+u.length&&d.setSelectionCells(u)}},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+U");this.addAction("removeFromGroup",function(){if(d.isEnabled()){var k=d.getSelectionCells();if(null!=k){for(var u=[],w=0;w<k.length;w++)d.isTableRow(k[w])||d.isTableCell(k[w])||u.push(k[w]);d.removeCellsFromParent(u);0<u.length&&d.scrollCellToVisible(u[0])}}});this.addAction("edit",function(){d.isEnabled()&&d.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){var k=d.getSelectionCell()||+d.getModel().getRoot();e.showDataDialog(k)},null,null,Editor.ctrlKey+"+M");this.addAction("editTooltip...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u="";if(mxUtils.isNode(k.value)){var w=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&k.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(w=k.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==w&&(w=k.value.getAttribute("tooltip"));null!=w&&(u=w)}u=new TextareaDialog(e,mxResources.get("editTooltip")++":",u,function(y){d.setTooltipForCell(k,y)});e.showDialog(u.container,320,200,!0,!0);u.init()}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+T");this.addAction("openLink",function(){var k=d.getLinkForCell(d.getSelectionCell());null!=k&&d.openLink(k)});this.addAction("editLink...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u=d.getLinkForCell(k,!0)||"";e.showLinkDialog(u,mxResources.get("ok"),function(w,y,C){d.getModel().beginUpdate();try{d.setLinkForCell(k,0<w.length?w:null),d.setAttributeForCell(k,"linkTarget",C)}finally{d.getModel().endUpdate()}},!0,d.getLinkTargetForCell(k))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+L");this.put("insertImage",new Action("image...",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&(d.clearSelection(),e.actions.get("image").funct())})).isEnabled=h;this.addAction("editImage...",function(){e.actions.get("image").funct()});this.put("insertLink",new Action("link...",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&-e.showLinkDialog("",mxResources.get("ok"),function(k,v,w){k=mxUtils.trim(k);if(0<k.length){var y=null,C=d.getLinkTitle(k);null!=v&&0<v.length&&(y=v[0].iconUrl,C=v[0].name||v[0].type,C=C.charAt(0).toUpperCase()+C.substring(1),30<C.length&&(C=C.substring(0,30)+"..."));v=new mxCell(C,new mxGeometry(0,0,100,40),"fontColor=#0000EE;fontStyle=4;rounded=1;overflow=hidden;"+(null!=y?"shape=label;imageWidth=16;imageHeight=16;spacingLeft=26;align=left;image="+y:"spacing=10;"));v.vertex=!0;y=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry([v],-!0));v.geometry.x=y.x;v.geometry.y=y.y;d.setAttributeForCell(v,"linkTarget",w);d.setLinkForCell(v,k);d.cellSizeUpdated(v,!0);d.getModel().beginUpdate();try{v=d.addCell(v),d.fireEvent(new mxEventObject("cellsInserted","cells",[v]))}finally{d.getModel().endUpdate()}d.setSelectionCell(v);d.scrollCellToVisible(d.getSelectionCell())}},!0)},null,null,"L")).isEnabled=h;this.addAction("link...",mxUtils.bind(this,function(){if(d.isEnabled())if(d.cellEditor.isContentEditing()){var k=d.getSelectedElement(),-v=d.getParentByName(k,"A",d.cellEditor.textarea),w="";if(null==v&&null!=k&&null!=k.getElementsByTagName)for(var y=k.getElementsByTagName("a"),C=0;C<y.length&&null==v;C++)y[C].textContent==k.textContent&&(v=y[C]);null!=v&&"A"==v.nodeName&&(w=v.getAttribute("href")||"",d.selectNode(v));var D=d.cellEditor.saveSelection();e.showLinkDialog(w,mxResources.get("ok"),mxUtils.bind(this,function(E){d.cellEditor.restoreSelection(D);null!=E&&d.insertLink(E)}))}else d.isSelectionEmpty()?this.get("insertLink").funct():-this.get("editLink").funct()})).isEnabled=h;this.addAction("autosize",function(){var k=d.getSelectionCells();if(null!=k){d.getModel().beginUpdate();try{for(var v=0;v<k.length;v++){var w=k[v];d.getModel().isVertex(w)&&(0<d.getModel().getChildCount(w)?d.updateGroupBounds([w],0,!0):d.updateCellSize(w))}}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+Y");this.addAction("snapToGrid",function(){d.snapCellsToGrid(d.getSelectionCells(),d.gridSize)});this.addAction("formattedText",-function(){d.stopEditing();var k=d.getCommonStyle(d.getSelectionCells());k="1"==mxUtils.getValue(k,"html","0")?null:"1";d.getModel().beginUpdate();try{for(var v=d.getEditableCells(d.getSelectionCells()),w=0;w<v.length;w++)if(state=d.getView().getState(v[w]),null!=state){var y=mxUtils.getValue(state.style,"html","0");if("1"==y&&null==k)d.removeTextStyleForCell(state.cell),d.setCellStyles("html",k,[v[w]]);else if("0"==y&&"1"==k){var C=mxUtils.htmlEntities(d.convertValueToString(state.cell),!1);"0"!=-mxUtils.getValue(state.style,"nl2Br","1")&&(C=C.replace(/\n/g,"<br/>"));d.cellLabelChanged(state.cell,Graph.sanitizeHtml(C));d.setCellStyles("html",k,[v[w]])}}e.fireEvent(new mxEventObject("styleChanged","keys",["html"],"values",[null!=k?k:"0"],"cells",v))}finally{d.getModel().endUpdate()}});this.addAction("wordWrap",function(){var k=d.getView().getState(d.getSelectionCell()),v="wrap";d.stopEditing();null!=k&&"wrap"==k.style[mxConstants.STYLE_WHITE_SPACE]&&(v=null);d.setCellStyles(mxConstants.STYLE_WHITE_SPACE,-v)});this.addAction("rotation",function(){var k="0",v=d.getView().getState(d.getSelectionCell());null!=v&&(k=v.style[mxConstants.STYLE_ROTATION]||k);k=new FilenameDialog(e,k,mxResources.get("apply"),function(w){null!=w&&0<w.length&&d.setCellStyles(mxConstants.STYLE_ROTATION,w)},mxResources.get("enterValue")+" ("+mxResources.get("rotation")+" 0-360)");e.showDialog(k.container,375,80,!0,!0);k.init()});this.addAction("resetView",function(){d.zoomTo(1);e.resetScrollbars()},null,null,"Enter/Home");this.addAction("zoomIn",+e.showLinkDialog("",mxResources.get("ok"),function(k,u,w){k=mxUtils.trim(k);if(0<k.length){var y=null,C=d.getLinkTitle(k);null!=u&&0<u.length&&(y=u[0].iconUrl,C=u[0].name||u[0].type,C=C.charAt(0).toUpperCase()+C.substring(1),30<C.length&&(C=C.substring(0,30)+"..."));u=new mxCell(C,new mxGeometry(0,0,100,40),"fontColor=#0000EE;fontStyle=4;rounded=1;overflow=hidden;"+(null!=y?"shape=label;imageWidth=16;imageHeight=16;spacingLeft=26;align=left;image="+y:"spacing=10;"));u.vertex=!0;y=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry([u],+!0));u.geometry.x=y.x;u.geometry.y=y.y;d.setAttributeForCell(u,"linkTarget",w);d.setLinkForCell(u,k);d.cellSizeUpdated(u,!0);d.getModel().beginUpdate();try{u=d.addCell(u),d.fireEvent(new mxEventObject("cellsInserted","cells",[u]))}finally{d.getModel().endUpdate()}d.setSelectionCell(u);d.scrollCellToVisible(d.getSelectionCell())}},!0)},null,null,"L")).isEnabled=h;this.addAction("link...",mxUtils.bind(this,function(){if(d.isEnabled())if(d.cellEditor.isContentEditing()){var k=d.getSelectedElement(),+u=d.getParentByName(k,"A",d.cellEditor.textarea),w="";if(null==u&&null!=k&&null!=k.getElementsByTagName)for(var y=k.getElementsByTagName("a"),C=0;C<y.length&&null==u;C++)y[C].textContent==k.textContent&&(u=y[C]);null!=u&&"A"==u.nodeName&&(w=u.getAttribute("href")||"",d.selectNode(u));var D=d.cellEditor.saveSelection();e.showLinkDialog(w,mxResources.get("ok"),mxUtils.bind(this,function(E){d.cellEditor.restoreSelection(D);null!=E&&d.insertLink(E)}))}else d.isSelectionEmpty()?this.get("insertLink").funct():+this.get("editLink").funct()})).isEnabled=h;this.addAction("autosize",function(){var k=d.getSelectionCells();if(null!=k){d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=k[u];d.getModel().isVertex(w)&&(0<d.getModel().getChildCount(w)?d.updateGroupBounds([w],0,!0):d.updateCellSize(w))}}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+Y");this.addAction("snapToGrid",function(){d.snapCellsToGrid(d.getSelectionCells(),d.gridSize)});this.addAction("formattedText",+function(){d.stopEditing();var k=d.getCommonStyle(d.getSelectionCells());k="1"==mxUtils.getValue(k,"html","0")?null:"1";d.getModel().beginUpdate();try{for(var u=d.getEditableCells(d.getSelectionCells()),w=0;w<u.length;w++)if(state=d.getView().getState(u[w]),null!=state){var y=mxUtils.getValue(state.style,"html","0");if("1"==y&&null==k)d.removeTextStyleForCell(state.cell),d.setCellStyles("html",k,[u[w]]);else if("0"==y&&"1"==k){var C=mxUtils.htmlEntities(d.convertValueToString(state.cell),!1);"0"!=+mxUtils.getValue(state.style,"nl2Br","1")&&(C=C.replace(/\n/g,"<br/>"));d.cellLabelChanged(state.cell,Graph.sanitizeHtml(C));d.setCellStyles("html",k,[u[w]])}}e.fireEvent(new mxEventObject("styleChanged","keys",["html"],"values",[null!=k?k:"0"],"cells",u))}finally{d.getModel().endUpdate()}});this.addAction("wordWrap",function(){var k=d.getView().getState(d.getSelectionCell()),u="wrap";d.stopEditing();null!=k&&"wrap"==k.style[mxConstants.STYLE_WHITE_SPACE]&&(u=null);d.setCellStyles(mxConstants.STYLE_WHITE_SPACE,+u)});this.addAction("rotation",function(){var k="0",u=d.getView().getState(d.getSelectionCell());null!=u&&(k=u.style[mxConstants.STYLE_ROTATION]||k);k=new FilenameDialog(e,k,mxResources.get("apply"),function(w){null!=w&&0<w.length&&d.setCellStyles(mxConstants.STYLE_ROTATION,w)},mxResources.get("enterValue")+" ("+mxResources.get("rotation")+" 0-360)");e.showDialog(k.container,375,80,!0,!0);k.init()});this.addAction("resetView",function(){d.zoomTo(1);e.resetScrollbars()},null,null,"Enter/Home");this.addAction("zoomIn",function(k){d.isFastZoomEnabled()?d.lazyZoom(!0,!0,e.buttonZoomDelay):d.zoomIn()},null,null,Editor.ctrlKey+" + / Alt+Mousewheel");this.addAction("zoomOut",function(k){d.isFastZoomEnabled()?d.lazyZoom(!1,!0,e.buttonZoomDelay):d.zoomOut()},null,null,Editor.ctrlKey+" - / Alt+Mousewheel");this.addAction("fitWindow",function(){d.pageVisible&&d.isSelectionEmpty()?d.fitPages():e.fitDiagramToWindow()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+H");this.addAction("fitPage",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(1):this.get("pageView").funct()}),null,null,Editor.ctrlKey+"+J");this.addAction("fitTwoPages",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(2):this.get("pageView").funct()}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+J");this.addAction("fitPageWidth",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(1,!0):this.get("pageView").funct()}));this.put("customZoom",new Action("custom...",mxUtils.bind(this,function(){var k=new FilenameDialog(this.editorUi,parseInt(100*d.getView().getScale()),-mxResources.get("apply"),mxUtils.bind(this,function(v){v=parseInt(v);!isNaN(v)&&0<v&&d.zoomTo(v/100)}),mxResources.get("zoom")+" (%)");this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}),null,null,Editor.ctrlKey+"+0"));this.addAction("pageScale...",mxUtils.bind(this,function(){var k=new FilenameDialog(this.editorUi,parseInt(100*d.pageScale),mxResources.get("apply"),mxUtils.bind(this,function(v){v=parseInt(v);!isNaN(v)&&0<v&&(v=new ChangePageSetup(e,null,null,null,v/100),v.ignoreColor=!0,-v.ignoreImage=!0,d.model.execute(v))}),mxResources.get("pageScale")+" (%)");this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));m=null;m=this.addAction("grid",function(){d.setGridEnabled(!d.isGridEnabled());d.defaultGridEnabled=d.isGridEnabled();e.fireEvent(new mxEventObject("gridEnabledChanged"))},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+G");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.isGridEnabled()});m.setEnabled(!1);m=this.addAction("guides",function(){d.graphHandler.guidesEnabled=+mxResources.get("apply"),mxUtils.bind(this,function(u){u=parseInt(u);!isNaN(u)&&0<u&&d.zoomTo(u/100)}),mxResources.get("zoom")+" (%)");this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}),null,null,Editor.ctrlKey+"+0"));this.addAction("pageScale...",mxUtils.bind(this,function(){var k=new FilenameDialog(this.editorUi,parseInt(100*d.pageScale),mxResources.get("apply"),mxUtils.bind(this,function(u){u=parseInt(u);!isNaN(u)&&0<u&&(u=new ChangePageSetup(e,null,null,null,u/100),u.ignoreColor=!0,+u.ignoreImage=!0,d.model.execute(u))}),mxResources.get("pageScale")+" (%)");this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));m=null;m=this.addAction("grid",function(){d.setGridEnabled(!d.isGridEnabled());d.defaultGridEnabled=d.isGridEnabled();e.fireEvent(new mxEventObject("gridEnabledChanged"))},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+G");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.isGridEnabled()});m.setEnabled(!1);m=this.addAction("guides",function(){d.graphHandler.guidesEnabled=!d.graphHandler.guidesEnabled;e.fireEvent(new mxEventObject("guidesEnabledChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.graphHandler.guidesEnabled});m.setEnabled(!1);m=this.addAction("animations",function(){Editor.enableAnimations=!Editor.enableAnimations;e.fireEvent(new mxEventObject("enableAnimationsChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return Editor.enableAnimations});m=this.addAction("tooltips",function(){d.tooltipHandler.setEnabled(!d.tooltipHandler.isEnabled());e.fireEvent(new mxEventObject("tooltipsEnabledChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.tooltipHandler.isEnabled()});m=this.addAction("collapseExpand",function(){var k=new ChangePageSetup(e);k.ignoreColor=!0;k.ignoreImage=!0;k.foldingEnabled=!d.foldingEnabled;d.model.execute(k)});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.foldingEnabled});m.isEnabled=h;m=this.addAction("pageView",mxUtils.bind(this,function(){e.setPageVisible(!d.pageVisible)}));m.setToggleAction(!0);m.setSelectedCallback(function(){return d.pageVisible});m=this.addAction("connectionArrows",function(){d.connectionArrowsEnabled=!d.connectionArrowsEnabled;e.fireEvent(new mxEventObject("connectionArrowsChanged"))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+A");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionArrowsEnabled});m=this.addAction("connectionPoints",function(){d.setConnectable(!d.connectionHandler.isEnabled());e.fireEvent(new mxEventObject("connectionPointsChanged"))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+O");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isEnabled()});m=this.addAction("copyConnect",function(){d.connectionHandler.setCreateTarget(!d.connectionHandler.isCreateTarget());e.fireEvent(new mxEventObject("copyConnectChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isCreateTarget()});m.isEnabled=h;m=this.addAction("autosave",function(){e.editor.setAutosave(!e.editor.autosave)});m.setToggleAction(!0);m.setSelectedCallback(function(){return e.editor.autosave});m.isEnabled=h;m.visible=!1;this.addAction("help",function(){var k="";mxResources.isLanguageSupported(mxClient.language)&&(k="_"+mxClient.language);d.openLink(RESOURCES_PATH+"/help"+k+".html")});var p=!1;m=new Action("about",function(){p||(e.showDialog((new AboutDialog(e)).container,320,280,!0,!0,function(){p=!1}),p=!0)});m.getTitle=function(){return mxResources.get("about")+" Graph Editor..."};this.put("about",m);m=-mxUtils.bind(this,function(k,v,w,y){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,v,C);(v&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?d.updateLabelElements(C,function(E){E.style.fontWeight=null;"B"==E.nodeName&&d.replaceElement(E)}):(v&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(C,-function(E){E.style.fontStyle=null;"I"==E.nodeName&&d.replaceElement(E)}):(v&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(C,function(E){E.style.textDecoration=null;"U"==E.nodeName&&d.replaceElement(E)});for(var D=0;D<C.length;D++)0==d.model.getChildCount(C[D])&&d.autoSizeCell(C[D],!1)}finally{d.getModel().endUpdate()}}},null,null,y)});m("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");m("italic",mxConstants.FONT_ITALIC,+mxUtils.bind(this,function(k,u,w,y){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,u,C);(u&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?d.updateLabelElements(C,function(E){E.style.fontWeight=null;"B"==E.nodeName&&d.replaceElement(E)}):(u&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(C,+function(E){E.style.fontStyle=null;"I"==E.nodeName&&d.replaceElement(E)}):(u&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(C,function(E){E.style.textDecoration=null;"U"==E.nodeName&&d.replaceElement(E)});for(var D=0;D<C.length;D++)0==d.model.getChildCount(C[D])&&d.autoSizeCell(C[D],!1)}finally{d.getModel().endUpdate()}}},null,null,y)});m("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");m("italic",mxConstants.FONT_ITALIC,function(){document.execCommand("italic",!1,null)},Editor.ctrlKey+"+I");m("underline",mxConstants.FONT_UNDERLINE,function(){document.execCommand("underline",!1,null)},Editor.ctrlKey+"+U");this.addAction("fontColor...",function(){e.menus.pickColor(mxConstants.STYLE_FONTCOLOR,"forecolor","000000","default",d.shapeForegroundColor)});this.addAction("strokeColor...",function(){e.menus.pickColor(mxConstants.STYLE_STROKECOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("fillColor...",function(){e.menus.pickColor(mxConstants.STYLE_FILLCOLOR,null,null,"default",d.shapeBackgroundColor)});this.addAction("gradientColor...",function(){e.menus.pickColor(mxConstants.STYLE_GRADIENTCOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("backgroundColor...",function(){e.menus.pickColor(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,"backcolor",null,"default",d.shapeBackgroundColor)});this.addAction("borderColor...",function(){e.menus.pickColor(mxConstants.STYLE_LABEL_BORDERCOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("removeFormat",-function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&!d.isEditing()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),v=0;v<k.length;v++)d.removeTextStyleForCell(k[v],!0)}finally{d.getModel().endUpdate()}}});this.addAction("vertical",function(){e.menus.toggleStyle(mxConstants.STYLE_HORIZONTAL,!0)});this.addAction("shadow",function(){e.menus.toggleStyle(mxConstants.STYLE_SHADOW)});this.addAction("solid",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_DASHED,+function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&!d.isEditing()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),u=0;u<k.length;u++)d.removeTextStyleForCell(k[u],!0)}finally{d.getModel().endUpdate()}}});this.addAction("vertical",function(){e.menus.toggleStyle(mxConstants.STYLE_HORIZONTAL,!0)});this.addAction("shadow",function(){e.menus.toggleStyle(mxConstants.STYLE_SHADOW)});this.addAction("solid",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_DASHED,null),d.setCellStyles(mxConstants.STYLE_DASH_PATTERN,null),e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],"values",[null,null],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("dashed",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_DASHED,"1"),d.setCellStyles(mxConstants.STYLE_DASH_PATTERN,null),e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],"values",["1",null],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("dotted",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_DASHED,"1"),d.setCellStyles(mxConstants.STYLE_DASH_PATTERN,"1 4"),e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],"values",["1","1 4"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("sharp",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),d.setCellStyles(mxConstants.STYLE_CURVED,"0"),e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["0","0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("rounded",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"1"),d.setCellStyles(mxConstants.STYLE_CURVED,"0"),e.fireEvent(new mxEventObject("styleChanged",-"keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["1","0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("toggleRounded",function(){if(!d.isSelectionEmpty()&&d.isEnabled()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),v=d.getCurrentCellStyle(k[0]),w="1"==mxUtils.getValue(v,mxConstants.STYLE_ROUNDED,"0")?"0":"1";d.setCellStyles(mxConstants.STYLE_ROUNDED,w);d.setCellStyles(mxConstants.STYLE_CURVED,null);e.fireEvent(new mxEventObject("styleChanged",+"keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["1","0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("toggleRounded",function(){if(!d.isSelectionEmpty()&&d.isEnabled()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),u=d.getCurrentCellStyle(k[0]),w="1"==mxUtils.getValue(u,mxConstants.STYLE_ROUNDED,"0")?"0":"1";d.setCellStyles(mxConstants.STYLE_ROUNDED,w);d.setCellStyles(mxConstants.STYLE_CURVED,null);e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",[w,"0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}}});this.addAction("curved",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),d.setCellStyles(mxConstants.STYLE_CURVED,"1"),e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["0","1"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("collapsible",-function(){var k=d.view.getState(d.getSelectionCell()),v="1";null!=k&&null!=d.getFoldingImage(k)&&(v="0");d.setCellStyles("collapsible",v);e.fireEvent(new mxEventObject("styleChanged","keys",["collapsible"],"values",[v],"cells",d.getSelectionCells()))});this.addAction("editStyle...",mxUtils.bind(this,function(){var k=d.getEditableCells(d.getSelectionCells());if(null!=k&&0<k.length){var v=d.getModel();v=new TextareaDialog(this.editorUi,mxResources.get("editStyle")+":",v.getStyle(k[0])||"",function(w){null!=-w&&d.setCellStyle(mxUtils.trim(w),k)},null,null,400,220);this.editorUi.showDialog(v.container,420,300,!0,!0);v.init()}}),null,null,Editor.ctrlKey+"+E");this.addAction("setAsDefaultStyle",function(){d.isEnabled()&&!d.isSelectionEmpty()&&e.setDefaultStyle(d.getSelectionCell())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+D");this.addAction("clearDefaultStyle",function(){d.isEnabled()&&e.clearDefaultStyle()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+R");this.addAction("addWaypoint",function(){var k=-d.getSelectionCell();if(null!=k&&d.getModel().isEdge(k)){var v=g.graph.selectionCellsHandler.getHandler(k);if(v instanceof mxEdgeHandler){var w=0,y=0;k=d.getModel().getParent(k);for(var C=d.getCellGeometry(k);d.getModel().isVertex(k)&&null!=C;)w+=C.x,y+=C.y,k=d.getModel().getParent(k),C=d.getCellGeometry(k);k=d.popupMenuHandler.getTriggerPoint();w=Math.round(d.snap(k.x-w));y=Math.round(d.snap(k.y-y));v.addPointAt(v.state,w,y)}}});this.addAction("removeWaypoint",function(){var k=e.actions.get("removeWaypoint");-null!=k.handler&&k.handler.removePoint(k.handler.state,k.index)});this.addAction("clearAnchors",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var v=0;v<k.length;v++){var w=k[v];d.getModel().isEdge(w)&&(d.setCellStyles(mxConstants.STYLE_EXIT_X,null,[w]),d.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[w]))}}finally{d.getModel().endUpdate()}}});-this.addAction("clearWaypoints",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var v=0;v<k.length;v++){var w=k[v];if(d.getModel().isEdge(w)){var y=d.getCellGeometry(w);null!=y&&(y=y.clone(),y.points=null,y.x=0,y.y=0,y.offset=null,d.getModel().setGeometry(w,y))}}}finally{d.getModel().endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+R");m=this.addAction("subscript",mxUtils.bind(this,function(){d.cellEditor.isContentEditing()&&+function(){var k=d.view.getState(d.getSelectionCell()),u="1";null!=k&&null!=d.getFoldingImage(k)&&(u="0");d.setCellStyles("collapsible",u);e.fireEvent(new mxEventObject("styleChanged","keys",["collapsible"],"values",[u],"cells",d.getSelectionCells()))});this.addAction("editStyle...",mxUtils.bind(this,function(){var k=d.getEditableCells(d.getSelectionCells());if(null!=k&&0<k.length){var u=d.getModel();u=new TextareaDialog(this.editorUi,mxResources.get("editStyle")+":",u.getStyle(k[0])||"",function(w){null!=+w&&d.setCellStyle(mxUtils.trim(w),k)},null,null,400,220);this.editorUi.showDialog(u.container,420,300,!0,!0);u.init()}}),null,null,Editor.ctrlKey+"+E");this.addAction("setAsDefaultStyle",function(){d.isEnabled()&&!d.isSelectionEmpty()&&e.setDefaultStyle(d.getSelectionCell())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+D");this.addAction("clearDefaultStyle",function(){d.isEnabled()&&e.clearDefaultStyle()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+R");this.addAction("addWaypoint",function(){var k=+d.getSelectionCell();if(null!=k&&d.getModel().isEdge(k)){var u=g.graph.selectionCellsHandler.getHandler(k);if(u instanceof mxEdgeHandler){var w=0,y=0;k=d.getModel().getParent(k);for(var C=d.getCellGeometry(k);d.getModel().isVertex(k)&&null!=C;)w+=C.x,y+=C.y,k=d.getModel().getParent(k),C=d.getCellGeometry(k);k=d.popupMenuHandler.getTriggerPoint();w=Math.round(d.snap(k.x-w));y=Math.round(d.snap(k.y-y));u.addPointAt(u.state,w,y)}}});this.addAction("removeWaypoint",function(){var k=e.actions.get("removeWaypoint");+null!=k.handler&&k.handler.removePoint(k.handler.state,k.index)});this.addAction("clearAnchors",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=k[u];d.getModel().isEdge(w)&&(d.setCellStyles(mxConstants.STYLE_EXIT_X,null,[w]),d.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[w]))}}finally{d.getModel().endUpdate()}}});+this.addAction("clearWaypoints",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=k[u];if(d.getModel().isEdge(w)){var y=d.getCellGeometry(w);null!=y&&(y=y.clone(),y.points=null,y.x=0,y.y=0,y.offset=null,d.getModel().setGeometry(w,y))}}}finally{d.getModel().endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+R");m=this.addAction("subscript",mxUtils.bind(this,function(){d.cellEditor.isContentEditing()&&document.execCommand("subscript",!1,null)}),null,null,Editor.ctrlKey+"+,");m=this.addAction("superscript",mxUtils.bind(this,function(){d.cellEditor.isContentEditing()&&document.execCommand("superscript",!1,null)}),null,null,Editor.ctrlKey+"+.");m=this.addAction("decreaseFontSize",mxUtils.bind(this,function(){if(!d.isSelectionEmpty()){var k=d.getCurrentCellStyle(d.getSelectionCell());k=mxUtils.getValue(k,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);d.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.max(1,k-1),d.getSelectionCells())}}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+" + (Numpad)");m=this.addAction("increaseFontSize",mxUtils.bind(this,function(){if(!d.isSelectionEmpty()){var k=d.getCurrentCellStyle(d.getSelectionCell());k=mxUtils.getValue(k,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);d.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.min(100,k+1),d.getSelectionCells())}}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+" - (Numpad)");this.addAction("image...",function(){if(d.isEnabled()&&-!d.isCellLocked(d.getDefaultParent())){var k=mxResources.get("image")+" ("+mxResources.get("url")+"):",v=d.getView().getState(d.getSelectionCell()),w="",y=null;null!=v&&(w=v.style[mxConstants.STYLE_IMAGE]||w,y=v.style[mxConstants.STYLE_CLIP_PATH]||y);var C=d.cellEditor.saveSelection();e.showImageDialog(k,w,function(D,E,G,J,M,Q){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(D,E,G);else{var L=d.getSelectionCells();if(null!=D&&(0<D.length||0<L.length)){var W=null;-d.getModel().beginUpdate();try{if(0==L.length){L=[d.insertVertex(d.getDefaultParent(),null,"",0,0,E,G,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var X=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry(L,!0));L[0].geometry.x=X.x;L[0].geometry.y=X.y;null!=J&&f(L[0],J,M,Q,d);W=L;d.fireEvent(new mxEventObject("cellsInserted","cells",W))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<D.length?D:null,L);var T=d.getCurrentCellStyle(L[0]);"image"!=T[mxConstants.STYLE_SHAPE]&&-"label"!=T[mxConstants.STYLE_SHAPE]?d.setCellStyles(mxConstants.STYLE_SHAPE,"image",L):0==D.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,L);null==J&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,L);if(null!=E&&null!=G)for(D=0;D<L.length;D++){var N=L[D];if("0"!=d.getCurrentCellStyle(N).expand){var ca=d.getModel().getGeometry(N);null!=ca&&(ca=ca.clone(),ca.width=E,ca.height=G,d.getModel().setGeometry(N,ca))}null!=J&&f(N,J,M,Q,d)}}finally{d.getModel().endUpdate()}null!=W&&(d.setSelectionCells(W),-d.scrollCellToVisible(W[0]))}}},d.cellEditor.isContentEditing(),!d.cellEditor.isContentEditing(),!0,y)}}).isEnabled=h;this.addAction("crop...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k){var v=d.getCurrentCellStyle(k),w=v[mxConstants.STYLE_IMAGE],y=v[mxConstants.STYLE_SHAPE];w&&"image"==y&&(v=new CropImageDialog(e,w,v[mxConstants.STYLE_CLIP_PATH],function(C,D,E){f(k,C,D,E,d)}),e.showDialog(v.container,300,390,!0,!0))}}).isEnabled=h;m=this.addAction("layers",+!d.isCellLocked(d.getDefaultParent())){var k=mxResources.get("image")+" ("+mxResources.get("url")+"):",u=d.getView().getState(d.getSelectionCell()),w="",y=null;null!=u&&(w=u.style[mxConstants.STYLE_IMAGE]||w,y=u.style[mxConstants.STYLE_CLIP_PATH]||y);var C=d.cellEditor.saveSelection();e.showImageDialog(k,w,function(D,E,G,J,M,Q){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(D,E,G);else{var K=d.getSelectionCells();if(null!=D&&(0<D.length||0<K.length)){var W=null;+d.getModel().beginUpdate();try{if(0==K.length){K=[d.insertVertex(d.getDefaultParent(),null,"",0,0,E,G,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var X=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry(K,!0));K[0].geometry.x=X.x;K[0].geometry.y=X.y;null!=J&&f(K[0],J,M,Q,d);W=K;d.fireEvent(new mxEventObject("cellsInserted","cells",W))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<D.length?D:null,K);var T=d.getCurrentCellStyle(K[0]);"image"!=T[mxConstants.STYLE_SHAPE]&&+"label"!=T[mxConstants.STYLE_SHAPE]?d.setCellStyles(mxConstants.STYLE_SHAPE,"image",K):0==D.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,K);null==J&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,K);if(null!=E&&null!=G)for(D=0;D<K.length;D++){var N=K[D];if("0"!=d.getCurrentCellStyle(N).expand){var ca=d.getModel().getGeometry(N);null!=ca&&(ca=ca.clone(),ca.width=E,ca.height=G,d.getModel().setGeometry(N,ca))}null!=J&&f(N,J,M,Q,d)}}finally{d.getModel().endUpdate()}null!=W&&(d.setSelectionCells(W),+d.scrollCellToVisible(W[0]))}}},d.cellEditor.isContentEditing(),!d.cellEditor.isContentEditing(),!0,y)}}).isEnabled=h;this.addAction("crop...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k){var u=d.getCurrentCellStyle(k),w=u[mxConstants.STYLE_IMAGE],y=u[mxConstants.STYLE_SHAPE];w&&"image"==y&&(u=new CropImageDialog(e,w,u[mxConstants.STYLE_CLIP_PATH],function(C,D,E){f(k,C,D,E,d)}),e.showDialog(u.container,300,390,!0,!0))}}).isEnabled=h;m=this.addAction("layers",mxUtils.bind(this,function(){null==this.layersWindow?(this.layersWindow=new LayersWindow(e,document.body.offsetWidth-280,120,212,200),this.layersWindow.window.addListener("show",mxUtils.bind(this,function(){e.fireEvent(new mxEventObject("layers"))})),this.layersWindow.window.addListener("hide",function(){e.fireEvent(new mxEventObject("layers"))}),this.layersWindow.window.setVisible(!0),e.fireEvent(new mxEventObject("layers")),this.layersWindow.init()):this.layersWindow.window.setVisible(!this.layersWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+L");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.layersWindow&&this.layersWindow.window.isVisible()}));m=this.addAction("format",mxUtils.bind(this,function(){e.toggleFormatPanel()}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+P");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return e.isFormatPanelVisible()}));m=this.addAction("outline",mxUtils.bind(this,function(){null==this.outlineWindow?(this.outlineWindow=new OutlineWindow(e,document.body.offsetWidth-260,100,180,180),this.outlineWindow.window.addListener("show",mxUtils.bind(this,function(){e.fireEvent(new mxEventObject("outline"))})),this.outlineWindow.window.addListener("hide",function(){e.fireEvent(new mxEventObject("outline"))}),this.outlineWindow.window.setVisible(!0),e.fireEvent(new mxEventObject("outline"))):this.outlineWindow.window.setVisible(!this.outlineWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+-"+O");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.outlineWindow&&this.outlineWindow.window.isVisible()}));this.addAction("editConnectionPoints...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k&&null!=k.geometry){var v=new ConnectionPointsDialog(e,k);e.showDialog(v.container,350,450,!0,!1,function(){v.destroy()});v.init()}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+Q").isEnabled=h};+"+O");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.outlineWindow&&this.outlineWindow.window.isVisible()}));this.addAction("editConnectionPoints...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k&&null!=k.geometry){var u=new ConnectionPointsDialog(e,k);e.showDialog(u.container,350,450,!0,!1,function(){u.destroy()});u.init()}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+Q").isEnabled=h};Actions.prototype.addAction=function(a,b,f,e,g,d){var h=a;"..."==h.substring(h.length-3)&&(h=h.substring(0,h.length-3));return this.put(h,new Action(a,b,f,e,g,d))};Actions.prototype.put=function(a,b){return this.actions[a]=b};Actions.prototype.get=function(a){return this.actions[a]};function Action(a,b,f,e,g,d){mxEventSource.call(this);this.label=a;this.funct=this.createFunction(b);this.enabled=null!=f?f:!0;this.iconCls=e;this.shortcut=g;this.visible=null!=d?d:!0}mxUtils.extend(Action,mxEventSource);Action.prototype.getTitle=function(){var a=this.label;"..."==a.substring(a.length-3)?(a=a.substring(0,a.length-3),a=mxResources.get(a)+"..."):a=mxResources.get(a);return a};Action.prototype.createFunction=function(a){return a};Action.prototype.setEnabled=function(a){this.enabled!=a&&(this.enabled=a,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled};Action.prototype.setToggleAction=function(a){this.toggleAction=a};Action.prototype.setSelectedCallback=function(a){this.selectedCallback=a};Action.prototype.isSelected=function(){return this.selectedCallback()};Menus=function(a){this.editorUi=a;this.menus={};this.init()};Menus.prototype.defaultFont="Helvetica";Menus.prototype.defaultFontSize="12";Menus.prototype.defaultMenuItems="file edit view arrange extras help".split(" ");Menus.prototype.defaultFonts="Helvetica;Verdana;Times New Roman;Garamond;Comic Sans MS;Courier New;Georgia;Lucida Console;Tahoma".split(";");Menus.prototype.autoPopup=!0;@@ -3646,7 +3647,7 @@ m){return e.addItem(h,null,mxUtils.bind(this,function(){null!=b.cellEditor.texta" 3</h3>";d("","h4").firstChild.nextSibling.innerHTML='<h4 style="margin:0px;">'+mxResources.get("heading")+" 4</h4>";d("","h5").firstChild.nextSibling.innerHTML='<h5 style="margin:0px;">'+mxResources.get("heading")+" 5</h5>";d("","h6").firstChild.nextSibling.innerHTML='<h6 style="margin:0px;">'+mxResources.get("heading")+" 6</h6>";d("","pre").firstChild.nextSibling.innerHTML='<pre style="margin:0px;">'+mxResources.get("formatted")+"</pre>";d("","blockquote").firstChild.nextSibling.innerHTML='<blockquote style="margin-top:0px;margin-bottom:0px;">'+mxResources.get("blockquote")+"</blockquote>"})));this.put("fontSize",new Menu(mxUtils.bind(this,function(e,g){var d=[6,8,9,10,11,12,14,18,24,36,48,72];0>mxUtils.indexOf(d,this.defaultFontSize)&&(d.push(this.defaultFontSize),d.sort(function(w,y){return w-y}));for(var h=mxUtils.bind(this,function(w){if(null!=b.cellEditor.textarea){document.execCommand("fontSize",!1,"3");for(var y=b.cellEditor.textarea.getElementsByTagName("font"),C=0;C<y.length;C++)if("3"==y[C].getAttribute("size")){y[C].removeAttribute("size");y[C].style.fontSize=w+"px";break}a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTSIZE],"values",[w],"cells",[b.cellEditor.getEditingCell()]))}}),m=mxUtils.bind(this,function(w){this.styleChange(e,w,[mxConstants.STYLE_FONTSIZE],[w],null,g,function(){h(w)})}),p=0;p<d.length;p++)m(d[p]);e.addSeparator(g);if(0<this.customFontSizes.length){var k=0;for(p=0;p<this.customFontSizes.length;p++)0>mxUtils.indexOf(d,this.customFontSizes[p])&&(m(this.customFontSizes[p]),k++);0<k&&e.addSeparator(g);-e.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),g);e.addSeparator(g)}var v=null;this.promptChange(e,mxResources.get("custom")+"...","("+mxResources.get("points")+")",this.defaultFontSize,mxConstants.STYLE_FONTSIZE,g,!0,mxUtils.bind(this,function(w){null!=v&&null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),b.cellEditor.restoreSelection(v));null!=w&&0<w.length&&(this.customFontSizes.push(w),h(w))}),null,function(){v=b.cellEditor.saveSelection();+e.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),g);e.addSeparator(g)}var u=null;this.promptChange(e,mxResources.get("custom")+"...","("+mxResources.get("points")+")",this.defaultFontSize,mxConstants.STYLE_FONTSIZE,g,!0,mxUtils.bind(this,function(w){null!=u&&null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),b.cellEditor.restoreSelection(u));null!=w&&0<w.length&&(this.customFontSizes.push(w),h(w))}),null,function(){u=b.cellEditor.saveSelection();return!1})})));this.put("direction",new Menu(mxUtils.bind(this,function(e,g){e.addItem(mxResources.get("flipH"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPH,!1)},g);e.addItem(mxResources.get("flipV"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPV,!1)},g);this.addMenuItems(e,["-","rotation"],g)})));this.put("align",new Menu(mxUtils.bind(this,function(e,g){var d=1<this.editorUi.getSelectionState().vertices.length;e.addItem(mxResources.get("leftAlign"),null,function(){b.alignCells(mxConstants.ALIGN_LEFT)},g,null,d);e.addItem(mxResources.get("center"),null,function(){b.alignCells(mxConstants.ALIGN_CENTER)},g,null,d);e.addItem(mxResources.get("rightAlign"),null,function(){b.alignCells(mxConstants.ALIGN_RIGHT)},g,null,d);e.addSeparator(g);e.addItem(mxResources.get("topAlign"),null,function(){b.alignCells(mxConstants.ALIGN_TOP)},g,null,d);e.addItem(mxResources.get("middle"),null,function(){b.alignCells(mxConstants.ALIGN_MIDDLE)},g,null,d);e.addItem(mxResources.get("bottomAlign"),null,function(){b.alignCells(mxConstants.ALIGN_BOTTOM)},g,null,d);this.addMenuItems(e,["-","snapToGrid"],g)})));this.put("distribute",new Menu(mxUtils.bind(this,function(e,g){e.addItem(mxResources.get("horizontal"),null,function(){b.distributeCells(!0)},g);e.addItem(mxResources.get("vertical"),null,function(){b.distributeCells(!1)},g);e.addSeparator(g);this.addSubmenu("distributeSpacing",e,g,mxResources.get("spacing"))})));this.put("distributeSpacing",new Menu(mxUtils.bind(this,function(e,g){e.addItem(mxResources.get("horizontal"),null,function(){b.distributeCells(!0,@@ -3669,25 +3670,25 @@ e,g);this.addMenuItems(e,["turn","-"],g);this.addSubmenu("align",e,g);this.addSuthis.put("extras",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["copyConnect","collapseExpand","-","editDiagram"])})));this.put("help",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["help","-","about"])})))};Menus.prototype.put=function(a,b){return this.menus[a]=b};Menus.prototype.get=function(a){return this.menus[a]};Menus.prototype.addSubmenu=function(a,b,f,e){var g=this.get(a),d=null;null!=g&&(g=g.isEnabled(),b.showDisabled||g)&&(d=b.addItem(e||mxResources.get(a),null,null,f,null,g),this.addMenu(a,b,d));return d};Menus.prototype.addMenu=function(a,b,f){a=this.get(a);null!=a&&(b.showDisabled||a.isEnabled())&&a.execute(b,f)};Menus.prototype.addInsertTableCellItem=function(a,b){var f=this.editorUi.editor.graph,e=f.getSelectionCell(),g=f.getCurrentCellStyle(e);1<f.getSelectionCount()&&(f.isTableCell(e)&&(e=f.model.getParent(e)),f.isTableRow(e)&&(e=f.model.getParent(e)));var d=f.isTable(e)||f.isTableRow(e)||f.isTableCell(e),h=f.isStack(e)||f.isStackChild(e),m=d,p=d;h&&(g=f.isStack(e)?g:f.getCellStyle(f.model.getParent(e)),p="0"==g.horizontalStack,m=!p);null!=b||!d&&!h?this.addInsertTableItem(a,mxUtils.bind(this,function(k,-v,w,y,C){v=C||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)?f.createCrossFunctionalSwimlane(v,w,null,null,y||mxEvent.isShiftDown(k)?"Cross-Functional Flowchart":null):f.createTable(v,w,null,null,y||mxEvent.isShiftDown(k)?"Table":null);k=mxEvent.isAltDown(k)?f.getFreeInsertPoint():f.getCenterInsertPoint(f.getBoundingBoxFromGeometry([v],!0));w=null;f.getModel().beginUpdate();try{w=f.importCells([v],k.x,k.y),f.fireEvent(new mxEventObject("cellsInserted","cells",f.model.getDescendants(w[0])))}finally{f.getModel().endUpdate()}null!=+u,w,y,C){u=C||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)?f.createCrossFunctionalSwimlane(u,w,null,null,y||mxEvent.isShiftDown(k)?"Cross-Functional Flowchart":null):f.createTable(u,w,null,null,y||mxEvent.isShiftDown(k)?"Table":null);k=mxEvent.isAltDown(k)?f.getFreeInsertPoint():f.getCenterInsertPoint(f.getBoundingBoxFromGeometry([u],!0));w=null;f.getModel().beginUpdate();try{w=f.importCells([u],k.x,k.y),f.fireEvent(new mxEventObject("cellsInserted","cells",f.model.getDescendants(w[0])))}finally{f.getModel().endUpdate()}null!=w&&0<w.length&&(f.scrollCellToVisible(w[0]),f.setSelectionCells(w))}),b):(m&&(b=a.addItem(mxResources.get("insertColumnBefore"),Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{h?f.insertLane(e,!0):f.insertTableColumn(e,!0)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertColumnBefore")),b=a.addItem(mxResources.get("insertColumnAfter"),Editor.addColumnRightImage,mxUtils.bind(this,function(){try{h?f.insertLane(e,!1):f.insertTableColumn(e,!1)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertColumnAfter")),b=a.addItem(mxResources.get("deleteColumn"),Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=e)try{h?f.deleteLane(e):f.deleteTableColumn(e)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteColumn"))),p&&(b=a.addItem(mxResources.get("insertRowBefore"),Editor.addRowAboveImage,mxUtils.bind(this,function(){try{h?f.insertLane(e,!0):f.insertTableRow(e,!0)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertRowBefore")),b=a.addItem(mxResources.get("insertRowAfter"),Editor.addRowBelowImage,mxUtils.bind(this,function(){try{h?f.insertLane(e,!1):f.insertTableRow(e,!1)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertRowAfter")),b=a.addItem(mxResources.get("deleteRow"),Editor.removeRowImage,mxUtils.bind(this,function(){try{h?f.deleteLane(e):f.deleteTableRow(e)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteRow")),p=this.editorUi.getSelectionState(),null!=p.mergeCell?this.addMenuItem(a,"mergeCells"):(1<p.style.colspan||1<p.style.rowspan)&&this.addMenuItem(a,"unmergeCells")))};-Menus.prototype.addInsertTableItem=function(a,b,f,e){function g(C){y=d.getParentByName(mxEvent.getSource(C),"TD");var D=!1;if(null!=y){w=d.getParentByName(y,"TR");var E=mxEvent.isMouseEvent(C)?2:4,G=k,J=Math.min(20,w.sectionRowIndex+E);E=Math.min(20,y.cellIndex+E);for(var M=G.rows.length;M<J;M++)for(var Q=G.insertRow(M),L=0;L<G.rows[0].cells.length;L++)Q.insertCell(-1);for(M=0;M<G.rows.length;M++)for(Q=G.rows[M],L=Q.cells.length;L<E;L++)Q.insertCell(-1);v.innerHTML=y.cellIndex+1+"x"+(w.sectionRowIndex++Menus.prototype.addInsertTableItem=function(a,b,f,e){function g(C){y=d.getParentByName(mxEvent.getSource(C),"TD");var D=!1;if(null!=y){w=d.getParentByName(y,"TR");var E=mxEvent.isMouseEvent(C)?2:4,G=k,J=Math.min(20,w.sectionRowIndex+E);E=Math.min(20,y.cellIndex+E);for(var M=G.rows.length;M<J;M++)for(var Q=G.insertRow(M),K=0;K<G.rows[0].cells.length;K++)Q.insertCell(-1);for(M=0;M<G.rows.length;M++)for(Q=G.rows[M],K=Q.cells.length;K<E;K++)Q.insertCell(-1);u.innerHTML=y.cellIndex+1+"x"+(w.sectionRowIndex+1);for(G=0;G<k.rows.length;G++)for(J=k.rows[G],E=0;E<J.cells.length;E++)M=J.cells[E],G==w.sectionRowIndex&&E==y.cellIndex&&(D="blue"==M.style.backgroundColor),M.style.backgroundColor=G<=w.sectionRowIndex&&E<=y.cellIndex?"blue":"transparent"}mxEvent.consume(C);return D}e=null!=e?e:!0;var d=this.editorUi.editor.graph;b=null!=b?b:mxUtils.bind(this,function(C,D,E){if(null!=d.getParentByName(mxEvent.getSource(C),"TD")&&null!=d.cellEditor.textarea){var G=d.cellEditor.textarea.getElementsByTagName("table");-C=[];for(var J=0;J<G.length;J++)C.push(G[J]);d.container.focus();J=d;G=J.pasteHtmlAtCaret;for(var M=["<table>"],Q=0;Q<D;Q++){M.push("<tr>");for(var L=0;L<E;L++)M.push("<td><br></td>");M.push("</tr>")}M.push("</table>");D=M.join("");G.call(J,D);D=d.cellEditor.textarea.getElementsByTagName("table");if(D.length==C.length+1)for(J=D.length-1;0<=J;J--)if(0==J||D[J]!=C[J-1]){d.selectNode(D[J].rows[0].cells[0]);break}}});null==f&&(a.div.classList.add("geToolbarMenu"),a.labels=!1);a=a.addItem("",null,null,+C=[];for(var J=0;J<G.length;J++)C.push(G[J]);d.container.focus();J=d;G=J.pasteHtmlAtCaret;for(var M=["<table>"],Q=0;Q<D;Q++){M.push("<tr>");for(var K=0;K<E;K++)M.push("<td><br></td>");M.push("</tr>")}M.push("</table>");D=M.join("");G.call(J,D);D=d.cellEditor.textarea.getElementsByTagName("table");if(D.length==C.length+1)for(J=D.length-1;0<=J;J--)if(0==J||D[J]!=C[J-1]){d.selectNode(D[J].rows[0].cells[0]);break}}});null==f&&(a.div.classList.add("geToolbarMenu"),a.labels=!1);a=a.addItem("",null,null,f,null,null,null,!0);a.firstChild.style.fontSize=Menus.prototype.defaultFontSize+"px";f=a.getElementsByTagName("td");1<f.length&&(f[1].style.display="none",f[2].style.display="none");a.firstChild.innerText="";var h=document.createElement("input");h.setAttribute("id","geTitleOption");h.setAttribute("type","checkbox");h.style.verticalAlign="middle";f=document.createElement("label");mxUtils.write(f,mxResources.get("title"));f.setAttribute("for","geTitleOption");f.style.verticalAlign="middle";mxEvent.addGestureListeners(f,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(h,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));var m=document.createElement("input");m.setAttribute("id","geContainerOption");m.setAttribute("type","checkbox");m.style.verticalAlign="middle";var p=document.createElement("label");mxUtils.write(p,mxResources.get("container"));p.setAttribute("for","geContainerOption");p.style.verticalAlign="middle";mxEvent.addGestureListeners(p,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(m,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));e&&(a.firstChild.appendChild(h),a.firstChild.appendChild(f),mxUtils.br(a.firstChild),a.firstChild.appendChild(m),a.firstChild.appendChild(p),mxUtils.br(a.firstChild));var k=function(C,D){var E=document.createElement("table");E.className="geInsertTablePicker";E.setAttribute("border","1");E.style.borderCollapse="collapse";E.style.borderStyle="solid";E.style.marginBottom="4px";-E.style.marginTop="8px";E.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var J=E.insertRow(G),M=0;M<D;M++)J.insertCell(-1);return E}(5,5);a.firstChild.appendChild(k);var v=document.createElement("div");v.style.textAlign="center";v.style.padding="4px";v.style.width="100%";v.innerHTML="1x1";a.firstChild.appendChild(v);var w=null,y=null;mxEvent.addGestureListeners(k,null,null,mxUtils.bind(this,function(C){var D=g(C);null!=y&&null!=w&&D&&(b(C,w.sectionRowIndex+1,y.cellIndex+1,h.checked,m.checked),+E.style.marginTop="8px";E.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var J=E.insertRow(G),M=0;M<D;M++)J.insertCell(-1);return E}(5,5);a.firstChild.appendChild(k);var u=document.createElement("div");u.style.textAlign="center";u.style.padding="4px";u.style.width="100%";u.innerHTML="1x1";a.firstChild.appendChild(u);var w=null,y=null;mxEvent.addGestureListeners(k,null,null,mxUtils.bind(this,function(C){var D=g(C);null!=y&&null!=w&&D&&(b(C,w.sectionRowIndex+1,y.cellIndex+1,h.checked,m.checked),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0))}));mxEvent.addListener(k,"mouseover",g)};-Menus.prototype.edgeStyleChange=function(a,b,f,e,g,d,h,m){return this.showIconOnly(a.addItem(b,m,mxUtils.bind(this,function(){var p=this.editorUi.editor.graph;p.stopEditing(!1);p.getModel().beginUpdate();try{for(var k=p.getSelectionCells(),v=[],w=0;w<k.length;w++){var y=k[w];if(p.getModel().isEdge(y)){if(h){var C=p.getCellGeometry(y);null!=C&&(C=C.clone(),C.points=null,p.getModel().setGeometry(y,C))}for(var D=0;D<f.length;D++)p.setCellStyles(f[D],e[D],[y]);v.push(y)}}this.editorUi.fireEvent(new mxEventObject("styleChanged",-"cells",v,"keys",f,"values",e,"force",0==k.length))}finally{p.getModel().endUpdate()}}),d,g))};Menus.prototype.showIconOnly=function(a){var b=a.getElementsByTagName("td");for(i=0;i<b.length;i++)"mxPopupMenuItem"==b[i].getAttribute("class")&&(b[i].style.display="none");return a};-Menus.prototype.styleChange=function(a,b,f,e,g,d,h,m,p,k){var v=this.createStyleChangeFunction(f,e);a=a.addItem(b,k,mxUtils.bind(this,function(){var w=this.editorUi.editor.graph;null!=h&&w.cellEditor.isContentEditing()?h():v(m)}),d,g);p&&this.showIconOnly(a);return a};+Menus.prototype.edgeStyleChange=function(a,b,f,e,g,d,h,m){return this.showIconOnly(a.addItem(b,m,mxUtils.bind(this,function(){var p=this.editorUi.editor.graph;p.stopEditing(!1);p.getModel().beginUpdate();try{for(var k=p.getSelectionCells(),u=[],w=0;w<k.length;w++){var y=k[w];if(p.getModel().isEdge(y)){if(h){var C=p.getCellGeometry(y);null!=C&&(C=C.clone(),C.points=null,p.getModel().setGeometry(y,C))}for(var D=0;D<f.length;D++)p.setCellStyles(f[D],e[D],[y]);u.push(y)}}this.editorUi.fireEvent(new mxEventObject("styleChanged",+"cells",u,"keys",f,"values",e,"force",0==k.length))}finally{p.getModel().endUpdate()}}),d,g))};Menus.prototype.showIconOnly=function(a){var b=a.getElementsByTagName("td");for(i=0;i<b.length;i++)"mxPopupMenuItem"==b[i].getAttribute("class")&&(b[i].style.display="none");return a};+Menus.prototype.styleChange=function(a,b,f,e,g,d,h,m,p,k){var u=this.createStyleChangeFunction(f,e);a=a.addItem(b,k,mxUtils.bind(this,function(){var w=this.editorUi.editor.graph;null!=h&&w.cellEditor.isContentEditing()?h():u(m)}),d,g);p&&this.showIconOnly(a);return a};Menus.prototype.createStyleChangeFunction=function(a,b){return mxUtils.bind(this,function(f){var e=this.editorUi.editor.graph;e.stopEditing(!1);e.getModel().beginUpdate();try{for(var g=e.getEditableCells(e.getSelectionCells()),d=!1,h=0;h<a.length;h++)if(e.setCellStyles(a[h],b[h],g),a[h]==mxConstants.STYLE_ALIGN&&e.updateLabelElements(g,function(m){m.removeAttribute("align");m.style.textAlign=null}),a[h]==mxConstants.STYLE_FONTFAMILY||"fontSource"==a[h])d=!0;if(d)for(d=0;d<g.length;d++)0==e.model.getChildCount(g[d])&&e.autoSizeCell(g[d],!1);null!=f&&f();this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",a,"values",b,"cells",g))}finally{e.getModel().endUpdate()}})};-Menus.prototype.promptChange=function(a,b,f,e,g,d,h,m,p,k){return a.addItem(b,null,mxUtils.bind(this,function(){var v=this.editorUi.editor.graph,w=e,y=v.getView().getState(v.getSelectionCell());null!=y&&(w=y.style[g]||w);var C=null!=k?k():!0;w=new FilenameDialog(this.editorUi,w,mxResources.get("apply"),mxUtils.bind(this,function(D){if(null!=D&&0<D.length){if(C){v.getModel().beginUpdate();try{v.stopEditing(!1),v.setCellStyles(g,D)}finally{v.getModel().endUpdate()}}null!=m&&m(D)}}),mxResources.get("enterValue")++Menus.prototype.promptChange=function(a,b,f,e,g,d,h,m,p,k){return a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph,w=e,y=u.getView().getState(u.getSelectionCell());null!=y&&(w=y.style[g]||w);var C=null!=k?k():!0;w=new FilenameDialog(this.editorUi,w,mxResources.get("apply"),mxUtils.bind(this,function(D){if(null!=D&&0<D.length){if(C){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(g,D)}finally{u.getModel().endUpdate()}}null!=m&&m(D)}}),mxResources.get("enterValue")+(0<f.length?" "+f:""),null,null,null,null,function(){null!=m&&null!=k&&m(null)});this.editorUi.showDialog(w.container,300,80,!0,!0);w.init()}),d,p,h)};Menus.prototype.pickColor=function(a,b,f,e,g,d){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var h=this.editorUi.editor.graph;if(null!=b&&h.cellEditor.isContentEditing()){var m=h.getSelectedEditingElement();null!=m&&null!=h.cellEditor.textarea&&(m=h.getTextColor(m,"forecolor"==b),this.editorUi.pickColor(m,mxUtils.bind(this,function(k){null!=h.cellEditor.textarea&&(Graph.setTextColor(h.cellEditor.textarea,k,"forecolor"==b),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",["forecolor"==b?mxConstants.STYLE_FONTCOLOR:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[k],"cells",[h.cellEditor.getEditingCell()])))}),e,g,d))}else{var p=h.getCellStyle(h.getSelectionCell(),!1);m=mxConstants.NONE;null!=p&&(m=p[a]||m);this.editorUi.pickColor(m,ColorDialog.createApplyFunction(this.editorUi,a),e,g,d)}}))};@@ -3725,8 +3726,8 @@ function(k){b.cellEditor.alignText(mxConstants.ALIGN_LEFT,k);a.fireEvent(new mxE" ("+Editor.ctrlKey+"+,)");elt=p.addItem("",Editor.superscriptImage,this.editorUi.actions.get("superscript").funct);elt.setAttribute("title",mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)");elt=p.addItem("",Editor.fontColorImage,this.editorUi.actions.get("fontColor").funct);elt.setAttribute("title",mxResources.get("fontColor"));elt=p.addItem("",Editor.backgroundColorImage,this.editorUi.actions.get("backgroundColor").funct);elt.setAttribute("title",mxResources.get("backgroundColor"));elt=p.addItem("",Editor.removeFormatImage,mxUtils.bind(this,function(){document.execCommand("removeformat",!1,null)}));elt.setAttribute("title",mxResources.get("removeFormat"))})),null,Editor.textFormatImage);d.setAttribute("data-min-width",640);this.addSeparator(null,780);this.editorUi.addButton(Editor.codeImage,mxResources.get("html"),function(){b.cellEditor.toggleViewMode();0<b.cellEditor.textarea.innerHTML.length&&(" "!=b.cellEditor.textarea.innerHTML||!b.cellEditor.clearOnChange)&&window.setTimeout(function(){document.execCommand("selectAll",!1,null)})},this.container).setAttribute("data-min-width",780);this.addSeparator(null,740);var h=this.addMenu(new Menu(mxUtils.bind(this,function(p){p.addItem(mxResources.get("insertLink"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("link").funct()}));p.addItem(mxResources.get("insertImage"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("image").funct()}));p.addItem(mxResources.get("insertHorizontalRule"),null,mxUtils.bind(this,function(){document.execCommand("inserthorizontalrule",-!1,null)}))})),null,Editor.plusImage);h.setAttribute("data-min-width",700);this.addSeparator(null,700);var m=this.addMenu(new Menu(mxUtils.bind(this,function(p){var k=b.getSelectedElement(),v=b.getParentByNames(k,["TD","TH"],b.cellEditor.text2),w=b.getParentByName(k,"TR",b.cellEditor.text2);if(null==w)this.editorUi.menus.addInsertTableItem(p);else{var y=b.getParentByName(w,"TABLE",b.cellEditor.text2);k=p.addItem("",Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(y,-null!=v?v.cellIndex:0))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertColumnBefore"));k=p.addItem("",Editor.addColumnRightImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(y,null!=v?v.cellIndex+1:-1))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertColumnAfter"));k=p.addItem("Delete column",Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=v)try{b.deleteColumn(y,v.cellIndex)}catch(C){this.editorUi.handleError(C)}}));+!1,null)}))})),null,Editor.plusImage);h.setAttribute("data-min-width",700);this.addSeparator(null,700);var m=this.addMenu(new Menu(mxUtils.bind(this,function(p){var k=b.getSelectedElement(),u=b.getParentByNames(k,["TD","TH"],b.cellEditor.text2),w=b.getParentByName(k,"TR",b.cellEditor.text2);if(null==w)this.editorUi.menus.addInsertTableItem(p);else{var y=b.getParentByName(w,"TABLE",b.cellEditor.text2);k=p.addItem("",Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(y,+null!=u?u.cellIndex:0))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertColumnBefore"));k=p.addItem("",Editor.addColumnRightImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(y,null!=u?u.cellIndex+1:-1))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertColumnAfter"));k=p.addItem("Delete column",Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=u)try{b.deleteColumn(y,u.cellIndex)}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("deleteColumn"));k=p.addItem("",Editor.addRowAboveImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(y,w.sectionRowIndex))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertRowBefore"));k=p.addItem("",Editor.addRowBelowImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(y,w.sectionRowIndex+1))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertRowAfter"));k=p.addItem("",Editor.removeRowImage,mxUtils.bind(this,function(){try{b.deleteRow(y,w.sectionRowIndex)}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("deleteRow"));k=p.addItem("",Editor.strokeColorImage,mxUtils.bind(this,function(){var C=y.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(D,E,G,J){return"#"+("0"+Number(E).toString(16)).substr(-2)+("0"+Number(G).toString(16)).substr(-2)+("0"+Number(J).toString(16)).substr(-2)});this.editorUi.pickColor(C,function(D){null==D||D==mxConstants.NONE?(y.removeAttribute("border"),y.style.border="",y.style.borderCollapse=""):(y.setAttribute("border","1"),y.style.border="1px solid "+D,y.style.borderCollapse="collapse")})}));k.setAttribute("title",mxResources.get("borderColor"));k=p.addItem("",Editor.fillColorImage,mxUtils.bind(this,function(){var C=y.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(D,E,G,J){return"#"+("0"+Number(E).toString(16)).substr(-2)+("0"+Number(G).toString(16)).substr(-2)+@@ -3742,35 +3743,35 @@ M=G*(1-E);D=G*(1-E*(J%2?D-J:1-(D-J)));switch(J){case 6:case 0:return[G,D,M];case")";f.style.position="absolute";f.style.overflow="hidden";f.style.cursor="crosshair";f.style.width="181px";f.style.height="101px";f.style.left="6px";f.style.top="4px";var e=document.createElement("div");e.style.background="url("+this.crossImage+")";e.style.pointerEvents="none";e.style.position="absolute";e.style.width="15px";e.style.height="15px";e.style.left="-8px";e.style.top="-8px";var g=[0,0,1];f.appendChild(e);b.appendChild(f);sliderBox=document.createElement("div");sliderBox.style.position="absolute";sliderBox.style.cursor="pointer";sliderBox.style.width="38px";sliderBox.style.height="110px";sliderBox.style.left="199px";sliderBox.style.top="4px";var d=document.createElement("div");d.style.border="1px solid light-dark(black, white)";d.style.pointerEvents="none";d.style.overflow="hidden";d.style.position="absolute";d.style.width="16px";d.style.height="101px";d.style.left="9px";d.style.top="0px";var h=!1,m=!1,p=mxUtils.bind(this,function(D){var E=Math.round(100*(1-g[1]));e.style.left=Math.round(g[0]/6*180)-8+"px";e.style.top=E-8+"px";E=d.childNodes;var G=a(g[0],g[1],1);if(null!=G){for(var J=0;J<E.length;J++)E[J].style.backgroundColor="rgb("+G[0]*(1-J/E.length)*255+", "+G[1]*(1-J/E.length)*255+", "+G[2]*(1-J/E.length)*255+")";C.style.top=Math.round(100*(1-g[2]))-4+"px";E=a(g[0],g[1],g[2]);E="#"+("0"+Math.round(255*E[0]).toString(16)).slice(-2)+("0"+Math.round(255*E[1]).toString(16)).slice(-2)+("0"+Math.round(255*E[2]).toString(16)).slice(-2);1!=D&&this.fireEvent(new mxEventObject("change",-"color",mxUtils.rgba2hex(E)))}}),k=mxUtils.bind(this,function(D){0==g[2]&&(g[2]=1);h=!0;w(D)}),v=mxUtils.bind(this,function(D){m=!0;w(D)}),w=mxUtils.bind(this,function(D){if(h){var E=f.getBoundingClientRect(),G=mxEvent.getClientX(D)-E.left;D=mxEvent.getClientY(D)-E.top;e.style.left=G-8+"px";e.style.top=D-8+"px";G*=6/180;D=1-D/100;E=void 0;0>G&&(G=0);6<G&&(G=6);0>D&&(D=0);1<D&&(D=1);0>E&&(E=0);1<E&&(E=1);G=a(null==G?g[0]:g[0]=G,null==D?g[1]:g[1]=D,null==E?g[2]:g[2]=E);this.fromString("#"+("0"+Math.floor(255*-G[0]).toString(16)).slice(-2)+("0"+Math.floor(255*G[1]).toString(16)).slice(-2)+("0"+Math.floor(255*G[2]).toString(16)).slice(-2))}else m&&(E=sliderBox.getBoundingClientRect(),D=mxEvent.getClientY(D)-E.top,g[2]=Math.max(Math.min(1,1-D/100),0),p())}),y=mxUtils.bind(this,function(){h=m=!1});mxEvent.addGestureListeners(f,k);mxEvent.addGestureListeners(sliderBox,v);mxEvent.addGestureListeners(b,null,w,y);mxEvent.addListener(b,"mouseleave",y);for(k=0;101>k;k+=4)v=document.createElement("div"),v.style.height=-"4px",v.style.pointerEvents="none",d.appendChild(v);b.appendChild(d);var C=document.createElement("div");C.style.background="url("+this.arrowImage+")";C.style.position="absolute";C.style.pointerEvents="none";C.style.width="7px";C.style.height="11px";C.style.left="2px";C.style.top="-3px";sliderBox.appendChild(C);sliderBox.appendChild(d);b.appendChild(sliderBox);this.fromString=function(D,E){E=null!=E?E:!1;if(null==D||""==D||mxUtils.isVarColor(D)||D==mxConstants.NONE)D="#ffffff",E=!0;var G=mxUtils.parseColor(D);-D=G.r/255;var J=G.g/255,M=G.b/255,Q=Math.min(Math.min(D,J),M);G=Math.max(Math.max(D,J),M);var L=G-Q;0===L?D=[null,0,G]:(D=D===Q?3+(M-J)/L:J===Q?5+(D-M)/L:1+(J-D)/L,D=[6===D?0:D,L/G,G]);null!=D[0]&&(g[0]=D[0]);0!=D[2]&&(g[1]=D[1]);g[2]=D[2];p(E)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";+"color",mxUtils.rgba2hex(E)))}}),k=mxUtils.bind(this,function(D){0==g[2]&&(g[2]=1);h=!0;w(D)}),u=mxUtils.bind(this,function(D){m=!0;w(D)}),w=mxUtils.bind(this,function(D){if(h){var E=f.getBoundingClientRect(),G=mxEvent.getClientX(D)-E.left;D=mxEvent.getClientY(D)-E.top;e.style.left=G-8+"px";e.style.top=D-8+"px";G*=6/180;D=1-D/100;E=void 0;0>G&&(G=0);6<G&&(G=6);0>D&&(D=0);1<D&&(D=1);0>E&&(E=0);1<E&&(E=1);G=a(null==G?g[0]:g[0]=G,null==D?g[1]:g[1]=D,null==E?g[2]:g[2]=E);this.fromString("#"+("0"+Math.floor(255*+G[0]).toString(16)).slice(-2)+("0"+Math.floor(255*G[1]).toString(16)).slice(-2)+("0"+Math.floor(255*G[2]).toString(16)).slice(-2))}else m&&(E=sliderBox.getBoundingClientRect(),D=mxEvent.getClientY(D)-E.top,g[2]=Math.max(Math.min(1,1-D/100),0),p())}),y=mxUtils.bind(this,function(){h=m=!1});mxEvent.addGestureListeners(f,k);mxEvent.addGestureListeners(sliderBox,u);mxEvent.addGestureListeners(b,null,w,y);mxEvent.addListener(b,"mouseleave",y);for(k=0;101>k;k+=4)u=document.createElement("div"),u.style.height=+"4px",u.style.pointerEvents="none",d.appendChild(u);b.appendChild(d);var C=document.createElement("div");C.style.background="url("+this.arrowImage+")";C.style.position="absolute";C.style.pointerEvents="none";C.style.width="7px";C.style.height="11px";C.style.left="2px";C.style.top="-3px";sliderBox.appendChild(C);sliderBox.appendChild(d);b.appendChild(sliderBox);this.fromString=function(D,E){E=null!=E?E:!1;if(null==D||""==D||mxUtils.isVarColor(D)||D==mxConstants.NONE)D="#ffffff",E=!0;var G=mxUtils.parseColor(D);+D=G.r/255;var J=G.g/255,M=G.b/255,Q=Math.min(Math.min(D,J),M);G=Math.max(Math.max(D,J),M);var K=G-Q;0===K?D=[null,0,G]:(D=D===Q?3+(M-J)/K:J===Q?5+(D-M)/K:1+(J-D)/K,D=[6===D?0:D,K/G,G]);null!=D[0]&&(g[0]=D[0]);0!=D[2]&&(g[1]=D[1]);g[2]=D[2];p(E)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";ColorPicker.prototype.crossImage="data:image/gif;base64,R0lGODlhDwAPAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAPAA8AAAIklB8Qx53b4otSUWcvyiz4/4AeQJbmKY4p1HHapBlwPL/uVRsFADs=";ColorPicker.prototype.arrowImage="data:image/gif;base64,R0lGODlhBwALAKECAAAAAP///6g8eKg8eCH5BAEKAAIALAAAAAAHAAsAAAITTIQYcLnsgGxvijrxqdQq6DRJAQA7";-var ColorDialog=function(a,b,f,e,g,d,h){function m(ba){return mxUtils.color2hex("#"+ba).substring(1).toUpperCase()}function p(){ea.src="none"==S.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ba){ba||"none"==S.style.display?(S.style.display="flex",N.focus()):S.style.display="none";p()}function v(ba){""==ba.value&&null!=Q&&W?ba.style.background=ba==N?Q.dark:Q.light:""==ba.value||ba.value==mxConstants.NONE||mxUtils.isVarColor(ba.value)?ba.style.background="transparent":ba.style.background=-"#"+ba.value;ba.style.color="transparent"==ba.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(ba.style.background)?"#ffffff":"#000000"}function w(){v(X);v(N)}function y(ba){ba?h&&null!=Q?(X.value=Q.light.substring(1).toUpperCase(),ba=!1):(X.value="",N.value="",ca.value="automatic",X.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),N.setAttribute("title",mxResources.get("useBlackAndWhite")),X.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==X.value&&+var ColorDialog=function(a,b,f,e,g,d,h){function m(ba){return mxUtils.color2hex("#"+ba).substring(1).toUpperCase()}function p(){ea.src="none"==S.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ba){ba||"none"==S.style.display?(S.style.display="flex",N.focus()):S.style.display="none";p()}function u(ba){""==ba.value&&null!=Q&&W?ba.style.background=ba==N?Q.dark:Q.light:""==ba.value||ba.value==mxConstants.NONE||mxUtils.isVarColor(ba.value)?ba.style.background="transparent":ba.style.background=+"#"+ba.value;ba.style.color="transparent"==ba.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(ba.style.background)?"#ffffff":"#000000"}function w(){u(X);u(N)}function y(ba){ba?h&&null!=Q?(X.value=Q.light.substring(1).toUpperCase(),ba=!1):(X.value="",N.value="",ca.value="automatic",X.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),N.setAttribute("title",mxResources.get("useBlackAndWhite")),X.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==X.value&&null!=Q&&(X.value=Q.light.substring(1).toUpperCase()),X.removeAttribute("placeholder"),X.removeAttribute("title"),""==N.value&&null!=Q&&(N.value=Q.dark.substring(1).toUpperCase()),N.removeAttribute("placeholder"),N.removeAttribute("title"),ba=!1);W=ba}function C(ba){"#"==ba.value.charAt(0)&&(ba.value=ba.value.substring(1));var ma=ba.value,Ja=ma.toLowerCase();null==g||""!=ma&&"automatic"!=Ja&&"default"!=Ja&&Ja!=mxResources.get("default").toLowerCase()&&Ja!=mxResources.get("automatic").toLowerCase()||null==Q?(ba.value==mxConstants.NONE||mxUtils.isVarColor(ba.value)||(ba.value=m(ba.value),ha.fromString("#"+ba.value)),y(!1),ba!=N||X.value==mxConstants.NONE&&N.value==mxConstants.NONE||(ca.value="custom"),ba==X&&"automatic"==ca.value&&(X.value==mxConstants.NONE?N.value=mxConstants.NONE:mxUtils.isVarColor(X.value)?N.value=X.value:N.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+ba.value)).substring(1).toUpperCase()),w()):V.click()}function D(){var ba=X.value,ma=N.value;if(W&&null!=Q||(/(^#?[a-zA-Z0-9]*$)/.test(ba)||mxUtils.isVarColor(ba))&&(/(^#?[a-zA-Z0-9]*$)/.test(ma)||mxUtils.isVarColor(ma))){if(W)ba="default";else if(""==ba&&(ba=mxConstants.NONE),""==ma&&(ma=mxConstants.NONE),ba==mxConstants.NONE||mxUtils.isVarColor(ba)||"#"==ba.charAt(0)||(ba="#"+m(ba)),ma==mxConstants.NONE||mxUtils.isVarColor(ma)||"#"==ma.charAt(0)||(ma="#"+m(ma)),ba!=mxConstants.NONE&&ma!=mxConstants.NONE||ColorDialog.addRecentColor(mxConstants.NONE,12),"automatic"!=ca.value&&ma!=mxConstants.NONE?ba==mxConstants.NONE?ColorDialog.addRecentColor(ma.substring(1),12):ColorDialog.addRecentColor("light-dark("+ba+","+ma+")",12):ba!=mxConstants.NONE&&ColorDialog.addRecentColor(ba.substring(1),12),"none"!=ba||"none"!=ma)ba=ba==mxConstants.NONE?"transparent":ba,ma=ma==mxConstants.NONE?"transparent":ma,h||"automatic"==ca.value||(ba="light-dark("+ba+","+ma+")");Y(ba);a.hideDialog()}else a.handleError({message:mxResources.get("invalidInput")})}function E(){mxClient.IS_TOUCH||window.setTimeout(function(){ia.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?-ia.select():document.execCommand("selectAll",!1,null)},0)}function G(){ia.value!=mxConstants.NONE&&""!=ia.value&&ha.fromString("#"+ia.value,!0)}function J(){var ba=aa(0==ColorDialog.recentColors.length?["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);ba.style.marginBottom="8px";return ba}function M(ba){13==ba.keyCode&&(C(mxEvent.getSource(ba)),D())}var Q=null!=d?mxUtils.getLightDarkColor(d,null,null,h):null,L=a.editor.graph;this.editorUi=a;var W=!1;"default"==b||"transparent"==b||b==mxConstants.NONE||+ia.select():document.execCommand("selectAll",!1,null)},0)}function G(){ia.value!=mxConstants.NONE&&""!=ia.value&&ha.fromString("#"+ia.value,!0)}function J(){var ba=aa(0==ColorDialog.recentColors.length?["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);ba.style.marginBottom="8px";return ba}function M(ba){13==ba.keyCode&&(C(mxEvent.getSource(ba)),D())}var Q=null!=d?mxUtils.getLightDarkColor(d,null,null,h):null,K=a.editor.graph;this.editorUi=a;var W=!1;"default"==b||"transparent"==b||b==mxConstants.NONE||mxUtils.isVarColor(b)||mxUtils.isHexColor(b)||mxUtils.isRgbColor(b)||mxUtils.isLightDarkColor(b)||(b=mxUtils.color2hex(b));var X=document.createElement("input");X.style.textOverflow="ellipsis";X.style.margin="0 0 0 4px";X.style.width="100%";d=document.createElement("div");d.style.padding="0 4px";var T=document.createElement("div");T.style.display="flex";T.style.alignItems="center";d.appendChild(T);var N=document.createElement("input");N.style.textOverflow="ellipsis";N.style.margin="0 4px";N.style.maxWidth="60px";N.style.width="100%";var ca=document.createElement("select");ca.style.textOverflow="ellipsis";ca.style.width="100%";var H=document.createElement("option");H.setAttribute("value","automatic");mxUtils.write(H,mxResources.get("automatic"));ca.appendChild(H);H=document.createElement("option");H.setAttribute("value","custom");mxUtils.write(H,mxResources.get("userDefined"));ca.appendChild(H);ca.value=mxUtils.isLightDarkColor(b)?"custom":"automatic";var S=document.createElement("div");S.style.padding="0 6px 0 6px";H=document.createElement("img");H.setAttribute("title",mxResources.get("dark"));H.className="geAdaptiveAsset";H.src=Editor.thinDarkImage;H.style.width="20px";S.appendChild(H);mxEvent.addListener(H,"click",function(){N.focus()});S.appendChild(N);S.appendChild(ca);S.style.display="flex";S.style.alignItems="center";H=document.createElement("div");H.style.display="flex";H.style.alignItems="center";H.style.userSelect="none";H.style.cursor="pointer";H.style.padding="2px 0 2px 0";var ea=document.createElement("img");ea.setAttribute("title",mxResources.get("dark"));ea.className="geAdaptiveAsset";ea.style.marginLeft="-2px";H.appendChild(ea);mxUtils.write(H,mxResources.get("advanced"));var la=document.createElement("img");la.setAttribute("title",mxResources.get("swap"));la.className="geAdaptiveAsset";la.style.marginLeft="4px";la.style.width="16px";la.style.height="16px";la.style.cursor="pointer";la.src=Editor.swapImage;mxEvent.addListener(la,"click",function(ba){k(!0);ca.value="custom";var ma=X.value;X.value=N.value;N.value=ma;w();mxEvent.consume(ba)});H.appendChild(la);var O=document.createElement("img");O.setAttribute("title",mxResources.get("copy"));O.className="geAdaptiveAsset";O.style.marginLeft="4px";O.style.width="16px";O.style.height="16px";O.style.cursor="pointer";O.src=Editor.doubleArrowUpImage;mxEvent.addListener(O,"click",function(ba){ia==N?X.value=N.value:N.value=X.value;k(!0);ca.value="custom";w();mxEvent.consume(ba)});H.appendChild(O);p();mxEvent.addListener(H,"click",function(){k();p();ColorDialog.collapsed="none"==S.style.display});var V=mxUtils.button("",function(){y(!0);w();ia.focus();""==ia.value&&null!=Q&&W&&ha.fromString(ia==N?Q.dark:Q.light,!0)});mxEvent.addListener(ca,"change",function(){"automatic"==ca.value?(X.focus(),C(X)):(y(!1),mxUtils.isVarColor(N.value)||(N.value=W&&null!=Q?Q.dark.substring(1).toUpperCase():N.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+X.value)).substring(1).toUpperCase()),N.focus(),E());w()});mxEvent.addListener(X,"change",function(){C(X)});mxEvent.addListener(N,-"change",function(){C(N)});var Y=null!=f?f:this.createApplyFunction();this.init=function(){E()};var ha=new ColorPicker,ia=Editor.isDarkMode()&&("auto"==L.getAdaptiveColors()||"simple"==L.getAdaptiveColors()&&"custom"==ca.value)&&!h?N:X;mxEvent.addListener(X,"focus",function(){ia=X;G();O.src=Editor.doubleArrowDownImage});mxEvent.addListener(N,"focus",function(){ia=N;G();O.src=Editor.doubleArrowUpImage});ha.addListener("change",function(ba,ma){ba=ma.getProperty("color").substring(1).toUpperCase();ia.value.toUpperCase()!=+"change",function(){C(N)});var Y=null!=f?f:this.createApplyFunction();this.init=function(){E()};var ha=new ColorPicker,ia=Editor.isDarkMode()&&("auto"==K.getAdaptiveColors()||"simple"==K.getAdaptiveColors()&&"custom"==ca.value)&&!h?N:X;mxEvent.addListener(X,"focus",function(){ia=X;G();O.src=Editor.doubleArrowDownImage});mxEvent.addListener(N,"focus",function(){ia=N;G();O.src=Editor.doubleArrowUpImage});ha.addListener("change",function(ba,ma){ba=ma.getProperty("color").substring(1).toUpperCase();ia.value.toUpperCase()!=ba&&(ia.value=ba,C(ia),window.setTimeout(function(){ia.focus()},0))});f=document.createElement("div");f.appendChild(ha.div);var ta=document.createElement("div");ta.style.display="flex";ta.style.flexFlow="row wrap";ta.style.justifyContent="center";ta.style.paddingTop="10px";var aa=mxUtils.bind(this,function(ba,ma,Ja,na){ma=null!=ma?ma:12;var ya=document.createElement("table");ya.style.borderCollapse="collapse";ya.setAttribute("cellspacing","0");ya.style.marginBottom="20px";ya.style.cellSpacing="0px";ya.style.marginLeft="1px";var za=document.createElement("tbody");ya.appendChild(za);for(var Ka=ba.length/ma,Qa=0;Qa<Ka;Qa++){for(var Ia=document.createElement("tr"),Ha=0;Ha<ma;Ha++)mxUtils.bind(this,function(ra){var Da=document.createElement("td");Da.style.border="0px solid black";Da.style.padding="0px";Da.style.width="16px";Da.style.height="16px";null==ra&&(ra=Ja);if(null!=ra){Da.style.borderWidth="1px";if(ra==mxConstants.NONE||null==ra)Da.style.background="url('"+Dialog.prototype.noColorImage+"')";else if(mxUtils.isLightDarkColor(ra)){var Va=mxUtils.getLightDarkColor(ra);Da.style.background="linear-gradient(to right bottom, "+Va.cssText+" 50%, "+mxUtils.invertLightDarkColor(Va).cssText+" 50.3%)"}else Da.style.backgroundColor="#"+ra;Va=this.colorNames[String(ra).toUpperCase()];null!=Va&&Da.setAttribute("title",Va)}Ia.appendChild(Da);null!=ra&&(Da.style.cursor="pointer",mxEvent.addListener(Da,"click",function(){if(ra==mxConstants.NONE){ia==N&&N.value==mxConstants.NONE?X.value=mxConstants.NONE:ia.value=mxConstants.NONE;if(ia==X||ia==N&&X.value==mxConstants.NONE)ca.value="automatic";C(ia);window.setTimeout(function(){ia.focus()},0)}else if(mxUtils.isLightDarkColor(ra)){k(!0);ca.value="custom";var Wa=mxUtils.getLightDarkColor(ra);X.value=Wa.light.substring(1).toUpperCase();N.value=Wa.dark.substring(1).toUpperCase();C(X);C(N);ia==X?ha.fromString(Wa.light):ha.fromString(Wa.dark)}else ha.fromString("#"+ra)}),mxEvent.addListener(Da,"dblclick",D))})(ba[Qa*ma+Ha]);za.appendChild(Ia)}na&&(ba=document.createElement("td"),ba.setAttribute("title",mxResources.get("reset")),ba.className="geAdaptiveAsset",ba.style.border="1px solid black",ba.style.padding="0px",ba.style.width="16px",ba.style.height="16px",ba.style.backgroundImage="url('"+Editor.crossImage+"')",ba.style.backgroundPosition="center center",ba.style.backgroundSize="14px 14px",ba.style.backgroundRepeat="no-repeat",ba.style.cursor="pointer",Ia.appendChild(ba),mxEvent.addListener(ba,"click",function(){ColorDialog.resetRecentColors();ya.parentNode.replaceChild(J(),-ya)}));ta.appendChild(ya);return ya});h||(d.appendChild(H),!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==L.getAdaptiveColors()||"automatic"!=ca.value||(S.style.display="none",p()),H=document.createElement("img"),H.setAttribute("title",mxResources.get("light")),H.className="geAdaptiveAsset",H.src=Editor.thinLightImage,H.style.width="20px",T.appendChild(H),mxEvent.addListener(H,"click",function(){X.focus()}));T.appendChild(X);null!=Q&&(V.setAttribute("title",mxResources.get(h?"default":"useBlackAndWhite")),-V.style.cursor="pointer",V.style.position="relative",V.style.marginLeft="4px",V.innerText="",L=document.createElement("div"),L.style.display="inline-block",L.style.verticalAlign="middle",L.style.borderStyle="solid",L.style.borderWidth="1px",L.style.marginTop="-2px",L.style.width="12px",L.style.height="12px",h?L.style.backgroundColor=Q.light:L.style.backgroundImage="linear-gradient(to right bottom, "+Q.cssText+" 50%, "+mxUtils.invertLightDarkColor(Q).cssText+" 50.3%)",V.appendChild(L),T.appendChild(V),-mxEvent.addListener(V,"dblclick",D));var P=document.createElement("input");P.setAttribute("type","color");P.style.position="relative";P.style.visibility="hidden";P.style.top="10px";P.style.width="0px";P.style.height="0px";P.style.border="none";f.style.whiteSpace="nowrap";T.appendChild(P);L=mxUtils.button("",function(){document.activeElement==P?X.focus():(P.value="#"+X.value,P.click())});L.style.cursor="pointer";H=document.createElement("img");H.src=Editor.colorDropperImage;H.className="geAdaptiveAsset";-H.style.position="relative";H.style.verticalAlign="middle";H.style.marginTop="-2px";H.style.width="auto";H.style.height="14px";L.appendChild(H);T.appendChild(L);f.appendChild(d);mxEvent.addListener(P,"change",function(){ha.fromString(P.value)});h||f.appendChild(S);J();d=aa(this.presetColors);d.style.marginBottom="8px";d=aa(this.defaultColors);d.style.marginBottom="16px";f.appendChild(ta);d=document.createElement("div");d.style.display="flex";d.style.whiteSpace="nowrap";d.style.alignItems="center";-d.style.justifyContent="end";a.isOffline()||d.appendChild(a.createHelpIcon("https://github.com/jgraph/drawio/discussions/4713"));T=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=e&&e()});T.className="geBtn";a.editor.cancelFirst&&d.appendChild(T);L=mxUtils.button(mxResources.get("apply"),D);L.className="geBtn gePrimaryBtn";d.appendChild(L);a.editor.cancelFirst||d.appendChild(T);null!=b&&("default"==b?V.click():(T=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==+ya)}));ta.appendChild(ya);return ya});h||(d.appendChild(H),!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==K.getAdaptiveColors()||"automatic"!=ca.value||(S.style.display="none",p()),H=document.createElement("img"),H.setAttribute("title",mxResources.get("light")),H.className="geAdaptiveAsset",H.src=Editor.thinLightImage,H.style.width="20px",T.appendChild(H),mxEvent.addListener(H,"click",function(){X.focus()}));T.appendChild(X);null!=Q&&(V.setAttribute("title",mxResources.get(h?"default":"useBlackAndWhite")),+V.style.cursor="pointer",V.style.position="relative",V.style.marginLeft="4px",V.innerText="",K=document.createElement("div"),K.style.display="inline-block",K.style.verticalAlign="middle",K.style.borderStyle="solid",K.style.borderWidth="1px",K.style.marginTop="-2px",K.style.width="12px",K.style.height="12px",h?K.style.backgroundColor=Q.light:K.style.backgroundImage="linear-gradient(to right bottom, "+Q.cssText+" 50%, "+mxUtils.invertLightDarkColor(Q).cssText+" 50.3%)",V.appendChild(K),T.appendChild(V),+mxEvent.addListener(V,"dblclick",D));var P=document.createElement("input");P.setAttribute("type","color");P.style.position="relative";P.style.visibility="hidden";P.style.top="10px";P.style.width="0px";P.style.height="0px";P.style.border="none";f.style.whiteSpace="nowrap";T.appendChild(P);K=mxUtils.button("",function(){document.activeElement==P?X.focus():(P.value="#"+X.value,P.click())});K.style.cursor="pointer";H=document.createElement("img");H.src=Editor.colorDropperImage;H.className="geAdaptiveAsset";+H.style.position="relative";H.style.verticalAlign="middle";H.style.marginTop="-2px";H.style.width="auto";H.style.height="14px";K.appendChild(H);T.appendChild(K);f.appendChild(d);mxEvent.addListener(P,"change",function(){ha.fromString(P.value)});h||f.appendChild(S);J();d=aa(this.presetColors);d.style.marginBottom="8px";d=aa(this.defaultColors);d.style.marginBottom="16px";f.appendChild(ta);d=document.createElement("div");d.style.display="flex";d.style.whiteSpace="nowrap";d.style.alignItems="center";+d.style.justifyContent="end";a.isOffline()||d.appendChild(a.createHelpIcon("https://github.com/jgraph/drawio/discussions/4713"));T=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=e&&e()});T.className="geBtn";a.editor.cancelFirst&&d.appendChild(T);K=mxUtils.button(mxResources.get("apply"),D);K.className="geBtn gePrimaryBtn";d.appendChild(K);a.editor.cancelFirst||d.appendChild(T);null!=b&&("default"==b?V.click():(T=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==T.light?X.value=mxConstants.NONE:mxUtils.isVarColor(T.light)?X.value=T.light:(mxUtils.isRgbColor(T.light)?T.light=mxUtils.rgba2hex(T.light):mxUtils.isHexColor(T.light)||(T.light="#"+m(T.light)),X.value=T.light.substring(1).toUpperCase()),b==mxConstants.NONE||"transparent"==T.dark?N.value=mxConstants.NONE:mxUtils.isVarColor(T.dark)?N.value=T.dark:(mxUtils.isRgbColor(T.dark)?T.dark=mxUtils.rgba2hex(T.dark):mxUtils.isHexColor(T.dark)||(T.dark="#"+m(T.dark)),N.value=T.dark.substring(1).toUpperCase()),G(),w()));h||!ColorDialog.collapsed||"automatic"!=ca.value||Editor.isDarkMode()||(S.style.display="none",p());f.appendChild(d);this.picker=ha;this.colorInput=X;mxEvent.addListener(X,"keypress",M);mxEvent.addListener(N,"keypress",M);mxEvent.addListener(f,"keydown",function(ba){27==ba.keyCode&&(a.hideDialog(),null!=e&&e(),mxEvent.consume(ba))});this.container=f};ColorDialog.prototype.presetColors="E6D0DE CDA2BE B5739D E1D5E7 C3ABD0 A680B8 D4E1F5 A9C4EB 7EA6E0 D5E8D4 9AC7BF 67AB9F D5E8D4 B9E0A5 97D077 FFF2CC FFE599 FFD966 FFF4C3 FFCE9F FFB570 F8CECC F19C99 EA6B66".split(" ");ColorDialog.prototype.colorNames={};ColorDialog.prototype.defaultColors="none FFFFFF E6E6E6 CCCCCC B3B3B3 999999 808080 666666 4D4D4D 333333 1A1A1A 000000 FFCCCC FFE6CC FFFFCC E6FFCC CCFFCC CCFFE6 CCFFFF CCE5FF CCCCFF E5CCFF FFCCFF FFCCE6 FF9999 FFCC99 FFFF99 CCFF99 99FF99 99FFCC 99FFFF 99CCFF 9999FF CC99FF FF99FF FF99CC FF6666 FFB366 FFFF66 B3FF66 66FF66 66FFB3 66FFFF 66B2FF 6666FF B266FF FF66FF FF66B3 FF3333 FF9933 FFFF33 99FF33 33FF33 33FF99 33FFFF 3399FF 3333FF 9933FF FF33FF FF3399 FF0000 FF8000 FFFF00 80FF00 00FF00 00FF80 00FFFF 007FFF 0000FF 7F00FF FF00FF FF0080 CC0000 CC6600 CCCC00 66CC00 00CC00 00CC66 00CCCC 0066CC 0000CC 6600CC CC00CC CC0066 990000 994C00 999900 4D9900 009900 00994D 009999 004C99 000099 4C0099 990099 99004D 660000 663300 666600 336600 006600 006633 006666 003366 000066 330066 660066 660033 330000 331A00 333300 1A3300 003300 00331A 003333 001933 000033 190033 330033 33001A".split(" ");@@ -3779,20 +3780,20 @@ ColorDialog.addRecentColor=function(a,b){null!=a&&(mxUtils.remove(a,ColorDialog.var AboutDialog=function(a){var b=document.createElement("div");b.setAttribute("align","center");var f=document.createElement("h3");mxUtils.write(f,mxResources.get("about")+" GraphEditor");b.appendChild(f);f=document.createElement("img");f.style.border="0px";f.setAttribute("width","176");f.setAttribute("width","151");f.setAttribute("src",IMAGE_PATH+"/logo.png");b.appendChild(f);mxUtils.br(b);mxUtils.write(b,"Powered by mxGraph "+mxClient.VERSION);mxUtils.br(b);f=document.createElement("a");f.setAttribute("href","http://www.jgraph.com/");f.setAttribute("target","_blank");mxUtils.write(f,"www.jgraph.com");b.appendChild(f);mxUtils.br(b);mxUtils.br(b);f=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});f.className="geBtn gePrimaryBtn";b.appendChild(f);this.container=b},SimpleTextareaDialog=function(a,b,f){var e=document.createElement("div"),g=document.createElement("textarea");g.style.position="absolute";g.style.left="30px";g.style.right="30px";g.style.top="30px";g.style.bottom="100px";g.style.resize="none";g.setAttribute("wrap","off");g.setAttribute("spellcheck","false");g.setAttribute("autocorrect","off");g.setAttribute("autocomplete","off");g.setAttribute("autocapitalize","off");g.value=null!=b?b:"";e.appendChild(g);b=document.createElement("div");b.style.position="absolute";b.style.bottom="46px";b.style.right="30px";b.style.left="30px";b.style.justifyContent="end";b.style.display="flex";var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});d.setAttribute("title","Escape");-d.className="geBtn";a.editor.cancelFirst&&b.appendChild(d);var h=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();f(g.value)});h.setAttribute("title","Ctrl+Enter");h.className="geBtn gePrimaryBtn";b.appendChild(h);mxEvent.addListener(g,"keydown",function(m){13==m.keyCode&&mxEvent.isControlDown(m)&&h.click()});a.editor.cancelFirst||b.appendChild(d);this.init=function(){g.focus();g.scrollTop=0};e.appendChild(b);this.container=e},TextareaDialog=function(a,b,f,e,g,d,h,m,p,k,v,w,y,C,D){k=+d.className="geBtn";a.editor.cancelFirst&&b.appendChild(d);var h=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();f(g.value)});h.setAttribute("title","Ctrl+Enter");h.className="geBtn gePrimaryBtn";b.appendChild(h);mxEvent.addListener(g,"keydown",function(m){13==m.keyCode&&mxEvent.isControlDown(m)&&h.click()});a.editor.cancelFirst||b.appendChild(d);this.init=function(){g.focus();g.scrollTop=0};e.appendChild(b);this.container=e},TextareaDialog=function(a,b,f,e,g,d,h,m,p,k,u,w,y,C,D){k=null!=k?k:!1;h=document.createElement("div");h.style.position="absolute";h.style.top="20px";h.style.bottom="20px";h.style.left="20px";h.style.right="20px";m=document.createElement("div");m.style.position="absolute";m.style.left="0px";m.style.right="0px";var E=m.cloneNode(!1),G=m.cloneNode(!1);m.style.top="0px";m.style.height="20px";E.style.top="20px";E.style.bottom="64px";G.style.display="flex";G.style.whiteSpace="nowrap";G.style.alignItems="center";G.style.justifyContent="end";G.style.bottom="0px";-G.style.height="60px";G.style.textAlign="right";G.style.paddingTop="14px";G.style.boxSizing="border-box";mxUtils.write(m,b);h.appendChild(m);h.appendChild(E);h.appendChild(G);null!=D&&m.appendChild(D);var J=document.createElement("textarea");v?J.setAttribute("wrap","off"):J.style.wordBreak="break-all";J.setAttribute("spellcheck","false");J.setAttribute("autocorrect","off");J.setAttribute("autocomplete","off");J.setAttribute("autocapitalize","off");mxUtils.write(J,f||"");J.style.resize="none";J.style.outline=-"none";J.style.position="absolute";J.style.boxSizing="border-box";J.style.top="0px";J.style.left="0px";J.style.height="100%";J.style.width="100%";this.textarea=J;this.init=function(){J.focus();J.scrollTop=0};E.appendChild(J);null==y||a.isOffline()||G.appendChild(a.createHelpIcon(y));if(null!=C)for(b=0;b<C.length;b++)(function(Q,L,W){Q=mxUtils.button(Q,function(X){L(X,J)});null!=W&&Q.setAttribute("title",W);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),+G.style.height="60px";G.style.textAlign="right";G.style.paddingTop="14px";G.style.boxSizing="border-box";mxUtils.write(m,b);h.appendChild(m);h.appendChild(E);h.appendChild(G);null!=D&&m.appendChild(D);var J=document.createElement("textarea");u?J.setAttribute("wrap","off"):J.style.wordBreak="break-all";J.setAttribute("spellcheck","false");J.setAttribute("autocorrect","off");J.setAttribute("autocomplete","off");J.setAttribute("autocapitalize","off");mxUtils.write(J,f||"");J.style.resize="none";J.style.outline=+"none";J.style.position="absolute";J.style.boxSizing="border-box";J.style.top="0px";J.style.left="0px";J.style.height="100%";J.style.width="100%";this.textarea=J;this.init=function(){J.focus();J.scrollTop=0};E.appendChild(J);null==y||a.isOffline()||G.appendChild(a.createHelpIcon(y));if(null!=C)for(b=0;b<C.length;b++)(function(Q,K,W){Q=mxUtils.button(Q,function(X){K(X,J)});null!=W&&Q.setAttribute("title",W);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),function(){a.hideDialog();null!=g&&g()});d.setAttribute("title","Escape");d.className="geBtn";a.editor.cancelFirst&&G.appendChild(d);null!=p&&p(G,J);if(null!=e){var M=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();e(J.value)});M.setAttribute("title","Ctrl+Enter");M.className="geBtn gePrimaryBtn";G.appendChild(M);mxEvent.addListener(J,"keydown",function(Q){13==Q.keyCode&&mxEvent.isControlDown(Q)&&M.click()})}a.editor.cancelFirst||G.appendChild(d);this.container=h},EditDiagramDialog=function(a){var b=document.createElement("div");b.style.textAlign="right";var f=document.createElement("textarea");f.setAttribute("wrap","off");f.setAttribute("spellcheck","false");f.setAttribute("autocorrect","off");f.setAttribute("autocomplete","off");f.setAttribute("autocapitalize","off");f.style.overflow="auto";f.style.resize="none";f.style.width="600px";f.style.height="360px";f.style.marginBottom="16px";var e=a.getDiagramSnapshot();f.value=mxUtils.getPrettyXml(e.node);b.appendChild(f);this.init=function(){f.focus()};Graph.fileSupport&&(f.addEventListener("dragover",function(m){m.stopPropagation();m.preventDefault()},!1),f.addEventListener("drop",function(m){m.stopPropagation();m.preventDefault();if(0<m.dataTransfer.files.length){m=m.dataTransfer.files[0];var p=new FileReader;p.onload=function(k){f.value=k.target.result};p.readAsText(m)}else f.value=a.extractGraphModelFromEvent(m)},!1));var g=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});g.className="geBtn";a.editor.cancelFirst&&b.appendChild(g);var d=document.createElement("select");d.style.textOverflow="ellipsis";d.style.width="196px";d.className="geBtn";if(a.editor.graph.isEnabled()){var h=document.createElement("option");h.setAttribute("value","apply");mxUtils.write(h,mxResources.get("apply",null,"Update Existing Drawing"));d.appendChild(h)}a.editor.graph.isEnabled()&&(h=document.createElement("option"),h.setAttribute("value","insert"),mxUtils.write(h,mxResources.get("insert")),d.appendChild(h));h=document.createElement("option");-h.setAttribute("value","new");mxUtils.write(h,mxResources.get("openInNewWindow"));EditDiagramDialog.showNewWindowOption&&!navigator.standalone&&d.appendChild(h);b.appendChild(d);h=mxUtils.button(mxResources.get("ok"),function(){var m=Graph.zapGremlins(mxUtils.trim(f.value)),p=null;if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement,v=Editor.extractParserError(k,mxResources.get("unknownError"));v?(EditorUi.debug("EditDiagramDialogParserError",-[this],"node",[k],"cause",[v]),p=mxResources.get("invalidInput")+" ("+v+")"):("mxfile"==k.nodeName?a.editor.setGraphXml(k):a.updateDiagramData(e,k),a.hideDialog())}catch(D){p=D}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var w=mxUtils.parseXml(m),y=new mxGraphModel;(new mxCodec(w)).decode(w.documentElement,y);var C=y.getChildren(y.getChildAt(y.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(C));a.hideDialog()}catch(D){p=D}finally{a.editor.graph.model.endUpdate()}}null!=+h.setAttribute("value","new");mxUtils.write(h,mxResources.get("openInNewWindow"));EditDiagramDialog.showNewWindowOption&&!navigator.standalone&&d.appendChild(h);b.appendChild(d);h=mxUtils.button(mxResources.get("ok"),function(){var m=Graph.zapGremlins(mxUtils.trim(f.value)),p=null;if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement,u=Editor.extractParserError(k,mxResources.get("unknownError"));u?(EditorUi.debug("EditDiagramDialogParserError",+[this],"node",[k],"cause",[u]),p=mxResources.get("invalidInput")+" ("+u+")"):("mxfile"==k.nodeName?a.editor.setGraphXml(k):a.updateDiagramData(e,k),a.hideDialog())}catch(D){p=D}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var w=mxUtils.parseXml(m),y=new mxGraphModel;(new mxCodec(w)).decode(w.documentElement,y);var C=y.getChildren(y.getChildAt(y.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(C));a.hideDialog()}catch(D){p=D}finally{a.editor.graph.model.endUpdate()}}null!=p&&a.handleError(p)});h.className="geBtn gePrimaryBtn";b.appendChild(h);a.editor.cancelFirst||b.appendChild(g);this.container=b};EditDiagramDialog.showNewWindowOption=!0;-var ExportDialog=function(a){function b(){var T=v.value,N=T.lastIndexOf(".");v.value=0<N?T.substring(0,N+1)+w.value:T+"."+w.value;"xml"===w.value?(y.setAttribute("disabled","true"),C.setAttribute("disabled","true"),D.setAttribute("disabled","true"),L.setAttribute("disabled","true")):(y.removeAttribute("disabled"),C.removeAttribute("disabled"),D.removeAttribute("disabled"),L.removeAttribute("disabled"));"png"===w.value||"svg"===w.value||"pdf"===w.value?M.removeAttribute("disabled"):M.setAttribute("disabled",+var ExportDialog=function(a){function b(){var T=u.value,N=T.lastIndexOf(".");u.value=0<N?T.substring(0,N+1)+w.value:T+"."+w.value;"xml"===w.value?(y.setAttribute("disabled","true"),C.setAttribute("disabled","true"),D.setAttribute("disabled","true"),K.setAttribute("disabled","true")):(y.removeAttribute("disabled"),C.removeAttribute("disabled"),D.removeAttribute("disabled"),K.removeAttribute("disabled"));"png"===w.value||"svg"===w.value||"pdf"===w.value?M.removeAttribute("disabled"):M.setAttribute("disabled","disabled");"png"===w.value||"jpg"===w.value||"pdf"===w.value?Q.removeAttribute("disabled"):Q.setAttribute("disabled","disabled");"png"===w.value?(E.removeAttribute("disabled"),G.removeAttribute("disabled")):(E.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"))}function f(){C.style.backgroundColor=C.value*D.value>MAX_AREA||0>=C.value?"red":"";D.style.backgroundColor=C.value*D.value>MAX_AREA||0>=D.value?"red":""}var e=a.editor.graph,g=e.getGraphBounds(),d=e.view.scale,h=Math.ceil(g.width/-d),m=Math.ceil(g.height/d);d=document.createElement("table");var p=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");g=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");g.appendChild(k);var v=document.createElement("input");v.setAttribute("value",a.editor.getOrCreateFilename());v.style.width="180px";k=document.createElement("td");k.appendChild(v);g.appendChild(k);+d),m=Math.ceil(g.height/d);d=document.createElement("table");var p=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");g=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");g.appendChild(k);var u=document.createElement("input");u.setAttribute("value",a.editor.getOrCreateFilename());u.style.width="180px";k=document.createElement("td");k.appendChild(u);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("format")+":");g.appendChild(k);var w=document.createElement("select");w.style.width="180px";k=document.createElement("option");k.setAttribute("value","png");mxUtils.write(k,mxResources.get("formatPng"));w.appendChild(k);k=document.createElement("option");ExportDialog.showGifOption&&(k.setAttribute("value","gif"),mxUtils.write(k,mxResources.get("formatGif")),w.appendChild(k));k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(k,mxResources.get("formatJpg"));w.appendChild(k);k=document.createElement("option");k.setAttribute("value","svg");mxUtils.write(k,mxResources.get("formatSvg"));w.appendChild(k);ExportDialog.showXmlOption&&(k=document.createElement("option"),k.setAttribute("value","xml"),mxUtils.write(k,mxResources.get("formatXml")),w.appendChild(k));k=document.createElement("td");k.appendChild(w);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("zoom")+" (%):");g.appendChild(k);var y=document.createElement("input");y.setAttribute("type","number");y.setAttribute("value","100");y.style.width="180px";k=document.createElement("td");k.appendChild(y);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("width")+":");g.appendChild(k);var C=document.createElement("input");@@ -3801,36 +3802,36 @@ k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("dpi")+":");g.appendChilk.setAttribute("value","400");mxUtils.write(k,"400dpi");E.appendChild(k);k=document.createElement("option");k.setAttribute("value","custom");mxUtils.write(k,mxResources.get("custom"));E.appendChild(k);var G=document.createElement("input");G.style.width="180px";G.style.display="none";G.setAttribute("value","100");G.setAttribute("type","number");G.setAttribute("min","50");G.setAttribute("step","50");var J=!1;mxEvent.addListener(E,"change",function(){"custom"==this.value?(this.style.display="none",G.style.display="",G.focus()):(G.value=this.value,J||(y.value=this.value))});mxEvent.addListener(G,"change",function(){var T=parseInt(G.value);isNaN(T)||0>=T?G.style.backgroundColor="red":(G.style.backgroundColor="",J||(y.value=T))});k=document.createElement("td");k.appendChild(E);k.appendChild(G);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("background")+":");g.appendChild(k);var M=document.createElement("input");M.setAttribute("type","checkbox");M.checked=null==e.background||e.background==mxConstants.NONE;k=document.createElement("td");k.appendChild(M);mxUtils.write(k,mxResources.get("transparent"));g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("grid")+":");g.appendChild(k);var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.checked=!1;k=document.createElement("td");k.appendChild(Q);-g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");g.appendChild(k);var L=document.createElement("input");L.setAttribute("type","number");L.setAttribute("value",ExportDialog.lastBorderValue);L.style.width="180px";k=document.createElement("td");k.appendChild(L);g.appendChild(k);p.appendChild(g);d.appendChild(p);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(y,"change",+g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");g.appendChild(k);var K=document.createElement("input");K.setAttribute("type","number");K.setAttribute("value",ExportDialog.lastBorderValue);K.style.width="180px";k=document.createElement("td");k.appendChild(K);g.appendChild(k);p.appendChild(g);d.appendChild(p);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(y,"change",function(){J=!0;var T=Math.max(0,parseFloat(y.value)||100)/100;y.value=parseFloat((100*T).toFixed(2));0<h?(C.value=Math.floor(h*T),D.value=Math.floor(m*T)):(y.value="100",C.value=h,D.value=m);f()});mxEvent.addListener(C,"change",function(){var T=parseInt(C.value)/h;0<T?(y.value=parseFloat((100*T).toFixed(2)),D.value=Math.floor(m*T)):(y.value="100",C.value=h,D.value=m);f()});mxEvent.addListener(D,"change",function(){var T=parseInt(D.value)/m;0<T?(y.value=parseFloat((100*T).toFixed(2)),C.value=Math.floor(h*-T)):(y.value="100",C.value=h,D.value=m);f()});g=document.createElement("tr");k=document.createElement("td");k.setAttribute("align","right");k.style.paddingTop="22px";k.colSpan=2;var W=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(y.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var T=v.value,N=w.value,ca=Math.max(0,parseFloat(y.value)||100)/100,H=Math.max(0,parseInt(L.value)),S=e.background,ea=Math.max(1,parseInt(G.value));if(("svg"==N||"png"==N||+T)):(y.value="100",C.value=h,D.value=m);f()});g=document.createElement("tr");k=document.createElement("td");k.setAttribute("align","right");k.style.paddingTop="22px";k.colSpan=2;var W=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(y.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var T=u.value,N=w.value,ca=Math.max(0,parseFloat(y.value)||100)/100,H=Math.max(0,parseInt(K.value)),S=e.background,ea=Math.max(1,parseInt(G.value));if(("svg"==N||"png"==N||"pdf"==N)&&M.checked)S=null;else if(null==S||S==mxConstants.NONE)S="#ffffff";ExportDialog.lastBorderValue=H;ExportDialog.exportFile(a,T,N,S,ca,H,ea,Q.checked)}}));W.className="geBtn gePrimaryBtn";var X=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});X.className="geBtn";a.editor.cancelFirst?(k.appendChild(X),k.appendChild(W)):(k.appendChild(W),k.appendChild(X));g.appendChild(k);p.appendChild(g);d.appendChild(p);this.container=d};ExportDialog.lastBorderValue=0;ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0;-ExportDialog.exportFile=function(a,b,f,e,g,d,h,m){m=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(e,g,d)),b,f);else{var p=m.getGraphBounds(),k=mxUtils.createXmlDocument(),v=k.createElement("output");k.appendChild(v);k=new mxXmlCanvas2D(v);k.translate(Math.floor((d/g-p.x)/m.view.scale),Math.floor((d/g-p.y)/m.view.scale));k.scale(g/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),-k);v="xml="+encodeURIComponent(mxUtils.getXml(v));k=Math.ceil(p.width*g/m.view.scale+2*d);g=Math.ceil(p.height*g/m.view.scale+2*d);v.length<=MAX_REQUEST_SIZE&&k*g<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+f+"&filename="+encodeURIComponent(b)+"&bg="+(null!=e?e:"none")+"&w="+k+"&h="+g+"&"+v+"&dpi="+h)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};+ExportDialog.exportFile=function(a,b,f,e,g,d,h,m){m=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(e,g,d)),b,f);else{var p=m.getGraphBounds(),k=mxUtils.createXmlDocument(),u=k.createElement("output");k.appendChild(u);k=new mxXmlCanvas2D(u);k.translate(Math.floor((d/g-p.x)/m.view.scale),Math.floor((d/g-p.y)/m.view.scale));k.scale(g/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),+k);u="xml="+encodeURIComponent(mxUtils.getXml(u));k=Math.ceil(p.width*g/m.view.scale+2*d);g=Math.ceil(p.height*g/m.view.scale+2*d);u.length<=MAX_REQUEST_SIZE&&k*g<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+f+"&filename="+encodeURIComponent(b)+"&bg="+(null!=e?e:"none")+"&w="+k+"&h="+g+"&"+u+"&dpi="+h)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};ExportDialog.saveLocalFile=function(a,b,f,e){b.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml="+encodeURIComponent(b)+"&filename="+encodeURIComponent(f)+"&format="+e)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))};-var EditDataDialog=function(a,b){function f(){0<L.value.length?W.removeAttribute("disabled"):W.setAttribute("disabled","disabled")}var e=document.createElement("div"),g=a.editor.graph,d=g.getModel().getValue(b);if(!mxUtils.isNode(d)){var h=mxUtils.createXmlDocument().createElement("object");h.setAttribute("label",d||"");d=h}var m={};try{var p=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=p&&(m=JSON.parse(p))}catch(T){}var k=new mxForm("properties");k.table.style.width=-"100%";var v=d.attributes,w=[],y=[],C=0,D=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,E=function(T,N){var ca=document.createElement("div");ca.style.position="relative";ca.style.paddingRight="20px";ca.style.boxSizing="border-box";ca.style.width="100%";var H=document.createElement("a"),S=mxUtils.createImage(Dialog.prototype.closeImage);S.style.height="9px";S.style.fontSize="9px";S.style.marginBottom=mxClient.IS_IE11?"-1px":"5px";H.className="geButton";H.setAttribute("title",+var EditDataDialog=function(a,b){function f(){0<K.value.length?W.removeAttribute("disabled"):W.setAttribute("disabled","disabled")}var e=document.createElement("div"),g=a.editor.graph,d=g.getModel().getValue(b);if(!mxUtils.isNode(d)){var h=mxUtils.createXmlDocument().createElement("object");h.setAttribute("label",d||"");d=h}var m={};try{var p=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=p&&(m=JSON.parse(p))}catch(T){}var k=new mxForm("properties");k.table.style.width=+"100%";var u=d.attributes,w=[],y=[],C=0,D=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,E=function(T,N){var ca=document.createElement("div");ca.style.position="relative";ca.style.paddingRight="20px";ca.style.boxSizing="border-box";ca.style.width="100%";var H=document.createElement("a"),S=mxUtils.createImage(Dialog.prototype.closeImage);S.style.height="9px";S.style.fontSize="9px";S.style.marginBottom=mxClient.IS_IE11?"-1px":"5px";H.className="geButton";H.setAttribute("title",mxResources.get("delete"));H.style.position="absolute";H.style.top="4px";H.style.right="0px";H.style.margin="0px";H.style.width="9px";H.style.height="9px";H.style.cursor="pointer";H.appendChild(S);N=function(ea){return function(){for(var la=0,O=0;O<w.length;O++){if(w[O]==ea){y[O]=null;k.table.deleteRow(la+(null!=D?1:0));break}null!=y[O]&&la++}}}(N);mxEvent.addListener(H,"click",N);N=T.parentNode;ca.appendChild(T);ca.appendChild(H);N.appendChild(ca)};h=function(T,N,ca){w[T]=N;y[T]=k.addTextarea(w[C]+-":",ca,2);y[T].style.width="100%";0<ca.indexOf("\n")&&y[T].setAttribute("rows","2");E(y[T],N);null!=m[N]&&0==m[N].editable&&y[T].setAttribute("disabled","disabled")};p=[];for(var G=g.getModel().getParent(b)==g.getModel().getRoot(),J=g.getCellStyle(b),M=0;M<v.length;M++)("label"!=v[M].nodeName||"1"==J.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=v[M].nodeName&&p.push({name:v[M].nodeName,value:v[M].nodeValue});p.sort(function(T,N){return"label"==T.name?1:"label"==N.name?-1:T.name<N.name?-1:-T.name>N.name?1:0});if(null!=D){v=document.createElement("div");v.style.width="100%";v.style.fontSize="11px";v.style.textAlign="center";mxUtils.write(v,D);var Q=k.addField(mxResources.get("id")+":",v);mxEvent.addListener(v,"dblclick",function(T){T=new FilenameDialog(a,D,mxResources.get("apply"),mxUtils.bind(this,function(N){if(null!=N&&0<N.length&&N!=D)if(g.model.isRoot(b)){var ca=a.getPageById(D);if(null!=ca)if(null==a.getPageById(N)){var H=a.getPageIndex(ca);0<=H&&(a.removePage(ca),ca.node.setAttribute("id",+":",ca,2);y[T].style.width="100%";0<ca.indexOf("\n")&&y[T].setAttribute("rows","2");E(y[T],N);null!=m[N]&&0==m[N].editable&&y[T].setAttribute("disabled","disabled")};p=[];for(var G=g.getModel().getParent(b)==g.getModel().getRoot(),J=g.getCellStyle(b),M=0;M<u.length;M++)("label"!=u[M].nodeName||"1"==J.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[M].nodeName&&p.push({name:u[M].nodeName,value:u[M].nodeValue});p.sort(function(T,N){return"label"==T.name?1:"label"==N.name?-1:T.name<N.name?-1:+T.name>N.name?1:0});if(null!=D){u=document.createElement("div");u.style.width="100%";u.style.fontSize="11px";u.style.textAlign="center";mxUtils.write(u,D);var Q=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(T){T=new FilenameDialog(a,D,mxResources.get("apply"),mxUtils.bind(this,function(N){if(null!=N&&0<N.length&&N!=D)if(g.model.isRoot(b)){var ca=a.getPageById(D);if(null!=ca)if(null==a.getPageById(N)){var H=a.getPageIndex(ca);0<=H&&(a.removePage(ca),ca.node.setAttribute("id",N),D=N,Q.innerHTML=mxUtils.htmlEntities(N),a.insertPage(ca,H))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==g.getModel().getCell(N)?(g.getModel().cellRemoved(b),b.setId(N),D=N,Q.innerHTML=mxUtils.htmlEntities(N),g.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[N])})}),mxResources.get("id"));a.showDialog(T.container,300,80,!0,!0);T.init()})}for(M=0;M<p.length;M++)h(C,p[M].name,p[M].value),C++;p=document.createElement("div");-p.style.position="absolute";p.style.top="30px";p.style.left="30px";p.style.right="30px";p.style.bottom="80px";p.style.overflowY="auto";p.appendChild(k.table);h=document.createElement("div");h.style.display="flex";h.style.alignItems="center";h.style.boxSizing="border-box";h.style.paddingRight="160px";h.style.whiteSpace="nowrap";h.style.marginTop="6px";h.style.width="100%";var L=document.createElement("input");L.setAttribute("placeholder",mxResources.get("enterPropertyName"));L.setAttribute("type",-"text");L.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");L.style.boxSizing="border-box";L.style.borderWidth="1px";L.style.borderStyle="solid";L.style.marginLeft="2px";L.style.padding="4px";L.style.width="100%";h.appendChild(L);p.appendChild(h);e.appendChild(p);var W=mxUtils.button(mxResources.get("addProperty"),function(){var T=L.value;if(0<T.length&&"label"!=T&&"id"!=T&&"placeholders"!=T&&0>T.indexOf(":"))try{var N=mxUtils.indexOf(w,T);if(0<=N&&null!=y[N])y[N].focus();else{d.cloneNode(!1).setAttribute(T,-"");0<=N&&(w.splice(N,1),y.splice(N,1));w.push(T);var ca=k.addTextarea(T+":","",2);ca.style.width="100%";y.push(ca);E(ca,T);ca.focus()}W.setAttribute("disabled","disabled");L.value=""}catch(H){mxUtils.alert(H)}else mxUtils.alert(mxResources.get("invalidName"))});mxEvent.addListener(L,"keypress",function(T){13==T.keyCode&&W.click()});this.init=function(){0<y.length?y[0].focus():L.focus()};W.setAttribute("title",mxResources.get("addProperty"));W.setAttribute("disabled","disabled");W.style.textOverflow=+p.style.position="absolute";p.style.top="30px";p.style.left="30px";p.style.right="30px";p.style.bottom="80px";p.style.overflowY="auto";p.appendChild(k.table);h=document.createElement("div");h.style.display="flex";h.style.alignItems="center";h.style.boxSizing="border-box";h.style.paddingRight="160px";h.style.whiteSpace="nowrap";h.style.marginTop="6px";h.style.width="100%";var K=document.createElement("input");K.setAttribute("placeholder",mxResources.get("enterPropertyName"));K.setAttribute("type",+"text");K.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");K.style.boxSizing="border-box";K.style.borderWidth="1px";K.style.borderStyle="solid";K.style.marginLeft="2px";K.style.padding="4px";K.style.width="100%";h.appendChild(K);p.appendChild(h);e.appendChild(p);var W=mxUtils.button(mxResources.get("addProperty"),function(){var T=K.value;if(0<T.length&&"label"!=T&&"id"!=T&&"placeholders"!=T&&0>T.indexOf(":"))try{var N=mxUtils.indexOf(w,T);if(0<=N&&null!=y[N])y[N].focus();else{d.cloneNode(!1).setAttribute(T,+"");0<=N&&(w.splice(N,1),y.splice(N,1));w.push(T);var ca=k.addTextarea(T+":","",2);ca.style.width="100%";y.push(ca);E(ca,T);ca.focus()}W.setAttribute("disabled","disabled");K.value=""}catch(H){mxUtils.alert(H)}else mxUtils.alert(mxResources.get("invalidName"))});mxEvent.addListener(K,"keypress",function(T){13==T.keyCode&&W.click()});this.init=function(){0<y.length?y[0].focus():K.focus()};W.setAttribute("title",mxResources.get("addProperty"));W.setAttribute("disabled","disabled");W.style.textOverflow="ellipsis";W.style.position="absolute";W.style.overflow="hidden";W.style.width="144px";W.style.right="0px";W.className="geBtn";h.appendChild(W);p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog.apply(a,arguments)});p.setAttribute("title","Escape");p.className="geBtn";h=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(T){var N=g.getDataForCells([b],!0);T=new EmbedDialog(a,JSON.stringify(N,null,2),null,null,function(){console.log(N);a.alert("Written to Console (Dev Tools)")},mxResources.get("export"),null,"Console","data.json");a.showDialog(T.container,450,240,!0,!0);T.init()}));h.setAttribute("title",mxResources.get("export"));h.className="geBtn";var X=mxUtils.button(mxResources.get("apply"),function(){try{a.hideDialog.apply(a,arguments);d=d.cloneNode(!0);for(var T=!1,N=0;N<w.length;N++)null==y[N]?d.removeAttribute(w[N]):(d.setAttribute(w[N],y[N].value),T=T||"placeholder"==w[N]&&"1"==d.getAttribute("placeholders"));T&&d.removeAttribute("label");g.getModel().setValue(b,-d)}catch(ca){mxUtils.alert(ca)}});X.setAttribute("title","Ctrl+Enter");X.className="geBtn gePrimaryBtn";mxEvent.addListener(e,"keydown",function(T){13==T.keyCode&&mxEvent.isControlDown(T)&&X.click()});mxEvent.addListener(L,"keyup",f);mxEvent.addListener(L,"change",f);v=document.createElement("div");v.style.display="flex";v.style.justifyContent="flex-end";v.style.alignItems="center";v.style.position="absolute";v.style.left="30px";v.style.right="30px";v.style.bottom="30px";v.style.height="40px";if(a.editor.graph.getModel().isVertex(b)||+d)}catch(ca){mxUtils.alert(ca)}});X.setAttribute("title","Ctrl+Enter");X.className="geBtn gePrimaryBtn";mxEvent.addListener(e,"keydown",function(T){13==T.keyCode&&mxEvent.isControlDown(T)&&X.click()});mxEvent.addListener(K,"keyup",f);mxEvent.addListener(K,"change",f);u=document.createElement("div");u.style.display="flex";u.style.justifyContent="flex-end";u.style.alignItems="center";u.style.position="absolute";u.style.left="30px";u.style.right="30px";u.style.bottom="30px";u.style.height="40px";if(a.editor.graph.getModel().isVertex(b)||a.editor.graph.getModel().isEdge(b))G=document.createElement("span"),G.style.marginRight="10px",G.style.justifyContent="flex-end",G.style.alignItems="center",G.style.display="flex",G.style.whiteSpace="nowrap",J=document.createElement("input"),J.setAttribute("type","checkbox"),J.style.marginRight="6px","1"==d.getAttribute("placeholders")&&(J.setAttribute("checked","checked"),J.defaultChecked=!0),mxEvent.addListener(J,"click",function(){"1"==d.getAttribute("placeholders")?d.removeAttribute("placeholders"):-d.setAttribute("placeholders","1")}),G.appendChild(J),mxUtils.write(G,mxResources.get("placeholders")),null!=EditDataDialog.placeholderHelpLink&&G.appendChild(a.createHelpIcon(EditDataDialog.placeholderHelpLink)),v.appendChild(G);a.editor.cancelFirst&&v.appendChild(p);v.appendChild(h);v.appendChild(X);a.editor.cancelFirst||v.appendChild(p);e.appendChild(v);this.container=e};EditDataDialog.getDisplayIdForCell=function(a,b){var f=null;null!=a.editor.graph.getModel().getParent(b)&&(f=b.getId());return f};+d.setAttribute("placeholders","1")}),G.appendChild(J),mxUtils.write(G,mxResources.get("placeholders")),null!=EditDataDialog.placeholderHelpLink&&G.appendChild(a.createHelpIcon(EditDataDialog.placeholderHelpLink)),u.appendChild(G);a.editor.cancelFirst&&u.appendChild(p);u.appendChild(h);u.appendChild(X);a.editor.cancelFirst||u.appendChild(p);e.appendChild(u);this.container=e};EditDataDialog.getDisplayIdForCell=function(a,b){var f=null;null!=a.editor.graph.getModel().getParent(b)&&(f=b.getId());return f};EditDataDialog.placeholderHelpLink=null;var LinkDialog=function(a,b,f,e){var g=document.createElement("div");mxUtils.write(g,mxResources.get("editLink")+":");var d=document.createElement("div");d.className="geTitle";d.style.backgroundColor="transparent";d.style.borderColor="transparent";d.style.whiteSpace="nowrap";d.style.textOverflow="clip";d.style.cursor="default";d.style.paddingRight="20px";var h=document.createElement("input");h.setAttribute("value",b);h.setAttribute("placeholder","http://www.example.com/");h.setAttribute("type","text");h.style.marginTop="6px";h.style.width="400px";h.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";h.style.backgroundRepeat="no-repeat";h.style.backgroundPosition="100% 50%";h.style.paddingRight="14px";b=document.createElement("div");b.setAttribute("title",mxResources.get("reset"));b.style.position="relative";b.style.left="-16px";b.style.width="12px";b.style.height="14px";b.style.cursor="pointer";b.style.display="inline-block";b.style.top="3px";b.style.background="url("+IMAGE_PATH+"/transparent.gif)";mxEvent.addListener(b,"click",function(){h.value="";h.focus()});d.appendChild(h);d.appendChild(b);g.appendChild(d);this.init=function(){h.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?h.select():document.execCommand("selectAll",!1,null)};d=document.createElement("div");d.style.marginTop="18px";d.style.textAlign="right";mxEvent.addListener(h,"keypress",function(m){13==m.keyCode&&(a.hideDialog(),e(h.value))});b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});b.className="geBtn";a.editor.cancelFirst&&d.appendChild(b);f=mxUtils.button(f,function(){a.hideDialog();e(h.value)});f.className="geBtn gePrimaryBtn";d.appendChild(f);a.editor.cancelFirst||d.appendChild(b);g.appendChild(d);this.container=g},OutlineWindow=function(a,b,f,e,g){var d=a.editor.graph,h=document.createElement("div");h.style.position="absolute";h.style.width="100%";h.style.height="100%";h.style.overflow="hidden";this.window=new mxWindow(mxResources.get("outline"),h,b,f,e,g,!0,!0);this.window.minimumSize=new mxRectangle(0,0,80,80);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);var m=a.createOutline(this.window);a.installResizeHandler(this,!0,function(){m.destroy()});this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit();m.setSuspended(!1)}));this.window.addListener(mxEvent.HIDE,mxUtils.bind(this,function(){m.setSuspended(!0)}));this.window.addListener(mxEvent.NORMALIZE,mxUtils.bind(this,-function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(h);mxEvent.addMouseWheelListener(function(p,k){for(var v=!1,w=mxEvent.getSource(p);null!=w;){if(w==m.svg){v=!0;break}w=w.parentNode}v&&(v=d.zoomFactor,null!=p.deltaY&&Math.round(p.deltaY)!=p.deltaY&&(v=1+Math.abs(p.deltaY)/20*(v-1)),d.lazyZoom(k,null,null,v),mxEvent.consume(p))})},LayersWindow=function(a,b,f,e,g){function d(){var N=L.get(p.getLayerForCells(p.getSelectionCells()));-null!=N?N.appendChild(T):null!=T.parentNode&&T.parentNode.removeChild(T)}function h(){function N(S,ea,la,O){var V=document.createElement("div");V.className="geToolbarContainer";L.put(la,V);V.style.overflow="hidden";V.style.position="relative";V.style.padding="4px";V.style.height="30px";V.style.display="flex";V.style.alignItems="center";V.style.borderWidth="0px 0px 1px 0px";V.style.borderStyle="solid";V.style.whiteSpace="nowrap";V.setAttribute("title",ea+" ("+la.getId()+")");var Y=document.createElement("div");+function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(h);mxEvent.addMouseWheelListener(function(p,k){for(var u=!1,w=mxEvent.getSource(p);null!=w;){if(w==m.svg){u=!0;break}w=w.parentNode}u&&(u=d.zoomFactor,null!=p.deltaY&&Math.round(p.deltaY)!=p.deltaY&&(u=1+Math.abs(p.deltaY)/20*(u-1)),d.lazyZoom(k,null,null,u),mxEvent.consume(p))})},LayersWindow=function(a,b,f,e,g){function d(){var N=K.get(p.getLayerForCells(p.getSelectionCells()));+null!=N?N.appendChild(T):null!=T.parentNode&&T.parentNode.removeChild(T)}function h(){function N(S,ea,la,O){var V=document.createElement("div");V.className="geToolbarContainer";K.put(la,V);V.style.overflow="hidden";V.style.position="relative";V.style.padding="4px";V.style.height="30px";V.style.display="flex";V.style.alignItems="center";V.style.borderWidth="0px 0px 1px 0px";V.style.borderStyle="solid";V.style.whiteSpace="nowrap";V.setAttribute("title",ea+" ("+la.getId()+")");var Y=document.createElement("div");Y.style.display="inline-flex";Y.style.alignItems="center";Y.style.width="100%";Y.style.textOverflow="ellipsis";Y.style.overflow="hidden";var ha=document.createElement("span");mxEvent.addListener(V,"dragover",function(aa){aa.dataTransfer.dropEffect="move";y=S;aa.stopPropagation();aa.preventDefault()});mxEvent.addListener(V,"dragstart",function(aa){"true"!=ha.contentEditable&&(w=V,mxClient.IS_FF&&aa.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(V,"dragend",function(aa){null!=w&&null!=y&&1<p.model.getChildCount(p.model.root)&&p.addCell(la,p.model.root,y);y=w=null;aa.stopPropagation();aa.preventDefault()});var ia=document.createElement("img");ia.setAttribute("draggable","false");ia.setAttribute("align","top");ia.setAttribute("border","0");ia.className="geAdaptiveAsset";ia.style.width="16px";ia.style.padding="0px 6px 0 4px";ia.style.cursor="pointer";ia.setAttribute("title",mxResources.get(p.model.isVisible(la)?"hide":"show"));p.model.isVisible(la)?(ia.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(V,90)):(ia.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(V,40));p.isEnabled()||mxUtils.setOpacity(ia,50);Y.appendChild(ia);mxEvent.addListener(ia,"click",function(aa){p.isEnabled()&&p.model.setVisible(la,!p.model.isVisible(la));mxEvent.consume(aa)});ia=document.createElement("img");ia.setAttribute("draggable","false");ia.setAttribute("align","top");ia.setAttribute("border","0");ia.className="geAdaptiveAsset";ia.style.width="16px";ia.style.padding="0px 6px 0 0";ia.setAttribute("title",@@ -3839,17 +3840,17 @@ P&&p.removeSelectionCells(p.getModel().getDescendants(la));mxEvent.consume(aa)}}"block",ea.style.textAlign="right",ea.style.whiteSpace="nowrap",ea.style.position="absolute",ea.style.right="16px",ea.style.top="6px",0<S&&(Y=document.createElement("a"),Y.setAttribute("title",mxResources.get("toBack")),Y.className="geButton",Y.style.cssFloat="none",Y.innerHTML="▼",Y.style.width="14px",Y.style.height="14px",Y.style.fontSize="14px",Y.style.margin="0px",Y.style.marginTop="-1px",ea.appendChild(Y),mxEvent.addListener(Y,"click",function(aa){p.isEnabled()&&p.addCell(la,p.model.root,S-1);mxEvent.consume(aa)})),0<=S&&S<C-1&&(Y=document.createElement("a"),Y.setAttribute("title",mxResources.get("toFront")),Y.className="geButton",Y.style.cssFloat="none",Y.innerHTML="▲",Y.style.width="14px",Y.style.height="14px",Y.style.fontSize="14px",Y.style.margin="0px",Y.style.marginTop="-1px",ea.appendChild(Y),mxEvent.addListener(Y,"click",function(aa){p.isEnabled()&&p.addCell(la,p.model.root,S+1);mxEvent.consume(aa)})),V.appendChild(ea);mxClient.IS_SVG&&(!mxClient.IS_IE||10<=document.documentMode)&&(V.setAttribute("draggable","true"),V.style.cursor="move")}mxEvent.addListener(V,"dblclick",function(aa){var P=mxEvent.getSource(aa).nodeName;"INPUT"!=P&&"IMG"!=P&&"true"!=ha.contentEditable&&(m(la),mxEvent.consume(aa))});p.getDefaultParent()==la&&(V.classList.add("geActivePage"),V.style.fontWeight=p.isEnabled()?"bold":"",D=la);mxEvent.addListener(V,"click",function(aa){p.isEnabled()&&"true"!=ha.contentEditable&&(p.setDefaultParent(O),p.view.setCurrentRoot(null),mxEvent.isShiftDown(aa)&&p.setSelectionCells(la.children),-mxEvent.consume(aa))});v.appendChild(V)}p.isEnabled()?(X.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),W.classList.remove("mxDisabled"),J.classList.remove("mxDisabled")):(X.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),W.classList.add("mxDisabled"),J.classList.add("mxDisabled"));C=p.model.getChildCount(p.model.root);v.innerText="";L.clear();for(var ca=C-1;0<=ca;ca--)mxUtils.bind(this,function(S){N(ca,p.convertValueToString(S)||mxResources.get("background"),S,S)})(p.model.getChildAt(p.model.root,-ca));var H=p.convertValueToString(D)||mxResources.get("background");X.setAttribute("title",mxResources.get("removeIt",[H]));W.setAttribute("title",mxResources.get("duplicateIt",[H]));p.isSelectionEmpty()&&M.classList.add("mxDisabled");d()}function m(N){if(p.isEnabled()&&null!=N){var ca=L.get(N);if(null!=ca){var H=ca.getElementsByTagName("span");if(null!=H&&0<H.length){var S=H[0],ea=mxUtils.getTextContent(S);S.style.textOverflow="";S.style.cursor="text";S.contentEditable="true";S.focus();document.execCommand("selectAll",+mxEvent.consume(aa))});u.appendChild(V)}p.isEnabled()?(X.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),W.classList.remove("mxDisabled"),J.classList.remove("mxDisabled")):(X.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),W.classList.add("mxDisabled"),J.classList.add("mxDisabled"));C=p.model.getChildCount(p.model.root);u.innerText="";K.clear();for(var ca=C-1;0<=ca;ca--)mxUtils.bind(this,function(S){N(ca,p.convertValueToString(S)||mxResources.get("background"),S,S)})(p.model.getChildAt(p.model.root,+ca));var H=p.convertValueToString(D)||mxResources.get("background");X.setAttribute("title",mxResources.get("removeIt",[H]));W.setAttribute("title",mxResources.get("duplicateIt",[H]));p.isSelectionEmpty()&&M.classList.add("mxDisabled");d()}function m(N){if(p.isEnabled()&&null!=N){var ca=K.get(N);if(null!=ca){var H=ca.getElementsByTagName("span");if(null!=H&&0<H.length){var S=H[0],ea=mxUtils.getTextContent(S);S.style.textOverflow="";S.style.cursor="text";S.contentEditable="true";S.focus();document.execCommand("selectAll",!1,null);ca.removeAttribute("draggable");ca.style.cursor="";var la=function(O){if("true"==S.contentEditable){S.contentEditable="false";var V=mxUtils.getTextContent(S);O&&V!=ea?(V=mxUtils.getTextContent(S),0<V.length?p.cellLabelChanged(N,V):p.cellLabelChanged(N,mxResources.get("untitledLayer"))):h()}};mxEvent.addListener(S,"keydown",function(O){if(13==O.keyCode||27==O.keyCode)la(13==O.keyCode),mxEvent.consume(O)});mxEvent.addListener(S,"blur",function(O){la(!0);mxEvent.consume(O)})}}}}var p=a.editor.graph,-k=document.createElement("div");k.style.userSelect="none";k.style.height="100%";k.style.marginBottom="10px";k.style.overflow="auto";var v=document.createElement("div");v.style.position="absolute";v.style.overflow="auto";v.style.left="0px";v.style.right="0px";v.style.top="0px";v.style.bottom="32px";k.appendChild(v);var w=null,y=null;mxEvent.addListener(k,"dragover",function(N){N.dataTransfer.dropEffect="move";y=0;N.stopPropagation();N.preventDefault()});mxEvent.addListener(k,"drop",function(N){N.stopPropagation();+k=document.createElement("div");k.style.userSelect="none";k.style.height="100%";k.style.marginBottom="10px";k.style.overflow="auto";var u=document.createElement("div");u.style.position="absolute";u.style.overflow="auto";u.style.left="0px";u.style.right="0px";u.style.top="0px";u.style.bottom="32px";k.appendChild(u);var w=null,y=null;mxEvent.addListener(k,"dragover",function(N){N.dataTransfer.dropEffect="move";y=0;N.stopPropagation();N.preventDefault()});mxEvent.addListener(k,"drop",function(N){N.stopPropagation();N.preventDefault()});var C=null,D=null,E=document.createElement("div");E.className="geToolbarContainer geDialogToolbar";var G=document.createElement("a");G.className="geButton";var J=G.cloneNode(!1);J.style.backgroundImage="url("+Editor.plusImage+")";J.setAttribute("title",mxResources.get("addLayer"));mxEvent.addListener(J,"click",function(N){if(p.isEnabled()){p.model.beginUpdate();try{var ca=p.addCell(new mxCell(mxResources.get("untitledLayer")),p.model.root);p.setDefaultParent(ca)}finally{p.model.endUpdate()}m(ca)}mxEvent.consume(N)});p.isEnabled()||J.classList.add("mxDisabled");E.appendChild(J);var M=G.cloneNode();M.style.backgroundImage="url("+Editor.layersImage+")";M.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(M,"click",function(N){if(p.isEnabled()&&!p.isSelectionEmpty()){var ca=mxUtils.getOffset(M);a.showPopupMenu(mxUtils.bind(this,function(H,S){for(var ea=p.getLayerForCells(p.getSelectionCells()),la=C-1;0<=la;la--)mxUtils.bind(this,function(O){var V="1"==mxUtils.getValue(p.getCurrentCellStyle(O),"locked","0"),Y=H.addItem(p.convertValueToString(O)||mxResources.get("background"),null,mxUtils.bind(this,function(){V||p.moveCells(p.getSelectionCells(),0,0,!1,O)}),S,null,null,!V);V?H.addCheckmark(Y,Editor.lockedImage):O==ea&&H.addCheckmark(Y,Editor.checkmarkImage)})(p.model.getChildAt(p.model.root,la))}),ca.x,ca.y+M.offsetHeight,N)}});E.appendChild(M);var Q=G.cloneNode(!1);Q.style.backgroundImage="url("+Editor.editImage+")";Q.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(Q,-"click",function(N){p.isEnabled()&&a.showDataDialog(D);mxEvent.consume(N)});p.isEnabled()||Q.classList.add("mxDisabled");E.appendChild(Q);var L=new mxDictionary,W=G.cloneNode(!1);W.style.backgroundImage="url("+Editor.duplicateImage+")";W.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(W,"click",function(N){if(p.isEnabled()){N=null;p.model.beginUpdate();try{N=p.cloneCell(D),p.cellLabelChanged(N,mxResources.get("untitledLayer")),N.setVisible(!0),N=p.addCell(N,p.model.root),p.setDefaultParent(N)}finally{p.model.endUpdate()}null==+"click",function(N){p.isEnabled()&&a.showDataDialog(D);mxEvent.consume(N)});p.isEnabled()||Q.classList.add("mxDisabled");E.appendChild(Q);var K=new mxDictionary,W=G.cloneNode(!1);W.style.backgroundImage="url("+Editor.duplicateImage+")";W.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(W,"click",function(N){if(p.isEnabled()){N=null;p.model.beginUpdate();try{N=p.cloneCell(D),p.cellLabelChanged(N,mxResources.get("untitledLayer")),N.setVisible(!0),N=p.addCell(N,p.model.root),p.setDefaultParent(N)}finally{p.model.endUpdate()}null==N||p.isCellLocked(N)||p.selectAll(N)}});p.isEnabled()||W.classList.add("mxDisabled");E.appendChild(W);var X=G.cloneNode(!1);X.style.backgroundImage="url("+Editor.trashImage+")";X.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(X,"click",function(N){if(p.isEnabled()){p.model.beginUpdate();try{var ca=p.model.root.getIndex(D);p.removeCells([D],!1);0==p.model.getChildCount(p.model.root)?(p.model.add(p.model.root,new mxCell),p.setDefaultParent(null)):0<ca&&ca<=p.model.getChildCount(p.model.root)?p.setDefaultParent(p.model.getChildAt(p.model.root,ca-1)):p.setDefaultParent(null)}finally{p.model.endUpdate()}}mxEvent.consume(N)});p.isEnabled()||X.classList.add("mxDisabled");E.appendChild(X);k.appendChild(E);var T=document.createElement("span");T.setAttribute("title",mxResources.get("selectionOnly"));T.innerHTML="•";T.style.position="absolute";T.style.fontWeight="bold";T.style.fontSize="16pt";T.style.right="6px";h();p.model.addListener(mxEvent.CHANGE,h);p.addListener("defaultParentChanged",-h);a.addListener("lockedChanged",h);p.selectionModel.addListener(mxEvent.CHANGE,function(){p.isSelectionEmpty()?M.classList.add("mxDisabled"):M.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,f,e,g,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.init=function(){v.scrollTop=v.scrollHeight-v.clientHeight};+h);a.addListener("lockedChanged",h);p.selectionModel.addListener(mxEvent.CHANGE,function(){p.isSelectionEmpty()?M.classList.add("mxDisabled"):M.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,f,e,g,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.init=function(){u.scrollTop=u.scrollHeight-u.clientHeight};this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));this.refreshLayers=h;a.installResizeHandler(this,!0)};(function(){Sidebar.prototype.tagIndex="5V1dV+M6sv01rDvngax0oLvveYQEaGaAziE0PW8sxVYSDbblI9uk6V9/VVWS7ST+kB0zL3etbmIn3ltlfZRKUqkU/rpRLN6MmFJym5yM/8QL/Xnw7yLceXQ03fA3JaOTyfjCQCKZehvu66tErCMW6J9E1M4jlJcFTJWIPP1VIKK1ixj/zML4VBRiTMaf9HOKx8G7/lwy71V/ZJEv8Vv8cKea9KW646tU41nk678/4tK7SZVu5FpC9oz/TDPVnkEPJlsn4wVma1lEnVemGByy6q+M+SXkSmaQ6Vv27gJeBDzyOQDMu1ma5FVEEVBEtuokgQhdyZ62Uv/9qWWoYPRltgx4A3U970/hc6BnIuD+kdI+KbGTcelGce6ec4evOBl/k0r8llGKtWBTvulF98xVKjzEvxWXDVS/M8VHF57Hk0TDpzpxJQGScC9TIoX3euXvVV/UcWWpDFkqsCYyfaM/1ly36vGfgVhv0oiasyfh7ypgyaaBaKHl5/nThqb5VeAvZEigXx8k0AolJJUkVjo7jGBOHFOm29Se3FZin6VsyRL42V+2U90z9crTOGAeIEK8Q1UCnMlGxk4CLWb/gsflKt0y/MLnbzyQccgjaIivAjgTT/Gtr4Quf9cXXWRLjRKxyRwvkBko75hHnjisPzUkP/kyESnHtwoAtQ7kkrehL7UyzUAtLrh6E5g7Nnn9iYo2SWW8ZVr1QYsTIW8gE+ll5kHWQlXGdr/Qug1Zl/RDe2O4FL+fWPBaiJSUZGoDT6HRYT3DN9Gdgy4agY3Q59gj+iIOdAOB/MmYYlHKqYp5PMLaFHMVirSSG2XYySnnZrGHNW19JdaZoiYxGV8LbGq+9DKsT0APT3Sk1ldzXaZszQvOpfzlkndUYodytAPDOEuxuocyEqlUmM+Jbm6HevkAq0sAW8+MB9BmQJs+8HQr1Wup3G2zL6uCetJZjXKofV7J+FLnUUWtxZyLTYa20FzpV1GxEgnVdxH4JOgyS0QECr4F3z3nEUHWUQfUjUi/ZUv7tjqTGaCkl0q6Wou0Ef9tdhslUBAn9Xq4GshZkG6gTmx0m8EqvuGoYzb4iwMYdDnVMcpbS2QM3TYB3mM0Sp71/0fuSVPf7lmki1d10DN3LE6x0/CKut+GuddVgGpRyFCtc/sZYS/Cm9FySdUj3sgIPlOZeZvWNAm1o0uTXH81UO3zZEEqQDkwD5q37t+zdAOqNe/RS/aJ6Tdi5purBt73xV930PiLapT8HTTXqz2Kh7JloQ26bIlVOtAl6dIY9uBPMhbeCdgtu/ZLJeEe1XdduTSPrpc6v9+TlIf64jakMpeQ9RumQFVr3YiV3vcb+eZyy9Viw4Ogl1p+nM2xmofSyNSdYgHjnSzA6m26fu+wTKtwYM30S1LXTkxPsYp0qp+nbu8yg271r4xnWM3/hoseBI+8qttygmLlSfLhZtmsS7CZUd1Kds295iT2m4dTh7aH0qLgF2QqGo5qVVdLtHiPvIp2mdDXinvvXtBgGhLRI4/1sJs09z5TqY6sRCNVqlU+2qxPDNuRuxm20MqLmqNOO3CqHRqxEGEclC3jNtATkMOLhFZpOynrH5FAc3UlcKRsbJHvy/9wD8iylUSFJHhrrfmRYBPaZCGDZ2Mu6QXolr3prFf16OdvsxOjqyqUVPXzVEngw+g2Qrur8WehCxWnqu71sE9gv/QWnrSalK00WglxllLFX+VXVaxv1TMae7yFcRrlV2059PNiNr2+wdxh60gmKamJ7trRDvIm4xsecYXqxI7z6sQ5pICWKDHp6jFiEyjpgtLioL1lU6MmSu3VHZm0QtcI1RVNeCPPjIeKHnuZLamxJzHnNIzdyIzsV2+DJm+Y22ZVlPINS35AxuFl1Bo4nQ5IJ7PIfxyW8xzGplLgaG9BGginPqsrUhn55RCZiLoxbRn4v4dAbkYubdBLFkWoRfXYs24CvPz8lGzpNZchT1XDzN8OSEkcF8ZBhnP+1cq2jJgddJORxMmOmMX7w5A96HXzILoS882Mr/IBWqAHTcjxejheKQPvJRo3kWNuP0g0msMlzn6upFoK36/o6A6R34t5fG0RKMGiNdXSwyFVJX4R6mwE9Y+GsodSb1gcv7cCTRUWmCEx1rI2SAbsPvY2+m9QmTl7mCeBdrAdKeMnTGC24X4ylMvU3qWtzY2Yf5/QdB+kwyKPB1i9agqkwEqZJqm+HLULWY27rx0Q72mUWoass8VjGOIQHihN0cRKenQVagMsqEtZ40YXPq4geB2yGWCXNjHdvWUBLwzZJqO0hL+TVEJ2va5urbACZWbCVYXEuLKywZep5bhnERlBRuANDHRa5c1HgwZlFJY2kWnipFFzIUE+znKy+EtINIQLcbvWDo8tdUmlOANNl1A7/85EXGmvHeBG00tYB81LS0AuLBVnVATUY8Ryv9DreSbjX5/Gw7BN6qTSVmRHniapOrKd1UqFa33dmLRcn4eiO68TzJgwXYga5OrAdj+l/P+s/3w5u4BXnkOdFpGwo5wOb+7Cf+7CX/0GtfRfzjCN8YfJX05g2BeQMAv9mxwCtgIWyOwr5L/o7pR+6SJ3Fe/5QLwwr4C6BIv1fKyzpToXHJTbLiG8/GQotrMJyTgA31zp7sYz07uavDfhI0+ET93fNFPKrlqZnmkCBaS85u7Qkeu8E9ciU7jYt/Oin4Cirkdwp8G3qlPh7jTYKupVrjsR5kytjqzkeYIFXRodnI/DcJL3VsvKmexWjgEoQCsdT/N5gLf5grrxeJ6vHTm4gO6UlxdM9fCJr5VdTooZGIdRDXwVSKniAK23gL3Xr/TsPT66RK06s+5MS1xeX2UqEqZDcGRYCDPKrMfWwKV89WhCtCt0umFC9cHJWKCO87lZ93ND0Yx1Ilesax5NH5/A6H4+Kc+ulmZcK+SoYJnx5BWnwRUNUOzoqJMouyS0VN6PSOkRm10jTnAgsGXKVzQTWkNVwXMVcD3cwHzgiccCc+0iwrV+eIB8vYYrzXPHQmiE1ZMQ1dCqZe8YRowhM391K5bkoGWFgTnpJC0cvypov69W1PHZKu61VvUKlrlgOFehv8dRqYiSVFVPrFeh9R+a6FKwUKF/2DYN5EtABZqrc/t6ZBF2b+Aky+I4EDDf0hE76YPlKyXWsFCNdaYrfEHqwDPaoVMBPZl25/OkuXfYh1AuGViPJI2HzBH4syPx50fiP/fFS0ErkVp1KFpUCxjqH1AdWqWlSspDr9t9mp8sRe05lZKcAbbwhWfvXCT5uaMGgh6KpJLW1xfoBw3LaFijA7pLbA/dLBaAHq0vExEoc+vIsCVvS8dsgKfzHs2zF5UcNegfdc9XQw7LtzEBEfnVuw5qsk9o/ZpU+TG0Qy5lmqJsZZKl/bKVR1cmoRI9kMKywhvIGYGrFIq+bi/73BQ0hZ97urenL6JXo5mqakobbtIVV66p/w8gNxay1cYALkHB9QnaBuTxx//OCudewXQalev3OcXoIopkah29PmH7C415oHVru0dODdPkGKapDAJyVt7oUe06YBVuotXIfZ+gJPdtaYfWuto0odAH8LSEDeELJ+eFgmTOYjMjHzutTu3jF0WpG5cTsOdrF/oO4OA7ZEqfB4GIEzsLWN3o6/CT3nipaAhKotcVWg06C0PjypdFnnW8zKDa16wc7zM8ads4WfHympGqW4QkbMBZ9BJqM5HWi99YkIFBog0Hzio7lkrk6FpEIqHNUzdS+rD2lUqc/dJZEPYVaHSDy8bczBP5mZ0nMo6LJDO2Kt7crnZYv2dpIkqO4Lj+UwiaZGA0N9XXHbZnPaKg7UVm+cmsVbpgLwQqTBDlK2QRjYqU9WGg36q1rR4EKSmgVoQS93g0qWbzMLnj/zKeThc2Ny9xdcxvW89tJ4FBZ+TrYS822IEJJ+OfG7MBproKdaU+lm6ha0k6VD5Wkg2Rn63EH5QRvWjn4LGOw95S7TY+lo3TH5bgr0x4r7qHlmhA5xdL8inC2+X+qnIjibHk+hEt7HPJHmiPr5FDKwqa25qJBIaLoGOvda+c0H4n10rRyKPrgymjDoVVMM5x8qynOBbcSwY9gDZTfidm4q9hNigH6Zq7EjwAgaEWn4CdRLdtSHCS1yLr+oE6voukO1CwEDCn2jNsm2CDCNlvtAe2HK3BYr8H2yZ1uJHuZl7so7STbMGZwqkd6+yc2C8a0q/ngU2T1/pvyFPmk83Tn/jK+AeZjy7QxdUCkrSe3NbTqNgL40jzsEOzt6u1D9tkTG81GT/skQ2ayLenp/lHp2H3zgzG+tdOZtsNHX1oJuNi99VAhH9Z9NF0P6/LNDBfboa6fZhgGdkTPhmqg3Eaf+zelGaa70Uruxfjpw7m7dWUBlIMPOJLqqEnlbYw7m/rCMN8W4EIq3yU28lRr/00O6EP07B7pPtJPgO3BzSObqMkNTPyh4nQVpli6C+Kh7umeGXIdYrzyrTE4a54V+7GdziaNakWdy8rutDfP+5Q6uGXHqZnFasiznRQXfSQERvNwMTfZtcLB/4N88lR1Bd6tC6Wmg+3UpO1nNAGReekn+dT/fCb2QYDbrLizeyyPyxWZ8bSBMBkfKP5KJTH8MncwhpdhJEJPjKZR2kWM4anfp4/4AqMtort1M9HJXJkDjXvCa99fDR7j1goZ+Ci5eNlH6zuA1JT24fiScpErMTelfGWWtwxQgHFjjzCtuJuPPlabFdZTK9hY7OU1LD5pjsLmKV+V7LRWsksxq1hcNHhDR5nYFYqnRg0I1Y7DGhmMD12qaM7njEng52y6I//yONAG9BDsy/0hb98H4T2Hv7Q9t5BMyMPDTB4Nn9XzMNV9SGpaZMwKq/cRu6MBdc0PRqMupDoGiLfYQUGNXqIoSzglobh11Ll0aDyYCql7wahxgrlvX5sEk9cZ8huDzRQKtakbzDk+1FCGCwTPmIQ6tuLe/08bRLHSBvMs1uV8of6M2tpff8UM/Pjklg8LY7ij2R0alrmSxLrke4KNjZKlWGvuIKL9jaT+K844epjeCsbzgtnkPNwXuM/X3fC4BwyjB44eY2kUW1gqzKElvowWzyKevTim5hHprYrSXGfbPU290OwgmbZRoHEXmVmBwR7emHQ9K589FG7k96B/hk0nQWuRNKy6Ee92NUl1NrCPFkWodFqXT7dWLX8EYuTjUw/LIFnGWQh/wD6BXjF5f1UsZTtMB/UxgsRVUy8uA9OYDJGlyEbZyNpS1HacBx90z06HU8knhzZ+GJAVIo1Vl/L92CjS6WtHnxx8r5FZ4xmPbZPYWNQQGbmEnRmuZ+BSxs5k2zBqQJpskiklWy1PIuQ4XrcZbGXdyOzpNmGIhLrhZhgucX6peINVyxIRreX0Gvda5tspRgFQCo8FlPjIwyemeTOGHtHJCIiCLF1sTgfj3fTib1jX+DJSDoQaa0feE+++5K/Z4mSnEGL3N11JS8SdE9HeEraqGfFD0fVEJwXKwldJ25PbrDKdG6T+y0F1RlOcDth5Q1LnHvED0S48Kx/2FCEsd33NxRhFplVkqLAB2obiywGV+ucayDaPEbVTg7QOnlfSrsfbDAhf+w3rmPInvWoA13OtB5XbLiyp9hIlxATesgqVVuZanqbKm6MJh1Y9lBCLL9k9Gl8cwW+HVN5dYJRLrKWiYZmurNPX2FH4z9mJNcfpaWJPKJ1YKpu6aZ3cv+m5HAb00cnVoSnzXdi39v8OjrjroXiW7JZiggXhh5ecLu4/2OIdA7Ih+C08S2Hz/Mi1Fqe56VEdMY8L6Zn4/H4j64J+gKCZEl0trLXXWAjGMsGJWQg26I8EcMmW9IrrmlhBZrg+JIlHLZJUsDSTda8UlJHNIXvj2Y5Dm0N7+NY9pee1o2LUIfB7vYSCPXf0b/4OxT2bsD8RsTjfKH/6Z9VXOcwfICpjK3rhMzX9DytZOyWPLfXrWCUPg9NPwImrq4cFDp2bgze3FOyVbYDpm9SprndbD67s+TRiPMDD27nJfk83rKrqZ7X5xQq0q9YDHNhWMhV5/fLowhZv+42gEJbG6qJssvEbZBSVOXSZTsKYuja+uiYEEIglnuoh940Z5eYnsnancUvHRghyGUuRsN2kzpsWYZVmcuVBAd9W77MgSF8cWI9JZs5sAeipm0DrrRhtrqDCGj+YStWogZxgwj9oEfBAkdsCZHMvHQ0uwCj1xdrQQeRMG1SSzqzI4JDRSpiZTWQ8TCDQIm6wsMEi66wv1qClVex6HKgZJe6zcRte5SqGO6zX6dWll1JmiVrIz2g68ZgQnab6IEXIcRmwh3ZYRxAHN5hGCfHMT5dGKlkiVuP1WAvj64TsOvFLGDWJOJAP/lY+rOPooctUXaFcG5CMCa1a0AHPB6LmSeMTZjfdEePpjmWiipzbiI1JJMhSCDb6SkZvNPUfwVnB0LYx541RzxuJ/k8hFT3ptWjI2OJC8b3RVLQnYF/CSf9GYYUlJRr45LCdn5cmnOM+J+nGctEOKfpC22h0DCFPGOcUCZPT0PubViEX01O6XyqRR4tbFvn7ONCdyczP8nnzoqrvnzzLNmUx3kP0PNFsKof4FFvGGqlYWNjR/bvu+xaITXs0W3mplMCaGSq9dDgslfw95VecO/809fRxfT0YkqMuRWRmxYdiWa1RIXZ4s43G5IMY9p07mxL6Mn4UtAY33ZVfdkuC2NpZQ2orngTjbcXfnaxl7EVNqU7WUX1OZLvoBYVfDWmbgulWK24yneHH1cVriJPvce4Kh95HZSwgX8Tx5T8neyLftHFIDycVUHfSFbhqFqHRluMTCF73Rk7urVIY0gLE+jEreOr5DkbiOfzMTy0c16rX25fTSgzM38k16QXl41tRaVVG+mqHQ9Kj2tRjO4N49KlY/vbrXN4V1f3WuAjOGZmozND0lk84L9yZ3zmzFEzTpQwu8YD2B2viUbXWWKDSOkmchQHFhbnzo2qkgRHQ8tEBty9dVYSnR8lzW0QZLBgZ46HuswCmA8R9ltgtcHh8HNJD3RKA4PMUdZbLlFOtrvUhnEyICPSHGYAsR3mR598eOA4RDUx91qTOIbeVNIBkpDJiqcJlB1dnsAJOg2hOSqwoxkt5cC8PixAfV9cX8Gqx8PJzjAM7N5oP9h+T2rYzFYabfWizslupwMJu8s4qIywhoDnZ+gK/DqkqPM94mMlfji1sFJxfTppGJD3YpwMzng2OOP54IyfB2f8cgzjvK6saydCejFOBmc8G5zxfHDGz4MzfunPCEXQt3+YDK4TahiP0Ak1jEfohBrGI3RCDeMROqGG8QidMBlcJ9QwHqETahiP0Ak1jEfohBrGI3RCDWMfnSDjVL6Y+cxIeMnoK67frkNzxEEetjrhb7XHe/VlzX35Z/NSCj73REj+FIdndDml9mfNO0Si1lGgL+nuK5gEjn+Du6vZ3iiMhyK1J7EeLjJ0IJ0MTApUp8xL0fUFY+1PIThD4lH4kcAc0ZZ7fsEUO87W7k3yOaX2XX9x6sksJg8y+L2461euSImrmyKhGTR4ZOeLfsTzjUylzdYYbqqzuZbvRY8OMSAUjkF3l2M7rL3GgfcSMN/nCg7P1gX0PUvjzEbVbDt124lo0ptoAFl6SwF7LF4S3QbMsrY0LjilL47hGt08fS+aQ3tDMPNvaYbHaMjVCm4278rUQudkb2+mtp+2Z3RgWoYf/YJS812Jv/v7mYQmH57QA7rd3d5cFu+VZMFuaksRSzpcr7Lp9ktr8l9M6+y/mNb5x6Y1f5j/18prJ60PLq+dtD64vHbS+uDyAhVlI6M799fdE5h8YAK31gsPt6BVaZt6RsUp69DTk3fr9ROx1h3yS5LHHaarfvARrtguLAODtUQzBeyZU8d6kM5KpOZkDlwuH5J18iGsZwOxPmOw7TcZpG2xuxs4cH33aI5Jd5J0A/u0wKZ8oZC56GjUdHaNAwVZp8aD2xqnlQ7dlXy5uknqlI8rfmfa4p+V00n/cZ2kaqGdDEA7r5a267C7hbLPjMiWvXFYo0Y/ZnPdiBUy+ToCJYpL0l6tk/j+06MLbE6e4m3OCmUMBlbBmIwYySAVIUXwCUXkNy1blzguKWaN4jE6VDljtma3rNJVX2ak5eHgFEcCGB0nG3TrWcrDQ+wrQdSQmIkm0+0tpXzFpGTTidwVMBCtiEwAsXob3RfLWCX4ypxyl0oZVL1mDXTKAh75Jk66e3WYbjBMgC8SL0vqzqOpBO7WH5vDDkAZ6haFYTV80TxG3EGhkULjQpwqMUeO68F4KirOKKgkwXBn/2FvzDVZc9pEc2C+SiA3Pgq6yskW3VGGFYeCeDJ2blwWhh1SQRGzpMmTZIdgizN+NtQNGoLctdpe2WPnJ+N/XIVx+o67L/O4wYoztyZe5jFhh4EpiyoZ6kje0SLH+OEmmkWxpN90tkyJ4zpgyWbHhcM19WsZkH6Ras0i8du55AloXNdaztzYgSmjVSMTb53tH+BUg7xhGZYONOBme6EMCujYxrX+rN3BeYD6xunkoQ3XlnTdTqBDlETN0hSK5ABzV3IzOXRyoYOyyjWjlS7C4Gzl2KFuctjgTfkpR62bf3bRrzgai5lv1GzlwbDVWPlKbkk35kykmnDxNfh7Eyk+b73cNsoi+HsbRY71qHcpDnlyBic7MhgeB3Q5TsmbJMsckqeTLbVSk+tI5EHclWjjK84IzRcv3ASRtGEiPyEv+h/61AUTSdPlpplatvIkMKP6LPiW06Ed6OhY1wfKmLYftpG+gY7Fc4RyhcXwxBznF3yQ2LXoERXmbJgl6LsIFIGoOEPugOC7tnWi/CywOxNXSxuzuPakZB7BoTLnqxhxGxNtsOAVRmUdSnF0fvb2MtDBzKimE2/MA2mNB7qTEI8873ZXiid0El/MsdYrniqHt38sni8oclZHCnqsvxCLcqZV5+t+fnro/r7m5ryWStYNhRnMYvM+Tnm60EOFmFThlPqfZeZcvRe6EzZntaWkS0wsOJ8spTa4HjHk+6Ibt48fQlPMCVXtlFkLkvG2iMbZYpnXMBwMWHzFas7yPYRn2FSxmTraXlU05nQ71NwNh5Uc4uTB2MANp7Sh5+EmdN03vFN026Vw7ud/xJ2r5Q8KdgOHyTIb+oN5bt1bHpGwXf/vNj8HUrMgLTPqDioiQ1eBf7KAoiFR2zLDcwecuIa+t7TluwWGYR+m9rzA4ghBJ5iZsdwJqknTOi4mHXJ0HtARirSFPaHPBXL1KyZjxYJaSwJh5izfLind6Vpr9KPN18QcHuVG8GizwuetHvkllLGJuoi6sGeG/eObVOI3NJkAhoY154U58DxDm/F6suBsH7TdDa8wy2tA3fQ6YlC9NOXTGgF0TuGI+bD1SyTEX3M0aAXOM1NHtJU7n0ZywCkYmwWjBz30PNV21NvJzuSeO0EfLBzLSaFI8HQybXkJbo+4tZ/tLMW0krl0QcGMLniY2CkXc+kC1c9lJPUyS1OcetH6+4SiDIMPmf4dGpT+0lgaIX3TQmvUXIL7tS5MjYlzg7gjwTfSQF3xN9z0aDhTy1PUXKarOmnpnCoJzWDUmgLFgLBZGF0hcDmELWGhtiVWVYyHIcbCnNNabPDKOwolTaRtHq1FxLnabcBlpslwVCMGezrNyo69hvxMhe7NKq2yCuzowiK1zpsqmSSnl5yFGAIM7kBRVJ1H68B2DYvgp5cBwwNf58z3A5yua4hje1NQxjHTqlC3Bed2VIAx6JNYZTRNUNy1A2UYw6GIJmxFftcFSGvDF8JELCgYOq0S75NO7UvgzpwS72R8qv8/ZWop8DTbmR5fknemaluT2kvj5fRFJLLje6ss2UCcubWuqSZOMX53Uj4XDH+0nxTziHBunKMpfIOWCGTtjU0KwgfbJPYIawXWuUKzqHiBn+9NQxjAUFssWiW8m2z0WSihRldm5Q/ElaZpXEz/6FMhmihnSOm+CF/mw3DTbBjZdrj6CLXi3E5041VrkdJWbsdN3SXA6E78nQk8jJVwWuBLIXHTLNl9S9Ec04PI8pHWKvfRbYEEcvuS8CixfoyRS1PbcJa+8F+wBL2m181vTnDqPM0v3FlG1+IX+QKnipndmk/ZksMe4W/ANBlflVJJs2W7StlP4oAHehqJJ3NiUn8MSXwN4xO/eAtQGNcsGjSN/bzqTf4DMn7D4rLAvbO91851AIa6CmB9wgvHx0e30ekd9TiPUo9cwMH+3uBFFLT571cSLcAO8roTkUFVIjoWj5N7XieKjDzA4dPtYd3b+jiPZCB+xaTSDirhaBFZnWFuWhNLdP3Sb/diemM6EMb2ms3QNzgeGsc+dOUKGM1ktsSZMgjAqTjuIn5idqksZYIGnp6A8MItr205EY/N+dkKcxzX0bLo3kLK9I8hiEr5BNFrh+KEfgwopR5JhgOTPkq5+gBK/QFjy4GFftODSX9ILqqJg5X/TGjj1R8yV3cYSdoPqRDXLMCAGUNSBtJGzhgsO/Y4jyg+xbxXE4/UhoiespQF77gOa0e7eWi0s/FkrD9WNG0CW882fBvwlNxvvFfyzRgorU/HptUVBG6zdODOGk83i2jQkJ/09x4uccbM/F6NH7EINuHhNEZktuOlMlO0SkxXYfnHZpoRBlaYybU5t2wpfL9lQyThV1L6NUm34kZThkF9C91FPjq0dLTEeyeea4Zle02yhLzFiaaEfORJyjLFIrtJa9XA0Uow6UZAnjseLcPmbjwh94VHlsZGJvFhyLlaFp2fuFnzDo/N8PQNxE4Sv5tiJNcw3WJ05d/Mzi2K0n03poX0KACac1zyGqKn2QyqF6wS7MV+zr3Ffc5W5pn9sNl7vLq9ZZrziinM8xgi12CwVt16W+ucAf8z04VDZ2xY+BrLXtdGBSPi9wrCaqp7RnE87+gFdANgfrM75R4c7dvjxeDKy9T7IFTkqpPoAXYQiJZlrB3kA4/TjEKfHyvEPMjQ8/9oogUz+xaPZ4rkdhWwV3hy27QQUIXFY31wI1PasqxWgZv0xJ31xJ13xv3QajQbpCI/82OJnMLpHwJG11x3p1i4shPunlAdMbY+mDQ74SadcT/xlUw/yfthJ12wCVtxPGJgw35XmVR1CLBmupkxBU53VCE5e4Jdu6a1N/jU1l1rz5B4AuZARroHljjTAMIHFadYVUBjqegcRrgofTqgIKykRANWm7VhSMLHsnbdtYLhX+yd4fYTuTUr3ZK8TFkk6wIn7BA84rk3y4CZBY38HByV/9CefZZqa1Lfl8YJ/XyCfkewgYfsgze+EV67KWnwCyZouIcpJvqubXp6Dx4JM7UHUTRkQsZPvlpZHKKVgpsUaIrDDQU11B6PcKoPHFdt7I03bXa7mAqW41X3yDo3lSmmJL/vwBFhASlaZ0jsXfm6MfThLpmtsXarWZdaWwJP3MEp9za1p9FUGY8NLHuHwdEZkWHpAMndYxfT4lC6Wk739fkD6OMCDguCJSBoA4IClZL1lcDRBKiPmgie8rc3xdFw+kwjeHIM+OwY8Pkx4M9dwLDLEephqUG/cXOaBJxi241gdIG+4kXW43VXMcosk0FYzgZhOR+E5fMgLF8GYfnan+USwwljIWfLACtK/kQvqslwVGfDUZ0PQTVlefBuPZhz8PpuYJkMwnI2CMv5kSxwXGOqMvSUXAmcQrK3XWhuFO41mYyfKrRZTYG1ki5oNfaSB2hC6bslXXbkMUtOTIXkCwSfOD/vaNHt0ykmoqEaniUbpOlZskEanyYLB3zLcLiXhOpJgh1RuSzNZBias2Fozoeh+TwMzZdhaL52pzEGUM0iQB1kRM61k/HD1QkeK5NuTjntucUb3rj/tprpZ8605QWTue7CtACZEpkVMuFND5kWP3MmIwfedJDpkq3XNBgIMnvlDFVLdMVZ0HaSDRPKa4knt0sAoRsm4wvsLhYye9Oj0RIfhHRISpdp4+kRO8y0lcR7L3nwnGCMOLdFAsNyFfA3490RiFWHF8OdweQFbLdrOSJxvmjOlJkv6jLjZBjmZqunZ7Og8kSzaixkPM4YUa53yfEfsR6TCvKKsRd7//4P";Sidebar.prototype.searchIndexData="7Z1rU+M40Kh/zVbN+wEq98vHkHDbJUxeHGDrfFEpjkh0cKwc2R6G/fVHchKGKMwuRo7Usr21xQyBzUaPW62+qfuP9tkf3bM/Go0ofg2I+POP5kB+t8Rr8kdztPq54Hi9PMWcs5fodCD/QCP2Ev7RPFvGq0D8Sl389QfhMfVxcINnJJiwiMaUiV8ZzVgcs9W7XxgEdCF/ELO1eDWKOXsmj3QeL8VrjbdXhixgXLzyR6NZS/8RP5EfrTEUX182H7Jb23y73Hzb726+pfO3NWw+89t/F9DZBz/qjuRPsxK4IU+xdQK7JS/3gZghcEcXy5IjuF9bX7+lTXBGwjjdAyglYR2DIgZGMaQboeIgdgNMCL2mGQhDHAQsicXhmMwCAoRF245+2LH43wTPgZCwtDV2JMDsjo4iET1DHJbkB2chEAj9zh6EjiGzYUi5nwSYQ6GwvyU6fTMU/kxW6xO6FQVUt49hXxj6VjA0yoohtSJxOIejIVUQHYMgvCXma3Q+X5A5uiJQD09T+vKWxf5SkPDEOnDwtlns49iXkKYhHJU1tfG1dmIBBMW+MJgKQbzXFEBA2FES4JRD14py8AISzgkHHJUxJhBbEtMXhh7xawVDwhAfmqAppgEcdWHHB/NiTtdwINiJX3vil2gkKIA+Sk2JxJRTqIZVx1B4Zk9XoivG6T8sjHFgn4clkdjj8bBdlnUaavDOkGt6j6YJB2pfmQpgbhnI1DdMEJ2GURCA7Mzdyg07o1sQkPJ/dknAieAZ3hk+jXx2OktoMKfhIjo94zj0l+j70xP1yT6NNaNhTPj5DxLG0fa1OY6EDSa+kWt5okHwfo3NTk8s54PVP6X/fEjqi8jx9jufyI8oXmBJHNBQ/E/DkPjx9gOqsNv1fRO2fQA7xfMh6/QnZztuWszPw3lZgLf2gLcPjQAjwC9JSDj10e7dio69v2971Zu2uDOxqnAlSy7Kgr5eU9zkQ5vPCPrx6L7oqDv7/lbv0N8yQtpb4SAQ8h2JDxxFRYe+82F2Gr1lB/qUBMRnq1UiPjq6YklU+KO0Xts/S3uWFMsheTQZVvDNwL8PqViWWOtr4Yk3m/uK5rA08ojEhYCvpYBHabnHWhiP6yXhOIhOr8/GaIxp+MTxqvA6RynJ/CDk/x/PYLjj+EejJkiKr5NfLPN/LjSkaOC1Uke70A+mtb85PogagHowU/aSrq3Yz2Q/oNU9DGiBeSY3eL1ZaaEfiOIFd+pwH8gY+4I+i5aFfyb9/WeS2X0w+Eyoz9l6ycLCH/O9/0zVgXkoxXc1uj1nbK7JEA3m4igRjuAQ83nRn0xH8QFBbxN0x+SP/BI8F5d2DKfblRX6ifT382xNwKe852OxksI/EeWIz575NPhE1gQ/F/+JtPdd+D7kPZKE6JHx5yjGGyLFfjK99r6PAtiR9xLx3e7HhX8uyo45vPUH5rlM8SwgcdEfiHLMtwEbXlPCVzRUy2KL90g6yiMBfKrcF9+XVzYIZI/xgc4JE278Snxb9MfS2S/R+aAsG8xjeSQzdCaLPIt/vCsFwZBDw2UyhuFlGkNBJAh2z2XF5klAotN67fIcXQzZedGfiBqG/IL2eiP49kzGG4o5Po9mvdtC30YkehaL/R80DJIoDRS//XrRn1N3/5RpfmHnGHlOf8vndBEwxqun9FZTCu0pyf+LLKP2XmjsL9Hmf1D0Z9PraFsEJp7NBeXkRdYAe4T/oD7ZPh2xqV688f8U/SEpcczeFyLLJh7S/rMp/EOpO6HVvFdx2qxKdNqo4RmgttsD5XGCg91p8+t/ir49eEN5mbHwaq2ldFbLXH6c75OaizPGjxn/ZQmchwuxCPRtiP0lQaPtzwv/XNSivsw2wY6U3lPYvcvJMMBRhC7ojBM0XMpccvD2MIr+LNRTJnNCJq9nITjQWRKTeWnQK5FlW9vghon1zEvCXKkzameuJ86HuQw+LjhL1qURdjUGmTkhrwN+mcw2xtECx8LNe5WRxtoZjsgUXSWzoqNXjttWZu9OMPpl/1xuEebyGIby9TI8A+Wec3an4XjPYNdYYfumJXsS3cyn7vGeRLUPbNIfD7yy7IG2YgVlNvqP9xQ2nRhKsBMAn8rbG+o4KM1+0G1xdLxn8TC5LctTUPzhlrWzYSW+ntbbjeLfQe/rHsdj8eWrhDvdWk3m2ygpfMcdpd4je6hHh3O3XathHqFv3Xa9WfjgsnqTzKhID3yfRBGaSKqFB71/xSL7BTEt0MPC14hpZ0n0+HpF56vIb/bmRFp8R+PC89UNtWvx9Qao3S6+AddWenFkDqtrQY6ojyacyTOv+BkMJWjywZzXo8rzHarXSmMv9xTWmR1yLdbTQdH51mu61/70AI9Rs1d85azcUcp+YV8L8kPhLTi7FvLfk6LzVV1po3zPzrzCm8iqGt61HzREmBP8LIeFn7GfRSetNNs0q4rPOJ0vCl+v3tVNomghnnrCPi5BxF5t52tUkIcyNzvGIV6Ursy/aTSOPMTF57sfuWgajVwIvsKN5mmDPRou0OYSS9GRW02NDEeja3QhvhSdsl3felj8wHJ/35bLXr2kxVf+NQ3FFR2zcim0ZdSe22AeFj4Qp10Wrw/5PqTxKzr/ueYlGH2ktgqwwDttPFN0ztr9F7U4y1nSfowG/v9LKC++q6IOrTYap9vBHu4+cqFRd3Qv5euilteGpxyH0RPjq7R71a9bxNPzwld3KaPrDIu6dzIe3BU+raIWxpj1X7zxSeEJq+2/zAbxvHs08go/WbRe2+9FmP2ChRbk+7PCFyiqAxXNVtCNSFyKi9OKx5K9G7AWZBafzFnhS5mb+4yNxkVHk2nR8SpGW/aLPVp8vZtB4UOiSqcjs7W2I9lmaszmxc9wt22q4sfRGF3QoAROttKTKPswKB3OMkWF7mi4KDrlerNjUS1fcJY2QJuXp4BcGS5rVkmnXT6Enh6s1wHFoV94Za342Gavtu56qpRGtq1ejrjC4XxJgsIPSVTqyc2WzFxN0tnsRWes1NeZtfGuULPRLDzhusVj8HpYeF9QCWZkn2Gvx7fwwftuzSZf+UlDEiMv5kQOeio67Xptv07U7CWU6+8e8m7Oig5Z7bxjNFVyXfh7VIor0jV6y+d6Mi38jL6DklujZRmC8APa1WaU5HaE1eYO1xOBe7VKQrGaEmQA1UCd4SNwgkbeTdEZd21eJb6eFv4IVPWF0fjQn2ffR0UH3FAawRi1Mf4ihW9O2doX4LrRSyeCb+ErxpXrw9knw+sAvhncopgh8UfRMasFzEYNtxu6WMYvRH5Fg8KfeXa9khsWLjjBcvTXpPCliOpMNqPKYzwofDFtbz913TAqyeNh4fm2bd7gGZ/X68W/zqrdXVwLMZnTMoQqFCOuZ9QLGRMimzmsA1z86paWzXjFmETLyn47OmSxelQvQQ9b7ZlAWphpSNHD4O+iQ27rjpvRgsxmNCAlylkrCT+jBcxjr/DunnKhxGyR1vi+8MpCyYaYjdaP/y68/Kpd240G4W4Hw/JUgfcUx9qoCXdbDSk5Ll9hIuOwDNUWysUzs/qCxBELS9CQUrkOZdRCFpBfGH/elg+tSPHHRylnoFkb7pb8TKJSdPGzrKAl5oacW3KBZ/JC1PnPmITz4mtsu01AN9zbJRBvCJy7JeCsXNrpGE2wfvdjEhSdsJI6MesTfr/16mUYl6Z2wDaan/q+TteBBivhfD/R4h+Cyn1Vs27LjnbaLHHNeOENaqVRlNl7aZPBCNWLTliZSmc2rC8JNwpPeD/QYbZIYyI8b3Tty9UVm7JSy2zWmJucFT59ojTDMJvQngyRx57iF8wLH9xXSrrMTgkVnB/onLCiQ1ZLa43mAiejwk+A2Pkgu4slNaNW8mRc/MvBjX3Chg1jzmLms60fEpShCFQxL8yOqJv8fVF0vmr3cKNBjDsck1VS+HmhVodZ3pE1wSXo86kIstnpt3L0H0HeC439ZXn69Km6w6xcTzzxb9ERW22N4RH+gwpRLjpk5cKU2eqBLeS05wtnZctMmQ3KeSRGU7Yuw4zyet3meeh5hfcElXiR2aF0nneDpoSvaFgGH1Dtvmw0xOxNC9+xT6lrNtsK2Ct+vyI1hG9WfktyT0oZ5Gy2NtF7KH4eymYQY0oC4ssufeIDlyKrumu5ZSVRImnLAc6kBHd66k1FORutw5iKpRdelq1eUJtOUAlavih5P7ORuE1RHJYrLzblTt+iiTHlif9cdMIH2tjsuZdwTgpf2lnv7NfFmb3GOn0oOt9206II35/d9euFr7y3e1HnfnyJPMJp8RMjljlX6b2j8n3ASVD4085qWOihdONIzHoeD5NbmTeVn5hXiZBjw/YKr46tCvPjoGrwclS+117hx/X19gH3jQkwm5NVhHA4R+slC0l0OsSzgKSD3FdFh66UtDSzlyin9P5o1AQ/8XWSEsznKZAgQOn7Ff0hNLUnNB/tIVzg4lcbNTq6lsnR8F8xFq/LsAXUCujsyv9oz+B6Ug4tpBg4X4iXHO0RbNvmDnxZm45K+kB6oB5IGWyj/T4SjeylZUfjn77VyVMJDudaB+zBUAolBPhgvrsoh4+mzBz6QjX80R6BbLBQDvtUewJGTs9gTdg6IKeDcM7ZgoQsidCE8KgEVYX7BSzZL/tOUnJfRz7GPnpkK1x80vt2T72W2fDRRx2WA7Vq3tTbmQNwuqwnQ9lrufig9+2YeitzlEcX9F0ShjRclIF2bz9x3c9cRqTL2qOxnIBWDiWiXAHuZ44TaNOOhVFTEtFu7Bvj2ceL5wa7FLJtDzeXbTF4dCrMn9K1A85e93m3oaXBeTAdo827VLCNwJ7ixa7rSzm4a7eL0ud+xhme+ziKS4JcbTOeObOtj1z2JhGfGe16lZQSvA0dc0kXeEbjnY7ZqZxS8rch+NeDUTlh2xD26wlKbx4vWfhaTurZm2fnQN0bXpeEtnqdJXszUX3c+2UY5eDeV6azWVDkt8PzksAGoMhvSfwUsJeyAFcG02QOHeoD342n2TVsLAt5ZcpV5usE+uRLAtq+Ttm8A7oO0VlCAxm8LTp0pcHgW2sEC9QfabxEHg2oz8KtL1p0+kpHlex9SvXhV9EW08DXuDS468qFmezzx3LgHTMux2SVg7hSfJX9rr8+8Omoyg8Zg/3AKuVtEPcj/kECEi7isqTiAPidj5QL5qWJY6kJicw1nV8nHhE/4TR+PR3KXhcUXQjyLzgo/LiAltK+JXO+2duC02Iuv0Vv71Rw5KqUZ9YreSAvi3w3lJaSmVVKHrAvcUyeCVkXX4MrI4GzX1PPBXeC+bzwpBWLMHNsNg/S19+98pyUSm+dzLer8gB+w4rfo1bp75m9nXUeoG9J/ML4c2mMkpaiuDOHY/OAPrn+uzTqRPUurUj5Nv1QGuZKNZBZZ4f/SEs9U1/nPqRPlMzRZDsFIs0sF988VGacfMUaTynq8JdTTkKxILnOqJzcs98M1+c+EjrGjxl/LQlyJb/5FU9IF/kFDUhUCtg5RLHygF0S0VZof8VW1KV9xaLCd9ZWr4N/xUTU5Xw9mT6URKpzMMh1aY+pz9kLmZVDaUMA/v2qJNIN4ITcvMOm1q0c+Uxl2FL2+tkcoMtGlJz9LIvZrcSxvpJc00bOnuIXzAk6w5Fw8cvBXenHlD11nwN32XQC8zkqg3EIQZ9vqwvLIeBKCKWXuQJLH/h9SOOy6PG2km2zED7Z1BfKeGE57HEAQcLHx8eSyHdnvx+W0Uj4Rm9vMxFp3Oo8XNDi90fVno6zPfF0mAcsKXxpSr2nNIysZVcl2qRHNHomcVx4oW7rTpDUR30xRLs3KThsJWTVym4E6sOmM+FaDpdYfM4ASSlHXjKLXqO4+E3G9Z2eHPCL43KIZ+KzFt7HVFSLDdx3JEgT9ViIOo7xDEeF1zGKZZj9qo8+9an4IRpwjotf9mZfozySGRoGSVSCeLhdwzC9Vk82fSUvZHvDXfO383gpPKlS3Lrv6Hb08LYUdR9AOZoc6IdUcsA9DHAUoRZqlwS6cg88e6vxXKArHT23DSbr9eL3ae5D0DFv/Msh8rpztfNAvu+ZXuAZp35J+B80PrQi85ckJClz9hSXw5xRskTZ+03mgf1afOIgoJvvkRfj4l/RUrMX2bNzeXD3Rrcl0S9t5bKnFd43+JVw1EB3ZMViUhLyqmb/Qnw9N/TNkjAH4aSOL/9GvVqthsZJENNoz4wv+gPQbgyfywOQ3E92ZuSmdrQc+JVZWXasmhR/kOqdUil81ZWyJ/tbg3JEpOYpOnb1nLWj9Cdnf5dEzFWLMnuWKQ/cnInXVys8C8qiXkBEhMt8mloiTle/ztOScFc0jJWD9FcoDE0uH9H4clh47B0A5+gD5XGCA3RTInkHEYPf1KxXCVYL0MsBHEY87JHx5wVnybqifnzqL9smxKcDmVINcdFhK50V39owfB72rm2zDuxLId7hHE0JX9EQF741lzLCrL77sVnod3hOGZqyl+LX4jW7ipRnbr+QB3APp7nT4l/TUMeBtDIHdXPFLS8OFP7UVHRK9qKMPJA/0pMLKocKF5229rC4fGhv36PgsBXtnf36aJ6w0Rmn8xJc/tpvLZK9L3GuzG/YpoUlGqzXAcVh8VNEfd2O57nyn3IcRmvGC38LTG3TZQf7zeAWyZpezoKg+Mb5gb+fOa71Jegc+8+neO2fDiZD5K0wj9H9xEP1Wq120pS1MA8D1Ljfhx8oPDhdLON3Cw/Ik/w2WmOfhoub9LtRva0+IvFR5uzl4+f19lQOMHX2MTUPwyJySR9Skj8Qy8yDT3uLpg0YzQfGrwk03XZKpg6YTP3QE8ufzEadDeVXVO/X2rKgieIAydph8Wvxtk/Yb2dLuwxsuNNUOsgadSdZZdVIubBq1VPxEngqZJ9C1ujX3BQvC1ux0a+7yeqDiNvxWTmqtqywalesPsmq2W+0K1afZdWqWH2SVbdTa4Ln0jFvHwguLfBcPrgmYIBLBzyXj/L3BsD0wYNp1g8j2McHU4evYRofpFOODabXbNU2ofxNWP/ku3DgQnlgbScRilX/LtQPiZ2FU2vgDVC73Wuf/I0Gc7yO6Q/yNrbRBWQWHN6BdyejunXwW9GCg7tl0wDPxp7cNMRWq+j8jg58U9GCCb1lA99c7B32VjDDxgHDqN4/vCZoAk5fHFVwqVjSNAJKBy6UesvOPurX6jW4VBotS7LSl78OlUqnfVjsfWwqAsD8rStfs9aEJDRK2ap5OEPMhffJ0UT8gMS/Sp1QQ+1eCEmMLOjh34JqA+Zkwaf6LacOZIGyYAoOcYyD1yhGLXG8f3yJExIhK1vujVCjJ8zm/S7OIfm45SckaFb23xu0VgXtS9AqQL8H1GnXmifn8BC1lPmrFrWVQNRyAJGFJOJ7RB0HENU/aIdnklEfPKFGw3yY6B2hutBFgOH0zScX3+AoXm+jhp4YR1cTQLjUe+Dmc9S/o9VspLRGJAjg8vpgJJktXq0afF5Wgisf4qrXHMAFSLzqlfLKQqtZSdeHvK7nJIx3Y7XTutCPZuGW3NG7nnio1RYKyiNhJD8wVDYW4lHb8iw08H15LXh7RxUuIgvic0t+JpHMcNfQrjHg225zoD7LGrGG8B2mu0E65z9jEs5BVwdY49RotKYTdHlesfoEq2ZjMhGbsaL1SVrTcUXrs7Ravcn/VrQ+T6vSWp9j1azVO/DCnnDoVPmpf6PTaVV0fkunXcnO7+m0BZ1Jhef3ePqdKVwuVqIBOy738OXGGp+OvHoEnY61XdWRV0ig07FQS7Gh05XNtuq1Ey9gu6olOXM4imgEl5aNq7bvcfUcw9W1iqvlFi0bF9zf0eq7RatRM1++8/3WQ/V2s9beHyY6TKKYrQjf5Q4mAY6fGF/BhWfhTNyyExp/eIO877fn032IFbR/hTYeIG90BR1Zb39olYXC+w2xVru1kbGTQ2ic/aCRQCMbMcAjeCh05svMNgw7H89MhomtoTTabdTNFwRNlq+RbBz8q2lF6x55MeNY7akOScAsOACHoD5Ua4XqNmsQW5E6OxvE1gKMzcImvR96qC2LGcF7AhasDAmn02j17ie7pJ/sTMj9XTN4qKgsaK0NqjSO6hQqC5pKoho2GmjcRJvJznDpWBIkQadW4fkXPC0X6FjbWi0nhMcank6F51/wtNxQPdbwSOlpgMdjwZJ+HJyftOsNuEwsnFaSSadicsik24LLxIJqkUy6zVbVNe4QSreCsg/l4Rw1+oC3jxWVIqC0KyiHUDoVlEMo3XalaT+iUqnaQyq9SlYUKmT2Qbt65NW7NbicbGia33BqQuYESJ46FafT5fr0aoKEA9m+/NX67n2nBECENHtJXE2+iifl4b1GMVkhPx37ex76AYsSDrgcIWsyLyc8XUfw1FtWxCfqtN3gkzW893U81+ETDekZDufoYnQHXe00zMnNhLMbcVQJfXzTadT8bUR4I05g+RhUy+/5dCo+/8qn14bKp9m1zmd0U+/U0GUPDhRd7yIXKM1GjVRUDqh0KiofUllXVA6o9IDLSlYvMy8qsGXFEpV2ReWAShv4wWwBinfTaNYiUFR61nWtgNKGDcWcpOxaCg43lcHoIiA/T+o18e8IDh0bbhGdrU6vz8aoXq/Vag8DdD/xAAHRnF4uFqZBpF2rnTQa8Klk3UV6VLrtFrph/mYvRSwgaIxDvIBclpdV9+oBuhfKBcdogkPyi9FfNK74pHyaDuiZrPPJtYB0HACSNfKtBWT+U3jOcFkYVbdCKuTBDBhH1pyaLo62TKZdPcAFYlR5CCDddiUeWxo/m8LjQeMCFd9p4mg3KxzvcVTS8R5HR0pHEy4OoyftFgdg6TCNA/hmMY2jD/iUNcyiC3lytXEW7UqJ/sLRE1rj7zZcHEY92Z/NfoXj+ZSJrwE5vSUxx9tC2r+bJ40zePd5NQPw39OFagIaTprysvxgOhzsqo6hYVKs1nrG1qK5YepWmP4T07Rfg01J9YGyTk7OD1OtgvMhnG2RpNTZcNFktXPyIbPG3EfT1kkdvOhY5rM77NGYzZMAUK0tiDP/jVPxepzkwufvljzroaOxssX+7vxCU22ufUKbbXUuWwKuOY0IGrdcOOWz5kxyp9R2gVK9ZQNTddb/G5nqlP8PQvDP96zp67zItMCTyVp9qEsmCbcue8eZ+8OGNbJCaHdXfzdt/fznmsuRKRtlhBqtNarX0OXsHBBCy3ppn+C2Spr+Q+aolZL6DcsK4AHAKqL973hSN+Wth2clR4egRjjGQyLN8O39/5m8/78dmdXsAGKlWbaSA6udWqrXpJLaMuo21hWkDyD97+jufUeJSxyTF/wKr6uEfWK7SHfjBHDhi2kLfY8LoMtkAOxzJzIjFveR4HIDF4zpMIkEs5nYhRrycpmwhgac49eK0DtC/+fCe6PUrTcKVGiWN5wmZDiG00QCzgXlBE3roC/LmFfFKZW/G3VYVBogqLSAUYEhKy3Q94ks6ZW/W52SU1nT+Sle0BiL4yc6HWz/Jv5jcSBRztWg15pRGck4/0HCONq+tiPjp0EO8YKwEWM5PfFGQTljccxW735hsP0vY7ZW+aloejUlkHOIZr35+wEZ8fpuXVEObNC3QegvGf+fiswBmSFnUXRyRvCqonNIZ0QjHyqX5uGxZIyLbKxATjYB5QmezwMClVLLovRcpt0nINOxubeuSCA/PVQ0HziVxtBcr9YkCAjYA8smmwlnsOD0FR+q2bAHZ5rwGQ3BqhtjR9Z6jTmOkwiRgKzkqk/HOFwyNc9pDYz0d/fI1LLtqN36/mjUzrcrzAOSx/xnEktXYtueTawU3bJ//gEDrrnPLePpfixsyXrNeIzOpEdHYiCo6qqIQUJ1QxZAMDXaIHfiltMdDaGAUnVWI5syPzIo75lyODvPvnaXC+T0KVmQ6HT49nep2kfEx2ltyzfP5+QlDRyxgM6RtxR2FRTToX6gvjIx/LXkvNAJh4UulshbEzIHA0kVtGxK/hiQJoQ/MSG9BJo8AUSViM8Lxo0BuOHe9BNYoQLIjKSHh3AGIcUuAe4+YTCsVtX2+zdCAK0Ci3LEVmnhPeMROkE0YqdnAXshaeLtAodQAWUUo1+LFMbntfc9B0y/3lOiesB+kqzQJFmtK2T/jQx9e5NZOKFy4MRGVPwexwswGU3gvM7/L/FjONlx4LQmNIpZWMH6FCwZvqpQfQ4Vk0ktcT7CSd+AJxZj/lrB+hSs1JeuWH2KlcyisorVjhVP41QRWnAazoVCPx1uXgEK6IMSzH/js12dgHO5XV9+hIT1zuCqc1CgrjCoaAxkVNerNfbjCtUnUP2JwZ55oDhtjM8K1X+gSt9qiHZvi8bYF69BqY2BiG1MgyDN4CSBWBH9p7IaMsGqzsWvUauOyM9Qq/T+Zzk90BnHcoUVqh2qOafiHU5H8g+gUDJe/kiXkj0x+B6EvBmT0Hnat+sMcJ2QBTDb+KZwiH+QV8YFngCsgjbM51Xakt/FquUxtv12uMSr2Sa7LDPwT/L1aqNJXlcEx+k432QFF0i2IJ0ekE0cXAhIskIbdSyEZpqsZoEUpEpBbzF5a45fKxw7HGmQ+5e8yGqxX9+N2Q8pOzvNU3ZkT4TMJbOL9M9d5glN8QzO1c56raWjgjZL+zoaeS2PcbkOHKDNm4EBo6WbjwAGfRsTsV5AufGmwqhtH9F2jz1g4dVDwWRZlDYnGKj7eCoRQ4JD41jsnuj0TJg48/TsAsKjpXU8XWzXpQGEE/wcLzlLFksgSJo9rT2jjWQY4NVa+OMXAQ4XRHgOyTqAc6uuradR9OkwASeM0hZCMIgoW6hnHEglH+9wiF2zIrI7JongiAgsKOjbiMTCdpELOxG2DHsqir2SO6jzn+tALK3i9B+cZKu7kzsS0SjGIdwwKSxMaRij2om/RSesn/m7xh5AyDS0HIjcuIyS1epV0PkBJm7Ra9sFkwhBCaCwsOxWXbEIjMetsMjWi0sfxXW4uS4EBIdCw7RgXMul+UupQ2QweBNG//YrLAHl/LEdl/iY03fhem7+eh0ioXB8SCUWtpG9wal4bHhw+kR9giay92jFJGVyR+aJD8Zi6do15e6SdZxwAmnP2A5UeCR4OhGKRBavhQt0RwKCI7JJqgBBdJi3bBlmRAMSwtlEdVWnGJcZ8VWc0BvHCAgUu66QF3NMQzASYjlAvqMB63KbZSgPYm1ASNj2lR8oeZGHzWWAowgIE800db5M0LcbOaEEUPmHrejkUpZykp8bv5DL3Fs4J2EERtP2dJSKrFOVHTzflqeNZ8QS6TtP6JqgtAr27b2B8Orr7LL8eZ0HxI859VNYYCBpGnj5Y7qgP2VjRXmsC7WEpsmMRDDlS9VT2Y62/MldYcrXNATHqf+f8xHNYoK0/YDp9P19Jm1qGmy2IFTjAII0vSd2QcNQ6K+K2ReZ/bFpYAkVnfXj8YBdwDbRNPEDsDf8oAlcGrSvYH0OlremvDDdPg3g2rNcoWKzLWTpDkQ4nKMLLquonDDwMw6oy5/aHZkJgwwMH9Wwb9qlk/YGT2VKbj1FpFAdCLTOvkxla5VgGlqjgpYdWrOC9iG0TSZvImPOINV9H9YRubG7YKJST8Z+pulb+bOaLml4ckGDFTr/gdeMA7pApDfkNn9U9ycf6CwgrIBFCu+RJ39r7lIQ2jSzFf0pUV2HJzc0JGh7T3osX4VCqK/lMaZL0ebixVh8blhc9DxpPS5/hQQDasrQtYhC/NcyfjfBMZQ70o2ODRzrZLWOTof4B41fQU3kaTT3NWwmW0cu5MssyNuwnRQIGB9W2S6drjUiYBzUxh6Rrj0iULxPazIi23iA0h9aZQI6JC5xhLZj4WCg6DYsyYQk8W7yGwwaB2WAxg6WS4I5pC3S7u5HE+qmQFwxTv9hYbxVnkBw1NvKFPi6MSBFuk+pw2FCuLzGH4gPDASFGs3tm0KRzmqCtD1Uy6JjngQYu1N1TsztEC+ZrYSbR9MaYDjCUa/tA+lmur+lB0TIBWAS9Z6xjSK7ucKZRNLfb/mWLQ+mgwHedOF+f19bGDtEHrafFRKMutLspd4ytUHQCZrT8L3vDgWJXkx4i6Q2ur7VAvM2M7nC8h7Lue+nEuOjR8YrNvts0ts1bIUXIYFjtAOBI/39ish7Ilevc46ToBKUfSw39P8ldI7+JFCuDwPhckd8uubMT0vtKzR7aDYZ/80g+grNezRpvKBCskMiB1sLzbIJoHzbqBqo9fFfxPOVidbv8WzQvPMLKj4f8HlzDyo6H9CRxl4F5gMwlcb5LZrNmn6k3crWAfbJihSm0XPOpDhbyCyyhLWpVaowfYBpz2DeGocVqA9ApTZiReY0Imuclu1Hp5d8UwPo7V76Q46dJHEcvB9FCYOYXnX/2wqzx5Hf8dqMl36Hq0KzQ7MvQvQJbOMPu3SEy/HqB4D65wGjowSXK0r/RinaXHWYcGkC0Fj+rAKWEZhUV48EjAUOjNuE8BUOxYLRON2RFaYPMckuoAmnSJiYyUyYTBWmDzGJfVYh+ggRC+icPtG0D1jAIgImdAKNjpyNULF5xyadDLvbU6UHI16TjusK+0sakuj0/GfMk3SqMLC4SF2nYYS3WaZw/8fbheZJClaYBByoCQkC4Zn8I18ENHBCjScBACVjt+A2HlRMd0yIFRijCB6m7Xui7Tuib7/uE1XQPg1tVxtcIdsi+yE2Hwmi0zMMpdZImRyUrd3Pw2Y5OhjQt2vvOxT5sAyDcxLI+NCIJ1BqgJXb7xnTRvkiASUqeo00tMEk4fN2Mk569+IsXQkUNprJRl04AorwKWKCpjh8hoJEkZeuUdUylIZLOllKbKWUivhzKCxlwqEWdnZNi8xvAaFvZ4yBiUSrnLLNFTg2p0oLfRLVDVmA7SBdr9lRTuhbGnpNBwVsKvrSv17iCFC3bcVEzDZ6SBfVdjBTdcAdgJHmIeMI2mAvrbaXulAuGPfJ/GTE8VMsyLC0yGoKqGmQcme5n+nOsjadhIfYh3KTXclhWEHRgMnC8LmdttYSnz6AIhrN/ZZBZoMSksYVC+A09OzaDNFc4eBpMxZx29pz84ZA0BzYcd1MYxt04VyHckY86PNmv12IWRfzT+w/C5tt7ojoZGquo8vmr5D5zycsiSGFPtt1i5oGUjtppZlKr2cYhNwtdwQDal6n5gkydZfRJSJrktBZEjwjTxDBCyh2it7sa10qaV474fQfoWFBq9aGWXN2wtkaDRbb4mMYSKwqFFiapGXTnH27eQUpjmQ1vr2pbxxxCubwtcxjc8Igb70kHMpBYzc+sAvlgz5kzLo2gNSHVX0qOcDOFmbrv50Pj7dsxRmOwFxDVDtEWgJTFW/8O5o7xp6ggulb5pJOqYQmO/sxk7pZH3DHSHxyOFeaDo5mC0fSFok0WyCfTj0LaEZUfkDYisYuFik1jhxVDQukLnAQEWBgFCu4Xm9Y4BKwTYsgyFvLvJ+kgAGvks0CApQsrLf2lXCmiVa5gECPNF6iCfafAbWmtUplM3wCWji72dlnYjTrLltBoG9nBFJTPyXfYR5Hau9WPFIe8k9pzz09CRdAwBlRvCJitWBKatVkqlGV8otPau9uzDh5KHsJf8I+QdfhnMpeh3DuFCvGXc8mr/NwU6N9xtPqFjAy1bHpQf2G0aYnVOpGyeHs4kyHQsvqtcff0NoiOtnVkW3Kp8AQa8AjBulKieqANow6oL8BdAdpywEUIO+ZcjgqHKQITZeyQV0grIIoCUBZBTAEiq3AZPj6+2Xz2UYw5wXkIgmCk2kyIwfn2ZBROG0xGjajYjtWEwrmeAchOx5ZUQdkp25adiLx2aJTHFKhiKPTMznwvP7fMJ5oEAxZIING4n/UrKX/iNejmLNnsvtJyNLZpl8EdQD8QK6UeaWHR1q6uA9ppT8ZbFaty6vhCC81n/zBQOijAxsR4o6A9RQr4LCy1gwvVwRsF2z6fezp+LzYAn0PhfcmtKyj1A5rp45PLfE/UXIIgtZbO4XdCXmYHzg6rgvhxqArHPvCf3l1hJsiZR8Uhxwd218kDD9T4wuRV//wBt/ReY0Ziz5RJQ4Dl2KLWRCvW4aE9o/cBGbDtvDIZ+apg6B1UMRlwdb3AhY7Y1Ps9wLpWbApvBA/O6q9rGzGGM8+0ySj4rXhNSXz+Ss6+9TAdhDMOv/ZnudozJ4Ym8vun46Q0pauC7Her2Ia4jB6uwsQEFfMiW7LJjP29EQc1V2dzEejDqkRp6GsP0SPOHYpEGZTuhRmDUeYdTsWmV3gKEbpG7gBS9mUH1RhHROW+IKm3J0YmELrg2thR6T1V0ifnNH1+0GculFdf0eiGCcch7Ezel5tjmdUZ73j5YqOV8pE6rXMUcIvAlsSHMRLH3NyOgjEZwtxOpV+TObUp6Ez21NxiTIHDa/eMGgyDIXsLUlEsSvklPPSHrkoolEqezeyGXco7TTvVfztE33nQJDs6ZppeZE845iGjkADI35DzOdUrHnhTBpOiW1kNnRzJEeQF+OnJzTgxBm91wWyW4c4XiKxOle47YvdR11ITIGTv+BK2qmrWwCUF7URwU+uMOuDYcZXOHbqcFDQZa7Pyw0dFSuLnQl+q/EQa+bI+aujrpdVZOjRoWK9pmYWLy9uF3hFg1c04dgX63BG7HRTe7nhozyK0YA6GiC3B+6ShEQswNGjwd5+3bwPOp8nm/vvjvKzJnfifbg7gfR6TTknMgeG8+XWcISbKm6Zi7tzw8aiNY1x4IzEwdmoO3KuyFxPN+mVF7nr1SoJ6T/p8eDM+QrF278On4iwhFkSoRGNCHa1ct4mwbUQPfExXQEHJXNzLT5gGMkcmAyqu0IPjtil+evAteR1tw4E4F90HhJXQpxgqN0koTt3hRRo1pzYMV6tmPiZK8l9MEou1W1ppxvxQddyfgN3BaFyk8haoHiH8IbOOHbn2i00CbwjPuNzZzQfHHxhvGk1GDhzCVC7aj83eHfXjiADE3+6JQl3KXUNRtZuk5hTlwLsutcC8wL3PfRdEjgwJ8P3JEYTpwIn7Q4QkZssMV9h3xWRazeBiNxk+RqlxpxsoInXrvBTXQlrcndHFlSs3Kk8LJRgpydeQDc4XCSfmpUNAp7a+K5nLRvrMZ+KfesR/oP67tTXQUnyeAlfuNNy66BpjTVu09HIEWZg/Igpc6fbz8EI58z3XPOidh+IYzViSehMXZ2yRa3ZJI9LQgJ/iSlHA18cDRGdBcSZ6pPdhX2gGBuOYrSm/T7G2HQEo9p6w6w0hjhOZGE75s4cINrBlNt0zV+H9Weypu7kxHq6lwB0cY3xWmzHG3cuhfVsC9gYc2e8LeusCPcTZ7ysXdt/e5uRORNF0j4YdVndknWcOFPipW2O6eKaBEnMHIHV0Y2O68Ly5B+u7ER1pKLxneiF7OUpcKdFr/W96CWhM+64dlI5D1iuON0gYLniWls3TiWsVgXrc7CmURLiFXUFl5IfNo7rnuMwccVN7LQsq60H4hAs3Tt+X4a1JmwdkNMzPHt1xnxQ3MR6rZEV1yRdtSYuVwyIrm7yQ5fWcInDRdp5MXaqpkU316vNjYViwYnvEDM1kGpc1i7ICjszp0S7B7surbE7rNSWFW/fm6Tljovd1I1H5AHLlROyqRt31oaVrFauJDTUJuzGYU3InIgVU+zMoagbTNUl5i3Zi0PjXNR6WPPKawvMFf2lBnKM+0OeWG0QOFMgoVa+Zr81rAvsPqQR+ekILjUCbdzwesRiKcJ/vGNs5YwWU9zuL/S0zhWbK7qsp1vMr08tkOO8HMHVtm2NPbKVQ25RS7vRfD68XNmNLWviFeEnEr+enlG2xP9g7krBfr2m+JKZJ2h46cK/TmyIE4cChtrZbW1cS7JKL6s+Erx2FlvmU1IX2wUOgo1t4T+7kmXTbracBzSWxMhbksCdcnLrW/SC4wV1JlDd1a2+18V1hcN5QNAjjZdOdXzU7SKnzY0uluiBBTFeuHOzrWX7INij5oxZqxuRzZWaM8V1ugVQutT+ImSNRs5c/dC+h6XL69aV4nzrJsYtC0+uWUj/SW1aPKdOFaoo4y4zx2f16aHzMHZmXwKQNuStmENRRuvu5q+cLxpyFkUOodMtstZF55o2eyvn/PJsGl1iXkDX6MqlqGNXO6ytzSxmnKA7YdbG6H7tjPvUte0IKNxccaAsajWfktAnp2JFjGNBzxmrQxvZZuUazMZ4ERJX2oB2dS+Q5MCL+sLY8NnalRia9qUbfWa3iR8Q7E6xmX5QIzdkrip/C1L2SMP5SrBwhJg6qN0ksTXjcXQ6WK2XNCbYobSTbumBl65cAxn3l+5081RFLLse08R1hiMyw85syba2EtPlRUPmJ0GJGj9pE2PCI3/BwbMrwHSvd+UALEY3OAl9Rzv9tTNXsusiG+LV2qGrEor12jWuxba8HDVd21Z4PVF3ijJsWxWS14K71LFZ8SezR6+1iYXMnfoVNXeZvVw2F1yu6C/1FnTLvAJLuy7f0CdX4ojaLfu1iQV0NXMoYamdHdflJRO8aCh0fsxfkfdMZU2Go/rsC8nLY9BzRb2psmfe/H/1A4e2qnJ4Ghe2EeUxOqPOdOlU5csCsB8OiZd2NkmXFnsJl4KEc4eAImbGjVoVnKP637xCO/9JuE+jSp99ktcF5eSFMVec84POItnrpLSBRUuXVNnBkLjsxcU5EXNGhym1eHXj2n9HbELdSfbadtIlMzQMCA4dss/2Ja1jfGtessCVCT/q+Afjtqxk5Y5oabcV0ccVzlmAHcGlPTpaF9cVFvr+MqBzd0RMYdbpGGdGn505H7Wn1+QAyyHRUoKwxg/GK8ZlMZT/jKYcU1dKoqxH/q99grbGa4Xs88i8Zxw7hGzftPjKXSVdZsK0YBx5L3S1coibbRvjTxLLeKKjuIybF3/hV+xMpaJtNXZDnwj6UxyYzlxPOgiMGWc2ZjHjM1ni6UowUREz88Urv5A13ETWNK7GJtQPqe9ayzLbVRhbalMs59I7uj07xp3MPWqO7lDzFYx3OFwQvhuu5I602S4tVrg5I2+6s+K0uTH/GTlW1Kg9aSkfaHJIgkvjvOzv0XSsxCzALgW2bZdN3bEXaeO6gks5P+vGcSWhQ0lftWON+S354Agp1Zw1XkzsYRqgM4d2onaXAm1gIY0xf0UjKl6JcODaxFDbroAnPppwoB4oeUkhOcJNe0CaPrdkhpFbxdmKrBnPcXqERPjFTVpt4wEhjwRP6DJJCzSqpHAmck5HHo0nN2UymMxkpwx3dFnHtnfuPVP0Z7JaO8JrV9Bij1dA5g7Jl3pPzngSRfAia6n5HVNmfdvKbIWDjQvlVhsb+7cmvDANAvG5s8Jm3tAQyFZs5s6kIdUFML89BTGh0hhx5yhQu0GYl7KEO3QPQG1hZh7XtkjPnbTmvq2xa8togVjDFWJKVVDmYdw5EHNnQ+p3+tekNSVhSJ3pWWnbqKhCPRlgybi1I6x2sX1rLvijUylx7flB2rTEB4vSZhgVsk8iW+KApKkkh6DZbuos+9JHbln41uWMsTm6xPGScIeoWSuMiom/PB04VPOvuyWnYsEanBz1gvqZvSAdTkO8Ihy7KlPZ20TlwMpRucoej9BiRYIATZabFbpAq6Vr1mvRYqsVdrXRtVnFLlCtE4cSabqjM7RYceZMYtumTJ3/X+K7UjGnRpkzVxpqgZK2ujuDBNX4stHNlzZIdGjeg26bLB1WY2dDpV2j1vqEvbhz8tUtnnxy9DVzBZRSoZq5RkkLlOe5gslmOGFKArKW3owznnJrP071hXRhPrxc8ZabupWo+eBqOoJLmdH81l7ZNK+WK7zqILRX2xFcVnfjvXfmCKaWbjm4DqYHOicMbYKijvBSbIiW0TPxEW+ac4+xL/50xS/s6jad+CoyjsM0T5heAz1tocclEWrMGe9HCdNkPx731q8PcED5DLuSZFWH3fWz+0T541sH2CH7X20flj1OcSyCrngE9dq+C9XOHmo9FkJXvIS+dlLtWARd8Rv0o2jHIuiKK6HdNetoBDuuENzfxV/x9Y+FsOsIQvVaYCt74UreCFezRCD0XfFDtFtU5g4w9JeMu2MP6tYtHomfK9ag9pyqI/FzxhTUrTY+Ej9nDEHtQqKc+Z1R/9V3KCADzQzc8nPnANFtqncsgM6cINp5/iMBdPQIaWfPoR0JoDNniAIQjA50JpawfwhnbyaXO8AkcvUAAXACC3iOHh4N+4eHgOfowdHM3JPpGPBcOTR6+xHorxSS5UxviB0KuyidmqwrPQnPFaWnRk3tb1xJz1WtB0L0XNF62o0jjwHvhvnOzBVU6l+slx/IFt9zMkdXdLF8wa+OYFSb1lnfwxeEc1fgKTLYsR4vkFfCYp64s4mVE8R63veC8eeAPjlz/1A5RKwXEF1id8IFHe3a5iPAc8Vy1q/aPQI8ZwxnaFVrEp4rhjM8yeMsCedIeVs3YKoWjPWc2xXmM7lwF+llb2KfOz0SUJ+t3eleogZgOtYDMG65bx1oRRt/ErJ2xgJUs23WhS+l54oJqN/8JGd6N2LrxkuWRA7VvEDbv+8YuiKHbWgG4ZitydxVEbR/CWmDzxXpA1exMWYx42nVi5sEO9YzIRMs1oGD4BV5yWxF+EKI4yMn7kRVldSIdaCyWRIWUonSXuluUuxb39iez5hD+JRqXvv4CI7RGQlcie33oF3MFADRRF6KcwQguAtd3pK66xtbjwym9JyxCqGVok5x6Ir5osYE29bDqlP8kzoCD5zVMmUvaOBOQFXhZ78iQbyfH7t0DVhpX2vd+dgBdPTosF/YJufMhc7IXxua2bzB54r0dXSnsh4HnzOVHdDusG7weS4XJYCQwZUzClB13CBYMCtn9J96gxXABk78Z3eErw9O+CQ+R6WvBUDzSXzOnL5K9137zm+Kz5XKSnC3WDf4nLm7r9ygtp5I3+BzpQlgF1zINMXnSgNA9eiwfvLeh0RAQncMOzp20H7C6IEsqexe4tSdOAWilfjfDxKcDjinP2Q7/ItA1rRFjvA7mHvyFQ9ErF8LHHtB5zhyJVOu3oL7it2SA7Hbc1d45XDS5sFL7PGlI8h2MmUb2aMjvPKoa86Bl+fMlgTCiyXVlsyIrNqSmXg9EnfsCqW1knG74gwvFnjhTL2dYoYZN1zP3KlxUkXrK16SJis+Ixx5S3cGuO/r+6+1idNjRnASvyIPB+6kUjvWoTH2jAbhXNoWAg91S+aUM9O4SpNNue7Ep8OuTC9XujN8bZSLJrJoSV29JvGlWgc9XAzHaLh053aTWh78pcmHesgSzknov6Lzn/4Sh+4YaIqsGbdnh0kkFuBKJFa10b6STdbCNWIvYRRjyl0lZlzARpyGz2nMnyXi0KSumGk7X8neqTnaJkumLHHm6GxYPjrPA/JDXmt1hFdHNc2M+wLnkfjUDhFTL1J/paIjH2BIngWuUFNOAfP78o3avTOOpmKamd+aCWeOsOopVxSMB7LPf1JnQthKAMO4RXYlzFc/cQVXu2f7iLxiMXEl1qOW+tiBha7DJ8ZXTl1wUZquGz8hr1crKl6ukGVA9kvK3LmNYTvl+x5awxFobdvVUXIIhzPx624Od/U0aUVxml+SIR9HK437X7njrUVtnEQkWblCK4eeFlq0bhmaYC4Di64Qs51V2uJy5qTs5jAGJxdgrpyS1k2LiSSDvj8J8198QmeLyixsTYfOyTzam+vBEpIlPpwjuLq2I2OytMeZZKUiW8ZtMM+p1K7tOzZTKryiGI2xv6TOtKDsWY8nbrFNEu4vceQKN+t7c5qEoTNxWOsJkfu1W2Uqii7Tk6726P8D";@@ -12746,7 +12747,7 @@ mxEvent.addListener(u,"click",function(Ea){Ba.checked=!0;mxEvent.consume(Ea)}));S.style.colorScheme="dark"):(S.classList.remove("geDarkMode"),S.style.colorScheme="light")};m.addListener("darkModeChanged",Ka);Ka();var Ma=function(Ea,Ia){Ea=Ia.getProperty("dialog");S.parentNode==Ea.container&&(m.editor.removeListener(Ma),m.removeListener(Ka))};m.editor.addListener("hideDialog",Ma)}this.container=S};var K=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 K.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="28.0.5";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))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&+this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="28.0.6";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))&&"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,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};@@ -14041,10 +14042,10 @@ function(){mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||navigator.standalone?cthis.tagsWindow.window.isVisible()}));null==Editor.gptApiKey||null==Editor.gptModel||null==Editor.gptUrl||c.isOffline()||EditorUi.isElectronApp||(t=c.actions.addAction("chatWindowTitle",mxUtils.bind(this,function(){null==this.chatWindow?(this.chatWindow=new ChatWindow(c,220,document.body.offsetHeight-380,250,320),this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){c.fireEvent(new mxEventObject("chat"))})),this.chatWindow.window.addListener("hide",function(){c.fireEvent(new mxEventObject("chat"))}),this.chatWindow.window.setVisible(!0),c.fireEvent(new mxEventObject("chat"))):this.chatWindow.window.setVisible(!this.chatWindow.window.isVisible())})),t.setToggleAction(!0),t.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.chatWindow&&this.chatWindow.window.isVisible()})));t=c.actions.addAction("findReplace",mxUtils.bind(this,function(v,A){c.showSearchWindow(p.isEnabled()&&(null==A||!mxEvent.isShiftDown(A)))}),null,null,Editor.ctrlKey+"+F");t=new Action("exportVsdx",function(){var v=null==c.pages||1>=c.pages.length;if(v)c.exportVisio();else{var A=document.createElement("div");A.style.whiteSpace="nowrap";var N=document.createElement("h3");mxUtils.write(N,mxResources.get("formatVsdx"));N.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";A.appendChild(N);var J=c.addCheckbox(A,mxResources.get("allPages"),!v,v);J.style.marginBottom="16px";v=new CustomDialog(c,A,mxUtils.bind(this,function(){c.exportVisio(!J.checked)}),null,mxResources.get("export"));c.showDialog(v.container,-300,130,!0,!0)}},null,null,null,c.vsdxExportEnabled()&&!c.isOffline());t.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};c.actions.put("exportVsdx",t);isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&c.actions.addAction("configuration...",function(){var v=document.createElement("input");v.setAttribute("type","checkbox");v.style.marginRight="8px";v.checked=mxSettings.getShowStartScreen();v.defaultChecked=v.checked;if(Editor.isSettingsEnabled()&&("sketch"==Editor.currentTheme||-"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var A=document.createElement("span");A.style.display="flex";A.style.alignItems="center";A.style.cssFloat="right";A.style.cursor="pointer";A.style.userSelect="none";A.style.marginTop="-3px";A.appendChild(v);mxUtils.write(A,mxResources.get("showStartScreen"));mxEvent.addListener(A,"click",function(J){mxEvent.getSource(J)!=v&&(v.checked=!v.checked)});header=A}A=[[mxResources.get("reset"),function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),-c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired"))}catch(J){c.handleError(J)}})}]];if(!c.isOfflineApp()&&isLocalStorage&&c.mode!=App.MODE_ATLAS){var N=c.actions.get("plugins");null==N||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||A.push([mxResources.get("plugins"),N.funct])}EditorUi.isElectronApp||A.push([mxResources.get("link"),function(J,K){if(0<K.value.length)try{var m=JSON.parse(K.value),u=window.location.protocol+"//"+window.location.host+-"/"+c.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(m)),D=new EmbedDialog(c,u);c.showDialog(D.container,450,240,!0);D.init()}catch(M){c.handleError(M)}else c.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=c.getServiceName()&&"1"!=urlParams.embed&&A.push([mxResources.get("preferences"),function(){c.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),+300,130,!0,!0)}});t.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};c.actions.put("exportVsdx",t);isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&c.actions.addAction("configuration...",function(){var v=document.createElement("input");v.setAttribute("type","checkbox");v.style.marginRight="8px";v.checked=mxSettings.getShowStartScreen();v.defaultChecked=v.checked;if(Editor.isSettingsEnabled()&&("sketch"==Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var A=+document.createElement("span");A.style.display="flex";A.style.alignItems="center";A.style.cssFloat="right";A.style.cursor="pointer";A.style.userSelect="none";A.style.marginTop="-3px";A.appendChild(v);mxUtils.write(A,mxResources.get("showStartScreen"));mxEvent.addListener(A,"click",function(J){mxEvent.getSource(J)!=v&&(v.checked=!v.checked)});header=A}A=[[mxResources.get("reset"),function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),c.hideDialog(),+c.alert(mxResources.get("restartForChangeRequired"))}catch(J){c.handleError(J)}})}]];if(!c.isOfflineApp()&&isLocalStorage&&c.mode!=App.MODE_ATLAS){var N=c.actions.get("plugins");null==N||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||A.push([mxResources.get("plugins"),N.funct])}EditorUi.isElectronApp||A.push([mxResources.get("link"),function(J,K){if(0<K.value.length)try{var m=JSON.parse(K.value),u=window.location.protocol+"//"+window.location.host+"/"+c.getSearch()++"#_CONFIG_"+Graph.compress(JSON.stringify(m)),D=new EmbedDialog(c,u);c.showDialog(D.container,450,240,!0);D.init()}catch(M){c.handleError(M)}else c.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=c.getServiceName()&&"1"!=urlParams.embed&&A.push([mxResources.get("preferences"),function(){c.showLocalStorageDialog(mxResources.get("preferences")+":",Editor.settingsKey,[[mxResources.get("reset"),function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired"))}catch(J){c.handleError(J)}})}]])}]);c.showLocalStorageDialog(mxResources.get("configuration")+":",Editor.configurationKey,A,v.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=v.parentNode&&(mxSettings.setShowStartScreen(v.checked),mxSettings.save())})});(mxClient.IS_CHROMEAPP||isLocalStorage)&&this.put("language",new Menu(mxUtils.bind(this,function(v,A){var N=mxLanguage;null==urlParams.lang&&isLocalStorage&&(N=mxSettings.settings.language);var J=mxUtils.bind(this,function(m){var u=""==m?mxResources.get("automatic"):mxLanguageMap[m],D=null;""!=u&&(D=v.addItem(u,null,mxUtils.bind(this,function(){c.setAndPersistLanguage(m)}),A),(m==N||""==m&&null==N)&&v.addCheckmark(D,Editor.checkmarkImage));return D});J("");v.addSeparator(A);for(var K in mxLanguageMap)J(K)})));c.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];c.actions.addAction("runLayout",function(){c.showCustomLayoutDialog(JSON.stringify(c.customLayoutConfig,null,2))});c.actions.put("adaptiveColors",new Action("adaptiveColors",function(v){null==c.adaptiveColorsWindow&&(c.adaptiveColorsWindow=new AdaptiveColorsWindow(c,document.body.offsetWidth-520,80,200,160));c.adaptiveColorsWindow.window.setVisible(!0)}));t=this.get("viewZoom");var H=t.funct;t.funct=mxUtils.bind(this,function(v,diff --git a/src/main/webapp/js/integrate.min.js b/src/main/webapp/js/integrate.min.jsindex db81257e6..d56656c02 100644--- a/src/main/webapp/js/integrate.min.js+++ b/src/main/webapp/js/integrate.min.js@@ -62,7 +62,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url"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:"28.0.5",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.0.6",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-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||@@ -533,7 +533,8 @@ mxStencil.prototype.evaluateTextAttribute=function(a,b,c){b=this.evaluateAttribumxStencil.prototype.drawShape=function(a,b,c,d,e,f,g){g=null!=g?g:null!=b&&null!=b.state?b.state.view.graph:null;var k=a.states.slice(),l=mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,null);l=this.computeAspect(b.style,c,d,e,f,l);var m=Math.min(l.width,l.height);m="inherit"==this.strokewidth?Number(mxUtils.getNumber(b.style,mxConstants.STYLE_STROKEWIDTH,1)):Number(this.strokewidth)*m;a.setStrokeWidth(m);null!=b.style&&"1"==mxUtils.getValue(b.style,mxConstants.STYLE_POINTER_EVENTS,"0")&&(a.setStrokeColor(mxConstants.NONE),a.rect(c,d,e,f),a.stroke(),a.setStrokeColor(b.stroke));this.drawChildren(a,b,c,d,e,f,this.bgNode,l,!1,!0,g);this.drawChildren(a,b,c,d,e,f,this.fgNode,l,!0,!b.outline||null==b.style||0==mxUtils.getValue(b.style,mxConstants.STYLE_BACKGROUND_OUTLINE,0),g);a.states.length!=k.length&&(a.states=k)};mxStencil.prototype.drawChildren=function(a,b,c,d,e,f,g,k,l,m,n){if(null!=g&&0<e&&0<f)for(c=g.firstChild;null!=c;)c.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,c,k,l,m,n),c=c.nextSibling};mxStencil.prototype.computeAspect=function(a,b,c,d,e,f){a=b;b=d/this.w0;var g=e/this.h0;if(f=f==mxConstants.DIRECTION_NORTH||f==mxConstants.DIRECTION_SOUTH){g=d/this.h0;b=e/this.w0;var k=(d-e)/2;a+=k;c-=k}"fixed"==this.aspect&&(b=g=Math.min(b,g),f?(a+=(e-this.w0*b)/2,c+=(d-this.h0*g)/2):(a+=(d-this.w0*b)/2,c+=(e-this.h0*g)/2));return new mxRectangle(a,c,b,g)};-mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style?d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"):null==b.style||mxUtils.isValidColor(d)||(a=c.getAttribute("default"),b=mxUtils.getValue(b.style,d,null==a?mxConstants.NONE:a),"default"==b&&(b=null!=e?"fillcolor"==c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor:"#ffffff"),d=b);return d};+mxStencil.prototype.parseColor=function(a,b,c,d,e){if("stroke"==d)d=b.stroke;else if("fill"==d)d=b.fill;else if("font"==d&&null!=b.style)d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black");else if(null!=b.style&&!mxUtils.isValidColor(d)){a=c.getAttribute("default");var f=mxUtils.getValue(b.style,d);null==f&&(b=null!=b&&null!=b.state?b.state.cell.style:null,f=null==a||null!=b&&(0<=b.indexOf(";"+d+"=")||b.substring(0,d.length+1)==d+"=")?mxConstants.NONE:a);"default"==f&&(f=null!=e?"fillcolor"==+c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor:"#ffffff");d=f}return d};mxStencil.prototype.drawNode=function(a,b,c,d,e,f,g){var k=c.nodeName,l=d.x,m=d.y,n=d.width,p=d.height,q=Math.min(n,p);if("save"==k)a.save();else if("restore"==k)a.restore();else if(f){if("path"==k){a.begin();q=!0;if("1"==c.getAttribute("rounded")){q=!1;for(var r=Number(c.getAttribute("arcSize")),t=0,u=[],v=c.firstChild;null!=v;){if(v.nodeType==mxConstants.NODETYPE_ELEMENT){var y=v.nodeName;if("move"==y||"line"==y)"move"!=y&&0!=u.length||u.push([]),u[u.length-1].push(new mxPoint(l+Number(v.getAttribute("x"))*n,m+Number(v.getAttribute("y"))*p)),t++;else{q=!0;break}}v=v.nextSibling}if(!q&&0<t)for(n=0;n<u.length;n++)p=!1,m=u[n][0],l=u[n][u[n].length-1],m.x==l.x&&m.y==l.y&&(u[n].pop(),p=!0),this.addPoints(a,u[n],!0,r,p);else q=!0}if(q)for(v=c.firstChild;null!=v;)v.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,v,d,e,f,g),v=v.nextSibling}else if("close"==k)a.close();else if("move"==k)a.moveTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("line"==k)a.lineTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("quad"==k)a.quadTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p);else if("curve"==k)a.curveTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p,l+Number(c.getAttribute("x3"))*n,m+Number(c.getAttribute("y3"))*p);else if("arc"==k)a.arcTo(Number(c.getAttribute("rx"))*n,Number(c.getAttribute("ry"))*@@ -2015,53 +2016,53 @@ Editor.prototype.setModified=function(a){this.modified=a};Editor.prototype.setFiEditor.prototype.createUndoManager=function(){var a=this.graph,b=new mxUndoManager;this.undoListener=function(e,g){b.undoableEditHappened(g.getProperty("edit"))};var f=mxUtils.bind(this,function(e,g){this.undoListener.apply(this,arguments)});a.getModel().addListener(mxEvent.UNDO,f);a.getView().addListener(mxEvent.UNDO,f);f=function(e,g){e=g.getProperty("edit").changes;e=a.getSelectionCellsForChanges(e);g=!1;if(0<e.length){for(var d=[],h=0;h<e.length;h++)null!=a.view.getState(e[h])&&(d.push(e[h]),g||(a.scrollCellToVisible(e[h]),g=!0));a.setSelectionCells(d)}};b.addListener(mxEvent.UNDO,f);b.addListener(mxEvent.REDO,f);return b};Editor.prototype.initStencilRegistry=function(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=null)};OpenFile=function(a){this.consumer=this.producer=null;this.done=a;this.args=null};OpenFile.prototype.setConsumer=function(a){this.consumer=a;this.execute()};OpenFile.prototype.setData=function(){this.args=arguments;this.execute()};OpenFile.prototype.error=function(a){this.cancel(!0);mxUtils.alert(a)};OpenFile.prototype.execute=function(){null!=this.consumer&&null!=this.args&&(this.cancel(!1),this.consumer.apply(this,this.args))};OpenFile.prototype.cancel=function(a){null!=this.done&&this.done(null!=a?a:!0)};-function Dialog(a,b,f,e,g,d,h,m,p,k,v){this.editorUi=a;null==this.bg&&(this.bg=a.createDiv("geBackground"));g&&document.body.appendChild(this.bg);g=a.createDiv(p?"geTransDialog":"geDialog");g.style.width=f+60+"px";g.style.height=e+60+"px";"1"!=urlParams.embedInline||Editor.inlineFullscreen||null==a.embedViewport||(g.style.left=a.embedViewport.x+a.embedViewport.width/2+"px",g.style.top=a.embedViewport.y+a.embedViewport.height/2+"px");g.appendChild(b);document.body.appendChild(g);if(d&&(b=document.createElement("div"),-b.className="geButton",b.setAttribute("title",mxResources.get("close")),b.style.backgroundImage="url("+Editor.crossImage+")",b.style.position="absolute",b.style.top="0px",b.style.right="0px",mxEvent.addListener(b,"click",mxUtils.bind(this,function(){a.hideDialog(!0)})),g.appendChild(b),!v)){var w=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(y){w=!0}),null,mxUtils.bind(this,function(y){w&&(a.hideDialog(!0),w=!1)}))}this.onDialogClose=h;this.container=g;null!=k&&this.addResizeHandler(k);+function Dialog(a,b,f,e,g,d,h,m,p,k,u){this.editorUi=a;null==this.bg&&(this.bg=a.createDiv("geBackground"));g&&document.body.appendChild(this.bg);g=a.createDiv(p?"geTransDialog":"geDialog");g.style.width=f+60+"px";g.style.height=e+60+"px";"1"!=urlParams.embedInline||Editor.inlineFullscreen||null==a.embedViewport||(g.style.left=a.embedViewport.x+a.embedViewport.width/2+"px",g.style.top=a.embedViewport.y+a.embedViewport.height/2+"px");g.appendChild(b);document.body.appendChild(g);if(d&&(b=document.createElement("div"),+b.className="geButton",b.setAttribute("title",mxResources.get("close")),b.style.backgroundImage="url("+Editor.crossImage+")",b.style.position="absolute",b.style.top="0px",b.style.right="0px",mxEvent.addListener(b,"click",mxUtils.bind(this,function(){a.hideDialog(!0)})),g.appendChild(b),!u)){var w=!1;mxEvent.addGestureListeners(this.bg,mxUtils.bind(this,function(y){w=!0}),null,mxUtils.bind(this,function(y){w&&(a.hideDialog(!0),w=!1)}))}this.onDialogClose=h;this.container=g;null!=k&&this.addResizeHandler(k);a.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(a,b){return new mxPoint(a,b)};Dialog.prototype.addResizeHandler=function(a){var b=document.createElement("img");b.setAttribute("src",mxWindow.prototype.resizeImage);b.style.cursor="nwse-resize";b.style.position="absolute";b.style.bottom="0px";b.style.right="0px";b.style.zIndex="2";var f=null,e=null,g=null,d=null,h=mxUtils.bind(this,function(k){f=mxEvent.getClientX(k);e=mxEvent.getClientY(k);g=parseInt(this.container.style.width);d=parseInt(this.container.style.height);mxEvent.addGestureListeners(document,null,m,p);mxEvent.consume(k)}),-m=mxUtils.bind(this,function(k){if(null!=f&&null!=e){var v=mxEvent.getClientX(k)-f,w=mxEvent.getClientY(k)-e;this.container.style.width=Math.max(a.width,g+2*v)+"px";this.container.style.height=Math.max(a.height,d+2*w)+"px";mxEvent.consume(k)}}),p=mxUtils.bind(this,function(k){null!=f&&null!=e&&(e=f=null,mxEvent.removeGestureListeners(document,null,m,p),mxEvent.consume(k))});mxEvent.addGestureListeners(b,h,m,p);this.container.appendChild(b)};+m=mxUtils.bind(this,function(k){if(null!=f&&null!=e){var u=mxEvent.getClientX(k)-f,w=mxEvent.getClientY(k)-e;this.container.style.width=Math.max(a.width,g+2*u)+"px";this.container.style.height=Math.max(a.height,d+2*w)+"px";mxEvent.consume(k)}}),p=mxUtils.bind(this,function(k){null!=f&&null!=e&&(e=f=null,mxEvent.removeGestureListeners(document,null,m,p),mxEvent.consume(k))});mxEvent.addGestureListeners(b,h,m,p);this.container.appendChild(b)};Dialog.prototype.close=function(a,b){if(null!=this.onDialogClose){if(0==this.onDialogClose(a,b))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(a,b,f,e,g,d,h,m,p,k,v){p=null!=p?p:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var y=document.createElement("div");y.style.padding="0px";y.style.margin="0px";y.style.fontSize="18px";y.style.paddingBottom="16px";y.style.marginBottom="10px";y.style.borderBottom="1px solid #c0c0c0";y.style.color="gray";y.style.whiteSpace="nowrap";y.style.textOverflow="ellipsis";y.style.overflow="hidden";mxUtils.write(y,b);y.setAttribute("title",b);w.appendChild(y)}b=-document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof f&&(f=f.replace(/\n/g,"<br/>"));b.innerHTML=Graph.sanitizeHtml(f);w.appendChild(b);f=document.createElement("div");f.style.marginTop="12px";f.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",f.appendChild(b),f.style.textAlign="center");null!=k&&(k=mxUtils.button(k,function(){null!=v&&v()}),k.className="geBtn",f.appendChild(k));+var ErrorDialog=function(a,b,f,e,g,d,h,m,p,k,u){p=null!=p?p:!0;var w=document.createElement("div");w.style.textAlign="center";if(null!=b){var y=document.createElement("div");y.style.padding="0px";y.style.margin="0px";y.style.fontSize="18px";y.style.paddingBottom="16px";y.style.marginBottom="10px";y.style.borderBottom="1px solid #c0c0c0";y.style.color="gray";y.style.whiteSpace="nowrap";y.style.textOverflow="ellipsis";y.style.overflow="hidden";mxUtils.write(y,b);y.setAttribute("title",b);w.appendChild(y)}b=+document.createElement("div");b.style.lineHeight="1.2em";b.style.padding="6px";"string"===typeof f&&(f=f.replace(/\n/g,"<br/>"));b.innerHTML=Graph.sanitizeHtml(f);w.appendChild(b);f=document.createElement("div");f.style.marginTop="12px";f.style.textAlign="center";null!=d&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();d()}),b.className="geBtn",f.appendChild(b),f.style.textAlign="center");null!=k&&(k=mxUtils.button(k,function(){null!=u&&u()}),k.className="geBtn",f.appendChild(k));var C=mxUtils.button(e,function(){p&&a.hideDialog();null!=g&&g()});C.className="geBtn";f.appendChild(C);null!=h&&(e=mxUtils.button(h,function(){p&&a.hideDialog();null!=m&&m()}),e.className="geBtn gePrimaryBtn",f.appendChild(e));this.init=function(){C.focus()};w.appendChild(f);this.container=w},PrintDialog=function(a,b,f,e){this.create(a,b,f,e)};-PrintDialog.prototype.create=function(a){function b(C){var D=h.checked||k.checked,E=parseInt(w.value)/100;isNaN(E)&&(E=1,w.value="100%");mxClient.IS_SF&&(E*=.75);var G=f.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,J=1/f.pageScale;if(D){var M=h.checked?1:parseInt(v.value);isNaN(M)||(J=mxUtils.getScaleForPageCount(M,f,G))}var Q=M=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*E);G.height=Math.ceil(G.height*E);J*=E;!D&&f.pageVisible?(E=f.getPageLayout(),M-=E.x*G.width,Q-=E.y*G.height):+PrintDialog.prototype.create=function(a){function b(C){var D=h.checked||k.checked,E=parseInt(w.value)/100;isNaN(E)&&(E=1,w.value="100%");mxClient.IS_SF&&(E*=.75);var G=f.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,J=1/f.pageScale;if(D){var M=h.checked?1:parseInt(u.value);isNaN(M)||(J=mxUtils.getScaleForPageCount(M,f,G))}var Q=M=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*E);G.height=Math.ceil(G.height*E);J*=E;!D&&f.pageVisible?(E=f.getPageLayout(),M-=E.x*G.width,Q-=E.y*G.height):D=!0;D=PrintDialog.createPrintPreview(f,J,G,0,M,Q,D);D.open();C&&PrintDialog.printPreview(D)}var f=a.editor.graph,e=document.createElement("table");e.style.width="100%";e.style.height="100%";var g=document.createElement("tbody");var d=document.createElement("tr");var h=document.createElement("input");h.setAttribute("type","checkbox");var m=document.createElement("td");m.setAttribute("colspan","2");m.style.fontSize="10pt";m.appendChild(h);var p=document.createElement("span");mxUtils.write(p," "+mxResources.get("fitPage"));m.appendChild(p);mxEvent.addListener(p,"click",function(C){h.checked=!h.checked;k.checked=!h.checked;mxEvent.consume(C)});mxEvent.addListener(h,"change",function(){k.checked=!h.checked});d.appendChild(m);g.appendChild(d);d=d.cloneNode(!1);var k=document.createElement("input");k.setAttribute("type","checkbox");m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(k);p=document.createElement("span");mxUtils.write(p," "+mxResources.get("posterPrint")+":");m.appendChild(p);mxEvent.addListener(p,-"click",function(C){k.checked=!k.checked;h.checked=!k.checked;mxEvent.consume(C)});d.appendChild(m);var v=document.createElement("input");v.setAttribute("value","1");v.setAttribute("type","number");v.setAttribute("min","1");v.setAttribute("size","4");v.setAttribute("disabled","disabled");v.style.width="50px";m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(v);mxUtils.write(m," "+mxResources.get("pages")+" (max)");d.appendChild(m);g.appendChild(d);mxEvent.addListener(k,"change",-function(){k.checked?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled");h.checked=!k.checked});d=d.cloneNode(!1);m=document.createElement("td");mxUtils.write(m,mxResources.get("pageScale")+":");d.appendChild(m);m=document.createElement("td");var w=document.createElement("input");w.setAttribute("value","100 %");w.setAttribute("size","5");w.style.width="50px";m.appendChild(w);d.appendChild(m);g.appendChild(d);d=document.createElement("tr");m=document.createElement("td");m.colSpan=2;+"click",function(C){k.checked=!k.checked;h.checked=!k.checked;mxEvent.consume(C)});d.appendChild(m);var u=document.createElement("input");u.setAttribute("value","1");u.setAttribute("type","number");u.setAttribute("min","1");u.setAttribute("size","4");u.setAttribute("disabled","disabled");u.style.width="50px";m=document.createElement("td");m.style.fontSize="10pt";m.appendChild(u);mxUtils.write(m," "+mxResources.get("pages")+" (max)");d.appendChild(m);g.appendChild(d);mxEvent.addListener(k,"change",+function(){k.checked?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled");h.checked=!k.checked});d=d.cloneNode(!1);m=document.createElement("td");mxUtils.write(m,mxResources.get("pageScale")+":");d.appendChild(m);m=document.createElement("td");var w=document.createElement("input");w.setAttribute("value","100 %");w.setAttribute("size","5");w.style.width="50px";m.appendChild(w);d.appendChild(m);g.appendChild(d);d=document.createElement("tr");m=document.createElement("td");m.colSpan=2;m.style.paddingTop="20px";m.setAttribute("align","right");p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});p.className="geBtn";a.editor.cancelFirst&&m.appendChild(p);if(PrintDialog.previewEnabled){var y=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();b(!1)});y.className="geBtn";m.appendChild(y)}y=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();b(!0)});y.className="geBtn gePrimaryBtn";m.appendChild(y);a.editor.cancelFirst||m.appendChild(p);d.appendChild(m);g.appendChild(d);e.appendChild(g);this.container=e};PrintDialog.printPreview=function(a){try{null!=a.wnd&&window.setTimeout(function(){a.wnd.focus();a.wnd.print();a.wnd.close()},500)}catch(b){}};PrintDialog.createPrintPreview=function(a,b,f,e,g,d,h){b=new mxPrintPreview(a,b,f,e,g,d);b.title=mxResources.get("preview");b.addPageCss=!mxClient.IS_SF;b.printBackgroundImage=!0;b.autoOrigin=h;h=a.background;if(null==h||""==h||h==mxConstants.NONE)h="#ffffff";b.backgroundColor=h;var m=b.isTextLabel;b.isTextLabel=function(k){return"geHint"==!k.className&&m.apply(this,arguments)};var p=b.getLinkForCellState;b.getLinkForCellState=function(k){return a.getAbsoluteUrl(p.apply(this,arguments))};return b};PrintDialog.previewEnabled=!0;-var PageSetupDialog=function(a){function b(){var E=w;null!=E&&null!=E.originalSrc&&(E=a.createImageForPageLink(E.originalSrc,null));null!=E&&null!=E.src?(v.style.backgroundImage="url("+E.src+")",v.style.display="inline-block"):(v.style.backgroundImage="",v.style.display="none");v.style.backgroundColor="";null!=y&&y!=mxConstants.NONE&&(v.style.backgroundColor=y,v.style.display="inline-block")}var f=a.editor.graph,e=document.createElement("table");e.style.width="100%";e.style.height="100%";var g=document.createElement("tbody");+var PageSetupDialog=function(a){function b(){var E=w;null!=E&&null!=E.originalSrc&&(E=a.createImageForPageLink(E.originalSrc,null));null!=E&&null!=E.src?(u.style.backgroundImage="url("+E.src+")",u.style.display="inline-block"):(u.style.backgroundImage="",u.style.display="none");u.style.backgroundColor="";null!=y&&y!=mxConstants.NONE&&(u.style.backgroundColor=y,u.style.display="inline-block")}var f=a.editor.graph,e=document.createElement("table");e.style.width="100%";e.style.height="100%";var g=document.createElement("tbody");var d=document.createElement("tr");var h=document.createElement("td");h.style.verticalAlign="top";h.style.fontSize="10pt";mxUtils.write(h,mxResources.get("paperSize")+":");d.appendChild(h);h=document.createElement("td");h.style.verticalAlign="top";h.style.fontSize="10pt";var m=PageSetupDialog.addPageFormatPanel(h,"pagesetupdialog",f.pageFormat);d.appendChild(h);g.appendChild(d);d=document.createElement("tr");h=document.createElement("td");mxUtils.write(h,mxResources.get("gridSize")+":");d.appendChild(h);h=document.createElement("td");h.style.whiteSpace="nowrap";var p=document.createElement("input");p.setAttribute("type","number");p.setAttribute("min","0");p.style.width="40px";p.style.marginLeft="6px";p.value=f.getGridSize();h.appendChild(p);mxEvent.addListener(p,"change",function(){var E=parseInt(p.value);p.value=Math.max(1,isNaN(E)?f.getGridSize():E)});d.appendChild(h);g.appendChild(d);d=document.createElement("tr");h=document.createElement("td");mxUtils.write(h,mxResources.get("background")+":");-d.appendChild(h);h=document.createElement("td");var k=document.createElement("button");k.className="geBtn";k.style.margin="0px";mxUtils.write(k,mxResources.get("change")+"...");var v=document.createElement("div");v.style.display="inline-block";v.style.verticalAlign="middle";v.style.backgroundPosition="center center";v.style.backgroundRepeat="no-repeat";v.style.backgroundSize="contain";v.style.border="1px solid lightGray";v.style.borderRadius="4px";v.style.marginRight="14px";v.style.height="32px";-v.style.width="64px";v.style.cursor="pointer";v.style.padding="4px";var w=f.backgroundImage,y=f.background,C=f.shadowVisible,D=function(E){a.showBackgroundImageDialog(function(G,J,M,Q){J||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=Q);y=M;b()},w,y,!0);mxEvent.consume(E)};mxEvent.addListener(k,"click",D);mxEvent.addListener(v,"click",D);b();h.appendChild(v);h.appendChild(k);d.appendChild(h);g.appendChild(d);d=document.createElement("tr");h=document.createElement("td");+d.appendChild(h);h=document.createElement("td");var k=document.createElement("button");k.className="geBtn";k.style.margin="0px";mxUtils.write(k,mxResources.get("change")+"...");var u=document.createElement("div");u.style.display="inline-block";u.style.verticalAlign="middle";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.backgroundSize="contain";u.style.border="1px solid lightGray";u.style.borderRadius="4px";u.style.marginRight="14px";u.style.height="32px";+u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var w=f.backgroundImage,y=f.background,C=f.shadowVisible,D=function(E){a.showBackgroundImageDialog(function(G,J,M,Q){J||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=Q);y=M;b()},w,y,!0);mxEvent.consume(E)};mxEvent.addListener(k,"click",D);mxEvent.addListener(u,"click",D);b();h.appendChild(u);h.appendChild(k);d.appendChild(h);g.appendChild(d);d=document.createElement("tr");h=document.createElement("td");h.colSpan=2;h.style.paddingTop="16px";h.setAttribute("align","right");k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";a.editor.cancelFirst&&h.appendChild(k);D=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var E=parseInt(p.value);isNaN(E)||f.gridSize===E||f.setGridSize(E);E=new ChangePageSetup(a,y,w,m.get());E.ignoreColor=f.background==y;E.ignoreImage=(null!=f.backgroundImage?f.backgroundImage.src:null)===(null!=w?w.src:null);null!=C&&(E.shadowVisible=C);f.pageFormat.width==E.previousFormat.width&&f.pageFormat.height==E.previousFormat.height&&E.ignoreColor&&E.ignoreImage&&E.shadowVisible==f.shadowVisible||f.model.execute(E)});D.className="geBtn gePrimaryBtn";h.appendChild(D);a.editor.cancelFirst||h.appendChild(k);d.appendChild(h);g.appendChild(d);e.appendChild(g);this.container=e};PageSetupDialog.addPageFormatPanel=function(a,b,f,e){b="format-"+b;var g=document.createElement("input");g.setAttribute("name",b);g.setAttribute("type","radio");g.setAttribute("value","portrait");var d=document.createElement("input");d.setAttribute("name",b);d.setAttribute("type","radio");d.setAttribute("value","landscape");var h=document.createElement("select");h.style.position="relative";h.style.marginBottom="4px";h.style.borderRadius="4px";h.style.borderWidth="1px";h.style.borderStyle="solid";h.style.boxSizing="border-box";h.style.padding="2px";h.style.width="210px";var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.marginLeft="4px";m.style.width="210px";m.style.height="24px";g.style.marginRight="6px";m.appendChild(g);b=document.createElement("span");b.style.maxWidth="100px";mxUtils.write(b,mxResources.get("portrait"));m.appendChild(b);d.style.marginLeft="10px";d.style.marginRight="6px";m.appendChild(d);var p=document.createElement("span");p.style.width="100px";mxUtils.write(p,-mxResources.get("landscape"));m.appendChild(p);var k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.marginLeft="4px";k.style.fontSize="12px";k.style.width="210px";k.style.height="24px";var v=document.createElement("input");v.setAttribute("size","7");v.setAttribute("title",mxResources.get("width"));v.style.textAlign="right";k.appendChild(v);mxUtils.write(k," x ");var w=document.createElement("input");w.setAttribute("size","7");w.setAttribute("title",mxResources.get("height"));w.style.textAlign=+mxResources.get("landscape"));m.appendChild(p);var k=document.createElement("div");k.style.whiteSpace="nowrap";k.style.marginLeft="4px";k.style.fontSize="12px";k.style.width="210px";k.style.height="24px";var u=document.createElement("input");u.setAttribute("size","7");u.setAttribute("title",mxResources.get("width"));u.style.textAlign="right";k.appendChild(u);mxUtils.write(k," x ");var w=document.createElement("input");w.setAttribute("size","7");w.setAttribute("title",mxResources.get("height"));w.style.textAlign="right";k.appendChild(w);var y=document.createElement("select");y.style.marginLeft="4px";y.style.maxWidth="78px";y.style.width="78px";for(var C=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],D=0;D<C.length;D++){var E=document.createElement("option");E.setAttribute("value",C[D].unit);mxUtils.write(E,C[D].label);y.appendChild(E)}y.value=Editor.pageSizeUnit;k.appendChild(y);-m.style.display="none";k.style.display="none";var G={},J=PageSetupDialog.getFormats();for(D=0;D<J.length;D++)C=J[D],G[C.key]=C,E=document.createElement("option"),E.setAttribute("value",C.key),mxUtils.write(E,C.title),h.appendChild(E);var M=function(){h.value="custom";for(var L=0;L<J.length;L++){var W=J[L];null!=W.format&&("a4"==W.key?826==f.width?(f=mxRectangle.fromRectangle(f),f.width=827):826==f.height&&(f=mxRectangle.fromRectangle(f),f.height=827):"a5"==W.key&&(584==f.width?(f=mxRectangle.fromRectangle(f),+m.style.display="none";k.style.display="none";var G={},J=PageSetupDialog.getFormats();for(D=0;D<J.length;D++)C=J[D],G[C.key]=C,E=document.createElement("option"),E.setAttribute("value",C.key),mxUtils.write(E,C.title),h.appendChild(E);var M=function(){h.value="custom";for(var K=0;K<J.length;K++){var W=J[K];null!=W.format&&("a4"==W.key?826==f.width?(f=mxRectangle.fromRectangle(f),f.width=827):826==f.height&&(f=mxRectangle.fromRectangle(f),f.height=827):"a5"==W.key&&(584==f.width?(f=mxRectangle.fromRectangle(f),f.width=583):584==f.height&&(f=mxRectangle.fromRectangle(f),f.height=583)),f.width==W.format.width&&f.height==W.format.height?(h.value=W.key,g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0,d.removeAttribute("checked"),d.defaultChecked=!1,d.checked=!1,detected=!0):f.width==W.format.height&&f.height==W.format.width&&(h.value=W.key,g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1,d.setAttribute("checked","checked"),d.defaultChecked=!0,detected=d.checked=!0))}"custom"==-h.value?(v.value=Editor.toUnit(f.width,y.value),w.value=Editor.toUnit(f.height,y.value),g.setAttribute("checked","checked"),h.value="custom",m.style.display="none",k.style.display=""):(m.style.display="",k.style.display="none")};M();a.appendChild(h);mxUtils.br(a);a.appendChild(m);a.appendChild(k);var Q=function(L,W){L=G[h.value];null!=L.format?(v.value=Editor.toUnit(d.checked?L.format.height:L.format.width,y.value),w.value=Editor.toUnit(d.checked?L.format.width:L.format.height,y.value),k.style.display=-"none",m.style.display=""):(m.style.display="none",k.style.display="");L=parseFloat(v.value);if(isNaN(L)||0>=L)v.value=Editor.toUnit(f.width,y.value);L=parseFloat(w.value);if(isNaN(L)||0>=L)w.value=Editor.toUnit(f.height,y.value);L=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(v.value),y.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),y.value)));W||L.width==f.width&&L.height==f.height||(f=L,null!=e&&e(f))};mxEvent.addListener(b,"click",function(L){g.checked=!0;Q(L);mxEvent.consume(L)});-mxEvent.addListener(p,"click",function(L){d.checked=!0;Q(L);mxEvent.consume(L)});mxEvent.addListener(v,"blur",Q);mxEvent.addListener(v,"click",Q);mxEvent.addListener(w,"blur",Q);mxEvent.addListener(w,"click",Q);mxEvent.addListener(d,"change",Q);mxEvent.addListener(g,"change",Q);mxEvent.addListener(h,"change",function(L){Q(L,"custom"==h.value);mxEvent.consume(L)});mxEvent.addListener(y,"change",function(L){v.value=Editor.toUnit(Editor.fromUnit(v.value,Editor.pageSizeUnit),y.value);w.value=Editor.toUnit(Editor.fromUnit(w.value,-Editor.pageSizeUnit),y.value);Editor.pageSizeUnit=y.value;Q(L,!0);mxEvent.consume(L)});Q(null,!0);return{set:function(L){f=L;M(null,null,!0)},get:function(){return f},widthInput:v,heightInput:w}};+h.value?(u.value=Editor.toUnit(f.width,y.value),w.value=Editor.toUnit(f.height,y.value),g.setAttribute("checked","checked"),h.value="custom",m.style.display="none",k.style.display=""):(m.style.display="",k.style.display="none")};M();a.appendChild(h);mxUtils.br(a);a.appendChild(m);a.appendChild(k);var Q=function(K,W){K=G[h.value];null!=K.format?(u.value=Editor.toUnit(d.checked?K.format.height:K.format.width,y.value),w.value=Editor.toUnit(d.checked?K.format.width:K.format.height,y.value),k.style.display=+"none",m.style.display=""):(m.style.display="none",k.style.display="");K=parseFloat(u.value);if(isNaN(K)||0>=K)u.value=Editor.toUnit(f.width,y.value);K=parseFloat(w.value);if(isNaN(K)||0>=K)w.value=Editor.toUnit(f.height,y.value);K=new mxRectangle(0,0,Math.floor(Editor.fromUnit(parseFloat(u.value),y.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),y.value)));W||K.width==f.width&&K.height==f.height||(f=K,null!=e&&e(f))};mxEvent.addListener(b,"click",function(K){g.checked=!0;Q(K);mxEvent.consume(K)});+mxEvent.addListener(p,"click",function(K){d.checked=!0;Q(K);mxEvent.consume(K)});mxEvent.addListener(u,"blur",Q);mxEvent.addListener(u,"click",Q);mxEvent.addListener(w,"blur",Q);mxEvent.addListener(w,"click",Q);mxEvent.addListener(d,"change",Q);mxEvent.addListener(g,"change",Q);mxEvent.addListener(h,"change",function(K){Q(K,"custom"==h.value);mxEvent.consume(K)});mxEvent.addListener(y,"change",function(K){u.value=Editor.toUnit(Editor.fromUnit(u.value,Editor.pageSizeUnit),y.value);w.value=Editor.toUnit(Editor.fromUnit(w.value,+Editor.pageSizeUnit),y.value);Editor.pageSizeUnit=y.value;Q(K,!0);mxEvent.consume(K)});Q(null,!0);return{set:function(K){f=K;M(null,null,!0)},get:function(){return f},widthInput:u,heightInput:w}};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(a,b,f,e,g,d,h,m,p,k,v){p=null!=p?p:!0;var w=document.createElement("div"),y=document.createElement("div");y.style.width="100%";y.style.display="grid";y.style.gap="5px 8px";y.style.gridAutoColumns="auto 1fr";y.style.boxSizing="border-box";y.style.padding="3px";var C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.justifyContent="flex-end";C.style.minWidth="0";var D=document.createElement("div");D.style.display="inline-block";+var FilenameDialog=function(a,b,f,e,g,d,h,m,p,k,u){p=null!=p?p:!0;var w=document.createElement("div"),y=document.createElement("div");y.style.width="100%";y.style.display="grid";y.style.gap="5px 8px";y.style.gridAutoColumns="auto 1fr";y.style.boxSizing="border-box";y.style.padding="3px";var C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.justifyContent="flex-end";C.style.minWidth="0";var D=document.createElement("div");D.style.display="inline-block";D.style.textOverflow="ellipsis";D.style.whiteSpace="nowrap";D.style.overflow="hidden";D.style.fontSize="10pt";D.style.padding="2px 0";D.setAttribute("title",g||mxResources.get("filename"));mxUtils.write(D,(g||mxResources.get("filename"))+":");C.appendChild(D);y.appendChild(C);var E=document.createElement("input");E.setAttribute("value",b||"");E.style.flexGrow="1";var G=mxUtils.button(f,function(){if(null==d||d(E.value))p&&a.hideDialog(),e(E.value)});G.className="geBtn gePrimaryBtn";this.init=function(){if(null!=-g||null==h)if(null!=v?Editor.selectFilename(E):(E.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?E.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var J=y.parentNode;if(null!=J){var M=null;mxEvent.addListener(J,"dragleave",function(Q){null!=M&&(M.style.backgroundColor="",M=null);Q.stopPropagation();Q.preventDefault()});mxEvent.addListener(J,"dragover",mxUtils.bind(this,function(Q){null==M&&(!mxClient.IS_IE||10<document.documentMode)&&(M=E,M.style.backgroundColor=+g||null==h)if(null!=u?Editor.selectFilename(E):(E.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?E.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var J=y.parentNode;if(null!=J){var M=null;mxEvent.addListener(J,"dragleave",function(Q){null!=M&&(M.style.backgroundColor="",M=null);Q.stopPropagation();Q.preventDefault()});mxEvent.addListener(J,"dragover",mxUtils.bind(this,function(Q){null==M&&(!mxClient.IS_IE||10<document.documentMode)&&(M=E,M.style.backgroundColor="#ebf2f9");Q.stopPropagation();Q.preventDefault()}));mxEvent.addListener(J,"drop",mxUtils.bind(this,function(Q){null!=M&&(M.style.backgroundColor="",M=null);0<=mxUtils.indexOf(Q.dataTransfer.types,"text/uri-list")&&(E.value=decodeURIComponent(Q.dataTransfer.getData("text/uri-list")),G.click());Q.stopPropagation();Q.preventDefault()}))}}};C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.gap="4px";C.style.whiteSpace="nowrap";C.appendChild(E);y.appendChild(C);-null==g&&null!=h||null==v||null==a.editor.diagramFileTypes||(C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.textOverflow="ellipsis",C.style.justifyContent="flex-end",C.style.fontSize="10pt",mxUtils.write(C,mxResources.get("type")+":"),y.appendChild(C),C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.whiteSpace="nowrap",y.appendChild(C),b=FilenameDialog.createFileTypes(a,E,a.editor.diagramFileTypes),-b.style.width="100%",C.appendChild(b));null!=h&&y.appendChild(h);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=v?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");C=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=k&&k()});C.className="geBtn";null==m||a.isOffline()||row.appendChild(a.createHelpIcon(m));+null==g&&null!=h||null==u||null==a.editor.diagramFileTypes||(C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.textOverflow="ellipsis",C.style.justifyContent="flex-end",C.style.fontSize="10pt",mxUtils.write(C,mxResources.get("type")+":"),y.appendChild(C),C=document.createElement("div"),C.style.display="inline-flex",C.style.alignItems="center",C.style.whiteSpace="nowrap",y.appendChild(C),b=FilenameDialog.createFileTypes(a,E,a.editor.diagramFileTypes),+b.style.width="100%",C.appendChild(b));null!=h&&y.appendChild(h);row=document.createElement("div");row.style.gridColumn="1 / span 2";row.style.paddingTop=null!=u?"6px":"14px";row.style.whiteSpace="nowrap";row.style.display="inline-flex";row.style.alignItems="center";row.style.justifyContent="flex-end";row.setAttribute("align","right");C=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=k&&k()});C.className="geBtn";null==m||a.isOffline()||row.appendChild(a.createHelpIcon(m));a.editor.cancelFirst&&row.appendChild(C);mxEvent.addListener(E,"keypress",function(J){13==J.keyCode&&G.click()});row.appendChild(G);a.editor.cancelFirst||row.appendChild(C);y.appendChild(row);w.appendChild(y);this.container=w};FilenameDialog.filenameHelpLink=null;FilenameDialog.createFileTypes=function(a,b,f){var e=document.createElement("select");for(a=0;a<f.length;a++){var g=document.createElement("option");g.setAttribute("value",a);mxUtils.write(g,mxResources.get(f[a].description)+" (."+f[a].extension+")");e.appendChild(g)}mxEvent.addListener(e,"change",function(d){d=f[e.value].extension;var h=b.value.lastIndexOf(".drawio.");h=0<h?h:b.value.lastIndexOf(".");"drawio"!=d&&(d="drawio."+d);b.value=0<h?b.value.substring(0,h+1)+d:b.value+"."+d;"createEvent"indocument?(d=document.createEvent("HTMLEvents"),d.initEvent("change",!1,!0),b.dispatchEvent(d)):b.fireEvent("onchange")});a=function(d){d=b.value.toLowerCase();for(var h=0,m=0;m<f.length;m++){var p=f[m].extension,k=null;"drawio"!=p&&(k=p,p=".drawio."+p);if(d.substring(d.length-p.length-1)=="."+p||null!=k&&d.substring(d.length-k.length-1)=="."+k){h=m;break}}e.value=h};mxEvent.addListener(b,"change",a);mxEvent.addListener(b,"keyup",a);a();return e};@@ -2069,21 +2070,21 @@ var WrapperWindow=function(a,b,f,e,g,d,h,m){m=null!=m?m:document.createElement("(function(){mxGraphView.prototype.validateBackgroundPage=function(){var h=this.graph;if(null!=h.container&&!h.transparentBackground){if(h.pageVisible){var m=this.getBackgroundPageBounds();if(null==this.backgroundPageShape){for(var p=h.container.firstChild;null!=p&&p.nodeType!=mxConstants.NODETYPE_ELEMENT;)p=p.nextSibling;null!=p&&(this.backgroundPageShape=this.createBackgroundPageShape(m),this.backgroundPageShape.scale=1,this.backgroundPageShape.isShadow=!0,this.backgroundPageShape.dialect=mxConstants.DIALECT_STRICTHTML,this.backgroundPageShape.init(h.container),p.style.position="absolute",h.container.insertBefore(this.backgroundPageShape.node,p),this.backgroundPageShape.redraw(),this.backgroundPageShape.node.className="geBackgroundPage",mxEvent.addListener(this.backgroundPageShape.node,"dblclick",mxUtils.bind(this,function(k){h.dblClick(k)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,function(k){h.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){null!=h.tooltipHandler&&h.tooltipHandler.isHideOnHover()&&h.tooltipHandler.hide();h.isMouseDown&&!mxEvent.isConsumed(k)&&h.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(k))}),mxUtils.bind(this,function(k){h.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(k))})))}else this.backgroundPageShape.scale=1,this.backgroundPageShape.bounds=m,this.backgroundPageShape.redraw()}else null!=this.backgroundPageShape&&(this.backgroundPageShape.destroy(),this.backgroundPageShape=null);this.validateBackgroundStyles()}};-mxGraphView.prototype.validateBackgroundStyles=function(h,m,p){var k=this.graph;h=null!=h?h:1;var v=mxUtils.getLightDarkColor(null==k.background||k.background==mxConstants.NONE?k.defaultPageBackgroundColor:k.background).cssText,w=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,y=null!=v&&this.gridColor!=v.toLowerCase()?this.gridColor:"#ffffff",C="none",D="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(v=k.background);if(k.isGridEnabled()||k.gridVisible){D=+mxGraphView.prototype.validateBackgroundStyles=function(h,m,p){var k=this.graph;h=null!=h?h:1;var u=mxUtils.getLightDarkColor(null==k.background||k.background==mxConstants.NONE?k.defaultPageBackgroundColor:k.background).cssText,w=mxUtils.getLightDarkColor(k.defaultPageBorderColor).cssText,y=null!=u&&this.gridColor!=u.toLowerCase()?this.gridColor:"#ffffff",C="none",D="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(u=k.background);if(k.isGridEnabled()||k.gridVisible){D=10;mxClient.IS_SVG?(C=unescape(encodeURIComponent(this.createSvgGrid(y,h))),C=window.btoa?btoa(C):Base64.encode(C,!0),C="url(data:image/svg+xml;base64,"+C+")",D=k.gridSize*this.scale*this.gridSteps*h):C="url("+this.gridImage+")";var E=y=0;m=null!=m?m-this.translate.x*this.scale:0;p=null!=p?p-this.translate.y*this.scale:0;var G=k.gridSize*this.scale*this.gridSteps,J=m%G;G=p%G;null!=k.view.backgroundPageShape&&(E=this.getBackgroundPageBounds(),y=1+E.x,E=1+E.y);D=-Math.round(D-mxUtils.mod(this.translate.x*-this.scale-y+m,D)+J*h)+"px "+-Math.round(D-mxUtils.mod(this.translate.y*this.scale-E+p,D)+G*h)+"px"}h=k.view.canvas;null!=h.ownerSVGElement&&(h=h.ownerSVGElement);y=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=D,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=v,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme=-"none"==k.getAdaptiveColors()?"light":"",h.style.backgroundImage="none",h.style.backgroundColor="",k.container.style.backgroundColor=y?k.diagramBackgroundColor:""):(h.style.backgroundPosition=D,h.style.backgroundImage=C,"1"==urlParams.transparent?k.container.style.background="transparent":!y||null!=k.background&&k.background!=mxConstants.NONE?h.style.backgroundColor=v:(h.style.backgroundColor=k.diagramBackgroundColor,k.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(h,-m){for(var p=this.graph.gridSize*this.scale*(null!=m?m:1);p<this.minGridSize;)p*=2;m=this.gridSteps*p;for(var k=[],v=1;v<this.gridSteps;v++){var w=v*p;k.push("M 0 "+w+" L "+m+" "+w+" M "+w+" 0 L "+w+" "+m)}h=mxUtils.getLightDarkColor(h);p="color-scheme: light dark;";mxClient.IS_SF&&(p="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+p+'" width="'+m+'" height="'+m+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'++this.scale-y+m,D)+J*h)+"px "+-Math.round(D-mxUtils.mod(this.translate.y*this.scale-E+p,D)+G*h)+"px"}h=k.view.canvas;null!=h.ownerSVGElement&&(h=h.ownerSVGElement);y=!Editor.isDarkMode()&&k.enableDiagramBackground;null!=k.view.backgroundPageShape?(k.view.backgroundPageShape.node.style.backgroundPosition=D,k.view.backgroundPageShape.node.style.backgroundImage=C,k.view.backgroundPageShape.node.style.backgroundColor=u,k.view.backgroundPageShape.node.style.borderColor=w,k.view.backgroundPageShape.node.style.colorScheme=+"none"==k.getAdaptiveColors()?"light":"",h.style.backgroundImage="none",h.style.backgroundColor="",k.container.style.backgroundColor=y?k.diagramBackgroundColor:""):(h.style.backgroundPosition=D,h.style.backgroundImage=C,"1"==urlParams.transparent?k.container.style.background="transparent":!y||null!=k.background&&k.background!=mxConstants.NONE?h.style.backgroundColor=u:(h.style.backgroundColor=k.diagramBackgroundColor,k.container.style.backgroundColor=""))};mxGraphView.prototype.createSvgGrid=function(h,+m){for(var p=this.graph.gridSize*this.scale*(null!=m?m:1);p<this.minGridSize;)p*=2;m=this.gridSteps*p;for(var k=[],u=1;u<this.gridSteps;u++){var w=u*p;k.push("M 0 "+w+" L "+m+" "+w+" M "+w+" 0 L "+w+" "+m)}h=mxUtils.getLightDarkColor(h);p="color-scheme: light dark;";mxClient.IS_SF&&(p="color-scheme: "+("none"!=this.graph.getAdaptiveColors()&&Editor.isDarkMode()?"dark":"light"));return'<svg style="'+p+'" width="'+m+'" height="'+m+'" xmlns="'+mxConstants.NS_SVG+'"><defs><pattern id="grid" width="'+m+'" height="'+m+'" patternUnits="userSpaceOnUse"><path d="'+k.join(" ")+'" fill="none" style="stroke:'+mxUtils.htmlEntities(h.cssText)+';" stroke="'+h.light+'" opacity="0.2" stroke-width="1"/><path d="M '+m+" 0 L 0 0 0 "+m+'" fill="none" style="stroke:'+mxUtils.htmlEntities(h.cssText)+';" stroke="'+h.light+'" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>'};var a=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(h,m){a.apply(this,arguments);-if(null!=this.shiftPreview1){var p=this.view.canvas;null!=p.ownerSVGElement&&(p=p.ownerSVGElement);var k=this.gridSize*this.view.scale*this.view.gridSteps;k=-Math.round(k-mxUtils.mod(this.view.translate.x*this.view.scale+h,k))+"px "+-Math.round(k-mxUtils.mod(this.view.translate.y*this.view.scale+m,k))+"px";p.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(h,m,p){var k=this.view.scale,v=this.view.translate,w=this.pageFormat,y=k*this.pageScale,C=this.view.getBackgroundPageBounds();-m=C.width;p=C.height;var D=new mxRectangle(k*v.x,k*v.y,w.width*y,w.height*y),E=(h=h&&Math.min(D.width,D.height)>this.minPageBreakDist)?Math.ceil(p/D.height)-1:0,G=h?Math.ceil(m/D.width)-1:0,J=C.x+m,M=C.y+p;null==this.horizontalPageBreaks&&0<E&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);h=mxUtils.bind(this,function(Q){if(null!=Q){for(var L=Q==this.horizontalPageBreaks?E:G,W=0;W<=L;W++){var X=Q==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),-Math.round(C.y+(W+1)*D.height)),new mxPoint(Math.round(J),Math.round(C.y+(W+1)*D.height))]:[new mxPoint(Math.round(C.x+(W+1)*D.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(W+1)*D.width),Math.round(M))];null!=Q[W]?(Q[W].points=X,Q[W].redraw()):(X=new mxPolyline(X,this.pageBreakColor),X.dialect=this.dialect,X.isDashed=this.pageBreakDashed,X.pointerEvents=!1,X.init(this.view.backgroundPane),X.redraw(),Q[W]=X)}for(W=L;W<Q.length;W++)null!=Q[W]&&Q[W].destroy();Q.splice(L,Q.length-L)}});h(this.horizontalPageBreaks);-h(this.verticalPageBreaks)};var b=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(h,m,p){for(var k=0;k<m.length;k++){if(this.graph.isTableCell(m[k])||this.graph.isTableRow(m[k]))return!1;if(this.graph.getModel().isVertex(m[k])){var v=this.graph.getCellGeometry(m[k]);if(null!=v&&v.relative)return!1}}return b.apply(this,arguments)};var f=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var h=+if(null!=this.shiftPreview1){var p=this.view.canvas;null!=p.ownerSVGElement&&(p=p.ownerSVGElement);var k=this.gridSize*this.view.scale*this.view.gridSteps;k=-Math.round(k-mxUtils.mod(this.view.translate.x*this.view.scale+h,k))+"px "+-Math.round(k-mxUtils.mod(this.view.translate.y*this.view.scale+m,k))+"px";p.style.backgroundPosition=k}};mxGraph.prototype.updatePageBreaks=function(h,m,p){var k=this.view.scale,u=this.view.translate,w=this.pageFormat,y=k*this.pageScale,C=this.view.getBackgroundPageBounds();+m=C.width;p=C.height;var D=new mxRectangle(k*u.x,k*u.y,w.width*y,w.height*y),E=(h=h&&Math.min(D.width,D.height)>this.minPageBreakDist)?Math.ceil(p/D.height)-1:0,G=h?Math.ceil(m/D.width)-1:0,J=C.x+m,M=C.y+p;null==this.horizontalPageBreaks&&0<E&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);h=mxUtils.bind(this,function(Q){if(null!=Q){for(var K=Q==this.horizontalPageBreaks?E:G,W=0;W<=K;W++){var X=Q==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),+Math.round(C.y+(W+1)*D.height)),new mxPoint(Math.round(J),Math.round(C.y+(W+1)*D.height))]:[new mxPoint(Math.round(C.x+(W+1)*D.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(W+1)*D.width),Math.round(M))];null!=Q[W]?(Q[W].points=X,Q[W].redraw()):(X=new mxPolyline(X,this.pageBreakColor),X.dialect=this.dialect,X.isDashed=this.pageBreakDashed,X.pointerEvents=!1,X.init(this.view.backgroundPane),X.redraw(),Q[W]=X)}for(W=K;W<Q.length;W++)null!=Q[W]&&Q[W].destroy();Q.splice(K,Q.length-K)}});h(this.horizontalPageBreaks);+h(this.verticalPageBreaks)};var b=mxGraphHandler.prototype.shouldRemoveCellsFromParent;mxGraphHandler.prototype.shouldRemoveCellsFromParent=function(h,m,p){for(var k=0;k<m.length;k++){if(this.graph.isTableCell(m[k])||this.graph.isTableRow(m[k]))return!1;if(this.graph.getModel().isVertex(m[k])){var u=this.graph.getCellGeometry(m[k]);if(null!=u&&u.relative)return!1}}return b.apply(this,arguments)};var f=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var h=f.apply(this,arguments);h.intersects=mxUtils.bind(this,function(m,p){return this.isConnecting()?!0:mxCellMarker.prototype.intersects.apply(h,arguments)});return h};mxGraphView.prototype.createBackgroundPageShape=function(h){return new mxRectangleShape(h,"#ffffff",this.graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var h=this.getGraphBounds(),m=0<h.width?h.x/this.scale-this.translate.x:0,p=0<h.height?h.y/this.scale-this.translate.y:0,k=this.graph.pageFormat,-v=this.graph.pageScale,w=k.width*v;k=k.height*v;v=Math.floor(Math.min(0,m)/w);var y=Math.floor(Math.min(0,p)/k);return new mxRectangle(this.scale*(this.translate.x+v*w),this.scale*(this.translate.y+y*k),this.scale*(Math.ceil(Math.max(1,m+h.width/this.scale)/w)-v)*w,this.scale*(Math.ceil(Math.max(1,p+h.height/this.scale)/k)-y)*k)};var e=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(h,m){e.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||-this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=h+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var g=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(h,m,p,k,v,w){var y=g.apply(this,arguments);null==w||w||mxEvent.addListener(y,"mousedown",function(C){mxEvent.consume(C)});return y};var d=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=-function(h,m,p){var k=this.graph.model.getParent(h);if(m){var v=this.graph.model.isEdge(h)?null:this.graph.getCellGeometry(h);v=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(h)&&(null!=v&&v.relative||!this.graph.isContainer(k)||this.graph.isPart(h))}else if(v=d.apply(this,arguments),this.graph.isTableCell(h)||this.graph.isTableRow(h))v=k,this.graph.isTable(v)||(v=this.graph.model.getParent(v)),v=!this.graph.selectionCellsHandler.isHandled(v)||this.graph.isCellSelected(v)&&this.graph.isToggleEvent(p.getEvent())||-this.graph.isCellSelected(h)&&!this.graph.isToggleEvent(p.getEvent())||this.graph.isTableCell(h)&&this.graph.isCellSelected(k);return v};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(h){h=h.getCell();for(var m=this.graph.getModel(),p=m.getParent(h),k=this.graph.view.getState(p),v=this.graph.isCellSelected(h);null!=k&&(m.isVertex(p)||m.isEdge(p));){var w=this.graph.isCellSelected(p);v=v||w;if(w||!v&&(this.graph.isTableCell(h)||this.graph.isTableRow(h)))h=p;p=m.getParent(p)}return h}})();EditorUi=function(a,b,f){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var e=this,g=this.editor.graph;g.lightbox=f;var d=g.getGraphBounds;g.getGraphBounds=function(){var H=d.apply(this,arguments),S=this.backgroundImage;if(null!=S&&null!=S.width&&null!=S.height){var ea=this.view.translate,la=this.view.scale;H=mxRectangle.fromRectangle(H);H.add(new mxRectangle((ea.x+S.x)*la,(ea.y+S.y)*la,S.width*la,S.height*la))}return H};g.useCssTransforms&&+u=this.graph.pageScale,w=k.width*u;k=k.height*u;u=Math.floor(Math.min(0,m)/w);var y=Math.floor(Math.min(0,p)/k);return new mxRectangle(this.scale*(this.translate.x+u*w),this.scale*(this.translate.y+y*k),this.scale*(Math.ceil(Math.max(1,m+h.width/this.scale)/w)-u)*w,this.scale*(Math.ceil(Math.max(1,p+h.height/this.scale)/k)-y)*k)};var e=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(h,m){e.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape||+this.useScrollbarsForPanning&&mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=h+"px",this.view.backgroundPageShape.node.style.marginTop=m+"px")};var g=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(h,m,p,k,u,w){var y=g.apply(this,arguments);null==w||w||mxEvent.addListener(y,"mousedown",function(C){mxEvent.consume(C)});return y};var d=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=+function(h,m,p){var k=this.graph.model.getParent(h);if(m){var u=this.graph.model.isEdge(h)?null:this.graph.getCellGeometry(h);u=!this.graph.model.isEdge(k)&&!this.graph.isSiblingSelected(h)&&(null!=u&&u.relative||!this.graph.isContainer(k)||this.graph.isPart(h))}else if(u=d.apply(this,arguments),this.graph.isTableCell(h)||this.graph.isTableRow(h))u=k,this.graph.isTable(u)||(u=this.graph.model.getParent(u)),u=!this.graph.selectionCellsHandler.isHandled(u)||this.graph.isCellSelected(u)&&this.graph.isToggleEvent(p.getEvent())||+this.graph.isCellSelected(h)&&!this.graph.isToggleEvent(p.getEvent())||this.graph.isTableCell(h)&&this.graph.isCellSelected(k);return u};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(h){h=h.getCell();for(var m=this.graph.getModel(),p=m.getParent(h),k=this.graph.view.getState(p),u=this.graph.isCellSelected(h);null!=k&&(m.isVertex(p)||m.isEdge(p));){var w=this.graph.isCellSelected(p);u=u||w;if(w||!u&&(this.graph.isTableCell(h)||this.graph.isTableRow(h)))h=p;p=m.getParent(p)}return h}})();EditorUi=function(a,b,f){mxEventSource.call(this);this.destroyFunctions=[];this.editor=a||new Editor;this.container=b||document.body;var e=this,g=this.editor.graph;g.lightbox=f;var d=g.getGraphBounds;g.getGraphBounds=function(){var H=d.apply(this,arguments),S=this.backgroundImage;if(null!=S&&null!=S.width&&null!=S.height){var ea=this.view.translate,la=this.view.scale;H=mxRectangle.fromRectangle(H);H.add(new mxRectangle((ea.x+S.x)*la,(ea.y+S.y)*la,S.width*la,S.height*la))}return H};g.useCssTransforms&&(this.lazyZoomDelay=0);this.selectionStateListener=mxUtils.bind(this,function(H,S){this.clearSelectionState()});g.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionStateListener);g.getModel().addListener(mxEvent.CHANGE,this.selectionStateListener);g.addListener(mxEvent.EDITING_STARTED,this.selectionStateListener);g.addListener(mxEvent.EDITING_STOPPED,this.selectionStateListener);g.getView().addListener("unitChanged",this.selectionStateListener);if(this.editor.chromeless&&!this.editor.editable){g.isEnabled=function(){return!1};g.panningHandler.isForcePanningEvent=function(H){for(var S=H.getSource();null!=S&&S!=g.container;){if("foreignObject"===S.nodeName||"text"===S.nodeName)return!1;S=S.parentNode}return!mxEvent.isPopupTrigger(H.getEvent())};var h=g.panningHandler.start;g.panningHandler.start=function(){h.apply(this,arguments);mxUtils.clearSelection()}}this.actions=new Actions(this);this.menus=this.createMenus();if(!g.standalone){var m=!1,p=!1;this.setDefaultStyle=function(H){try{g.getModel().isEdge(H)?p=g.pasteEdgeStyle=!1:m=!1;var S=g.getCellStyle(H,!1),ea=[],la=[],O;for(O in S)ea.push(S[O]),la.push(O);g.getModel().isEdge(H)?g.currentEdgeStyle={}:g.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",ea,"cells",[H],"force",!0));g.getModel().isEdge(H)?p=g.pasteEdgeStyle=!0:m=!0}catch(V){this.handleError(V)}};this.clearDefaultStyle=function(){g.currentEdgeStyle=mxUtils.clone(g.defaultEdgeStyle);g.currentVertexStyle=mxUtils.clone(g.defaultVertexStyle);m=p=g.pasteEdgeStyle=@@ -2091,14 +2092,14 @@ p=g.pasteEdgeStyle=!1:m=!1;var S=g.getCellStyle(H,!1),ea=[],la=[],O;for(O in S)e!this.editor.editable||(this.menubarContainer.onselectstart=k,this.menubarContainer.onmousedown=k,this.toolbarContainer.onselectstart=k,this.toolbarContainer.onmousedown=k,this.diagramContainer.onselectstart=k,this.diagramContainer.onmousedown=k,this.sidebarContainer.onselectstart=k,this.sidebarContainer.onmousedown=k,this.formatContainer.onselectstart=k,this.formatContainer.onmousedown=k,null!=this.tabContainer&&(this.tabContainer.onselectstart=k),mxClient.IS_IOS&&(b=function(){var H=null;if(/iP(hone|od|ad)/.test(navigator.platform)){var S=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{H=[parseInt(S[1],10),parseInt(S[2],10),parseInt(S[3]||0,10)]}catch(ea){}}return H}(),null!=b&&16<=b[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?(b=function(H){if(null!=H){var S=mxEvent.getSource(H);if("A"==S.nodeName)for(;null!=S;){if("geHint"==S.className)return!0;S=S.parentNode}}return k(H)},mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?mxEvent.addListener(this.diagramContainer,"contextmenu",b):this.diagramContainer.oncontextmenu=b):g.panningHandler.usePopupTrigger=!1;g.init(this.diagramContainer);mxClient.IS_SVG&&null!=g.view.getDrawPane()&&-(b=g.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=g.graphHandler){var v=g.graphHandler.start;g.graphHandler.start=function(){null!=e.hoverIcons&&e.hoverIcons.reset();v.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(H){var S=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(H)-S.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(H)-S.y-this.diagramContainer.clientHeight?+(b=g.view.getDrawPane().ownerSVGElement,null!=b&&(b.style.position="absolute"));this.hoverIcons=this.createHoverIcons();if(null!=g.graphHandler){var u=g.graphHandler.start;g.graphHandler.start=function(){null!=e.hoverIcons&&e.hoverIcons.reset();u.apply(this,arguments)}}mxEvent.addListener(this.diagramContainer,"mousemove",mxUtils.bind(this,function(H){var S=mxUtils.getOffset(this.diagramContainer);0<mxEvent.getClientX(H)-S.x-this.diagramContainer.clientWidth||0<mxEvent.getClientY(H)-S.y-this.diagramContainer.clientHeight?this.diagramContainer.setAttribute("title",mxResources.get("panTooltip")):this.diagramContainer.removeAttribute("title")}));var w=this.hoverIcons.isResetEvent;this.hoverIcons.isResetEvent=function(H,S){return e.isSpaceDown()||w.apply(this,arguments)};this.keydownHandler=mxUtils.bind(this,function(H){16==H.which?this.shiftDown=!0:32!=H.which||g.isEditing()?mxEvent.isConsumed(H)||27!=H.keyCode||this.hideDialog(null,!0):(this.spaceDown=!0,this.hoverIcons.reset(),g.container.style.cursor="move",g.isEditing()||mxEvent.getSource(H)!=g.container||mxEvent.consume(H))});mxEvent.addListener(document,"keydown",this.keydownHandler);this.keyupHandler=mxUtils.bind(this,function(H){g.container.style.cursor="";this.shiftDown=this.spaceDown=!1});mxEvent.addListener(document,"keyup",this.keyupHandler);var y=g.panningHandler.isForcePanningEvent;g.panningHandler.isForcePanningEvent=function(H){return y.apply(this,arguments)||e.isSpaceDown()||mxEvent.isMouseEvent(H.getEvent())&&(this.usePopupTrigger||!mxEvent.isPopupTrigger(H.getEvent()))&&(!mxEvent.isControlDown(H.getEvent())&&mxEvent.isRightMouseButton(H.getEvent())||mxEvent.isMiddleMouseButton(H.getEvent()))};var C=g.cellEditor.isStopEditingEvent;g.cellEditor.isStopEditingEvent=function(H){return C.apply(this,arguments)||13==H.keyCode&&(!mxClient.IS_SF&&mxEvent.isControlDown(H)||mxClient.IS_MAC&&mxEvent.isMetaDown(H)||mxClient.IS_SF&&mxEvent.isShiftDown(H))};var D=g.isZoomWheelEvent;g.isZoomWheelEvent=function(){return e.isSpaceDown()||D.apply(this,arguments)};var E=mxUtils.bind(this,-function(){if(null!=this.toolbar)for(var H=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,S=this.toolbar.container.firstChild;null!=S;){var ea=S.getAttribute("data-min-width");null!=ea&&parseInt(ea)>H?S.style.display="none":S.style.display="";S=S.nextSibling}}),G=!1,J=null,M=null,Q=null,L=mxUtils.bind(this,function(){if(null!=this.toolbar&&G!=g.cellEditor.isContentEditing()){for(var H=this.toolbar.container.firstChild,S=[];null!=H;){var ea=H.nextSibling;H.parentNode.removeChild(H);-S.push(H);H=ea}H=this.toolbar.fontMenu;ea=this.toolbar.sizeMenu;if(null==Q)this.toolbar.createTextToolbar();else{for(var la=0;la<Q.length;la++)this.toolbar.container.appendChild(Q[la]);this.toolbar.fontMenu=J;this.toolbar.sizeMenu=M}G=g.cellEditor.isContentEditing();J=H;M=ea;Q=S;E()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();L()}));this.addListener("currentThemeChanged",E);mxEvent.addListener(window,-"resize",E);E();g.isTouchPopupMenuEnabled=function(){return null==e.dialog};var W=g.cellEditor.startEditing;g.cellEditor.startEditing=function(){W.apply(this,arguments);L();if(g.cellEditor.isContentEditing()){var H=!1,S=function(){H||(H=!0,window.setTimeout(function(){var ea=g.getSelectedEditingElement();null!=ea&&(ea=mxUtils.getCurrentStyle(ea),null!=ea&&null!=e.toolbar&&(e.toolbar.setFontName(mxUtils.getCssFontFamily(ea.fontFamily)),e.toolbar.setFontSize(parseInt(ea.fontSize))));H=!1},0))};mxEvent.addListener(g.cellEditor.textarea,-"input",S);mxEvent.addListener(g.cellEditor.textarea,"touchend",S);mxEvent.addListener(g.cellEditor.textarea,"mouseup",S);mxEvent.addListener(g.cellEditor.textarea,"keyup",S);S()}};var X=g.cellEditor.stopEditing;g.cellEditor.stopEditing=function(H,S){try{X.apply(this,arguments),L()}catch(ea){e.handleError(ea)}};g.container.setAttribute("tabindex","0");g.container.style.cursor="default";if(window.self===window.top&&null!=g.container.parentNode)try{g.container.focus()}catch(H){}var T=g.fireMouseEvent;+function(){if(null!=this.toolbar)for(var H=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,S=this.toolbar.container.firstChild;null!=S;){var ea=S.getAttribute("data-min-width");null!=ea&&parseInt(ea)>H?S.style.display="none":S.style.display="";S=S.nextSibling}}),G=!1,J=null,M=null,Q=null,K=mxUtils.bind(this,function(){if(null!=this.toolbar&&G!=g.cellEditor.isContentEditing()){for(var H=this.toolbar.container.firstChild,S=[];null!=H;){var ea=H.nextSibling;H.parentNode.removeChild(H);+S.push(H);H=ea}H=this.toolbar.fontMenu;ea=this.toolbar.sizeMenu;if(null==Q)this.toolbar.createTextToolbar();else{for(var la=0;la<Q.length;la++)this.toolbar.container.appendChild(Q[la]);this.toolbar.fontMenu=J;this.toolbar.sizeMenu=M}G=g.cellEditor.isContentEditing();J=H;M=ea;Q=S;E()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();K()}));this.addListener("currentThemeChanged",E);mxEvent.addListener(window,+"resize",E);E();g.isTouchPopupMenuEnabled=function(){return null==e.dialog};var W=g.cellEditor.startEditing;g.cellEditor.startEditing=function(){W.apply(this,arguments);K();if(g.cellEditor.isContentEditing()){var H=!1,S=function(){H||(H=!0,window.setTimeout(function(){var ea=g.getSelectedEditingElement();null!=ea&&(ea=mxUtils.getCurrentStyle(ea),null!=ea&&null!=e.toolbar&&(e.toolbar.setFontName(mxUtils.getCssFontFamily(ea.fontFamily)),e.toolbar.setFontSize(parseInt(ea.fontSize))));H=!1},0))};mxEvent.addListener(g.cellEditor.textarea,+"input",S);mxEvent.addListener(g.cellEditor.textarea,"touchend",S);mxEvent.addListener(g.cellEditor.textarea,"mouseup",S);mxEvent.addListener(g.cellEditor.textarea,"keyup",S);S()}};var X=g.cellEditor.stopEditing;g.cellEditor.stopEditing=function(H,S){try{X.apply(this,arguments),K()}catch(ea){e.handleError(ea)}};g.container.setAttribute("tabindex","0");g.container.style.cursor="default";if(window.self===window.top&&null!=g.container.parentNode)try{g.container.focus()}catch(H){}var T=g.fireMouseEvent;g.fireMouseEvent=function(H,S,ea){try{H==mxEvent.MOUSE_DOWN&&this.container.focus(),T.apply(this,arguments)}catch(la){e.handleError(la)}};var N=g.foldCells;g.foldCells=function(H,S,ea,la,O){try{N.apply(this,arguments)}catch(V){e.handleError(V)}};g.popupMenuHandler.autoExpand=!0;null!=this.menus&&(g.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(H,S,ea){this.menus.createPopupMenu(H,S,ea)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(H){g.popupMenuHandler.hideMenu()}));this.keyHandler=this.createKeyHandler(a);this.getKeyHandler=function(){return keyHandler};g.connectionHandler.addListener(mxEvent.CONNECT,function(H,S){var ea=[S.getProperty("cell")];S.getProperty("terminalInserted")&&(ea.push(S.getProperty("terminal")),window.setTimeout(function(){null!=e.hoverIcons&&e.hoverIcons.update(g.view.getState(ea[ea.length-1]))},0));g.pasteCellStyles(ea)});this.addListener("styleChanged",mxUtils.bind(this,function(H,S){H=S.getProperty("force");(this.updateDefaultStyle||H)&&g.copyCellStyles(S.getProperty("cells"),S.getProperty("keys"),S.getProperty("values"),g.currentVertexStyle,g.currentEdgeStyle,m,p);null!=this.toolbar&&(this.toolbar.setFontName(g.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(g.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&("orthogonalEdgeStyle"==g.currentEdgeStyle.edgeStyle&&"1"==g.currentEdgeStyle.curved?this.toolbar.setMenuIcon(this.toolbar.edgeStyleMenu,@@ -2121,28 +2122,28 @@ EditorUi.prototype.createSelectionState=function(){for(var a=this.editor.graph,bEditorUi.prototype.findCommonProperties=function(a,b,f,e){if(null!=b){var g=mxUtils.bind(this,function(h){if(null!=h)if(f)for(var m=0;m<h.length;m++){if("function"!==typeof h[m].isVisible||h[m].isVisible(e,this.format))b[h[m].name]=h[m]}else for(var p in b){var k=!1;for(m=0;m<h.length;m++)if(h[m].name==p&&h[m].type==b[p].type){k=!0;break}k||delete b[p]}}),d=this.editor.graph.view.getState(a);null!=d&&null!=d.shape&&(d.shape.commonCustomPropAdded||(d.shape.commonCustomPropAdded=!0,d.shape.customProperties=d.shape.customProperties||[],d.cell.vertex?Array.prototype.push.apply(d.shape.customProperties,Editor.commonVertexProperties):Array.prototype.push.apply(d.shape.customProperties,Editor.commonEdgeProperties)),g(d.shape.customProperties));a=a.getAttribute("customProperties");if(null!=a)try{g(JSON.parse(a))}catch(h){}}};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(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),f=this.editor.graph.model,e=f.getParent(b[0]),g=f.getParent(e);if(null!=e&&null!=g){for(var d=e.getIndex(b[0]),h=g.getIndex(e),m=null,p=1,k=1,v=0,w=h<g.getChildCount()-1?f.getChildAt(f.getChildAt(g,h+1),d):null;v<b.length-1;){var y=b[++v];null==w||w!=y||null!=m&&p!=m||(m=p,p=0,k++,e=f.getParent(w),w=h+k<g.getChildCount()?f.getChildAt(f.getChildAt(g,h+k),d):null);var C=this.editor.graph.view.getState(y);-if(y==f.getChildAt(e,d+p)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))p++;else break}v==k*p-1&&(a.mergeCell=b[0],a.colspan=p,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.editor.graph.sizeDidChange()}),0)};+EditorUi.prototype.updateSelectionStateForTableCells=function(a){if(1<a.cells.length&&a.cell){var b=mxUtils.sortCells(a.cells),f=this.editor.graph.model,e=f.getParent(b[0]),g=f.getParent(e);if(null!=e&&null!=g){for(var d=e.getIndex(b[0]),h=g.getIndex(e),m=null,p=1,k=1,u=0,w=h<g.getChildCount()-1?f.getChildAt(f.getChildAt(g,h+1),d):null;u<b.length-1;){var y=b[++u];null==w||w!=y||null!=m&&p!=m||(m=p,p=0,k++,e=f.getParent(w),w=h+k<g.getChildCount()?f.getChildAt(f.getChildAt(g,h+k),d):null);var C=this.editor.graph.view.getState(y);+if(y==f.getChildAt(e,d+p)&&null!=C&&1==mxUtils.getValue(C.style,"colspan",1)&&1==mxUtils.getValue(C.style,"rowspan",1))p++;else break}u==k*p-1&&(a.mergeCell=b[0],a.colspan=p,a.rowspan=k)}}};EditorUi.prototype.windowResized=function(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.editor.graph.sizeDidChange()}),0)};EditorUi.prototype.createTimeout=function(a,b,f){var e=!0,g=null,d=mxUtils.bind(this,function(m){g.clear()&&(e=!1,m=null!=m?m:{code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.createTimeout(a,b,f)})},null!=f?f(m):this.handleError(m))}),h=window.setTimeout(d,null!=a?a:this.timeout);g={clear:function(){window.clearTimeout(h);return e},isAlive:function(){return e}};null!=b&&this.tryAndHandle(mxUtils.bind(this,function(){b(g)}),d);return g};EditorUi.prototype.tryAndHandle=function(a,b){try{a()}catch(f){null!=b?b(f):this.handleError(f)}};-EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,f){var e=this.editor.graph;a=null!=a?a:e.getSelectionCells();var g=Graph.colorStyles,d=document.createElement("div");e.model.beginUpdate();try{for(var h=0;h<a.length;h++)if(e.model.isEdge(a[h])||e.model.isVertex(a[h])){var m=e.getCellStyle(a[h],!1);if(null!=m)for(var p=0;p<g.length;p++)try{var k=m[g[p]];if(mxUtils.isLightDarkColor(k)){var v=mxUtils.getLightDarkColor(k);e.setCellStyles(g[p],v.light,[a[h]])}}catch(y){}b&&e.isHtmlLabel(a[h])&&-"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(e.getLabel(a[h])),Graph.addLightDarkColors(d,null,null,function(y,C,D){return mxUtils.isLightDarkColor(D)?(D=mxUtils.getLightDarkColor(D),y.style.setProperty(C,D.light),!0):!1})&&e.cellLabelChanged(a[h],d.innerHTML))}if(f&&mxUtils.isLightDarkColor(e.background)){v=mxUtils.getLightDarkColor(e.background);var w=new ChangePageSetup(this,v.light);w.ignoreImage=!0;e.model.execute(w)}}finally{e.model.endUpdate()}return a};+EditorUi.prototype.removeUserDefinedDarkColors=function(a,b,f){var e=this.editor.graph;a=null!=a?a:e.getSelectionCells();var g=Graph.colorStyles,d=document.createElement("div");e.model.beginUpdate();try{for(var h=0;h<a.length;h++)if(e.model.isEdge(a[h])||e.model.isVertex(a[h])){var m=e.getCellStyle(a[h],!1);if(null!=m)for(var p=0;p<g.length;p++)try{var k=m[g[p]];if(mxUtils.isLightDarkColor(k)){var u=mxUtils.getLightDarkColor(k);e.setCellStyles(g[p],u.light,[a[h]])}}catch(y){}b&&e.isHtmlLabel(a[h])&&+"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(e.getLabel(a[h])),Graph.addLightDarkColors(d,null,null,function(y,C,D){return mxUtils.isLightDarkColor(D)?(D=mxUtils.getLightDarkColor(D),y.style.setProperty(C,D.light),!0):!1})&&e.cellLabelChanged(a[h],d.innerHTML))}if(f&&mxUtils.isLightDarkColor(e.background)){u=mxUtils.getLightDarkColor(e.background);var w=new ChangePageSetup(this,u.light);w.ignoreImage=!0;e.model.execute(w)}}finally{e.model.endUpdate()}return a};EditorUi.prototype.updateSelectionStateForCell=function(a,b,f,e){f=this.editor.graph;a.cells.push(b);if(f.getModel().isVertex(b)){a.connections=0<f.model.getEdgeCount(b);a.unlocked=a.unlocked&&!f.isCellLocked(b);a.resizable=a.resizable&&f.isCellResizable(b);a.rotatable=a.rotatable&&f.isCellRotatable(b);a.movable=a.movable&&f.isCellMovable(b)&&!f.isTableRow(b)&&!f.isTableCell(b);a.swimlane=a.swimlane||f.isSwimlane(b);a.table=a.table||f.isTable(b);a.cell=a.cell||f.isTableCell(b);a.row=a.row||f.isTableRow(b);a.vertices.push(b);var g=f.getCellGeometry(b);if(null!=g&&(0<g.width?null==a.width?a.width=g.width:a.width!=g.width&&(a.width=""):a.containsLabel=!0,0<g.height?null==a.height?a.height=g.height:a.height!=g.height&&(a.height=""):a.containsLabel=!0,!g.relative||null!=g.offset)){var d=g.relative?g.offset.x:g.x;g=g.relative?g.offset.y:g.y;null==a.x?a.x=d:a.x!=d&&(a.x="");null==a.y?a.y=g:a.y!=g&&(a.y="")}}else f.getModel().isEdge(b)&&(a.edges.push(b),a.connections=!0,a.resizable=!1,a.rotatable=!1,a.movable=!1);d=f.view.getState(b);null!=d&&(a.html=a.html&&f.isHtmlLabel(b),a.autoSize=a.autoSize||f.isAutoSizeState(d),a.glass=a.glass&&f.isGlassState(d),a.rounded=a.rounded&&f.isRoundedState(d),a.lineJumps=a.lineJumps&&f.isLineJumpState(d),a.image=a.image||f.isImageState(d),a.shadow=a.shadow&&f.isShadowState(d),a.fill=a.fill&&f.isFillState(d),a.gradient=a.fill&&f.isGradientState(d),a.stroke=a.stroke&&f.isStrokeState(d),b=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE,null),a.containsImage=a.containsImage||"image"==b,f.mergeStyle(d.style,a.style,e))};EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(p,k){"mouseDown"==k.getProperty("eventName")&&b.hideShapePicker()}));var f=mxUtils.bind(this,function(){b.hideShapePicker(!0)});a.addListener("wheel",f);a.addListener(mxEvent.ESCAPE,f);a.view.addListener(mxEvent.SCALE,f);a.view.addListener(mxEvent.SCALE_AND_TRANSLATE,f);a.getSelectionModel().addListener(mxEvent.CHANGE,f);var e=a.popupMenuHandler.isMenuShowing;-a.popupMenuHandler.isMenuShowing=function(){return e.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var g=a.dblClick;a.dblClick=function(p,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(p)||a.isCellLocked(a.getDefaultParent()))g.apply(this,arguments);else{var v=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));mxEvent.consume(p);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(v.x,v.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",-f);var d=this.hoverIcons.drag;this.hoverIcons.drag=function(){b.hideShapePicker();d.apply(this,arguments)};var h=this.hoverIcons.execute;this.hoverIcons.execute=function(p,k,v){var w=v.getEvent();this.graph.isCloneEvent(w)||mxEvent.isShiftDown(w)?h.apply(this,arguments):this.graph.connectVertex(p.cell,k,this.graph.defaultEdgeLength,w,null,null,mxUtils.bind(this,function(y,C,D){var E=a.getCompositeParent(p.cell);y=a.getCellGeometry(E);for(v.consume();null!=E&&a.model.isVertex(E)&&null!=y&&y.relative;)cell=-E,E=a.model.getParent(cell),y=a.getCellGeometry(E);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(v.getGraphX(),v.getGraphY(),E,mxUtils.bind(this,function(G){D(G);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(G))}),k)}),30)}),mxUtils.bind(this,function(y){this.graph.selectCellsForConnectVertex(y,w,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var v=-k.getProperty("arrow"),w=k.getProperty("direction"),y=k.getProperty("event");v=v.getBoundingClientRect();var C=mxUtils.getOffset(a.container),D=a.container.scrollLeft+v.x-C.x;C=a.container.scrollTop+v.y-C.y;var E=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(D,C,E,mxUtils.bind(this,function(J){null!=J&&a.connectVertex(E,w,a.defaultEdgeLength,y,!0,!1,function(M,Q,L){L(J);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(J))},-function(M){a.selectCellsForConnectVertex(M)},y,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,v,D,C,w),mxUtils.setOpacity(G,30),mxEvent.addListener(G,"mouseenter",function(){mxUtils.setOpacity(G,100)}),mxEvent.addListener(G,"mouseleave",function(){b.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m)}))}};+a.popupMenuHandler.isMenuShowing=function(){return e.apply(this,arguments)||null!=b.shapePicker||null!=b.currentMenu};var g=a.dblClick;a.dblClick=function(p,k){if(this.isEnabled())if(null!=k||null==b.sidebar||mxEvent.isShiftDown(p)||a.isCellLocked(a.getDefaultParent()))g.apply(this,arguments);else{var u=mxUtils.convertPoint(this.container,mxEvent.getClientX(p),mxEvent.getClientY(p));mxEvent.consume(p);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.x,u.y)}),30)}};if(null!=this.hoverIcons){this.hoverIcons.addListener("reset",+f);var d=this.hoverIcons.drag;this.hoverIcons.drag=function(){b.hideShapePicker();d.apply(this,arguments)};var h=this.hoverIcons.execute;this.hoverIcons.execute=function(p,k,u){var w=u.getEvent();this.graph.isCloneEvent(w)||mxEvent.isShiftDown(w)?h.apply(this,arguments):this.graph.connectVertex(p.cell,k,this.graph.defaultEdgeLength,w,null,null,mxUtils.bind(this,function(y,C,D){var E=a.getCompositeParent(p.cell);y=a.getCellGeometry(E);for(u.consume();null!=E&&a.model.isVertex(E)&&null!=y&&y.relative;)cell=+E,E=a.model.getParent(cell),y=a.getCellGeometry(E);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.getGraphX(),u.getGraphY(),E,mxUtils.bind(this,function(G){D(G);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(G))}),k)}),30)}),mxUtils.bind(this,function(y){this.graph.selectCellsForConnectVertex(y,w,this)}))};var m=null;this.hoverIcons.addListener("focus",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m);m=window.setTimeout(mxUtils.bind(this,function(){var u=+k.getProperty("arrow"),w=k.getProperty("direction"),y=k.getProperty("event");u=u.getBoundingClientRect();var C=mxUtils.getOffset(a.container),D=a.container.scrollLeft+u.x-C.x;C=a.container.scrollTop+u.y-C.y;var E=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(D,C,E,mxUtils.bind(this,function(J){null!=J&&a.connectVertex(E,w,a.defaultEdgeLength,y,!0,!1,function(M,Q,K){K(J);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(J))},+function(M){a.selectCellsForConnectVertex(M)},y,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,u,D,C,w),mxUtils.setOpacity(G,30),mxEvent.addListener(G,"mouseenter",function(){mxUtils.setOpacity(G,100)}),mxEvent.addListener(G,"mouseleave",function(){b.hideShapePicker()}))}),Editor.shapePickerHoverDelay)}));this.hoverIcons.addListener("blur",mxUtils.bind(this,function(p,k){null!=m&&window.clearTimeout(m)}))}};EditorUi.prototype.centerShapePicker=function(a,b,f,e,g){if(g==mxConstants.DIRECTION_EAST||g==mxConstants.DIRECTION_WEST)a.style.width="40px";var d=a.getBoundingClientRect();g==mxConstants.DIRECTION_NORTH?(f-=d.width/2-10,e-=d.height+6):g==mxConstants.DIRECTION_SOUTH?(f-=d.width/2-10,e+=b.height+6):g==mxConstants.DIRECTION_WEST?(f-=d.width+6,e-=d.height/2-10):g==mxConstants.DIRECTION_EAST&&(f+=b.width+6,e-=d.height/2-10);a.style.left=f+"px";a.style.top=e+"px"};EditorUi.prototype.showShapePicker=function(a,b,f,e,g,d,h,m,p){var k=null;this.editor.graph.freehand.isDrawing()||(m=m||null==f,k=this.createShapePicker(a,b,f,e,g,mxUtils.bind(this,function(){this.hideShapePicker()}),this.getCellsForShapePicker(f,d,m),d,h,m,p),null!=k&&(null==this.hoverIcons||d||this.hoverIcons.reset(),a=this.editor.graph,a.popupMenuHandler.hideMenu(),a.tooltipHandler.hideTooltip(),this.hideCurrentMenu(),this.hideShapePicker(),this.shapePickerCallback=e,this.shapePicker=k));return k};-EditorUi.prototype.createShapePicker=function(a,b,f,e,g,d,h,m,p,k,v){v=null!=v?v:!0;var w=this.editor.graph,y=null;p=null!=p?p:function(E){E=E[0];var G=0,J=0,M=E.geometry;null!=M&&(w.model.isEdge(E)&&(E=M.getTerminalPoint(!1),M=new mxRectangle(0,0,E.x,E.y)),G=M.width/2,J=M.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-J))};if(null!=h&&0<h.length){var C=this;w=this.editor.graph;y=document.createElement("div");+EditorUi.prototype.createShapePicker=function(a,b,f,e,g,d,h,m,p,k,u){u=null!=u?u:!0;var w=this.editor.graph,y=null;p=null!=p?p:function(E){E=E[0];var G=0,J=0,M=E.geometry;null!=M&&(w.model.isEdge(E)&&(E=M.getTerminalPoint(!1),M=new mxRectangle(0,0,E.x,E.y)),G=M.width/2,J=M.height/2);return new mxPoint(w.snap(Math.round(a/w.view.scale)-w.view.translate.x-G),w.snap(Math.round(b/w.view.scale)-w.view.translate.y-J))};if(null!=h&&0<h.length){var C=this;w=this.editor.graph;y=document.createElement("div");g=w.view.getState(f);var D=null==f||null!=g&&w.isTransparentState(g)?null:w.copyStyle(f);y.className="geShapePicker";y.setAttribute("title",mxResources.get("sidebarTooltip"));y.style.left=Math.round(a)+"px";y.style.top=Math.round(b)+"px";mxClient.IS_POINTER&&(y.style.touchAction="none");m||mxUtils.setPrefixedStyle(y.style,"transform","translate(-22px,-22px)");w.container.appendChild(y);g=mxUtils.bind(this,function(E){var G=document.createElement("a");y.appendChild(G);null!=D&&"1"!=urlParams.sketch?-this.sidebar.graph.pasteStyle(D,[E]):this.sidebar.graph.pasteCellStyles([E],w.currentVertexStyle,w.currentEdgeStyle);var J=E.geometry;w.model.isEdge(E)&&(J=J.getTerminalPoint(!1),J=new mxRectangle(0,0,J.x,J.y));null!=J&&(J=this.sidebar.createVertexTemplateFromCells([E],J.width,J.height,"",!0,!1,null,!1,mxUtils.bind(this,function(M){if(!mxEvent.isAltDown(M)||1!=w.getSelectionCount()){if(!mxEvent.isShiftDown(M)||null==f&&w.isSelectionEmpty()){var Q=w.cloneCell(E);if(null!=e)e(Q);else{var L=p([Q]);w.model.isEdge(Q)?-Q.geometry.translate(L.x,L.y):(Q.geometry.x=L.x,Q.geometry.y=L.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);v&&w.startEditing(Q);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(Q))}}else Q=w.getEditableCells(null!=f?[f]:w.getSelectionCells()),w.updateShapes(E,Q);null!=d&&d(M);mxEvent.consume(M)}}),25,25,null,null,f),J.style.display="flex",J.style.alignItems=+this.sidebar.graph.pasteStyle(D,[E]):this.sidebar.graph.pasteCellStyles([E],w.currentVertexStyle,w.currentEdgeStyle);var J=E.geometry;w.model.isEdge(E)&&(J=J.getTerminalPoint(!1),J=new mxRectangle(0,0,J.x,J.y));null!=J&&(J=this.sidebar.createVertexTemplateFromCells([E],J.width,J.height,"",!0,!1,null,!1,mxUtils.bind(this,function(M){if(!mxEvent.isAltDown(M)||1!=w.getSelectionCount()){if(!mxEvent.isShiftDown(M)||null==f&&w.isSelectionEmpty()){var Q=w.cloneCell(E);if(null!=e)e(Q);else{var K=p([Q]);w.model.isEdge(Q)?+Q.geometry.translate(K.x,K.y):(Q.geometry.x=K.x,Q.geometry.y=K.y);w.model.beginUpdate();try{w.addCell(Q),w.model.isVertex(Q)&&w.isAutoSizeCell(Q)&&w.updateCellSize(Q)}finally{w.model.endUpdate()}w.setSelectionCell(Q);w.scrollCellToVisible(Q);u&&w.startEditing(Q);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(Q))}}else Q=w.getEditableCells(null!=f?[f]:w.getSelectionCells()),w.updateShapes(E,Q);null!=d&&d(M);mxEvent.consume(M)}}),25,25,null,null,f),J.style.display="flex",J.style.alignItems="center",J.style.justifyContent="center",G.appendChild(J))});for(k=0;k<(m?Math.min(h.length,4):h.length);k++)g(h[k]);h=y.offsetTop+y.clientHeight-(w.container.scrollTop+w.container.offsetHeight);0<h&&(y.style.top=Math.max(w.container.scrollTop+22,b-h)+"px");h=y.offsetLeft+y.clientWidth-(w.container.scrollLeft+w.container.offsetWidth);0<h&&(y.style.left=Math.max(w.container.scrollLeft+22,a-h)+"px")}return y};EditorUi.prototype.getCellsForShapePicker=function(a,b,f){var e=this.editor.graph,g=mxUtils.bind(this,function(d,h,m,p){return e.createVertex(null,null,p||"",0,0,h||120,m||60,d,!1)});b=mxUtils.bind(this,function(d,h,m){d=new mxCell(m||"",new mxGeometry(0,0,e.defaultEdgeLength+20,0),d);d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new mxPoint(d.geometry.width,null!=h?h:0),!1);d.geometry.points=null!=h?[new mxPoint(d.geometry.width/2,h)]:[];d.geometry.relative=!0;d.edge=!0;return d});if(null!=a)try{a=e.cloneCell(a),e.model.isVertex(a)&&null!=a.geometry&&(a.geometry.x=0,a.geometry.y=0)}catch(d){a=null}null==a&&(a=g(e.appendFontSize("text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;",e.vertexFontSize),40,20,"Text"),e.model.isVertex(a)&&e.isAutoSizeCell(a)&&Graph.createOffscreenGraph(e.getStylesheet()).updateCellSize(a));a=[a,g("whiteSpace=wrap;html=1;"),g("ellipse;whiteSpace=wrap;html=1;",80,80),g("rhombus;whiteSpace=wrap;html=1;",@@ -2159,8 +2160,8 @@ EditorUi.prototype.getImageForMarker=function(a,b,f){return"flexArrow"==f?null!=a?"1"!=b?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.src:"box"==a?Format.boxMarkerImage.src:"halfCircle"==a?Format.halfCircleMarkerImage.src:"openAsync"==a?Format.openAsyncFilledMarkerImage.src:"async"==a?"1"!=b?Format.asyncMarkerImage.src:Format.asyncFilledMarkerImage.src:"dash"==a?Format.dashMarkerImage.src:"baseDash"==a?Format.baseDashMarkerImage.src:"cross"==a?Format.crossMarkerImage.src:"circle"==a?Format.circleMarkerImage.src:"circlePlus"==a?Format.circlePlusMarkerImage.src:"ERone"==a?Format.EROneMarkerImage.src:"ERmandOne"==a?Format.ERmandOneMarkerImage.src:"ERmany"==a?Format.ERmanyMarkerImage.src:"ERoneToMany"==a?Format.ERoneToManyMarkerImage.src:"ERzeroToOne"==a?Format.ERzeroToOneMarkerImage.src:"ERzeroToMany"==a?Format.ERzeroToManyMarkerImage.src:null};EditorUi.prototype.createMenus=function(){return null};EditorUi.prototype.updatePasteActionStates=function(){var a=this.editor.graph,b=this.actions.get("paste"),f=this.actions.get("pasteHere");b.setEnabled(this.editor.graph.cellEditor.isContentEditing()||(null!=navigator.clipboard||!mxClipboard.isEmpty())&&a.isEnabled()&&!a.isCellLocked(a.getDefaultParent()));f.setEnabled(b.isEnabled())};-EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var h=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{h=h||d.getSelectionCells();h=d.getExportableCells(d.model.getTopmostCells(h));for(var m={},p=d.createCellLookup(h),k=d.cloneCells(h,null,m),v=new mxGraphModel,w=v.getChildAt(v.getRoot(),-0),y=0;y<k.length;y++){v.add(w,k[y]);var C=d.view.getState(h[y]);if(null!=C){var D=d.getCellGeometry(k[y]);null!=D&&D.relative&&!v.isEdge(h[y])&&null==p[mxObjectIdentity.get(v.getParent(h[y]))]&&(D.offset=null,D.relative=!1,D.x=C.x/C.view.scale-C.view.translate.x,D.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,p),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return h};var f=mxClipboard.paste;mxClipboard.paste=function(d){var h=+EditorUi.prototype.initClipboard=function(){var a=this,b=mxClipboard.cut;mxClipboard.cut=function(d){d.cellEditor.isContentEditing()?document.execCommand("cut",!1,null):b.apply(this,arguments);a.updatePasteActionStates()};mxClipboard.copy=function(d){var h=null;if(d.cellEditor.isContentEditing())document.execCommand("copy",!1,null);else{h=h||d.getSelectionCells();h=d.getExportableCells(d.model.getTopmostCells(h));for(var m={},p=d.createCellLookup(h),k=d.cloneCells(h,null,m),u=new mxGraphModel,w=u.getChildAt(u.getRoot(),+0),y=0;y<k.length;y++){u.add(w,k[y]);var C=d.view.getState(h[y]);if(null!=C){var D=d.getCellGeometry(k[y]);null!=D&&D.relative&&!u.isEdge(h[y])&&null==p[mxObjectIdentity.get(u.getParent(h[y]))]&&(D.offset=null,D.relative=!1,D.x=C.x/C.view.scale-C.view.translate.x,D.y=C.y/C.view.scale-C.view.translate.y)}}d.updateCustomLinks(d.createCellMapping(m,p),k);mxClipboard.insertCount=1;mxClipboard.setCells(k)}a.updatePasteActionStates();return h};var f=mxClipboard.paste;mxClipboard.paste=function(d){var h=null;d.cellEditor.isContentEditing()?document.execCommand("paste",!1,null):h=f.apply(this,arguments);a.updatePasteActionStates();return h};var e=this.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){e.apply(this,arguments);a.updatePasteActionStates()};var g=this.editor.graph.cellEditor.stopEditing;this.editor.graph.cellEditor.stopEditing=function(d,h){g.apply(this,arguments);a.updatePasteActionStates()};this.updatePasteActionStates()};EditorUi.prototype.lazyZoomDelay=20;EditorUi.prototype.wheelZoomDelay=500;EditorUi.prototype.buttonZoomDelay=600;EditorUi.prototype.initCanvas=function(){var a=this.editor.graph;a.timerAutoScroll=!0;a.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((a.container.offsetWidth-34)/a.view.scale)),Math.max(0,Math.round((a.container.offsetHeight-34)/a.view.scale)))};a.view.getBackgroundPageBounds=function(){var aa=this.graph.getPageLayout(),P=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+aa.x*P.width),this.scale*(this.translate.y+aa.y*P.height),this.scale*aa.width*@@ -2172,16 +2173,16 @@ za=a.view.scale,Ka=mxRectangle.fromRectangle(Ja);Ka.x=Ka.x/za-ya.x;Ka.y=Ka.y/za-"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var d=mxUtils.bind(this,function(){var aa=mxUtils.getCurrentStyle(a.container);a.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",d);d();var h=0;d=mxUtils.bind(this,function(aa,P,ba){h++;var ma=document.createElement("span");ma.style.paddingLeft="8px";ma.style.paddingRight="8px";ma.style.cursor="pointer";mxEvent.addListener(ma,"click",aa);null!=ba&&ma.setAttribute("title",ba);aa=document.createElement("img");aa.setAttribute("border","0");aa.setAttribute("src",P);aa.style.width="36px";aa.style.filter="invert(100%)";ma.appendChild(aa);this.chromelessToolbar.appendChild(ma);return ma});if(null!=g.backBtn){var m=Graph.sanitizeLink(g.backBtn.url);null!=m&&d(mxUtils.bind(this,function(aa){window.location.href=m;mxEvent.consume(aa)}),Editor.backImage,mxResources.get("back",null,"Back"))}if(this.isPagesEnabled()){var p=d(mxUtils.bind(this,function(aa){this.actions.get("previousPage").funct();mxEvent.consume(aa)}),Editor.chevronLeftImage,mxResources.get("previousPage")),k=document.createElement("div");k.style.fontFamily=Editor.defaultHtmlFont;k.style.display="inline-block";k.style.verticalAlign="top";k.style.fontWeight="bold";k.style.marginTop="8px";k.style.fontSize="14px";k.style.cursor="default";k.style.color=-mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var v=d(mxUtils.bind(this,function(aa){this.actions.get("nextPage").funct();mxEvent.consume(aa)}),Editor.chevronRightImage,mxResources.get("nextPage")),w=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){k.innerText="";var aa=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(k,aa+1+" / "+this.pages.length);k.setAttribute("title",mxResources.get("currentPage")+-": "+this.currentPage.getName());p.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(aa-1,this.pages.length)].getName());v.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(aa+1,this.pages.length)].getName())}});p.style.paddingLeft="0px";p.style.paddingRight="4px";v.style.paddingLeft="4px";v.style.paddingRight="0px";var y=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(v.style.display="",p.style.display=-"",k.style.display="inline-block"):(v.style.display="none",p.style.display="none",k.style.display="none");w()});if(null!=this.menus){var C=this.menus.get("pages");null!=C&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(aa){var P=new mxPopupMenu(C.funct);P.smartSeparators=!0;P.showDisabled=!0;P.autoExpand=!0;P.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(P,arguments);P.destroy()});var ba=mxUtils.getOffset(k);P.popup(ba.x,ba.y+k.offsetHeight,null,aa);mxEvent.addListener(P.div,+mxClient.IS_IE||mxClient.IS_IE11?"#000000":"#ffffff";this.chromelessToolbar.appendChild(k);var u=d(mxUtils.bind(this,function(aa){this.actions.get("nextPage").funct();mxEvent.consume(aa)}),Editor.chevronRightImage,mxResources.get("nextPage")),w=mxUtils.bind(this,function(){if(null!=this.pages&&1<this.pages.length&&null!=this.currentPage){k.innerText="";var aa=mxUtils.indexOf(this.pages,this.currentPage);mxUtils.write(k,aa+1+" / "+this.pages.length);k.setAttribute("title",mxResources.get("currentPage")++": "+this.currentPage.getName());p.setAttribute("title",mxResources.get("previousPage")+": "+this.pages[mxUtils.mod(aa-1,this.pages.length)].getName());u.setAttribute("title",mxResources.get("nextPage")+": "+this.pages[mxUtils.mod(aa+1,this.pages.length)].getName())}});p.style.paddingLeft="0px";p.style.paddingRight="4px";u.style.paddingLeft="4px";u.style.paddingRight="0px";var y=mxUtils.bind(this,function(){null!=this.pages&&1<this.pages.length&&null!=this.currentPage?(u.style.display="",p.style.display=+"",k.style.display="inline-block"):(u.style.display="none",p.style.display="none",k.style.display="none");w()});if(null!=this.menus){var C=this.menus.get("pages");null!=C&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(aa){var P=new mxPopupMenu(C.funct);P.smartSeparators=!0;P.showDisabled=!0;P.autoExpand=!0;P.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(P,arguments);P.destroy()});var ba=mxUtils.getOffset(k);P.popup(ba.x,ba.y+k.offsetHeight,null,aa);mxEvent.addListener(P.div,"mouseleave",mxUtils.bind(this,function(){P.hideMenu()}))}))}this.editor.addListener("resetGraphView",y);this.editor.addListener("pageSelected",w)}d(mxUtils.bind(this,function(aa){this.actions.get("zoomOut").funct();mxEvent.consume(aa)}),Editor.zoomOutImage,mxResources.get("zoomOut")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(aa){this.actions.get("zoomIn").funct();mxEvent.consume(aa)}),Editor.zoomInImage,mxResources.get("zoomIn")+" (Alt+Mousewheel)");d(mxUtils.bind(this,function(aa){a.isLightboxView()?(1==a.view.scale?this.lightboxFit():a.zoomTo(1),this.chromelessResize(!1)):this.chromelessResize(!0);mxEvent.consume(aa)}),Editor.zoomFitImage,mxResources.get("fit"));var D=null,E=null,G=mxUtils.bind(this,function(aa){null!=D&&(window.clearTimeout(D),D=null);null!=E&&(window.clearTimeout(E),E=null);D=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);D=null;E=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";E=null}),600)}),aa||200)}),J=mxUtils.bind(this,function(aa){null!=D&&(window.clearTimeout(D),D=null);null!=E&&(window.clearTimeout(E),E=null);this.chromelessToolbar.style.display="";mxUtils.setOpacity(this.chromelessToolbar,aa||30)});if("1"==urlParams.layers){this.layersDialog=null;var M=d(mxUtils.bind(this,function(aa){if(null!=this.layersDialog)this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null;else{this.layersDialog=a.createLayersDialog(mxUtils.bind(this,function(){this.chromelessResize&&this.chromelessResize()}),!0);mxEvent.addListener(this.layersDialog,"mouseleave",mxUtils.bind(this,function(){this.layersDialog.parentNode.removeChild(this.layersDialog);this.layersDialog=null}));var P=M.getBoundingClientRect();mxUtils.setPrefixedStyle(this.layersDialog.style,"borderRadius","5px");this.layersDialog.style.position="fixed";this.layersDialog.style.fontFamily=Editor.defaultHtmlFont;this.layersDialog.style.width="160px";this.layersDialog.style.padding="4px 2px 4px 2px";this.layersDialog.style.left=P.left+"px";this.layersDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";mxClient.IS_IE||mxClient.IS_IE11?(this.layersDialog.style.backgroundColor="#ffffff",this.layersDialog.style.border="2px solid black",this.layersDialog.style.color="#000000"):(this.layersDialog.style.backgroundColor="#000000",this.layersDialog.style.color="#ffffff",mxUtils.setOpacity(this.layersDialog,80));P=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=P.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(aa)}),Editor.layersImage,mxResources.get("layers")),Q=a.getModel();Q.addListener(mxEvent.CHANGE,function(){M.style.display=1<Q.getChildCount(Q.root)?"":"none"})}("1"!=urlParams.openInSameWin||navigator.standalone)&&this.addChromelessToolbarItems(d);null==this.editor.editButtonLink&&null==this.editor.editButtonFunc||d(mxUtils.bind(this,function(aa){if(null!=this.editor.editButtonFunc)this.editor.editButtonFunc();-else if("_blank"==this.editor.editButtonLink){var P=null!=this.currentPage?this.currentPage.getId():null;this.editor.editAsNew(this.getEditBlankXml(),null,null,P)}else a.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(aa)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(y=0;y<this.lightboxToolbarActions.length;y++){var L=this.lightboxToolbarActions[y];L.elem=d(L.fn,L.icon,L.tooltip)}if(null!=g.refreshBtn){var W=null==g.refreshBtn.url?null:Graph.sanitizeLink(g.refreshBtn.url);+else if("_blank"==this.editor.editButtonLink){var P=null!=this.currentPage?this.currentPage.getId():null;this.editor.editAsNew(this.getEditBlankXml(),null,null,P)}else a.openLink(this.editor.editButtonLink,"editWindow");mxEvent.consume(aa)}),Editor.editImage,mxResources.get("edit"));if(null!=this.lightboxToolbarActions)for(y=0;y<this.lightboxToolbarActions.length;y++){var K=this.lightboxToolbarActions[y];K.elem=d(K.fn,K.icon,K.tooltip)}if(null!=g.refreshBtn){var W=null==g.refreshBtn.url?null:Graph.sanitizeLink(g.refreshBtn.url);d(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!=g.fullscreenBtn&&window.self!==window.top&&d(mxUtils.bind(this,function(aa){g.fullscreenBtn.url?a.openLink(g.fullscreenBtn.url):a.openLink(window.location.href);mxEvent.consume(aa)}),Editor.fullscreenImage,mxResources.get("openInNewWindow",null,"Open in New Window"));!g.noCloseBtn&&(g.closeBtn&&window.self===window.top||a.lightbox&&("1"==urlParams.close||this.container!=document.body))&&d(mxUtils.bind(this,function(aa){"1"==urlParams.close||g.closeBtn?window.close():(this.destroy(),mxEvent.consume(aa))}),Editor.closeImage,mxResources.get("close")+" (Escape)");this.chromelessToolbar.style.display="none";a.isViewer()||mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transform","translate(-50%,0)");a.container.appendChild(this.chromelessToolbar);mxEvent.addListener(a.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(aa){mxEvent.isTouchEvent(aa)||(mxEvent.isShiftDown(aa)||J(30),G())}));mxEvent.addListener(this.chromelessToolbar,mxClient.IS_POINTER?"pointermove":"mousemove",function(aa){mxEvent.consume(aa)});mxEvent.addListener(this.chromelessToolbar,"mouseenter",mxUtils.bind(this,function(aa){a.tooltipHandler.resetTimer();a.tooltipHandler.hideTooltip();mxEvent.isShiftDown(aa)?G():J(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(aa){mxEvent.isShiftDown(aa)?@@ -2249,11 +2250,11 @@ EditorUi.prototype.setStatusText=function(a){this.statusContainer.innerHTML=Grap"transition","all 0.2s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(f,100);mxUtils.setPrefixedStyle(f.style,"transform","scaleX(1)");mxUtils.setPrefixedStyle(f.style,"transition","all 1s ease");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(f.style,"transform","scaleX(0)");mxUtils.setOpacity(f,0);window.setTimeout(mxUtils.bind(this,function(){null!=f.parentNode&&f.parentNode.removeChild(f)}),1E3)}),Editor.updateStatusInterval/2)}),0)})(a[b])};EditorUi.prototype.clearStatus=function(){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus("")}))};EditorUi.prototype.updateStatus=function(a){null!=a&&a();this.lastStatusUpdate=a};EditorUi.prototype.updateStatusAgain=function(){null!=this.lastStatusUpdate&&this.lastStatusUpdate()};EditorUi.prototype.createStatusDiv=function(a){var b=document.createElement("div");b.className="geStatusDiv";b.setAttribute("title",a);b.innerText=a;return b};EditorUi.prototype.createToolbar=function(a){return new Toolbar(this,a)};EditorUi.prototype.createSidebar=function(a){return new Sidebar(this,a)};EditorUi.prototype.createFormat=function(a){return new Format(this,a)};EditorUi.prototype.createDiv=function(a){var b=document.createElement("div");b.className=a;return b};-EditorUi.prototype.addSplitHandler=function(a,b,f,e){function g(w){if(null!=h){var y=new mxPoint(mxEvent.getClientX(w),mxEvent.getClientY(w));e(Math.max(0,m+(b?y.x-h.x:h.y-y.y)-f));mxEvent.consume(w);m!=v()&&(p=!0,k=null)}}function d(w){g(w);h=m=null}var h=null,m=null,p=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var v=mxUtils.bind(this,function(){var w=parseInt(b?a.offsetLeft:a.offsetTop);b||(w+=f);return w});mxEvent.addGestureListeners(a,function(w){h=new mxPoint(mxEvent.getClientX(w),-mxEvent.getClientY(w));m=v();p=!1;mxEvent.consume(w)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(w){if(!p&&this.hsplitClickEnabled){var y=null!=k?k-f:0;k=v();e(y);mxEvent.consume(w)}}));mxEvent.addGestureListeners(document,null,g,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,g,d)})};+EditorUi.prototype.addSplitHandler=function(a,b,f,e){function g(w){if(null!=h){var y=new mxPoint(mxEvent.getClientX(w),mxEvent.getClientY(w));e(Math.max(0,m+(b?y.x-h.x:h.y-y.y)-f));mxEvent.consume(w);m!=u()&&(p=!0,k=null)}}function d(w){g(w);h=m=null}var h=null,m=null,p=!0,k=null;mxClient.IS_POINTER&&(a.style.touchAction="none");var u=mxUtils.bind(this,function(){var w=parseInt(b?a.offsetLeft:a.offsetTop);b||(w+=f);return w});mxEvent.addGestureListeners(a,function(w){h=new mxPoint(mxEvent.getClientX(w),+mxEvent.getClientY(w));m=u();p=!1;mxEvent.consume(w)});mxEvent.addListener(a,"click",mxUtils.bind(this,function(w){if(!p&&this.hsplitClickEnabled){var y=null!=k?k-f:0;k=u();e(y);mxEvent.consume(w)}}));mxEvent.addGestureListeners(document,null,g,d);this.destroyFunctions.push(function(){mxEvent.removeGestureListeners(document,null,g,d)})};EditorUi.prototype.prompt=function(a,b,f){a=new FilenameDialog(this,b,mxResources.get("apply"),function(e){f(parseFloat(e))},a);this.showDialog(a.container,300,80,!0,!0);a.init()};EditorUi.prototype.handleError=function(a,b,f,e,g){a=null!=a&&null!=a.error?a.error:a;if(null!=a||null!=b){g=mxUtils.htmlEntities(mxResources.get("unknownError"));var d=mxResources.get("ok");b=null!=b?b:mxResources.get("error");null!=a&&null!=a.message&&(g=mxUtils.htmlEntities(a.message));this.showError(b,g,d,f,null,null,null,null,null,null,null,null,e?f:null)}else null!=f&&f()};-EditorUi.prototype.showError=function(a,b,f,e,g,d,h,m,p,k,v,w,y){a=new ErrorDialog(this,a,b,f||mxResources.get("ok"),e,g,d,h,w,m,p);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,v||100+20*b,!0,!1,y);a.init()};EditorUi.prototype.showDialog=function(a,b,f,e,g,d,h,m,p,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,f,e,g,d,h,m,p,k);this.dialogs.push(this.dialog)};+EditorUi.prototype.showError=function(a,b,f,e,g,d,h,m,p,k,u,w,y){a=new ErrorDialog(this,a,b,f||mxResources.get("ok"),e,g,d,h,w,m,p);b=Math.ceil(null!=b?b.length/50:1);this.showDialog(a.container,k||340,u||100+20*b,!0,!1,y);a.init()};EditorUi.prototype.showDialog=function(a,b,f,e,g,d,h,m,p,k){this.editor.graph.tooltipHandler.resetTimer();this.editor.graph.tooltipHandler.hideTooltip();null==this.dialogs&&(this.dialogs=[]);this.dialog=new Dialog(this,a,b,f,e,g,d,h,m,p,k);this.dialogs.push(this.dialog)};EditorUi.prototype.hideDialog=function(a,b,f){var e=null;if(null!=this.dialogs&&0<this.dialogs.length)for(var g=this.dialogs.length-1;0<=g;g--)if(!this.dialogs[g].closing){e=this.dialogs[g];break}null==e||null!=f&&f!=this.dialog.container.firstChild||(e.closing=!0,0==e.close(a,b)?delete e.closing:(delete e.closing,a=mxUtils.lastIndexOf(this.dialogs,e),0<=a&&this.dialogs.splice(a,1),this.dialog=0<this.dialogs.length?this.dialogs[this.dialogs.length-1]:null,this.editor.fireEvent(new mxEventObject("hideDialog","dialog",e)),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 a=this.editor.graph;if(a.isEnabled())try{for(var b=a.getSelectionCells(),f=new mxDictionary,e=[],g=0;g<b.length;g++){var d=a.isTableCell(b[g])?a.model.getParent(b[g]):b[g];null==d||f.get(d)||(f.put(d,!0),e.push(d))}a.setSelectionCells(a.duplicateCells(e,!1))}catch(h){this.handleError(h)}};@@ -2274,12 +2275,12 @@ EditorUi.prototype.setBackgroundImage=function(a){this.editor.graph.setBackgrounEditorUi.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(a){function b(w,y,C){if(!e.isSelectionEmpty()&&e.isEnabled()){y=null!=y?y:1;var D=e.getCompositeParents(e.getSelectionCells()),E=0<D.length?D[0]:null;if(null!=E)if(C){e.getModel().beginUpdate();try{for(E=0;E<D.length;E++)if(e.getModel().isVertex(D[E])&&e.isCellResizable(D[E])){var G=e.getCellGeometry(D[E]);null!=G&&(G=G.clone(),37==w?G.width=Math.max(0,G.width-y):38==w?G.height=Math.max(0,G.height-y):39==w?G.width+=y:40==w&&(G.height+=y),e.getModel().setGeometry(D[E],G))}}finally{e.getModel().endUpdate()}}else{G=e.model.getParent(E);var J=e.getView().scale;C=null;1==e.getSelectionCount()&&e.model.isVertex(E)&&null!=e.layoutManager&&!e.isCellLocked(E)&&(C=e.layoutManager.getLayout(G));if(null!=C&&C.constructor==mxStackLayout)y=G.getIndex(E),37==w||38==w?e.model.add(G,E,Math.max(0,y-1)):(39==w||40==w)&&e.model.add(G,E,Math.min(e.model.getChildCount(G),y+1));else{var M=e.graphHandler;null!=M&&(null==M.first&&M.start(E,0,0,e.getMovableCells(D)),null!=M.first&&(E=-D=0,37==w?D=-y:38==w?E=-y:39==w?D=y:40==w&&(E=y),M.currentDx+=D*J,M.currentDy+=E*J,M.checkPreview(),M.updatePreview()),null!=h&&window.clearTimeout(h),h=window.setTimeout(function(){if(null!=M.first){var Q=M.roundLength(M.currentDx/J),L=M.roundLength(M.currentDy/J);M.moveCells(M.cells,Q,L);M.reset()}},400))}}}}var f=this,e=this.editor.graph,g=new mxKeyHandler(e),d=g.isEventIgnored;g.isEventIgnored=function(w){return!(mxEvent.isShiftDown(w)&&9==w.keyCode)&&(!this.isControlDown(w)||mxEvent.isShiftDown(w)||+D=0,37==w?D=-y:38==w?E=-y:39==w?D=y:40==w&&(E=y),M.currentDx+=D*J,M.currentDy+=E*J,M.checkPreview(),M.updatePreview()),null!=h&&window.clearTimeout(h),h=window.setTimeout(function(){if(null!=M.first){var Q=M.roundLength(M.currentDx/J),K=M.roundLength(M.currentDy/J);M.moveCells(M.cells,Q,K);M.reset()}},400))}}}}var f=this,e=this.editor.graph,g=new mxKeyHandler(e),d=g.isEventIgnored;g.isEventIgnored=function(w){return!(mxEvent.isShiftDown(w)&&9==w.keyCode)&&(!this.isControlDown(w)||mxEvent.isShiftDown(w)||90!=w.keyCode&&89!=w.keyCode&&188!=w.keyCode&&190!=w.keyCode&&85!=w.keyCode&&83!=w.keyCode)&&(66!=w.keyCode&&73!=w.keyCode||!this.isControlDown(w)||this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&(109!=w.keyCode&&107!=w.keyCode||!this.isControlDown(w)&&!mxEvent.isShiftDown(w)||!this.graph.cellEditor.isContentEditing()&&!mxClient.IS_FF&&!mxClient.IS_SF)&&d.apply(this,arguments)};g.isEnabledForEvent=function(w){return!mxEvent.isConsumed(w)&&this.isGraphEvent(w)&&this.isEnabled()&&(null==f.dialogs||0==f.dialogs.length)};g.isControlDown=function(w){return mxEvent.isControlDown(w)||mxClient.IS_MAC&&w.metaKey};var h=null,m={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},p=g.getFunction;mxKeyHandler.prototype.getFunction=function(w){if(e.isEnabled()){var y=null;mxEvent.isShiftDown(w)&&this.isControlDown(w)&&mxEvent.isAltDown(w)?y=f.actions.get(f.ctrlAltShiftActions[w.keyCode]):mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)?y=f.actions.get(f.altShiftActions[w.keyCode]):this.isControlDown(w)&&mxEvent.isAltDown(w)&&(y=f.actions.get(f.ctrlAltActions[w.keyCode]));if(null!=y)return y.funct;if("/"==w.key&&!this.isControlDown(w)&&!mxEvent.isAltDown(w))return function(){var C=document.getElementById("geOmniSearch");null!=C&&30<C.clientWidth&&C.focus()};if(null!=m[w.keyCode]&&!e.isSelectionEmpty())if(!this.isControlDown(w)&&mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)){if(e.model.isVertex(e.getSelectionCell()))return function(){var C=e.connectVertex(e.getSelectionCell(),m[w.keyCode],e.defaultEdgeLength,w,!0);null!=C&&0<C.length&&(1==C.length&&e.model.isEdge(C[0])?e.setSelectionCell(e.model.getTerminal(C[0],!1)):e.setSelectionCell(C[C.length-1]),e.scrollCellToVisible(e.getSelectionCell()),null!=f.hoverIcons&&f.hoverIcons.update(e.view.getState(e.getSelectionCell())))}}else return this.isControlDown(w)?function(){b(w.keyCode,mxEvent.isShiftDown(w)?e.gridSize:null,!0)}:function(){b(w.keyCode,mxEvent.isShiftDown(w)?e.gridSize:null)}}return p.apply(this,-arguments)};g.bindAction=mxUtils.bind(this,function(w,y,C,D){var E=this.actions.get(C);null!=E&&(C=function(){E.isEnabled()&&E.funct.apply(this,arguments)},y?D?g.bindControlShiftKey(w,C):g.bindControlKey(w,C):D?g.bindShiftKey(w,C):g.bindKey(w,C))});var k=this,v=g.escape;g.escape=function(w){v.apply(this,arguments)};g.enter=function(){};g.bindControlShiftKey(36,function(){e.exitGroup()});g.bindControlShiftKey(35,function(){e.enterGroup()});g.bindShiftKey(36,function(){e.home()});g.bindKey(35,function(){e.refresh()});+arguments)};g.bindAction=mxUtils.bind(this,function(w,y,C,D){var E=this.actions.get(C);null!=E&&(C=function(){E.isEnabled()&&E.funct.apply(this,arguments)},y?D?g.bindControlShiftKey(w,C):g.bindControlKey(w,C):D?g.bindShiftKey(w,C):g.bindKey(w,C))});var k=this,u=g.escape;g.escape=function(w){u.apply(this,arguments)};g.enter=function(){};g.bindControlShiftKey(36,function(){e.exitGroup()});g.bindControlShiftKey(35,function(){e.enterGroup()});g.bindShiftKey(36,function(){e.home()});g.bindKey(35,function(){e.refresh()});g.bindAction(80,!0,"print");g.bindAction(107,!0,"zoomIn");g.bindAction(109,!0,"zoomOut");g.bindAction(61,!0,"zoomIn");g.bindAction(187,!0,"zoomIn");g.bindAction(222,!0,"zoomIn");g.bindAction(173,!0,"zoomOut");g.bindAction(189,!0,"zoomOut");if(!this.editor.chromeless||this.editor.editable)g.bindAction(79,!0,"outline",!0),g.bindControlKey(36,function(){e.isEnabled()&&e.foldCells(!0)}),g.bindControlKey(35,function(){e.isEnabled()&&e.foldCells(!1)}),g.bindControlKey(13,function(){k.ctrlEnter()}),g.bindAction(8,!1,"delete"),g.bindAction(8,!0,"deleteAll"),g.bindAction(8,!1,"deleteLabels",!0),g.bindAction(46,!1,"delete"),g.bindAction(46,!0,"deleteAll"),g.bindAction(46,!1,"deleteLabels",!0),g.bindAction(36,!1,"resetView"),g.bindAction(72,!0,"fitWindow",!0),g.bindAction(74,!0,"fitPage"),g.bindAction(74,!0,"fitTwoPages",!0),g.bindAction(48,!0,"customZoom"),g.bindAction(82,!0,"turn"),g.bindAction(82,!0,"clearDefaultStyle",!0),g.bindAction(83,!0,"save"),g.bindAction(83,!0,"saveAs",!0),g.bindAction(65,!0,"selectAll"),g.bindAction(65,!0,"selectNone",!0),g.bindAction(73,!0,"selectVertices",!0),g.bindAction(69,!0,"selectEdges",!0),g.bindAction(69,!0,"editStyle"),g.bindAction(66,!0,"bold"),g.bindAction(66,!0,"toBack",!0),g.bindAction(70,!0,"toFront",!0),g.bindAction(68,!0,"duplicate"),g.bindAction(68,!0,"setAsDefaultStyle",!0),g.bindAction(90,!0,"undo"),g.bindAction(90,!0,"redo",!0),g.bindAction(89,!0,"redo"),g.bindAction(89,!0,"autosize",!0),g.bindAction(88,!0,"cut"),g.bindAction(67,!0,"copy"),g.bindAction(86,!0,@@ -2316,41 +2317,41 @@ Sidebar.prototype.getTooltipOffset=function(a,b){if(mxUtils.isAncestorNode(this.2-b.height/2-6)};Sidebar.prototype.createMoreShapes=function(){var a=this.editorUi.createDiv("geSidebarFooter"),b=document.createElement("button");b.className="geBtn gePrimaryBtn";this.editorUi.dependsOnLanguage(mxUtils.bind(this,function(){b.innerHTML="<span>+</span>";mxUtils.write(b,mxResources.get("moreShapes"));b.setAttribute("title",mxResources.get("moreShapes"))}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(f){this.editorUi.actions.get("shapes").funct();mxEvent.consume(f)}));mxEvent.preventDefault(b);a.appendChild(b);return a};-Sidebar.prototype.createTooltip=function(a,b,f,e,g,d,h,m,p,k,v){v=null!=v?v:!0;this.tooltipMouseDown=p;p=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(y){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,null,+Sidebar.prototype.createTooltip=function(a,b,f,e,g,d,h,m,p,k,u){u=null!=u?u:!0;this.tooltipMouseDown=p;p=this.editorUi.editor.graph;if(null==this.tooltip){this.tooltip=document.createElement("div");this.tooltip.className="geSidebarTooltip";this.tooltip.style.userSelect="none";this.tooltip.style.zIndex=mxPopupMenu.prototype.zIndex-1;document.body.appendChild(this.tooltip);mxEvent.addMouseWheelListener(mxUtils.bind(this,function(y){this.hideTooltip()}),this.tooltip);this.graph2=new Graph(this.tooltip,null,null,this.editorUi.editor.graph.getStylesheet());this.graph2.shapeBackgroundColor=this.graph.shapeBackgroundColor;this.graph2.resetViewOnRootChange=!1;this.graph2.foldingEnabled=!1;this.graph2.gridEnabled=!1;this.graph2.autoScroll=!1;this.graph2.setTooltips(!1);this.graph2.setConnectable(!1);this.graph2.setPanning(!1);this.graph2.setEnabled(!1);if(this.graph2.dialect==mxConstants.DIALECT_SVG){var w=this.graph2.view.getDrawPane().ownerSVGElement;null!=w&&(w.style.overflow="visible")}else this.graph2.view.canvas.style.overflow="visible";this.graph2.openLink=mxUtils.bind(this,function(){this.hideTooltip()});mxEvent.addGestureListeners(this.tooltip,mxUtils.bind(this,function(y){null!=this.tooltipMouseDown&&this.tooltipMouseDown(y);window.setTimeout(mxUtils.bind(this,function(){null!=this.tooltipCloseImage&&"none"!=this.tooltipCloseImage.style.display||this.hideTooltip()}),0)}),null,mxUtils.bind(this,function(y){this.hideTooltip()}));w=document.createElement("img");w.setAttribute("src",Editor.crossImage);w.setAttribute("title",mxResources.get("close"));w.className="geButton";this.tooltip.appendChild(w);this.tooltipCloseImage=w;mxEvent.addListener(w,"click",mxUtils.bind(this,function(y){this.hideTooltip();mxEvent.consume(y)}))}this.tooltipCloseImage.style.display=k?"":"none";this.graph2.model.clear();this.graph2.view.setTranslate(this.tooltipBorder,this.tooltipBorder);this.graph2.view.scale=!m&&(f>this.maxTooltipWidth||e>this.maxTooltipHeight)?Math.round(100*Math.min(this.maxTooltipWidth/f,this.maxTooltipHeight/e))/100:-1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(p.includeDescendants(b),v?p.currentVertexStyle:p.defaultVertexStyle,v?p.currentEdgeStyle:p.defaultEdgeStyle,null,p.pasteEdgeStyle),this.graph2.addCells(b));mxClient.NO_FO=d;v=this.graph2.getGraphBounds();m&&0<f&&0<e&&(v.width>f||v.height>e)?(f=Math.round(100*Math.min(f/v.width,e/v.height))/-100,mxClient.NO_FO?(this.graph2.view.setScale(Math.round(100*Math.min(this.maxTooltipWidth/v.width,this.maxTooltipHeight/v.height))/100),v=this.graph2.getGraphBounds()):(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="scale("+f+")",this.graph2.view.getDrawPane().ownerSVGElement.style.transformOrigin="0 0",v.width*=f,v.height*=f)):mxClient.NO_FO||(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="");f=v.width+2*this.tooltipBorder+4;e=v.height+2*this.tooltipBorder;this.tooltip.style.overflow=+1;this.tooltip.style.display="block";this.graph2.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;null!=b&&(b=this.graph2.cloneCells(b),this.graph2.pasteCellStyles(p.includeDescendants(b),u?p.currentVertexStyle:p.defaultVertexStyle,u?p.currentEdgeStyle:p.defaultEdgeStyle,null,p.pasteEdgeStyle),this.graph2.addCells(b));mxClient.NO_FO=d;u=this.graph2.getGraphBounds();m&&0<f&&0<e&&(u.width>f||u.height>e)?(f=Math.round(100*Math.min(f/u.width,e/u.height))/+100,mxClient.NO_FO?(this.graph2.view.setScale(Math.round(100*Math.min(this.maxTooltipWidth/u.width,this.maxTooltipHeight/u.height))/100),u=this.graph2.getGraphBounds()):(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="scale("+f+")",this.graph2.view.getDrawPane().ownerSVGElement.style.transformOrigin="0 0",u.width*=f,u.height*=f)):mxClient.NO_FO||(this.graph2.view.getDrawPane().ownerSVGElement.style.transform="");f=u.width+2*this.tooltipBorder+4;e=u.height+2*this.tooltipBorder;this.tooltip.style.overflow="visible";this.tooltip.style.width=f+"px";m=f;this.tooltipTitles&&null!=g&&0<g.length?(null==this.tooltipTitle?(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.style.borderTopStyle="solid",this.tooltipTitle.style.borderTopWidth="1px",this.tooltipTitle.style.textAlign="center",this.tooltipTitle.style.width="100%",this.tooltipTitle.style.overflow="hidden",this.tooltipTitle.style.position="absolute",this.tooltipTitle.style.paddingTop="6px",this.tooltipTitle.style.bottom="6px",this.tooltip.appendChild(this.tooltipTitle)):-this.tooltipTitle.innerText="",this.tooltipTitle.style.display="",mxUtils.write(this.tooltipTitle,g),this.tooltipTitle.setAttribute("title",g),m=Math.min(this.maxTooltipWidth,Math.max(f,this.tooltipTitle.scrollWidth+4)),g=this.tooltipTitle.offsetHeight+10,e+=g,this.tooltipTitle.style.marginTop=2-g+"px"):null!=this.tooltipTitle&&null!=this.tooltipTitle.parentNode&&(this.tooltipTitle.style.display="none");m>f&&(this.tooltip.style.width=m+"px");this.tooltip.style.height=e+"px";g=-Math.round(v.x-this.tooltipBorder)+-(m>f?(m-f)/2:0);f=-Math.round(v.y-this.tooltipBorder);h=null!=h?h:this.getTooltipOffset(a,v);a=h.x;h=h.y;0!=g||0!=f?this.graph2.view.canvas.setAttribute("transform","translate("+g+","+f+")"):this.graph2.view.canvas.removeAttribute("transform");this.tooltip.style.position="absolute";this.tooltip.style.left=a+"px";this.tooltip.style.top=h+"px";mxUtils.fit(this.tooltip,this.tooltipBorder);this.lastCreated=Date.now()};+this.tooltipTitle.innerText="",this.tooltipTitle.style.display="",mxUtils.write(this.tooltipTitle,g),this.tooltipTitle.setAttribute("title",g),m=Math.min(this.maxTooltipWidth,Math.max(f,this.tooltipTitle.scrollWidth+4)),g=this.tooltipTitle.offsetHeight+10,e+=g,this.tooltipTitle.style.marginTop=2-g+"px"):null!=this.tooltipTitle&&null!=this.tooltipTitle.parentNode&&(this.tooltipTitle.style.display="none");m>f&&(this.tooltip.style.width=m+"px");this.tooltip.style.height=e+"px";g=-Math.round(u.x-this.tooltipBorder)++(m>f?(m-f)/2:0);f=-Math.round(u.y-this.tooltipBorder);h=null!=h?h:this.getTooltipOffset(a,u);a=h.x;h=h.y;0!=g||0!=f?this.graph2.view.canvas.setAttribute("transform","translate("+g+","+f+")"):this.graph2.view.canvas.removeAttribute("transform");this.tooltip.style.position="absolute";this.tooltip.style.left=a+"px";this.tooltip.style.top=h+"px";mxUtils.fit(this.tooltip,this.tooltipBorder);this.lastCreated=Date.now()};Sidebar.prototype.showTooltip=function(a,b,f,e,g,d){if(this.enableTooltips&&this.showTooltips&&this.currentElt!=a){null!=this.thread&&(window.clearTimeout(this.thread),this.thread=null);var h=mxUtils.bind(this,function(){this.createTooltip(a,b,f,e,g,d)});null!=this.tooltip&&"none"!=this.tooltip.style.display?h():this.thread=window.setTimeout(h,this.tooltipDelay);this.currentElt=a}};Sidebar.prototype.hideTooltip=function(){null!=this.thread&&(window.clearTimeout(this.thread),this.thread=null);null!=this.tooltip&&(this.tooltip.style.display="none",this.currentElt=null);this.tooltipMouseDown=null};Sidebar.prototype.addDataEntry=function(a,b,f,e,g){null==a&&(a="");null!=e&&(a+=" "+e);return this.addEntry(a,mxUtils.bind(this,function(){return this.createVertexTemplateFromData(g,b,f,e)}))};Sidebar.prototype.addEntries=function(a){for(var b=0;b<a.length;b++)mxUtils.bind(this,function(f){var e=f.data,g=null!=f.title?f.title:"";null!=f.tags&&(g+=" "+f.tags);null!=e&&0<g.length?this.addEntry(g,mxUtils.bind(this,function(){e=this.editorUi.convertDataUri(e);var d="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==f.aspect&&(d+="aspect=fixed;");return this.createVertexTemplate(d+"image="+e,f.w,f.h,"",f.title||"",!1,!1,!0)})):null!=f.xml&&0<g.length&&this.addEntry(g,mxUtils.bind(this,function(){var d=this.editorUi.stringToCells("<"==f.xml.charAt(0)?f.xml:Graph.decompress(f.xml));return this.createVertexTemplateFromCells(d,f.w,f.h,f.title||"",!0,!1,!0)}))})(a[b])};Sidebar.prototype.setCurrentSearchEntryLibrary=function(a,b){this.currentSearchEntryLibrary=null!=a?{id:a,lib:b}:null};Sidebar.prototype.getKeyStyle=function(a){var b=[];if(null!=a){a=a.split(";");for(var f=0;f<a.length;f++){var e=a[f].split("=");1<e.length&&0>mxUtils.indexOf(this.ignoredStyles,e[0])&&b.push(e[0]+"="+e[1])}}return b.join(";")};Sidebar.prototype.addLibForStyle=function(a,b){""!=a&&(null==this.styleToLibs&&(this.styleToLibs={}),null==this.styleToLibs[a]&&(this.styleToLibs[a]=[]),this.styleToLibs[a].push(b))};Sidebar.prototype.getLibsForStyle=function(a){return null!=this.styleToLibs?this.styleToLibs[a]:null};-Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var f=this,e=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,p,k,v,w){if(null!=m)for(p=0;p<m.length;p++)f.addLibForStyle(f.getKeyStyle(m[p].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=e}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g,+Sidebar.prototype.addEntry=function(a,b){if(null!=this.currentSearchEntryLibrary){var f=this,e=this.createVertexTemplateFromCells;this.createVertexTemplateFromCells=function(m,p,k,u,w){if(null!=m)for(p=0;p<m.length;p++)f.addLibForStyle(f.getKeyStyle(m[p].style),this.currentSearchEntryLibrary)};b();this.createVertexTemplateFromCells=e}if(null!=this.taglist&&null!=a&&0<a.length){null!=this.currentSearchEntryLibrary&&(b.parentLibraries=[this.currentSearchEntryLibrary]);a=a.toLowerCase().replace(/[\/,\(\)]/g," ").split(" ");e=[];for(var g={},d=0;d<a.length;d++){null==g[a[d]]&&(g[a[d]]=!0,e.push(a[d]));var h=Editor.soundex(a[d].replace(/\.*\d*$/,""));h!=a[d]&&null==g[h]&&(g[h]=!0,e.push(h))}for(d=0;d<e.length;d++)this.addEntryForTag(e[d],b)}return b};Sidebar.prototype.addEntryForTag=function(a,b){if(null!=a&&1<a.length){var f=this.taglist[a];"object"!==typeof f&&(f={entries:[]},this.taglist[a]=f);f.entries.push(b)}};Sidebar.prototype.isEntryIgnored=function(a,b){b=!b;if(null!=a.parentLibraries&&b)for(var f=0;f<a.parentLibraries.length;f++)if(this.isEntryVisible(a.parentLibraries[f].id)){b=!1;break}return b};-Sidebar.prototype.searchEntries=function(a,b,f,e,g,d){if(null!=this.taglist&&null!=a){var h=a.toLowerCase().split(" ");a=new mxDictionary;g=(f+1)*b;for(var m=[],p=0,k=0;k<h.length;k++){var v=Editor.soundex(h[k].replace(/\.*\d*$/,""));if(0<v.length){m=this.taglist[h[k]];var w=null!=m?m.entries.slice():[];m=this.taglist[v];w=null!=m?w.concat(m.entries):w;v=new mxDictionary;if(0<w.length){m=[];for(var y=0;y<w.length;y++){var C=w[y];if(0==p==(null==a.get(C))&&null==v.get(C)&&(v.put(C,C),!this.isEntryIgnored(C,-d)&&(m.push(C),k==h.length-1&&m.length==g))){e(m.slice(f*b,g),g,!0,h);return}}}else m=[];a=v;p++}}d=m.length;e(m.slice(f*b,(f+1)*b),d,!1,h)}else e([],null,null,h)};Sidebar.prototype.filterTags=function(a){if(null!=a){a=a.split(" ");for(var b=[],f={},e=0;e<a.length;e++)null==f[a[e]]&&(f[a[e]]="1",b.push(a[e]));return b.join(" ")}return null};Sidebar.prototype.cloneCell=function(a,b){a=a.clone();null!=b&&(a.value=b);return a};Sidebar.prototype.showPopupMenuForEntry=function(a,b,f){};+Sidebar.prototype.searchEntries=function(a,b,f,e,g,d){if(null!=this.taglist&&null!=a){var h=a.toLowerCase().split(" ");a=new mxDictionary;g=(f+1)*b;for(var m=[],p=0,k=0;k<h.length;k++){var u=Editor.soundex(h[k].replace(/\.*\d*$/,""));if(0<u.length){m=this.taglist[h[k]];var w=null!=m?m.entries.slice():[];m=this.taglist[u];w=null!=m?w.concat(m.entries):w;u=new mxDictionary;if(0<w.length){m=[];for(var y=0;y<w.length;y++){var C=w[y];if(0==p==(null==a.get(C))&&null==u.get(C)&&(u.put(C,C),!this.isEntryIgnored(C,+d)&&(m.push(C),k==h.length-1&&m.length==g))){e(m.slice(f*b,g),g,!0,h);return}}}else m=[];a=u;p++}}d=m.length;e(m.slice(f*b,(f+1)*b),d,!1,h)}else e([],null,null,h)};Sidebar.prototype.filterTags=function(a){if(null!=a){a=a.split(" ");for(var b=[],f={},e=0;e<a.length;e++)null==f[a[e]]&&(f[a[e]]="1",b.push(a[e]));return b.join(" ")}return null};Sidebar.prototype.cloneCell=function(a,b){a=a.clone();null!=b&&(a.value=b);return a};Sidebar.prototype.showPopupMenuForEntry=function(a,b,f){};Sidebar.prototype.addSearchPalette=function(a){function b(H,S){E=S;H=H.firstChild.nextSibling.nextSibling;S=document.createElement("span");S.style.color="gray";S.innerHTML="Enter";H.appendChild(S)}function f(){k.setAttribute("src",Editor.magnifyImage);k.setAttribute("title",mxResources.get("search"));G.style.display="none";M=p.value="";N()}var e=this.editorUi,g=e.editor.graph,d=document.createElement("div");d.style.visibility="hidden";this.appendChild(d);var h=document.createElement("div");h.className="geSidebar geSearchSidebar";a||(h.style.display="none");var m=document.createElement("div");m.style.whiteSpace="nowrap";m.style.textOverflow="clip";m.style.cursor="default";var p=document.createElement("input");p.setAttribute("id","geOmniSearch");p.setAttribute("placeholder",mxResources.get("typeSlashToSearch"));p.setAttribute("type","text");m.appendChild(p);var k=document.createElement("img");k.setAttribute("src",Editor.magnifyImage);k.setAttribute("title",mxResources.get("search"));k.className=-"geAdaptiveAsset";m.appendChild(k);h.appendChild(m);var v=!1;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(H){v=!1;mxClient.IS_TOUCH||mxEvent.getSource(H)!=p||document.activeElement==p||(p.focus(),mxClient.IS_GC||mxClient.IS_FF?p.select():document.execCommand("selectAll",!1,null),v=!0)}),mxUtils.bind(this,function(H){mxEvent.getSource(H)==p&&v&&mxEvent.consume(H)}),mxUtils.bind(this,function(H){v&&(mxEvent.consume(H),v=!1)}));var w=[],y=mxUtils.bind(this,function(H,S){e.hideCurrentMenu();+"geAdaptiveAsset";m.appendChild(k);h.appendChild(m);var u=!1;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(H){u=!1;mxClient.IS_TOUCH||mxEvent.getSource(H)!=p||document.activeElement==p||(p.focus(),mxClient.IS_GC||mxClient.IS_FF?p.select():document.execCommand("selectAll",!1,null),u=!0)}),mxUtils.bind(this,function(H){mxEvent.getSource(H)==p&&u&&mxEvent.consume(H)}),mxUtils.bind(this,function(H){u&&(mxEvent.consume(H),u=!1)}));var w=[],y=mxUtils.bind(this,function(H,S){e.hideCurrentMenu();mxUtils.remove(H,w);w.unshift(H);5<w.length&&w.pop();H.funct.apply(this,S);p.value=null}),C="about deleteAll showBoundingBox createSidebarEntry downloadDesktop toggleGoogleFonts".split(" "),D=mxUtils.bind(this,function(H){var S=null,ea;for(ea in e.actions.actions){var la=0>C.indexOf(ea)&&"test"!=ea.substring(0,4)?e.actions.get(ea):null;if(null!=la&&la.isEnabled()&&la.visible){if(ea.toLowerCase()==H)return la;for(var O=H.toLowerCase().split(" "),V=0,Y=0;Y<O.length;Y++)0==O[Y].length?V++:(0<=ea.toLowerCase().indexOf(O[Y])||0<=la.getTitle().toLowerCase().indexOf(O[Y]))&&V++;V==O.length&&(0>w.indexOf(S)||null!=S&&!S.isEnabled())&&(S=la)}}return S}),E=null;e.addMenuHandler(p,mxUtils.bind(this,function(H,S){function ea(ia){if(null!=ia&&ia.visible){var ta=H.addItem(ia.getTitle(),null,function(){y(ia,arguments)},S,null,ia.isEnabled());ia.toggleAction&&ia.isSelected()&&H.addCheckmark(ta,Editor.checkmarkImage);null!=E||!ia.isEnabled()||0!=p.value.length&&V!=ia||b(ta,function(){y(ia,arguments);g.container.focus()})}}var la=p.value.toLowerCase();E=null;var O=H.addItem(mxResources.get("searchShapes"),null,mxUtils.bind(this,function(){ca()}),S);b(O,function(){ca()});H.addItem(mxResources.get("findInDiagram"),null,mxUtils.bind(this,function(){e.hideCurrentMenu();e.showSearchWindow(!0,p.value);p.value=""}),S);Editor.enableChatGpt&&!e.isOffline()&&e.isOwnGDriveDomain()&&e.isExternalDataComms()&&"draw.io"==e.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&H.addItem(mxResources.get("generate"),null,mxUtils.bind(this,function(){e.openTemplateDialog(encodeURIComponent(p.value));p.value=""}),S);!e.isOffline()&&e.isOwnGDriveDomain()&&e.isExternalDataComms()&&H.addItem(mxResources.get("help"),null,mxUtils.bind(this,function(){e.searchHelp(p.value);p.value=""}),S);H.addSeparator();var V=0<p.value.length?D(la):null;ea(V);for(O=0;O<w.length;O++)w[O]!=V&&ea(w[O]);if(0<la.length&&null!=e.pages)for(H.addSeparator(),O=0;O<e.pages.length&&!function(ia){if(null!=ia.getName()&&0<=ia.getName().toLowerCase().indexOf(la)){var ta=function(){e.selectPage(ia);g.container.focus();p.value=""},aa=H.addItem(ia.getName()+" ("+mxResources.get("page")+")",null,ta,S);null==E&&b(aa,ta);return!0}return!1}(e.pages[O]);O++);if(0<la.length&&null!=e.sidebar&&null!=e.sidebar.entries)for(H.addSeparator(),O=0;O<e.sidebar.entries.length;O++)for(var Y=e.sidebar.entries[O].entries,ha=0;ha<Y.length;ha++)(function(ia){var ta=e.sidebar.getConfigurationById(ia.id),aa=ia.title.toLowerCase().split(" ");null!=ta&&0<=mxUtils.indexOf(aa,la)&&(aa=function(){var P=e.sidebar.showPalettes(ta.prefix||"",ta.libs||[ta.id],!0);p.value="";null!=P&&1<P.length&&(null==P[1].firstChild||null!=P[1].firstChild.firstChild&&"none"!=P[1].firstChild.style.display||P[0].click(),P[0].scrollIntoView({behavior:"smooth"}))},ia=H.addItem(ia.title+" ("+mxResources.get("openLibrary")+")",null,aa,S),null==E&&b(ia,aa));return!0})(Y[ha])}),null,!0);var G=document.createElement("div");G.style.display="none";G.style.paddingTop="8px";G.style.alignItems="center";G.style.justifyContent="center";-var J=mxUtils.button(mxResources.get("moreResults"),function(){ca()});J.setAttribute("title",mxResources.get("moreResults"));J.className="geBtn gePrimaryBtn";J.style.borderRadius="16px";J.style.padding="8px 12px";G.appendChild(J);h.appendChild(G);var M="",Q=!1,L=!1,W=0,X={},T=12,N=mxUtils.bind(this,function(){Q=!1;this.currentSearch=null;for(var H=h.firstChild;null!=H;){var S=H.nextSibling;H!=m&&H!=G&&H.parentNode.removeChild(H);H=S}});mxEvent.addListener(k,"click",function(){k.getAttribute("src")!=-Editor.magnifyImage&&f();p.focus()});var ca=mxUtils.bind(this,function(){e.hideCurrentMenu();T=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=p.value){if(null!=G.parentNode&&(M!=p.value&&(N(),M=p.value,X={},L=!1,W=0),!Q&&!L)){J.setAttribute("disabled","true");G.style.display="flex";J.style.cursor="wait";J.innerHTML="";mxUtils.write(J,mxResources.get("loading")+"...");Q=!0;var H={};this.currentSearch=H;try{this.searchEntries(M,T,W,mxUtils.bind(this,+var J=mxUtils.button(mxResources.get("moreResults"),function(){ca()});J.setAttribute("title",mxResources.get("moreResults"));J.className="geBtn gePrimaryBtn";J.style.borderRadius="16px";J.style.padding="8px 12px";G.appendChild(J);h.appendChild(G);var M="",Q=!1,K=!1,W=0,X={},T=12,N=mxUtils.bind(this,function(){Q=!1;this.currentSearch=null;for(var H=h.firstChild;null!=H;){var S=H.nextSibling;H!=m&&H!=G&&H.parentNode.removeChild(H);H=S}});mxEvent.addListener(k,"click",function(){k.getAttribute("src")!=+Editor.magnifyImage&&f();p.focus()});var ca=mxUtils.bind(this,function(){e.hideCurrentMenu();T=4*Math.max(1,Math.floor(this.container.clientWidth/(this.thumbWidth+10)));this.hideTooltip();if(""!=p.value){if(null!=G.parentNode&&(M!=p.value&&(N(),M=p.value,X={},K=!1,W=0),!Q&&!K)){J.setAttribute("disabled","true");G.style.display="flex";J.style.cursor="wait";J.innerHTML="";mxUtils.write(J,mxResources.get("loading")+"...");Q=!0;var H={};this.currentSearch=H;try{this.searchEntries(M,T,W,mxUtils.bind(this,function(S,ea,la,O){if(this.currentSearch==H){S=null!=S?S:[];Q=!1;W++;this.insertSearchHint(h,M,T,W,S,ea,la,O);0==S.length&&1==W&&(M="");null!=G.parentNode&&G.parentNode.removeChild(G);for(ea=0;ea<S.length;ea++)mxUtils.bind(this,function(V){try{var Y=V();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(V,!1)&&(Y.style.opacity=this.closedLibraryOpacity);null==X[Y.innerHTML]?(X[Y.innerHTML]=null!=V.parentLibraries?V.parentLibraries.slice():[],h.appendChild(Y)):null!=V.parentLibraries&&(X[Y.innerHTML]=X[Y.innerHTML].concat(V.parentLibraries));mxEvent.addGestureListeners(Y,null,null,mxUtils.bind(this,function(ha){var ia=X[Y.innerHTML];mxEvent.isPopupTrigger(ha)&&this.showPopupMenuForEntry(Y,ia,ha)}));mxEvent.disableContextMenu(Y)}catch(ha){"1"==urlParams.test&&(null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(ha.stack)):console.error(ha))}})(S[ea]);la?(J.removeAttribute("disabled"),J.innerHTML="",mxUtils.write(J,mxResources.get("moreResults"))):-(J.innerHTML=mxResources.get("reset"),G.style.display="none",L=!0);J.style.cursor="";h.appendChild(G)}}),mxUtils.bind(this,function(){J.style.cursor=""}),this.searchClosedLibraries)}catch(S){e.handleError(S)}}}else N(),M=p.value="",X={},G.style.display="none",L=!1,p.focus()});this.searchShapes=function(H){p.value=H;ca()};mxEvent.addListener(p,"keydown",mxUtils.bind(this,function(H){13==H.keyCode&&null!=E?(E(H,H),mxEvent.consume(H)):9==H.keyCode?(g.container.focus(),mxEvent.consume(H)):27==H.keyCode&&-(f(),mxEvent.consume(H))}));a=mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){""==p.value?(k.setAttribute("src",Editor.magnifyImage),k.setAttribute("title",mxResources.get("search"))):(k.setAttribute("src",Editor.crossImage),k.setAttribute("title",mxResources.get("reset")));""==p.value?(L=!0,G.style.display="none"):p.value!=M?(G.style.display="none",L=!1):Q||(G.style.display=L?"none":"flex")}),0)});mxEvent.addListener(p,"keyup",a);mxEvent.addListener(p,"paste",a);mxEvent.addListener(p,+(J.innerHTML=mxResources.get("reset"),G.style.display="none",K=!0);J.style.cursor="";h.appendChild(G)}}),mxUtils.bind(this,function(){J.style.cursor=""}),this.searchClosedLibraries)}catch(S){e.handleError(S)}}}else N(),M=p.value="",X={},G.style.display="none",K=!1,p.focus()});this.searchShapes=function(H){p.value=H;ca()};mxEvent.addListener(p,"keydown",mxUtils.bind(this,function(H){13==H.keyCode&&null!=E?(E(H,H),mxEvent.consume(H)):9==H.keyCode?(g.container.focus(),mxEvent.consume(H)):27==H.keyCode&&+(f(),mxEvent.consume(H))}));a=mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){""==p.value?(k.setAttribute("src",Editor.magnifyImage),k.setAttribute("title",mxResources.get("search"))):(k.setAttribute("src",Editor.crossImage),k.setAttribute("title",mxResources.get("reset")));""==p.value?(K=!0,G.style.display="none"):p.value!=M?(G.style.display="none",K=!1):Q||(G.style.display=K?"none":"flex")}),0)});mxEvent.addListener(p,"keyup",a);mxEvent.addListener(p,"paste",a);mxEvent.addListener(p,"cut",a);mxEvent.addListener(p,"mousedown",function(H){H.stopPropagation&&H.stopPropagation();H.cancelBubble=!0});mxEvent.addListener(p,"selectstart",function(H){H.stopPropagation&&H.stopPropagation();H.cancelBubble=!0});a=document.createElement("div");a.appendChild(h);this.appendChild(a);this.palettes.search=[d,a]};Sidebar.prototype.insertSearchHint=function(a,b,f,e,g,d,h,m){0==g.length&&1==e&&(f=document.createElement("div"),f.className="geSidebarText",b=mxResources.get("noResultsFor",[b]),f.setAttribute("title",b),mxUtils.write(f,b),a.appendChild(f))};Sidebar.prototype.addGeneralPalette=function(a){this.setCurrentSearchEntryLibrary("general","general");var b=this.editorUi.editor.graph,f=this,e=parseInt(this.initialDefaultVertexStyle.fontSize);e=isNaN(e)?"":"fontSize="+Math.min(16,e)+";";var g=b.appendFontSize("edgeLabel;resizable=0;html=1;",b.edgeFontSize),d=new mxCell("List Item",new mxGeometry(0,0,80,30),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;"+@@ -2457,23 +2458,23 @@ d.geometry.setTerminalPoint(new mxPoint(0,0),!0);d.geometry.setTerminalPoint(new0,"Use","Dependency",null,"uml dependency use"),this.createEdgeTemplateEntry("endArrow=block;endSize=16;endFill=0;html=1;",160,0,"Extends","Generalization",null,"uml generalization extend"),this.createEdgeTemplateEntry("endArrow=block;startArrow=block;endFill=1;startFill=1;html=1;",160,0,"","Association 2",null,"uml association"),this.createEdgeTemplateEntry("endArrow=open;startArrow=circlePlus;endFill=0;startFill=0;endSize=8;html=1;",160,0,"","Inner Class",null,"uml inner class"),this.createEdgeTemplateEntry("endArrow=open;startArrow=cross;endFill=0;startFill=0;endSize=8;startSize=10;html=1;",160,0,"","Terminate",null,"uml terminate"),this.createEdgeTemplateEntry("endArrow=block;dashed=1;endFill=0;endSize=12;html=1;",160,0,"","Implementation",null,"uml realization implementation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=0;endSize=24;html=1;",160,0,"","Aggregation 2",null,"uml aggregation"),this.createEdgeTemplateEntry("endArrow=diamondThin;endFill=1;endSize=24;html=1;",160,0,"","Composition 2",null,"uml composition"),this.createEdgeTemplateEntry("endArrow=open;endFill=1;endSize=12;html=1;",160,0,"","Association 3",null,"uml association")];this.addPaletteFunctions("uml",mxResources.get("uml"),a||!1,g);this.setCurrentSearchEntryLibrary()};Sidebar.prototype.createTitle=function(a){var b=document.createElement("a");b.setAttribute("title",mxResources.get("sidebarTooltip"));b.className="geTitle";var f=document.createElement("span");mxUtils.write(f,a);b.appendChild(f);return b};-Sidebar.prototype.createThumb=function(a,b,f,e,g,d,h,m,p,k,v,w){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #ffffff)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(var(--ge-panel-color), var(--ge-dark-panel-color))";this.graph.view.scaleAndTranslate(null!=w?w:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==w&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/+Sidebar.prototype.createThumb=function(a,b,f,e,g,d,h,m,p,k,u,w){this.graph.labelsVisible=null==d||d;d=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;this.graph.shapeForegroundColor="light-dark(#000000, #ffffff)";this.graph.shapeBackgroundColor=null!=k?k:"light-dark(var(--ge-panel-color), var(--ge-dark-panel-color))";this.graph.view.scaleAndTranslate(null!=w?w:1,0,0);this.graph.addCells(a);a=this.graph.getGraphBounds();null==w&&(k=Math.floor(100*Math.min((b-2*this.thumbBorder)/a.width,(f-2*this.thumbBorder)/a.height))/100,this.graph.view.scaleAndTranslate(k,(b-a.width*k)/2/k-a.x,(f-a.height*k)/2/k-a.y));this.graph.dialect!=mxConstants.DIALECT_SVG||mxClient.NO_FO||null==this.graph.view.getCanvas().ownerSVGElement?(k=this.graph.container.cloneNode(!1),k.innerHTML=this.graph.container.innerHTML):k=this.graph.view.getCanvas().ownerSVGElement.cloneNode(!0);this.graph.getModel().clear();this.graph.view.scaleAndTranslate(1,0,0);mxClient.NO_FO=d;k.style.position="relative";k.style.overflow=-null!=w?"visible":"hidden";k.style.left=(null!=v?v:this.thumbBorder-1)+"px";k.style.top=k.style.left;k.style.width=b+"px";k.style.height=f+"px";k.style.visibility="";k.style.minWidth="";k.style.minHeight="";this.disablePointerEvents(k);e.appendChild(k);this.sidebarTitles&&null!=g&&0!=h&&(e.style.height=this.thumbHeight+0+this.sidebarTitleSize+8+"px",b=document.createElement("div"),b.style.color=Editor.isDarkMode()?"#A0A0A0":"#303030",b.style.fontSize=this.sidebarTitleSize+"px",b.style.textAlign="center",+null!=w?"visible":"hidden";k.style.left=(null!=u?u:this.thumbBorder-1)+"px";k.style.top=k.style.left;k.style.width=b+"px";k.style.height=f+"px";k.style.visibility="";k.style.minWidth="";k.style.minHeight="";this.disablePointerEvents(k);e.appendChild(k);this.sidebarTitles&&null!=g&&0!=h&&(e.style.height=this.thumbHeight+0+this.sidebarTitleSize+8+"px",b=document.createElement("div"),b.style.color=Editor.isDarkMode()?"#A0A0A0":"#303030",b.style.fontSize=this.sidebarTitleSize+"px",b.style.textAlign="center",b.style.whiteSpace="nowrap",b.style.overflow="hidden",b.style.textOverflow="ellipsis",mxClient.IS_IE&&(b.style.height=this.sidebarTitleSize+12+"px"),b.style.paddingTop="4px",mxUtils.write(b,g),e.appendChild(b));return a};Sidebar.prototype.createSection=function(a){return mxUtils.bind(this,function(){var b=document.createElement("div");b.setAttribute("title",a);b.style.textOverflow="ellipsis";b.style.whiteSpace="nowrap";b.style.textAlign="center";b.style.overflow="hidden";b.style.width="100%";b.style.padding="14px 0";mxUtils.write(b,a);return b})};-Sidebar.prototype.createItem=function(a,b,f,e,g,d,h,m,p,k,v,w,y,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;v=null!=v?v:this.thumbHeight;var D=document.createElement("a"),E=2*this.thumbBorder;D.style.width=k+E+"px";D.style.height=v+E+"px";mxEvent.addListener(D,"click",function(J){mxEvent.consume(J)});var G=new mxRectangle(0,0,g,d);null!=a&&0<a.length?(E=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(E),this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),-null!=w?(D.className="geButton",D.style.backgroundImage="url("+w+")",D.style.backgroundRepeat="no-repeat",D.style.backgroundPosition="center",D.style.backgroundSize="24px 24px"):(D.className="geItem",this.createThumb(E,k,v,D,b,f,e,g,d)),1<a.length||a[0].vertex?(e=this.createDragSource(D,this.createDropHandler(a,!0,h,G,y,C),this.createDragPreview(g,d),a,G,y),this.addClickHandler(D,e,a,p,y),e.isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guidesEnabled})):+Sidebar.prototype.createItem=function(a,b,f,e,g,d,h,m,p,k,u,w,y,C){m=null!=m?m:!0;k=null!=k?k:this.thumbWidth;u=null!=u?u:this.thumbHeight;var D=document.createElement("a"),E=2*this.thumbBorder;D.style.width=k+E+"px";D.style.height=u+E+"px";mxEvent.addListener(D,"click",function(J){mxEvent.consume(J)});var G=new mxRectangle(0,0,g,d);null!=a&&0<a.length?(E=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(E),this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),+null!=w?(D.className="geButton",D.style.backgroundImage="url("+w+")",D.style.backgroundRepeat="no-repeat",D.style.backgroundPosition="center",D.style.backgroundSize="24px 24px"):(D.className="geItem",this.createThumb(E,k,u,D,b,f,e,g,d)),1<a.length||a[0].vertex?(e=this.createDragSource(D,this.createDropHandler(a,!0,h,G,y,C),this.createDragPreview(g,d),a,G,y),this.addClickHandler(D,e,a,p,y),e.isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guidesEnabled})):null!=a[0]&&a[0].edge&&(e=this.createDragSource(D,this.createDropHandler(a,!1,h,G,y,C),this.createDragPreview(g,d),a,G,y),this.addClickHandler(D,e,a,p)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(D,null,mxUtils.bind(this,function(J){mxEvent.isMouseEvent(J)&&this.showTooltip(D,a,G.width,G.height,b,f)}))):(D.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",D.setAttribute("title",b));return D};-Sidebar.prototype.createDropHandler=function(a,b,f,e,g,d){f=null!=f?f:!0;return mxUtils.bind(this,function(h,m,p,k,v,w){for(w=w?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=w&&w!=this.container;)w=w.parentNode;if(null==w&&h.isEnabled()){a=h.getImportableCells(a);if(0<a.length){h.stopEditing();w=null==p||mxEvent.isAltDown(m)?!1:h.isValidDropTarget(p,a,m);var y=null;null==p||w||(p=null);if(!h.isCellLocked(p||-h.getDefaultParent())){h.model.beginUpdate();try{k=Math.round(k);v=Math.round(v);if(b&&h.isSplitTarget(p,a,m)){var C=h.view.scale,D=h.view.translate,E=(k+D.x)*C,G=(v+D.y)*C,J=h.cloneCells(a);h.splitEdge(p,J,null,k-e.width/2,v-e.height/2,E,G);y=J}else if(0<a.length&&(y=h.importCells(a,k,v,p),h.model.isVertex(d)&&1==y.length&&h.model.isVertex(y[0]))){var M=h.insertEdge(h.model.getParent(d),null,"",d,y[0],h.createCurrentEdgeStyle());h.applyNewEdgeStyle(d,[M]);y.push(M);h.connectionHandler.insertBeforeSource&&-h.insertEdgeBeforeCell(M,d)}if(null!=h.layoutManager){var Q=h.layoutManager.getLayout(p);if(null!=Q){C=h.view.scale;D=h.view.translate;E=(k+D.x)*C;G=(v+D.y)*C;for(var L=0;L<y.length;L++)Q.moveCell(y[L],E,G)}}!f||null!=m&&mxEvent.isShiftDown(m)||h.fireEvent(new mxEventObject("cellsInserted","cells",y));for(L=0;L<y.length;L++)h.model.isVertex(y[L])&&h.isAutoSizeCell(y[L])&&h.updateCellSize(y[L])}catch(W){this.editorUi.handleError(W)}finally{h.model.endUpdate()}null!=y&&0<y.length&&(h.scrollCellToVisible(y[0]),+Sidebar.prototype.createDropHandler=function(a,b,f,e,g,d){f=null!=f?f:!0;return mxUtils.bind(this,function(h,m,p,k,u,w){for(w=w?null:mxEvent.isTouchEvent(m)||mxEvent.isPenEvent(m)?document.elementFromPoint(mxEvent.getClientX(m),mxEvent.getClientY(m)):mxEvent.getSource(m);null!=w&&w!=this.container;)w=w.parentNode;if(null==w&&h.isEnabled()){a=h.getImportableCells(a);if(0<a.length){h.stopEditing();w=null==p||mxEvent.isAltDown(m)?!1:h.isValidDropTarget(p,a,m);var y=null;null==p||w||(p=null);if(!h.isCellLocked(p||+h.getDefaultParent())){h.model.beginUpdate();try{k=Math.round(k);u=Math.round(u);if(b&&h.isSplitTarget(p,a,m)){var C=h.view.scale,D=h.view.translate,E=(k+D.x)*C,G=(u+D.y)*C,J=h.cloneCells(a);h.splitEdge(p,J,null,k-e.width/2,u-e.height/2,E,G);y=J}else if(0<a.length&&(y=h.importCells(a,k,u,p),h.model.isVertex(d)&&1==y.length&&h.model.isVertex(y[0]))){var M=h.insertEdge(h.model.getParent(d),null,"",d,y[0],h.createCurrentEdgeStyle());h.applyNewEdgeStyle(d,[M]);y.push(M);h.connectionHandler.insertBeforeSource&&+h.insertEdgeBeforeCell(M,d)}if(null!=h.layoutManager){var Q=h.layoutManager.getLayout(p);if(null!=Q){C=h.view.scale;D=h.view.translate;E=(k+D.x)*C;G=(u+D.y)*C;for(var K=0;K<y.length;K++)Q.moveCell(y[K],E,G)}}!f||null!=m&&mxEvent.isShiftDown(m)||h.fireEvent(new mxEventObject("cellsInserted","cells",y));for(K=0;K<y.length;K++)h.model.isVertex(y[K])&&h.isAutoSizeCell(y[K])&&h.updateCellSize(y[K])}catch(W){this.editorUi.handleError(W)}finally{h.model.endUpdate()}null!=y&&0<y.length&&(h.scrollCellToVisible(y[0]),h.setSelectionCells(y));(g||h.editAfterInsert&&null!=m&&mxEvent.isMouseEvent(m)&&null!=y&&1==y.length)&&window.setTimeout(function(){h.startEditing(y[0])},0)}}mxEvent.consume(m)}})};Sidebar.prototype.createDragPreview=function(a,b){var f=document.createElement("div");f.className="geDragPreview";f.style.width=a+"px";f.style.height=b+"px";return f};-Sidebar.prototype.dropAndConnect=function(a,b,f,e,g,d,h){var m=this.editorUi.editor.graph,p=m.model.isEdge(a)||null!=d?d:h;p=this.getDropAndConnectGeometry(a,b[p],f,b);var k=[];if(null!=p){var v=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),y=m.getCellGeometry(b[e]),C=m.model.getParent(a),D=!0;if(null!=m.layoutManager){var E=m.layoutManager.getLayout(C);null!=E&&E.constructor==mxStackLayout&&(D=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=E=0;if(null!=k){var J=k.origin;E=J.x;+Sidebar.prototype.dropAndConnect=function(a,b,f,e,g,d,h){var m=this.editorUi.editor.graph,p=m.model.isEdge(a)||null!=d?d:h;p=this.getDropAndConnectGeometry(a,b[p],f,b);var k=[];if(null!=p){var u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),y=m.getCellGeometry(b[e]),C=m.model.getParent(a),D=!0;if(null!=m.layoutManager){var E=m.layoutManager.getLayout(C);null!=E&&E.constructor==mxStackLayout&&(D=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=E=0;if(null!=k){var J=k.origin;E=J.x;G=J.y}var M=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&D),Q=m.getCellAt((p.x+E+m.view.translate.x)*m.view.scale,(p.y+G+m.view.translate.y)*m.view.scale,null,null,null,function(ca,H,S){return!m.isContainer(ca.cell)});if(null!=Q&&Q!=C)k=m.view.getState(Q),null!=k&&(J=k.origin,C=Q,M=!0,m.model.isEdge(a)||(p.x-=J.x-E,p.y-=J.y-G));else if(!D||m.isTableRow(a)||m.isTableCell(a))p.x+=E,p.y+=G;E=y.x;G=y.y;m.model.isEdge(b[e])&&(G=E=0);k=b=m.importCells(b,p.x-(M?E:0),p.y--(M?G:0),M?C:null);if(m.model.isEdge(a))m.model.setTerminal(a,b[e],f==mxConstants.DIRECTION_NORTH),null!=h&&null!=d&&(m.model.remove(b[h]),m.updateShapes(b[h],[a]));else if(m.model.isEdge(b[e])&&null==d){m.model.setTerminal(b[e],a,!0);var L=m.getCellGeometry(b[e]),W=null!=L?L.getTerminalPoint(!0):null;L.points=null;if(null!=W)for(f=0;f<b.length;f++)if(m.model.isEdge(b[f])&&f!=e){var X=m.getCellGeometry(b[f]),T=null!=X?X.getTerminalPoint(!0):null;null!=T&&T.x==W.x&&T.y==W.y&&m.model.setTerminal(b[f],-a,!0)}if(null!=L.getTerminalPoint(!1))L.setTerminalPoint(p.getTerminalPoint(!1),!1);else if(M&&m.model.isVertex(C)){var N=m.view.getState(C);J=N.cell!=m.view.currentRoot?N.origin:new mxPoint(0,0);m.cellsMoved(b,J.x,J.y,null,null,!0)}}else null!=d&&(y=m.getCellGeometry(b[d]),E=p.x-Math.round(y.x),G=p.y-Math.round(y.y),p.x=Math.round(y.x),p.y=Math.round(y.y),m.model.setGeometry(b[e],p),m.cellsMoved(b,E,G,null,null,!0),k=b.slice(),v=1==k.length?k[0]:null,null!=h?m.model.setTerminal(b[h],a,!0):b.push(m.insertEdge(null,-null,"",a,b[e],m.createCurrentEdgeStyle())));null!=g&&mxEvent.isShiftDown(g)||m.fireEvent(new mxEventObject("cellsInserted","cells",b))}catch(ca){this.editorUi.handleError(ca)}finally{m.model.endUpdate()}m.editAfterInsert&&null!=g&&mxEvent.isMouseEvent(g)&&null!=v&&window.setTimeout(function(){m.startEditing(v)},0)}null!=h&&1<k.length&&k.splice(h,1);return k};+(M?G:0),M?C:null);if(m.model.isEdge(a))m.model.setTerminal(a,b[e],f==mxConstants.DIRECTION_NORTH),null!=h&&null!=d&&(m.model.remove(b[h]),m.updateShapes(b[h],[a]));else if(m.model.isEdge(b[e])&&null==d){m.model.setTerminal(b[e],a,!0);var K=m.getCellGeometry(b[e]),W=null!=K?K.getTerminalPoint(!0):null;K.points=null;if(null!=W)for(f=0;f<b.length;f++)if(m.model.isEdge(b[f])&&f!=e){var X=m.getCellGeometry(b[f]),T=null!=X?X.getTerminalPoint(!0):null;null!=T&&T.x==W.x&&T.y==W.y&&m.model.setTerminal(b[f],+a,!0)}if(null!=K.getTerminalPoint(!1))K.setTerminalPoint(p.getTerminalPoint(!1),!1);else if(M&&m.model.isVertex(C)){var N=m.view.getState(C);J=N.cell!=m.view.currentRoot?N.origin:new mxPoint(0,0);m.cellsMoved(b,J.x,J.y,null,null,!0)}}else null!=d&&(y=m.getCellGeometry(b[d]),E=p.x-Math.round(y.x),G=p.y-Math.round(y.y),p.x=Math.round(y.x),p.y=Math.round(y.y),m.model.setGeometry(b[e],p),m.cellsMoved(b,E,G,null,null,!0),k=b.slice(),u=1==k.length?k[0]:null,null!=h?m.model.setTerminal(b[h],a,!0):b.push(m.insertEdge(null,+null,"",a,b[e],m.createCurrentEdgeStyle())));null!=g&&mxEvent.isShiftDown(g)||m.fireEvent(new mxEventObject("cellsInserted","cells",b))}catch(ca){this.editorUi.handleError(ca)}finally{m.model.endUpdate()}m.editAfterInsert&&null!=g&&mxEvent.isMouseEvent(g)&&null!=u&&window.setTimeout(function(){m.startEditing(u)},0)}null!=h&&1<k.length&&k.splice(h,1);return k};Sidebar.prototype.getDropAndConnectGeometry=function(a,b,f,e){var g=this.editorUi.editor.graph,d=g.view,h=1<e.length,m=g.view.getState(a),p=g.getCellGeometry(a);e=g.getCellGeometry(b);null!=m&&null!=p&&null!=e&&(e=e.clone(),g.model.isEdge(a)?(p=m.absolutePoints,b=p[0],g=p[p.length-1],f==mxConstants.DIRECTION_NORTH?(e.x=b.x/d.scale-d.translate.x-e.width/2,e.y=b.y/d.scale-d.translate.y-e.height/2):(e.x=g.x/d.scale-d.translate.x-e.width/2,e.y=g.y/d.scale-d.translate.y-e.height/2)):(p.relative&&(p=p.clone(),p.x=(m.x-d.translate.x)/d.scale,p.y=(m.y-d.translate.y)/d.scale),d=g.defaultEdgeLength,g.model.isEdge(b)&&null!=e.getTerminalPoint(!0)&&null!=e.getTerminalPoint(!1)?(b=e.getTerminalPoint(!0),g=e.getTerminalPoint(!1),d=g.x-b.x,b=g.y-b.y,d=Math.sqrt(d*d+b*b),e.x=p.getCenterX(),e.y=p.getCenterY(),e.width=1,e.height=1,f==mxConstants.DIRECTION_NORTH?(e.height=d,e.y=p.y-d,e.setTerminalPoint(new mxPoint(e.x,e.y),!1)):f==mxConstants.DIRECTION_EAST?(e.width=d,e.x=p.x+p.width,e.setTerminalPoint(new mxPoint(e.x+e.width,e.y),!1)):f==mxConstants.DIRECTION_SOUTH?(e.height=d,e.y=p.y+p.height,e.setTerminalPoint(new mxPoint(e.x,e.y+e.height),!1)):f==mxConstants.DIRECTION_WEST&&(e.width=d,e.x=p.x-d,e.setTerminalPoint(new mxPoint(e.x,e.y),!1))):(!h&&45<e.width&&45<e.height&&45<p.width&&45<p.height&&(e.width*=p.height/e.height,e.height=p.height),e.x=p.x+p.width/2-e.width/2,e.y=p.y+p.height/2-e.height/2,f==mxConstants.DIRECTION_NORTH?e.y=e.y-p.height/2-e.height/2-d:f==mxConstants.DIRECTION_EAST?e.x=e.x+p.width/2+@@ -2481,69 +2482,69 @@ e.width/2+d:f==mxConstants.DIRECTION_SOUTH?e.y=e.y+p.height/2+e.height/2+d:f==mx2):f==mxConstants.DIRECTION_WEST&&(e.x-=p.getCenterX()+p.width/2,e.y-=p.getCenterY()))))));return e};Sidebar.prototype.isDropStyleEnabled=function(a,b){var f=!0;null!=b&&1==a.length&&(a=this.graph.getCellStyle(a[b]),null!=a&&(f=mxUtils.getValue(a,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(a,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE));return f};Sidebar.prototype.isDropStyleTargetIgnored=function(a){return this.graph.isSwimlane(a.cell)||this.graph.isTableCell(a.cell)||this.graph.isTableRow(a.cell)||this.graph.isTable(a.cell)};Sidebar.prototype.disablePointerEvents=function(a){mxUtils.visitNodes(a,mxUtils.bind(this,function(b){b.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=b.style&&(b.style.pointerEvents="none",b.removeAttribute("pointer-events"))}))};Sidebar.prototype.createDragSource=function(a,b,f,e,g,d){function h(na,ya){var za=mxUtils.createImage(na.src);za.style.width=na.width+"px";za.style.height=na.height+"px";null!=ya&&za.setAttribute("title",ya);mxUtils.setOpacity(za,na==this.refreshTarget?30:20);za.style.position="absolute";za.style.cursor="crosshair";return za}function m(na,ya,za,Ka){null!=Ka.parentNode&&(mxUtils.contains(za,na,ya)?(mxUtils.setOpacity(Ka,100),V=Ka):mxUtils.setOpacity(Ka,Ka==H?30:20));return za}var p=this.editorUi,k=-p.editor.graph,v=null,w=null,y=this;d=0;for(var C=this.livePreview,D=0;D<e.length&&C;D++)d+=k.model.getDescendants(e[D]).length,C=d<k.graphHandler.maxLivePreview;for(D=0;D<e.length&&(null==w&&k.model.isVertex(e[D])?w=D:null==v&&k.model.isEdge(e[D])&&null==k.model.getTerminal(e[D],!0)&&(v=D),null==w||null==v);D++);var E=this.isDropStyleEnabled(e,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(na,ya,za,Ka,Qa){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=e&&null!=-L&&V==H){var Ia=na.isCellSelected(L.cell)?na.getSelectionCells():[L.cell];na.updateShapes(na.model.isEdge(L.cell)?e[0]:e[w],Ia,!0);na.setSelectionCells(Ia)}else null!=e&&null!=V&&null!=M&&V!=H?(Ia=na.model.isEdge(M.cell)||null==v?w:v,na.setSelectionCells(this.dropAndConnect(M.cell,e,O,Ia,ya,w,v))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(na.view.getState(na.getSelectionCell()))}),f,0,0,k.autoscroll,!0,!0);C&&(G.createDragElement=mxUtils.bind(this,function(){return G.createPreviewElement(this.graph)}),+p.editor.graph,u=null,w=null,y=this;d=0;for(var C=this.livePreview,D=0;D<e.length&&C;D++)d+=k.model.getDescendants(e[D]).length,C=d<k.graphHandler.maxLivePreview;for(D=0;D<e.length&&(null==w&&k.model.isVertex(e[D])?w=D:null==u&&k.model.isEdge(e[D])&&null==k.model.getTerminal(e[D],!0)&&(u=D),null==w||null==u);D++);var E=this.isDropStyleEnabled(e,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(na,ya,za,Ka,Qa){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=e&&null!=+K&&V==H){var Ia=na.isCellSelected(K.cell)?na.getSelectionCells():[K.cell];na.updateShapes(na.model.isEdge(K.cell)?e[0]:e[w],Ia,!0);na.setSelectionCells(Ia)}else null!=e&&null!=V&&null!=M&&V!=H?(Ia=na.model.isEdge(M.cell)||null==u?w:u,na.setSelectionCells(this.dropAndConnect(M.cell,e,O,Ia,ya,w,u))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(na.view.getState(na.getSelectionCell()))}),f,0,0,k.autoscroll,!0,!0);C&&(G.createDragElement=mxUtils.bind(this,function(){return G.createPreviewElement(this.graph)}),G.createPreviewElement=mxUtils.bind(this,function(na){var ya=document.createElement("a");ya.className="geItem";ya.style.overflow="visible";na=na.view.scale;ya.style.width=na*Math.max(1,g.width)+"px";ya.style.height=na*Math.max(1,g.height)+"px";mxUtils.setOpacity(ya,50);var za=k.cloneCells(e);this.graph.pasteCellStyles(k.includeDescendants(za),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);y.createThumb(za,na*Math.max(1,g.width),na*Math.max(1,g.height),ya,null,null,null,null,null,k.shapeBackgroundColor,-0,na);return ya}));var J=G.mouseDown;G.mouseDown=function(na){mxEvent.isPopupTrigger(na)||mxEvent.isMultiTouchEvent(na)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),J.apply(this,arguments))};var M=null,Q=null,L=null,W=!1,X=h(this.triangleUp,mxResources.get("connect")),T=h(this.triangleRight,mxResources.get("connect")),N=h(this.triangleDown,mxResources.get("connect")),ca=h(this.triangleLeft,mxResources.get("connect")),H=h(this.refreshTarget,mxResources.get("replace")),S=null,ea=h(this.roundDrop),+0,na);return ya}));var J=G.mouseDown;G.mouseDown=function(na){mxEvent.isPopupTrigger(na)||mxEvent.isMultiTouchEvent(na)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),J.apply(this,arguments))};var M=null,Q=null,K=null,W=!1,X=h(this.triangleUp,mxResources.get("connect")),T=h(this.triangleRight,mxResources.get("connect")),N=h(this.triangleDown,mxResources.get("connect")),ca=h(this.triangleLeft,mxResources.get("connect")),H=h(this.refreshTarget,mxResources.get("replace")),S=null,ea=h(this.roundDrop),la=h(this.roundDrop),O=mxConstants.DIRECTION_NORTH,V=null,Y=G.createPreviewElement;G.createPreviewElement=function(na){var ya=Y.apply(this,arguments);this.previewElementWidth=ya.style.width;this.previewElementHeight=ya.style.height;ya.style.pointerEvents="none";return ya};var ha=G.dragEnter;G.dragEnter=function(na,ya){null!=p.hoverIcons&&p.hoverIcons.setDisplay("none");ha.apply(this,arguments)};var ia=G.dragExit;G.dragExit=function(na,ya){null!=p.hoverIcons&&p.hoverIcons.setDisplay("");ia.apply(this,-arguments)};G.dragOver=function(na,ya){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=V&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var za=na.view;if(null!=L&&V==H)this.previewElement.style.display="none";else if(null!=M&&null!=V){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ka=na.model.isEdge(M.cell)||null!=w?w:v,Qa=y.getDropAndConnectGeometry(M.cell,e[Ka],O,e),Ia=na.model.isEdge(M.cell)?+arguments)};G.dragOver=function(na,ya){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=V&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var za=na.view;if(null!=K&&V==H)this.previewElement.style.display="none";else if(null!=M&&null!=V){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var Ka=na.model.isEdge(M.cell)||null!=w?w:u,Qa=y.getDropAndConnectGeometry(M.cell,e[Ka],O,e),Ia=na.model.isEdge(M.cell)?null:na.getCellGeometry(M.cell),Ha=na.getCellGeometry(e[Ka]),ra=na.model.getParent(M.cell),Da=za.translate.x*za.scale,Va=za.translate.y*za.scale;null!=Ia&&!Ia.relative&&na.model.isVertex(ra)&&ra!=za.currentRoot&&(Va=za.getState(ra),Da=Va.x,Va=Va.y);Ia=Ha.x;Ha=Ha.y;na.model.isEdge(e[Ka])&&(Ha=Ia=0);this.previewElement.style.left=(Qa.x-Ia)*za.scale+Da+"px";this.previewElement.style.top=(Qa.y-Ha)*za.scale+Va+"px";1==e.length&&(this.previewElement.style.width=Qa.width*za.scale+"px",this.previewElement.style.height=Qa.height*za.scale+"px",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="none",this.previewElement.className="geDragPreview",mxUtils.setOpacity(this.previewElement,100)));this.previewElement.style.display=""}else null!=G.currentHighlight&&null!=G.currentHighlight.state&&na.model.isEdge(G.currentHighlight.state.cell)?(this.previewElement.style.left=Math.round(parseInt(this.previewElement.style.left)-g.width*za.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)-g.height*za.scale/2)+"px"):(this.previewElement.style.width=this.previewElementWidth,this.previewElement.style.height=this.previewElementHeight,this.previewElement.style.display="",null!=this.previewElement.firstChild&&(this.previewElement.firstChild.style.display="",mxUtils.setOpacity(this.previewElement,50),this.previewElement.className=""))}};var ta=(new Date).getTime(),aa=0,P=null,ba=this.editorUi.editor.graph.getCellStyle(e[0]);G.getDropTarget=mxUtils.bind(this,function(na,ya,za,Ka){var Qa=mxEvent.isAltDown(Ka)||null==e?null:na.getCellAt(ya,za,null,null,null,function(Va,Wa,$a){return na.isContainer(Va.cell)&&"0"!=mxUtils.getValue(Va.style,"dropTarget","1")});if(null!=Qa&&!this.graph.isCellConnectable(Qa)&&!this.graph.model.isEdge(Qa)){var Ia=this.graph.getModel().getParent(Qa);this.graph.getModel().isVertex(Ia)&&this.graph.isCellConnectable(Ia)&&(Qa=Ia)}na.isCellLocked(Qa)&&(Qa=null);var Ha=na.view.getState(Qa);Ia=V=null;P!=Ha?(ta=(new Date).getTime(),aa=0,P=Ha,null!=this.updateThread&&window.clearTimeout(this.updateThread),null!=Ha&&(this.updateThread=window.setTimeout(function(){null==V&&(P=Ha,G.getDropTarget(na,ya,za,Ka))},this.dropTargetDelay+10))):aa=(new Date).getTime()-ta;if(E&&2500>aa&&null!=Ha&&!mxEvent.isShiftDown(Ka)&&(mxUtils.getValue(Ha.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)&&(mxUtils.getValue(Ha.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ha.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ha.style,-mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)||1500<aa||na.model.isEdge(Ha.cell))&&aa>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ha)&&(na.model.isVertex(Ha.cell)&&null!=w||na.model.isEdge(Ha.cell)&&na.model.isEdge(e[0]))){if(na.isCellEditable(Ha.cell)){L=Ha;var ra=na.model.isEdge(Ha.cell)?na.view.getPoint(Ha):new mxPoint(Ha.getCenterX(),Ha.getCenterY());ra=new mxRectangle(ra.x-this.refreshTarget.width/2,ra.y-this.refreshTarget.height/-2,this.refreshTarget.width,this.refreshTarget.height);H.style.left=Math.floor(ra.x)+"px";H.style.top=Math.floor(ra.y)+"px";null==S&&(na.container.appendChild(H),S=H.parentNode);m(ya,za,ra,H)}}else null==L||!mxUtils.contains(L,ya,za)||1500<aa&&!mxEvent.isShiftDown(Ka)?(L=null,null!=S&&(H.parentNode.removeChild(H),S=null)):null!=L&&null!=S&&(ra=na.model.isEdge(L.cell)?na.view.getPoint(L):new mxPoint(L.getCenterX(),L.getCenterY()),ra=new mxRectangle(ra.x-this.refreshTarget.width/2,ra.y-this.refreshTarget.height/+mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)||1500<aa||na.model.isEdge(Ha.cell))&&aa>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ha)&&(na.model.isVertex(Ha.cell)&&null!=w||na.model.isEdge(Ha.cell)&&na.model.isEdge(e[0]))){if(na.isCellEditable(Ha.cell)){K=Ha;var ra=na.model.isEdge(Ha.cell)?na.view.getPoint(Ha):new mxPoint(Ha.getCenterX(),Ha.getCenterY());ra=new mxRectangle(ra.x-this.refreshTarget.width/2,ra.y-this.refreshTarget.height/+2,this.refreshTarget.width,this.refreshTarget.height);H.style.left=Math.floor(ra.x)+"px";H.style.top=Math.floor(ra.y)+"px";null==S&&(na.container.appendChild(H),S=H.parentNode);m(ya,za,ra,H)}}else null==K||!mxUtils.contains(K,ya,za)||1500<aa&&!mxEvent.isShiftDown(Ka)?(K=null,null!=S&&(H.parentNode.removeChild(H),S=null)):null!=K&&null!=S&&(ra=na.model.isEdge(K.cell)?na.view.getPoint(K):new mxPoint(K.getCenterX(),K.getCenterY()),ra=new mxRectangle(ra.x-this.refreshTarget.width/2,ra.y-this.refreshTarget.height/2,this.refreshTarget.width,this.refreshTarget.height),m(ya,za,ra,H));if(W&&null!=M&&!mxEvent.isAltDown(Ka)&&null==V){Ia=mxRectangle.fromRectangle(M);if(na.model.isEdge(M.cell)){var Da=M.absolutePoints;null!=ea.parentNode&&(ra=Da[0],Ia.add(m(ya,za,new mxRectangle(ra.x-this.roundDrop.width/2,ra.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),ea)));null!=la.parentNode&&(Da=Da[Da.length-1],Ia.add(m(ya,za,new mxRectangle(Da.x-this.roundDrop.width/2,Da.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),la)))}else ra=mxRectangle.fromRectangle(M),null!=M.shape&&null!=M.shape.boundingBox&&(ra=mxRectangle.fromRectangle(M.shape.boundingBox)),ra.grow(this.graph.tolerance),ra.grow(HoverIcons.prototype.arrowSpacing),Da=this.graph.selectionCellsHandler.getHandler(M.cell),null!=Da&&(ra.x-=Da.horizontalOffset/2,ra.y-=Da.verticalOffset/2,ra.width+=Da.horizontalOffset,ra.height+=Da.verticalOffset,null!=Da.rotationShape&&null!=Da.rotationShape.node&&"hidden"!=Da.rotationShape.node.style.visibility&&"none"!=Da.rotationShape.node.style.display&&null!=Da.rotationShape.boundingBox&&ra.add(Da.rotationShape.boundingBox)),Ia.add(m(ya,za,new mxRectangle(M.getCenterX()-this.triangleUp.width/2,ra.y-this.triangleUp.height,this.triangleUp.width,this.triangleUp.height),X)),Ia.add(m(ya,za,new mxRectangle(ra.x+ra.width,M.getCenterY()-this.triangleRight.height/2,this.triangleRight.width,this.triangleRight.height),T)),Ia.add(m(ya,za,new mxRectangle(M.getCenterX()-this.triangleDown.width/2,ra.y+ra.height,this.triangleDown.width,-this.triangleDown.height),N)),Ia.add(m(ya,za,new mxRectangle(ra.x-this.triangleLeft.width,M.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),ca));null!=Ia&&Ia.grow(10)}O=mxConstants.DIRECTION_NORTH;V==T?O=mxConstants.DIRECTION_EAST:V==N||V==la?O=mxConstants.DIRECTION_SOUTH:V==ca&&(O=mxConstants.DIRECTION_WEST);null!=L&&V==H&&(Ha=L);ra=(null==w||na.isCellConnectable(e[w]))&&(na.model.isEdge(Qa)&&null!=w||na.model.isVertex(Qa)&&na.isCellConnectable(Qa));if(null!=+this.triangleDown.height),N)),Ia.add(m(ya,za,new mxRectangle(ra.x-this.triangleLeft.width,M.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),ca));null!=Ia&&Ia.grow(10)}O=mxConstants.DIRECTION_NORTH;V==T?O=mxConstants.DIRECTION_EAST:V==N||V==la?O=mxConstants.DIRECTION_SOUTH:V==ca&&(O=mxConstants.DIRECTION_WEST);null!=K&&V==H&&(Ha=K);ra=(null==w||na.isCellConnectable(e[w]))&&(na.model.isEdge(Qa)&&null!=w||na.model.isVertex(Qa)&&na.isCellConnectable(Qa));if(null!=M&&5E3<=aa||M!=Ha&&(null==Ia||!mxUtils.contains(Ia,ya,za)||500<aa&&null==V&&ra))if(W=!1,M=5E3>aa&&aa>this.dropTargetDelay||na.model.isEdge(Qa)?Ha:null,null!=M&&ra){Ia=[ea,la,X,T,N,ca];for(ra=0;ra<Ia.length;ra++)null!=Ia[ra].parentNode&&Ia[ra].parentNode.removeChild(Ia[ra]);na.model.isEdge(Qa)?(Da=Ha.absolutePoints,null!=Da&&(ra=Da[0],Da=Da[Da.length-1],ea.style.left=Math.floor(ra.x-this.roundDrop.width/2)+"px",ea.style.top=Math.floor(ra.y-this.roundDrop.height/2)+"px",la.style.left=Math.floor(Da.x-this.roundDrop.width/2)+"px",la.style.top=Math.floor(Da.y-this.roundDrop.height/2)+"px",null==na.model.getTerminal(Qa,!0)&&na.container.appendChild(ea),null==na.model.getTerminal(Qa,!1)&&na.container.appendChild(la))):(ra=mxRectangle.fromRectangle(Ha),null!=Ha.shape&&null!=Ha.shape.boundingBox&&(ra=mxRectangle.fromRectangle(Ha.shape.boundingBox)),ra.grow(this.graph.tolerance),ra.grow(HoverIcons.prototype.arrowSpacing),Da=this.graph.selectionCellsHandler.getHandler(Ha.cell),null!=Da&&(ra.x-=Da.horizontalOffset/2,ra.y-=Da.verticalOffset/2,ra.width+=Da.horizontalOffset,ra.height+=Da.verticalOffset,null!=Da.rotationShape&&null!=Da.rotationShape.node&&"hidden"!=Da.rotationShape.node.style.visibility&&"none"!=Da.rotationShape.node.style.display&&null!=Da.rotationShape.boundingBox&&ra.add(Da.rotationShape.boundingBox)),X.style.left=Math.floor(Ha.getCenterX()-this.triangleUp.width/2)+"px",X.style.top=Math.floor(ra.y-this.triangleUp.height)+"px",T.style.left=Math.floor(ra.x+ra.width)+"px",T.style.top=Math.floor(Ha.getCenterY()-this.triangleRight.height/2)+"px",N.style.left=X.style.left,N.style.top=Math.floor(ra.y+ra.height)+"px",ca.style.left=Math.floor(ra.x-this.triangleLeft.width)+"px",ca.style.top=T.style.top,"eastwest"!=Ha.style.portConstraint&&(na.container.appendChild(X),na.container.appendChild(N)),na.container.appendChild(T),na.container.appendChild(ca));null!=Ha&&(Q=na.selectionCellsHandler.getHandler(Ha.cell),null!=Q&&null!=Q.setHandlesVisible&&Q.setHandlesVisible(!1));W=!0}else for(Ia=[ea,la,X,T,N,ca],ra=0;ra<-Ia.length;ra++)null!=Ia[ra].parentNode&&Ia[ra].parentNode.removeChild(Ia[ra]);W||null==Q||Q.setHandlesVisible(!0);Qa=mxEvent.isAltDown(Ka)&&!mxEvent.isShiftDown(Ka)||null!=L&&V==H?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Qa||null==V&&na.isSplitTarget(Qa,e,Ka)||(Qa=na.getDropTarget(e,Ka,Qa,!0));return Qa});var ma=G.startDrag;G.startDrag=function(na){y.activeDragSource=this;ma.apply(this,arguments)};var Ja=G.stopDrag;G.stopDrag=function(){Ja.apply(this,arguments);for(var na=-[ea,la,H,X,T,N,ca],ya=0;ya<na.length;ya++)null!=na[ya].parentNode&&na[ya].parentNode.removeChild(na[ya]);null!=M&&null!=Q&&Q.reset();V=S=L=M=Q=y.activeDragSource=null};return G};+Ia.length;ra++)null!=Ia[ra].parentNode&&Ia[ra].parentNode.removeChild(Ia[ra]);W||null==Q||Q.setHandlesVisible(!0);Qa=mxEvent.isAltDown(Ka)&&!mxEvent.isShiftDown(Ka)||null!=K&&V==H?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Qa||null==V&&na.isSplitTarget(Qa,e,Ka)||(Qa=na.getDropTarget(e,Ka,Qa,!0));return Qa});var ma=G.startDrag;G.startDrag=function(na){y.activeDragSource=this;ma.apply(this,arguments)};var Ja=G.stopDrag;G.stopDrag=function(){Ja.apply(this,arguments);for(var na=+[ea,la,H,X,T,N,ca],ya=0;ya<na.length;ya++)null!=na[ya].parentNode&&na[ya].parentNode.removeChild(na[ya]);null!=M&&null!=Q&&Q.reset();V=S=K=M=Q=y.activeDragSource=null};return G};Sidebar.prototype.itemClicked=function(a,b,f,e){e=this.editorUi.editor.graph;e.container.focus();if(mxEvent.isAltDown(f)&&1==e.getSelectionCount()){for(var g=b=null,d=0;d<a.length&&(null==g&&e.model.isVertex(a[d])?g=d:null==b&&e.model.isEdge(a[d])&&null==e.model.getTerminal(a[d],!0)&&(b=d),null==g||null==b);d++);d=null==b?g:b;e.setSelectionCells(this.dropAndConnect(e.getSelectionCell(),a,mxEvent.isMetaDown(f)||mxEvent.isControlDown(f)?mxEvent.isShiftDown(f)?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH:mxEvent.isShiftDown(f)?mxConstants.DIRECTION_EAST:mxConstants.DIRECTION_SOUTH,d,f,g,b));e.scrollCellToVisible(e.getSelectionCell())}else mxEvent.isShiftDown(f)&&!e.isSelectionEmpty()?(f=e.getEditableCells(e.getSelectionCells()),e.updateShapes(a[0],f,!0),e.scrollCellToVisible(f)):(a=mxEvent.isAltDown(f)?e.getFreeInsertPoint():e.getCenterInsertPoint(e.getBoundingBoxFromGeometry(a,!0)),b.drop(e,f,null,a.x,a.y,!0))};-Sidebar.prototype.addClickHandler=function(a,b,f,e){var g=b.getGraphForEvent,d=b.mouseDown,h=b.mouseMove,m=b.mouseUp,p=this.editorUi.editor.graph.tolerance,k=!1,v=null,w=this,y=null;b.getGraphForEvent=function(C){return k?g.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);v=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));y=a.style.opacity;k=!1;""==y&&(y="1");null!=this.dragElement&&(this.dragElement.style.display="none")};b.mouseMove=function(C){(k=null!=v&&(Math.abs(v.x--mxEvent.getClientX(C))>p||Math.abs(v.y-mxEvent.getClientY(C))>p))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="");h.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=e&&e(C),mxEvent.isConsumed(C)||w.itemClicked(f,b,C,a)),m.apply(b,arguments),v=null,w.currentElt=a}catch(D){b.reset(),w.editorUi.handleError(D)}}};-Sidebar.prototype.createVertexTemplateEntry=function(a,b,f,e,g,d,h,m){null!=m&&null!=g&&(m+=" "+g);m=null!=m&&0<m.length?m:null!=g?g.toLowerCase():"";return this.addEntry(m,mxUtils.bind(this,function(){return this.createVertexTemplate(a,b,f,e,g,d,h)}))};Sidebar.prototype.createVertexTemplate=function(a,b,f,e,g,d,h,m,p,k,v,w,y,C){a=[new mxCell(null!=e?e:"",new mxGeometry(0,0,b,f),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,f,g,d,h,m,p,k,v,w,y,C)};-Sidebar.prototype.createVertexTemplateFromData=function(a,b,f,e,g,d,h,m){var p=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),v=new mxCodec(k),w=new mxGraphModel;v.decode(k.documentElement,w);p=this.graph.cloneCells(w.root.getChildAt(0).children)}catch(y){e=mxResources.get("error")+": "+y.message}return this.createVertexTemplateFromCells(p,b,f,e,g,d,h,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,f,e,g,d,h,m,p,k,v,w,y,C){return this.createItem(a,e,g,d,b,f,h,m,p,k,v,w,y,C)};+Sidebar.prototype.addClickHandler=function(a,b,f,e){var g=b.getGraphForEvent,d=b.mouseDown,h=b.mouseMove,m=b.mouseUp,p=this.editorUi.editor.graph.tolerance,k=!1,u=null,w=this,y=null;b.getGraphForEvent=function(C){return k?g.apply(this,arguments):null};b.mouseDown=function(C){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C));y=a.style.opacity;k=!1;""==y&&(y="1");null!=this.dragElement&&(this.dragElement.style.display="none")};b.mouseMove=function(C){(k=null!=u&&(Math.abs(u.x-+mxEvent.getClientX(C))>p||Math.abs(u.y-mxEvent.getClientY(C))>p))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="");h.apply(this,arguments)};b.mouseUp=function(C){try{mxEvent.isPopupTrigger(C)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=e&&e(C),mxEvent.isConsumed(C)||w.itemClicked(f,b,C,a)),m.apply(b,arguments),u=null,w.currentElt=a}catch(D){b.reset(),w.editorUi.handleError(D)}}};+Sidebar.prototype.createVertexTemplateEntry=function(a,b,f,e,g,d,h,m){null!=m&&null!=g&&(m+=" "+g);m=null!=m&&0<m.length?m:null!=g?g.toLowerCase():"";return this.addEntry(m,mxUtils.bind(this,function(){return this.createVertexTemplate(a,b,f,e,g,d,h)}))};Sidebar.prototype.createVertexTemplate=function(a,b,f,e,g,d,h,m,p,k,u,w,y,C){a=[new mxCell(null!=e?e:"",new mxGeometry(0,0,b,f),a)];a[0].vertex=!0;return this.createVertexTemplateFromCells(a,b,f,g,d,h,m,p,k,u,w,y,C)};+Sidebar.prototype.createVertexTemplateFromData=function(a,b,f,e,g,d,h,m){var p=null;try{var k=mxUtils.parseXml(Graph.decompress(a)),u=new mxCodec(k),w=new mxGraphModel;u.decode(k.documentElement,w);p=this.graph.cloneCells(w.root.getChildAt(0).children)}catch(y){e=mxResources.get("error")+": "+y.message}return this.createVertexTemplateFromCells(p,b,f,e,g,d,h,m)};Sidebar.prototype.createVertexTemplateFromCells=function(a,b,f,e,g,d,h,m,p,k,u,w,y,C){return this.createItem(a,e,g,d,b,f,h,m,p,k,u,w,y,C)};Sidebar.prototype.createEdgeTemplateEntry=function(a,b,f,e,g,d,h,m,p){h=null!=h&&0<h.length?h:g.toLowerCase();return this.addEntry(h,mxUtils.bind(this,function(){return this.createEdgeTemplate(a,b,f,e,g,d,m,p)}))};-Sidebar.prototype.createEdgeTemplate=function(a,b,f,e,g,d,h,m){a=new mxCell(null!=e?e:"",new mxGeometry(0,0,b,f),a);a.geometry.setTerminalPoint(new mxPoint(0,f),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,f,g,d,h,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,f,e,g,d,h,m,p,k,v,w){return this.createItem(a,e,g,null!=m?m:!0,b,f,d,h,p,k,v,w)};+Sidebar.prototype.createEdgeTemplate=function(a,b,f,e,g,d,h,m){a=new mxCell(null!=e?e:"",new mxGeometry(0,0,b,f),a);a.geometry.setTerminalPoint(new mxPoint(0,f),!0);a.geometry.setTerminalPoint(new mxPoint(b,0),!1);a.geometry.relative=!0;a.edge=!0;return this.createEdgeTemplateFromCells([a],b,f,g,d,h,m)};Sidebar.prototype.createEdgeTemplateFromCells=function(a,b,f,e,g,d,h,m,p,k,u,w){return this.createItem(a,e,g,null!=m?m:!0,b,f,d,h,p,k,u,w)};Sidebar.prototype.addPaletteFunctions=function(a,b,f,e){this.addPalette(a,b,f,mxUtils.bind(this,function(g){for(var d=0;d<e.length;d++)g.appendChild(e[d](g))}))};Sidebar.prototype.addPalette=function(a,b,f,e){b=this.createTitle(b);this.appendChild(b);var g=document.createElement("div");g.className="geSidebar";mxClient.IS_POINTER&&(g.style.touchAction="none");f&&this.expandLibraries?(e(g),e=null):g.style.display="none";this.addFoldingHandler(b,g,e);f=document.createElement("div");f.appendChild(g);this.appendChild(f);null!=a&&(this.palettes[a]=[b,f]);return g};Sidebar.prototype.addFoldingHandler=function(a,b,f){var e=!1;a.style.backgroundImage="none"==b.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";mxEvent.addListener(a,"click",mxUtils.bind(this,function(g){if(a.contains(mxEvent.getSource(g))){if("none"==b.style.display){if(e)this.setContentVisible(b,!0);else if(e=!0,null!=f){a.style.cursor="wait";for(var d=[],h=0;h<a.children.length;h++)d.push(a.children[h]);a.innerHTML=mxResources.get("loading")+"...";window.setTimeout(mxUtils.bind(this,function(){this.setContentVisible(b,!0);a.style.cursor="";a.innerHTML="";for(var m=0;m<d.length;m++)a.appendChild(d[m]);m=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignObject;f(b,a);mxClient.NO_FO=m}),mxClient.IS_FF?20:0)}else this.setContentVisible(b,!0);a.style.backgroundImage="url('"+Editor.arrowDownImage+"')"}else a.style.backgroundImage="url('"+Editor.arrowRightImage+"')",this.setContentVisible(b,!1);mxEvent.consume(g)}}));mxEvent.preventDefault(a)};Sidebar.prototype.setContentVisible=function(a,b){var f=Editor.transitionDelay;mxUtils.setPrefixedStyle(a.style,"transition","all "+f+"s linear");b?(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),a.style.display="block",window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform","scaleY(1)");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",null)}),1E3*f)}),0)):(mxUtils.setPrefixedStyle(a.style,"transform","scaleY(0)"),window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(a.style,"transform",null);mxUtils.setPrefixedStyle(a.style,"transition",null);a.style.display="none"}),1E3*f))};Sidebar.prototype.removePalette=function(a){var b=this.palettes[a];if(null!=b){this.palettes[a]=null;for(a=0;a<b.length;a++)this.container.removeChild(b[a]);return!0}return!1};-Sidebar.prototype.addImagePalette=function(a,b,f,e,g,d,h){for(var m=[],p=0;p<g.length;p++)mxUtils.bind(this,function(k,v,w){if(null==w&&(null==f||"img/lib/clip_art/"!=f.substring(0,17))){w=k.lastIndexOf("/");var y=k.lastIndexOf(".");w=k.substring(0<=w?w+1:0,0<=y?y:k.length).replace(/[-_]/g," ")}m.push(this.createVertexTemplateEntry("image;html=1;image="+f+k+e,this.defaultImageWidth,this.defaultImageHeight,"",v,null!=v,null,this.filterTags(w)))})(g[p],null!=d?d[p]:null,null!=h?h[g[p]]:null);this.addPaletteFunctions(a,+Sidebar.prototype.addImagePalette=function(a,b,f,e,g,d,h){for(var m=[],p=0;p<g.length;p++)mxUtils.bind(this,function(k,u,w){if(null==w&&(null==f||"img/lib/clip_art/"!=f.substring(0,17))){w=k.lastIndexOf("/");var y=k.lastIndexOf(".");w=k.substring(0<=w?w+1:0,0<=y?y:k.length).replace(/[-_]/g," ")}m.push(this.createVertexTemplateEntry("image;html=1;image="+f+k+e,this.defaultImageWidth,this.defaultImageHeight,"",u,null!=u,null,this.filterTags(w)))})(g[p],null!=d?d[p]:null,null!=h?h[g[p]]:null);this.addPaletteFunctions(a,b,!1,m)};Sidebar.prototype.getTagsForStencil=function(a,b,f){a=a.split(".");for(var e=1;e<a.length;e++)a[e]=a[e].replace(/_/g," ");a.push(b.replace(/_/g," "));null!=f&&a.push(f);return a.slice(1,a.length)};-Sidebar.prototype.addStencilPalette=function(a,b,f,e,g,d,h,m,p,k){h=null!=h?h:1;if(this.addStencilsToIndex){var v=[];if(null!=p)for(k=0;k<p.length;k++)v.push(p[k]);mxStencilRegistry.loadStencilSet(f,mxUtils.bind(this,function(w,y,C,D,E){if(null==g||0>mxUtils.indexOf(g,y)){C=this.getTagsForStencil(w,y);var G=null!=m?m[y]:null;null!=G&&C.push(G);v.push(this.createVertexTemplateEntry("shape="+w+y.toLowerCase()+e,Math.round(D*h),Math.round(E*h),"",y.replace(/_/g," "),null,null,this.filterTags(C.join(" "))))}}),-!0,!0);this.addPaletteFunctions(a,b,!1,v)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==e&&(e="");null!=d&&d.call(this,w);if(null!=p)for(var y=0;y<p.length;y++)p[y](w);mxStencilRegistry.loadStencilSet(f,mxUtils.bind(this,function(C,D,E,G,J){(null==g||0>mxUtils.indexOf(g,D))&&w.appendChild(this.createVertexTemplate("shape="+C+D.toLowerCase()+e,Math.round(G*h),Math.round(J*h),"",D.replace(/_/g," "),!0))}),!0)}))};+Sidebar.prototype.addStencilPalette=function(a,b,f,e,g,d,h,m,p,k){h=null!=h?h:1;if(this.addStencilsToIndex){var u=[];if(null!=p)for(k=0;k<p.length;k++)u.push(p[k]);mxStencilRegistry.loadStencilSet(f,mxUtils.bind(this,function(w,y,C,D,E){if(null==g||0>mxUtils.indexOf(g,y)){C=this.getTagsForStencil(w,y);var G=null!=m?m[y]:null;null!=G&&C.push(G);u.push(this.createVertexTemplateEntry("shape="+w+y.toLowerCase()+e,Math.round(D*h),Math.round(E*h),"",y.replace(/_/g," "),null,null,this.filterTags(C.join(" "))))}}),+!0,!0);this.addPaletteFunctions(a,b,!1,u)}else this.addPalette(a,b,!1,mxUtils.bind(this,function(w){null==e&&(e="");null!=d&&d.call(this,w);if(null!=p)for(var y=0;y<p.length;y++)p[y](w);mxStencilRegistry.loadStencilSet(f,mxUtils.bind(this,function(C,D,E,G,J){(null==g||0>mxUtils.indexOf(g,D))&&w.appendChild(this.createVertexTemplate("shape="+C+D.toLowerCase()+e,Math.round(G*h),Math.round(J*h),"",D.replace(/_/g," "),!0))}),!0)}))};Sidebar.prototype.destroy=function(){null!=this.graph&&(null!=this.graph.container&&null!=this.graph.container.parentNode&&this.graph.container.parentNode.removeChild(this.graph.container),this.graph.destroy(),this.graph=null);null!=this.escapeListener&&(this.editorUi.editor.graph.removeListener(this.escapeListener),this.escapeListener=null);null!=this.refreshListener&&(this.editorUi.removeListener(this.refreshListener),this.refreshListener=null);null!=this.pointerUpHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerup":"mouseup",this.pointerUpHandler),this.pointerUpHandler=null);null!=this.pointerDownHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerdown":"mousedown",this.pointerDownHandler),this.pointerDownHandler=null);null!=this.pointerMoveHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.pointerMoveHandler),this.pointerMoveHandler=null);null!=this.pointerOutHandler&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointerout":"mouseout",this.pointerOutHandler),this.pointerOutHandler=null)};(function(){var a=[["nbsp","160"],["shy","173"]],b=mxUtils.parseXml;mxUtils.parseXml=function(e){for(var g=0;g<a.length;g++)e=e.replace(new RegExp("&"+a[g][0]+";","g"),"&#"+a[g][1]+";");return b(e)};var f=mxUtils.getSizeForString;mxUtils.getSizeForString=function(e,g,d,h){return f(Graph.sanitizeHtml(e),g,d,h)}})();Date.prototype.toISOString||function(){function a(b){b=String(b);1===b.length&&(b="0"+b);return b}Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(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 a=Object.prototype.toString,b=function(e){return"function"===typeof e||"[object Function]"===a.call(e)},f=Math.pow(2,53)-1;return function(e){var g=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var d=1<arguments.length?arguments[1]:void 0,h;if("undefined"!==typeof d){if(!b(d))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(h=-arguments[2])}var m=Number(g.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),f);for(var p=b(this)?Object(new this(m)):Array(m),k=0,v;k<m;)v=g[k],p[k]=d?"undefined"===typeof h?d(v,k):d.call(h,v,k):v,k+=1;p.length=m;return p}}());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(" ");+arguments[2])}var m=Number(g.length);m=isNaN(m)?0:0!==m&&isFinite(m)?(0<m?1:-1)*Math.floor(Math.abs(m)):m;m=Math.min(Math.max(m,0),f);for(var p=b(this)?Object(new this(m)):Array(m),k=0,u;k<m;)u=g[k],p[k]=d?"undefined"===typeof h?d(u,k):d.call(h,u,k):u,k+=1;p.length=m;return p}}());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 a=navigator.language.toLowerCase();mxGraph.prototype.pageFormat="en-us"===a||"en-ca"===a||"es-mx"===a?mxConstants.PAGE_FORMAT_LETTER_PORTRAIT:mxConstants.PAGE_FORMAT_A4_PORTRAIT}}catch(b){}})();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(a){this.unit!=a&&(this.unit=a,this.graph.refresh(),this.fireEvent(new mxEventObject("unitChanged","unit",a)))};mxSvgCanvas2D.prototype.foAltText="[Not supported by viewer]";mxShape.prototype.getConstraints=function(a,b,f){return null};mxImageShape.prototype.getImageDataUri=function(){var a=String(this.image);if("data:image/svg+xml;base64,"==a.substring(0,26)&&null!=this.style&&"1"==mxUtils.getValue(this.style,"clipSvg","0")){if(null==this.clippedSvg||this.clippedImage!=a)this.clippedSvg=Graph.clipSvgDataUri(a),this.clippedImage=a;a=this.clippedSvg}return a};(function(){var a=mxStencil.prototype.parseColor;mxStencil.prototype.parseColor=function(b,f,e,g,d){return"default"==g&&null!=d?"fillcolor"==e.nodeName?d.shapeBackgroundColor:d.shapeForegroundColor:a.apply(this,arguments)}})();(function(){var a=mxResources.get;mxResources.get=function(b,f,e){null==e&&(e=b);return a.apply(this,[b,f,e])}})();-(function(){var a=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(b,f,e,g,d,h,m,p){var k=a.apply(this,arguments);if(null!=f){var v=k.getElementsByTagName("img");0<v.length&&(v[0].className="geButton")}return k}})();+(function(){var a=mxPopupMenu.prototype.addItem;mxPopupMenu.prototype.addItem=function(b,f,e,g,d,h,m,p){var k=a.apply(this,arguments);if(null!=f){var u=k.getElementsByTagName("img");0<u.length&&(u[0].className="geButton")}return k}})();Graph=function(a,b,f,e,g,d){mxGraph.call(this,a,b,f,e);this.themes=g||this.defaultThemes;this.currentEdgeStyle=mxUtils.clone(this.defaultEdgeStyle);this.currentVertexStyle=mxUtils.clone(this.defaultVertexStyle);this.standalone=null!=d?d:!1;a=this.baseUrl;b=a.indexOf("//");this.domainPathUrl=this.domainUrl="";0<b&&(b=a.indexOf("/",b+2),0<b&&(this.domainUrl=a.substring(0,b)),b=a.lastIndexOf("/"),0<b&&(this.domainPathUrl=a.substring(0,b+1)));this.isHtmlLabel=function(O){O=this.getCurrentCellStyle(O);-return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var h=null,m=null,p=null,k=null,v=!1,w=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,V){if("mouseDown"==V.getProperty("eventName")&&this.isEnabled()){O=V.getProperty("event");var Y=O.getState();V=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=Y&&(w=this.isCellSelected(Y.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var ha=this.selectionCellsHandler.getHandler(Y.cell);+return null!=O?"1"==O.html||"wrap"==O[mxConstants.STYLE_WHITE_SPACE]:!1};if(this.immediateHandling){var h=null,m=null,p=null,k=null,u=!1,w=!1;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,V){if("mouseDown"==V.getProperty("eventName")&&this.isEnabled()){O=V.getProperty("event");var Y=O.getState();V=this.view.scale;if(!mxEvent.isAltDown(O.getEvent())&&null!=Y&&(w=this.isCellSelected(Y.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(O.getEvent()))){var ha=this.selectionCellsHandler.getHandler(Y.cell);if(null==ha||null==ha.getHandleForEvent(O)){var ia=new mxRectangle(O.getGraphX()-1,O.getGraphY()-1),ta=mxEvent.isTouchEvent(O.getEvent())?mxShape.prototype.svgStrokeTolerance-1:(mxShape.prototype.svgStrokeTolerance+2)/2;ha=ta+2;ia.grow(ta);if(this.isTableCell(Y.cell)&&this.isCellMovable(Y.cell)&&!this.isCellSelected(Y.cell)&&!(mxUtils.contains(Y,O.getGraphX()-ha,O.getGraphY()-ha)&&mxUtils.contains(Y,O.getGraphX()-ha,O.getGraphY()+ha)&&mxUtils.contains(Y,O.getGraphX()+ha,O.getGraphY()+ha)&&mxUtils.contains(Y,O.getGraphX()+ha,O.getGraphY()-ha))){var aa=this.model.getParent(Y.cell);ha=this.model.getParent(aa);if(!this.isCellSelected(ha)){ta*=V;var P=2*ta;if(this.model.getChildAt(ha,0)!=aa&&mxUtils.intersects(ia,new mxRectangle(Y.x,Y.y-ta,Y.width,P))||this.model.getChildAt(aa,0)!=Y.cell&&mxUtils.intersects(ia,new mxRectangle(Y.x-ta,Y.y,P,Y.height))||mxUtils.intersects(ia,new mxRectangle(Y.x,Y.y+Y.height-ta,Y.width,P))||mxUtils.intersects(ia,new mxRectangle(Y.x+Y.width-ta,Y.y,P,Y.height)))aa=this.selectionCellsHandler.isHandled(ha),this.selectCellForEvent(ha,O.getEvent()),ha=this.selectionCellsHandler.getHandler(ha),null!=ha&&(ta=ha.getHandleForEvent(O),null!=ta&&(ha.start(O.getGraphX(),O.getGraphY(),ta),ha.blockDelayedSelection=!aa,O.consume()))}}for(;!O.isConsumed()&&null!=Y&&(this.isTableCell(Y.cell)||this.isTableRow(Y.cell)||this.isTable(Y.cell));)this.isSwimlane(Y.cell)&&this.isCellMovable(Y.cell)&&(ha=this.getActualStartSize(Y.cell),(0<ha.x||0<ha.width)&&mxUtils.intersects(ia,new mxRectangle(Y.x+(ha.x-ha.width-1)*V+(0==ha.x?Y.width:0),Y.y,1,Y.height))||(0<ha.y||0<ha.height)&&mxUtils.intersects(ia,new mxRectangle(Y.x,Y.y+(ha.y-ha.height-1)*V+(0==ha.y?Y.height:0),Y.width,1)))&&(this.selectCellForEvent(Y.cell,O.getEvent()),ha=this.selectionCellsHandler.getHandler(Y.cell),null!=ha&&null!=ha.customHandles&&(ta=mxEvent.CUSTOM_HANDLE-ha.customHandles.length+1,ha.start(O.getGraphX(),O.getGraphY(),ta),O.consume())),Y=this.view.getState(this.model.getParent(Y.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,-function(O,V){if("mouseDown"==V.getProperty("eventName")&&this.isEnabled()){O=V.getProperty("event");var Y=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(V)||mxEvent.isShiftDown(V)||w||null==Y||!this.model.isEdge(Y.cell)||(h=new mxPoint(O.getGraphX(),O.getGraphY()),v=this.isCellSelected(Y.cell),p=Y,m=O,null!=Y.text&&null!=Y.text.boundingBox&&mxUtils.contains(Y.text.boundingBox,O.getGraphX(),O.getGraphY())?k=mxEvent.LABEL_HANDLE:(V=this.selectionCellsHandler.getHandler(Y.cell),+function(O,V){if("mouseDown"==V.getProperty("eventName")&&this.isEnabled()){O=V.getProperty("event");var Y=O.getState();mxEvent.isAltDown(O.getEvent())||mxEvent.isControlDown(V)||mxEvent.isShiftDown(V)||w||null==Y||!this.model.isEdge(Y.cell)||(h=new mxPoint(O.getGraphX(),O.getGraphY()),u=this.isCellSelected(Y.cell),p=Y,m=O,null!=Y.text&&null!=Y.text.boundingBox&&mxUtils.contains(Y.text.boundingBox,O.getGraphX(),O.getGraphY())?k=mxEvent.LABEL_HANDLE:(V=this.selectionCellsHandler.getHandler(Y.cell),null!=V&&null!=V.bends&&0<V.bends.length&&(k=V.getHandleForEvent(O))))}}));this.addMouseListener({mouseDown:function(O,V){},mouseMove:mxUtils.bind(this,function(O,V){O=this.selectionCellsHandler.handlers.map;for(var Y in O)if(null!=O[Y].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(V.getEvent())){var ha=this.tolerance;if(null!=h&&null!=p&&null!=m){if(Y=p,null!=k||Math.abs(h.x-V.getGraphX())>ha||Math.abs(h.y-V.getGraphY())>ha){var ia=null;mxEvent.isShiftDown(V.getEvent())||-(ia=this.selectionCellsHandler.getHandler(Y.cell));if(null!=ia&&null!=ia.bends&&0<ia.bends.length){ia.redrawHandles();var ta=null!=k?k:ia.getHandleForEvent(m),aa=this.view.getEdgeStyle(Y),P=aa==mxEdgeStyle.EntityRelation;ha=Y.absolutePoints;v||(ta=k);ta!=mxEvent.LABEL_HANDLE&&null!=ha&&(ta=k,null==ta&&(O=new mxRectangle(h.x,h.y),O.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(O,ha[0].x,ha[0].y)?ta=0:mxUtils.contains(O,ha[ha.length-1].x,ha[ha.length-1].y)?ta=ia.bends.length-1:+(ia=this.selectionCellsHandler.getHandler(Y.cell));if(null!=ia&&null!=ia.bends&&0<ia.bends.length){ia.redrawHandles();var ta=null!=k?k:ia.getHandleForEvent(m),aa=this.view.getEdgeStyle(Y),P=aa==mxEdgeStyle.EntityRelation;ha=Y.absolutePoints;u||(ta=k);ta!=mxEvent.LABEL_HANDLE&&null!=ha&&(ta=k,null==ta&&(O=new mxRectangle(h.x,h.y),O.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(O,ha[0].x,ha[0].y)?ta=0:mxUtils.contains(O,ha[ha.length-1].x,ha[ha.length-1].y)?ta=ia.bends.length-1:null!=ha&&(null==aa&&null==ta||aa==mxEdgeStyle.SegmentConnector||aa==mxEdgeStyle.OrthConnector)&&(null!=aa&&(2==ha.length||3==ha.length&&(0==Math.round(ha[0].x-ha[1].x)&&0==Math.round(ha[1].x-ha[2].x)||0==Math.round(ha[0].y-ha[1].y)&&0==Math.round(ha[1].y-ha[2].y)))?ta=2:(ta=mxUtils.findNearestSegment(Y,h.x,h.y),ta=null==aa?mxEvent.VIRTUAL_HANDLE-ta:ta+1))),null==ta&&(ta=mxEvent.VIRTUAL_HANDLE));O=ta==mxEvent.LABEL_HANDLE||0==ta||ta==ia.bends.length-1;if(!P&&(null!=Y.visibleSourceState||null!=Y.visibleTargetState)||-O)ia.start(V.getGraphX(),V.getGraphX(),ta),V.consume(),this.graphHandler.reset()}null!=ia&&(this.selectionCellsHandler.isHandlerActive(ia)?this.isCellSelected(Y.cell)||(this.selectionCellsHandler.handlers.put(Y.cell,ia),this.selectCellForEvent(Y.cell,V.getEvent())):this.isCellSelected(Y.cell)||ia.destroy());v=!1;h=m=p=k=null}}else if(Y=V.getState(),null!=Y&&this.isCellEditable(Y.cell)){O=this.model.getParent(Y.cell);ia=null;if(this.model.isEdge(Y.cell)&&!this.isCellSelected(Y.cell)&&!mxEvent.isAltDown(V.getEvent())&&+O)ia.start(V.getGraphX(),V.getGraphX(),ta),V.consume(),this.graphHandler.reset()}null!=ia&&(this.selectionCellsHandler.isHandlerActive(ia)?this.isCellSelected(Y.cell)||(this.selectionCellsHandler.handlers.put(Y.cell,ia),this.selectCellForEvent(Y.cell,V.getEvent())):this.isCellSelected(Y.cell)||ia.destroy());u=!1;h=m=p=k=null}}else if(Y=V.getState(),null!=Y&&this.isCellEditable(Y.cell)){O=this.model.getParent(Y.cell);ia=null;if(this.model.isEdge(Y.cell)&&!this.isCellSelected(Y.cell)&&!mxEvent.isAltDown(V.getEvent())&&!mxEvent.isShiftDown(V.getEvent())&&!this.isAncestorSelected(Y.cell)&&(this.isSwimlane(O)||this.model.isLayer(O)||this.getCurrentRoot()==O)){if(O=new mxRectangle(V.getGraphX(),V.getGraphY()),O.grow(mxEdgeHandler.prototype.handleImage.width/2),ha=Y.absolutePoints,null!=ha)null!=Y.text&&null!=Y.text.boundingBox&&mxUtils.contains(Y.text.boundingBox,V.getGraphX(),V.getGraphY())?ia="move":mxUtils.contains(O,ha[0].x,ha[0].y)||mxUtils.contains(O,ha[ha.length-1].x,ha[ha.length-1].y)?ia="pointer":(aa=this.view.getEdgeStyle(Y),aa==mxEdgeStyle.EntityRelation||null==Y.visibleSourceState&&null==Y.visibleTargetState||(ia="crosshair",aa!=mxEdgeStyle.SegmentConnector&&aa!=mxEdgeStyle.OrthConnector))||(V=mxUtils.findNearestSegment(Y,V.getGraphX(),V.getGraphY()),V<ha.length-1&&0<=V&&(ia=0==Math.round(ha[V].x-ha[V+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(V.getEvent())){ha=mxShape.prototype.svgStrokeTolerance/2;O=new mxRectangle(V.getGraphX(),V.getGraphY());O.grow(ha);if(this.isTableCell(Y.cell)&&this.isCellMovable(Y.cell)&&(V=this.model.getParent(Y.cell),ha=this.model.getParent(V),!this.isCellSelected(ha)))if(mxUtils.intersects(O,new mxRectangle(Y.x,Y.y-2,Y.width,4))&&this.model.getChildAt(ha,0)!=V||mxUtils.intersects(O,new mxRectangle(Y.x,Y.y+Y.height-2,Y.width,4)))ia="row-resize";else if(mxUtils.intersects(O,new mxRectangle(Y.x-2,Y.y,4,Y.height))&&this.model.getChildAt(V,0)!=Y.cell||mxUtils.intersects(O,new mxRectangle(Y.x+Y.width-2,Y.y,4,Y.height)))ia="col-resize";for(V=Y;null==ia&&null!=V&&(this.isTableCell(V.cell)||@@ -2554,8 +2555,8 @@ this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSourcP)*ia+ha.x)*ta,(aa.y*Y+ha.y)*ta,ia*ta,Y*ta));for(P=1;P<aa.height;P++)V.push(new mxRectangle((aa.x*ia+ha.x)*ta,((aa.y+P)*Y+ha.y)*ta,ia*ta,Y*ta));O=V.concat(O)}return O};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(O,V){return null==O.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(O){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,arguments)};var D=this.graphHandler.getCells;this.graphHandler.getCells=function(O){for(var V=D.apply(this,arguments),Y=new mxDictionary,ha=[],ia=0;ia<V.length;ia++){var ta=this.graph.isTableCell(O)&&this.graph.isTableCell(V[ia])&&this.graph.isCellSelected(V[ia])?this.graph.model.getParent(V[ia]):this.graph.isTableRow(O)&&this.graph.isTableRow(V[ia])&&this.graph.isCellSelected(V[ia])?V[ia]:this.graph.getCompositeParent(V[ia]);null==ta||Y.get(ta)||(Y.put(ta,!0),ha.push(ta))}return ha};var E=this.graphHandler.start;this.graphHandler.start=function(O,V,Y,ha){var ia=!1;this.graph.isTableCell(O)&&(this.graph.isCellSelected(O)?ia=!0:O=this.graph.model.getParent(O));ia||this.graph.isTableRow(O)&&this.graph.isCellSelected(O)||(O=this.graph.getCompositeParent(O));E.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(O,V){V=this.graph.getCompositeParent(V);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(O,V,Y,ha,ia,ta){var aa=-mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=ha&&this.graph.applyNewEdgeStyle(ha,[aa]);return aa};var G=new mxRubberband(this);this.getRubberband=function(){return G};var J=(new Date).getTime(),M=0,Q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;Q.apply(this,arguments);O!=this.currentState?(J=(new Date).getTime(),M=0):M=(new Date).getTime()-J};var L=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=-function(O){return mxEvent.isShiftDown(O.getEvent())&&mxEvent.isAltDown(O.getEvent())?!1:null!=this.currentState&&O.getState()==this.currentState&&2E3<M||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&L.apply(this,arguments)};var W=this.isToggleEvent;this.isToggleEvent=function(O){return W.apply(this,arguments)||mxEvent.isShiftDown(O)};var X=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(X=this.container.style.cursor,+mxConnectionHandler.prototype.insertEdge.apply(this,arguments);null!=ha&&this.graph.applyNewEdgeStyle(ha,[aa]);return aa};var G=new mxRubberband(this);this.getRubberband=function(){return G};var J=(new Date).getTime(),M=0,Q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var O=this.currentState;Q.apply(this,arguments);O!=this.currentState?(J=(new Date).getTime(),M=0):M=(new Date).getTime()-J};var K=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=+function(O){return mxEvent.isShiftDown(O.getEvent())&&mxEvent.isAltDown(O.getEvent())?!1:null!=this.currentState&&O.getState()==this.currentState&&2E3<M||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&K.apply(this,arguments)};var W=this.isToggleEvent;this.isToggleEvent=function(O){return W.apply(this,arguments)||mxEvent.isShiftDown(O)};var X=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(X=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUtils.bind(this,function(){this.isEnabled()&&(this.container.style.cursor=X)}));this.popupMenuHandler.autoExpand=!0;this.popupMenuHandler.isSelectOnPopup=function(O){return mxEvent.isMouseEvent(O.getEvent())};var T=this.click;this.click=function(O){var V=null==O.state&&null!=O.sourceState&&this.isCellLocked(this.getLayerForCell(O.sourceState.cell));if(this.isEnabled()&&!V||O.isConsumed())return T.apply(this,arguments);var Y=V?O.sourceState.cell:O.getCell();if(null!=Y){var ha=this.getClickableLinkForCell(Y);null!=ha?this.isCustomLink(ha)?this.customLinkClicked(ha,Y):this.openLink(ha):V&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(O){return O.sourceState};var N=this.tooltipHandler.show;this.tooltipHandler.show=function(){N.apply(this,arguments);if(null!=this.div)for(var O=this.div.getElementsByTagName("a"),V=0;V<O.length;V++)null!=O[V].getAttribute("href")&&null==O[V].getAttribute("target")&&O[V].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(O){return O.sourceState};this.getCursorForMouseEvent=function(O){var V=null==O.state&&null!=O.sourceState&&this.isCellLocked(O.sourceState.cell);return this.getCursorForCell(V?O.sourceState.cell:O.getCell())};var ca=this.getCursorForCell;this.getCursorForCell=function(O){if(!this.isEnabled()||this.isCellLocked(O)){if(null!=this.getClickableLinkForCell(O))return"pointer";if(this.isCellLocked(O))return"default"}return ca.apply(this,@@ -2576,9 +2577,9 @@ Graph.createSvgImage=function(a,b,f,e,g){f=unescape(encodeURIComponent(Graph.svgGraph.getSvgFromDataUri=function(a){return null!=a&&"data:image/svg"==a.substring(0,14)?Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+decodeURIComponent(escape(atob(a.substring(a.indexOf(",")+1)))):null};Graph.createSvgNode=function(a,b,f,e,g){var d=mxUtils.createXmlDocument(),h=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"svg"):d.createElement("svg");null!=g&&h.setAttribute("style","background: "+g.light+"; background-color: "+g.cssText+";");null==d.createElementNS?(h.setAttribute("xmlns",mxConstants.NS_SVG),h.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):h.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);h.setAttribute("version","1.1");h.setAttribute("width",f+"px");h.setAttribute("height",e+"px");h.setAttribute("viewBox",a+" "+b+" "+f+" "+e);d.appendChild(h);return h};-Graph.htmlToPng=function(a,b,f,e,g,d){g=null!=g?g:"";d=null!=d?d:Editor.htmlRasterScale;var h=document.createElement("canvas");h.width=b*d;h.height=f*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=h.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);e(h.toDataURL())}catch(v){e(null)}});var p=mxUtils.createXmlDocument();p=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");a=(new mxSvgCanvas2D(p)).convertHtml(a);m.onerror=+Graph.htmlToPng=function(a,b,f,e,g,d){g=null!=g?g:"";d=null!=d?d:Editor.htmlRasterScale;var h=document.createElement("canvas");h.width=b*d;h.height=f*d;var m=document.createElement("img");m.onload=mxUtils.bind(this,function(){try{var k=h.getContext("2d");k.scale(d,d);k.drawImage(m,0,0);e(h.toDataURL())}catch(u){e(null)}});var p=mxUtils.createXmlDocument();p=null!=p.createElementNS?p.createElementNS(mxConstants.NS_SVG,"svg"):p.createElement("svg");a=(new mxSvgCanvas2D(p)).convertHtml(a);m.onerror=function(k){e(null)};m.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="'+b+'" height="'+f+'">'+(""!=g?'<defs xmlns="http://www.w3.org/2000/svg"><style type="text/css">'+g+"</style></defs>":"")+'<foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">'+a+"</div></foreignObject></svg>")};-Graph.addLightDarkColors=function(a,b,f,e){function g(y,C,D){return null!=e?e(y,C,D):mxUtils.isValidColor(D)?(null==h&&null!=b&&(h={}),null!=h&&(h[C]=y.style.getPropertyValue(C)),D=mxUtils.getLightDarkColor(D,null,null,f),y.style.setProperty(C,D.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),h=null,m=!1,p=0;p<d.length;p++)if(d[p]!=a&&null!=d[p].style){h=null;for(var k=0;k<d[p].style.length;k++){var v=d[p].style.item(k),w=d[p].style.getPropertyValue(v);m=g(d[p],v,w)||m}"FONT"==d[p].nodeName&&+Graph.addLightDarkColors=function(a,b,f,e){function g(y,C,D){return null!=e?e(y,C,D):mxUtils.isValidColor(D)?(null==h&&null!=b&&(h={}),null!=h&&(h[C]=y.style.getPropertyValue(C)),D=mxUtils.getLightDarkColor(D,null,null,f),y.style.setProperty(C,D.cssText),!0):!1}for(var d=a.getElementsByTagName("*"),h=null,m=!1,p=0;p<d.length;p++)if(d[p]!=a&&null!=d[p].style){h=null;for(var k=0;k<d[p].style.length;k++){var u=d[p].style.item(k),w=d[p].style.getPropertyValue(u);m=g(d[p],u,w)||m}"FONT"==d[p].nodeName&&""==d[p].style.getPropertyValue("color")&&(w=d[p].getAttribute("color"),m=g(d[p],"color",w)||m);null!=b&&null!=h&&d[p].setAttribute(b,JSON.stringify(h))}return m};Graph.removeLightDarkColors=function(a,b){a=a.getElementsByTagName("*");for(var f=!1,e=0;e<a.length;e++)try{var g=a[e].getAttribute(b);if(null!=g){a[e].removeAttribute(b);var d=JSON.parse(g),h;for(h in d){var m=d[h];""==m?(a[e].style[h]=null,""==a[e].getAttribute("style")&&a[e].removeAttribute("style")):a[e].style[h]=m;f=!0}}}catch(p){}return f};Graph.getGivenColor=function(a,b){var f=null;if(a.nodeType==mxConstants.NODETYPE_ELEMENT){try{var e=a.getAttribute(Graph.backupStyleAttribute);if(null!=e){var g=JSON.parse(e);null!=g&&null!=g[b]&&("color"==b&&"FONT"==a.nodeName&&""==g[b]&&null!=a.getAttribute("color")?f=a.getAttribute("color"):""!=g[b]&&(f=g[b]))}}catch(d){}null==f&&""!=a.style[b]&&(f=a.style[b])}return f};Graph.setTextColor=function(a,b,f){for(var e=f?Graph.newColorPlaceholder:Graph.newBackgroundPlaceholder,g=f?"color":"background-color",d=a.getElementsByTagName("*"),h=[],m=0;m<d.length;m++)h.push({node:d[m],value:d[m].style[g]});document.execCommand(f?"forecolor":"backcolor",!1,e);a=a.getElementsByTagName("*");for(m=0;m<a.length;m++){if(m<h.length&&h[m].node==a[m]&&h[m].value!=a[m].style[g]&&""==a[m].style[g])try{if(d=a[m].getAttribute(Graph.backupStyleAttribute),null!=d){var p=JSON.parse(d);p[g]=@@ -2591,22 +2592,22 @@ Graph.decompress=function(a,b,f){if(null==a||0==a.length||"undefined"===typeof pGraph.fadeNodes=function(a,b,f,e,g){g=null!=g?g:1E3;Graph.setTransitionForNodes(a,null);Graph.setOpacityForNodes(a,b);window.setTimeout(function(){Graph.setTransitionForNodes(a,"all "+g+"ms ease-in-out");Graph.setOpacityForNodes(a,f);window.setTimeout(function(){Graph.setTransitionForNodes(a,null);null!=e&&e()},g)},0)};Graph.exploreFromCell=function(a,b,f){pageSize=null!=f&&null!=f.pageSize?f.pageSize:8;minSize=null!=f&&null!=f.minSize?f.minSize:180;(function(e,g){function d(w){w.view.states.visit(function(y,C){null!=C.shape&&w.model.isEdge(w.model.getParent(C.cell))?C.shape.node.parentNode.appendChild(C.shape.node):null!=C.text&&w.model.isEdge(C.cell)&&C.text.node.parentNode.appendChild(C.text.node)})}function h(w,y){if(w.getModel().isVertex(y)){var C=w.container.offsetWidth/2,D=w.container.offsetHeight/2;w.rootCell=y.referenceCell||y;w.getModel().beginUpdate();try{pageSize=null!=f&&null!=f.pageSize?f.pageSize:8+Math.max(0,Math.floor(Math.min(w.container.offsetWidth-800/120,w.container.offsetHeight-600)/30));for(var E=y.referenceCell||y,G=e.model.getCell(E.sourceCellId),J=e.getEdges(G,null,!0,!0,!1,!0),M=[],Q=0;Q<J.length;Q++)null!=J[Q].getTerminal(!0)&&null!=J[Q].getTerminal(!1)&&e.isCellVisible(J[Q])&&!e.isEdgeIgnored(J[Q])&&e.isCellVisible(J[Q].getTerminal(!0))&&e.isCellVisible(J[Q].getTerminal(!1))&&e.isCellVisible(e.getLayerForCell(J[Q]))&&-M.push(J[Q]);M=J=M;if(null!=y.startIndex||0<pageSize&&J.length>pageSize){var L=y.startIndex||0;M=J.slice(Math.max(0,L),Math.min(J.length,L+pageSize))}M=e.getOpposites(M,G).concat(M);var W=w.cloneCells(M);for(Q=0;Q<M.length;Q++)if(W[Q].sourceCellId=M[Q].id,w.model.isEdge(W[Q]))for(W[Q].geometry.x=0,W[Q].geometry.y=0,W[Q].geometry.points=null,W[Q].setStyle(W[Q].getStyle()+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffe0;textOpacity=100;"),W[Q].setTerminal(E,+M.push(J[Q]);M=J=M;if(null!=y.startIndex||0<pageSize&&J.length>pageSize){var K=y.startIndex||0;M=J.slice(Math.max(0,K),Math.min(J.length,K+pageSize))}M=e.getOpposites(M,G).concat(M);var W=w.cloneCells(M);for(Q=0;Q<M.length;Q++)if(W[Q].sourceCellId=M[Q].id,w.model.isEdge(W[Q]))for(W[Q].geometry.x=0,W[Q].geometry.y=0,W[Q].geometry.points=null,W[Q].setStyle(W[Q].getStyle()+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffe0;textOpacity=100;"),W[Q].setTerminal(E,null==W[Q].getTerminal(!0)),G=0;G<W[Q].getChildCount();G++){var X=W[Q].getChildAt(G);null!=X.geometry&&X.geometry.relative&&(X.setStyle(X.getStyle()+";labelBackgroundColor=#ffffffe0;textOpacity=100;"),X.geometry.offset=new mxPoint(0,0),X.geometry.y=0,X.geometry.x=.5>X.geometry.x?-.8:.5<X.geometry.x?.8:0)}if(0<y.startIndex){var T=w.createVertex(null,null,mxResources.get("previousPage")+" ("+Math.ceil((y.startIndex||0)/pageSize)+"/"+Math.ceil(J.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");T.referenceCell=E;T.startIndex=Math.max(0,(y.startIndex||0)-pageSize);W.splice(0,0,T)}if(J.length>(y.startIndex||0)+pageSize){var N=w.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((y.startIndex||0)/pageSize)+2)+"/"+Math.ceil(J.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");N.referenceCell=E;N.startIndex=(y.startIndex||0)+pageSize;W.splice(0,0,N)}for(var ca in w.getModel().cells){var H=w.getModel().getCell(ca);H!=w.rootCell&&!w.getModel().isAncestor(w.rootCell,H)&&w.getModel().isVertex(H)&&w.removeCells([H])}w.addCells(W);var S=w.getModel().getGeometry(w.rootCell);null!=S&&(S=S.clone(),S.x=C-S.width/2,S.y=D-S.height/3,w.getModel().setGeometry(w.rootCell,S));y=[];for(ca in w.getModel().cells)H=w.getModel().getCell(ca),H!=w.rootCell&&w.getModel().isVertex(H)&&w.getModel().getParent(H)==w.getDefaultParent()&&(y.push(H),S=w.getModel().getGeometry(H),null!=S&&(S.x=C-S.width/2,S.y=D-S.height/2));var ea=y.length,la=2*Math.PI/ea,O=Math.max(minSize,Math.min(w.container.offsetWidth/2-40,w.container.offsetHeight/2-80));for(C=0;C<ea;C++)S=w.getModel().getGeometry(y[C]),null!=S&&(S=S.clone(),S.x+=O*Math.sin(C*la),S.y+=O*Math.cos(C*la),w.getModel().setGeometry(y[C],S))}finally{w.getModel().endUpdate()}}}var m=document.createElement("div");m.style.position="absolute";m.style.display="block";m.style.overflow="auto";m.style.width="100%";m.style.height="100%";m.style.left="0px";m.style.top="0px";m.style.zIndex=2;m.style.background=e.background==mxConstants.NONE||null==e.background?"light-dark(#ffffff,"+Editor.darkColor+")":e.background;var p=document.createElement("img");p.setAttribute("src",Editor.closeBlackImage);p.style.position="absolute";p.style.cursor="pointer";p.style.right="10px";p.style.top="10px";m.appendChild(p);var k=document.createElement("div");k.style.position="absolute";k.style.cursor="pointer";k.style.right="38px";k.style.top="14px";k.style.textAlign="right";k.style.verticalAlign="top";mxUtils.write(k,mxResources.get("close"));m.appendChild(k);document.body.appendChild(m);-var v=function(w){27==w.keyCode&&p.click()};mxEvent.addListener(document,"keydown",v);(function(w){var y=new Graph(w);y.keepEdgesInBackground=!0;y.isCellResizable=function(){return!1};y.isCellRotatable=function(){return!1};y.getCursorForCell=function(M){return this.model.isVertex(M)?"pointer":null};y.getFoldingImage=function(){return null};var C=function(){mxEvent.removeListener(document,"keydown",v);w.parentNode.removeChild(w);e.scrollCellToVisible(g)};mxEvent.addListener(p,"click",C);mxEvent.addListener(k,-"click",C);y.setEnabled(!1);var D=y.click;y.click=function(M){var Q=M.getCell(),L=null!=Q?null!=Q.referenceCell?Q.referenceCell:Q:null;null!=Q&&0<y.getEdges(L).length?h(y,Q):D.apply(this,arguments)};C=y.container.offsetWidth/2;var E=y.container.offsetHeight/3;y.model.beginUpdate();var G=y.importCells([g])[0];G.sourceCellId=g.id;G.geometry.x=C-G.geometry.width/2;G.geometry.y=E-G.geometry.height/2;y.model.endUpdate();var J=!1;y.getModel().addListener(mxEvent.CHANGE,function(M,Q){J||(M=Q.getProperty("edit").changes,-mxText.prototype.enableBoundingBox=!1,y.labelsVisible=!1,J=!0,mxEffects.animateChanges(y,M,function(){var L=new mxParallelEdgeLayout(y);L.spacing=60;var W=L.layout;L.layout=function(X){L.spacing=Math.min(60,Math.max(30,60-5*X.length));W.apply(this,arguments)};L.execute(y.getDefaultParent());mxText.prototype.enableBoundingBox=!0;y.labelsVisible=!0;y.tooltipHandler.hide();y.refresh();d(y);J=!1}))});h(y,G)})(m)})(a,b)};Graph.removeKeys=function(a,b){for(var f in a)b(f)&&delete a[f]};+var u=function(w){27==w.keyCode&&p.click()};mxEvent.addListener(document,"keydown",u);(function(w){var y=new Graph(w);y.keepEdgesInBackground=!0;y.isCellResizable=function(){return!1};y.isCellRotatable=function(){return!1};y.getCursorForCell=function(M){return this.model.isVertex(M)?"pointer":null};y.getFoldingImage=function(){return null};var C=function(){mxEvent.removeListener(document,"keydown",u);w.parentNode.removeChild(w);e.scrollCellToVisible(g)};mxEvent.addListener(p,"click",C);mxEvent.addListener(k,+"click",C);y.setEnabled(!1);var D=y.click;y.click=function(M){var Q=M.getCell(),K=null!=Q?null!=Q.referenceCell?Q.referenceCell:Q:null;null!=Q&&0<y.getEdges(K).length?h(y,Q):D.apply(this,arguments)};C=y.container.offsetWidth/2;var E=y.container.offsetHeight/3;y.model.beginUpdate();var G=y.importCells([g])[0];G.sourceCellId=g.id;G.geometry.x=C-G.geometry.width/2;G.geometry.y=E-G.geometry.height/2;y.model.endUpdate();var J=!1;y.getModel().addListener(mxEvent.CHANGE,function(M,Q){J||(M=Q.getProperty("edit").changes,+mxText.prototype.enableBoundingBox=!1,y.labelsVisible=!1,J=!0,mxEffects.animateChanges(y,M,function(){var K=new mxParallelEdgeLayout(y);K.spacing=60;var W=K.layout;K.layout=function(X){K.spacing=Math.min(60,Math.max(30,60-5*X.length));W.apply(this,arguments)};K.execute(y.getDefaultParent());mxText.prototype.enableBoundingBox=!0;y.labelsVisible=!0;y.tooltipHandler.hide();y.refresh();d(y);J=!1}))});h(y,G)})(m)})(a,b)};Graph.removeKeys=function(a,b){for(var f in a)b(f)&&delete a[f]};Graph.setTransitionForNodes=function(a,b){for(var f=0;f<a.length;f++)mxUtils.setPrefixedStyle(a[f].style,"transition",b)};Graph.setOpacityForNodes=function(a,b){for(var f=0;f<a.length;f++)a[f].style.opacity=b};Graph.removePasteFormatting=function(a,b){for(;null!=a;){null!=a.firstChild&&Graph.removePasteFormatting(a.firstChild,!0);var f=a.nextSibling;if(a.nodeType==mxConstants.NODETYPE_ELEMENT&&null!=a.style){"#000000"==a.style.color&&(a.style.color="");if("SPAN"==a.nodeName&&"Apple-tab-span"==a.className){var e=Graph.createTabNode(4);a.parentNode.replaceChild(e,a);a=e}if("P"==a.nodeName&&"p1"==a.className){for(;null!=a.firstChild;)a.parentNode.insertBefore(a.firstChild,a);null!=f&&"P"==f.nodeName&&"p1"==f.className&&a.parentNode.insertBefore(a.ownerDocument.createElement("br"),a);a.parentNode.removeChild(a)}!b&&null!=a.innerHTML&&0<=a.innerHTML.indexOf("\t")&&(e=Graph.createTabNode(4),a.innerHTML=a.innerHTML.replace(/\t/g,e.outerHTML))}a=f}};Graph.createTabNode=function(a){var b="\t";if(null!=a)for(b="";0<a;)b+=" ",a--;a=document.createElement("span");a.style.whiteSpace="pre";a.appendChild(document.createTextNode(b));return a};Graph.sanitizeHtml=function(a,b){return Graph.domPurify(a,!1)};Graph.sanitizeLink=function(a){if(null==a)return null;var b=document.createElement("a");b.setAttribute("href",a);Graph.sanitizeNode(b);return b.getAttribute("href")};Graph.sanitizeNode=function(a){return Graph.domPurify(a,!0)};DOMPurify.addHook("afterSanitizeAttributes",function(a){"use"==a.nodeName&&(null!=a.getAttribute("xlink:href")&&!a.getAttribute("xlink:href").startsWith("#")||null!=a.getAttribute("href")&&!a.getAttribute("href").startsWith("#"))&&a.remove()});Graph.domPurify=function(a,b){window.DOM_PURIFY_CONFIG.IN_PLACE=b;return DOMPurify.sanitize(a,window.DOM_PURIFY_CONFIG)};Graph.clipSvgDataUri=function(a){if(null!=a&&"data:image/svg+xml;base64,"==a.substring(0,26))try{var b=document.createElement("div");b.style.position="absolute";b.style.visibility="hidden";var f=decodeURIComponent(escape(atob(a.substring(26)))),e=f.indexOf("<svg");if(0<=e){b.innerHTML=Graph.sanitizeHtml(f.substring(e));var g=b.getElementsByTagName("svg");if(0<g.length){document.body.appendChild(b);try{e=f=1;var d=g[0].getAttribute("width"),h=g[0].getAttribute("height");d=null!=d&&"%"!=d.charAt(d.length--1)?parseFloat(d):NaN;h=null!=h&&"%"!=h.charAt(h.length-1)?parseFloat(h):NaN;var m=g[0].getAttribute("viewBox");if(null!=m&&!isNaN(d)&&!isNaN(h)){var p=m.split(" ");4<=m.length&&(f=parseFloat(p[2])/d,e=parseFloat(p[3])/h,new mxRectangle(parseFloat(p[0]),parseFloat(p[1]),parseFloat(p[2]),parseFloat(p[3])))}var k=g[0].getBBox();if(0<k.width&&0<k.height){d=0;var v=g[0].querySelectorAll("[stroke-width]");for(h=0;h<v.length;h++)d=Math.max(d,parseFloat(v[h].getAttribute("stroke-width")));k=new mxRectangle(k.x,+1)?parseFloat(d):NaN;h=null!=h&&"%"!=h.charAt(h.length-1)?parseFloat(h):NaN;var m=g[0].getAttribute("viewBox");if(null!=m&&!isNaN(d)&&!isNaN(h)){var p=m.split(" ");4<=m.length&&(f=parseFloat(p[2])/d,e=parseFloat(p[3])/h,new mxRectangle(parseFloat(p[0]),parseFloat(p[1]),parseFloat(p[2]),parseFloat(p[3])))}var k=g[0].getBBox();if(0<k.width&&0<k.height){d=0;var u=g[0].querySelectorAll("[stroke-width]");for(h=0;h<u.length;h++)d=Math.max(d,parseFloat(u[h].getAttribute("stroke-width")));k=new mxRectangle(k.x,k.y,k.width,k.height);k.grow(d/2);b.getElementsByTagName("svg")[0].setAttribute("viewBox",k.x+" "+k.y+" "+k.width+" "+k.height);b.getElementsByTagName("svg")[0].setAttribute("width",k.width/f);b.getElementsByTagName("svg")[0].setAttribute("height",k.height/e)}}catch(w){}finally{document.body.removeChild(b)}a=Editor.createSvgDataUri(mxUtils.getXml(g[0]))}}}catch(w){}return a};Graph.createRemoveIcon=function(a,b){var f=document.createElement("img");f.setAttribute("src",Dialog.prototype.clearImage);f.setAttribute("title",a);f.setAttribute("width","13");f.setAttribute("height","10");f.style.marginLeft="4px";f.style.marginBottom="-1px";f.style.cursor="pointer";mxEvent.addListener(f,"click",b);return f};Graph.isPageLink=function(a){return null!=a&&"data:page/id,"==a.substring(0,13)};Graph.rewritePageLinks=function(a,b){function f(g,d){var h=g.getAttribute(d);if(null!=h){Graph.isPageLink(h)&&(h="#"+h.substring(h.indexOf(":")+1));var m=d;b&&"xlink:href"==d&&(g.removeAttribute(d),m="href");g.setAttribute(m,h)}}a=a.getElementsByTagName("a");if(null!=a)for(var e=0;e<a.length;e++)f(a[e],"href"),f(a[e],"xlink:href")};Graph.isLink=function(a){return null!=a&&a.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g)};@@ -2615,32 +2616,32 @@ Graph.prototype.diagramBackgroundColor="#f0f0f0";Graph.prototype.enableDiagramBaGraph.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(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(f,e){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var g=f.view.graph.tolerance,d=!0,h=null,m=mxUtils.bind(this,function(v){d=!0;h=new mxPoint(mxEvent.getClientX(v),mxEvent.getClientY(v))}),p=mxUtils.bind(this,function(v){d=d&&null!=h&&Math.abs(h.x-mxEvent.getClientX(v))<g&&Math.abs(h.y-mxEvent.getClientY(v))<g}),k=mxUtils.bind(this,function(v){if(d)for(var w=mxEvent.getSource(v);null!=-w&&w!=e.node;){if("a"==w.nodeName.toLowerCase()){f.view.graph.labelLinkClicked(f,w,v);break}w=w.parentNode}});mxEvent.addGestureListeners(e.node,m,p,k);mxEvent.addListener(e.node,"click",function(v){mxEvent.consume(v)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(f){var e=mxEvent.getSource(f);"A"==e.nodeName&&(e=e.getAttribute("href"),null!=+Graph.prototype.init=function(a){mxGraph.prototype.init.apply(this,arguments);this.cellRenderer.initializeLabel=function(f,e){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var g=f.view.graph.tolerance,d=!0,h=null,m=mxUtils.bind(this,function(u){d=!0;h=new mxPoint(mxEvent.getClientX(u),mxEvent.getClientY(u))}),p=mxUtils.bind(this,function(u){d=d&&null!=h&&Math.abs(h.x-mxEvent.getClientX(u))<g&&Math.abs(h.y-mxEvent.getClientY(u))<g}),k=mxUtils.bind(this,function(u){if(d)for(var w=mxEvent.getSource(u);null!=+w&&w!=e.node;){if("a"==w.nodeName.toLowerCase()){f.view.graph.labelLinkClicked(f,w,u);break}w=w.parentNode}});mxEvent.addGestureListeners(e.node,m,p,k);mxEvent.addListener(e.node,"click",function(u){mxEvent.consume(u)})};if(null!=this.tooltipHandler){var b=this.tooltipHandler.init;this.tooltipHandler.init=function(){b.apply(this,arguments);null!=this.div&&mxEvent.addListener(this.div,"click",mxUtils.bind(this,function(f){var e=mxEvent.getSource(f);"A"==e.nodeName&&(e=e.getAttribute("href"),null!=e&&this.graph.isCustomLink(e)&&(mxEvent.isTouchEvent(f)||!mxEvent.isPopupTrigger(f))&&this.graph.customLinkClicked(e)&&mxEvent.consume(f))}))}}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(h){var m=mxUtils.getValue(h.style,mxConstants.STYLE_SHAPE,null);return!this.isSpecialColor(h.style[mxConstants.STYLE_FILLCOLOR])&&"1"!=mxUtils.getValue(h.style,"lineShape",null)&&(this.model.isVertex(h.cell)||"arrow"==m||"pipe"==m||"wire"==m||"filledEdge"==m||"flexArrow"==m||"mxgraph.arrows2.wedgeArrow"==m)};Graph.prototype.isGradientState=function(h){var m=mxUtils.getValue(h.style,mxConstants.STYLE_SHAPE,null);return this.isFillState(h)&&"wire"!=m&&"pipe"!=m};Graph.prototype.isStrokeState=function(h){return!0};Graph.prototype.getTextColor=function(h,m){for(var p=m?"color":"background-color",k=h==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(h,p);null==k&&null!=h&&h!=this.cellEditor.textarea.parentNode;)k=h==this.cellEditor.textarea&&m?"default":Graph.getGivenColor(h,p),h=h.parentNode;if("rgba(0, 0, 0, 0)"==k||"transparent"==k)k=mxConstants.NONE;return k};Graph.prototype.isSpecialColor=function(h){return 0<=mxUtils.indexOf([mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_FILLCOLOR,"inherit","swimlane","indicated"],h)};Graph.prototype.isGlassState=function(h){h=mxUtils.getValue(h.style,mxConstants.STYLE_SHAPE,null);return"label"==h||"rectangle"==h||"internalStorage"==h||"ext"==h||"umlLifeline"==h||"swimlane"==h||"process"==h};Graph.prototype.isRoundedState=function(h){return null!=h.shape?h.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.getValue(h.style,mxConstants.STYLE_SHAPE,null))};Graph.prototype.isLineJumpState=function(h){var m=mxUtils.getValue(h.style,mxConstants.STYLE_SHAPE,null);return!mxUtils.getValue(h.style,mxConstants.STYLE_CURVED,!1)&&("connector"==m||"filledEdge"==m||"wire"==m)};Graph.prototype.isAutoSizeState=function(h){return"1"==mxUtils.getValue(h.style,mxConstants.STYLE_AUTOSIZE,null)};Graph.prototype.isImageState=function(h){return null!=-mxUtils.getValue(h.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(h){return!0};Graph.prototype.getVerticesAndEdges=function(h,m){h=null!=h?h:!0;m=null!=m?m:!0;var p=this.model;return p.filterDescendants(function(k){return h&&p.isVertex(k)||m&&p.isEdge(k)},p.getRoot())};Graph.prototype.applyNewEdgeStyle=function(h,m,p){h=this.getCellStyle(h).newEdgeStyle;if(null!=h){this.model.beginUpdate();try{var k=JSON.parse(h),v;for(v in k)this.setCellStyles(v,k[v],m),"edgeStyle"==-v&&"elbowEdgeStyle"==k[v]&&null!=p&&this.setCellStyles("elbow",p==mxConstants.DIRECTION_SOUTH||p==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(h){for(var m={},p=0;p<h.length;p++){var k=this.view.getState(h[p]);null!=k&&this.mergeStyle(k.style,m,0==p)}return m};Graph.prototype.mergeStyle=function(h,m,p){if(null!=h){var k={},v;for(v in h){var w=h[v];null!=w&&(k[v]=!0,null==m[v]&&p?m[v]=w:m[v]!=w&&delete m[v])}for(v in m)k[v]||-delete m[v]}};Graph.prototype.getStartEditingCell=function(h,m){m=this.getCellStyle(h);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(h)&&(!this.isSwimlane(h)||0==m)&&""==this.getLabel(h)&&0<this.model.getChildCount(h)&&(h=this.model.getChildAt(h,0),m=this.getCellStyle(h),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(h)&&(!this.isSwimlane(h)||0==m)&&""==this.getLabel(h)&&0<this.model.getChildCount(h))for(m=0;m<this.model.getChildCount(h);m++){var p=-this.model.getChildAt(h,m);if(this.isCellEditable(p)){h=p;break}}return h};Graph.prototype.copyStyle=function(h){return this.getCellStyle(h,!1)};Graph.prototype.pasteStyle=function(h,m,p,k){null!=h&&(k||(p=null!=p?p:Graph.cellStyles,Graph.removeKeys(h,function(v){return 0>mxUtils.indexOf(p,v)})),this.updateCellStyles(h,m))};Graph.prototype.copyCellStyles=function(h,m,p,k,v,w,y){var C=!1,D=!1;if(0<h.length)for(var E=0;E<h.length&&(C=this.getModel().isVertex(h[E])||C,!(D=this.getModel().isEdge(h[E])||-D)||!C);E++);else D=C=!0;C=C&&!w;D=D&&!y;for(E=0;E<m.length;E++)if(h=0<=mxUtils.indexOf(Graph.textStyles,m[E]),"strokeColor"!=m[E]||null!=p[E]&&"none"!=p[E])if(0<=mxUtils.indexOf(Graph.cellStyles,m[E])||"shape"==m[E])if("shape"!=m[E]&&(C||h)&&(null==p[E]?delete k[m[E]]:k[m[E]]=p[E]),D||h)null==p[E]?delete v[m[E]]:v[m[E]]=p[E]};Graph.prototype.includeDescendants=function(h){for(var m=[],p=0;p<h.length;p++)m=m.concat(this.model.getDescendants(h[p]));return m};Graph.prototype.pasteCellStyles=function(h,-m,p,k,v){m=null!=m?m:this.currentVertexStyle;p=null!=p?p:this.currentEdgeStyle;v=null!=v?v:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var w=0;w<h.length;w++){var y=h[w],C=this.model.getStyle(y),D=!1;null!=y.style&&(pairs=y.style.split(";"),D=D||0<=mxUtils.indexOf(pairs,"text"));if(D)var E=Graph.textStyles;else if(E=Graph.cellStyles.slice(),!k)for(var G=null!=C?C.split(";"):[],J=0;J<G.length;J++){var M=G[J],Q=M.indexOf("=");if(0<=Q){var L=M.substring(0,Q),W=mxUtils.indexOf(E,L);0<=W&&E.splice(W,-1);for(D=0;D<Graph.cellStyleGroups.length;D++){var X=Graph.cellStyleGroups[D];if(0<=mxUtils.indexOf(X,L))for(var T=0;T<X.length;T++){var N=mxUtils.indexOf(E,X[T]);0<=N&&E.splice(N,1)}}}}var ca=this.model.isEdge(y);D=ca?p:m;for(J=0;J<E.length;J++){L=E[J];var H=D[L];null!=H&&("edgeStyle"!=L||v)&&(ca||!ca&&0>mxUtils.indexOf(Graph.edgeStyles,L))&&(C=mxUtils.setStyle(C,L,H),"fontFamily"==L&&null==D.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),ca&&"rounded"==L&&"1"==H&&null==D.curved&&(C=mxUtils.setStyle(C,-"curved",null)))}Editor.simpleLabels&&(C=mxUtils.setStyle(mxUtils.setStyle(C,"html",null),"whiteSpace",null));this.model.setStyle(y,C)}}finally{this.model.endUpdate()}return h};Graph.prototype.updateCellStyles=function(h,m){this.model.beginUpdate();try{for(var p=0;p<m.length;p++)if(this.model.isVertex(m[p])||this.model.isEdge(m[p])){var k=this.getCellStyle(m[p],!1),v=k[mxConstants.STYLE_PERIMETER],w=!1;for(C in h){var y=h[C];if(k[C]!=y){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=-y){w=!0;var C="participant"}this.setCellStyles(C,y,[m[p]])}}w&&this.setCellStyles(mxConstants.STYLE_PERIMETER,v,[m[p]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=-function(h,m,p,k,v,w){this.useCssTransforms&&(h=h/this.currentScale-this.currentTranslate.x,m=m/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(h,m,p,k,v,w){k=null!=k?k:!0;v=null!=v?v:!0;null==p&&(p=this.getCurrentRoot(),null==p&&(p=this.getModel().getRoot()));if(null!=p)for(var y=this.model.getChildCount(p)-1;0<=y;y--){var C=this.model.getChildAt(p,y),D=this.getScaledCellAt(h,m,C,k,v,w);if(null!=D)return D;if(this.isCellVisible(C)&&-(v&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(D=this.view.getState(C),null!=D&&(null==w||!w(D,h,m))&&this.intersects(D,h,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(h){return!this.isSwimlane(h.cell)&&0<this.model.getChildCount(h.cell)&&!this.isCellCollapsed(h.cell)&&"1"==mxUtils.getValue(h.style,"recursiveResize","1")&&null==mxUtils.getValue(h.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(h){for(var m=this.getCellGeometry(h);null!=m&&-m.relative;)h=this.getModel().getParent(h),m=this.getCellGeometry(h);return h};Graph.prototype.isPart=function(h){return"1"==mxUtils.getValue(this.getCurrentCellStyle(h),"part","0")||this.isTableCell(h)||this.isTableRow(h)};Graph.prototype.getCompositeParents=function(h){for(var m=new mxDictionary,p=[],k=0;k<h.length;k++){var v=this.getCompositeParent(h[k]);this.isTableCell(v)&&(v=this.graph.model.getParent(v));this.isTableRow(v)&&(v=this.graph.model.getParent(v));null==v||m.get(v)||(m.put(v,!0),-p.push(v))}return p};Graph.prototype.getReferenceTerminal=function(h){if(null!=h){var m=this.getCellGeometry(h);null!=m&&m.relative&&(h=this.model.getParent(h))}null!=h&&this.model.isEdge(h)&&(h=this.model.getParent(h));null!=h&&(h=this.getCompositeParent(h));return h};Graph.prototype.getCompositeParent=function(h){for(;this.isPart(h);){var m=this.model.getParent(h);if(!this.model.isVertex(m))break;h=m}return h};Graph.prototype.filterSelectionCells=function(h){var m=this.getSelectionCells();if(null!=+mxUtils.getValue(h.style,mxConstants.STYLE_IMAGE,null)};Graph.prototype.isShadowState=function(h){return!0};Graph.prototype.getVerticesAndEdges=function(h,m){h=null!=h?h:!0;m=null!=m?m:!0;var p=this.model;return p.filterDescendants(function(k){return h&&p.isVertex(k)||m&&p.isEdge(k)},p.getRoot())};Graph.prototype.applyNewEdgeStyle=function(h,m,p){h=this.getCellStyle(h).newEdgeStyle;if(null!=h){this.model.beginUpdate();try{var k=JSON.parse(h),u;for(u in k)this.setCellStyles(u,k[u],m),"edgeStyle"==+u&&"elbowEdgeStyle"==k[u]&&null!=p&&this.setCellStyles("elbow",p==mxConstants.DIRECTION_SOUTH||p==mxConstants.DIRECTION_NOTH?"vertical":"horizontal",m)}finally{this.model.endUpdate()}}};Graph.prototype.getCommonStyle=function(h){for(var m={},p=0;p<h.length;p++){var k=this.view.getState(h[p]);null!=k&&this.mergeStyle(k.style,m,0==p)}return m};Graph.prototype.mergeStyle=function(h,m,p){if(null!=h){var k={},u;for(u in h){var w=h[u];null!=w&&(k[u]=!0,null==m[u]&&p?m[u]=w:m[u]!=w&&delete m[u])}for(u in m)k[u]||+delete m[u]}};Graph.prototype.getStartEditingCell=function(h,m){m=this.getCellStyle(h);m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0));this.isTable(h)&&(!this.isSwimlane(h)||0==m)&&""==this.getLabel(h)&&0<this.model.getChildCount(h)&&(h=this.model.getChildAt(h,0),m=this.getCellStyle(h),m=parseInt(mxUtils.getValue(m,mxConstants.STYLE_STARTSIZE,0)));if(this.isTableRow(h)&&(!this.isSwimlane(h)||0==m)&&""==this.getLabel(h)&&0<this.model.getChildCount(h))for(m=0;m<this.model.getChildCount(h);m++){var p=+this.model.getChildAt(h,m);if(this.isCellEditable(p)){h=p;break}}return h};Graph.prototype.copyStyle=function(h){return this.getCellStyle(h,!1)};Graph.prototype.pasteStyle=function(h,m,p,k){null!=h&&(k||(p=null!=p?p:Graph.cellStyles,Graph.removeKeys(h,function(u){return 0>mxUtils.indexOf(p,u)})),this.updateCellStyles(h,m))};Graph.prototype.copyCellStyles=function(h,m,p,k,u,w,y){var C=!1,D=!1;if(0<h.length)for(var E=0;E<h.length&&(C=this.getModel().isVertex(h[E])||C,!(D=this.getModel().isEdge(h[E])||+D)||!C);E++);else D=C=!0;C=C&&!w;D=D&&!y;for(E=0;E<m.length;E++)if(h=0<=mxUtils.indexOf(Graph.textStyles,m[E]),"strokeColor"!=m[E]||null!=p[E]&&"none"!=p[E])if(0<=mxUtils.indexOf(Graph.cellStyles,m[E])||"shape"==m[E])if("shape"!=m[E]&&(C||h)&&(null==p[E]?delete k[m[E]]:k[m[E]]=p[E]),D||h)null==p[E]?delete u[m[E]]:u[m[E]]=p[E]};Graph.prototype.includeDescendants=function(h){for(var m=[],p=0;p<h.length;p++)m=m.concat(this.model.getDescendants(h[p]));return m};Graph.prototype.pasteCellStyles=function(h,+m,p,k,u){m=null!=m?m:this.currentVertexStyle;p=null!=p?p:this.currentEdgeStyle;u=null!=u?u:this.pasteEdgeStyle;this.model.beginUpdate();try{for(var w=0;w<h.length;w++){var y=h[w],C=this.model.getStyle(y),D=!1;null!=y.style&&(pairs=y.style.split(";"),D=D||0<=mxUtils.indexOf(pairs,"text"));if(D)var E=Graph.textStyles;else if(E=Graph.cellStyles.slice(),!k)for(var G=null!=C?C.split(";"):[],J=0;J<G.length;J++){var M=G[J],Q=M.indexOf("=");if(0<=Q){var K=M.substring(0,Q),W=mxUtils.indexOf(E,K);0<=W&&E.splice(W,+1);for(D=0;D<Graph.cellStyleGroups.length;D++){var X=Graph.cellStyleGroups[D];if(0<=mxUtils.indexOf(X,K))for(var T=0;T<X.length;T++){var N=mxUtils.indexOf(E,X[T]);0<=N&&E.splice(N,1)}}}}var ca=this.model.isEdge(y);D=ca?p:m;for(J=0;J<E.length;J++){K=E[J];var H=D[K];null!=H&&("edgeStyle"!=K||u)&&(ca||!ca&&0>mxUtils.indexOf(Graph.edgeStyles,K))&&(C=mxUtils.setStyle(C,K,H),"fontFamily"==K&&null==D.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),ca&&"rounded"==K&&"1"==H&&null==D.curved&&(C=mxUtils.setStyle(C,+"curved",null)))}Editor.simpleLabels&&(C=mxUtils.setStyle(mxUtils.setStyle(C,"html",null),"whiteSpace",null));this.model.setStyle(y,C)}}finally{this.model.endUpdate()}return h};Graph.prototype.updateCellStyles=function(h,m){this.model.beginUpdate();try{for(var p=0;p<m.length;p++)if(this.model.isVertex(m[p])||this.model.isEdge(m[p])){var k=this.getCellStyle(m[p],!1),u=k[mxConstants.STYLE_PERIMETER],w=!1;for(C in h){var y=h[C];if(k[C]!=y){if(C==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[C]&&"umlLifeline"!=+y){w=!0;var C="participant"}this.setCellStyles(C,y,[m[p]])}}w&&this.setCellStyles(mxConstants.STYLE_PERIMETER,u,[m[p]])}}finally{this.model.endUpdate()}};Graph.prototype.isFastZoomEnabled=function(){return"nocss"!=urlParams.zoom&&!mxClient.NO_FO&&!mxClient.IS_EDGE&&!this.useCssTransforms&&(this.isCssTransformsSupported()||mxClient.IS_IOS)};Graph.prototype.isCssTransformsSupported=function(){return this.dialect==mxConstants.DIALECT_SVG&&!mxClient.NO_FO&&(!this.lightbox||!mxClient.IS_SF)};Graph.prototype.getCellAt=+function(h,m,p,k,u,w){this.useCssTransforms&&(h=h/this.currentScale-this.currentTranslate.x,m=m/this.currentScale-this.currentTranslate.y);return this.getScaledCellAt.apply(this,arguments)};Graph.prototype.getScaledCellAt=function(h,m,p,k,u,w){k=null!=k?k:!0;u=null!=u?u:!0;null==p&&(p=this.getCurrentRoot(),null==p&&(p=this.getModel().getRoot()));if(null!=p)for(var y=this.model.getChildCount(p)-1;0<=y;y--){var C=this.model.getChildAt(p,y),D=this.getScaledCellAt(h,m,C,k,u,w);if(null!=D)return D;if(this.isCellVisible(C)&&+(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(D=this.view.getState(C),null!=D&&(null==w||!w(D,h,m))&&this.intersects(D,h,m)))return C}return null};Graph.prototype.isRecursiveVertexResize=function(h){return!this.isSwimlane(h.cell)&&0<this.model.getChildCount(h.cell)&&!this.isCellCollapsed(h.cell)&&"1"==mxUtils.getValue(h.style,"recursiveResize","1")&&null==mxUtils.getValue(h.style,"childLayout",null)};Graph.prototype.getAbsoluteParent=function(h){for(var m=this.getCellGeometry(h);null!=m&&+m.relative;)h=this.getModel().getParent(h),m=this.getCellGeometry(h);return h};Graph.prototype.isPart=function(h){return"1"==mxUtils.getValue(this.getCurrentCellStyle(h),"part","0")||this.isTableCell(h)||this.isTableRow(h)};Graph.prototype.getCompositeParents=function(h){for(var m=new mxDictionary,p=[],k=0;k<h.length;k++){var u=this.getCompositeParent(h[k]);this.isTableCell(u)&&(u=this.graph.model.getParent(u));this.isTableRow(u)&&(u=this.graph.model.getParent(u));null==u||m.get(u)||(m.put(u,!0),+p.push(u))}return p};Graph.prototype.getReferenceTerminal=function(h){if(null!=h){var m=this.getCellGeometry(h);null!=m&&m.relative&&(h=this.model.getParent(h))}null!=h&&this.model.isEdge(h)&&(h=this.model.getParent(h));null!=h&&(h=this.getCompositeParent(h));return h};Graph.prototype.getCompositeParent=function(h){for(;this.isPart(h);){var m=this.model.getParent(h);if(!this.model.isVertex(m))break;h=m}return h};Graph.prototype.filterSelectionCells=function(h){var m=this.getSelectionCells();if(null!=h){for(var p=[],k=0;k<m.length;k++)h(m[k])||p.push(m[k]);m=p}return m};var a=mxGraph.prototype.scrollRectToVisible;Graph.prototype.scrollRectToVisible=function(h){if(this.useCssTransforms){var m=this.currentScale,p=this.currentTranslate;h=new mxRectangle((h.x+2*p.x)*m-p.x,(h.y+2*p.y)*m-p.y,h.width*m,h.height*m)}a.apply(this,arguments)};mxCellHighlight.prototype.getStrokeWidth=function(h){h=this.strokeWidth;this.graph.useCssTransforms&&(h/=this.graph.currentScale);return h};mxGraphView.prototype.getGraphBounds=function(){var h=this.graphBounds;if(this.graph.useCssTransforms){var m=this.graph.currentTranslate,p=this.graph.currentScale;h=new mxRectangle((h.x+m.x)*p,(h.y+m.y)*p,h.width*p,h.height*p)}return h};mxGraphView.prototype.viewStateChanged=function(){this.graph.useCssTransforms?this.validate():this.revalidate();this.graph.sizeDidChange()};var b=mxGraphView.prototype.validate;mxGraphView.prototype.validate=function(h){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);b.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 f=mxGraph.prototype.getCellsForGroup;Graph.prototype.getCellsForGroup=function(h){h=f.apply(this,arguments);for(var m=[],p=0;p<h.length;p++)this.isTableRow(h[p])||this.isTableCell(h[p])||m.push(h[p]);return m};var e=mxGraph.prototype.getCellsForUngroup;Graph.prototype.getCellsForUngroup=function(h){h=e.apply(this,arguments);for(var m=[],p=0;p<h.length;p++)this.isTable(h[p])||this.isTableRow(h[p])||this.isTableCell(h[p])||m.push(h[p]);return m};Graph.prototype.updateCssTransform=function(){var h=this.view.getDrawPane();if(null!=h)if(h=h.parentNode,this.useCssTransforms){var m=h.getAttribute("transform");h.setAttribute("transformOrigin","0 0");var p=Math.round(100*this.currentScale)/100;h.setAttribute("transform","scale("+p+","+p+")translate("+Math.round(100*this.currentTranslate.x)/100+","+Math.round(100*this.currentTranslate.y)/100+")");m!=h.getAttribute("transform")&&this.fireEvent(new mxEventObject("cssTransformChanged"),"transform",h.getAttribute("transform"))}else h.removeAttribute("transformOrigin"),h.removeAttribute("transform")};var g=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){var h=this.graph.useCssTransforms,-m=this.scale,p=this.translate;h&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);g.apply(this,arguments);h&&(this.scale=m,this.translate=p)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(h,m,p){var k=this.useCssTransforms,v=this.view.scale,w=this.view.translate;k&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=v,this.view.translate=w,this.useCssTransforms=+m=this.scale,p=this.translate;h&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);g.apply(this,arguments);h&&(this.scale=m,this.translate=p)};var d=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(h,m,p){var k=this.useCssTransforms,u=this.view.scale,w=this.view.translate;k&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=!1);d.apply(this,arguments);k&&(this.view.scale=u,this.view.translate=w,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.isViewer=function(){return!1};Graph.prototype.labelLinkClicked=function(a,b,f){var e=b.getAttribute("href");e!=Graph.sanitizeLink(e)&&Graph.sanitizeNode(b);if(null!=e&&!this.isCustomLink(e)&&(mxEvent.isLeftMouseButton(f)&&!mxEvent.isPopupTrigger(f)||mxEvent.isTouchEvent(f))){if(!this.isEnabled()||this.isCellLocked(a.cell))a=this.isBlankLink(e)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(e),a);mxEvent.consume(f)}};Graph.prototype.openLink=function(a,b,f){var e=window;try{if(a=Graph.sanitizeLink(a),null!=a)if("_self"==b&&window!=window.top)window.location.href=a;else if(a.substring(0,this.baseUrl.length)!=this.baseUrl||"#"!=a.charAt(this.baseUrl.length)||"_top"!=b||window!=window.top||navigator.standalone)e=window.open(a,null!=b?b:"_blank",f?null:"noopener,noreferrer"),null==e||f||(e.opener=null);else{var g=a.split("#")[1];window.location.hash=="#"+g&&(window.location.hash="");window.location.hash=g}}catch(d){}return e};Graph.prototype.getLinkTitle=function(a){return a.substring(a.lastIndexOf("/")+1)};Graph.prototype.isCustomLink=function(a){return"data:"==a.substring(0,5)};Graph.prototype.customLinkClicked=function(a,b){return!1};Graph.prototype.isExternalProtocol=function(a){return"mailto:"===a.substring(0,7)};Graph.prototype.isBlankLink=function(a){return!this.isExternalProtocol(a)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(a)&&a.substring(0,this.domainUrl.length)!==this.domainUrl)};@@ -2655,7 +2656,7 @@ Graph.prototype.createLayouts=function(a){for(var b=[],f=0;f<a.length;f++)if(0<=Graph.prototype.getDataForCells=function(a,b){for(var f=[],e=0;e<a.length;e++){var g={};g.id=a[e].id;var d=null!=a[e].value?a[e].value.attributes:null;this.isReplacePlaceholders(a[e])&&b&&(g.value=this.getLabel(a[e]));if(null!=d)for(var h=0;h<d.length;h++)g[d[h].nodeName]=d[h].nodeValue;else g.label=this.convertValueToString(a[e]);f.push(g)}return f};Graph.prototype.getNodesForCells=function(a){for(var b=[],f=0;f<a.length;f++){var e=this.view.getState(a[f]);if(null!=e){for(var g=this.cellRenderer.getShapesForState(e),d=0;d<g.length;d++)null!=g[d]&&null!=g[d].node&&b.push(g[d].node);null!=e.control&&null!=e.control.node&&b.push(e.control.node)}}return b};Graph.prototype.createWipeAnimations=function(a,b){for(var f=[],e=0;e<a.length;e++){var g=this.view.getState(a[e]);null!=g&&null!=g.shape&&(this.model.isEdge(g.cell)&&null!=g.absolutePoints&&1<g.absolutePoints.length?f.push(this.createEdgeWipeAnimation(g,b)):this.model.isVertex(g.cell)&&null!=g.shape.bounds&&f.push(this.createVertexWipeAnimation(g,b)))}return f};-Graph.prototype.createEdgeWipeAnimation=function(a,b){var f=a.absolutePoints.slice(),e=a.segments,g=a.length,d=f.length;return{execute:mxUtils.bind(this,function(h,m){if(null!=a.shape){var p=[f[0]];m=h/m;b||(m=1-m);for(var k=g*m,v=1;v<d;v++)if(k<=e[v-1]){p.push(new mxPoint(f[v-1].x+(f[v].x-f[v-1].x)*k/e[v-1],f[v-1].y+(f[v].y-f[v-1].y)*k/e[v-1]));break}else k-=e[v-1],p.push(f[v]);a.shape.points=p;a.shape.redraw();0==h&&Graph.setOpacityForNodes(this.getNodesForCells([a.cell]),1);null!=a.text&&null!=+Graph.prototype.createEdgeWipeAnimation=function(a,b){var f=a.absolutePoints.slice(),e=a.segments,g=a.length,d=f.length;return{execute:mxUtils.bind(this,function(h,m){if(null!=a.shape){var p=[f[0]];m=h/m;b||(m=1-m);for(var k=g*m,u=1;u<d;u++)if(k<=e[u-1]){p.push(new mxPoint(f[u-1].x+(f[u].x-f[u-1].x)*k/e[u-1],f[u-1].y+(f[u].y-f[u-1].y)*k/e[u-1]));break}else k-=e[u-1],p.push(f[u]);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=m)}}),stop:mxUtils.bind(this,function(){null!=a.shape&&(a.shape.points=f,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 f=new mxRectangle.fromRectangle(a.shape.bounds);return{execute:mxUtils.bind(this,function(e,g){null!=a.shape&&(g=e/g,b||(g=1-g),a.shape.bounds=new mxRectangle(f.x,f.y,f.width*g,f.height),a.shape.redraw(),0==e&&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=f,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,f,e){f=null!=f?f:30;e=null!=e?e:30;var g=null,d=0,h=mxUtils.bind(this,function(){if(d==f||this.stoppingCustomActions){window.clearInterval(g);for(var m=0;m<a.length;m++)a[m].stop();null!=b&&b()}else for(m=0;m<a.length;m++)a[m].execute(d,f);d++});g=window.setInterval(h,e);h()};@@ -2670,11 +2671,11 @@ Graph.prototype.isLabelMovable=function(a){var b=this.getCurrentCellStyle(a);retGraph.prototype.getClickableLinkForCell=function(a){do{var b=this.getLinkForCell(a);if(null!=b)return b;a=this.model.getParent(a)}while(null!=a);return null};Graph.prototype.getGlobalVariable=function(a){var b=null;"date"==a?b=(new Date).toLocaleDateString():"time"==a?b=(new Date).toLocaleTimeString():"timestamp"==a?b=(new Date).toLocaleString():"date{"==a.substring(0,5)&&(a=a.substring(5,a.length-1),b=this.formatDate(new Date,a));return b};Graph.prototype.formatDate=function(a,b,f){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 e=this.dateFormatCache,g=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,h=function(J,M){J=String(J);for(M=M||2;J.length<M;)J="0"+J;return J};1!=arguments.length||"[object String]"!=Object.prototype.toString.call(a)||-/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(e.masks[b]||b||e.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),f=!0);var m=f?"getUTC":"get",p=a[m+"Date"](),k=a[m+"Day"](),v=a[m+"Month"](),w=a[m+"FullYear"](),y=a[m+"Hours"](),C=a[m+"Minutes"](),D=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var E=f?0:a.getTimezoneOffset(),G={d:p,dd:h(p),ddd:e.i18n.dayNames[k],dddd:e.i18n.dayNames[k+7],m:v+1,mm:h(v+1),mmm:e.i18n.monthNames[v],mmmm:e.i18n.monthNames[v++/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(e.masks[b]||b||e.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),f=!0);var m=f?"getUTC":"get",p=a[m+"Date"](),k=a[m+"Day"](),u=a[m+"Month"](),w=a[m+"FullYear"](),y=a[m+"Hours"](),C=a[m+"Minutes"](),D=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var E=f?0:a.getTimezoneOffset(),G={d:p,dd:h(p),ddd:e.i18n.dayNames[k],dddd:e.i18n.dayNames[k+7],m:u+1,mm:h(u+1),mmm:e.i18n.monthNames[u],mmmm:e.i18n.monthNames[u+12],yy:String(w).slice(2),yyyy:w,h:y%12||12,hh:h(y%12||12),H:y,HH:h(y),M:C,MM:h(C),s:D,ss:h(D),l:h(m,3),L:h(99<m?Math.round(m/10):m),t:12>y?"a":"p",tt:12>y?"am":"pm",T:12>y?"A":"P",TT:12>y?"AM":"PM",Z:f?"UTC":(String(a).match(g)||[""]).pop().replace(d,""),o:(0<E?"-":"+")+h(100*Math.floor(Math.abs(E)/60)+Math.abs(E)%60,4),S:["th","st","nd","rd"][3<p%10?0:(10!=p%100-p%10)*p%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(J){return J in G?G[J]:J.slice(1,J.length-1)})};Graph.prototype.getLayerForCell=function(a){for(;null!=a&&!this.model.isLayer(a);)a=this.model.getParent(a);return a};Graph.prototype.getLayerForCells=function(a){var b=null;if(0<a.length){b=this.getLayerForCell(a[0]);for(var f=1;f<a.length;f++)if(!this.model.isAncestor(b,a[f])){b=null;break}}return b};-Graph.prototype.createLayersDialog=function(a,b){var f=document.createElement("div");f.style.position="absolute";for(var e=this.getModel(),g=e.getChildCount(e.root),d=0;d<g;d++)mxUtils.bind(this,function(h){function m(){e.isVisible(h)?(v.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(k,75)):(v.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(k,25))}var p=this.convertValueToString(h)||mxResources.get("background")||"Background",k=document.createElement("div");k.style.overflow=-"hidden";k.style.textOverflow="ellipsis";k.style.padding="2px";k.style.whiteSpace="nowrap";k.style.cursor="pointer";k.setAttribute("title",mxResources.get(e.isVisible(h)?"hideIt":"show",[p]));var v=document.createElement("img");v.setAttribute("draggable","false");v.setAttribute("align","absmiddle");v.setAttribute("border","0");v.style.position="relative";v.style.width="16px";v.style.padding="0px 6px 0 4px";b&&(v.style.filter="invert(100%)",v.style.top="-2px");k.appendChild(v);mxUtils.write(k,p);f.appendChild(k);+Graph.prototype.createLayersDialog=function(a,b){var f=document.createElement("div");f.style.position="absolute";for(var e=this.getModel(),g=e.getChildCount(e.root),d=0;d<g;d++)mxUtils.bind(this,function(h){function m(){e.isVisible(h)?(u.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(k,75)):(u.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(k,25))}var p=this.convertValueToString(h)||mxResources.get("background")||"Background",k=document.createElement("div");k.style.overflow=+"hidden";k.style.textOverflow="ellipsis";k.style.padding="2px";k.style.whiteSpace="nowrap";k.style.cursor="pointer";k.setAttribute("title",mxResources.get(e.isVisible(h)?"hideIt":"show",[p]));var u=document.createElement("img");u.setAttribute("draggable","false");u.setAttribute("align","absmiddle");u.setAttribute("border","0");u.style.position="relative";u.style.width="16px";u.style.padding="0px 6px 0 4px";b&&(u.style.filter="invert(100%)",u.style.top="-2px");k.appendChild(u);mxUtils.write(k,p);f.appendChild(k);mxEvent.addListener(k,"click",function(){e.setVisible(h,!e.isVisible(h));m();null!=a&&a(h)});m()})(e.getChildAt(e.root,d));return f};Graph.prototype.replacePlaceholders=function(a,b,f,e){e=[];if(null!=b){for(var g=0;match=this.placeholderPattern.exec(b);){var d=match[0];if(2<d.length&&"%label%"!=d&&"%tooltip%"!=d){var h=null;if(match.index>g&&"%"==b.charAt(match.index-1))h=d.substring(1);else{var m=d.substring(1,d.length-1),p={mm:mxConstants.MILLIMETERS,"in":mxConstants.INCHES,m:mxConstants.METERS,current:this.view.unit};if("id"==m)h=a.id;else if("width"===m.substring(0,5)&&this.model.isVertex(a)){var k=this.getCellGeometry(a);null!=k&&(h=k.width,5<m.length&&(h=Editor.toUnit(h,p[m.substring(6)])))}else if("height"==m.substring(0,6)&&this.model.isVertex(a))k=this.getCellGeometry(a),null!=k&&(h=k.height,6<m.length&&(h=Editor.toUnit(h,p[m.substring(7)])));else if("length"==m.substring(0,6)){for(k=a;null!=k&&!this.model.isEdge(k);)k=this.model.getParent(k);k=this.view.getState(k);null!=k&&(h=Math.round(k.length/this.view.scale),6<m.length&&(h=Editor.toUnit(h,p[m.substring(7)])))}else if(0>m.indexOf("{"))for(p=a;null==h&&null!=@@ -2688,13 +2689,13 @@ Graph.prototype.updateShapes=function(a,b,f){this.model.beginUpdate();try{var e=this.model.isEdge(a)&&this.model.isEdge(b[d]))if(f){var h=this.model.getStyle(b[d]);if(null!=h){var m=h.split(";");0<m.length&&0>m[0].indexOf("=")&&(m=m.slice(1));this.model.setStyle(b[d],m.join(";"))}this.setCellStyles(mxConstants.STYLE_PERIMETER,null,[b[d]]);this.setCellStyles("points",null,[b[d]]);this.pasteStyle(g,[b[d]],null,!0)}else g=this.copyStyle(b[d]),this.model.setStyle(b[d],e),this.pasteStyle(g,[b[d]]);"1"==mxUtils.getValue(this.getCellStyle(b[d],!1),"composite","0")&&this.removeChildCells(b[d])}}finally{this.model.endUpdate()}};Graph.prototype.selectCellsForConnectVertex=function(a,b,f){2==a.length&&this.model.isVertex(a[1])?(this.setSelectionCell(a[1]),this.scrollCellToVisible(a[1]),null!=f&&(mxEvent.isTouchEvent(b)?f.update(f.getState(this.view.getState(a[1]))):f.reset())):this.setSelectionCells(a)};Graph.prototype.isCloneConnectSource=function(a){var b=null;null!=this.layoutManager&&(b=this.layoutManager.getLayout(this.model.getParent(a)));return this.isTableRow(a)||this.isTableCell(a)||null!=b&&b.constructor==mxStackLayout};Graph.prototype.insertEdgeBeforeCell=function(a,b){for(var f=b;null!=f.parent&&null!=f.geometry&&f.geometry.relative&&f.parent!=a.parent;)f=this.model.getParent(f);null!=f&&null!=f.parent&&f.parent==a.parent&&(b=f.parent.getIndex(f),this.model.add(f.parent,a,b))};-Graph.prototype.connectVertex=function(a,b,f,e,g,d,h,m){d=d?d:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative&&this.model.isVertex(a.parent);)a=a.parent;var p=this.isCloneConnectSource(a),k=p?a:this.getCompositeParent(a),v=a.geometry.relative&&null!=a.parent.geometry?new mxPoint(a.parent.geometry.width*a.geometry.x,a.parent.geometry.height*a.geometry.y):new mxPoint(k.geometry.x,k.geometry.y);b==mxConstants.DIRECTION_NORTH?(v.x+=k.geometry.width/2,v.y-=f):b==-mxConstants.DIRECTION_SOUTH?(v.x+=k.geometry.width/2,v.y+=k.geometry.height+f):(v.x=b==mxConstants.DIRECTION_WEST?v.x-f:v.x+(k.geometry.width+f),v.y+=k.geometry.height/2);var w=this.view.getState(this.model.getParent(a));f=this.view.scale;var y=this.view.translate;k=y.x*f;y=y.y*f;null!=w&&this.model.isVertex(w.cell)&&(k=w.x,y=w.y);this.model.isVertex(a.parent)&&a.geometry.relative&&(v.x+=a.parent.geometry.x,v.y+=a.parent.geometry.y);d=d?null:(new mxRectangle(k+v.x*f,y+v.y*f)).grow(40*f);d=null!=d?+Graph.prototype.connectVertex=function(a,b,f,e,g,d,h,m){d=d?d:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative&&this.model.isVertex(a.parent);)a=a.parent;var p=this.isCloneConnectSource(a),k=p?a:this.getCompositeParent(a),u=a.geometry.relative&&null!=a.parent.geometry?new mxPoint(a.parent.geometry.width*a.geometry.x,a.parent.geometry.height*a.geometry.y):new mxPoint(k.geometry.x,k.geometry.y);b==mxConstants.DIRECTION_NORTH?(u.x+=k.geometry.width/2,u.y-=f):b==+mxConstants.DIRECTION_SOUTH?(u.x+=k.geometry.width/2,u.y+=k.geometry.height+f):(u.x=b==mxConstants.DIRECTION_WEST?u.x-f:u.x+(k.geometry.width+f),u.y+=k.geometry.height/2);var w=this.view.getState(this.model.getParent(a));f=this.view.scale;var y=this.view.translate;k=y.x*f;y=y.y*f;null!=w&&this.model.isVertex(w.cell)&&(k=w.x,y=w.y);this.model.isVertex(a.parent)&&a.geometry.relative&&(u.x+=a.parent.geometry.x,u.y+=a.parent.geometry.y);d=d?null:(new mxRectangle(k+u.x*f,y+u.y*f)).grow(40*f);d=null!=d?this.getCells(0,0,0,0,null,null,d,null,!0):null;w=this.view.getState(a);var C=null,D=null;if(null!=d){d=d.reverse();for(var E=0;E<d.length;E++)if(!this.isCellLocked(d[E])&&!this.model.isEdge(d[E])&&d[E]!=a)if(!this.model.isAncestor(a,d[E])&&this.isContainer(d[E])&&(null==C||d[E]==this.model.getParent(a)))C=d[E];else if(null==D&&this.isCellConnectable(d[E])&&!this.model.isAncestor(d[E],a)&&!this.isSwimlane(d[E])){var G=this.view.getState(d[E]);null==w||null==G||mxUtils.intersects(w,G)||(D=d[E])}}var J=-!mxEvent.isShiftDown(e)||mxEvent.isControlDown(e)||g;J&&("1"!=urlParams.sketch||g)&&(b==mxConstants.DIRECTION_NORTH?v.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?v.y+=a.geometry.height/2:v.x=b==mxConstants.DIRECTION_WEST?v.x-a.geometry.width/2:v.x+a.geometry.width/2);var M=[],Q=D;D=C;g=mxUtils.bind(this,function(L){if(null==h||null!=L||null==D&&p){this.model.beginUpdate();try{if(null==Q&&J){var W=this.getAbsoluteParent(null!=L?L:a);W=p?a:this.getCompositeParent(W);Q=null!=L?L:this.duplicateCells([W],-!1)[0];null!=L&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var X=this.getCellGeometry(Q);null!=X&&(null!=L&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?v.y-=X.height/2:b==mxConstants.DIRECTION_SOUTH?v.y+=X.height/2:v.x=b==mxConstants.DIRECTION_WEST?v.x-X.width/2:v.x+X.width/2),X.x=v.x-X.width/2,X.y=v.y-X.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),D=null):J&&!p&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var T=mxEvent.isControlDown(e)&&-mxEvent.isShiftDown(e)&&J||null==D&&p?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=T&&(M.push(T),this.applyNewEdgeStyle(a,[T],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(T,a));if(null==D&&null!=Q&&null!=a.parent&&p&&b==mxConstants.DIRECTION_WEST){var N=a.parent.getIndex(a);this.model.add(a.parent,Q,N)}null==D&&null!=Q&&M.push(Q);null==Q&&null!=T&&T.geometry.setTerminalPoint(v,!1);null!=T&&this.fireEvent(new mxEventObject("cellsInserted",-"cells",[T]))}finally{this.model.endUpdate()}}if(null!=m)m(M);else return M});if(null==h||null!=Q||!J||null==D&&p)return g(Q);h(k+v.x*f,y+v.y*f,g)};+!mxEvent.isShiftDown(e)||mxEvent.isControlDown(e)||g;J&&("1"!=urlParams.sketch||g)&&(b==mxConstants.DIRECTION_NORTH?u.y-=a.geometry.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=a.geometry.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-a.geometry.width/2:u.x+a.geometry.width/2);var M=[],Q=D;D=C;g=mxUtils.bind(this,function(K){if(null==h||null!=K||null==D&&p){this.model.beginUpdate();try{if(null==Q&&J){var W=this.getAbsoluteParent(null!=K?K:a);W=p?a:this.getCompositeParent(W);Q=null!=K?K:this.duplicateCells([W],+!1)[0];null!=K&&this.addCells([Q],this.model.getParent(a),null,null,null,!0);var X=this.getCellGeometry(Q);null!=X&&(null!=K&&"1"==urlParams.sketch&&(b==mxConstants.DIRECTION_NORTH?u.y-=X.height/2:b==mxConstants.DIRECTION_SOUTH?u.y+=X.height/2:u.x=b==mxConstants.DIRECTION_WEST?u.x-X.width/2:u.x+X.width/2),X.x=u.x-X.width/2,X.y=u.y-X.height/2);null!=C?(this.addCells([Q],C,null,null,null,!0),D=null):J&&!p&&this.addCells([Q],this.getDefaultParent(),null,null,null,!0)}var T=mxEvent.isControlDown(e)&&+mxEvent.isShiftDown(e)&&J||null==D&&p?null:this.insertEdge(this.model.getParent(a),null,"",a,Q,this.createCurrentEdgeStyle());null!=T&&(M.push(T),this.applyNewEdgeStyle(a,[T],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(T,a));if(null==D&&null!=Q&&null!=a.parent&&p&&b==mxConstants.DIRECTION_WEST){var N=a.parent.getIndex(a);this.model.add(a.parent,Q,N)}null==D&&null!=Q&&M.push(Q);null==Q&&null!=T&&T.geometry.setTerminalPoint(u,!1);null!=T&&this.fireEvent(new mxEventObject("cellsInserted",+"cells",[T]))}finally{this.model.endUpdate()}}if(null!=m)m(M);else return M});if(null==h||null!=Q||!J||null==D&&p)return g(Q);h(k+u.x*f,y+u.y*f,g)};Graph.prototype.getIndexableText=function(a){a=null!=a?a:this.model.getDescendants(this.model.root);for(var b=document.createElement("div"),f=[],e,g=0;g<a.length;g++)if(e=a[g],this.model.isVertex(e)||this.model.isEdge(e))this.isHtmlLabel(e)?(b.innerHTML=Graph.sanitizeHtml(this.getLabel(e)),e=mxUtils.extractTextWithWhitespace([b])):e=this.getLabel(e),e=mxUtils.trim(e.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")),0<e.length&&f.push(e);return f.join(" ")};Graph.prototype.convertValueToString=function(a){var b=this.model.getValue(a);if(null!=b&&"object"==typeof b){var f=null;if(this.isReplacePlaceholders(a)&&null!=a.getAttribute("placeholder")){b=a.getAttribute("placeholder");for(var e=a;null==f&&null!=e;)null!=e.value&&"object"==typeof e.value&&(f=e.hasAttribute(b)?null!=e.getAttribute(b)?e.getAttribute(b):"":null),e=this.model.getParent(e)}else f=null,Graph.translateDiagram&&null!=Graph.diagramLanguage&&(f=b.getAttribute("label_"+Graph.diagramLanguage)),null==f&&(f=b.getAttribute("label")||"");return f||""}return mxGraph.prototype.convertValueToString.apply(this,arguments)};Graph.prototype.getLinksForState=function(a){return null!=a&&null!=a.text&&null!=a.text.node?a.text.node.getElementsByTagName("a"):null};Graph.prototype.getLinkForCell=function(a,b){return null!=a.value&&"object"==typeof a.value?(a=a.value.getAttribute("link"),b||(a=mxUtils.removeJavascriptProtocol(a)),a):null};@@ -2706,8 +2707,8 @@ Graph.prototype.getDefaultColor=function(a,b,f){b="default"+b.charAt(0).toUpperCGraph.prototype.setAdaptiveColors=function(a){this.adaptiveColors="default"==a?null:a;"1"==urlParams.embedInline?null!=this.container&&(this.container.style.colorScheme="none"==this.getAdaptiveColors()?"light":""):(a=this.view.getDrawPane().ownerSVGElement,null!=a&&(a.style.colorScheme="none"==this.getAdaptiveColors()?"light":""))};Graph.prototype.getAdaptiveColors=function(){return null!=this.adaptiveColors?this.adaptiveColors:Graph.defaultAdaptiveColors};Graph.prototype.updateAlternateBounds=function(a,b,f){if(null!=a&&null!=b&&null!=this.layoutManager&&null!=b.alternateBounds){var e=this.layoutManager.getLayout(this.model.getParent(a));null!=e&&e.constructor==mxStackLayout&&(e.horizontal?b.alternateBounds.height=0:b.alternateBounds.width=0)}mxGraph.prototype.updateAlternateBounds.apply(this,arguments)};Graph.prototype.moveCellsTo=function(a,b){if(null!=a&&null!=b){for(var f=!0,e=0;e<a.length&&f;e++)f=f&&this.model.isEdge(a[e]);e=null;if(1==a.length&&f){var g=this.getCellGeometry(a[0]);null!=g&&(e=g.getTerminalPoint(!0))}e=null!=e?e:this.getBoundingBoxFromGeometry(a,f);null!=e&&(f=Math.round(this.snap(b.x)),b=Math.round(this.snap(b.y)),this.cellsMoved(a,f-e.x,b-e.y))}};Graph.prototype.isMoveCellsEvent=function(a,b){return mxEvent.isShiftDown(a)||"1"==mxUtils.getValue(b.style,"moveCells","0")};-Graph.prototype.foldCells=function(a,b,f,e,g){b=null!=b?b:!1;null==f&&(f=this.getFoldableCells(this.getSelectionCells(),a));if(null!=f){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<f.length;d++){var h=this.view.getState(f[d]),m=this.getCellGeometry(f[d]);if(null!=h&&null!=m){var p=0,k=0;if(m.alternateBounds)p=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var v=this.useCssTransforms?1:this.view.scale;-p=Math.round(m.width-h.width/v);k=Math.round(m.height-h.height/v)}if(0!=k||0!=p){var w=this.model.getParent(f[d]),y=this.layoutManager.getLayout(w);null==y?null!=g&&this.isMoveCellsEvent(g,h)&&this.moveSiblings(h,w,p,k):null!=g&&mxEvent.isAltDown(g)||y.constructor!=mxStackLayout||y.resizeLast||this.resizeParentStacks(w,y,p,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(f)}};+Graph.prototype.foldCells=function(a,b,f,e,g){b=null!=b?b:!1;null==f&&(f=this.getFoldableCells(this.getSelectionCells(),a));if(null!=f){this.model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutManager)for(var d=0;d<f.length;d++){var h=this.view.getState(f[d]),m=this.getCellGeometry(f[d]);if(null!=h&&null!=m){var p=0,k=0;if(m.alternateBounds)p=m.width-m.alternateBounds.width,k=m.height-m.alternateBounds.height;else{var u=this.useCssTransforms?1:this.view.scale;+p=Math.round(m.width-h.width/u);k=Math.round(m.height-h.height/u)}if(0!=k||0!=p){var w=this.model.getParent(f[d]),y=this.layoutManager.getLayout(w);null==y?null!=g&&this.isMoveCellsEvent(g,h)&&this.moveSiblings(h,w,p,k):null!=g&&mxEvent.isAltDown(g)||y.constructor!=mxStackLayout||y.resizeLast||this.resizeParentStacks(w,y,p,k)}}}}finally{this.model.endUpdate()}this.isEnabled()&&this.setSelectionCells(f)}};Graph.prototype.moveSiblings=function(a,b,f,e){this.model.beginUpdate();try{var g=this.getCellsBeyond(a.x,a.y,b,!0,!0);for(b=0;b<g.length;b++)if(g[b]!=a.cell){var d=this.view.getState(g[b]),h=this.getCellGeometry(g[b]);null!=d&&null!=h&&(h=h.clone(),h.translate(Math.round(f*Math.max(0,Math.min(1,(d.x-a.x)/a.width))),Math.round(e*Math.max(0,Math.min(1,(d.y-a.y)/a.height)))),this.model.setGeometry(g[b],h))}}finally{this.model.endUpdate()}};Graph.prototype.resizeParentStacks=function(a,b,f,e){if(null!=this.layoutManager&&null!=b&&b.constructor==mxStackLayout&&!b.resizeLast){this.model.beginUpdate();try{for(var g=b.horizontal;null!=a&&null!=b&&b.constructor==mxStackLayout&&b.horizontal==g&&!b.resizeLast;){var d=this.getCellGeometry(a),h=this.view.getState(a);null!=h&&null!=d&&(d=d.clone(),b.horizontal?d.width+=f+Math.min(0,h.width/this.view.scale-d.width):d.height+=e+Math.min(0,h.height/this.view.scale-d.height),this.model.setGeometry(a,d));a=this.model.getParent(a);b=this.layoutManager.getLayout(a)}}finally{this.model.endUpdate()}}};Graph.prototype.isContainer=function(a){var b=this.getCurrentCellStyle(a);return this.isSwimlane(a)?"0"!=b.container:"1"==b.container};Graph.prototype.isCellConnectable=function(a){var b=this.getCurrentCellStyle(a);return!this.isCellLocked(this.getLayerForCell(a))&&(null!=b.connectable?"0"!=b.connectable:mxGraph.prototype.isCellConnectable.apply(this,arguments))};@@ -2748,7 +2749,7 @@ HoverIcons.prototype.click=function(a,b,f){var e=f.getEvent(),g=f.getGraphX(),d=HoverIcons.prototype.execute=function(a,b,f){f=f.getEvent();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(a.cell,b,this.graph.defaultEdgeLength,f,this.graph.isCloneEvent(f),this.graph.isCloneEvent(f)),f,this)};HoverIcons.prototype.reset=function(a){null!=a&&!a||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 a=mxRectangle.fromRectangle(this.currentState);null!=this.currentState.shape&&null!=this.currentState.shape.boundingBox&&(a=mxRectangle.fromRectangle(this.currentState.shape.boundingBox));a.grow(this.graph.tolerance);a.grow(this.arrowSpacing);var b=this.graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentState.cell)&&(b=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.currentState.cell)));var f=null;null!=b&&(a.x-=b.horizontalOffset/2,a.y-=b.verticalOffset/2,a.width+=b.horizontalOffset,a.height+=b.verticalOffset,null!=b.rotationShape&&null!=b.rotationShape.node&&"hidden"!=b.rotationShape.node.style.visibility&&"none"!=b.rotationShape.node.style.display&&null!=b.rotationShape.boundingBox&&-(f=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,p,k){if(null!=f){var v=new mxRectangle(p,k,m.clientWidth,m.clientHeight);mxUtils.intersects(v,f)&&(m==this.arrowUp?k-=v.y+v.height-f.y:m==this.arrowRight?p+=f.x+f.width-v.x:m==this.arrowDown?k+=f.y+f.height-v.y:m==this.arrowLeft&&(p-=v.x+v.width-f.x))}m.style.left=p+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-+(f=b.rotationShape.boundingBox));b=mxUtils.bind(this,function(m,p,k){if(null!=f){var u=new mxRectangle(p,k,m.clientWidth,m.clientHeight);mxUtils.intersects(u,f)&&(m==this.arrowUp?k-=u.y+u.height-f.y:m==this.arrowRight?p+=f.x+f.width-u.x:m==this.arrowDown?k+=f.y+f.height-u.y:m==this.arrowLeft&&(p-=u.x+u.width-f.x))}m.style.left=p+"px";m.style.top=k+"px";mxUtils.setOpacity(m,this.inactiveOpacity)});b(this.arrowUp,Math.round(this.currentState.getCenterX()-this.triangleUp.width/2-this.tolerance),Math.round(a.y-this.triangleUp.height-this.tolerance));b(this.arrowRight,Math.round(a.x+a.width-this.tolerance),Math.round(this.currentState.getCenterY()-this.triangleRight.height/2-this.tolerance));b(this.arrowDown,parseInt(this.arrowUp.style.left),Math.round(a.y+a.height-this.tolerance));b(this.arrowLeft,Math.round(a.x-this.triangleLeft.width-this.tolerance),parseInt(this.arrowRight.style.top));if(this.checkCollisions){b=this.graph.getCellAt(a.x+a.width+this.triangleRight.width/2,this.currentState.getCenterY());var e=this.graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),g=this.graph.getCellAt(this.currentState.getCenterX(),a.y-this.triangleUp.height/2);a=this.graph.getCellAt(this.currentState.getCenterX(),a.y+a.height+this.triangleDown.height/2);null!=b&&b==e&&e==g&&g==a&&(a=g=e=b=null);var d=this.graph.getCellGeometry(this.currentState.cell),h=mxUtils.bind(this,function(m,p){var k=this.graph.model.isVertex(m)&&this.graph.getCellGeometry(m);null==m||this.graph.model.isAncestor(m,this.currentState.cell)||this.graph.isSwimlane(m)||!(null==k||null==d||k.height<3*d.height&&k.width<3*d.width)?p.style.visibility="visible":p.style.visibility="hidden"});h(b,this.arrowRight);h(e,this.arrowLeft);h(g,this.arrowUp);h(a,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")),@@ -2767,38 +2768,38 @@ Graph.prototype.setTableValues=function(a,b,f){for(var e=this.model.getChildCellGraph.prototype.createCrossFunctionalSwimlane=function(a,b,f,e,g,d,h,m,p){f=null!=f?f:120;e=null!=e?e:120;h=null!=h?h:"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;collapsible=0;recursiveResize=0;expand=0;";m=null!=m?m:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;strokeColor=inherit;connectable=0;fillColor=none;startSize=40;collapsible=0;recursiveResize=0;expand=0;";p=null!=p?p:"swimlane;swimlaneHead=0;swimlaneBody=0;fontStyle=0;connectable=0;strokeColor=inherit;fillColor=none;startSize=0;collapsible=0;recursiveResize=0;expand=0;";g=this.createVertex(null,null,null!=g?g:"",0,0,b*f,a*e,null!=d?d:"shape=table;childLayout=tableLayout;"+(null==g?"startSize=0;fillColor=none;":"startSize=40;")+"collapsible=0;recursiveResize=0;expand=0;");d=mxUtils.getValue(this.getCellStyle(g),mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE);g.geometry.width+=d;g.geometry.height+=d;h=this.createVertex(null,null,"",0,d,b*f+d,e,h);g.insert(this.createParent(h,this.createVertex(null,null,"",d,0,f,e,m),b,f,0));return 1<a?(h.geometry.y=e+d,this.createParent(g,this.createParent(h,this.createVertex(null,null,"",d,0,f,e,p),b,f,0),a-1,0,e)):g};-Graph.prototype.visitTableCells=function(a,b){var f=null,e=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var g=0;g<e.length;g++){for(var d=this.getActualStartSize(e[g],!0),h=this.model.getChildCells(e[g],!0),m=this.getCellStyle(e[g],!0),p=null,k=[],v=0;v<h.length;v++){var w=this.getCellGeometry(h[v]),y={cell:h[v],rospan:1,colspan:1,row:g,col:v,geo:w};w=null!=w.alternateBounds?w.alternateBounds:w;y.point=new mxPoint(w.width+(null!=p?p.point.x:a.x+d.x),w.height+(null!=f&&null!=-f[0]?f[0].point.y:a.y+d.y));y.actual=y;null!=f&&null!=f[v]&&1<f[v].rowspan?(y.rowspan=f[v].rowspan-1,y.colspan=f[v].colspan,y.actual=f[v].actual):null!=p&&1<p.colspan?(y.rowspan=p.rowspan,y.colspan=p.colspan-1,y.actual=p.actual):(p=this.getCurrentCellStyle(h[v],!0),null!=p&&(y.rowspan=parseInt(p.rowspan||1),y.colspan=parseInt(p.colspan||1)));p=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(y,h.length,+Graph.prototype.visitTableCells=function(a,b){var f=null,e=this.model.getChildCells(a,!0);a=this.getActualStartSize(a,!0);for(var g=0;g<e.length;g++){for(var d=this.getActualStartSize(e[g],!0),h=this.model.getChildCells(e[g],!0),m=this.getCellStyle(e[g],!0),p=null,k=[],u=0;u<h.length;u++){var w=this.getCellGeometry(h[u]),y={cell:h[u],rospan:1,colspan:1,row:g,col:u,geo:w};w=null!=w.alternateBounds?w.alternateBounds:w;y.point=new mxPoint(w.width+(null!=p?p.point.x:a.x+d.x),w.height+(null!=f&&null!=+f[0]?f[0].point.y:a.y+d.y));y.actual=y;null!=f&&null!=f[u]&&1<f[u].rowspan?(y.rowspan=f[u].rowspan-1,y.colspan=f[u].colspan,y.actual=f[u].actual):null!=p&&1<p.colspan?(y.rowspan=p.rowspan,y.colspan=p.colspan-1,y.actual=p.actual):(p=this.getCurrentCellStyle(h[u],!0),null!=p&&(y.rowspan=parseInt(p.rowspan||1),y.colspan=parseInt(p.colspan||1)));p=1==mxUtils.getValue(m,mxConstants.STYLE_SWIMLANE_HEAD,1)&&mxUtils.getValue(m,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE;b(y,h.length,e.length,a.x+(p?d.x:0),a.y+(p?d.y:0));k.push(y);p=y}f=k}};Graph.prototype.getTableLines=function(a,b,f){var e=[],g=[];(b||f)&&this.visitTableCells(a,mxUtils.bind(this,function(d,h,m,p,k){b&&d.row<m-1&&(null==e[d.row]&&(e[d.row]=[new mxPoint(p,d.point.y)]),1<d.rowspan&&e[d.row].push(null),e[d.row].push(d.point));f&&d.col<h-1&&(null==g[d.col]&&(g[d.col]=[new mxPoint(d.point.x,k)]),1<d.colspan&&g[d.col].push(null),g[d.col].push(d.point))}));return e.concat(g)};Graph.prototype.isTableCell=function(a){return this.model.isVertex(a)&&this.isTableRow(this.model.getParent(a))};Graph.prototype.isTableRow=function(a){return this.model.isVertex(a)&&this.isTable(this.model.getParent(a))};Graph.prototype.isTable=function(a){a=this.getCellStyle(a);return null!=a&&"tableLayout"==a.childLayout};Graph.prototype.isStack=function(a){a=this.getCellStyle(a);return null!=a&&"stackLayout"==a.childLayout};Graph.prototype.isStackChild=function(a){return this.model.isVertex(a)&&this.isStack(this.model.getParent(a))};-Graph.prototype.setTableRowHeight=function(a,b,f){f=null!=f?f:!0;var e=this.getModel();e.beginUpdate();try{var g=this.getCellGeometry(a);if(null!=g){g=g.clone();g.height+=b;e.setGeometry(a,g);var d=e.getParent(a),h=e.getChildCells(d,!0);if(!f){var m=mxUtils.indexOf(h,a);if(m<h.length-1){var p=h[m+1],k=this.getCellGeometry(p);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,e.setGeometry(p,k))}}var v=this.getCellGeometry(d);null!=v&&(f||(f=a==h[h.length-1]),f&&(v=v.clone(),v.height+=b,e.setGeometry(d,v)))}}finally{e.endUpdate()}};-Graph.prototype.setTableColumnWidth=function(a,b,f){f=null!=f?f:!1;var e=this.getModel(),g=e.getParent(a),d=e.getParent(g),h=e.getChildCells(g,!0);a=mxUtils.indexOf(h,a);var m=a==h.length-1;e.beginUpdate();try{for(var p=e.getChildCells(d,!0),k=0;k<p.length;k++){g=p[k];h=e.getChildCells(g,!0);var v=h[a],w=this.getCellGeometry(v);null!=w&&(w=w.clone(),w.width+=b,null!=w.alternateBounds&&(w.alternateBounds.width+=b),e.setGeometry(v,w));a<h.length-1&&(v=h[a+1],w=this.getCellGeometry(v),null!=w&&(w=w.clone(),-w.x+=b,f||(w.width-=b,null!=w.alternateBounds&&(w.alternateBounds.width-=b)),e.setGeometry(v,w)))}if(m||f){var y=this.getCellGeometry(d);null!=y&&(y=y.clone(),y.width+=b,e.setGeometry(d,y))}null!=this.layoutManager&&this.layoutManager.executeLayout(d)}finally{e.endUpdate()}};function TableLayout(a){mxGraphLayout.call(this,a)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};+Graph.prototype.setTableRowHeight=function(a,b,f){f=null!=f?f:!0;var e=this.getModel();e.beginUpdate();try{var g=this.getCellGeometry(a);if(null!=g){g=g.clone();g.height+=b;e.setGeometry(a,g);var d=e.getParent(a),h=e.getChildCells(d,!0);if(!f){var m=mxUtils.indexOf(h,a);if(m<h.length-1){var p=h[m+1],k=this.getCellGeometry(p);null!=k&&(k=k.clone(),k.y+=b,k.height-=b,e.setGeometry(p,k))}}var u=this.getCellGeometry(d);null!=u&&(f||(f=a==h[h.length-1]),f&&(u=u.clone(),u.height+=b,e.setGeometry(d,u)))}}finally{e.endUpdate()}};+Graph.prototype.setTableColumnWidth=function(a,b,f){f=null!=f?f:!1;var e=this.getModel(),g=e.getParent(a),d=e.getParent(g),h=e.getChildCells(g,!0);a=mxUtils.indexOf(h,a);var m=a==h.length-1;e.beginUpdate();try{for(var p=e.getChildCells(d,!0),k=0;k<p.length;k++){g=p[k];h=e.getChildCells(g,!0);var u=h[a],w=this.getCellGeometry(u);null!=w&&(w=w.clone(),w.width+=b,null!=w.alternateBounds&&(w.alternateBounds.width+=b),e.setGeometry(u,w));a<h.length-1&&(u=h[a+1],w=this.getCellGeometry(u),null!=w&&(w=w.clone(),+w.x+=b,f||(w.width-=b,null!=w.alternateBounds&&(w.alternateBounds.width-=b)),e.setGeometry(u,w)))}if(m||f){var y=this.getCellGeometry(d);null!=y&&(y=y.clone(),y.width+=b,e.setGeometry(d,y))}null!=this.layoutManager&&this.layoutManager.executeLayout(d)}finally{e.endUpdate()}};function TableLayout(a){mxGraphLayout.call(this,a)}TableLayout.prototype=new mxStackLayout;TableLayout.prototype.constructor=TableLayout;TableLayout.prototype.isHorizontal=function(){return!1};TableLayout.prototype.isVertexIgnored=function(a){return!this.graph.getModel().isVertex(a)||!this.graph.isCellVisible(a)};TableLayout.prototype.getSize=function(a,b){for(var f=0,e=0;e<a.length;e++)if(!this.isVertexIgnored(a[e])){var g=this.graph.getCellGeometry(a[e]);null!=g&&(f+=b?g.width:g.height)}return f};TableLayout.prototype.getRowLayout=function(a,b){var f=this.graph.model.getChildCells(a,!0),e=this.graph.getActualStartSize(a,!0);a=this.getSize(f,!0);b=b-e.x-e.width;var g=[];e=e.x;for(var d=0;d<f.length;d++){var h=this.graph.getCellGeometry(f[d]);null!=h&&(e+=(null!=h.alternateBounds?h.alternateBounds.width:h.width)*b/a,g.push(Math.round(e)))}return g};TableLayout.prototype.layoutRow=function(a,b,f,e){var g=this.graph.getModel(),d=g.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var h=a.x,m=0;null!=b&&(b=b.slice(),b.splice(0,0,a.x));for(var p=0;p<d.length;p++){var k=this.graph.getCellGeometry(d[p]);null!=k&&(k=k.clone(),k.y=a.y,k.height=f-a.y-a.height,null!=b?(k.x=b[p],k.width=b[p+1]-k.x,p==d.length-1&&p<b.length-2&&(k.width=e-k.x-a.x-a.width)):(k.x=h,h+=k.width,p==d.length-1?k.width=e-a.x-a.width-m:m+=k.width),k.alternateBounds=new mxRectangle(0,0,k.width,k.height),g.setGeometry(d[p],k))}return m};-TableLayout.prototype.execute=function(a){if(null!=a){var b=this.graph.getActualStartSize(a,!0),f=this.graph.getCellGeometry(a),e=this.graph.getCellStyle(a),g="1"==mxUtils.getValue(e,"resizeLastRow","0"),d="1"==mxUtils.getValue(e,"resizeLast","0");e="1"==mxUtils.getValue(e,"fixedRows","0");var h=this.graph.getModel(),m=0;h.beginUpdate();try{for(var p=f.height-b.y-b.height,k=f.width-b.x-b.width,v=h.getChildCells(a,!0),w=0;w<v.length;w++)h.setVisible(v[w],!0);var y=this.getSize(v,!1);if(0<p&&0<k&&0<-v.length&&0<y){if(g){var C=this.graph.getCellGeometry(v[v.length-1]);null!=C&&(C=C.clone(),C.height=p-y+C.height,h.setGeometry(v[v.length-1],C))}var D=d?null:this.getRowLayout(v[0],k),E=[],G=b.y;for(w=0;w<v.length;w++)C=this.graph.getCellGeometry(v[w]),null!=C&&(C=C.clone(),C.x=b.x,C.width=k,C.y=Math.round(G),G=g||e?G+C.height:G+C.height/y*p,C.height=Math.round(G)-C.y,h.setGeometry(v[w],C)),m=Math.max(m,this.layoutRow(v[w],D,C.height,k,E));e&&p<y&&(f=f.clone(),f.height=G+b.height,h.setGeometry(a,-f));d&&k<m+Graph.minTableColumnWidth&&(f=f.clone(),f.width=m+b.width+b.x+Graph.minTableColumnWidth,h.setGeometry(a,f));this.graph.visitTableCells(a,mxUtils.bind(this,function(J){h.setVisible(J.cell,J.actual.cell==J.cell);if(J.actual.cell!=J.cell){if(J.actual.row==J.row){var M=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo;J.actual.geo.width+=M.width}J.actual.col==J.col&&(M=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo,J.actual.geo.height+=M.height)}}))}else for(w=0;w<v.length;w++)h.setVisible(v[w],+TableLayout.prototype.execute=function(a){if(null!=a){var b=this.graph.getActualStartSize(a,!0),f=this.graph.getCellGeometry(a),e=this.graph.getCellStyle(a),g="1"==mxUtils.getValue(e,"resizeLastRow","0"),d="1"==mxUtils.getValue(e,"resizeLast","0");e="1"==mxUtils.getValue(e,"fixedRows","0");var h=this.graph.getModel(),m=0;h.beginUpdate();try{for(var p=f.height-b.y-b.height,k=f.width-b.x-b.width,u=h.getChildCells(a,!0),w=0;w<u.length;w++)h.setVisible(u[w],!0);var y=this.getSize(u,!1);if(0<p&&0<k&&0<+u.length&&0<y){if(g){var C=this.graph.getCellGeometry(u[u.length-1]);null!=C&&(C=C.clone(),C.height=p-y+C.height,h.setGeometry(u[u.length-1],C))}var D=d?null:this.getRowLayout(u[0],k),E=[],G=b.y;for(w=0;w<u.length;w++)C=this.graph.getCellGeometry(u[w]),null!=C&&(C=C.clone(),C.x=b.x,C.width=k,C.y=Math.round(G),G=g||e?G+C.height:G+C.height/y*p,C.height=Math.round(G)-C.y,h.setGeometry(u[w],C)),m=Math.max(m,this.layoutRow(u[w],D,C.height,k,E));e&&p<y&&(f=f.clone(),f.height=G+b.height,h.setGeometry(a,+f));d&&k<m+Graph.minTableColumnWidth&&(f=f.clone(),f.width=m+b.width+b.x+Graph.minTableColumnWidth,h.setGeometry(a,f));this.graph.visitTableCells(a,mxUtils.bind(this,function(J){h.setVisible(J.cell,J.actual.cell==J.cell);if(J.actual.cell!=J.cell){if(J.actual.row==J.row){var M=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo;J.actual.geo.width+=M.width}J.actual.col==J.col&&(M=null!=J.geo.alternateBounds?J.geo.alternateBounds:J.geo,J.actual.geo.height+=M.height)}}))}else for(w=0;w<u.length;w++)h.setVisible(u[w],!1)}finally{h.endUpdate()}}};(function(){var a=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){a.apply(this,arguments);this.validEdges=[]};var b=mxGraphView.prototype.validateCellState;mxGraphView.prototype.validateCellState=function(w,y){y=null!=y?y:!0;var C=this.getState(w);null!=C&&y&&this.graph.model.isEdge(C.cell)&&null!=C.style&&1!=C.style[mxConstants.STYLE_CURVED]&&!C.invalid&&this.updateLineJumps(C)&&this.graph.cellRenderer.redraw(C,!1,this.isRendering());C=b.apply(this,arguments);null!=C&&y&&this.graph.model.isEdge(C.cell)&&null!=C.style&&1!=C.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(C);return C};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(w){var y=null!=this.node?this.node.getElementsByTagName("path"):null;if(null!=y)for(var C=null,D=0;D<y.length;D++)if("hidden"!=y[D].getAttribute("visibility")){if(!(null!=C&&C!=y[D].getAttribute("d")||null!=w&&0!=--w))return y[D]}else null==C&&(C=y[D].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 f=mxShape.prototype.paint;mxShape.prototype.paint=function(w){f.apply(this,arguments);this.isFlowAnimationEnabled()&&this.addFlowAnimationToShape()};var e=mxShape.prototype.createSvgCanvas;mxShape.prototype.createSvgCanvas=function(w){w=e.apply(this,arguments);null!=this.state&&(w.adaptiveColors=this.state.view.graph.getAdaptiveColors());return w};var g=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(w,y){return g.apply(this,arguments)||null!=w.routedPoints&&null!=y.routedPoints&&!mxUtils.equalPoints(y.routedPoints,w.routedPoints)};var d=mxGraphView.prototype.updateCellState;mxGraphView.prototype.updateCellState=function(w){d.apply(this,arguments);this.graph.model.isEdge(w.cell)&&1!=w.style[mxConstants.STYLE_CURVED]&&this.updateLineJumps(w)};mxGraphView.prototype.updateLineJumps=function(w){var y=w.absolutePoints;if(Graph.lineJumpsEnabled){var C=null!=w.routedPoints,D=null;if(null!=y&&null!=this.validEdges&&"none"!==mxUtils.getValue(w.style,"jumpStyle","none")){var E=function(la,O,V){var Y=new mxPoint(O,V);Y.type=la;D.push(Y);-Y=null!=w.routedPoints?w.routedPoints[D.length-1]:null;return null==Y||Y.type!=la||Y.x!=O||Y.y!=V},G=.5*this.scale;C=!1;D=[];for(var J=0;J<y.length-1;J++){for(var M=y[J+1],Q=y[J],L=[],W=y[J+2];J<y.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,W.x,W.y,M.x,M.y)<1*this.scale*this.scale;)M=W,J++,W=y[J+2];C=E(0,Q.x,Q.y)||C;for(var X=0;X<this.validEdges.length;X++){var T=this.validEdges[X],N=T.absolutePoints;if(null!=N&&mxUtils.intersects(w,T)&&"1"!=T.style.noJump){var ca=null;for(T=0;T<N.length-1;T++){var H=N[T++Y=null!=w.routedPoints?w.routedPoints[D.length-1]:null;return null==Y||Y.type!=la||Y.x!=O||Y.y!=V},G=.5*this.scale;C=!1;D=[];for(var J=0;J<y.length-1;J++){for(var M=y[J+1],Q=y[J],K=[],W=y[J+2];J<y.length-2&&mxUtils.ptSegDistSq(Q.x,Q.y,W.x,W.y,M.x,M.y)<1*this.scale*this.scale;)M=W,J++,W=y[J+2];C=E(0,Q.x,Q.y)||C;for(var X=0;X<this.validEdges.length;X++){var T=this.validEdges[X],N=T.absolutePoints;if(null!=N&&mxUtils.intersects(w,T)&&"1"!=T.style.noJump){var ca=null;for(T=0;T<N.length-1;T++){var H=N[T+1],S=N[T];for(W=N[T+2];T<N.length-2&&mxUtils.ptSegDistSq(S.x,S.y,W.x,W.y,H.x,H.y)<1*this.scale*this.scale;)H=W,T++,W=N[T+2];var ea=mxUtils.intersection(Q.x,Q.y,M.x,M.y,S.x,S.y,H.x,H.y);if(null!=ea&&(Math.abs(ea.x-Q.x)>G||Math.abs(ea.y-Q.y)>G)&&(Math.abs(ea.x-M.x)>G||Math.abs(ea.y-M.y)>G)&&(null==ca||mxUtils.ptLineDist(Q.x,Q.y,M.x,M.y,ca.x,ca.y)>G||mxUtils.ptLineDist(Q.x,Q.y,M.x,M.y,S.x,S.y)>G)&&(null==W||mxUtils.ptLineDist(Q.x,Q.y,M.x,M.y,W.x,W.y)>G||mxUtils.ptLineDist(Q.x,Q.y,M.x,M.y,H.x,H.y)>G)){W=-ea.x-Q.x;ca=ea.y-Q.y;ea={distSq:W*W+ca*ca,x:ea.x,y:ea.y};for(W=0;W<L.length;W++)if(L[W].distSq>ea.distSq){L.splice(W,0,ea);ea=null;break}null==ea||0!=L.length&&L[L.length-1].x===ea.x&&L[L.length-1].y===ea.y||L.push(ea)}ca=S}}}for(T=0;T<L.length;T++)C=E(1,L[T].x,L[T].y)||C}ea=y[y.length-1];C=E(0,ea.x,ea.y)||C}w.routedPoints=D;return C}return!1};var h=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(w,y,C){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||-null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)h.apply(this,arguments);else{var D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,E=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),J=!0,M=null,Q=null,L=[],W=null;w.begin();for(var X=0;X<this.state.routedPoints.length;X++){var T=this.state.routedPoints[X],N=new mxPoint(T.x/-this.scale,T.y/this.scale);0==X?N=y[0]:X==this.state.routedPoints.length-1&&(N=y[y.length-1]);var ca=!1;if(null!=M&&1==T.type){var H=this.state.routedPoints[X+1];T=H.x/this.scale-N.x;H=H.y/this.scale-N.y;T=T*T+H*H;null==W&&(W=new mxPoint(N.x-M.x,N.y-M.y),Q=Math.sqrt(W.x*W.x+W.y*W.y),0<Q?(W.x=W.x*E/Q,W.y=W.y*E/Q):W=null);T>E*E&&0<Q&&(T=M.x-N.x,H=M.y-N.y,T=T*T+H*H,T>E*E&&(ca=new mxPoint(N.x-W.x,N.y-W.y),T=new mxPoint(N.x+W.x,N.y+W.y),L.push(ca),this.addPoints(w,L,C,D,!1,null,J),L=0>Math.round(W.x)||-0==Math.round(W.x)&&0>=Math.round(W.y)?1:-1,J=!1,"sharp"==G?(w.lineTo(ca.x-W.y*L,ca.y+W.x*L),w.lineTo(T.x-W.y*L,T.y+W.x*L),w.lineTo(T.x,T.y)):"line"==G?(w.moveTo(ca.x+W.y*L,ca.y-W.x*L),w.lineTo(ca.x-W.y*L,ca.y+W.x*L),w.moveTo(T.x-W.y*L,T.y+W.x*L),w.lineTo(T.x+W.y*L,T.y-W.x*L),w.moveTo(T.x,T.y)):"arc"==G?(L*=1.3,w.curveTo(ca.x-W.y*L,ca.y+W.x*L,T.x-W.y*L,T.y+W.x*L,T.x,T.y)):(w.moveTo(T.x,T.y),J=!0),L=[T],ca=!0))}else W=null;ca||(L.push(N),M=N)}this.addPoints(w,L,C,D,!1,null,J);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;+ea.x-Q.x;ca=ea.y-Q.y;ea={distSq:W*W+ca*ca,x:ea.x,y:ea.y};for(W=0;W<K.length;W++)if(K[W].distSq>ea.distSq){K.splice(W,0,ea);ea=null;break}null==ea||0!=K.length&&K[K.length-1].x===ea.x&&K[K.length-1].y===ea.y||K.push(ea)}ca=S}}}for(T=0;T<K.length;T++)C=E(1,K[T].x,K[T].y)||C}ea=y[y.length-1];C=E(0,ea.x,ea.y)||C}w.routedPoints=D;return C}return!1};var h=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(w,y,C){this.routedPoints=null!=this.state?this.state.routedPoints:null;if(this.outline||+null==this.state||null==this.style||null==this.state.routedPoints||0==this.state.routedPoints.length)h.apply(this,arguments);else{var D=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,E=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),J=!0,M=null,Q=null,K=[],W=null;w.begin();for(var X=0;X<this.state.routedPoints.length;X++){var T=this.state.routedPoints[X],N=new mxPoint(T.x/+this.scale,T.y/this.scale);0==X?N=y[0]:X==this.state.routedPoints.length-1&&(N=y[y.length-1]);var ca=!1;if(null!=M&&1==T.type){var H=this.state.routedPoints[X+1];T=H.x/this.scale-N.x;H=H.y/this.scale-N.y;T=T*T+H*H;null==W&&(W=new mxPoint(N.x-M.x,N.y-M.y),Q=Math.sqrt(W.x*W.x+W.y*W.y),0<Q?(W.x=W.x*E/Q,W.y=W.y*E/Q):W=null);T>E*E&&0<Q&&(T=M.x-N.x,H=M.y-N.y,T=T*T+H*H,T>E*E&&(ca=new mxPoint(N.x-W.x,N.y-W.y),T=new mxPoint(N.x+W.x,N.y+W.y),K.push(ca),this.addPoints(w,K,C,D,!1,null,J),K=0>Math.round(W.x)||+0==Math.round(W.x)&&0>=Math.round(W.y)?1:-1,J=!1,"sharp"==G?(w.lineTo(ca.x-W.y*K,ca.y+W.x*K),w.lineTo(T.x-W.y*K,T.y+W.x*K),w.lineTo(T.x,T.y)):"line"==G?(w.moveTo(ca.x+W.y*K,ca.y-W.x*K),w.lineTo(ca.x-W.y*K,ca.y+W.x*K),w.moveTo(T.x-W.y*K,T.y+W.x*K),w.lineTo(T.x+W.y*K,T.y-W.x*K),w.moveTo(T.x,T.y)):"arc"==G?(K*=1.3,w.curveTo(ca.x-W.y*K,ca.y+W.x*K,T.x-W.y*K,T.y+W.x*K,T.x,T.y)):(w.moveTo(T.x,T.y),J=!0),K=[T],ca=!0))}else W=null;ca||(K.push(N),M=N)}this.addPoints(w,K,C,D,!1,null,J);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;mxGraphView.prototype.getFixedTerminalPoint=function(w,y,C,D){return null!=y&&"centerPerimeter"==y.style[mxConstants.STYLE_PERIMETER]?new mxPoint(y.getCenterX(),y.getCenterY()):m.apply(this,arguments)};var p=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(w,y,C,D){if(null==y||null==w||"1"!=y.style.snapToPoint&&"1"!=w.style.snapToPoint)p.apply(this,arguments);else{y=this.getTerminalPort(w,y,D);var E=this.getNextPoint(w,C,D),G=this.graph.isOrthogonal(w),-J=mxUtils.toRadians(Number(y.style[mxConstants.STYLE_ROTATION]||"0")),M=new mxPoint(y.getCenterX(),y.getCenterY());if(0!=J){var Q=Math.cos(-J),L=Math.sin(-J);E=mxUtils.getRotatedPoint(E,Q,L,M)}Q=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);Q+=parseFloat(w.style[D?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);E=this.getPerimeterPoint(y,E,0==J&&G,Q);0!=J&&(Q=Math.cos(J),L=Math.sin(J),E=mxUtils.getRotatedPoint(E,Q,L,M));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,+J=mxUtils.toRadians(Number(y.style[mxConstants.STYLE_ROTATION]||"0")),M=new mxPoint(y.getCenterX(),y.getCenterY());if(0!=J){var Q=Math.cos(-J),K=Math.sin(-J);E=mxUtils.getRotatedPoint(E,Q,K,M)}Q=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);Q+=parseFloat(w.style[D?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);E=this.getPerimeterPoint(y,E,0==J&&G,Q);0!=J&&(Q=Math.cos(J),K=Math.sin(J),E=mxUtils.getRotatedPoint(E,Q,K,M));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,y,C,D,E),D)}};mxGraphView.prototype.snapToAnchorPoint=function(w,y,C,D,E){if(null!=y&&null!=w){w=this.graph.getAllConnectionConstraints(y);D=C=null;if(null!=w)for(var G=0;G<w.length;G++){var J=this.graph.getConnectionPoint(y,w[G]);if(null!=J){var M=(J.x-E.x)*(J.x-E.x)+(J.y-E.y)*(J.y-E.y);if(null==D||M<D)C=J,D=M}}null!=C&&(E=C)}return E};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,y,C){var D=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&-null!=C.state&&(D=C.state.view.graph.replacePlaceholders(C.state.cell,D));return D};var v=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(w){if(null!=w.style&&"undefined"!==typeof pako){var y=mxUtils.getValue(w.style,mxConstants.STYLE_SHAPE,null);if(null!=y&&"string"===typeof y&&"stencil("==y.substring(0,8))try{var C=y.substring(8,y.length-1),D=mxUtils.parseXml(Graph.decompress(C));return new mxShape(new mxStencil(D.documentElement))}catch(E){null!=window.console&&-console.log("Error in shape: "+E)}}return v.apply(this,arguments)}})();mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];mxStencilRegistry.filesLoaded={};mxStencilRegistry.isFileLoaded=function(a){return!mxClient.IS_FF&&mxStencilRegistry.filesLoaded[a]};mxStencilRegistry.setFileLoaded=function(a){mxStencilRegistry.filesLoaded[a]=!0};+null!=C.state&&(D=C.state.view.graph.replacePlaceholders(C.state.cell,D));return D};var u=mxCellRenderer.prototype.createShape;mxCellRenderer.prototype.createShape=function(w){if(null!=w.style&&"undefined"!==typeof pako){var y=mxUtils.getValue(w.style,mxConstants.STYLE_SHAPE,null);if(null!=y&&"string"===typeof y&&"stencil("==y.substring(0,8))try{var C=y.substring(8,y.length-1),D=mxUtils.parseXml(Graph.decompress(C));return new mxShape(new mxStencil(D.documentElement))}catch(E){null!=window.console&&+console.log("Error in shape: "+E)}}return u.apply(this,arguments)}})();mxStencilRegistry.libraries={};mxStencilRegistry.dynamicLoading=!0;mxStencilRegistry.allowEval=!0;mxStencilRegistry.packages=[];mxStencilRegistry.filesLoaded={};mxStencilRegistry.isFileLoaded=function(a){return!mxClient.IS_FF&&mxStencilRegistry.filesLoaded[a]};mxStencilRegistry.setFileLoaded=function(a){mxStencilRegistry.filesLoaded[a]=!0};mxStencilRegistry.getStencil=function(a){var b=mxStencilRegistry.stencils[a];if(null==b&&null==mxCellRenderer.defaultShapes[a]&&mxStencilRegistry.dynamicLoading){var f=mxStencilRegistry.getBasenameForStencil(a);if(null!=f){b=mxStencilRegistry.libraries[f];if(null!=b){if(null==mxStencilRegistry.packages[f]){for(var e=0;e<b.length;e++){var g=b[e];if(!mxStencilRegistry.isFileLoaded(g))if(mxStencilRegistry.setFileLoaded(g),".xml"==g.toLowerCase().substring(g.length-4,g.length))mxStencilRegistry.loadStencilSet(g,null);else if(".js"==g.toLowerCase().substring(g.length-3,g.length))try{if(mxStencilRegistry.allowEval){var d=mxUtils.load(g);null!=d&&200<=d.getStatus()&&299>=d.getStatus()&&eval.call(window,d.getText())}}catch(h){null!=window.console&&console.log("error in getStencil:",a,f,b,g,h)}}mxStencilRegistry.packages[f]=1}}else f=f.replace("_-_","_"),mxStencilRegistry.loadStencilSet(STENCIL_PATH+"/"+f+".xml",null);b=mxStencilRegistry.stencils[a]}}return b};mxStencilRegistry.getBasenameForStencil=function(a){var b=null;if(null!=a&&"string"===typeof a&&(a=a.split("."),0<a.length&&"mxgraph"==a[0])){b=a[1];for(var f=2;f<a.length-1;f++)b+="/"+a[f]}return b};@@ -2811,108 +2812,108 @@ mxConstants.HANDLE_STROKECOLOR="#0088cf";mxConstants.VERTEX_SELECTION_COLOR="#005;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(q){return!mxEvent.isAltDown(q)||mxEvent.isShiftDown(q)};var f=mxGraphLayout.prototype.isVertexIgnored;mxGraphLayout.prototype.isVertexIgnored=function(q){return f.apply(this,arguments)||this.graph.isTableRow(q)||this.graph.isTableCell(q)};var e=mxGraphLayout.prototype.isEdgeIgnored;mxGraphLayout.prototype.isEdgeIgnored=function(q){return e.apply(this,arguments)||this.graph.isEdgeIgnored(q)};var g=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.prototype.isCreateTarget=function(q){return this.graph.isCloneEvent(q)!=g.apply(this,arguments)};mxConstraintHandler.prototype.createHighlightShape=function(){var q=new mxEllipse(null,this.highlightColor,this.highlightColor,0);q.opacity=mxConstants.HIGHLIGHT_OPACITY;return q};mxConnectionHandler.prototype.livePreview=!0;mxConnectionHandler.prototype.cursor=-"crosshair";mxConnectionHandler.prototype.createEdgeState=function(q){q=this.graph.createCurrentEdgeStyle();q=this.graph.createEdge(null,null,null,null,null,q);q=new mxCellState(this.graph.view,q,this.graph.getCellStyle(q));for(var A in this.graph.currentEdgeStyle)q.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)q.style[A]=F[A]}catch(K){}}q.style=this.graph.postProcessCellStyle(q.cell,q.style);return q};+"crosshair";mxConnectionHandler.prototype.createEdgeState=function(q){q=this.graph.createCurrentEdgeStyle();q=this.graph.createEdge(null,null,null,null,null,q);q=new mxCellState(this.graph.view,q,this.graph.getCellStyle(q));for(var A in this.graph.currentEdgeStyle)q.style[A]=this.graph.currentEdgeStyle[A];if(null!=this.previous){var B=this.previous.style.newEdgeStyle;if(null!=B)try{var F=JSON.parse(B);for(A in F)q.style[A]=F[A]}catch(L){}}q.style=this.graph.postProcessCellStyle(q.cell,q.style);return q};var d=mxConnectionHandler.prototype.createShape;mxConnectionHandler.prototype.createShape=function(){var q=d.apply(this,arguments);q.isDashed="1"==this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED];return q};mxConnectionHandler.prototype.updatePreview=function(q){};var h=mxConnectionHandler.prototype.createMarker;mxConnectionHandler.prototype.createMarker=function(){var q=h.apply(this,arguments),A=q.getCell;q.getCell=mxUtils.bind(this,function(B){var F=A.apply(this,arguments);this.error=null;return F});return q};Graph.prototype.defaultVertexStyle={};Graph.prototype.defaultEdgeStyle={edgeStyle:"orthogonalEdgeStyle",rounded:"0",jettySize:"auto",orthogonalLoop:"1"};Graph.prototype.createCurrentEdgeStyle=function(){for(var q="edgeStyle="+(this.currentEdgeStyle.edgeStyle||"none")+";",A="shape curved rounded comic sketch fillWeight hachureGap hachureAngle jiggle disableMultiStroke disableMultiStrokeFill fillStyle curveFitting simplification comicStyle jumpStyle jumpSize".split(" "),B=0;B<A.length;B++)null!=this.currentEdgeStyle[A[B]]&&(q+=A[B]+"="+this.currentEdgeStyle[A[B]]+";");null!=this.currentEdgeStyle.orthogonalLoop?q+="orthogonalLoop="+this.currentEdgeStyle.orthogonalLoop+";":null!=Graph.prototype.defaultEdgeStyle.orthogonalLoop&&(q+="orthogonalLoop="+Graph.prototype.defaultEdgeStyle.orthogonalLoop+";");null!=this.currentEdgeStyle.jettySize?q+="jettySize="+this.currentEdgeStyle.jettySize+";":null!=Graph.prototype.defaultEdgeStyle.jettySize&&(q+="jettySize="+Graph.prototype.defaultEdgeStyle.jettySize+";");"elbowEdgeStyle"==this.currentEdgeStyle.edgeStyle&&null!=this.currentEdgeStyle.elbow&&(q+="elbow="+this.currentEdgeStyle.elbow+";");return q=null!=this.currentEdgeStyle.html?q+("html="+this.currentEdgeStyle.html+";"):q+"html=1;"};Graph.prototype.getPagePadding=function(){return new mxPoint(0,0)};Graph.prototype.loadStylesheet=function(){var q=null!=this.themes?this.themes[this.defaultThemeName]:mxStyleRegistry.dynamicLoading?mxUtils.load(STYLE_PATH+"/default.xml").getDocumentElement():null;null!=-q&&(new mxCodec(q.ownerDocument)).decode(q,this.getStylesheet())};Graph.prototype.createCellLookup=function(q,A){A=null!=A?A:{};for(var B=0;B<q.length;B++){var F=q[B];A[mxObjectIdentity.get(F)]=F.getId();for(var K=this.model.getChildCount(F),R=0;R<K;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(q,A,B){B=null!=B?B:{};for(var F in q){var K=A[F];null==B[K]&&(B[K]=q[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(q,A,-B,F){A=null!=A?A:0;B=null!=B?B:0;var K=new mxCodec(q.ownerDocument),R=new mxGraphModel;K.decode(q,R);q=[];K={};var Z={},ja=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),K));if(null!=ja){var fa=this.createCellLookup([R.root]);ja=ja.slice();this.model.beginUpdate();try{if(1!=ja.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<ja.length;R++)ka=this.model.getChildren(this.moveCells([ja[R]],A,B,!1,this.model.getRoot())[0]),null!=ka&&(q=q.concat(ka));else{var ka=R.getChildren(ja[0]);-null!=ka&&(q=this.moveCells(ka,A,B,!1,this.getDefaultParent()),Z[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=q&&(this.createCellMapping(K,fa,Z),this.updateCustomLinks(Z,q),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var va=this.getBoundingBoxFromGeometry(q,!0);null!=va&&this.moveCells(q,A-va.x,B-va.y)}}finally{this.model.endUpdate()}}return q};Graph.prototype.encodeCells=function(q){for(var A={},B=this.cloneCells(q,null,A),F=new mxDictionary,K=0;K<q.length;K++)F.put(q[K],-!0);var R=new mxCodec,Z=new mxGraphModel,ja=Z.getChildAt(Z.getRoot(),0);for(K=0;K<B.length;K++){Z.add(ja,B[K]);var fa=this.view.getState(q[K]);if(null!=fa){var ka=this.getCellGeometry(B[K]);null!=ka&&ka.relative&&!this.model.isEdge(q[K])&&null==F.get(this.model.getParent(q[K]))&&(ka.offset=null,ka.relative=!1,ka.x=fa.x/fa.view.scale-fa.view.translate.x,ka.y=fa.y/fa.view.scale-fa.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(q)),B);return R.encode(Z)};Graph.prototype.isSwimlane=+q&&(new mxCodec(q.ownerDocument)).decode(q,this.getStylesheet())};Graph.prototype.createCellLookup=function(q,A){A=null!=A?A:{};for(var B=0;B<q.length;B++){var F=q[B];A[mxObjectIdentity.get(F)]=F.getId();for(var L=this.model.getChildCount(F),R=0;R<L;R++)this.createCellLookup([this.model.getChildAt(F,R)],A)}return A};Graph.prototype.createCellMapping=function(q,A,B){B=null!=B?B:{};for(var F in q){var L=A[F];null==B[L]&&(B[L]=q[F].getId()||"")}return B};Graph.prototype.importGraphModel=function(q,A,+B,F){A=null!=A?A:0;B=null!=B?B:0;var L=new mxCodec(q.ownerDocument),R=new mxGraphModel;L.decode(q,R);q=[];L={};var Z={},ja=R.getChildren(this.cloneCell(R.root,this.isCloneInvalidEdges(),L));if(null!=ja){var fa=this.createCellLookup([R.root]);ja=ja.slice();this.model.beginUpdate();try{if(1!=ja.length||this.isCellLocked(this.getDefaultParent()))for(R=0;R<ja.length;R++)ka=this.model.getChildren(this.moveCells([ja[R]],A,B,!1,this.model.getRoot())[0]),null!=ka&&(q=q.concat(ka));else{var ka=R.getChildren(ja[0]);+null!=ka&&(q=this.moveCells(ka,A,B,!1,this.getDefaultParent()),Z[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=q&&(this.createCellMapping(L,fa,Z),this.updateCustomLinks(Z,q),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var va=this.getBoundingBoxFromGeometry(q,!0);null!=va&&this.moveCells(q,A-va.x,B-va.y)}}finally{this.model.endUpdate()}}return q};Graph.prototype.encodeCells=function(q){for(var A={},B=this.cloneCells(q,null,A),F=new mxDictionary,L=0;L<q.length;L++)F.put(q[L],+!0);var R=new mxCodec,Z=new mxGraphModel,ja=Z.getChildAt(Z.getRoot(),0);for(L=0;L<B.length;L++){Z.add(ja,B[L]);var fa=this.view.getState(q[L]);if(null!=fa){var ka=this.getCellGeometry(B[L]);null!=ka&&ka.relative&&!this.model.isEdge(q[L])&&null==F.get(this.model.getParent(q[L]))&&(ka.offset=null,ka.relative=!1,ka.x=fa.x/fa.view.scale-fa.view.translate.x,ka.y=fa.y/fa.view.scale-fa.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(q)),B);return R.encode(Z)};Graph.prototype.isSwimlane=function(q,A){var B=null;null==q||this.model.isEdge(q)||this.model.getParent(q)==this.model.getRoot()||(B=this.getCurrentCellStyle(q,A)[mxConstants.STYLE_SHAPE]);return B==mxConstants.SHAPE_SWIMLANE||"table"==B||"tableRow"==B};var m=Graph.prototype.isCellEditable;Graph.prototype.isCellEditable=function(q){return null!=q&&m.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellEditable(this.model.getParent(q)):!0:!1};var p=Graph.prototype.isCellMovable;Graph.prototype.isCellMovable=-function(q){return null!=q&&p.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellMovable(this.model.getParent(q)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(q){var A=this.model.getParent(q);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var v=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(q,A,B,F,K,R,Z,ja){null==ja&&(ja=this.model.getParent(q),-this.isTable(ja)||this.isTableRow(ja))&&(ja=this.getCellAt(R,Z,null,!0,!1));B=null;this.model.beginUpdate();try{B=v.apply(this,[q,A,B,F,K,R,Z,ja]);this.model.setValue(B,"");var fa=this.getChildCells(B,!0);for(A=0;A<fa.length;A++){var ka=this.getCellGeometry(fa[A]);null!=ka&&ka.relative&&0<ka.x&&this.model.remove(fa[A])}var va=this.getChildCells(q,!0);for(A=0;A<va.length;A++)ka=this.getCellGeometry(va[A]),null!=ka&&ka.relative&&0>=ka.x&&this.model.remove(va[A]);var Ma=this.model.getTerminal(B,!1);-if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[q]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[q]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(q,A,B){if(A||B)w.apply(this,arguments);else{var F=this.getSelectionCell(),K=null,R=[],Z=mxUtils.bind(this,-function(ja){if(null!=this.view.getState(ja)&&(this.model.isVertex(ja)||this.model.isEdge(ja)))if(R.push(ja),ja==F)K=R.length-1;else if(q&&null==F&&0<R.length||null!=K&&q&&R.length>K||!q&&0<K)return;for(var fa=0;fa<this.model.getChildCount(ja);fa++)Z(this.model.getChildAt(ja,fa))});Z(this.model.root);0<R.length&&(K=null!=K?mxUtils.mod(K+(q?1:-1),R.length):0,this.setSelectionCell(R[K]))}};Graph.prototype.swapShapes=function(q,A){if(this.model.isVertex(q)&&this.model.isVertex(A)&&2==this.getMovableCells([q,-A]).length){var B=this.getCellGeometry(q),F=this.getCellGeometry(A);if(null!=B&&null!=F){var K=B.clone(),R=F.clone();this.model.beginUpdate();try{K.x=F.getCenterX()-B.width/2,K.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(q,K),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var y=Graph.prototype.moveCells;Graph.prototype.moveCells=function(q,A,B,F,K,R,Z){Z=null!=Z?Z:{};if(this.isTable(K)){for(var ja=[],fa=0;fa<q.length;fa++)this.isTable(q[fa])?-ja=ja.concat(this.model.getChildCells(q[fa],!0).reverse()):ja.push(q[fa]);q=ja}this.model.beginUpdate();try{ja=[];for(fa=0;fa<q.length;fa++)if(null!=K&&this.isTableRow(q[fa])){var ka=this.model.getParent(q[fa]),va=this.getCellGeometry(q[fa]);this.isTable(ka)&&ja.push(ka);if(null!=ka&&null!=va&&this.isTable(ka)&&this.isTable(K)&&(F||ka!=K)){if(!F){var Ma=this.getCellGeometry(ka);null!=Ma&&(Ma=Ma.clone(),Ma.height-=va.height,this.model.setGeometry(ka,Ma))}Ma=this.getCellGeometry(K);null!=Ma&&(Ma=Ma.clone(),-Ma.height+=va.height,this.model.setGeometry(K,Ma));var Na=this.model.getChildCells(K,!0);if(0<Na.length){q[fa]=F?this.cloneCell(q[fa]):q[fa];var Aa=this.model.getChildCells(q[fa],!0),Ga=this.model.getChildCells(Na[0],!0),wa=Ga.length-Aa.length;if(0<wa)for(var ua=0;ua<wa;ua++){var Ta=this.cloneCell(Aa[Aa.length-1]);null!=Ta&&(Ta.value="",this.model.add(q[fa],Ta))}else if(0>wa)for(ua=0;ua>wa;ua--)this.model.remove(Aa[Aa.length+ua-1]);Aa=this.model.getChildCells(q[fa],!0);for(ua=0;ua<Ga.length;ua++){var Ra=+function(q){return null!=q&&p.apply(this,arguments)?this.isTableCell(q)||this.isTableRow(q)?this.isCellMovable(this.model.getParent(q)):!0:!1};var k=Graph.prototype.isExtendParent;Graph.prototype.isExtendParent=function(q){var A=this.model.getParent(q);if(null!=A){var B=this.getCurrentCellStyle(A);if(null!=B.expand)return"0"!=B.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(q,A,B,F,L,R,Z,ja){null==ja&&(ja=this.model.getParent(q),+this.isTable(ja)||this.isTableRow(ja))&&(ja=this.getCellAt(R,Z,null,!0,!1));B=null;this.model.beginUpdate();try{B=u.apply(this,[q,A,B,F,L,R,Z,ja]);this.model.setValue(B,"");var fa=this.getChildCells(B,!0);for(A=0;A<fa.length;A++){var ka=this.getCellGeometry(fa[A]);null!=ka&&ka.relative&&0<ka.x&&this.model.remove(fa[A])}var va=this.getChildCells(q,!0);for(A=0;A<va.length;A++)ka=this.getCellGeometry(va[A]),null!=ka&&ka.relative&&0>=ka.x&&this.model.remove(va[A]);var Ma=this.model.getTerminal(B,!1);+if(null!=Ma){var Na=this.getCurrentCellStyle(Ma);null!=Na&&"1"==Na.snapToPoint&&(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[q]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[q]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[B]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[B]))}}finally{this.model.endUpdate()}return B};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(q,A,B){if(A||B)w.apply(this,arguments);else{var F=this.getSelectionCell(),L=null,R=[],Z=mxUtils.bind(this,+function(ja){if(null!=this.view.getState(ja)&&(this.model.isVertex(ja)||this.model.isEdge(ja)))if(R.push(ja),ja==F)L=R.length-1;else if(q&&null==F&&0<R.length||null!=L&&q&&R.length>L||!q&&0<L)return;for(var fa=0;fa<this.model.getChildCount(ja);fa++)Z(this.model.getChildAt(ja,fa))});Z(this.model.root);0<R.length&&(L=null!=L?mxUtils.mod(L+(q?1:-1),R.length):0,this.setSelectionCell(R[L]))}};Graph.prototype.swapShapes=function(q,A){if(this.model.isVertex(q)&&this.model.isVertex(A)&&2==this.getMovableCells([q,+A]).length){var B=this.getCellGeometry(q),F=this.getCellGeometry(A);if(null!=B&&null!=F){var L=B.clone(),R=F.clone();this.model.beginUpdate();try{L.x=F.getCenterX()-B.width/2,L.y=F.getCenterY()-B.height/2,R.x=B.getCenterX()-F.width/2,R.y=B.getCenterY()-F.height/2,this.model.setGeometry(q,L),this.model.setGeometry(A,R)}finally{this.model.endUpdate()}}}};var y=Graph.prototype.moveCells;Graph.prototype.moveCells=function(q,A,B,F,L,R,Z){Z=null!=Z?Z:{};if(this.isTable(L)){for(var ja=[],fa=0;fa<q.length;fa++)this.isTable(q[fa])?+ja=ja.concat(this.model.getChildCells(q[fa],!0).reverse()):ja.push(q[fa]);q=ja}this.model.beginUpdate();try{ja=[];for(fa=0;fa<q.length;fa++)if(null!=L&&this.isTableRow(q[fa])){var ka=this.model.getParent(q[fa]),va=this.getCellGeometry(q[fa]);this.isTable(ka)&&ja.push(ka);if(null!=ka&&null!=va&&this.isTable(ka)&&this.isTable(L)&&(F||ka!=L)){if(!F){var Ma=this.getCellGeometry(ka);null!=Ma&&(Ma=Ma.clone(),Ma.height-=va.height,this.model.setGeometry(ka,Ma))}Ma=this.getCellGeometry(L);null!=Ma&&(Ma=Ma.clone(),+Ma.height+=va.height,this.model.setGeometry(L,Ma));var Na=this.model.getChildCells(L,!0);if(0<Na.length){q[fa]=F?this.cloneCell(q[fa]):q[fa];var Aa=this.model.getChildCells(q[fa],!0),Ga=this.model.getChildCells(Na[0],!0),wa=Ga.length-Aa.length;if(0<wa)for(var ua=0;ua<wa;ua++){var Ta=this.cloneCell(Aa[Aa.length-1]);null!=Ta&&(Ta.value="",this.model.add(q[fa],Ta))}else if(0>wa)for(ua=0;ua>wa;ua--)this.model.remove(Aa[Aa.length+ua-1]);Aa=this.model.getChildCells(q[fa],!0);for(ua=0;ua<Ga.length;ua++){var Ra=this.getCellGeometry(Ga[ua]),Oa=this.getCellGeometry(Aa[ua]);null!=Ra&&null!=Oa&&(Oa=Oa.clone(),Oa.width=Ra.width,this.model.setGeometry(Aa[ua],Oa))}}}}var Sa=y.apply(this,arguments);for(fa=0;fa<ja.length;fa++)!F&&this.model.contains(ja[fa])&&0==this.model.getChildCount(ja[fa])&&this.model.remove(ja[fa]);F&&this.updateCustomLinks(this.createCellMapping(Z,this.createCellLookup(q)),Sa)}finally{this.model.endUpdate()}return Sa};var C=Graph.prototype.removeCells;Graph.prototype.removeCells=function(q,-A){var B=[];this.model.beginUpdate();try{for(var F=0;F<q.length;F++)if(this.isTableCell(q[F])){var K=this.model.getParent(q[F]),R=this.model.getParent(K);1==this.model.getChildCount(K)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(q[F],"")}else{if(this.isTableRow(q[F])&&(R=this.model.getParent(q[F]),0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R))){for(var Z=this.model.getChildCells(R,!0),ja=0,fa=0;fa<Z.length;fa++)0<=mxUtils.indexOf(q,+A){var B=[];this.model.beginUpdate();try{for(var F=0;F<q.length;F++)if(this.isTableCell(q[F])){var L=this.model.getParent(q[F]),R=this.model.getParent(L);1==this.model.getChildCount(L)&&1==this.model.getChildCount(R)?0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R)&&B.push(R):this.labelChanged(q[F],"")}else{if(this.isTableRow(q[F])&&(R=this.model.getParent(q[F]),0>mxUtils.indexOf(q,R)&&0>mxUtils.indexOf(B,R))){for(var Z=this.model.getChildCells(R,!0),ja=0,fa=0;fa<Z.length;fa++)0<=mxUtils.indexOf(q,Z[fa])&&ja++;ja==Z.length&&B.push(R)}B.push(q[F])}B=C.apply(this,[B,A])}finally{this.model.endUpdate()}return B};Graph.prototype.updateCustomLinks=function(q,A,B){B=null!=B?B:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&B.updateCustomLinksForCell(q,A[F],B)};Graph.prototype.updateCustomLinksForCell=function(q,A){this.doUpdateCustomLinksForCell(q,A);for(var B=this.model.getChildCount(A),F=0;F<B;F++)this.updateCustomLinksForCell(q,this.model.getChildAt(A,F))};Graph.prototype.doUpdateCustomLinksForCell=-function(q,A){};Graph.prototype.getAllConnectionConstraints=function(q,A){if(null!=q){A=mxUtils.getValue(q.style,"points",null);if(null!=A){q=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];q.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return q}if(null!=q.shape&&null!=q.shape.bounds){F=q.shape.direction;A=q.shape.bounds;var K=q.shape.scale;B=A.width/K;A=A.height/K;if(F==mxConstants.DIRECTION_NORTH||+function(q,A){};Graph.prototype.getAllConnectionConstraints=function(q,A){if(null!=q){A=mxUtils.getValue(q.style,"points",null);if(null!=A){q=[];try{var B=JSON.parse(A);for(A=0;A<B.length;A++){var F=B[A];q.push(new mxConnectionConstraint(new mxPoint(F[0],F[1]),2<F.length?"0"!=F[2]:!0,null,3<F.length?F[3]:0,4<F.length?F[4]:0))}}catch(R){}return q}if(null!=q.shape&&null!=q.shape.bounds){F=q.shape.direction;A=q.shape.bounds;var L=q.shape.scale;B=A.width/L;A=A.height/L;if(F==mxConstants.DIRECTION_NORTH||F==mxConstants.DIRECTION_SOUTH)F=B,B=A,A=F;A=q.shape.getConstraints(q.style,B,A);if(null!=A)return A;if(null!=q.shape.stencil&&null!=q.shape.stencil.constraints)return q.shape.stencil.constraints;if(null!=q.shape.constraints)return q.shape.constraints}}return null};Graph.prototype.flipEdge=function(q){if(null!=q){var A=this.getCurrentCellStyle(q);A=mxUtils.getValue(A,mxConstants.STYLE_ELBOW,mxConstants.ELBOW_HORIZONTAL)==mxConstants.ELBOW_HORIZONTAL?mxConstants.ELBOW_VERTICAL:mxConstants.ELBOW_HORIZONTAL;-this.setCellStyles(mxConstants.STYLE_ELBOW,A,[q])}};Graph.prototype.isValidRoot=function(q){for(var A=this.model.getChildCount(q),B=0,F=0;F<A;F++){var K=this.model.getChildAt(q,F);this.model.isVertex(K)&&(K=this.getCellGeometry(K),null==K||K.relative||B++)}return 0<B||this.isContainer(q)};Graph.prototype.isValidDropTarget=function(q,A,B){for(var F=this.getCurrentCellStyle(q),K=!0,R=!0,Z=0;Z<A.length&&R;Z++)K=K&&this.isTable(A[Z]),R=R&&this.isTableRow(A[Z]);return!this.isCellLocked(q)&&(this.isTargetShape(q,-A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(q))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(q))&&!this.isTableRow(q)&&(!this.isTable(q)||R||K))};Graph.prototype.createGroupCell=function(){var q=mxGraph.prototype.createGroupCell.apply(this,arguments);q.setStyle("group");return q};Graph.prototype.isExtendParentsOnAdd=function(q){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=+this.setCellStyles(mxConstants.STYLE_ELBOW,A,[q])}};Graph.prototype.isValidRoot=function(q){for(var A=this.model.getChildCount(q),B=0,F=0;F<A;F++){var L=this.model.getChildAt(q,F);this.model.isVertex(L)&&(L=this.getCellGeometry(L),null==L||L.relative||B++)}return 0<B||this.isContainer(q)};Graph.prototype.isValidDropTarget=function(q,A,B){for(var F=this.getCurrentCellStyle(q),L=!0,R=!0,Z=0;Z<A.length&&R;Z++)L=L&&this.isTable(A[Z]),R=R&&this.isTableRow(A[Z]);return!this.isCellLocked(q)&&(this.isTargetShape(q,+A,B)||("1"!=mxUtils.getValue(F,"part","0")||this.isContainer(q))&&"0"!=mxUtils.getValue(F,"dropTarget","1")&&(mxGraph.prototype.isValidDropTarget.apply(this,arguments)||this.isContainer(q))&&!this.isTableRow(q)&&(!this.isTable(q)||R||L))};Graph.prototype.createGroupCell=function(){var q=mxGraph.prototype.createGroupCell.apply(this,arguments);q.setStyle("group");return q};Graph.prototype.isExtendParentsOnAdd=function(q){var A=mxGraph.prototype.isExtendParentsOnAdd.apply(this,arguments);if(A&&null!=q&&null!=this.layoutManager){var B=this.model.getParent(q);null!=B&&(B=this.layoutManager.getLayout(B),null!=B&&B.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(q,A,B){B=null!=B?B:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,B&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(q,A){var B=this.getModel(),F=[];B.beginUpdate();-try{for(var K=0;K<q.length;K++){var R=q[K];if(B.isEdge(R)){var Z=B.getTerminal(R,!0),ja=B.getTerminal(R,!1);B.setTerminal(R,ja,!0);B.setTerminal(R,Z,!1);var fa=B.getGeometry(R);if(null!=fa){fa=fa.clone();null!=fa.points&&fa.points.reverse();var ka=fa.getTerminalPoint(!0),va=fa.getTerminalPoint(!1);fa.setTerminalPoint(ka,!1);fa.setTerminalPoint(va,!0);B.setGeometry(R,fa);var Ma=this.view.getState(R),Na=this.view.getState(Z),Aa=this.view.getState(ja);if(null!=Ma){var Ga=null!=Na?this.getConnectionConstraint(Ma,+try{for(var L=0;L<q.length;L++){var R=q[L];if(B.isEdge(R)){var Z=B.getTerminal(R,!0),ja=B.getTerminal(R,!1);B.setTerminal(R,ja,!0);B.setTerminal(R,Z,!1);var fa=B.getGeometry(R);if(null!=fa){fa=fa.clone();null!=fa.points&&fa.points.reverse();var ka=fa.getTerminalPoint(!0),va=fa.getTerminalPoint(!1);fa.setTerminalPoint(ka,!1);fa.setTerminalPoint(va,!0);B.setGeometry(R,fa);var Ma=this.view.getState(R),Na=this.view.getState(Z),Aa=this.view.getState(ja);if(null!=Ma){var Ga=null!=Na?this.getConnectionConstraint(Ma,Na,!0):null,wa=null!=Aa?this.getConnectionConstraint(Ma,Aa,!1):null;this.setConnectionConstraint(R,Z,!0,wa);this.setConnectionConstraint(R,ja,!1,Ga);var ua=mxUtils.getValue(Ma.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ma.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(B.isVertex(R)&&(fa=this.getCellGeometry(R),null!=fa)){if(!(this.isTable(R)||this.isTableRow(R)||this.isTableCell(R)||this.isSwimlane(R))){fa=fa.clone();fa.x+=fa.width/2-fa.height/2;fa.y+=fa.height/2-fa.width/2;var Ta=fa.width;fa.width=fa.height;fa.height=Ta;B.setGeometry(R,fa)}var Ra=this.view.getState(R);if(null!=Ra){var Oa=[mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,mxConstants.DIRECTION_NORTH],Sa=mxUtils.getValue(Ra.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);this.setCellStyles(mxConstants.STYLE_DIRECTION,Oa[mxUtils.mod(mxUtils.indexOf(Oa,Sa)+(A?-1:1),Oa.length)],[R])}F.push(R)}}}finally{B.endUpdate()}return F};Graph.prototype.stencilHasPlaceholders=function(q){if(null!=q&&null!=q.fgNode)for(q=q.fgNode.firstChild;null!=q;){if("text"==q.nodeName&&"1"==q.getAttribute("placeholders"))return!0;q=q.nextSibling}return!1};var D=Graph.prototype.processChange;Graph.prototype.processChange=function(q){if(q instanceof mxGeometryChange&&(this.isTableCell(q.cell)||this.isTableRow(q.cell))&&(null==q.previous&&null!=q.geometry||null!=q.previous&&!q.previous.equals(q.geometry))){var A=q.cell;this.isTableCell(A)&&(A=this.model.getParent(A));this.isTableRow(A)&&(A=this.model.getParent(A));var B=this.view.getState(A);null!=B&&null!=B.shape&&(this.view.invalidate(A),B.shape.bounds=null)}D.apply(this,arguments);q instanceof mxValueChange&&null!=q.cell&&null!=q.cell.value&&"object"==typeof q.cell.value&&this.invalidateDescendantsWithPlaceholders(q.cell)};Graph.prototype.invalidateDescendantsWithPlaceholders=function(q){q=this.model.getDescendants(q);if(0<q.length)for(var A=0;A<q.length;A++){var B=this.view.getState(q[A]);null!=B&&null!=B.shape&&null!=B.shape.stencil&&this.stencilHasPlaceholders(B.shape.stencil)?this.removeStateForCell(q[A]):this.isReplacePlaceholders(q[A])&&this.view.invalidate(q[A],!1,!1)}};Graph.prototype.replaceElement=function(q,A){A=q.ownerDocument.createElement(null!=A?A:"span");for(var B=Array.prototype.slice.call(q.attributes);attr=B.pop();)A.setAttribute(attr.nodeName,attr.nodeValue);A.innerHTML=-q.innerHTML;q.parentNode.replaceChild(A,q)};Graph.prototype.processElements=function(q,A){if(null!=q){q=q.getElementsByTagName("*");for(var B=0;B<q.length;B++)null!=q[B]&&A(q[B])}};Graph.prototype.updateLabelElements=function(q,A,B){q=null!=q?q:this.getSelectionCells();for(var F=document.createElement("div"),K=0;K<q.length;K++){var R=this.getCurrentCellStyle(q[K]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(q[K]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var Z=F.getElementsByTagName(null!=-B?B:"*"),ja=0;ja<Z.length;ja++)A(Z[ja]);F.innerHTML!=R&&this.cellLabelChanged(q[K],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(q,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=q.value&&"object"==typeof q.value){if(this.isReplacePlaceholders(q)&&null!=q.getAttribute("placeholder"))for(var F=q.getAttribute("placeholder"),K=q;null!=K;){if(K==this.model.getRoot()||null!=K.value&&"object"==typeof K.value&&K.hasAttribute(F)){this.setAttributeForCell(K,F,A);break}K=this.model.getParent(K)}var R=-q.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(q){if(null!=q){for(var A=new mxDictionary,B=0;B<q.length;B++)A.put(q[B],!0);var F=[];for(B=0;B<q.length;B++){var K=this.model.getParent(q[B]);null==K||A.get(K)||(A.put(K,!0),-F.push(K))}for(B=0;B<F.length;B++)if(K=this.view.getState(F[B]),null!=K&&(this.model.isEdge(K.cell)||this.model.isVertex(K.cell))&&this.isCellDeletable(K.cell)&&this.isTransparentState(K)){for(var R=!0,Z=0;Z<this.model.getChildCount(K.cell)&&R;Z++)A.get(this.model.getChildAt(K.cell,Z))||(R=!1);R&&q.push(K.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(q){for(var A=[],B=0;B<q.length;B++)this.isCellDeletable(q[B])&&this.isTransparentState(this.view.getState(q[B]))&&+q.innerHTML;q.parentNode.replaceChild(A,q)};Graph.prototype.processElements=function(q,A){if(null!=q){q=q.getElementsByTagName("*");for(var B=0;B<q.length;B++)null!=q[B]&&A(q[B])}};Graph.prototype.updateLabelElements=function(q,A,B){q=null!=q?q:this.getSelectionCells();for(var F=document.createElement("div"),L=0;L<q.length;L++){var R=this.getCurrentCellStyle(q[L]);if(null!=R&&"1"==R.html&&(R=this.convertValueToString(q[L]),null!=R&&0<R.length)){F.innerHTML=Graph.sanitizeHtml(R);for(var Z=F.getElementsByTagName(null!=+B?B:"*"),ja=0;ja<Z.length;ja++)A(Z[ja]);F.innerHTML!=R&&this.cellLabelChanged(q[L],F.innerHTML)}}};Graph.prototype.cellLabelChanged=function(q,A,B){A=Graph.zapGremlins(A);this.model.beginUpdate();try{if(null!=q.value&&"object"==typeof q.value){if(this.isReplacePlaceholders(q)&&null!=q.getAttribute("placeholder"))for(var F=q.getAttribute("placeholder"),L=q;null!=L;){if(L==this.model.getRoot()||null!=L.value&&"object"==typeof L.value&&L.hasAttribute(F)){this.setAttributeForCell(L,F,A);break}L=this.model.getParent(L)}var R=+q.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage&&R.hasAttribute("label_"+Graph.diagramLanguage)?R.setAttribute("label_"+Graph.diagramLanguage,A):R.setAttribute("label",A);A=R}mxGraph.prototype.cellLabelChanged.apply(this,arguments)}finally{this.model.endUpdate()}};Graph.prototype.cellsRemoved=function(q){if(null!=q){for(var A=new mxDictionary,B=0;B<q.length;B++)A.put(q[B],!0);var F=[];for(B=0;B<q.length;B++){var L=this.model.getParent(q[B]);null==L||A.get(L)||(A.put(L,!0),+F.push(L))}for(B=0;B<F.length;B++)if(L=this.view.getState(F[B]),null!=L&&(this.model.isEdge(L.cell)||this.model.isVertex(L.cell))&&this.isCellDeletable(L.cell)&&this.isTransparentState(L)){for(var R=!0,Z=0;Z<this.model.getChildCount(L.cell)&&R;Z++)A.get(this.model.getChildAt(L.cell,Z))||(R=!1);R&&q.push(L.cell)}}mxGraph.prototype.cellsRemoved.apply(this,arguments)};Graph.prototype.removeCellsAfterUngroup=function(q){for(var A=[],B=0;B<q.length;B++)this.isCellDeletable(q[B])&&this.isTransparentState(this.view.getState(q[B]))&&A.push(q[B]);q=A;mxGraph.prototype.removeCellsAfterUngroup.apply(this,arguments)};Graph.prototype.setLinkForCell=function(q,A){this.setAttributeForCell(q,"link",A)};Graph.prototype.setTooltipForCell=function(q,A){var B="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(q.value)&&q.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(B="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(q,B,A)};Graph.prototype.getAttributeForCell=function(q,A,B){q=null!=q.value&&"object"===typeof q.value?q.value.getAttribute(A):null;return null!=q?q:B};Graph.prototype.setAttributeForCell=function(q,A,B){if(null!=q.value&&"object"==typeof q.value)var F=q.value.cloneNode(!0);else F=mxUtils.createXmlDocument().createElement("UserObject"),F.setAttribute("label",q.value||"");null!=B?F.setAttribute(A,B):F.removeAttribute(A);this.model.setValue(q,F)};Graph.prototype.isTargetShape=function(q,A,B){q=mxUtils.getValue(this.getCurrentCellStyle(q),mxConstants.STYLE_SHAPE,"");for(B=0;B<-A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,q))return!0}return!1};var E=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(q,A,B,F){if(mxEvent.isAltDown(A))return null;for(var K=0;K<q.length;K++){var R=this.model.getParent(q[K]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(q,R))return null}R=E.apply(this,arguments);var Z=!0;for(K=0;K<q.length&&Z;K++)Z=Z&&this.isTableRow(q[K]);Z&&(this.isTableCell(R)&&(R=+A.length;B++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[B]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,q))return!0}return!1};var E=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(q,A,B,F){if(mxEvent.isAltDown(A))return null;for(var L=0;L<q.length;L++){var R=this.model.getParent(q[L]);if(this.model.isEdge(R)&&0>mxUtils.indexOf(q,R))return null}R=E.apply(this,arguments);var Z=!0;for(L=0;L<q.length&&Z;L++)Z=Z&&this.isTableRow(q[L]);Z&&(this.isTableCell(R)&&(R=this.model.getParent(R)),this.isTableRow(R)&&(R=this.model.getParent(R)),this.isTable(R)||(R=null));return R};Graph.prototype.click=function(q){mxGraph.prototype.click.call(this,q);this.firstClickState=q.getState();this.firstClickSource=q.getSource()};Graph.prototype.dblClick=function(q,A){this.isEnabled()&&(A=this.insertTextForEvent(q,A),mxGraph.prototype.dblClick.call(this,q,A))};Graph.prototype.insertTextForEvent=function(q,A){var B=mxUtils.convertPoint(this.container,mxEvent.getClientX(q),mxEvent.getClientY(q));-if(null!=q&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,K=mxEvent.getSource(q);this.firstClickState!=F||this.firstClickSource!=K||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(q)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&K==this.view.getCanvas().ownerSVGElement)||-(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var q=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),K=this.getPageSize();A=Math.max(A,F.x*K.width);B=Math.max(B,F.y*K.height)}return new mxPoint(this.snap(A+q),this.snap(B+q))};Graph.prototype.getFreeInsertPoint=+if(null!=q&&!this.model.isVertex(A)){var F=this.model.isEdge(A)?this.view.getState(A):null,L=mxEvent.getSource(q);this.firstClickState!=F||this.firstClickSource!=L||null!=F&&null!=F.text&&null!=F.text.node&&null!=F.text.boundingBox&&(mxUtils.contains(F.text.boundingBox,B.x,B.y)||mxUtils.isAncestorNode(F.text.node,mxEvent.getSource(q)))||(null!=F||this.isCellLocked(this.getDefaultParent()))&&(null==F||this.isCellLocked(F.cell))||!(null!=F||mxClient.IS_SVG&&L==this.view.getCanvas().ownerSVGElement)||+(null==F&&(F=this.view.getState(this.getCellAt(B.x,B.y))),A=this.addText(B.x,B.y,F))}return A};Graph.prototype.getInsertPoint=function(){var q=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,B=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),L=this.getPageSize();A=Math.max(A,F.x*L.width);B=Math.max(B,F.y*L.height)}return new mxPoint(this.snap(A+q),this.snap(B+q))};Graph.prototype.getFreeInsertPoint=function(){var q=this.view,A=this.getGraphBounds(),B=this.getInsertPoint(),F=this.snap(Math.round(Math.max(B.x,A.x/q.scale-q.translate.x+(0==A.width?2*this.gridSize:0))));q=this.snap(Math.round(Math.max(B.y,(A.y+A.height)/q.scale-q.translate.y+2*this.gridSize)));return new mxPoint(F,q)};Graph.prototype.getCenterInsertPoint=function(q){q=null!=q?q:new mxRectangle;return mxUtils.hasScrollbars(this.container)?new mxPoint(this.snap(Math.round((this.container.scrollLeft+this.container.clientWidth/2)/this.view.scale-this.view.translate.x-q.width/2)),this.snap(Math.round((this.container.scrollTop+this.container.clientHeight/2)/this.view.scale-this.view.translate.y-q.height/2))):new mxPoint(this.snap(Math.round(this.container.clientWidth/2/this.view.scale-this.view.translate.x-q.width/2)),this.snap(Math.round(this.container.clientHeight/2/this.view.scale-this.view.translate.y-q.height/2)))};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.appendFontSize=function(q,A){q=null!=q?q:"";null!=-A&&(0<q.length&&";"!=q.charAt(q.length-1)&&(q+=";"),q+="fontSize="+A+";");return q};Graph.prototype.addText=function(q,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var K=this.view.getRelativePoint(B,q,A);F.geometry.x=Math.round(1E4*K.x)/1E4;F.geometry.y=Math.round(K.y);-F.geometry.offset=new mxPoint(0,0);K=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((q-K.x)/R),Math.round((A-K.y)/R))}else K=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(q/this.view.scale)-K.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-K.y-(null!=B?B.origin.y:0),F.style+=+A&&(0<q.length&&";"!=q.charAt(q.length-1)&&(q+=";"),q+="fontSize="+A+";");return q};Graph.prototype.addText=function(q,A,B){var F=new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=B&&this.model.isEdge(B.cell)){F.style="edgeLabel;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.edgeFontSize);F.geometry.relative=!0;F.connectable=!1;var L=this.view.getRelativePoint(B,q,A);F.geometry.x=Math.round(1E4*L.x)/1E4;F.geometry.y=Math.round(L.y);+F.geometry.offset=new mxPoint(0,0);L=this.view.getPoint(B,F.geometry);var R=this.view.scale;F.geometry.offset=new mxPoint(Math.round((q-L.x)/R),Math.round((A-L.y)/R))}else L=this.view.translate,F.style="text;"+this.appendFontSize("html=1;align=center;verticalAlign=middle;resizable=0;points=[];",this.vertexFontSize),F.geometry.width=40,F.geometry.height=20,F.geometry.x=Math.round(q/this.view.scale)-L.x-(null!=B?B.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-L.y-(null!=B?B.origin.y:0),F.style+="autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=B?B.cell:null),this.fireEvent(new mxEventObject("textInserted","cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(q,A,B){var F=mxUtils.bind(this,function(){var fa=this.container.getElementsByTagName("a");if(null!=fa)for(var ka=0;ka<fa.length;ka++){var va=this.getAbsoluteUrl(fa[ka].getAttribute("href"));null!=va&&(fa[ka].setAttribute("rel",this.linkRelation),-fa[ka].setAttribute("href",va),null!=A&&mxEvent.addGestureListeners(fa[ka],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var K=this.container.style.cursor,R=this.getTolerance(),Z=this,ja={currentState:null,currentLink:null,currentTarget:null,highlight:null!=q&&""!=q&&q!=mxConstants.NONE?new mxCellHighlight(Z,q,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(fa){var ka=fa.sourceState;if(null==ka||null==Z.getLinkForCell(ka.cell))fa=Z.getCellAt(fa.getGraphX(),+fa[ka].setAttribute("href",va),null!=A&&mxEvent.addGestureListeners(fa[ka],null,null,A))}});this.model.addListener(mxEvent.CHANGE,F);F();var L=this.container.style.cursor,R=this.getTolerance(),Z=this,ja={currentState:null,currentLink:null,currentTarget:null,highlight:null!=q&&""!=q&&q!=mxConstants.NONE?new mxCellHighlight(Z,q,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(fa){var ka=fa.sourceState;if(null==ka||null==Z.getLinkForCell(ka.cell))fa=Z.getCellAt(fa.getGraphX(),fa.getGraphY(),null,null,null,function(va,Ma,Na){return null==Z.getLinkForCell(va.cell)}),ka=null==ka||Z.model.isAncestor(fa,ka.cell)?Z.view.getState(fa):null;ka!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ka,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(fa,ka){this.startX=ka.getGraphX();this.startY=ka.getGraphY();this.scrollLeft=Z.container.scrollLeft;this.scrollTop=Z.container.scrollTop;null==this.currentLink&&"auto"==Z.container.style.overflow&&(Z.container.style.cursor="move");this.updateCurrentState(ka)},mouseMove:function(fa,ka){if(Z.isMouseDown)null!=this.currentLink&&(fa=Math.abs(this.startX-ka.getGraphX()),ka=Math.abs(this.startY-ka.getGraphY()),(fa>R||ka>R)&&this.clear());else{for(fa=ka.getSource();null!=fa&&"a"!=fa.nodeName.toLowerCase();)fa=fa.parentNode;null!=fa?this.clear():(null!=Z.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&Z.tooltipHandler.reset(ka,!0,this.currentState),(null==this.currentState||ka.getState()!=this.currentState&&null!=ka.sourceState||!Z.intersects(this.currentState,ka.getGraphX(),ka.getGraphY()))&&this.updateCurrentState(ka))}},mouseUp:function(fa,ka){var va=ka.getSource();for(fa=ka.getEvent();null!=va&&"a"!=va.nodeName.toLowerCase();)va=va.parentNode;null==va&&Math.abs(this.scrollLeft-Z.container.scrollLeft)<R&&Math.abs(this.scrollTop-Z.container.scrollTop)<R&&(null==ka.sourceState||!ka.isSource(ka.sourceState.control))&&((mxEvent.isLeftMouseButton(fa)||mxEvent.isMiddleMouseButton(fa))&&!mxEvent.isPopupTrigger(fa)||mxEvent.isTouchEvent(fa))&&(null!=this.currentLink?(va=Z.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&va||null==A||A(fa,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(fa)||(fa=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(fa)?"_blank":va?Z.linkTarget:"_top",Z.openLink(this.currentLink,fa),ka.consume())):null!=B&&!ka.isConsumed()&&Math.abs(this.scrollLeft-Z.container.scrollLeft)<-R&&Math.abs(this.scrollTop-Z.container.scrollTop)<R&&Math.abs(this.startX-ka.getGraphX())<R&&Math.abs(this.startY-ka.getGraphY())<R&&B(ka.getEvent()));this.clear()},activate:function(fa){this.currentLink=Z.getAbsoluteUrl(Z.getLinkForCell(fa.cell));null!=this.currentLink&&(this.currentTarget=Z.getLinkTargetForCell(fa.cell),Z.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(fa))},clear:function(){null!=Z.container&&(Z.container.style.cursor=K);this.currentLink=this.currentState=-this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=Z.tooltipHandler&&Z.tooltipHandler.hide()}};Z.click=function(fa){};Z.addMouseListener(ja);mxEvent.addListener(document,"mouseleave",function(fa){ja.clear()})};Graph.prototype.duplicateCells=function(q,A){q=null!=q?q:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<q.length;B++)this.isTableCell(q[B])&&(q[B]=this.model.getParent(q[B]));q=this.model.getTopmostCells(q);var F=this.getModel(),K=this.gridSize,R=[];F.beginUpdate();-try{var Z={},ja=this.createCellLookup(q),fa=this.cloneCells(q,!1,Z,!0);for(B=0;B<q.length;B++){var ka=F.getParent(q[B]);if(null!=ka){var va=this.moveCells([fa[B]],K,K,!1)[0];R.push(va);if(A)F.add(ka,fa[B]);else{var Ma=ka.getIndex(q[B]);F.add(ka,fa[B],Ma+1)}if(this.isTable(ka)){var Na=this.getCellGeometry(fa[B]),Aa=this.getCellGeometry(ka);null!=Na&&null!=Aa&&(Aa=Aa.clone(),Aa.height+=Na.height,F.setGeometry(ka,Aa))}}else R.push(fa[B])}this.updateCustomLinks(this.createCellMapping(Z,ja),fa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,-"cells",fa))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(q,A,B){if(null!=q&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),K=[],R=0;R<F.length;R++)K.push(F[R]);document.execCommand("insertimage",!1,q);q=this.cellEditor.textarea.getElementsByTagName("img");if(q.length==K.length+1)for(R=q.length-1;0<=R;R--)if(0==R||q[R]!=K[R-1]){q[R].setAttribute("width",A);q[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(q){if(null!=+R&&Math.abs(this.scrollTop-Z.container.scrollTop)<R&&Math.abs(this.startX-ka.getGraphX())<R&&Math.abs(this.startY-ka.getGraphY())<R&&B(ka.getEvent()));this.clear()},activate:function(fa){this.currentLink=Z.getAbsoluteUrl(Z.getLinkForCell(fa.cell));null!=this.currentLink&&(this.currentTarget=Z.getLinkTargetForCell(fa.cell),Z.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(fa))},clear:function(){null!=Z.container&&(Z.container.style.cursor=L);this.currentLink=this.currentState=+this.currentTarget=null;null!=this.highlight&&this.highlight.hide();null!=Z.tooltipHandler&&Z.tooltipHandler.hide()}};Z.click=function(fa){};Z.addMouseListener(ja);mxEvent.addListener(document,"mouseleave",function(fa){ja.clear()})};Graph.prototype.duplicateCells=function(q,A){q=null!=q?q:this.getSelectionCells();A=null!=A?A:!0;for(var B=0;B<q.length;B++)this.isTableCell(q[B])&&(q[B]=this.model.getParent(q[B]));q=this.model.getTopmostCells(q);var F=this.getModel(),L=this.gridSize,R=[];F.beginUpdate();+try{var Z={},ja=this.createCellLookup(q),fa=this.cloneCells(q,!1,Z,!0);for(B=0;B<q.length;B++){var ka=F.getParent(q[B]);if(null!=ka){var va=this.moveCells([fa[B]],L,L,!1)[0];R.push(va);if(A)F.add(ka,fa[B]);else{var Ma=ka.getIndex(q[B]);F.add(ka,fa[B],Ma+1)}if(this.isTable(ka)){var Na=this.getCellGeometry(fa[B]),Aa=this.getCellGeometry(ka);null!=Na&&null!=Aa&&(Aa=Aa.clone(),Aa.height+=Na.height,F.setGeometry(ka,Aa))}}else R.push(fa[B])}this.updateCustomLinks(this.createCellMapping(Z,ja),fa,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,+"cells",fa))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(q,A,B){if(null!=q&&null!=this.cellEditor.textarea){for(var F=this.cellEditor.textarea.getElementsByTagName("img"),L=[],R=0;R<F.length;R++)L.push(F[R]);document.execCommand("insertimage",!1,q);q=this.cellEditor.textarea.getElementsByTagName("img");if(q.length==L.length+1)for(R=q.length-1;0<=R;R--)if(0==R||q[R]!=L[R-1]){q[R].setAttribute("width",A);q[R].setAttribute("height",B);break}}};Graph.prototype.insertLink=function(q){if(null!=this.cellEditor.textarea)if(0==q.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var A=this.cellEditor.textarea.getElementsByTagName("a"),B=[],F=0;F<A.length;F++)B.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(q));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==B.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=B[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(B=A[0].parentNode;null!=A[0].firstChild;)B.insertBefore(A[0].firstChild,A[0]);-B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(q))};Graph.prototype.isCellResizable=function(q){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(q);return!this.isTableCell(q)&&!this.isTableRow(q)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(q,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],K=-null,R=null,Z=0,ja=0;ja<A.length;ja++)if(this.getModel().isVertex(A[ja])){var fa=this.view.getState(A[ja]);if(null!=fa){var ka=q?fa.getCenterX():fa.getCenterY();K=null!=K?Math.max(K,ka):ka;R=null!=R?Math.min(R,ka):ka;B&&(Z+=q?fa.width:fa.height);F.push(fa)}}if(2<F.length){F.sort(function(Ga,wa){return q?Ga.x-wa.x:Ga.y-wa.y});B&&(Z-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);fa=this.view.translate;ka=this.view.scale;R=R/ka-(q?fa.x:fa.y);K=K/ka-(q?fa.x:fa.y);this.getModel().beginUpdate();-try{var va=(K-R-Z)/(F.length-1),Ma=R+(B?q?F[0].width/2:F[0].height/2:0);for(ja=1;ja<F.length-1;ja++){var Na=this.view.getState(this.model.getParent(F[ja].cell)),Aa=this.getCellGeometry(F[ja].cell);Ma+=va;null!=Aa&&null!=Na&&(Aa=Aa.clone(),q?Aa.x=Math.round(Ma-(B?0:Aa.width/2))-Na.origin.x:Aa.y=Math.round(Ma-(B?0:Aa.height/2))-Na.origin.y,this.getModel().setGeometry(F[ja].cell,Aa));B&&(Ma+=q?F[ja].width:F[ja].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(q){return mxClient.IS_MAC&&-mxEvent.isMetaDown(q)||mxEvent.isControlDown(q)};Graph.prototype.createSvgImageExport=function(q){q=new mxImageExport;q.addCellData=function(B,F,K){F.setAttribute("data-cell-id",B.id);if(K)if(mxUtils.isNode(B.value))for(K=0;K<B.value.attributes.length;K++){var R=B.value.attributes[K];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=q.visitStatesRecursive;-q.visitStatesRecursive=function(B,F,K){if(null!=B){var R=F.root,Z=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=Z.createElementNS?Z.createElementNS(mxConstants.NS_SVG,"g"):Z.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};q.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});q.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});-return q};Graph.prototype.parseBackgroundImage=function(q){var A=null;null!=q&&0<q.length&&(q=JSON.parse(q),A=new mxImage(q.src,q.width,q.height));return A};Graph.prototype.getBackgroundImageObject=function(q){return q};Graph.prototype.getSvg=function(q,A,B,F,K,R,Z,ja,fa,ka,va,Ma,Na,Aa,Ga,wa){var ua=null;if(null!=Aa)for(ua=new mxDictionary,va=0;va<Aa.length;va++)ua.put(Aa[va],!0);Aa=this.useCssTransforms;var Ta=this.enableFlowAnimation;this.enableFlowAnimation=!1;Aa&&(this.useCssTransforms=!1,this.view.revalidate(),-this.sizeDidChange());try{A=null!=A?A:1;B=null!=B?B:0;K=null!=K?K:!0;R=null!=R?R:!0;Z=null!=Z?Z:!0;ka=null!=ka?ka:!1;var Ra="page"==Na?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Na?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Oa=this.backgroundImage,Sa=this.view.translate,Xa=this.view.scale;"diagram"==Na&&null!=Oa&&null!=Oa.width&&null!=Oa.height&&(Ra=mxRectangle.fromRectangle(Ra),Ra.add(new mxRectangle((Sa.x+Oa.x)*Xa,(Sa.y+Oa.y)*Xa,Oa.width*Xa,Oa.height*-Xa)));if(null==Ra)throw Error(mxResources.get("drawingEmpty"));F=A/Xa;var kb=Math.max(1,Math.ceil(Ra.width*F)+2*B)+(ka&&0==B?5:0),tb=Math.max(1,Math.ceil(Ra.height*F)+2*B)+(ka&&0==B?5:0);K=K?-.5:0;var ub=mxUtils.getLightDarkColor(q),lb=Graph.createSvgNode(K,K,kb,tb,ub),mb=lb.ownerDocument;if(null!=q){var fb=mxUtils.createElementNs(mb,mxConstants.NS_SVG,"rect");fb.setAttribute("fill",ub.light);fb.style.fill=ub.cssText;fb.setAttribute("width","100%");fb.setAttribute("height","100%");fb.setAttribute("x",+B.removeChild(A[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(q))};Graph.prototype.isCellResizable=function(q){var A=mxGraph.prototype.isCellResizable.apply(this,arguments),B=this.getCurrentCellStyle(q);return!this.isTableCell(q)&&!this.isTableRow(q)&&(A||"0"!=mxUtils.getValue(B,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==B[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(q,A,B){null==A&&(A=this.getSelectionCells());if(null!=A&&1<A.length){for(var F=[],L=+null,R=null,Z=0,ja=0;ja<A.length;ja++)if(this.getModel().isVertex(A[ja])){var fa=this.view.getState(A[ja]);if(null!=fa){var ka=q?fa.getCenterX():fa.getCenterY();L=null!=L?Math.max(L,ka):ka;R=null!=R?Math.min(R,ka):ka;B&&(Z+=q?fa.width:fa.height);F.push(fa)}}if(2<F.length){F.sort(function(Ga,wa){return q?Ga.x-wa.x:Ga.y-wa.y});B&&(Z-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);fa=this.view.translate;ka=this.view.scale;R=R/ka-(q?fa.x:fa.y);L=L/ka-(q?fa.x:fa.y);this.getModel().beginUpdate();+try{var va=(L-R-Z)/(F.length-1),Ma=R+(B?q?F[0].width/2:F[0].height/2:0);for(ja=1;ja<F.length-1;ja++){var Na=this.view.getState(this.model.getParent(F[ja].cell)),Aa=this.getCellGeometry(F[ja].cell);Ma+=va;null!=Aa&&null!=Na&&(Aa=Aa.clone(),q?Aa.x=Math.round(Ma-(B?0:Aa.width/2))-Na.origin.x:Aa.y=Math.round(Ma-(B?0:Aa.height/2))-Na.origin.y,this.getModel().setGeometry(F[ja].cell,Aa));B&&(Ma+=q?F[ja].width:F[ja].height)}}finally{this.getModel().endUpdate()}}}return A};Graph.prototype.isCloneEvent=function(q){return mxClient.IS_MAC&&+mxEvent.isMetaDown(q)||mxEvent.isControlDown(q)};Graph.prototype.createSvgImageExport=function(q){q=new mxImageExport;q.addCellData=function(B,F,L){F.setAttribute("data-cell-id",B.id);if(L)if(mxUtils.isNode(B.value))for(L=0;L<B.value.attributes.length;L++){var R=B.value.attributes[L];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof B.value)for(R in B.value)F.setAttribute("data-cell-"+R,B.value[R]);else null!=B.value&&F.setAttribute("data-cell-value",B.value);return F};var A=q.visitStatesRecursive;+q.visitStatesRecursive=function(B,F,L){if(null!=B){var R=F.root,Z=F.root.ownerDocument;F.root=this.addCellData(B.cell,null!=Z.createElementNS?Z.createElementNS(mxConstants.NS_SVG,"g"):Z.createElement("g"),Editor.addSvgMetadata);R.appendChild(F.root);A.apply(this,arguments);F.root=R}};q.getLinkForCellState=mxUtils.bind(this,function(B,F){return this.getLinkForCell(B.cell)});q.getTitleForCellState=mxUtils.bind(this,function(B,F){return Editor.convertHtmlToText(this.convertValueToTooltip(B.cell))});+return q};Graph.prototype.parseBackgroundImage=function(q){var A=null;null!=q&&0<q.length&&(q=JSON.parse(q),A=new mxImage(q.src,q.width,q.height));return A};Graph.prototype.getBackgroundImageObject=function(q){return q};Graph.prototype.getSvg=function(q,A,B,F,L,R,Z,ja,fa,ka,va,Ma,Na,Aa,Ga,wa){var ua=null;if(null!=Aa)for(ua=new mxDictionary,va=0;va<Aa.length;va++)ua.put(Aa[va],!0);Aa=this.useCssTransforms;var Ta=this.enableFlowAnimation;this.enableFlowAnimation=!1;Aa&&(this.useCssTransforms=!1,this.view.revalidate(),+this.sizeDidChange());try{A=null!=A?A:1;B=null!=B?B:0;L=null!=L?L:!0;R=null!=R?R:!0;Z=null!=Z?Z:!0;ka=null!=ka?ka:!1;var Ra="page"==Na?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Na?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Oa=this.backgroundImage,Sa=this.view.translate,Xa=this.view.scale;"diagram"==Na&&null!=Oa&&null!=Oa.width&&null!=Oa.height&&(Ra=mxRectangle.fromRectangle(Ra),Ra.add(new mxRectangle((Sa.x+Oa.x)*Xa,(Sa.y+Oa.y)*Xa,Oa.width*Xa,Oa.height*+Xa)));if(null==Ra)throw Error(mxResources.get("drawingEmpty"));F=A/Xa;var kb=Math.max(1,Math.ceil(Ra.width*F)+2*B)+(ka&&0==B?5:0),tb=Math.max(1,Math.ceil(Ra.height*F)+2*B)+(ka&&0==B?5:0);L=L?-.5:0;var ub=mxUtils.getLightDarkColor(q),lb=Graph.createSvgNode(L,L,kb,tb,ub),mb=lb.ownerDocument;if(null!=q){var fb=mxUtils.createElementNs(mb,mxConstants.NS_SVG,"rect");fb.setAttribute("fill",ub.light);fb.style.fill=ub.cssText;fb.setAttribute("width","100%");fb.setAttribute("height","100%");fb.setAttribute("x","0");fb.setAttribute("y","0");lb.appendChild(fb)}var nb=mxUtils.createElementNs(mb,mxConstants.NS_SVG,"g");lb.appendChild(nb);var cb=this.createSvgCanvas(nb);cb.translate(Math.floor(B/A-Ra.x/Xa),Math.floor(B/A-Ra.y/Xa));cb.idPrefix="drawio-svg-"+Editor.guid();var vb=document.createElement("div"),wb=cb.getAlternateText;cb.getAlternateText=function(La,ob,ab,jb,hb,Ya,xb,Ab,c,l,t,n,r){if(null!=Ya&&0<this.state.fontSize)try{mxUtils.isNode(Ya)?Ya=Ya.innerText:(vb.innerHTML=Ya,Ya=mxUtils.extractTextWithWhitespace(vb.childNodes));-for(var u=Math.ceil(2*jb/this.state.fontSize),x=[],I=0,z=0;(0==u||I<u)&&z<Ya.length;){var da=Ya.charCodeAt(z);if(10==da||13==da){if(0<I)break}else x.push(Ya.charAt(z)),255>da&&I++;z++}x.length<Ya.length&&1<Ya.length-x.length&&(Ya=mxUtils.trim(x.join(""))+"...");return Ya}catch(U){return wb.apply(this,arguments)}else return wb.apply(this,arguments)};null!=Oa&&null!=Oa.width&&null!=Oa.height&&(q=Xa/A,K=new mxRectangle((Oa.x+Sa.x)*q,(Oa.y+Sa.y)*q,Oa.width*q,Oa.height*q),mxUtils.intersects(Ra,K)&&cb.image(Oa.x++for(var v=Math.ceil(2*jb/this.state.fontSize),x=[],I=0,z=0;(0==v||I<v)&&z<Ya.length;){var da=Ya.charCodeAt(z);if(10==da||13==da){if(0<I)break}else x.push(Ya.charAt(z)),255>da&&I++;z++}x.length<Ya.length&&1<Ya.length-x.length&&(Ya=mxUtils.trim(x.join(""))+"...");return Ya}catch(U){return wb.apply(this,arguments)}else return wb.apply(this,arguments)};null!=Oa&&null!=Oa.width&&null!=Oa.height&&(q=Xa/A,L=new mxRectangle((Oa.x+Sa.x)*q,(Oa.y+Sa.y)*q,Oa.width*q,Oa.height*q),mxUtils.intersects(Ra,L)&&cb.image(Oa.x+Sa.x,Oa.y+Sa.y,Oa.width,Oa.height,Oa.src,!0));cb.scale(F);cb.textEnabled=Z;ja=null!=ja?ja:this.createSvgImageExport();var yb=ja.getLinkForCellState;ja.getLinkForCellState=function(La,ob){var ab=La.view.graph.getAbsoluteUrl(yb.apply(this,arguments));return null==ab||La.view.graph.isCustomLink(ab)?null:ab};ja.getLinkTargetForCellState=function(La,ob){return La.view.graph.getLinkTargetForCell(La.cell)};var sb=ja.drawCellState,qb=null,rb=mxUtils.bind(this,function(){if(null==qb){qb="ge-flow-animation-"+Editor.guid();var La=null!=mb.createElementNS?mb.createElementNS(mxConstants.NS_SVG,"style"):mb.createElement("style");La.innerHTML=this.createFlowAnimationCss(qb);mb.getElementsByTagName("defs")[0].appendChild(La)}return qb});ja.drawCellState=function(La,ob){for(var ab=La.view.graph,jb=null!=ua?ua.get(La.cell):ab.isCellSelected(La.cell),hb=ab.model.getParent(La.cell);!(R&&null==ua||jb)&&null!=hb;)jb=null!=ua?ua.get(hb):ab.isCellSelected(hb),hb=ab.model.getParent(hb);if(null!=La.shape)try{var Ya=La.shape.isFlowAnimationEnabled,xb=La.shape.addFlowAnimationToShape;La.shape.isFlowAnimationEnabled=function(){return Ta&&ab.model.isEdge(La.cell)&&"1"==mxUtils.getValue(La.style,"flowAnimation","0")};La.shape.addFlowAnimationToShape=function(){ab.addFlowAnimationToNode(this.getFlowAnimationPath(),La.style,A,rb())};if(R&&null==ua||jb)ab.view.redrawEnumerationState(La),sb.apply(this,arguments),this.doDrawShape(La.secondLabel,ob)}finally{La.shape.isFlowAnimationEnabled=Ya,La.shape.addFlowAnimationToShape=xb}};var ib=null!=this.view.currentRoot?this.view.currentRoot:this.model.root;ja.drawState(this.getView().getState(ib),cb);this.addForeignObjectWarning(cb,lb);wa?this.disableSvgLinks(lb):this.updateSvgLinks(lb,fa,!0);return lb}finally{this.enableFlowAnimation=Ta,Aa&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.addForeignObjectWarning=function(q,A){if("0"!=urlParams["svg-warning"]&&0<A.getElementsByTagName("foreignObject").length){var B=q.createElement("switch"),-F=q.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var K=q.createElement("a");K.setAttribute("transform","translate(0,-5)");null==K.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(K.setAttribute("xlink:href",Graph.foreignObjectWarningLink),K.setAttribute("target","_blank")):(K.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),K.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));q=-q.createElement("text");q.setAttribute("text-anchor","middle");q.setAttribute("font-size","10px");q.setAttribute("x","50%");q.setAttribute("y","100%");mxUtils.write(q,Graph.foreignObjectWarningText);B.appendChild(F);K.appendChild(q);B.appendChild(K);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(q,A){q=q.getElementsByTagName("a");for(var B=0;B<q.length;B++){var F=q[B].getAttribute("href");null==F&&(F=q[B].getAttribute("xlink:href"));null!=F&&(q[B].style.pointerEvents="none",q[B].setAttribute("href",-""));A&&A(q[B])}};Graph.prototype.updateSvgLinks=function(q,A,B){q=q.getElementsByTagName("a");for(var F=0;F<q.length;F++)if(null==q[F].getAttribute("target")){var K=q[F].getAttribute("href");null==K&&(K=q[F].getAttribute("xlink:href"));null!=K&&(null!=A&&/^https?:\/\//.test(K)?q[F].setAttribute("target",A):B&&this.isCustomLink(K)&&q[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(q){q=new mxSvgCanvas2D(q);q.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;+F=q.createElement("g");F.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility");var L=q.createElement("a");L.setAttribute("transform","translate(0,-5)");null==L.setAttributeNS||A.ownerDocument!=document&&null==document.documentMode?(L.setAttribute("xlink:href",Graph.foreignObjectWarningLink),L.setAttribute("target","_blank")):(L.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",Graph.foreignObjectWarningLink),L.setAttributeNS(mxConstants.NS_XLINK,"target","_blank"));q=+q.createElement("text");q.setAttribute("text-anchor","middle");q.setAttribute("font-size","10px");q.setAttribute("x","50%");q.setAttribute("y","100%");mxUtils.write(q,Graph.foreignObjectWarningText);B.appendChild(F);L.appendChild(q);B.appendChild(L);A.appendChild(B)}};Graph.prototype.disableSvgLinks=function(q,A){q=q.getElementsByTagName("a");for(var B=0;B<q.length;B++){var F=q[B].getAttribute("href");null==F&&(F=q[B].getAttribute("xlink:href"));null!=F&&(q[B].style.pointerEvents="none",q[B].setAttribute("href",+""));A&&A(q[B])}};Graph.prototype.updateSvgLinks=function(q,A,B){q=q.getElementsByTagName("a");for(var F=0;F<q.length;F++)if(null==q[F].getAttribute("target")){var L=q[F].getAttribute("href");null==L&&(L=q[F].getAttribute("xlink:href"));null!=L&&(null!=A&&/^https?:\/\//.test(L)?q[F].setAttribute("target",A):B&&this.isCustomLink(L)&&q[F].setAttribute("href","javascript:void(0);"))}};Graph.prototype.createSvgCanvas=function(q){q=new mxSvgCanvas2D(q);q.minStrokeWidth=this.cellRenderer.minSvgStrokeWidth;q.adaptiveColors=this.getAdaptiveColors();q.pointerEvents=!0;return q};Graph.prototype.getSelectedElement=function(){var q=null;if(window.getSelection){var A=window.getSelection();A.getRangeAt&&A.rangeCount&&(q=A.getRangeAt(0).commonAncestorContainer)}else document.selection&&(q=document.selection.createRange().parentElement());return q};Graph.prototype.getSelectedEditingElement=function(){var q=null;if(null!=this.cellEditor.textarea)for(q=this.getSelectedElement();null!=q&&q.nodeType!=mxConstants.NODETYPE_ELEMENT;)q=q.parentNode;return q};Graph.prototype.getParentByName=function(q,A,B){for(;null!=q&&q.nodeName!=A;){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.getParentByNames=function(q,A,B){for(;null!=q&&!(0<=mxUtils.indexOf(A,q.nodeName));){if(q==B)return null;q=q.parentNode}return q};Graph.prototype.selectNode=function(q){var A=null;if(window.getSelection){if(A=window.getSelection(),A.getRangeAt&&A.rangeCount){var B=document.createRange();B.selectNode(q);A.removeAllRanges();A.addRange(B)}}else(A=-document.selection)&&"Control"!=A.type&&(q=A.createRange(),q.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",q),B.select())};Graph.prototype.flipEdgePoints=function(q,A,B){var F=this.getCellGeometry(q);if(null!=F){F=F.clone();if(null!=F.points)for(var K=0;K<F.points.length;K++)A?F.points[K].x=B+(B-F.points[K].x):F.points[K].y=B+(B-F.points[K].y);K=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};K(F.getTerminalPoint(!0));K(F.getTerminalPoint(!1));this.model.setGeometry(q,F)}};Graph.prototype.flipChildren=-function(q,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(q),K=0;K<F;K++){var R=this.model.getChildAt(q,K);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var Z=this.getCellGeometry(R);null!=Z&&(Z=Z.clone(),A?Z.x=B+(B-Z.x-Z.width):Z.y=B+(B-Z.y-Z.height),this.model.setGeometry(R,Z))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(q,A){this.model.beginUpdate();try{q=this.model.getTopmostCells(q);for(var B=[],F=0;F<q.length;F++)if(this.model.isEdge(q[F])){var K=-this.view.getState(q[F]);null!=K&&this.flipEdgePoints(q[F],A,(A?K.getCenterX():K.getCenterY())/this.view.scale-(A?K.origin.x:K.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(q[F]);null!=R&&this.flipChildren(q[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(q[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=function(q,A){var B=null;if(null!=q&&0<q.length){this.model.beginUpdate();-try{for(var F=0;F<q.length;F++){var K=this.model.getParent(q[F]);if(this.isTable(K)){var R=this.getCellGeometry(q[F]),Z=this.getCellGeometry(K);null!=R&&null!=Z&&(Z=Z.clone(),Z.height-=R.height,this.model.setGeometry(K,Z))}}var ja=this.selectParentAfterDelete?this.model.getParents(q):null;this.removeCells(q,A)}finally{this.model.endUpdate()}if(null!=ja)for(B=[],F=0;F<ja.length;F++)this.model.contains(ja[F])&&(this.model.isVertex(ja[F])||this.model.isEdge(ja[F]))&&B.push(ja[F])}return B};Graph.prototype.insertTableColumn=-function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,K=0;if(this.isTableCell(q)){var R=B.getParent(q);F=B.getParent(R);K=mxUtils.indexOf(B.getChildCells(R,!0),q)}else this.isTableRow(q)?F=B.getParent(q):q=B.getChildCells(F,!0)[0],A||(K=B.getChildCells(q,!0).length-1);var Z=B.getChildCells(F,!0),ja=Graph.minTableColumnWidth;for(q=0;q<Z.length;q++){var fa=B.getChildCells(Z[q],!0)[K],ka=B.cloneCell(fa,!1);null==ka&&(ka=this.createVertex());var va=this.getCellGeometry(ka);ka.value=null;ka.style=-mxUtils.setStyle(mxUtils.setStyle(ka.style,"rowspan",null),"colspan",null);if(null!=va){null!=va.alternateBounds&&(va.width=va.alternateBounds.width,va.height=va.alternateBounds.height,va.alternateBounds=null);ja=va.width;var Ma=this.getCellGeometry(Z[q]);null!=Ma&&(va.height=Ma.height)}B.add(Z[q],ka,K+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=ja,B.setGeometry(F,Na))}finally{B.endUpdate()}};Graph.prototype.deleteLane=function(q){var A=this.getModel();A.beginUpdate();-try{var B=null;B="stackLayout"==this.getCurrentCellStyle(q).childLayout?q:A.getParent(q);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==q&&(q=F[F.length-1]),A.remove(q))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(q).childLayout){F=q;var K=B.getChildCells(F,!0);q=K[A?0:K.length-1]}else F=B.getParent(q);var R=F.getIndex(q);q=B.cloneCell(q,!1);q.value=null;B.add(F,q,R+(A?0:1))}finally{B.endUpdate()}};-Graph.prototype.insertTableRow=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,K=q;if(this.isTableCell(q))K=B.getParent(q),F=B.getParent(K);else if(this.isTableRow(q))F=B.getParent(q);else{var R=B.getChildCells(F,!0);K=R[A?0:R.length-1]}var Z=B.getChildCells(K,!0),ja=F.getIndex(K);K=B.cloneCell(K,!1);K.value=null;var fa=this.getCellGeometry(K);if(null!=fa){for(R=0;R<Z.length;R++){q=B.cloneCell(Z[R],!1);q.value=null;q.style=mxUtils.setStyle(mxUtils.setStyle(q.style,"rowspan",null),-"colspan",null);var ka=this.getCellGeometry(q);null!=ka&&(null!=ka.alternateBounds&&(ka.width=ka.alternateBounds.width,ka.height=ka.alternateBounds.height,ka.alternateBounds=null),ka.height=fa.height);K.insert(q)}B.add(F,K,ja+(A?0:1));var va=this.getCellGeometry(F);null!=va&&(va=va.clone(),va.height+=fa.height,B.setGeometry(F,va))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(F=A.getParent(q));this.isTableRow(F)&&-(B=A.getParent(F));var K=A.getChildCells(B,!0);if(0==K.length)A.remove(B);else{this.isTableRow(F)||(F=K[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var Z=R.length-1;this.isTableCell(q)&&(Z=mxUtils.indexOf(R,q));for(F=q=0;F<K.length;F++){var ja=A.getChildCells(K[F],!0)[Z];A.remove(ja);var fa=this.getCellGeometry(ja);null!=fa&&(q=Math.max(q,fa.width))}var ka=this.getCellGeometry(B);null!=ka&&(ka=ka.clone(),ka.width-=q,A.setGeometry(B,ka))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=-function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(q=F=A.getParent(q));this.isTableRow(q)&&(B=A.getParent(F));var K=A.getChildCells(B,!0);if(1>=K.length)A.remove(B);else{this.isTableRow(F)||(F=K[K.length-1]);A.remove(F);q=0;var R=this.getCellGeometry(F);null!=R&&(q=R.height);var Z=this.getCellGeometry(B);null!=Z&&(Z=Z.clone(),Z.height-=q,A.setGeometry(B,Z))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(q,A){for(var B=q.tBodies[0],F=B.rows[0].cells,-K=q=0;K<F.length;K++){var R=F[K].getAttribute("colspan");q+=null!=R?parseInt(R):1}A=B.insertRow(A);for(K=0;K<q;K++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(q,A){q.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(q,A){var B=q.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var K=document.createElement("th");B.rows[F].appendChild(K);mxUtils.br(K)}q=q.tBodies[0];for(B=0;B<q.rows.length;B++)F=q.rows[B].insertCell(A),mxUtils.br(F);return q.rows[0].cells[0<=+document.selection)&&"Control"!=A.type&&(q=A.createRange(),q.collapse(!0),B=A.createRange(),B.setEndPoint("StartToStart",q),B.select())};Graph.prototype.flipEdgePoints=function(q,A,B){var F=this.getCellGeometry(q);if(null!=F){F=F.clone();if(null!=F.points)for(var L=0;L<F.points.length;L++)A?F.points[L].x=B+(B-F.points[L].x):F.points[L].y=B+(B-F.points[L].y);L=function(R){null!=R&&(A?R.x=B+(B-R.x):R.y=B+(B-R.y))};L(F.getTerminalPoint(!0));L(F.getTerminalPoint(!1));this.model.setGeometry(q,F)}};Graph.prototype.flipChildren=+function(q,A,B){this.model.beginUpdate();try{for(var F=this.model.getChildCount(q),L=0;L<F;L++){var R=this.model.getChildAt(q,L);if(this.model.isEdge(R))this.flipEdgePoints(R,A,B);else{var Z=this.getCellGeometry(R);null!=Z&&(Z=Z.clone(),A?Z.x=B+(B-Z.x-Z.width):Z.y=B+(B-Z.y-Z.height),this.model.setGeometry(R,Z))}}}finally{this.model.endUpdate()}};Graph.prototype.flipCells=function(q,A){this.model.beginUpdate();try{q=this.model.getTopmostCells(q);for(var B=[],F=0;F<q.length;F++)if(this.model.isEdge(q[F])){var L=+this.view.getState(q[F]);null!=L&&this.flipEdgePoints(q[F],A,(A?L.getCenterX():L.getCenterY())/this.view.scale-(A?L.origin.x:L.origin.y)-(A?this.view.translate.x:this.view.translate.y))}else{var R=this.getCellGeometry(q[F]);null!=R&&this.flipChildren(q[F],A,A?R.getCenterX()-R.x:R.getCenterY()-R.y);B.push(q[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,B)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=function(q,A){var B=null;if(null!=q&&0<q.length){this.model.beginUpdate();+try{for(var F=0;F<q.length;F++){var L=this.model.getParent(q[F]);if(this.isTable(L)){var R=this.getCellGeometry(q[F]),Z=this.getCellGeometry(L);null!=R&&null!=Z&&(Z=Z.clone(),Z.height-=R.height,this.model.setGeometry(L,Z))}}var ja=this.selectParentAfterDelete?this.model.getParents(q):null;this.removeCells(q,A)}finally{this.model.endUpdate()}if(null!=ja)for(B=[],F=0;F<ja.length;F++)this.model.contains(ja[F])&&(this.model.isVertex(ja[F])||this.model.isEdge(ja[F]))&&B.push(ja[F])}return B};Graph.prototype.insertTableColumn=+function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,L=0;if(this.isTableCell(q)){var R=B.getParent(q);F=B.getParent(R);L=mxUtils.indexOf(B.getChildCells(R,!0),q)}else this.isTableRow(q)?F=B.getParent(q):q=B.getChildCells(F,!0)[0],A||(L=B.getChildCells(q,!0).length-1);var Z=B.getChildCells(F,!0),ja=Graph.minTableColumnWidth;for(q=0;q<Z.length;q++){var fa=B.getChildCells(Z[q],!0)[L],ka=B.cloneCell(fa,!1);null==ka&&(ka=this.createVertex());var va=this.getCellGeometry(ka);ka.value=null;ka.style=+mxUtils.setStyle(mxUtils.setStyle(ka.style,"rowspan",null),"colspan",null);if(null!=va){null!=va.alternateBounds&&(va.width=va.alternateBounds.width,va.height=va.alternateBounds.height,va.alternateBounds=null);ja=va.width;var Ma=this.getCellGeometry(Z[q]);null!=Ma&&(va.height=Ma.height)}B.add(Z[q],ka,L+(A?0:1))}var Na=this.getCellGeometry(F);null!=Na&&(Na=Na.clone(),Na.width+=ja,B.setGeometry(F,Na))}finally{B.endUpdate()}};Graph.prototype.deleteLane=function(q){var A=this.getModel();A.beginUpdate();+try{var B=null;B="stackLayout"==this.getCurrentCellStyle(q).childLayout?q:A.getParent(q);var F=A.getChildCells(B,!0);0==F.length?A.remove(B):(B==q&&(q=F[F.length-1]),A.remove(q))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(q).childLayout){F=q;var L=B.getChildCells(F,!0);q=L[A?0:L.length-1]}else F=B.getParent(q);var R=F.getIndex(q);q=B.cloneCell(q,!1);q.value=null;B.add(F,q,R+(A?0:1))}finally{B.endUpdate()}};+Graph.prototype.insertTableRow=function(q,A){var B=this.getModel();B.beginUpdate();try{var F=q,L=q;if(this.isTableCell(q))L=B.getParent(q),F=B.getParent(L);else if(this.isTableRow(q))F=B.getParent(q);else{var R=B.getChildCells(F,!0);L=R[A?0:R.length-1]}var Z=B.getChildCells(L,!0),ja=F.getIndex(L);L=B.cloneCell(L,!1);L.value=null;var fa=this.getCellGeometry(L);if(null!=fa){for(R=0;R<Z.length;R++){q=B.cloneCell(Z[R],!1);q.value=null;q.style=mxUtils.setStyle(mxUtils.setStyle(q.style,"rowspan",null),+"colspan",null);var ka=this.getCellGeometry(q);null!=ka&&(null!=ka.alternateBounds&&(ka.width=ka.alternateBounds.width,ka.height=ka.alternateBounds.height,ka.alternateBounds=null),ka.height=fa.height);L.insert(q)}B.add(F,L,ja+(A?0:1));var va=this.getCellGeometry(F);null!=va&&(va=va.clone(),va.height+=fa.height,B.setGeometry(F,va))}}finally{B.endUpdate()}};Graph.prototype.deleteTableColumn=function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(F=A.getParent(q));this.isTableRow(F)&&+(B=A.getParent(F));var L=A.getChildCells(B,!0);if(0==L.length)A.remove(B);else{this.isTableRow(F)||(F=L[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(B);else{var Z=R.length-1;this.isTableCell(q)&&(Z=mxUtils.indexOf(R,q));for(F=q=0;F<L.length;F++){var ja=A.getChildCells(L[F],!0)[Z];A.remove(ja);var fa=this.getCellGeometry(ja);null!=fa&&(q=Math.max(q,fa.width))}var ka=this.getCellGeometry(B);null!=ka&&(ka=ka.clone(),ka.width-=q,A.setGeometry(B,ka))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=+function(q){var A=this.getModel();A.beginUpdate();try{var B=q,F=q;this.isTableCell(q)&&(q=F=A.getParent(q));this.isTableRow(q)&&(B=A.getParent(F));var L=A.getChildCells(B,!0);if(1>=L.length)A.remove(B);else{this.isTableRow(F)||(F=L[L.length-1]);A.remove(F);q=0;var R=this.getCellGeometry(F);null!=R&&(q=R.height);var Z=this.getCellGeometry(B);null!=Z&&(Z=Z.clone(),Z.height-=q,A.setGeometry(B,Z))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(q,A){for(var B=q.tBodies[0],F=B.rows[0].cells,+L=q=0;L<F.length;L++){var R=F[L].getAttribute("colspan");q+=null!=R?parseInt(R):1}A=B.insertRow(A);for(L=0;L<q;L++)mxUtils.br(A.insertCell(-1));return A.cells[0]};Graph.prototype.deleteRow=function(q,A){q.tBodies[0].deleteRow(A)};Graph.prototype.insertColumn=function(q,A){var B=q.tHead;if(null!=B)for(var F=0;F<B.rows.length;F++){var L=document.createElement("th");B.rows[F].appendChild(L);mxUtils.br(L)}q=q.tBodies[0];for(B=0;B<q.rows.length;B++)F=q.rows[B].insertCell(A),mxUtils.br(F);return q.rows[0].cells[0<=A?A:q.rows[0].cells.length-1]};Graph.prototype.deleteColumn=function(q,A){if(0<=A){q=q.tBodies[0].rows;for(var B=0;B<q.length;B++)q[B].cells.length>A&&q[B].deleteCell(A)}};Graph.prototype.pasteHtmlAtCaret=function(q){if(window.getSelection){var A=window.getSelection();if(A.getRangeAt&&A.rangeCount){A=A.getRangeAt(0);A.deleteContents();var B=document.createElement("div");B.innerHTML=q;q=document.createDocumentFragment();for(var F;F=B.firstChild;)lastNode=q.appendChild(F);A.insertNode(q)}}else(A=document.selection)&&-"Control"!=A.type&&A.createRange().pasteHTML(q)};Graph.prototype.createLinkForHint=function(q,A,B){function F(R,Z){R.length>Z&&(R=R.substring(0,Math.round(Z/2))+"..."+R.substring(R.length-Math.round(Z/4)));return R}q=null!=q?q:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(q)?this.getLinkTitle(q):q;var K=document.createElement("a");K.setAttribute("rel",this.linkRelation);K.setAttribute("href",this.getAbsoluteUrl(q));K.setAttribute("title",F(this.isCustomLink(q)?this.getLinkTitle(q):-q,80));null!=this.linkTarget&&K.setAttribute("target",this.linkTarget);mxUtils.write(K,F(A,40));this.isCustomLink(q)&&mxEvent.addListener(K,"click",mxUtils.bind(this,function(R){this.customLinkClicked(q,B);mxEvent.consume(R)}));return K};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(R,Z){this.popupMenuHandler.hideMenu()});var q=this.updateMouseEvent;this.updateMouseEvent=-function(R){R=q.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var Z=this.getCellAt(R.graphX,R.graphY);null!=Z&&this.isSwimlane(Z)&&this.hitsSwimlaneContent(Z,R.graphX,R.graphY)||(R.state=this.view.getState(Z),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return R};var A=!1,B=!1,F=!1,K=this.fireMouseEvent;this.fireMouseEvent=function(R,-Z,ja){R==mxEvent.MOUSE_DOWN&&(Z=this.updateMouseEvent(Z),A=this.isCellSelected(Z.getCell()),B=this.isSelectionEmpty(),F=this.popupMenuHandler.isMenuShowing());K.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(R,Z){if(null!=this.freehand&&!this.freehand.isDrawing()){var ja=mxEvent.isMouseEvent(Z.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==Z.getState()||!Z.isSource(Z.getState().control))&&(this.popupMenuHandler.popupTrigger||+"Control"!=A.type&&A.createRange().pasteHTML(q)};Graph.prototype.createLinkForHint=function(q,A,B){function F(R,Z){R.length>Z&&(R=R.substring(0,Math.round(Z/2))+"..."+R.substring(R.length-Math.round(Z/4)));return R}q=null!=q?q:"javascript:void(0);";if(null==A||0==A.length)A=this.isCustomLink(q)?this.getLinkTitle(q):q;var L=document.createElement("a");L.setAttribute("rel",this.linkRelation);L.setAttribute("href",this.getAbsoluteUrl(q));L.setAttribute("title",F(this.isCustomLink(q)?this.getLinkTitle(q):+q,80));null!=this.linkTarget&&L.setAttribute("target",this.linkTarget);mxUtils.write(L,F(A,40));this.isCustomLink(q)&&mxEvent.addListener(L,"click",mxUtils.bind(this,function(R){this.customLinkClicked(q,B);mxEvent.consume(R)}));return L};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(R,Z){this.popupMenuHandler.hideMenu()});var q=this.updateMouseEvent;this.updateMouseEvent=+function(R){R=q.apply(this,arguments);if(mxEvent.isTouchEvent(R.getEvent())&&null==R.getState()){var Z=this.getCellAt(R.graphX,R.graphY);null!=Z&&this.isSwimlane(Z)&&this.hitsSwimlaneContent(Z,R.graphX,R.graphY)||(R.state=this.view.getState(Z),null!=R.state&&null!=R.state.shape&&(this.container.style.cursor=R.state.shape.node.style.cursor))}null==R.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return R};var A=!1,B=!1,F=!1,L=this.fireMouseEvent;this.fireMouseEvent=function(R,+Z,ja){R==mxEvent.MOUSE_DOWN&&(Z=this.updateMouseEvent(Z),A=this.isCellSelected(Z.getCell()),B=this.isSelectionEmpty(),F=this.popupMenuHandler.isMenuShowing());L.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(R,Z){if(null!=this.freehand&&!this.freehand.isDrawing()){var ja=mxEvent.isMouseEvent(Z.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==Z.getState()||!Z.isSource(Z.getState().control))&&(this.popupMenuHandler.popupTrigger||!F&&!ja&&(B&&null==Z.getCell()&&this.isSelectionEmpty()||A&&this.isCellSelected(Z.getCell())));ja=!A||ja?null:mxUtils.bind(this,function(fa){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()&&this.isTouchPopupMenuEnabled()){var ka=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(Z.getX()+ka.x+1,Z.getY()+ka.y+1,fa,Z.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[R,Z,ja])}})};Graph.prototype.isTouchPopupMenuEnabled=function(){return!0};mxCellEditor.prototype.isContentEditing=function(){var q=this.graph.view.getState(this.editingCell);return null!=q&&1==q.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var q="";window.getSelection?q=window.getSelection():document.getSelection?q=document.getSelection():document.selection&&(q=document.selection.createRange().text);return""!=-q};mxCellEditor.prototype.insertTab=function(q){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);q=Graph.createTabNode(q);B.insertNode(q);B.setStartAfter(q);B.setEndAfter(q);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(q,A){var B=this.graph.getView().getState(this.editingCell);if(null!=B){B=mxUtils.getValue(B.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=B&&"vertical-"==B.substring(0,9),K=null!=-A&&mxEvent.isShiftDown(A);if(K||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(Z){K||F||window.getSelection().containsNode(Z,!0)?(Z.removeAttribute("align"),Z.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(q)}F||document.execCommand("justify"+q.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var q=window.getSelection();if(q.getRangeAt&&q.rangeCount){for(var A=+q};mxCellEditor.prototype.insertTab=function(q){var A=this.textarea.ownerDocument.defaultView.getSelection(),B=A.getRangeAt(0);q=Graph.createTabNode(q);B.insertNode(q);B.setStartAfter(q);B.setEndAfter(q);A.removeAllRanges();A.addRange(B)};mxCellEditor.prototype.alignText=function(q,A){var B=this.graph.getView().getState(this.editingCell);if(null!=B){B=mxUtils.getValue(B.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=B&&"vertical-"==B.substring(0,9),L=null!=+A&&mxEvent.isShiftDown(A);if(L||null!=window.getSelection&&null!=window.getSelection().containsNode){var R=!0;this.graph.processElements(this.textarea,function(Z){L||F||window.getSelection().containsNode(Z,!0)?(Z.removeAttribute("align"),Z.style.textAlign=null):R=!1});(R||F)&&this.graph.cellEditor.setAlign(q)}F||document.execCommand("justify"+q.toLowerCase(),!1,null)}};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var q=window.getSelection();if(q.getRangeAt&&q.rangeCount){for(var A=[],B=0,F=q.rangeCount;B<F;++B)A.push(q.getRangeAt(B));return A}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=function(q){try{if(q)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var A=0,B=q.length;A<B;++A)sel.addRange(q[A])}else document.selection&&q.select&&q.select()}catch(F){}};var G=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(q){null!=q.text&&(q.text.replaceLinefeeds="0"!=mxUtils.getValue(q.style,"nl2Br","1"));G.apply(this,arguments)};var J=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(q,A){this.isKeepFocusEvent(q)||!mxEvent.isAltDown(q.getEvent())?J.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(q){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var M=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(q,A){q=this.graph.getStartEditingCell(q,A);M.apply(this,arguments);var B=this.graph.view.getState(q);this.textarea.className=null!=B&&1==B.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.textarea.style.colorScheme="none"==this.graph.getAdaptiveColors()?"light":"";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(q)};mxCellEditor.prototype.toggleViewMode=function(){var q=this.graph.view.getState(this.editingCell);if(null!=q){var A=null!=q&&"0"!=mxUtils.getValue(q.style,"nl2Br","1"),B=this.saveSelection();if(this.codeViewMode){Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);ja=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<ja.length&&"\n"==ja.charAt(ja.length-1)&&(ja=ja.substring(0,ja.length-1));ja=Graph.sanitizeHtml(A?ja.replace(/\n/g,"<br/>"):ja,!0);this.textarea.className="mxCellEditor geContentEditable";fa=mxUtils.getValue(q.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);-A=mxUtils.getValue(q.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),K=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,Z=[];(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&Z.push("underline");-(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&Z.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(fa)+"px";this.textarea.style.textDecoration=Z.join(" ");this.textarea.style.fontWeight=K?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=+A=mxUtils.getValue(q.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var F=mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),L=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,R=(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,Z=[];(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&Z.push("underline");+(mxUtils.getValue(q.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&Z.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(fa)+"px";this.textarea.style.textDecoration=Z.join(" ");this.textarea.style.fontWeight=L?"bold":"normal";this.textarea.style.fontStyle=R?"italic":"";this.textarea.style.fontFamily=A;this.textarea.style.textAlign=F;this.textarea.style.padding="0px";this.textarea.innerHTML!=ja&&(this.textarea.innerHTML=ja,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors());this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerText="");Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);var ja=mxUtils.htmlEntities(this.textarea.innerHTML);8!=document.documentMode&&(ja=mxUtils.replaceTrailingNewlines(ja,"<div><br></div>"));ja=Graph.sanitizeHtml(A?ja.replace(/\n/g,"").replace(/<br\s*.?>/g,"<br>"):ja,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var fa=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(fa*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(fa)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=ja&&(this.textarea.innerHTML=ja);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=@@ -2921,40 +2922,40 @@ mxUtils.getValue(q.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDD"px",this.bounds.height=parseInt(this.textarea.style.height)*B);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/B)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*B);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+B+","+B+")")}else this.textarea.style.height="",this.textarea.style.overflow="",Q.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(q,A){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var B=this.graph.getEditingValue(q.cell,A);"1"==mxUtils.getValue(q.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(B,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=function(q,A){mxCellEditorSetEditingValue.apply(this,arguments);"1"==mxUtils.getValue(q.style,"html","0")&&Graph.addLightDarkColors(this.textarea,Graph.backupStyleAttribute,"simple"==this.graph.getAdaptiveColors())};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(q){if("0"==mxUtils.getValue(q.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);Graph.removeLightDarkColors(this.textarea,Graph.backupStyleAttribute);-var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(q.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var L=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(q){this.codeViewMode&&this.toggleViewMode();L.apply(this,arguments);this.focusContainer()};+var A=Graph.sanitizeHtml(this.textarea.innerHTML,!0);"1"==mxUtils.getValue(q.style,"nl2Br","1")?(A=A.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"),0<A.length&&("<br/>"==A.substring(A.length-5)||"<br>"==A.substring(A.length-4))&&(A=A.substring(0,A.lastIndexOf("<br"))+"<div><br/></div>")):A=A.replace(/\r\n/g,"").replace(/\n/g,"");return A};var K=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(q){this.codeViewMode&&this.toggleViewMode();K.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(q){}};var W=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(q,A){this.graph.getModel().beginUpdate();try{W.apply(this,arguments),""==A&&this.graph.isCellDeletable(q.cell)&&0==this.graph.model.getChildCount(q.cell)&&this.graph.isTransparentState(q)&&this.graph.removeCells([q.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(q){q=mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getBorderColor=function(q){q=mxUtils.getValue(q.style,mxConstants.STYLE_LABEL_BORDERCOLOR,null);q==mxConstants.NONE&&(q=null);return q};mxCellEditor.prototype.getMinimumSize=function(q){var A=this.graph.getView().scale;return new mxRectangle(0,0,null==q.text?30:q.text.size*A+20,30)};mxGraphHandlerIsValidDropTarget=mxGraphHandler.prototype.isValidDropTarget;mxGraphHandler.prototype.isValidDropTarget=function(q,A){return mxGraphHandlerIsValidDropTarget.apply(this,arguments)&&!mxEvent.isAltDown(A.getEvent)};mxGraphView.prototype.formatUnitText=function(q){return q?b(q,this.unit):q};mxGraphHandler.prototype.updateHint=function(q){if(null!=this.pBounds&&(null!=this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var A=this.graph.view.translate,B=this.graph.view.scale;q=this.roundLength((this.bounds.x+this.currentDx)/B-A.x);A=this.roundLength((this.bounds.y+this.currentDy)/B-A.y);B=this.graph.view.unit;this.hint.innerHTML=b(q,B)+", "+b(A,B);this.hint.style.left=this.pBounds.x+this.currentDx+Math.round((this.pBounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.pBounds.y+this.currentDy+this.pBounds.height+Editor.hintOffset+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(null!=this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint),this.hint=null)};var X=mxStackLayout.prototype.resizeCell;mxStackLayout.prototype.resizeCell=-function(q,A){X.apply(this,arguments);var B=this.graph.getCellStyle(q);if(null==B.childLayout){var F=this.graph.model.getParent(q),K=null!=F?this.graph.getCellGeometry(F):null;if(null!=K&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var Z=this.graph.getActualStartSize(F);K=K.clone();B?K.height=A.height+Z.y+Z.height+2*R:K.width=A.width+Z.x+Z.width+2*R;-this.graph.model.setGeometry(F,K)}}};var T=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function q(ja){B.get(ja)||(B.put(ja,!0),K.push(ja))}for(var A=T.apply(this,arguments),B=new mxDictionary,F=this.graph.model,K=[],R=0;R<A.length;R++){var Z=A[R];this.graph.isTableCell(Z)?q(F.getParent(F.getParent(Z))):this.graph.isTableRow(Z)&&q(F.getParent(Z));q(Z)}return K};var N=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=+function(q,A){X.apply(this,arguments);var B=this.graph.getCellStyle(q);if(null==B.childLayout){var F=this.graph.model.getParent(q),L=null!=F?this.graph.getCellGeometry(F):null;if(null!=L&&(B=this.graph.getCellStyle(F),"stackLayout"==B.childLayout)){var R=parseFloat(mxUtils.getValue(B,"stackBorder",mxStackLayout.prototype.border));B="1"==mxUtils.getValue(B,"horizontalStack","1");var Z=this.graph.getActualStartSize(F);L=L.clone();B?L.height=A.height+Z.y+Z.height+2*R:L.width=A.width+Z.x+Z.width+2*R;+this.graph.model.setGeometry(F,L)}}};var T=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){function q(ja){B.get(ja)||(B.put(ja,!0),L.push(ja))}for(var A=T.apply(this,arguments),B=new mxDictionary,F=this.graph.model,L=[],R=0;R<A.length;R++){var Z=A[R];this.graph.isTableCell(Z)?q(F.getParent(F.getParent(Z))):this.graph.isTableRow(Z)&&q(F.getParent(Z));q(Z)}return L};var N=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=function(q){return N.apply(this,arguments)&&!mxEvent.isControlDown(q.getEvent())&&!mxEvent.isShiftDown(q.getEvent())};var ca=mxVertexHandler.prototype.isGhostPreview;mxVertexHandler.prototype.isGhostPreview=function(){return ca.apply(this,arguments)&&!this.graph.isTable(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isSwimlane(this.state.cell)};var H=mxVertexHandler.prototype.createParentHighlightShape;mxVertexHandler.prototype.createParentHighlightShape=function(q){var A=H.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};var S=mxEdgeHandler.prototype.createParentHighlightShape;mxEdgeHandler.prototype.createParentHighlightShape=function(q){var A=S.apply(this,arguments);A.stroke="#C0C0C0";A.strokewidth=1;return A};mxVertexHandler.prototype.rotationHandleVSpacing=-12;mxVertexHandler.prototype.getRotationHandlePosition=function(){var q=this.getHandlePadding();return new mxPoint(this.bounds.x+this.bounds.width-this.rotationHandleVSpacing+q.x/2,this.bounds.y+this.rotationHandleVSpacing-q.y/2)};mxVertexHandler.prototype.isRecursiveResize=function(q,A){return this.graph.isRecursiveVertexResize(q)&&!mxEvent.isAltDown(A.getEvent())};mxVertexHandler.prototype.isCenteredEvent=function(q,A){return mxEvent.isControlDown(A.getEvent())||mxEvent.isMetaDown(A.getEvent())};var ea=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return ea.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var la=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return la.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var O=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(q){return q.tableHandle||O.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var q=0;this.graph.isTableRow(this.state.cell)?q=1:this.graph.isTableCell(this.state.cell)&&(q=2);return q};var V=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return V.apply(this,arguments).grow(-this.getSelectionBorderInset())};var Y=null,ha=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==Y&&(Y=mxCellRenderer.defaultShapes.tableLine);var q=ha.apply(this,arguments);if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)){var A=function(Ga,wa,ua){for(var Ta=[],Ra=0;Ra<Ga.length;Ra++){var Oa=Ga[Ra];Ta.push(null==Oa?null:new mxPoint((fa+Oa.x+wa)*R,(ka+Oa.y+ua)*-R))}return Ta},B=this,F=this.graph,K=F.model,R=F.view.scale,Z=this.state,ja=this.selectionBorder,fa=this.state.origin.x+F.view.translate.x,ka=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var va=F.view.getCellStates(K.getChildCells(this.state.cell,!0));if(0<va.length){var Ma=K.getChildCells(va[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),Aa=F.getTableLines(this.state.cell,!0,!1);for(K=0;K<va.length;K++)mxUtils.bind(this,function(Ga){var wa=va[Ga],ua=null;if(F.isCellMovable(wa.cell)){ua=+R))}return Ta},B=this,F=this.graph,L=F.model,R=F.view.scale,Z=this.state,ja=this.selectionBorder,fa=this.state.origin.x+F.view.translate.x,ka=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var va=F.view.getCellStates(L.getChildCells(this.state.cell,!0));if(0<va.length){var Ma=L.getChildCells(va[0].cell,!0),Na=F.getTableLines(this.state.cell,!1,!0),Aa=F.getTableLines(this.state.cell,!0,!1);for(L=0;L<va.length;L++)mxUtils.bind(this,function(Ga){var wa=va[Ga],ua=null;if(F.isCellMovable(wa.cell)){ua=Ga<va.length-1?va[Ga+1]:null;ua=null!=ua?F.getCellGeometry(ua.cell):null;var Ta=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Aa[Ga]?new Y(Aa[Ga],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);ua.isDashed=ja.isDashed;ua.svgStrokeTolerance++;ua=new mxHandle(wa,"row-resize",null,ua);ua.tableHandle=!0;var Ra=0;ua.shape.node.parentNode.insertBefore(ua.shape.node,ua.shape.node.parentNode.firstChild);ua.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Ra?mxConstants.NONE:ja.stroke;if(this.shape.constructor==Y)this.shape.line=A(Aa[Ga],0,Ra),this.shape.updateBoundsFromLine();else{var Sa=F.getActualStartSize(Z.cell,!0);this.shape.bounds.height=1;this.shape.bounds.y=this.state.y+this.state.height+Ra*R;this.shape.bounds.x=Z.x+(Ga==va.length-1?0:Sa.x*R);this.shape.bounds.width=Z.width-(Ga==va.length-1?0:Sa.width+Sa.x+R)}this.shape.redraw()}};var Oa=!1;ua.setPosition=function(Sa,Xa,kb){Ra=Math.max(Graph.minTableRowHeight-Sa.height,Xa.y-Sa.y-Sa.height);-Oa=mxEvent.isShiftDown(kb.getEvent());null!=Ta&&Oa&&(Ra=Math.min(Ra,Ta.height-Graph.minTableRowHeight))};ua.execute=function(Sa){if(0!=Ra)F.setTableRowHeight(this.state.cell,Ra,!Oa);else if(!B.blockDelayedSelection){var Xa=F.getCellAt(Sa.getGraphX(),Sa.getGraphY())||Z.cell;F.graphHandler.selectCellForEvent(Xa,Sa)}Ra=0};ua.reset=function(){Ra=0}}q.push(ua)})(K);for(K=0;K<Ma.length;K++)mxUtils.bind(this,function(Ga){var wa=F.view.getState(Ma[Ga]),ua=F.getCellGeometry(Ma[Ga]),Ta=null!=ua.alternateBounds?+Oa=mxEvent.isShiftDown(kb.getEvent());null!=Ta&&Oa&&(Ra=Math.min(Ra,Ta.height-Graph.minTableRowHeight))};ua.execute=function(Sa){if(0!=Ra)F.setTableRowHeight(this.state.cell,Ra,!Oa);else if(!B.blockDelayedSelection){var Xa=F.getCellAt(Sa.getGraphX(),Sa.getGraphY())||Z.cell;F.graphHandler.selectCellForEvent(Xa,Sa)}Ra=0};ua.reset=function(){Ra=0}}q.push(ua)})(L);for(L=0;L<Ma.length;L++)mxUtils.bind(this,function(Ga){var wa=F.view.getState(Ma[Ga]),ua=F.getCellGeometry(Ma[Ga]),Ta=null!=ua.alternateBounds?ua.alternateBounds:ua;null==wa&&(wa=new mxCellState(F.view,Ma[Ga],F.getCellStyle(Ma[Ga])),wa.x=Z.x+ua.x*R,wa.y=Z.y+ua.y*R,wa.width=Ta.width*R,wa.height=Ta.height*R,wa.updateCachedBounds());ua=Ga<Ma.length-1?Ma[Ga+1]:null;ua=null!=ua?F.getCellGeometry(ua):null;var Ra=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Na[Ga]?new Y(Na[Ga],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);ua.isDashed=ja.isDashed;ua.svgStrokeTolerance++;wa=new mxHandle(wa,"col-resize",null,ua);wa.tableHandle=!0;var Oa=0;wa.shape.node.parentNode.insertBefore(wa.shape.node,wa.shape.node.parentNode.firstChild);wa.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Oa?mxConstants.NONE:ja.stroke;if(this.shape.constructor==Y)this.shape.line=A(Na[Ga],Oa,0),this.shape.updateBoundsFromLine();else{var Xa=F.getActualStartSize(Z.cell,!0);this.shape.bounds.width=1;this.shape.bounds.x=this.state.x+(Ta.width+Oa)*R;this.shape.bounds.y=Z.y+(Ga==Ma.length-1?0:Xa.y*R);this.shape.bounds.height=Z.height-(Ga==Ma.length-1?0:(Xa.height+Xa.y)*R)}this.shape.redraw()}};var Sa=!1;wa.setPosition=function(Xa,kb,tb){Oa=Math.max(Graph.minTableColumnWidth-Ta.width,kb.x-Xa.x-Ta.width);Sa=mxEvent.isShiftDown(tb.getEvent());null==Ra||Sa||(Oa=Math.min(Oa,Ra.width-Graph.minTableColumnWidth))};wa.execute=function(Xa){if(0!=Oa)F.setTableColumnWidth(this.state.cell,Oa,Sa);else if(!B.blockDelayedSelection){var kb=F.getCellAt(Xa.getGraphX(),Xa.getGraphY())||Z.cell;F.graphHandler.selectCellForEvent(kb,Xa)}Oa=-0};wa.positionChanged=function(){};wa.reset=function(){Oa=0};q.push(wa)})(K)}}return null!=q?q.reverse():null};var ia=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(q){ia.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=q?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=+0};wa.positionChanged=function(){};wa.reset=function(){Oa=0};q.push(wa)})(L)}}return null!=q?q.reverse():null};var ia=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(q){ia.apply(this,arguments);if(null!=this.moveHandles)for(var A=0;A<this.moveHandles.length;A++)null!=this.moveHandles[A]&&(this.moveHandles[A].node.style.visibility=q?"":"hidden");if(null!=this.cornerHandles)for(A=0;A<this.cornerHandles.length;A++)this.cornerHandles[A].node.style.visibility=q?"":"hidden"};mxVertexHandler.prototype.isMoveHandlesVisible=function(){return this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)};mxVertexHandler.prototype.refreshMoveHandles=function(){var q=this.isMoveHandlesVisible();q&&null==this.moveHandles?this.moveHandles=this.createMoveHandles():q||null==this.moveHandles||this.destroyMoveHandles();if(q&&null==this.moveHandles){for(q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].parentNode.removeChild(this.moveHandles[q]);-this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var q=this.graph,A=q.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(K){if(null!=K&&A.isVertex(K.cell)&&q.isCellMovable(K.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=K;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());-R.node.style.cursor="move";mxEvent.addGestureListeners(R.node,mxUtils.bind(this,function(Z){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(Z)&&this.graph.isCellSelected(K.cell)||this.graph.selectCellForEvent(K.cell,Z);mxEvent.isPopupTrigger(Z)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(Z),mxEvent.getClientY(Z),this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(Z),-this.graph.isMouseDown=!0);mxEvent.consume(Z)}),null,mxUtils.bind(this,function(Z){mxEvent.isPopupTrigger(Z)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(Z),mxEvent.getClientY(Z),K.cell,Z),mxEvent.consume(Z))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].destroy();+this.moveHandles=null}};mxVertexHandler.prototype.createMoveHandles=function(){for(var q=this.graph,A=q.model,B=[],F=0;F<A.getChildCount(this.state.cell);F++)mxUtils.bind(this,function(L){if(null!=L&&A.isVertex(L.cell)&&q.isCellMovable(L.cell)){var R=new mxRectangle(0,0,this.rowHandleImage.width,this.rowHandleImage.height);R=new mxImageShape(R,this.rowHandleImage.src);R.rowState=L;R.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXEDHTML:mxConstants.DIALECT_SVG;R.init(this.graph.getView().getOverlayPane());+R.node.style.cursor="move";mxEvent.addGestureListeners(R.node,mxUtils.bind(this,function(Z){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(Z)&&this.graph.isCellSelected(L.cell)||this.graph.selectCellForEvent(L.cell,Z);mxEvent.isPopupTrigger(Z)||(this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(Z),mxEvent.getClientY(Z),this.graph.getSelectionCells()),this.graph.graphHandler.cellWasClicked=!0,this.graph.isMouseTrigger=mxEvent.isMouseEvent(Z),+this.graph.isMouseDown=!0);mxEvent.consume(Z)}),null,mxUtils.bind(this,function(Z){mxEvent.isPopupTrigger(Z)&&(this.graph.popupMenuHandler.popup(mxEvent.getClientX(Z),mxEvent.getClientY(Z),L.cell,Z),mxEvent.consume(Z))}));B.push(R)}else B.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return B};mxVertexHandler.prototype.destroyMoveHandles=function(){if(null!=this.moveHandles){for(var q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&this.moveHandles[q].destroy();this.moveHandles=null}};mxVertexHandler.prototype.destroyCornerHandles=function(){if(null!=this.cornerHandles){for(var q=0;q<this.cornerHandles.length;q++)null!=this.cornerHandles[q]&&null!=this.cornerHandles[q].node&&null!=this.cornerHandles[q].node.parentNode&&this.cornerHandles[q].node.parentNode.removeChild(this.cornerHandles[q].node);this.cornerHandles=null}};var ta=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){ta.apply(this,arguments);this.destroyMoveHandles();this.destroyCornerHandles();if(this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()&&this.graph.isCellMovable(this.state.cell)&&(this.graph.isTableCell(this.state.cell)||this.graph.isTableRow(this.state.cell))){this.cornerHandles=[];for(var q=0;4>q;q++){var A=new mxRectangleShape(new mxRectangle(0,0,6,6),"#ffffff",mxConstants.HANDLE_STROKECOLOR);A.dialect=mxConstants.DIALECT_SVG;A.init(this.graph.view.getOverlayPane());this.cornerHandles.push(A)}}this.graph.isTable(this.state.cell)&&this.graph.isCellMovable(this.state.cell)&&this.refreshMoveHandles();q=this.graph.getLinkForCell(this.state.cell);A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var aa=mxVertexHandler.prototype.getHandlePadding;mxVertexHandler.prototype.getHandlePadding=function(){var q=new mxPoint(0,0),A=this.tolerance,B=this.state.style.shape;null==mxCellRenderer.defaultShapes[B]&&mxStencilRegistry.getStencil(B);B=this.graph.isTable(this.state.cell)||-this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var F=0;F<this.customHandles.length;F++)if(null!=this.customHandles[F]&&null!=this.customHandles[F].shape&&null!=this.customHandles[F].shape.bounds){var K=this.customHandles[F].shape.bounds,R=K.getCenterX(),Z=K.getCenterY();if(Math.abs(this.state.x-R)<K.width/2||Math.abs(this.state.y-Z)<K.height/2||Math.abs(this.state.x+this.state.width-R)<K.width/2||Math.abs(this.state.y+this.state.height-Z)<K.height/2){B=+this.graph.cellEditor.getEditingCell()==this.state.cell;if(!B&&null!=this.customHandles)for(var F=0;F<this.customHandles.length;F++)if(null!=this.customHandles[F]&&null!=this.customHandles[F].shape&&null!=this.customHandles[F].shape.bounds){var L=this.customHandles[F].shape.bounds,R=L.getCenterX(),Z=L.getCenterY();if(Math.abs(this.state.x-R)<L.width/2||Math.abs(this.state.y-Z)<L.height/2||Math.abs(this.state.x+this.state.width-R)<L.width/2||Math.abs(this.state.y+this.state.height-Z)<L.height/2){B=!0;break}}B&&null!=this.sizers&&0<this.sizers.length&&null!=this.sizers[0]?(A/=2,this.graph.isTable(this.state.cell)&&(A+=7),q.x=this.sizers[0].bounds.width+A,q.y=this.sizers[0].bounds.height+A):q=aa.apply(this,arguments);return q};mxVertexHandler.prototype.updateHint=function(q){if(this.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));if(this.index==mxEvent.ROTATION_HANDLE)this.hint.innerHTML=this.currentAlpha+"°";else{q=this.state.view.scale;var A=this.state.view.unit;this.hint.innerHTML=b(this.roundLength(this.bounds.width/q),A)+" x "+b(this.roundLength(this.bounds.height/q),A)}q=mxUtils.getBoundingBox(this.bounds,null!=this.currentAlpha?this.currentAlpha:this.state.style[mxConstants.STYLE_ROTATION]||"0");null==q&&(q=this.bounds);this.hint.style.left=q.x+Math.round((q.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=q.y+q.height+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")}};mxVertexHandler.prototype.removeHint=function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var P=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){P.apply(this,arguments);var q=this.graph.getLinkForCell(this.state.cell),A=this.graph.getLinksForState(this.state);this.updateLinkHint(q,A)};var ba=mxEdgeHandler.prototype.mouseMove;mxEdgeHandler.prototype.mouseMove=function(q,A){ba.apply(this,arguments);null!=this.linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.graphHandler.first&&(this.linkHint.style.display="none")};var ma=mxEdgeHandler.prototype.mouseUp;mxEdgeHandler.prototype.mouseUp=function(q,A){ma.apply(this,arguments);null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="")};mxEdgeHandler.prototype.updateHint=function(q,A,B){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,-K=this.graph.view.scale,R=this.roundLength(A.x/K-F.x);F=this.roundLength(A.y/K-F.y);var Z=this.graph.view.unit;this.hint.innerHTML=b(R,Z)+", "+b(F,Z);this.hint.style.visibility="visible";null!=B&&(B.view.updateEdgeBounds(B),this.hint.innerHTML+=" ("+(Z==mxConstants.POINTS?Math.round(B.length/K):b(B.length/K,Z))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(B=this.constraintHandler.currentConstraint.point,+L=this.graph.view.scale,R=this.roundLength(A.x/L-F.x);F=this.roundLength(A.y/L-F.y);var Z=this.graph.view.unit;this.hint.innerHTML=b(R,Z)+", "+b(F,Z);this.hint.style.visibility="visible";null!=B&&(B.view.updateEdgeBounds(B),this.hint.innerHTML+=" ("+(Z==mxConstants.POINTS?Math.round(B.length/L):b(B.length/L,Z))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(B=this.constraintHandler.currentConstraint.point,this.hint.innerHTML="["+Math.round(100*B.x)+"%, "+Math.round(100*B.y)+"%]"):this.marker.hasValidState()&&(this.hint.style.visibility="hidden");this.hint.style.left=Math.round(q.getGraphX()-this.hint.clientWidth/2)+"px";this.hint.style.top=Math.max(q.getGraphY(),A.y)+Editor.hintOffset+"px";null!=this.linkHint&&(this.linkHint.style.display="none")};Graph.prototype.expandedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="50%" y1="0%" x2="50%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 2 4.5 L 7 4.5 z" stroke="#000"/>');Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'<defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="30%" style="stop-color:#f0f0f0;" /><stop offset="100%" style="stop-color:#AFB0B6;" /></linearGradient></defs><rect x="0" y="0" width="9" height="9" stroke="#8A94A5" fill="url(#grad1)" stroke-width="2"/><path d="M 4.5 2 L 4.5 7 M 2 4.5 L 7 4.5 z" stroke="#000"/>');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle=Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="5" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'<circle cx="9" cy="9" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/>');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'<path d="m 8 3 L 13 8 L 8 13 L 3 8 z" stroke="#fff" fill="#fca000"/>');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');@@ -2968,9 +2969,9 @@ HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.protfunction(q){return!mxEvent.isShiftDown(q.getEvent())};mxEdgeHandler.prototype.isCustomHandleEvent=function(q){return!mxEvent.isShiftDown(q.getEvent())};if(Graph.touchStyle){if(mxClient.IS_TOUCH||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)mxShape.prototype.svgStrokeTolerance=18,mxVertexHandler.prototype.tolerance=12,mxEdgeHandler.prototype.tolerance=12,Graph.prototype.tolerance=12,mxVertexHandler.prototype.rotationHandleVSpacing=-16,mxConstraintHandler.prototype.getTolerance=function(q){return mxEvent.isMouseEvent(q.getEvent())?4:this.graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return null==q.getState()&&!mxEvent.isMouseEvent(A)||mxEvent.isPopupTrigger(A)&&(null==q.getState()||mxEvent.isControlDown(A)||mxEvent.isShiftDown(A))}}else mxPanningHandler.prototype.isPanningTrigger=function(q){var A=q.getEvent();return mxEvent.isLeftMouseButton(A)&&(this.useLeftButtonForPanning&&null==q.getState()||mxEvent.isControlDown(A)&&!mxEvent.isShiftDown(A))||this.usePopupTrigger&&mxEvent.isPopupTrigger(A)};mxRubberband.prototype.isSpaceEvent=function(q){return this.graph.isEnabled()&&!this.graph.isCellLocked(this.graph.getDefaultParent())&&(mxEvent.isControlDown(q.getEvent())||mxEvent.isMetaDown(q.getEvent()))&&mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())};mxRubberband.prototype.cancelled=!1;mxRubberband.prototype.cancel=function(){this.isActive()&&(this.cancelled=!0,this.reset())};mxRubberband.prototype.mouseUp=function(q,A){if(this.cancelled)this.cancelled=!1,A.consume();else{var B=-null!=this.div&&"none"!=this.div.style.display,F=null,K=null,R=q=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,K=this.first.y,q=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-K)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(q=this.graph.snap(q),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(q)<this.graph.tolerance&&(q=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();-try{var Z=this.graph.getCellsBeyond(F,K,this.graph.getDefaultParent(),!0,!0);for(B=0;B<Z.length;B++)if(this.graph.isCellMovable(Z[B])){var ja=this.graph.view.getState(Z[B]),fa=this.graph.getCellGeometry(Z[B]);null!=ja&&null!=fa&&(fa=fa.clone(),fa.translate(q,R),this.graph.model.setGeometry(Z[B],fa))}}finally{this.graph.model.endUpdate()}}else Z=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(Z,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(q,A){if(!A.isConsumed()&&-null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);q=mxUtils.getOffset(this.graph.container);B.x-=q.x;B.y-=q.y;q=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-q,K=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(K)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(q,B),this.isSpaceEvent(A)?(q=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/+null!=this.div&&"none"!=this.div.style.display,F=null,L=null,R=q=null;null!=this.first&&null!=this.currentX&&null!=this.currentY&&(F=this.first.x,L=this.first.y,q=(this.currentX-F)/this.graph.view.scale,R=(this.currentY-L)/this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(q=this.graph.snap(q),R=this.graph.snap(R),this.graph.isGridEnabled()||(Math.abs(q)<this.graph.tolerance&&(q=0),Math.abs(R)<this.graph.tolerance&&(R=0))));this.reset();if(B){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();+try{var Z=this.graph.getCellsBeyond(F,L,this.graph.getDefaultParent(),!0,!0);for(B=0;B<Z.length;B++)if(this.graph.isCellMovable(Z[B])){var ja=this.graph.view.getState(Z[B]),fa=this.graph.getCellGeometry(Z[B]);null!=ja&&null!=fa&&(fa=fa.clone(),fa.translate(q,R),this.graph.model.setGeometry(Z[B],fa))}}finally{this.graph.model.endUpdate()}}else Z=new mxRectangle(this.x,this.y,this.width,this.height),this.graph.selectRegion(Z,A.getEvent());A.consume()}}};mxRubberband.prototype.mouseMove=function(q,A){if(!A.isConsumed()&&+null!=this.first){var B=mxUtils.getScrollOrigin(this.graph.container);q=mxUtils.getOffset(this.graph.container);B.x-=q.x;B.y-=q.y;q=A.getX()+B.x;B=A.getY()+B.y;var F=this.first.x-q,L=this.first.y-B,R=this.graph.tolerance;if(null!=this.div||Math.abs(F)>R||Math.abs(L)>R)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(q,B),this.isSpaceEvent(A)?(q=this.x+this.width,B=this.y+this.height,F=this.graph.view.scale,mxEvent.isAltDown(A.getEvent())||(this.width=this.graph.snap(this.width/F)*F,this.height=this.graph.snap(this.height/F)*F,this.graph.isGridEnabled()||(this.width<this.graph.tolerance&&(this.width=0),this.height<this.graph.tolerance&&(this.height=0)),this.x<this.first.x&&(this.x=q-this.width),this.y<this.first.y&&(this.y=B-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight+"px",this.div.style.borderWidth=0>=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Ja=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Ja.apply(this,arguments)};var na=(new Date).getTime(),ya=0,za=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(q,@@ -2979,16 +2980,16 @@ A,B,F){za.apply(this,arguments);B!=this.currentTerminalState?(na=(new Date).getTnull!=q&&null!=F?B?this.endTerminalHandleImage:this.terminalHandleImage:B?this.endHandleImage:this.handleImage;if(null!=B)return B=new mxImageShape(new mxRectangle(0,0,B.width,B.height),B.src),B.preserveImageAspect=!1,B;B=mxConstants.HANDLE_SIZE;this.preferHtml&&--B;return new mxRectangleShape(new mxRectangle(0,0,B,B),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Qa=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(q,A,B,F){F=A==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Qa.apply(this,arguments)};var Ia=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(q){if(null!=q&&1==q.length){var A=this.graph.getModel(),B=A.getParent(q[0]),F=this.graph.getCellGeometry(q[0]);if(A.isEdge(B)&&null!=F&&F.relative&&(A=this.graph.view.getState(q[0]),null!=A&&2>A.width&&2>A.height&&null!=A.text&&null!=A.text.boundingBox))return mxRectangle.fromRectangle(A.text.boundingBox)}return Ia.apply(this,arguments)};var Ha=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var q=Ha.apply(this,arguments),A=[],B=0;B<q.length;B++)"1"!=mxUtils.getValue(q[B].style,"part","0")&&A.push(q[B]);return A};var ra=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(q){var A=this.graph.getModel(),B=A.getParent(q.cell),F=this.graph.getCellGeometry(q.cell);return A.isEdge(B)&&null!=F&&F.relative&&2>q.width&&2>q.height&&null!=-q.text&&null!=q.text.boundingBox?(A=q.text.unrotatedBoundingBox||q.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ra.apply(this,arguments)};var Da=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(q,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),K=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==K||!K.relative||null==this.state||+q.text&&null!=q.text.boundingBox?(A=q.text.unrotatedBoundingBox||q.text.boundingBox,new mxRectangle(Math.round(A.x),Math.round(A.y),Math.round(A.width),Math.round(A.height))):ra.apply(this,arguments)};var Da=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(q,A){var B=this.graph.getModel(),F=B.getParent(this.state.cell),L=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!B.isEdge(F)||null==L||!L.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&Da.apply(this,arguments)};mxVertexHandler.prototype.rotateClick=function(){var q=mxUtils.getValue(this.state.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),A=mxUtils.getValue(this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.state.cell)&&q==mxConstants.NONE&&A==mxConstants.NONE?(q=mxUtils.mod(mxUtils.getValue(this.state.style,mxConstants.STYLE_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,q,[this.state.cell])):this.state.view.graph.turnShapes([this.state.cell])};var Va=mxVertexHandler.prototype.mouseMove;mxVertexHandler.prototype.mouseMove=function(q,A){Va.apply(this,arguments);null!=this.graph.graphHandler.first&&(null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display="none"),null!=this.linkHint&&"none"!=this.linkHint.style.display&&(this.linkHint.style.display="none"))};var Wa=mxVertexHandler.prototype.mouseUp;mxVertexHandler.prototype.mouseUp=function(q,A){Wa.apply(this,arguments);null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount()?"":"none");null!=this.linkHint&&"none"==this.linkHint.style.display&&1==this.graph.getSelectionCount()&&(this.linkHint.style.display="");this.blockDelayedSelection=null};mxVertexHandler.prototype.updateLinkHint=function(q,A){try{if(null==q&&(null==A||0==A.length))null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);else if(null!=q||null!=A&&0<A.length){var B=document.createElement("img");B.className="geAdaptiveAsset";B.setAttribute("src",Editor.editImage);B.setAttribute("title",mxResources.get("editLink"));B.setAttribute("width","14");B.setAttribute("height","14");B.style.paddingLeft="8px";B.style.marginLeft="auto";B.style.marginBottom="-1px";B.style.cursor="pointer";var F=B.cloneNode(!0);F.setAttribute("src",Editor.trashImage);F.setAttribute("title",mxResources.get("removeIt",[mxResources.get("link")]));-F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=q){var K=document.createElement("div");-K.style.display="flex";K.style.alignItems="center";K.appendChild(this.graph.createLinkForHint(q,null,this.state.cell));this.linkHint.appendChild(K);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);K.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(ja){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(ja)}));var Z=F.cloneNode(!0);K.appendChild(Z);mxEvent.addListener(Z,-"click",mxUtils.bind(this,function(ja){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(ja)}))}}if(null!=A)for(K=0;K<A.length;K++)mxUtils.bind(this,function(ja,fa){var ka=document.createElement("div");ka.style.display="flex";ka.style.alignItems="center";ka.style.marginTop=null!=q||0<fa?"6px":"0px";ka.appendChild(this.graph.createLinkForHint(ja.getAttribute("href"),mxUtils.getTextContent(ja),this.state.cell));var va=B.cloneNode(!0);ka.appendChild(va);var Ma=mxUtils.bind(this,function(Na){var Aa=+F.style.paddingLeft="4px";F.style.marginLeft="0";null==this.linkHint&&(this.linkHint=a(),mxUtils.setPrefixedStyle(this.linkHint.style,"transform","translate(-50%,0)"),this.linkHint.style.padding="6px 8px 6px 8px",this.linkHint.style.opacity="1",this.linkHint.style.filter="",this.graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.bind(this,function(){this.graph.tooltipHandler.hide()})));this.linkHint.innerText="";if(null!=q){var L=document.createElement("div");+L.style.display="flex";L.style.alignItems="center";L.appendChild(this.graph.createLinkForHint(q,null,this.state.cell));this.linkHint.appendChild(L);if(this.graph.isEnabled()&&"function"===typeof this.graph.editLink&&!this.graph.isCellLocked(this.state.cell)){var R=B.cloneNode(!0);L.appendChild(R);mxEvent.addListener(R,"click",mxUtils.bind(this,function(ja){this.graph.setSelectionCell(this.state.cell);this.graph.editLink();mxEvent.consume(ja)}));var Z=F.cloneNode(!0);L.appendChild(Z);mxEvent.addListener(Z,+"click",mxUtils.bind(this,function(ja){this.graph.setLinkForCell(this.state.cell,null);mxEvent.consume(ja)}))}}if(null!=A)for(L=0;L<A.length;L++)mxUtils.bind(this,function(ja,fa){var ka=document.createElement("div");ka.style.display="flex";ka.style.alignItems="center";ka.style.marginTop=null!=q||0<fa?"6px":"0px";ka.appendChild(this.graph.createLinkForHint(ja.getAttribute("href"),mxUtils.getTextContent(ja),this.state.cell));var va=B.cloneNode(!0);ka.appendChild(va);var Ma=mxUtils.bind(this,function(Na){var Aa=document.createElement("div");Aa.innerHTML=Graph.sanitizeHtml(this.graph.getLabel(this.state.cell));var Ga=Aa.getElementsByTagName("a")[fa];if(null!=Ga){if(null==Na||""==Na){for(Na=Ga.cloneNode(!0).firstChild;null!=Na;)Ga.parentNode.insertBefore(Na.cloneNode(!0),Ga),Na=Na.nextSibling;Ga.parentNode.removeChild(Ga)}else Ga.setAttribute("href",Na);this.graph.labelChanged(this.state.cell,Aa.innerHTML)}});mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){this.graph.showLinkDialog(ja.getAttribute("href")||-"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));va=F.cloneNode(!0);ka.appendChild(va);mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ka)})(A[K],K)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(ja){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var $a=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var q=$a.apply(this,+"",mxResources.get("ok"),Ma);mxEvent.consume(Na)}));va=F.cloneNode(!0);ka.appendChild(va);mxEvent.addListener(va,"click",mxUtils.bind(this,function(Na){Ma();mxEvent.consume(Na)}));this.linkHint.appendChild(ka)})(A[L],L)}null!=this.linkHint&&Graph.sanitizeNode(this.linkHint)}catch(ja){}};mxEdgeHandler.prototype.updateLinkHint=mxVertexHandler.prototype.updateLinkHint;var $a=mxEdgeHandler.prototype.createConstraintHandler;mxEdgeHandler.prototype.createConstraintHandler=function(){var q=$a.apply(this,arguments);q.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHandler.isEnabled()});return q};var db=mxConnectionHandler.prototype.init;mxConnectionHandler.prototype.init=function(){db.apply(this,arguments);this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var pb=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){if(null!=this.moveHandles)for(var q=0;q<this.moveHandles.length;q++)null!=this.moveHandles[q]&&(this.moveHandles[q].bounds.x=Math.round(this.moveHandles[q].rowState.x+this.moveHandles[q].rowState.width-this.moveHandles[q].bounds.width/2),this.moveHandles[q].bounds.y=Math.round(this.moveHandles[q].rowState.y+(this.moveHandles[q].rowState.height-this.moveHandles[q].bounds.height)/2),this.moveHandles[q].redraw());if(null!=this.cornerHandles){q=this.getSelectionBorderInset();var A=this.cornerHandles,B=A[0].bounds.height/2;A[0].bounds.x=this.state.x-A[0].bounds.width/2+q;A[0].bounds.y=this.state.y-B+q;A[0].redraw();A[1].bounds.x=A[0].bounds.x+this.state.width-2*q;A[1].bounds.y=A[0].bounds.y;A[1].redraw();A[2].bounds.x=A[0].bounds.x;A[2].bounds.y=this.state.y+this.state.height-2*q;A[2].redraw();A[3].bounds.x=A[1].bounds.x;A[3].bounds.y=A[2].bounds.y;A[3].redraw();for(q=0;q<this.cornerHandles.length;q++)this.cornerHandles[q].node.style.display=1==this.graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this.rotationShape.node.setAttribute("title",@@ -3027,49 +3028,49 @@ Format.processMenuIcon=function(a,b){var f=a.getElementsByTagName("img");0<f.lenFormat.prototype.init=function(){var a=this.editorUi,b=a.editor,f=b.graph;this.update=mxUtils.bind(this,function(e,g){this.refresh()});f.getSelectionModel().addListener(mxEvent.CHANGE,this.update);f.getModel().addListener(mxEvent.CHANGE,this.update);f.addListener(mxEvent.EDITING_STARTED,this.update);f.addListener(mxEvent.EDITING_STOPPED,this.update);f.getView().addListener("unitChanged",this.update);b.addListener("autosaveChanged",this.update);f.addListener(mxEvent.ROOT,this.update);a.addListener("styleChanged",this.update);a.addListener("lockedChanged",this.update);a.addListener("languageChanged",this.update);a.addListener("formatWidthChanged",this.update);this.refresh()};Format.prototype.clear=function(){this.container.innerText="";if(null!=this.panels)for(var a=0;a<this.panels.length;a++)this.panels[a].destroy();this.panels=[]};Format.prototype.refresh=function(){null!=this.pendingRefresh&&(window.clearTimeout(this.pendingRefresh),this.pendingRefresh=null);this.pendingRefresh=window.setTimeout(mxUtils.bind(this,function(){this.immediateRefresh()}))};-Format.prototype.immediateRefresh=function(){if(0!=this.container.offsetWidth){this.clear();var a=this.editorUi,b=a.editor.graph,f=document.createElement("div");f.className="geFormatContent";var e=document.createElement("div");e.className="geFormatTitle";this.container.appendChild(f);var g=a.getSelectionState(),d=g.containsLabel,h=null,m=null,p=mxUtils.bind(this,function(D,E,G,J){var M=mxUtils.bind(this,function(L,W){h!=D&&(W||(d?this.labelIndex=G:b.isSelectionEmpty()?this.diagramIndex=G:this.currentIndex=-G),null!=h&&h.classList.remove("geActiveFormatTitle"),h=D,h.classList.add("geActiveFormatTitle"),m!=E&&(null!=m&&(m.style.display="none"),m=E,m.style.display=""))});mxEvent.addListener(D,"click",M);var Q=d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex;(J&&null==h||G==Q)&&M(null,J&&null==h)}),k=0;if(b.isSelectionEmpty()){var v=document.createElement("div");mxUtils.write(v,mxResources.get("diagram"));e.appendChild(v);e.setAttribute("title",mxResources.get("diagram"));f.appendChild(e);-g=f.cloneNode(!1);this.panels.push(new DiagramFormatPanel(this,a,g));this.container.appendChild(g);g.style.display="none";var w=e.cloneNode(!1);p(e,g,k++);var y=f.cloneNode(!1);y.style.display="none";v=document.createElement("div");mxUtils.write(v,mxResources.get("style"));w.appendChild(v);w.setAttribute("title",mxResources.get("style"));f.appendChild(w);this.panels.push(new DiagramStylePanel(this,a,y));this.container.appendChild(y);p(w,y,k++,!0)}else if(b.isEditing())v=document.createElement("div"),-mxUtils.write(v,mxResources.get("text")),e.appendChild(v),e.setAttribute("title",mxResources.get("text")),f.appendChild(e),y=f.cloneNode(!1),y.style.display="none",this.panels.push(new TextFormatPanel(this,a,y)),this.container.appendChild(y),p(e,y,k++,!0);else{w=e.cloneNode(!1);var C=w.cloneNode(!1);0<g.cells.length&&(v=document.createElement("div"),mxUtils.write(v,mxResources.get("style")),e.appendChild(v),e.setAttribute("title",mxResources.get("style")),f.appendChild(e),y=f.cloneNode(!1),y.style.display=-"none",this.panels.push(new StyleFormatPanel(this,a,y)),this.container.appendChild(y),p(e,y,k++));v=document.createElement("div");mxUtils.write(v,mxResources.get("text"));w.appendChild(v);w.setAttribute("title",mxResources.get("text"));f.appendChild(w);y=f.cloneNode(!1);y.style.display="none";this.panels.push(new TextFormatPanel(this,a,y));this.container.appendChild(y);v=document.createElement("div");mxUtils.write(v,mxResources.get("arrange"));C.appendChild(v);C.setAttribute("title",mxResources.get("arrange"));+Format.prototype.immediateRefresh=function(){if(0!=this.container.offsetWidth){this.clear();var a=this.editorUi,b=a.editor.graph,f=document.createElement("div");f.className="geFormatContent";var e=document.createElement("div");e.className="geFormatTitle";this.container.appendChild(f);var g=a.getSelectionState(),d=g.containsLabel,h=null,m=null,p=mxUtils.bind(this,function(D,E,G,J){var M=mxUtils.bind(this,function(K,W){h!=D&&(W||(d?this.labelIndex=G:b.isSelectionEmpty()?this.diagramIndex=G:this.currentIndex=+G),null!=h&&h.classList.remove("geActiveFormatTitle"),h=D,h.classList.add("geActiveFormatTitle"),m!=E&&(null!=m&&(m.style.display="none"),m=E,m.style.display=""))});mxEvent.addListener(D,"click",M);var Q=d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex;(J&&null==h||G==Q)&&M(null,J&&null==h)}),k=0;if(b.isSelectionEmpty()){var u=document.createElement("div");mxUtils.write(u,mxResources.get("diagram"));e.appendChild(u);e.setAttribute("title",mxResources.get("diagram"));f.appendChild(e);+g=f.cloneNode(!1);this.panels.push(new DiagramFormatPanel(this,a,g));this.container.appendChild(g);g.style.display="none";var w=e.cloneNode(!1);p(e,g,k++);var y=f.cloneNode(!1);y.style.display="none";u=document.createElement("div");mxUtils.write(u,mxResources.get("style"));w.appendChild(u);w.setAttribute("title",mxResources.get("style"));f.appendChild(w);this.panels.push(new DiagramStylePanel(this,a,y));this.container.appendChild(y);p(w,y,k++,!0)}else if(b.isEditing())u=document.createElement("div"),+mxUtils.write(u,mxResources.get("text")),e.appendChild(u),e.setAttribute("title",mxResources.get("text")),f.appendChild(e),y=f.cloneNode(!1),y.style.display="none",this.panels.push(new TextFormatPanel(this,a,y)),this.container.appendChild(y),p(e,y,k++,!0);else{w=e.cloneNode(!1);var C=w.cloneNode(!1);0<g.cells.length&&(u=document.createElement("div"),mxUtils.write(u,mxResources.get("style")),e.appendChild(u),e.setAttribute("title",mxResources.get("style")),f.appendChild(e),y=f.cloneNode(!1),y.style.display=+"none",this.panels.push(new StyleFormatPanel(this,a,y)),this.container.appendChild(y),p(e,y,k++));u=document.createElement("div");mxUtils.write(u,mxResources.get("text"));w.appendChild(u);w.setAttribute("title",mxResources.get("text"));f.appendChild(w);y=f.cloneNode(!1);y.style.display="none";this.panels.push(new TextFormatPanel(this,a,y));this.container.appendChild(y);u=document.createElement("div");mxUtils.write(u,mxResources.get("arrange"));C.appendChild(u);C.setAttribute("title",mxResources.get("arrange"));f.appendChild(C);e=f.cloneNode(!1);e.style.display="none";this.panels.push(new ArrangePanel(this,a,e));this.container.appendChild(e);0<g.cells.length?p(w,y,k++):w.style.display="none";p(C,e,k++,!0)}f.className="geFormatTitleContainer"}};BaseFormatPanel=function(a,b,f){this.format=a;this.editorUi=b;this.container=f;this.listeners=[]};BaseFormatPanel.prototype.buttonBackgroundColor="transparent";-BaseFormatPanel.prototype.installInputHandler=function(a,b,f,e,g,d,h,m,p){d=null!=d?d:"";m=null!=m?m:!1;var k=this.editorUi,v=k.editor.graph;e=null!=e?e:1;g=null!=g?g:999;var w=null,y=!1,C=null,D=mxUtils.bind(this,function(E){var G=m?parseFloat(a.value):parseInt(a.value);p&&(G=this.fromUnit(G));if(G!=C){C=G;isNaN(G)||b!=mxConstants.STYLE_ROTATION||(G=mxUtils.mod(Math.round(100*G),36E3)/100);G=Math.min(g,Math.max(e,isNaN(G)?f:G));if(v.cellEditor.isContentEditing()&&h)y||(y=!0,null!=w&&(v.cellEditor.restoreSelection(w),-w=null),h(G),a.value=(p?this.inUnit(G):G)+d,y=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,f)){v.isEditing()&&v.stopEditing(!0);v.getModel().beginUpdate();try{var J=k.getSelectionState().cells;v.setCellStyles(b,G,J);b==mxConstants.STYLE_FONTSIZE&&v.updateLabelElements(J,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var M=0;M<J.length;M++)0==v.model.getChildCount(J[M])&&v.autoSizeCell(J[M],!1);k.fireEvent(new mxEventObject("styleChanged",-"keys",[b],"values",[G],"cells",J))}finally{v.getModel().endUpdate()}}a.value=(p?this.inUnit(G):G)+d}mxEvent.consume(E)});h&&v.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(E){document.activeElement==v.cellEditor.textarea&&(w=v.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",D);mxEvent.addListener(a,"blur",D);return D};BaseFormatPanel.prototype.createPanel=function(){var a=document.createElement("div");a.className="geFormatSection";return a};+BaseFormatPanel.prototype.installInputHandler=function(a,b,f,e,g,d,h,m,p){d=null!=d?d:"";m=null!=m?m:!1;var k=this.editorUi,u=k.editor.graph;e=null!=e?e:1;g=null!=g?g:999;var w=null,y=!1,C=null,D=mxUtils.bind(this,function(E){var G=m?parseFloat(a.value):parseInt(a.value);p&&(G=this.fromUnit(G));if(G!=C){C=G;isNaN(G)||b!=mxConstants.STYLE_ROTATION||(G=mxUtils.mod(Math.round(100*G),36E3)/100);G=Math.min(g,Math.max(e,isNaN(G)?f:G));if(u.cellEditor.isContentEditing()&&h)y||(y=!0,null!=w&&(u.cellEditor.restoreSelection(w),+w=null),h(G),a.value=(p?this.inUnit(G):G)+d,y=!1);else if(G!=mxUtils.getValue(k.getSelectionState().style,b,f)){u.isEditing()&&u.stopEditing(!0);u.getModel().beginUpdate();try{var J=k.getSelectionState().cells;u.setCellStyles(b,G,J);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(J,function(Q){Q.removeAttribute("size");Q.style.fontSize="";""==Q.getAttribute("style")&&Q.removeAttribute("style")});for(var M=0;M<J.length;M++)0==u.model.getChildCount(J[M])&&u.autoSizeCell(J[M],!1);k.fireEvent(new mxEventObject("styleChanged",+"keys",[b],"values",[G],"cells",J))}finally{u.getModel().endUpdate()}}a.value=(p?this.inUnit(G):G)+d}mxEvent.consume(E)});h&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(E){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",D);mxEvent.addListener(a,"blur",D);return D};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";mxUtils.write(b,a);return b};BaseFormatPanel.prototype.addAction=function(a,b){var f=this.editorUi.actions.get(b);b=null;if(null!=f&&f.isEnabled()){b=mxUtils.button(f.getTitle(),mxUtils.bind(this,function(g){try{f.funct(g,g)}catch(d){this.editorUi.handleError(d)}}));var e=null!=f.shortcut?" ("+f.shortcut+")":"";b.setAttribute("title",f.getTitle()+e);b.style.marginBottom="2px";b.className="geFullWidthElement";a.appendChild(b)}return b};BaseFormatPanel.prototype.addActions=function(a,b){for(var f=null,e=null,g=0,d=0;d<b.length;d++){var h=this.addAction(a,b[d]);null!=h&&(g++,0==mxUtils.mod(g,2)&&(e.style.marginRight="4px",e.style.width="104px",h.style.width="104px",f.parentNode.removeChild(f)),f=mxUtils.br(a),e=h)}return g};BaseFormatPanel.prototype.createStepper=function(a,b,f,e,g,d,h){f=null!=f?f:1;var m=10*f;e=document.createElement("div");e.className="geBtnStepper";e.style.position="absolute";e.style.left="200px";var p=document.createElement("div");p.style.height="9px";p.style.backgroundImage="url("+Editor.arrowUpImage+")";p.style.width="10px";e.appendChild(p);var k=p.cloneNode(!1);k.style.backgroundImage="url("+Editor.arrowDownImage+")";e.appendChild(k);mxEvent.addGestureListeners(k,function(w){mxEvent.consume(w)},-null,function(w){""==a.value&&(a.value=d||"2");var y=h?parseFloat(a.value):parseInt(a.value);isNaN(y)||(a.value=y-(mxEvent.isShiftDown(w)?m:f),null!=b&&b(w));mxEvent.consume(w)});mxEvent.addGestureListeners(p,function(w){mxEvent.consume(w)},null,function(w){""==a.value&&(a.value=d||"0");var y=h?parseFloat(a.value):parseInt(a.value);isNaN(y)||(a.value=y+(mxEvent.isShiftDown(w)?m:f),null!=b&&b(w));mxEvent.consume(w)});if(g){var v=null;mxEvent.addGestureListeners(e,function(w){mxEvent.consume(w)},null,-function(w){if(null!=v){try{v.select()}catch(y){}v=null;mxEvent.consume(w)}})}else mxEvent.addListener(e,"click",function(w){mxEvent.consume(w)});return e};-BaseFormatPanel.prototype.createOption=function(a,b,f,e,g){var d=document.createElement("div");d.className="geFormatEntry";var h=document.createElement("input");h.setAttribute("type","checkbox");d.appendChild(h);var m=document.createElement("span");m.className="geStyleLabel";m.setAttribute("title",a);mxUtils.write(m,a);d.appendChild(m);var p=!1,k=b(),v=function(w,y){p||(p=!0,w?(h.setAttribute("checked","checked"),h.defaultChecked=!0,h.checked=!0):(h.removeAttribute("checked"),h.defaultChecked=!1,-h.checked=!1),k!=w&&(k=w,b()!=k&&f(k,y)),p=!1)};mxEvent.addListener(d,"click",function(w){if("disabled"!=h.getAttribute("disabled")){var y=mxEvent.getSource(w);if(y==d||y==m)h.checked=!h.checked;v(h.checked,w)}});v(k);null!=e&&(e.install(v),this.listeners.push(e));null!=g&&g(d);return d};-BaseFormatPanel.prototype.createCellOption=function(a,b,f,e,g,d,h,m,p){var k=this.editorUi,v=k.editor.graph;e=null!=e?"null"==e?null:e:1;g=null!=g?"null"==g?null:g:0;var w=null!=p?v.getCommonStyle(p):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(w,b,f)!=g},function(y){m&&v.stopEditing();if(null!=h)h.funct();else{v.getModel().beginUpdate();try{var C=null!=p?p:k.getSelectionState().cells;y=y?e:g;v.setCellStyles(b,y,C);null!=d&&d(C,y);k.fireEvent(new mxEventObject("styleChanged",-"keys",[b],"values",[y],"cells",C))}finally{v.getModel().endUpdate()}}},{install:function(y){this.listener=function(){y(mxUtils.getValue(w,b,f)!=g)};v.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){v.getModel().removeListener(this.listener)}})};-BaseFormatPanel.prototype.createColorOption=function(a,b,f,e,g,d,h,m,p,k){function v(T,N){"default"!=T||N||(T=m);"default"!=T&&p&&(T=mxUtils.getLightDarkColor(T),T=k()?T.dark:T.light);return T}var w=null!=k;k=null!=k?k:Editor.isDarkMode;var y=this.editorUi.editor.graph,C=document.createElement("div");C.className="geFormatEntry";var D=document.createElement("input");D.setAttribute("type","checkbox");h||C.appendChild(D);var E=document.createElement("span");mxUtils.write(E,a);C.appendChild(E);var G=-b(),J=!1,M=null,Q=null,L=document.createElement("input");L.setAttribute("type","color");L.style.position="relative";L.style.visibility="hidden";L.style.top="10px";L.style.width="0px";L.style.height="0px";L.style.border="none";mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_TOUCH||(M=document.createElement("img"),M.src=Editor.colorDropperImage,M.className="geColorDropper geAdaptiveAsset",mxEvent.addListener(M,"click",function(T){L.value=v(G);L.click();mxEvent.consume(T)}));var W=null,X=function(T,N){J||+null,function(w){""==a.value&&(a.value=d||"2");var y=h?parseFloat(a.value):parseInt(a.value);isNaN(y)||(a.value=y-(mxEvent.isShiftDown(w)?m:f),null!=b&&b(w));mxEvent.consume(w)});mxEvent.addGestureListeners(p,function(w){mxEvent.consume(w)},null,function(w){""==a.value&&(a.value=d||"0");var y=h?parseFloat(a.value):parseInt(a.value);isNaN(y)||(a.value=y+(mxEvent.isShiftDown(w)?m:f),null!=b&&b(w));mxEvent.consume(w)});if(g){var u=null;mxEvent.addGestureListeners(e,function(w){mxEvent.consume(w)},null,+function(w){if(null!=u){try{u.select()}catch(y){}u=null;mxEvent.consume(w)}})}else mxEvent.addListener(e,"click",function(w){mxEvent.consume(w)});return e};+BaseFormatPanel.prototype.createOption=function(a,b,f,e,g){var d=document.createElement("div");d.className="geFormatEntry";var h=document.createElement("input");h.setAttribute("type","checkbox");d.appendChild(h);var m=document.createElement("span");m.className="geStyleLabel";m.setAttribute("title",a);mxUtils.write(m,a);d.appendChild(m);var p=!1,k=b(),u=function(w,y){p||(p=!0,w?(h.setAttribute("checked","checked"),h.defaultChecked=!0,h.checked=!0):(h.removeAttribute("checked"),h.defaultChecked=!1,+h.checked=!1),k!=w&&(k=w,b()!=k&&f(k,y)),p=!1)};mxEvent.addListener(d,"click",function(w){if("disabled"!=h.getAttribute("disabled")){var y=mxEvent.getSource(w);if(y==d||y==m)h.checked=!h.checked;u(h.checked,w)}});u(k);null!=e&&(e.install(u),this.listeners.push(e));null!=g&&g(d);return d};+BaseFormatPanel.prototype.createCellOption=function(a,b,f,e,g,d,h,m,p){var k=this.editorUi,u=k.editor.graph;e=null!=e?"null"==e?null:e:1;g=null!=g?"null"==g?null:g:0;var w=null!=p?u.getCommonStyle(p):k.getSelectionState().style;return this.createOption(a,function(){return mxUtils.getValue(w,b,f)!=g},function(y){m&&u.stopEditing();if(null!=h)h.funct();else{u.getModel().beginUpdate();try{var C=null!=p?p:k.getSelectionState().cells;y=y?e:g;u.setCellStyles(b,y,C);null!=d&&d(C,y);k.fireEvent(new mxEventObject("styleChanged",+"keys",[b],"values",[y],"cells",C))}finally{u.getModel().endUpdate()}}},{install:function(y){this.listener=function(){y(mxUtils.getValue(w,b,f)!=g)};u.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){u.getModel().removeListener(this.listener)}})};+BaseFormatPanel.prototype.createColorOption=function(a,b,f,e,g,d,h,m,p,k){function u(T,N){"default"!=T||N||(T=m);"default"!=T&&p&&(T=mxUtils.getLightDarkColor(T),T=k()?T.dark:T.light);return T}var w=null!=k;k=null!=k?k:Editor.isDarkMode;var y=this.editorUi.editor.graph,C=document.createElement("div");C.className="geFormatEntry";var D=document.createElement("input");D.setAttribute("type","checkbox");h||C.appendChild(D);var E=document.createElement("span");mxUtils.write(E,a);C.appendChild(E);var G=+b(),J=!1,M=null,Q=null,K=document.createElement("input");K.setAttribute("type","color");K.style.position="relative";K.style.visibility="hidden";K.style.top="10px";K.style.width="0px";K.style.height="0px";K.style.border="none";mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_TOUCH||(M=document.createElement("img"),M.src=Editor.colorDropperImage,M.className="geColorDropper geAdaptiveAsset",mxEvent.addListener(M,"click",function(T){K.value=u(G);K.click();mxEvent.consume(T)}));var W=null,X=function(T,N){J||(J=!0,null!=d&&d(T),N||(null!=W&&(y.cellEditor.restoreSelection(W),W=null),f(T)),G=b(),T=mxUtils.getLightDarkColor("default"!=G?G:m),N=document.createElement("div"),N.style.width="21px",N.style.height="12px",N.style.margin="2px 18px 2px 3px",N.style.borderWidth="1px",N.style.borderStyle="solid",N.style.backgroundColor=T.cssText,Q.innerText="",Q.appendChild(N),!p&&mxUtils.isLightDarkColor(G)&&T.light!=T.dark?N.style.background="linear-gradient(to right bottom, "+T.cssText+" 50%, "+mxUtils.invertLightDarkColor(T).cssText+" 50.3%)":p&&w&&(N.style.backgroundColor=k()?T.dark:T.light),null!=M?(N.style.width="21px",N.style.margin="2px 18px 2px 3px",N.appendChild(M)):(N.style.width="36px",N.style.margin="3px"),null!=G&&G!=mxConstants.NONE&&1<G.length&&"string"===typeof G&&(T="#"==G.charAt(0)?G.substring(1).toUpperCase():G,T=ColorDialog.prototype.colorNames[T],null!=T?Q.setAttribute("title",T):"default"==G?Q.setAttribute("title",mxResources.get("useBlackAndWhite")):Q.setAttribute("title",G)),y.isSpecialColor(G)?D.style.display=-"none":(D.style.display="",null!=G&&G!=mxConstants.NONE?(D.setAttribute("checked","checked"),D.defaultChecked=!0,D.checked=!0):(D.removeAttribute("checked"),D.defaultChecked=!1,D.checked=!1)),Q.style.display=D.checked||h?"":"none",J=!1)};C.appendChild(L);mxEvent.addListener(L,"change",function(){var T=L.value;if(!p){var N=mxUtils.getLightDarkColor(G);k()?N.dark=T:N.light=T;T="light-dark("+N.light+", "+N.dark+")"}X(T)});Q=mxUtils.button("",mxUtils.bind(this,function(T){var N=m;p&&k()&&mxUtils.isLightDarkColor(N)&&-(N=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(v(G,!0),function(ca){X(ca)},"default"==e?"default":null,N,p);mxEvent.consume(T)}));Q.className="geColorBtn";Q.style.display=D.checked||h?"":"none";C.appendChild(Q);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&Q.setAttribute("title",a);h||(mxEvent.addListener(C,"click",function(T){T=mxEvent.getSource(T);if(T==D||"INPUT"!=T.nodeName)T!=D&&(D.checked=!D.checked),-D.checked||null==G||G==mxConstants.NONE||e==mxConstants.NONE||(e=v(G)),X(D.checked?e:mxConstants.NONE)}),mxEvent.addGestureListeners(D,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(W=y.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(W=y.cellEditor.saveSelection())})));X(G,!0);null!=g&&g.install(function(){X(G,!0)},this.listeners.push(g));return C};-BaseFormatPanel.prototype.createCellColorOption=function(a,b,f,e,g,d){var h=this.editorUi,m=h.editor.graph;return this.createColorOption(a,function(){var p=m.getCellStyle(m.getSelectionCell(),!1);return null!=p?p[b]:null},function(p){m.getModel().beginUpdate();try{var k=h.getSelectionState().cells;m.setCellStyles(b,p,k);null!=g&&g(p);h.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[p],"cells",k))}finally{m.getModel().endUpdate()}},f||mxConstants.NONE,{install:function(p){this.listener=-function(){var k=m.getCellStyle(m.getSelectionCell(),!1);null!=k&&p(k[b],!0)};m.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){m.getModel().removeListener(this.listener)}},e,null,d)};BaseFormatPanel.prototype.addArrow=function(a){var b=document.createElement("div");b.className="geAdaptiveAsset geArrow";b.style.backgroundImage="url("+Editor.thinExpandImage+")";a.className="geStyleBtn";a.appendChild(b);return b};+"none":(D.style.display="",null!=G&&G!=mxConstants.NONE?(D.setAttribute("checked","checked"),D.defaultChecked=!0,D.checked=!0):(D.removeAttribute("checked"),D.defaultChecked=!1,D.checked=!1)),Q.style.display=D.checked||h?"":"none",J=!1)};C.appendChild(K);mxEvent.addListener(K,"change",function(){var T=K.value;if(!p){var N=mxUtils.getLightDarkColor(G);k()?N.dark=T:N.light=T;T="light-dark("+N.light+", "+N.dark+")"}X(T)});Q=mxUtils.button("",mxUtils.bind(this,function(T){var N=m;p&&k()&&mxUtils.isLightDarkColor(N)&&+(N=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(ca){X(ca)},"default"==e?"default":null,N,p);mxEvent.consume(T)}));Q.className="geColorBtn";Q.style.display=D.checked||h?"":"none";C.appendChild(Q);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&Q.setAttribute("title",a);h||(mxEvent.addListener(C,"click",function(T){T=mxEvent.getSource(T);if(T==D||"INPUT"!=T.nodeName)T!=D&&(D.checked=!D.checked),+D.checked||null==G||G==mxConstants.NONE||e==mxConstants.NONE||(e=u(G)),X(D.checked?e:mxConstants.NONE)}),mxEvent.addGestureListeners(D,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(W=y.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(W=y.cellEditor.saveSelection())})));X(G,!0);null!=g&&g.install(function(){X(G,!0)},this.listeners.push(g));return C};+BaseFormatPanel.prototype.createCellColorOption=function(a,b,f,e,g,d,h){var m=this.editorUi,p=m.editor.graph;return this.createColorOption(a,function(){var k=p.getCellStyle(p.getSelectionCell(),!1);return null!=k?null!=k[b]?k[b]:h:null},function(k){p.getModel().beginUpdate();try{var u=m.getSelectionState().cells;p.setCellStyles(b,k,u);null!=g&&g(k);m.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[k],"cells",u))}finally{p.getModel().endUpdate()}},f||mxConstants.NONE,{install:function(k){this.listener=+function(){var u=p.getCellStyle(p.getSelectionCell(),!1);null!=u&&k(null!=u[b]?u[b]:h,!0)};p.getModel().addListener(mxEvent.CHANGE,this.listener)},destroy:function(){p.getModel().removeListener(this.listener)}},e,null,d)};BaseFormatPanel.prototype.addArrow=function(a){var b=document.createElement("div");b.className="geAdaptiveAsset geArrow";b.style.backgroundImage="url("+Editor.thinExpandImage+")";a.className="geStyleBtn";a.appendChild(b);return b};BaseFormatPanel.prototype.addUnitInput=function(a,b,f,e,g,d,h,m,p){b=document.createElement("input");b.style.position="absolute";b.style.left=216-f-e+"px";b.style.width=e+"px";a.appendChild(b);e=this.createStepper(b,g,d,m,null,p);e.style.left=216-f+"px";a.appendChild(e);return b};-BaseFormatPanel.prototype.addGenericInput=function(a,b,f,e,g,d){var h=this.editorUi.editor.graph,m=function(){d(p.value)},p=this.addUnitInput(a,b,f,e,m),k=mxUtils.bind(this,function(v,w,y){if(y||p!=document.activeElement)p.value=g()+b});mxEvent.addListener(p,"keydown",function(v){13==v.keyCode?(h.container.focus(),mxEvent.consume(v)):27==v.keyCode&&(k(null,null,!0),h.container.focus(),mxEvent.consume(v))});h.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){h.getModel().removeListener(k)}});+BaseFormatPanel.prototype.addGenericInput=function(a,b,f,e,g,d){var h=this.editorUi.editor.graph,m=function(){d(p.value)},p=this.addUnitInput(a,b,f,e,m),k=mxUtils.bind(this,function(u,w,y){if(y||p!=document.activeElement)p.value=g()+b});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(h.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,!0),h.container.focus(),mxEvent.consume(u))});h.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){h.getModel().removeListener(k)}});k();mxEvent.addListener(p,"blur",m);mxEvent.addListener(p,"change",m);return p};-BaseFormatPanel.prototype.createRelativeOption=function(a,b,f,e,g){f=null!=f?f:52;var d=this.editorUi,h=d.editor.graph,m=this.createPanel();m.className="geFormatEntry";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(v){if(null!=e)e(p);else{var w=parseInt(p.value);w=Math.min(100,Math.max(0,isNaN(w)?100:w));var y=h.view.getState(d.getSelectionState().cells[0]);null!=y&&w!=mxUtils.getValue(y.style,b,100)&&(100==w&&(w=null),y=d.getSelectionState().cells,h.setCellStyles(b,w,y),-this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[w],"cells",y)));p.value=(null!=w?w:"100")+" %"}mxEvent.consume(v)});var p=this.addUnitInput(m,"%",16,f,a,10,0,null!=e);if(null!=b){var k=mxUtils.bind(this,function(v,w,y){if(y||p!=document.activeElement)v=d.getSelectionState(),v=parseInt(mxUtils.getValue(v.style,b,100)),p.value=isNaN(v)?"":v+" %"});mxEvent.addListener(p,"keydown",function(v){13==v.keyCode?(h.container.focus(),mxEvent.consume(v)):27==v.keyCode&&(k(null,null,-!0),h.container.focus(),mxEvent.consume(v))});h.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){h.getModel().removeListener(k)}});k()}mxEvent.addListener(p,"blur",a);mxEvent.addListener(p,"change",a);null!=g&&g(p);return m};+BaseFormatPanel.prototype.createRelativeOption=function(a,b,f,e,g){f=null!=f?f:52;var d=this.editorUi,h=d.editor.graph,m=this.createPanel();m.className="geFormatEntry";mxUtils.write(m,a);m.style.fontWeight="bold";a=mxUtils.bind(this,function(u){if(null!=e)e(p);else{var w=parseInt(p.value);w=Math.min(100,Math.max(0,isNaN(w)?100:w));var y=h.view.getState(d.getSelectionState().cells[0]);null!=y&&w!=mxUtils.getValue(y.style,b,100)&&(100==w&&(w=null),y=d.getSelectionState().cells,h.setCellStyles(b,w,y),+this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[w],"cells",y)));p.value=(null!=w?w:"100")+" %"}mxEvent.consume(u)});var p=this.addUnitInput(m,"%",16,f,a,10,0,null!=e);if(null!=b){var k=mxUtils.bind(this,function(u,w,y){if(y||p!=document.activeElement)u=d.getSelectionState(),u=parseInt(mxUtils.getValue(u.style,b,100)),p.value=isNaN(u)?"":u+" %"});mxEvent.addListener(p,"keydown",function(u){13==u.keyCode?(h.container.focus(),mxEvent.consume(u)):27==u.keyCode&&(k(null,null,+!0),h.container.focus(),mxEvent.consume(u))});h.getModel().addListener(mxEvent.CHANGE,k);this.listeners.push({destroy:function(){h.getModel().removeListener(k)}});k()}mxEvent.addListener(p,"blur",a);mxEvent.addListener(p,"change",a);null!=g&&g(p);return m};BaseFormatPanel.prototype.addLabel=function(a,b,f,e){e=null!=e?e:61;var g=document.createElement("div");mxUtils.write(g,b);g.style.position="absolute";g.style.left=226-f-e+"px";g.style.width=e+"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(f){13==f.keyCode?(this.editorUi.editor.graph.container.focus(),mxEvent.consume(f)):27==f.keyCode&&(null!=b&&b(null,null,!0),this.editorUi.editor.graph.container.focus(),mxEvent.consume(f))}))};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,f){BaseFormatPanel.call(this,a,b,f);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,f=b.editor.graph,e=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=e.vertices[0];1<f.getSelectionCount()&&(f.isTableCell(d)&&(d=f.model.getParent(d)),f.isTableRow(d)&&(d=f.model.getParent(d)));var h=e.table||e.row||e.cell,m=f.isStack(d)||-f.isStackChild(d),p=h;m&&(h="0"==(f.isStack(d)?e.style:f.getCellStyle(f.model.getParent(d))).horizontalStack,p=!h);var k=[];p&&(k=k.concat([b.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!0):f.insertTableColumn(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!1):f.insertTableColumn(d,!1)}catch(v){b.handleError(v)}}),-g),b.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{m?f.deleteLane(d):f.deleteTableColumn(d)}catch(v){b.handleError(v)}}),g)]));h&&(k=k.concat([b.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!0):f.insertTableRow(d,!0)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!1):-f.insertTableRow(d,!1)}catch(v){b.handleError(v)}}),g),b.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{m?f.deleteLane(d):f.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!=e.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<e.style.colspan||1<e.style.rowspan)p+=this.addActions(a,["unmergeCells"]);0<p&&(g.style.paddingBottom="2px")}else a.style.display=+f.isStackChild(d),p=h;m&&(h="0"==(f.isStack(d)?e.style:f.getCellStyle(f.model.getParent(d))).horizontalStack,p=!h);var k=[];p&&(k=k.concat([b.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!0):f.insertTableColumn(d,!0)}catch(u){b.handleError(u)}}),g),b.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!1):f.insertTableColumn(d,!1)}catch(u){b.handleError(u)}}),+g),b.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{m?f.deleteLane(d):f.deleteTableColumn(d)}catch(u){b.handleError(u)}}),g)]));h&&(k=k.concat([b.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!0):f.insertTableRow(d,!0)}catch(u){b.handleError(u)}}),g),b.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{m?f.insertLane(d,!1):+f.insertTableRow(d,!1)}catch(u){b.handleError(u)}}),g),b.addButton(Editor.removeRowImage,mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{m?f.deleteLane(d):f.deleteTableRow(d)}catch(u){b.handleError(u)}}),g)]));if(0<k.length){a.appendChild(g);3<k.length&&(k[2].style.marginRight="10px");p=0;if(null!=e.mergeCell)p+=this.addActions(a,["mergeCells"]);else if(1<e.style.colspan||1<e.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,f=b.editor.graph;b=b.getSelectionState();var e=this.addActions(a,["group","ungroup"])+this.addActions(a,["removeFromGroup"]);b.cell||b.row||(e+=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 m=this.editorUi.actions.get(d[h].action);if(null==m||m.enabled){var p=document.createElement("option");p.setAttribute("value",d[h].action);p.setAttribute("title",d[h].label+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""));mxUtils.write(p,d[h].label);g.appendChild(p)}}1<g.children.length&&(g.value="reset",a.appendChild(g),mxUtils.br(a),e++,mxEvent.addListener(g,"change",mxUtils.bind(this,function(k){k=this.editorUi.actions.get(g.value);@@ -3083,44 +3084,44 @@ ArrangePanel.prototype.addDistribute=function(a){var b=this.editorUi.editor.grapf.style.width="104px";a.appendChild(f);mxUtils.br(a);f=document.createElement("div");f.style.margin="6px 0 0 0";f.style.display="flex";f.style.justifyContent="center";f.style.alignItems="center";var e=document.createElement("input");e.setAttribute("type","checkbox");e.setAttribute("id","spacingCheckbox");e.style.margin="0 6px 0 0";f.appendChild(e);var g=document.createElement("label");g.style.verticalAlign="top";g.setAttribute("for","spacingCheckbox");g.style.userSelect="none";mxUtils.write(g,mxResources.get("spacing"));f.appendChild(g);a.appendChild(f);return a};ArrangePanel.prototype.addAngle=function(a){var b=this.editorUi,f=b.editor.graph,e=b.getSelectionState(),g=document.createElement("div");g.style.position="absolute";g.style.marginTop="4px";g.style.width="70px";g.style.fontWeight="bold";a.style.minHeight="20px";var d=null,h=null,m=null;!e.rotatable||e.table||e.row||e.cell||(mxUtils.write(g,mxResources.get("angle")),a.appendChild(g),d=this.addUnitInput(a,"°",16,52,function(){h.apply(this,arguments)}),mxUtils.br(a));e.containsLabel||(g=mxResources.get("reverse"),-0<e.vertices.length&&0<e.edges.length?g=mxResources.get("turn")+" / "+g:0<e.vertices.length&&(g=mxResources.get("turn")),m=mxUtils.button(g,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",g+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.className="geFullWidthElement",a.appendChild(m),null!=d&&(m.style.marginTop="10px"));if(null!=d){var p=mxUtils.bind(this,function(k,v,w){if(w||document.activeElement!=d)e=b.getSelectionState(),k=parseFloat(mxUtils.getValue(e.style,mxConstants.STYLE_ROTATION,+0<e.vertices.length&&0<e.edges.length?g=mxResources.get("turn")+" / "+g:0<e.vertices.length&&(g=mxResources.get("turn")),m=mxUtils.button(g,function(k){b.actions.get("turn").funct(k)}),m.setAttribute("title",g+" ("+this.editorUi.actions.get("turn").shortcut+")"),m.className="geFullWidthElement",a.appendChild(m),null!=d&&(m.style.marginTop="10px"));if(null!=d){var p=mxUtils.bind(this,function(k,u,w){if(w||document.activeElement!=d)e=b.getSelectionState(),k=parseFloat(mxUtils.getValue(e.style,mxConstants.STYLE_ROTATION,0)),d.value=isNaN(k)?"":k+"°"});h=this.installInputHandler(d,mxConstants.STYLE_ROTATION,0,0,360,"°",null,!0);this.addKeyHandler(d,p);f.getModel().addListener(mxEvent.CHANGE,p);this.listeners.push({destroy:function(){f.getModel().removeListener(p)}});p()}return a};BaseFormatPanel.prototype.getUnit=function(a){var b="";switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:b="pt";break;case mxConstants.INCHES:b='"';break;case mxConstants.MILLIMETERS:b="mm";break;case mxConstants.METERS:b="m"}return(a?a:"")+b};BaseFormatPanel.prototype.inUnit=function(a){return this.editorUi.editor.graph.view.formatUnitText(a)};BaseFormatPanel.prototype.fromUnit=function(a){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return a;case mxConstants.INCHES:return a*mxConstants.PIXELS_PER_INCH;case mxConstants.MILLIMETERS:return a*mxConstants.PIXELS_PER_MM;case mxConstants.METERS:return a*mxConstants.PIXELS_PER_MM*1E3}};BaseFormatPanel.prototype.isFloatUnit=function(){return this.editorUi.editor.graph.view.unit!=mxConstants.POINTS};BaseFormatPanel.prototype.getUnitStep=function(){switch(this.editorUi.editor.graph.view.unit){case mxConstants.POINTS:return 1;case mxConstants.INCHES:return.1;case mxConstants.MILLIMETERS:return.5;case mxConstants.METERS:return.001}};ArrangePanel.prototype.addGeometry=function(a){var b=this,f=this.editorUi,e=f.editor.graph,g=e.getModel(),d=f.getSelectionState(),h=this.createPanel();h.style.height="60px";var m=document.createElement("div");m.className="geStyleLabel";m.style.position="absolute";m.style.fontWeight="bold";m.style.marginTop="4px";m.style.maxWidth="50px";mxUtils.write(m,mxResources.get("size"));h.appendChild(m);var p=this.addUnitInput(h,this.getUnit(),87,52,function(){C.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),k=this.addUnitInput(h,this.getUnit(),16,52,function(){D.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());m=document.createElement("div");m.style.backgroundImage="url("+Editor.autosizeImage+")";m.className="geButton";m.style.margin="0";m.style.width="21px";m.style.height="21px";m.style.left="52px";mxUtils.setOpacity(m,50);mxEvent.addListener(m,"click",function(){f.actions.get("autosize").funct()});h.appendChild(m);d.row?(p.style.visibility="hidden",p.nextSibling.style.visibility=-"hidden"):this.addLabel(h,mxResources.get("width"),87,64).style.marginTop="0px";this.addLabel(h,mxResources.get("height"),16,64).style.marginTop="0px";mxUtils.br(h);var v=document.createElement("div");v.className="geFormatEntry";v.style.marginTop="14px";var w=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");w.className="geFullWidthElement";v.appendChild(w);d.cell||d.row?m.style.visibility="hidden":h.appendChild(v);var y=w.getElementsByTagName("input")[0];+"hidden"):this.addLabel(h,mxResources.get("width"),87,64).style.marginTop="0px";this.addLabel(h,mxResources.get("height"),16,64).style.marginTop="0px";mxUtils.br(h);var u=document.createElement("div");u.className="geFormatEntry";u.style.marginTop="14px";var w=this.createCellOption(mxResources.get("constrainProportions"),mxConstants.STYLE_ASPECT,null,"fixed","null");w.className="geFullWidthElement";u.appendChild(w);d.cell||d.row?m.style.visibility="hidden":h.appendChild(u);var y=w.getElementsByTagName("input")[0];this.addKeyHandler(p,X);this.addKeyHandler(k,X);var C=this.addGeometryHandler(p,function(H,S,ea){S=Math.max(1,b.fromUnit(S));if(e.isTableCell(ea))return e.setTableColumnWidth(ea,S-H.width,!0),!0;0<H.width&&(y.checked&&(H.height=Math.round(H.height*S*100/H.width)/100),H.width=S)});var D=this.addGeometryHandler(k,function(H,S,ea){S=Math.max(1,b.fromUnit(S));e.isTableCell(ea)&&(ea=g.getParent(ea));if(e.isTableRow(ea))return e.setTableRowHeight(ea,S-H.height),!0;0<H.height&&(y.checked&&(H.width=Math.round(H.width*S*100/H.height)/100),H.height=S)});(d.resizable||d.row||d.cell)&&a.appendChild(h);var E=this.createPanel();E.style.paddingBottom="30px";m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";m.style.fontWeight="bold";mxUtils.write(m,mxResources.get("position"));E.appendChild(m);var G=this.addUnitInput(E,this.getUnit(),87,52,function(){T.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),J=this.addUnitInput(E,this.getUnit(),16,-52,function(){N.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(E);v=!0;var M=null,Q=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var L=e.getCellGeometry(d.vertices[0]);if(null!=L&&L.relative){mxUtils.br(E);m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";mxUtils.write(m,mxResources.get("relative"));E.appendChild(m);M=this.addGenericInput(E," %",87,52,function(){return Math.round(1E3*L.x)/-10},function(H){H=parseFloat(H);if(!isNaN(H)){g.beginUpdate();try{L=L.clone(),L.x=parseFloat(H)/100,g.setGeometry(d.vertices[0],L)}finally{g.endUpdate()}}});if(g.isEdge(g.getParent(d.vertices[0]))){v=!1;var W=null;Q=this.addUnitInput(E,this.getUnit(),16,52,function(){W.apply(this,arguments)});W=this.addGeometryHandler(Q,function(H,S){H.y=b.fromUnit(S)})}else Q=this.addGenericInput(E," %",16,52,function(){return Math.round(1E3*L.y)/10},function(H){H=parseFloat(H);if(!isNaN(H)){g.beginUpdate();try{L=-L.clone(),L.y=parseFloat(H)/100,g.setGeometry(d.vertices[0],L)}finally{g.endUpdate()}}});mxUtils.br(E)}}a.appendChild(E)}this.addLabel(E,mxResources.get(v?"left":"line"),87,64);this.addLabel(E,mxResources.get(v?"top":"orthogonal"),16,64);var X=mxUtils.bind(this,function(H,S,ea){d=f.getSelectionState();if(d.containsLabel||d.vertices.length!=e.getSelectionCount()||null==d.width||null==d.height)h.style.display="none";else{h.style.display="";if(ea||document.activeElement!=p)p.value=this.inUnit(d.width)++52,function(){N.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(E);u=!0;var M=null,Q=null;if(d.movable){if(0==d.edges.length&&1==d.vertices.length){var K=e.getCellGeometry(d.vertices[0]);if(null!=K&&K.relative){mxUtils.br(E);m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";mxUtils.write(m,mxResources.get("relative"));E.appendChild(m);M=this.addGenericInput(E," %",87,52,function(){return Math.round(1E3*K.x)/+10},function(H){H=parseFloat(H);if(!isNaN(H)){g.beginUpdate();try{K=K.clone(),K.x=parseFloat(H)/100,g.setGeometry(d.vertices[0],K)}finally{g.endUpdate()}}});if(g.isEdge(g.getParent(d.vertices[0]))){u=!1;var W=null;Q=this.addUnitInput(E,this.getUnit(),16,52,function(){W.apply(this,arguments)});W=this.addGeometryHandler(Q,function(H,S){H.y=b.fromUnit(S)})}else Q=this.addGenericInput(E," %",16,52,function(){return Math.round(1E3*K.y)/10},function(H){H=parseFloat(H);if(!isNaN(H)){g.beginUpdate();try{K=+K.clone(),K.y=parseFloat(H)/100,g.setGeometry(d.vertices[0],K)}finally{g.endUpdate()}}});mxUtils.br(E)}}a.appendChild(E)}this.addLabel(E,mxResources.get(u?"left":"line"),87,64);this.addLabel(E,mxResources.get(u?"top":"orthogonal"),16,64);var X=mxUtils.bind(this,function(H,S,ea){d=f.getSelectionState();if(d.containsLabel||d.vertices.length!=e.getSelectionCount()||null==d.width||null==d.height)h.style.display="none";else{h.style.display="";if(ea||document.activeElement!=p)p.value=this.inUnit(d.width)+" "+this.getUnit();if(ea||document.activeElement!=k)k.value=this.inUnit(d.height)+" "+this.getUnit()}if(d.vertices.length==e.getSelectionCount()&&0<d.vertices.length&&null!=d.x&&null!=d.y){H=e.getCellGeometry(d.vertices[0]);E.style.display="";if(ea||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(ea||document.activeElement!=J)J.value=this.inUnit(d.y)+" "+this.getUnit();null!=H&&H.relative&&(null==M||!ea&&document.activeElement==M||(M.value=Math.round(1E3*H.x)/10+" %"),null==Q||!ea&&document.activeElement==Q||(g.isEdge(g.getParent(d.vertices[0]))?Q.value=this.inUnit(H.y)+" "+this.getUnit():Q.value=Math.round(1E3*H.y)/10+" %"))}else E.style.display="none"});this.listeners.push({destroy:function(){g.removeListener(X)}});g.addListener(mxEvent.CHANGE,X);this.addKeyHandler(G,X);this.addKeyHandler(J,X);X();var T=this.addGeometryHandler(G,function(H,S){S=b.fromUnit(S);H.relative?(H.offset=null!=H.offset?H.offset:new mxPoint,H.offset.x=S):H.x=S});var N=this.addGeometryHandler(J,-function(H,S){S=b.fromUnit(S);H.relative?(H.offset=null!=H.offset?H.offset:new mxPoint,H.offset.y=S):H.y=S});if(d.movable){if(0==d.edges.length&&1==d.vertices.length&&g.isEdge(g.getParent(d.vertices[0]))&&(L=e.getCellGeometry(d.vertices[0]),null!=L&&L.relative)){var ca=document.createElement("select");ca.style.position="absolute";ca.style.width="134px";ca.style.left="77px";m=document.createElement("option");m.setAttribute("value","none");m.setAttribute("title",mxResources.get("move"));mxUtils.write(m,+function(H,S){S=b.fromUnit(S);H.relative?(H.offset=null!=H.offset?H.offset:new mxPoint,H.offset.y=S):H.y=S});if(d.movable){if(0==d.edges.length&&1==d.vertices.length&&g.isEdge(g.getParent(d.vertices[0]))&&(K=e.getCellGeometry(d.vertices[0]),null!=K&&K.relative)){var ca=document.createElement("select");ca.style.position="absolute";ca.style.width="134px";ca.style.left="77px";m=document.createElement("option");m.setAttribute("value","none");m.setAttribute("title",mxResources.get("move"));mxUtils.write(m,mxResources.get("move")+"...");ca.appendChild(m);m=document.createElement("option");m.setAttribute("value","start");m.setAttribute("title",mxResources.get("linestart"));mxUtils.write(m,mxResources.get("linestart"));ca.appendChild(m);m=document.createElement("option");m.setAttribute("value","center");m.setAttribute("title",mxResources.get("center"));mxUtils.write(m,mxResources.get("center"));ca.appendChild(m);m=document.createElement("option");m.setAttribute("value","end");m.setAttribute("title",mxResources.get("lineend"));-mxUtils.write(m,mxResources.get("lineend"));ca.appendChild(m);mxEvent.addListener(ca,"change",function(H){if("none"!=ca.value){g.beginUpdate();try{L=L.clone(),L.x="start"==ca.value?-1:"end"==ca.value?1:0,L.y=0,L.offset=new mxPoint,g.setGeometry(d.vertices[0],L)}finally{g.endUpdate()}}ca.value="none"});mxUtils.br(E);mxUtils.br(E);E.appendChild(ca)}a.appendChild(E)}};-ArrangePanel.prototype.addGeometryHandler=function(a,b){function f(m){if(""!=a.value){var p=parseFloat(a.value);if(isNaN(p))a.value=d+" "+h.getUnit();else if(p!=d){g.getModel().beginUpdate();try{for(var k=e.getSelectionState().cells,v=0;v<k.length;v++)if(g.getModel().isVertex(k[v])){var w=g.getCellGeometry(k[v]);if(null!=w&&(w=w.clone(),!b(w,p,k[v]))){var y=g.view.getState(k[v]);null!=y&&g.isRecursiveVertexResize(y)&&g.resizeChildCells(k[v],w);g.getModel().setGeometry(k[v],w);g.constrainChildCells(k[v])}}}finally{g.getModel().endUpdate()}d=+mxUtils.write(m,mxResources.get("lineend"));ca.appendChild(m);mxEvent.addListener(ca,"change",function(H){if("none"!=ca.value){g.beginUpdate();try{K=K.clone(),K.x="start"==ca.value?-1:"end"==ca.value?1:0,K.y=0,K.offset=new mxPoint,g.setGeometry(d.vertices[0],K)}finally{g.endUpdate()}}ca.value="none"});mxUtils.br(E);mxUtils.br(E);E.appendChild(ca)}a.appendChild(E)}};+ArrangePanel.prototype.addGeometryHandler=function(a,b){function f(m){if(""!=a.value){var p=parseFloat(a.value);if(isNaN(p))a.value=d+" "+h.getUnit();else if(p!=d){g.getModel().beginUpdate();try{for(var k=e.getSelectionState().cells,u=0;u<k.length;u++)if(g.getModel().isVertex(k[u])){var w=g.getCellGeometry(k[u]);if(null!=w&&(w=w.clone(),!b(w,p,k[u]))){var y=g.view.getState(k[u]);null!=y&&g.isRecursiveVertexResize(y)&&g.resizeChildCells(k[u],w);g.getModel().setGeometry(k[u],w);g.constrainChildCells(k[u])}}}finally{g.getModel().endUpdate()}d=p;a.value=p+" "+h.getUnit()}}mxEvent.consume(m)}var e=this.editorUi,g=e.editor.graph,d=null,h=this;mxEvent.addListener(a,"blur",f);mxEvent.addListener(a,"change",f);mxEvent.addListener(a,"focus",function(){d=a.value});return f};-ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function f(h){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){g.getModel().beginUpdate();try{for(var p=e.getSelectionState().cells,k=0;k<p.length;k++)if(g.getModel().isEdge(p[k])){var v=g.getCellGeometry(p[k]);null!=v&&(v=v.clone(),b(v,m),g.getModel().setGeometry(p[k],v))}}finally{g.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(h)}var e=this.editorUi,g=e.editor.graph,d=null;mxEvent.addListener(a,+ArrangePanel.prototype.addEdgeGeometryHandler=function(a,b){function f(h){if(""!=a.value){var m=parseFloat(a.value);if(isNaN(m))a.value=d+" pt";else if(m!=d){g.getModel().beginUpdate();try{for(var p=e.getSelectionState().cells,k=0;k<p.length;k++)if(g.getModel().isEdge(p[k])){var u=g.getCellGeometry(p[k]);null!=u&&(u=u.clone(),b(u,m),g.getModel().setGeometry(p[k],u))}}finally{g.getModel().endUpdate()}d=m;a.value=m+" pt"}}mxEvent.consume(h)}var e=this.editorUi,g=e.editor.graph,d=null;mxEvent.addListener(a,"blur",f);mxEvent.addListener(a,"change",f);mxEvent.addListener(a,"focus",function(){d=a.value});return f};-ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this,f=this.editorUi,e=f.editor.graph,g=f.getSelectionState(),d=this.createPanel(),h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="0px";h.style.fontWeight="bold";mxUtils.write(h,mxResources.get("width"));d.appendChild(h);var m=this.addUnitInput(d,"pt",12,44,function(){p.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,E);var p=mxUtils.bind(this,function(L){var W=parseInt(m.value);-W=Math.min(999,Math.max(1,isNaN(W)?1:W));if(W!=mxUtils.getValue(g.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var X=f.getSelectionState().cells;e.setCellStyles("width",W,X);f.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[W],"cells",X))}m.value=W+" pt";mxEvent.consume(L)});mxEvent.addListener(m,"blur",p);mxEvent.addListener(m,"change",p);a.appendChild(d);var k=this.createPanel();k.style.paddingBottom="30px";h=document.createElement("div");h.style.position=-"absolute";h.style.width="70px";h.style.marginTop="4px";mxUtils.write(h,mxResources.get("linestart"));k.appendChild(h);var v=this.addUnitInput(k,this.getUnit(),87,52,function(){G.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),w=this.addUnitInput(k,this.getUnit(),16,52,function(){J.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),87,64);this.addLabel(k,mxResources.get("top"),16,64);a.appendChild(k);-this.addKeyHandler(v,E);this.addKeyHandler(w,E);var y=this.createPanel();y.style.paddingBottom="30px";h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="4px";mxUtils.write(h,mxResources.get("lineend"));y.appendChild(h);var C=this.addUnitInput(y,this.getUnit(),87,52,function(){M.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),D=this.addUnitInput(y,this.getUnit(),16,52,function(){Q.apply(this,arguments)},this.getUnitStep(),null,-null,this.isFloatUnit());mxUtils.br(y);this.addLabel(y,mxResources.get("left"),87,64);this.addLabel(y,mxResources.get("top"),16,64);a.appendChild(y);this.addKeyHandler(C,E);this.addKeyHandler(D,E);var E=mxUtils.bind(this,function(L,W,X){g=f.getSelectionState();L=g.cells[0];if("link"==g.style.shape||"flexArrow"==g.style.shape){if(d.style.display="",X||document.activeElement!=m)X=mxUtils.getValue(g.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth),m.value=X+" pt"}else d.style.display=-"none";1==g.cells.length&&e.model.isEdge(L)?(X=e.model.getGeometry(L),null!=X&&null!=X.sourcePoint&&null==e.model.getTerminal(L,!0)?(v.value=this.inUnit(X.sourcePoint.x)+" "+this.getUnit(),w.value=this.inUnit(X.sourcePoint.y)+" "+this.getUnit()):k.style.display="none",null!=X&&null!=X.targetPoint&&null==e.model.getTerminal(L,!1)?(C.value=this.inUnit(X.targetPoint.x)+" "+this.getUnit(),D.value=this.inUnit(X.targetPoint.y)+" "+this.getUnit()):y.style.display="none"):(k.style.display="none",y.style.display=-"none")});var G=this.addEdgeGeometryHandler(v,function(L,W){null!=L.sourcePoint&&(L.sourcePoint.x=b.fromUnit(W))});var J=this.addEdgeGeometryHandler(w,function(L,W){null!=L.sourcePoint&&(L.sourcePoint.y=b.fromUnit(W))});var M=this.addEdgeGeometryHandler(C,function(L,W){null!=L.targetPoint&&(L.targetPoint.x=b.fromUnit(W))});var Q=this.addEdgeGeometryHandler(D,function(L,W){null!=L.targetPoint&&(L.targetPoint.y=b.fromUnit(W))});e.getModel().addListener(mxEvent.CHANGE,E);this.listeners.push({destroy:function(){e.getModel().removeListener(E)}});+ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this,f=this.editorUi,e=f.editor.graph,g=f.getSelectionState(),d=this.createPanel(),h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="0px";h.style.fontWeight="bold";mxUtils.write(h,mxResources.get("width"));d.appendChild(h);var m=this.addUnitInput(d,"pt",12,44,function(){p.apply(this,arguments)});mxUtils.br(d);this.addKeyHandler(m,E);var p=mxUtils.bind(this,function(K){var W=parseInt(m.value);+W=Math.min(999,Math.max(1,isNaN(W)?1:W));if(W!=mxUtils.getValue(g.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var X=f.getSelectionState().cells;e.setCellStyles("width",W,X);f.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[W],"cells",X))}m.value=W+" pt";mxEvent.consume(K)});mxEvent.addListener(m,"blur",p);mxEvent.addListener(m,"change",p);a.appendChild(d);var k=this.createPanel();k.style.paddingBottom="30px";h=document.createElement("div");h.style.position=+"absolute";h.style.width="70px";h.style.marginTop="4px";mxUtils.write(h,mxResources.get("linestart"));k.appendChild(h);var u=this.addUnitInput(k,this.getUnit(),87,52,function(){G.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),w=this.addUnitInput(k,this.getUnit(),16,52,function(){J.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(k);this.addLabel(k,mxResources.get("left"),87,64);this.addLabel(k,mxResources.get("top"),16,64);a.appendChild(k);+this.addKeyHandler(u,E);this.addKeyHandler(w,E);var y=this.createPanel();y.style.paddingBottom="30px";h=document.createElement("div");h.style.position="absolute";h.style.width="70px";h.style.marginTop="4px";mxUtils.write(h,mxResources.get("lineend"));y.appendChild(h);var C=this.addUnitInput(y,this.getUnit(),87,52,function(){M.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),D=this.addUnitInput(y,this.getUnit(),16,52,function(){Q.apply(this,arguments)},this.getUnitStep(),null,+null,this.isFloatUnit());mxUtils.br(y);this.addLabel(y,mxResources.get("left"),87,64);this.addLabel(y,mxResources.get("top"),16,64);a.appendChild(y);this.addKeyHandler(C,E);this.addKeyHandler(D,E);var E=mxUtils.bind(this,function(K,W,X){g=f.getSelectionState();K=g.cells[0];if("link"==g.style.shape||"flexArrow"==g.style.shape){if(d.style.display="",X||document.activeElement!=m)X=mxUtils.getValue(g.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth),m.value=X+" pt"}else d.style.display=+"none";1==g.cells.length&&e.model.isEdge(K)?(X=e.model.getGeometry(K),null!=X&&null!=X.sourcePoint&&null==e.model.getTerminal(K,!0)?(u.value=this.inUnit(X.sourcePoint.x)+" "+this.getUnit(),w.value=this.inUnit(X.sourcePoint.y)+" "+this.getUnit()):k.style.display="none",null!=X&&null!=X.targetPoint&&null==e.model.getTerminal(K,!1)?(C.value=this.inUnit(X.targetPoint.x)+" "+this.getUnit(),D.value=this.inUnit(X.targetPoint.y)+" "+this.getUnit()):y.style.display="none"):(k.style.display="none",y.style.display=+"none")});var G=this.addEdgeGeometryHandler(u,function(K,W){null!=K.sourcePoint&&(K.sourcePoint.x=b.fromUnit(W))});var J=this.addEdgeGeometryHandler(w,function(K,W){null!=K.sourcePoint&&(K.sourcePoint.y=b.fromUnit(W))});var M=this.addEdgeGeometryHandler(C,function(K,W){null!=K.targetPoint&&(K.targetPoint.x=b.fromUnit(W))});var Q=this.addEdgeGeometryHandler(D,function(K,W){null!=K.targetPoint&&(K.targetPoint.y=b.fromUnit(W))});e.getModel().addListener(mxEvent.CHANGE,E);this.listeners.push({destroy:function(){e.getModel().removeListener(E)}});E()};TextFormatPanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);this.init()};mxUtils.extend(TextFormatPanel,BaseFormatPanel);TextFormatPanel.prototype.init=function(){this.container.appendChild(this.addFont(this.createPanel()));this.container.appendChild(this.addFontOps(this.createPanel()))};TextFormatPanel.prototype.addFontOps=function(a){0==this.addActions(a,["removeFormat"])&&(a.style.display="none");return a};TextFormatPanel.prototype.addFont=function(a){function b(q){q=null!=q?q.fontSize:null;return null!=q&&"px"==q.substring(q.length-2)?parseFloat(q):mxConstants.DEFAULT_FONTSIZE}function f(q,A){if(null!=q&&""!=q.textContent){q.style.lineHeight="";var B=mxUtils.getCurrentStyle(q);parseFloat(B.fontSize)*A/100!=parseFloat(B.lineHeight)?q.style.lineHeight=A+"%":""==q.getAttribute("style")&&q.removeAttribute("style")}}function e(q,A){A?q.classList.add("geActiveItem"):q.classList.remove("geActiveItem")}var g=-this.editorUi,d=g.editor.graph,h=g.getSelectionState(),m=this.createTitle(mxResources.get("font"));a.appendChild(m);m=this.createPanel();m.className="geFormatEntry";if(d.cellEditor.isContentEditing()){var p=m.cloneNode(),k=g.toolbar.addMenu(g.menus.get("formatBlock"),mxResources.get("style"),null,p);this.addArrow(k);k.style.margin="0px";k.style.position="relative";k.classList.add("geFullWidthElement");a.appendChild(p)}k=m.cloneNode(!1);a.appendChild(k);p=this.createPanel();var v=g.toolbar.addMenu(g.menus.get("fontFamily"),-"Helvetica",null,k);this.addArrow(v);v.style.margin="0px";v.style.position="relative";v.classList.add("geFullWidthElement");"inherit"==h.style[mxConstants.STYLE_FONTFAMILY]&&(k.style.display="none");k=m.cloneNode(!1);var w=g.toolbar.addItems(["bold","italic","underline"],k,!0,[Editor.boldImage,Editor.italicImage,Editor.underlineImage]);w[0].setAttribute("title",mxResources.get("bold")+" ("+g.actions.get("bold").shortcut+")");w[1].setAttribute("title",mxResources.get("italic")+" ("+g.actions.get("italic").shortcut++this.editorUi,d=g.editor.graph,h=g.getSelectionState(),m=this.createTitle(mxResources.get("font"));a.appendChild(m);m=this.createPanel();m.className="geFormatEntry";if(d.cellEditor.isContentEditing()){var p=m.cloneNode(),k=g.toolbar.addMenu(g.menus.get("formatBlock"),mxResources.get("style"),null,p);this.addArrow(k);k.style.margin="0px";k.style.position="relative";k.classList.add("geFullWidthElement");a.appendChild(p)}k=m.cloneNode(!1);a.appendChild(k);p=this.createPanel();var u=g.toolbar.addMenu(g.menus.get("fontFamily"),+"Helvetica",null,k);this.addArrow(u);u.style.margin="0px";u.style.position="relative";u.classList.add("geFullWidthElement");"inherit"==h.style[mxConstants.STYLE_FONTFAMILY]&&(k.style.display="none");k=m.cloneNode(!1);var w=g.toolbar.addItems(["bold","italic","underline"],k,!0,[Editor.boldImage,Editor.italicImage,Editor.underlineImage]);w[0].setAttribute("title",mxResources.get("bold")+" ("+g.actions.get("bold").shortcut+")");w[1].setAttribute("title",mxResources.get("italic")+" ("+g.actions.get("italic").shortcut+")");w[2].setAttribute("title",mxResources.get("underline")+" ("+g.actions.get("underline").shortcut+")");var y=g.toolbar.addItems(["vertical"],k,!0,[Editor.verticalTextImage])[0];a.appendChild(k);var C=m.cloneNode(!1),D=function(q){return function(){return q()}},E=g.addButton(Editor.alignLeftImage,mxResources.get("left"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_LEFT,q);g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_LEFT],"cells",h.cells))}:D(g.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_LEFT])),C),G=g.addButton(Editor.alignCenterImage,mxResources.get("center"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_CENTER,q);g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_CENTER],"cells",h.cells))}:D(g.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_CENTER])),C),J=g.addButton(Editor.alignRightImage,mxResources.get("right"),d.cellEditor.isContentEditing()?function(q){d.cellEditor.alignText(mxConstants.ALIGN_RIGHT,q);g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ALIGN],"values",[mxConstants.ALIGN_RIGHT],"cells",h.cells))}:D(g.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);d.cellEditor.isContentEditing()&&(W=g.addButton(Editor.strikethroughImage,mxResources.get("strikethrough"),function(){document.execCommand("strikeThrough",-!1,null)},k));var M=g.addButton(Editor.alignTopImage,mxResources.get("top"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),Q=g.addButton(Editor.alignMiddleImage,mxResources.get("middle"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_MIDDLE])),C),L=g.addButton(Editor.alignBottomImage,mxResources.get("bottom"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),-C);a.appendChild(C);var W,X,T,N;if(d.cellEditor.isContentEditing()){M.style.display="none";Q.style.display="none";L.style.display="none";y.style.display="none";var ca=g.addButton(Editor.alignJustifyImage,mxResources.get("block"),function(){document.execCommand("justifyfull",!1,null)},C);ca.style.marginRight="9px";var H=g.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C);H.style.marginLeft="10px";var S=g.addButton(Editor.superscriptImage,+!1,null)},k));var M=g.addButton(Editor.alignTopImage,mxResources.get("top"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),Q=g.addButton(Editor.alignMiddleImage,mxResources.get("middle"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_MIDDLE])),C),K=g.addButton(Editor.alignBottomImage,mxResources.get("bottom"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),+C);a.appendChild(C);var W,X,T,N;if(d.cellEditor.isContentEditing()){M.style.display="none";Q.style.display="none";K.style.display="none";y.style.display="none";var ca=g.addButton(Editor.alignJustifyImage,mxResources.get("block"),function(){document.execCommand("justifyfull",!1,null)},C);ca.style.marginRight="9px";var H=g.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},C);H.style.marginLeft="10px";var S=g.addButton(Editor.superscriptImage,mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)",function(){document.execCommand("superscript",!1,null)},C);H.style.marginLeft="10px";D=C.cloneNode(!1);D.style.paddingTop="4px";C=[g.addButton(Editor.orderedListImage,mxResources.get("numberedList"),function(){document.execCommand("insertorderedlist",!1,null)},D),g.addButton(Editor.unorderedListImage,mxResources.get("bulletedList"),function(){document.execCommand("insertunorderedlist",!1,null)},D),g.addButton(Editor.indentImage,mxResources.get("increaseIndent"),function(){document.execCommand("indent",!1,null)},D),g.addButton(Editor.outdentImage,mxResources.get("decreaseIndent"),function(){document.execCommand("outdent",!1,null)},D),g.addButton(Editor.removeFormatImage,mxResources.get("removeFormat"),function(){document.execCommand("removeformat",!1,null)},D),g.addButton(Editor.codeImage,mxResources.get("html"),function(){d.cellEditor.toggleViewMode()},D)];C[C.length-2].style.marginLeft="10px";a.appendChild(D)}else w[2].style.marginRight="12px",J.style.marginRight="12px";C=m.cloneNode(!1);mxUtils.write(C,mxResources.get("position"));var ea=document.createElement("select");ea.style.left="114px";ea.style.width="98px";var la="topLeft top topRight left center right bottomLeft bottom bottomRight".split(" "),O={topLeft:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM],top:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_BOTTOM],topRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_TOP,@@ -3140,38 +3141,38 @@ C=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null"convertToSvg","0");k.style.fontWeight="bold";p.appendChild(k);if(!g.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)k.getElementsByTagName("span")[0].style.maxWidth="172px",k.appendChild(g.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/5165"));k=this.createPanel();k.style.height="86px";C=document.createElement("div");C.style.position="absolute";C.style.width="70px";C.style.marginTop="0px";C.style.fontWeight="bold";mxUtils.write(C,mxResources.get("spacing"));k.appendChild(C);var za=this.addUnitInput(k,this.getUnit(),87,52,function(){db.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ka=this.addUnitInput(k,this.getUnit(),16,52,function(){$a.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());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 Qa=this.addUnitInput(k,this.getUnit(),158,52,function(){Za.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ia=this.addUnitInput(k,this.getUnit(),87,52,function(){eb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ha=this.addUnitInput(k,this.getUnit(),16,52,function(){pb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());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 ra=null,Da=null;-a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(q){var A=""==q.value?120:parseInt(q.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ra&&(d.cellEditor.restoreSelection(ra),ra=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&B==d.cellEditor.textarea){var F=window.getSelection();if(F.getRangeAt&&0<F.rangeCount){var K=F.getRangeAt(0);B=document.createElement("div");B.appendChild(K.extractContents());d.cellEditor.textarea.innerHTML=-"";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();K=new Range;K.selectNodeContents(B);F.addRange(K)}}if(null!=B)for(B!=d.cellEditor.textarea&&f(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),K=0;K<B.length;K++)F.containsNode(B[K],!0)&&f(B[K],A)}q.value=A+" %"},function(q){Da=q;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(A){document.activeElement==d.cellEditor.textarea&&(ra=d.cellEditor.saveSelection())}));mxEvent.addListener(q,"touchstart",function(){document.activeElement==+a.appendChild(this.createRelativeOption(mxResources.get("lineheight"),null,null,function(q){var A=""==q.value?120:parseInt(q.value);A=Math.max(0,isNaN(A)?120:A);if(window.getSelection){null!=ra&&(d.cellEditor.restoreSelection(ra),ra=null);var B=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&B==d.cellEditor.textarea){var F=window.getSelection();if(F.getRangeAt&&0<F.rangeCount){var L=F.getRangeAt(0);B=document.createElement("div");B.appendChild(L.extractContents());d.cellEditor.textarea.innerHTML=+"";d.cellEditor.textarea.appendChild(B);F.removeAllRanges();L=new Range;L.selectNodeContents(B);F.addRange(L)}}if(null!=B)for(B!=d.cellEditor.textarea&&f(B,A),B=B.getElementsByTagName("*"),F=window.getSelection(),L=0;L<B.length;L++)F.containsNode(B[L],!0)&&f(B[L],A)}q.value=A+" %"},function(q){Da=q;mxEvent.addGestureListeners(q,mxUtils.bind(this,function(A){document.activeElement==d.cellEditor.textarea&&(ra=d.cellEditor.saveSelection())}));mxEvent.addListener(q,"touchstart",function(){document.activeElement==d.cellEditor.textarea&&(ra=d.cellEditor.saveSelection())});q.value="120 %"}));p=m.cloneNode(!1);g.toolbar.addItems(["link","image"],p,!0,[Editor.linkImage,Editor.imageImage]);C=[g.addButton(Editor.horizontalRuleImage,mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1)},p),g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(q){g.menus.addInsertTableItem(q,null,null,!1)})),null,Editor.tableImage,p)];k=this.createPanel();k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(p);a.appendChild(k);k=m.cloneNode(!1);C=[g.addButton(Editor.addColumnLeftImage,mxResources.get("insertColumnBefore"),mxUtils.bind(this,function(){try{null!=X&&d.insertColumn(X,null!=T?T.cellIndex:0)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.addColumnRightImage,mxResources.get("insertColumnAfter"),mxUtils.bind(this,function(){try{null!=X&&d.insertColumn(X,null!=T?T.cellIndex+1:-1)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.removeColumnImage,mxResources.get("deleteColumn"),mxUtils.bind(this,function(){try{null!=X&&null!=T&&d.deleteColumn(X,T.cellIndex)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.addRowAboveImage,mxResources.get("insertRowBefore"),mxUtils.bind(this,function(){try{null!=X&&null!=N&&d.insertRow(X,N.sectionRowIndex)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=X&&null!=N&&d.insertRow(X,N.sectionRowIndex+1)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.removeRowImage,-mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=X&&null!=N&&d.deleteRow(X,N.sectionRowIndex)}catch(q){g.handleError(q)}}),k)];C[2].style.marginRight="10px";p=this.createPanel();p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(k);m=m.cloneNode(!1);C=[g.addButton(Editor.strokeColorImage,mxResources.get("borderColor"),mxUtils.bind(this,function(q){if(null!=X){var A=X.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,K,-R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(K).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});g.pickColor(A,function(B){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(K){K.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),g.addButton(Editor.fillColorImage,-mxResources.get("backgroundColor"),mxUtils.bind(this,function(q){if(null!=X){var A=X.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,K,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(K).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});g.pickColor(A,function(B){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(K){K.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?+mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=X&&null!=N&&d.deleteRow(X,N.sectionRowIndex)}catch(q){g.handleError(q)}}),k)];C[2].style.marginRight="10px";p=this.createPanel();p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(k);m=m.cloneNode(!1);C=[g.addButton(Editor.strokeColorImage,mxResources.get("borderColor"),mxUtils.bind(this,function(q){if(null!=X){var A=X.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,L,+R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(L).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});g.pickColor(A,function(B){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(L){L.style.border=null});null==B||B==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+B,F.style.borderCollapse="collapse")})}}),m),g.addButton(Editor.fillColorImage,+mxResources.get("backgroundColor"),mxUtils.bind(this,function(q){if(null!=X){var A=X.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(B,F,L,R){return"#"+("0"+Number(F).toString(16)).substr(-2)+("0"+Number(L).toString(16)).substr(-2)+("0"+Number(R).toString(16)).substr(-2)});g.pickColor(A,function(B){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(L){L.style.backgroundColor=null});F.style.backgroundColor=null==B||B==mxConstants.NONE?"":B})}}),m),g.addButton(Editor.spacingImage,mxResources.get("spacing"),function(){if(null!=X){var q=X.getAttribute("cellPadding")||0;q=new FilenameDialog(g,q,mxResources.get("apply"),mxUtils.bind(this,function(A){null!=A&&0<A.length?X.setAttribute("cellPadding",A):X.removeAttribute("cellPadding")}),mxResources.get("spacing"));g.showDialog(q.container,300,80,!0,!0);q.init()}},m),g.addButton(Editor.alignLeftImage,mxResources.get("left"),function(){null!=X&&X.setAttribute("align","left")},m),g.addButton(Editor.alignCenterImage,mxResources.get("center"),function(){null!=X&&X.setAttribute("align","center")},m),g.addButton(Editor.alignRightImage,mxResources.get("right"),function(){null!=X&&X.setAttribute("align","right")},m)];C[2].style.marginRight="10px";p.appendChild(m);a.appendChild(p);var Va=p}else a.appendChild(p),a.appendChild(this.createRelativeOption(mxResources.get("opacity"),mxConstants.STYLE_TEXT_OPACITY)),a.appendChild(k);for(D=0;3>D;D++)(function(q){mxEvent.addListener(w[q],"click",function(){e(w[q],""==w[q].style.backgroundImage)})})(D);-var Wa=mxUtils.bind(this,function(q,A,B){h=g.getSelectionState();q=mxUtils.getValue(h.style,mxConstants.STYLE_FONTSTYLE,0);e(w[0],(q&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);e(w[1],(q&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);e(w[2],(q&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);g.toolbar.setMenuText(v,mxUtils.getValue(h.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont));e(y,"0"==mxUtils.getValue(h.style,mxConstants.STYLE_HORIZONTAL,"1"));if(B||document.activeElement!=-ta)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ta.value=isNaN(q)?"":q+" "+Editor.fontSizeUnit;q=mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);e(E,q==mxConstants.ALIGN_LEFT);e(G,q==mxConstants.ALIGN_CENTER);e(J,q==mxConstants.ALIGN_RIGHT);q=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);e(M,q==mxConstants.ALIGN_TOP);e(Q,q==mxConstants.ALIGN_MIDDLE);e(L,q==mxConstants.ALIGN_BOTTOM);+var Wa=mxUtils.bind(this,function(q,A,B){h=g.getSelectionState();q=mxUtils.getValue(h.style,mxConstants.STYLE_FONTSTYLE,0);e(w[0],(q&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD);e(w[1],(q&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC);e(w[2],(q&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE);g.toolbar.setMenuText(u,mxUtils.getValue(h.style,mxConstants.STYLE_FONTFAMILY,Menus.prototype.defaultFont));e(y,"0"==mxUtils.getValue(h.style,mxConstants.STYLE_HORIZONTAL,"1"));if(B||document.activeElement!=+ta)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize)),ta.value=isNaN(q)?"":q+" "+Editor.fontSizeUnit;q=mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER);e(E,q==mxConstants.ALIGN_LEFT);e(G,q==mxConstants.ALIGN_CENTER);e(J,q==mxConstants.ALIGN_RIGHT);q=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);e(M,q==mxConstants.ALIGN_TOP);e(Q,q==mxConstants.ALIGN_MIDDLE);e(K,q==mxConstants.ALIGN_BOTTOM);q=mxUtils.getValue(h.style,mxConstants.STYLE_LABEL_POSITION,mxConstants.ALIGN_CENTER);A=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.ALIGN_MIDDLE);ea.value=q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_TOP?"topLeft":q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_TOP?"top":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_TOP?"topRight":q==mxConstants.ALIGN_LEFT&&A==mxConstants.ALIGN_BOTTOM?"bottomLeft":q==mxConstants.ALIGN_CENTER&&A==mxConstants.ALIGN_BOTTOM?"bottom":q==mxConstants.ALIGN_RIGHT&&A==mxConstants.ALIGN_BOTTOM?"bottomRight":q==mxConstants.ALIGN_LEFT?"left":q==mxConstants.ALIGN_RIGHT?"right":"center";q=mxUtils.getValue(h.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);q==mxConstants.TEXT_DIRECTION_RTL?Y.value="rightToLeft":q==mxConstants.TEXT_DIRECTION_LTR?Y.value="leftToRight":q!=mxConstants.TEXT_DIRECTION_AUTO&&h.html?q==mxConstants.TEXT_DIRECTION_VERTICAL_LR?Y.value="vertical-leftToRight":q==mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(Y.value="vertical-rightToLeft"):Y.value="automatic";if(B||document.activeElement!=Ka)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING,2)),Ka.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=za)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_TOP,0)),za.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ha)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ha.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ia)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ia.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Qa)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_LEFT,0)),Qa.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit()});var $a=this.installInputHandler(Ka,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var db=this.installInputHandler(za,mxConstants.STYLE_SPACING_TOP,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ha,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var eb=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_BOTTOM,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var Za=this.installInputHandler(Qa,mxConstants.STYLE_SPACING_LEFT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(ta,Wa);this.addKeyHandler(Ka,Wa);this.addKeyHandler(za,Wa);this.addKeyHandler(Ha,Wa);this.addKeyHandler(Ia,Wa);this.addKeyHandler(Qa,Wa);d.getModel().addListener(mxEvent.CHANGE,Wa);this.listeners.push({destroy:function(){d.getModel().removeListener(Wa)}});Wa();if(d.cellEditor.isContentEditing()){var gb=null,bb=!1;m=mxUtils.bind(this,function(){bb||(bb=!0,window.setTimeout(mxUtils.bind(this,function(){var q=d.getSelectedEditingElement();if(null!=q&&null!=d.cellEditor.textarea){var A=function(Aa,Ga){if(null!=Aa&&null!=Ga){if(Aa==Ga)return!0;if(Aa.length>-Ga.length+1)return Aa.substring(Aa.length-Ga.length-1,Aa.length)=="-"+Ga}return!1},B=function(Aa){if(null!=d.getParentByName(q,Aa,d.cellEditor.textarea))return!0;for(var Ga=q;null!=Ga&&1==Ga.childNodes.length;)if(Ga=Ga.childNodes[0],Ga.nodeName==Aa)return!0;return!1},F=function(Aa){for(;null!=Aa&&Aa!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(Aa).display)return Aa;Aa=Aa.parentNode}return null},K=mxUtils.getCurrentStyle(q),R=q==d.cellEditor.textarea||""==q.style.lineHeight?null:q.style.lineHeight,-Z=q==d.cellEditor.textarea||""==q.style.fontSize?null:b(K);if(window.getSelection)for(var ja=q.getElementsByTagName("*"),fa=window.getSelection(),ka=0;ka<ja.length&&(!fa.containsNode(ja[ka],!0)||null==ja[ka].style||(null==Z&&""!=ja[ka].style.fontSize&&(Z=parseFloat(ja[ka].style.fontSize)),null==R&&""!=ja[ka].style.lineHeight&&(R=ja[ka].style.lineHeight),null==Z||null==R));ka++);null==Z&&(Z=b(K));if(null==R)for(ja=q;null!=ja&&ja!=d.cellEditor.textarea.parentNode;){if(null!=ja.style&&""!=ja.style.lineHeight){R=-ja.style.lineHeight;break}ja=ja.parentNode}if(null!=K){e(w[0],"bold"==K.fontWeight||400<K.fontWeight||B("B")||B("STRONG"));e(w[1],"italic"==K.fontStyle||B("I")||B("EM"));e(w[2],"underline"==K.textDecorationLine||B("U"));e(W,"line-through"==K.textDecorationLine||B("STRIKE"));e(S,B("SUP"));e(H,B("SUB"));var va=F(q);if(null!=va){B=function(Aa,Ga){Na.push({name:Aa,dispName:Ga,type:"string",getValue:function(){return Ma[Aa]},valueChanged:function(wa,ua){var Ta=va.style,Ra=wa;parseInt(Ra)==Ra&&(Ra+="px",+Ga.length+1)return Aa.substring(Aa.length-Ga.length-1,Aa.length)=="-"+Ga}return!1},B=function(Aa){if(null!=d.getParentByName(q,Aa,d.cellEditor.textarea))return!0;for(var Ga=q;null!=Ga&&1==Ga.childNodes.length;)if(Ga=Ga.childNodes[0],Ga.nodeName==Aa)return!0;return!1},F=function(Aa){for(;null!=Aa&&Aa!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(Aa).display)return Aa;Aa=Aa.parentNode}return null},L=mxUtils.getCurrentStyle(q),R=q==d.cellEditor.textarea||""==q.style.lineHeight?null:q.style.lineHeight,+Z=q==d.cellEditor.textarea||""==q.style.fontSize?null:b(L);if(window.getSelection)for(var ja=q.getElementsByTagName("*"),fa=window.getSelection(),ka=0;ka<ja.length&&(!fa.containsNode(ja[ka],!0)||null==ja[ka].style||(null==Z&&""!=ja[ka].style.fontSize&&(Z=parseFloat(ja[ka].style.fontSize)),null==R&&""!=ja[ka].style.lineHeight&&(R=ja[ka].style.lineHeight),null==Z||null==R));ka++);null==Z&&(Z=b(L));if(null==R)for(ja=q;null!=ja&&ja!=d.cellEditor.textarea.parentNode;){if(null!=ja.style&&""!=ja.style.lineHeight){R=+ja.style.lineHeight;break}ja=ja.parentNode}if(null!=L){e(w[0],"bold"==L.fontWeight||400<L.fontWeight||B("B")||B("STRONG"));e(w[1],"italic"==L.fontStyle||B("I")||B("EM"));e(w[2],"underline"==L.textDecorationLine||B("U"));e(W,"line-through"==L.textDecorationLine||B("STRIKE"));e(S,B("SUP"));e(H,B("SUB"));var va=F(q);if(null!=va){B=function(Aa,Ga){Na.push({name:Aa,dispName:Ga,type:"string",getValue:function(){return Ma[Aa]},valueChanged:function(wa,ua){var Ta=va.style,Ra=wa;parseInt(Ra)==Ra&&(Ra+="px",null!=ua&&(ua.value=Ra));Ta[Aa]=Ra;""==wa&&null!=ua&&(ua.value=Ma[Aa])}})};var Ma=mxUtils.getCurrentStyle(va),Na=[];B("paddingTop","Padding Top");B("paddingRight","Padding Right");B("paddingLeft","Padding Left");B("paddingBottom","Padding Bottom");B("marginTop","Margin Top");B("marginRight","Margin Right");B("marginLeft","Margin Left");B("marginBottom","Margin Bottom");B=this.createPanel();this.addProperties(B,Na,h,!0);null!=gb?gb.parentNode.replaceChild(B,gb):a.appendChild(B);gb=B}d.cellEditor.isTableSelected()?-(e(ca,A(K.textAlign,"justify")),e(E,A(K.textAlign,"left")),e(G,A(K.textAlign,"center")),e(J,A(K.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),A(K.textAlign,"justify")?(e(ca,A(K.textAlign,"justify")),e(E,!1),e(G,!1),e(J,!1)):(e(ca,!1),e(E,B==mxConstants.ALIGN_LEFT),e(G,B==mxConstants.ALIGN_CENTER),e(J,B==mxConstants.ALIGN_RIGHT)));X=d.getParentByName(q,"TABLE",d.cellEditor.textarea);N=null==X?null:d.getParentByName(q,"TR",X);-T=null==X?null:d.getParentByNames(q,["TD","TH"],X);Va.style.display=null!=X?"":"none";document.activeElement!=ta&&(ta.value=isNaN(Z)?"":Z+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?Da.value=R.replace("%"," %"):(A=parseFloat(R),isNaN(A)?Da.value="120 %":Da.value=Math.round(100*A)+" %"));null!=ba&&(ma=d.getTextColor(q,!0),ba(ma,!0));null!=aa&&(P=d.getTextColor(q,!1),aa(P,!0));g.toolbar.setMenuText(v,mxUtils.getCssFontFamily(K.fontFamily))}}bb=!1}),0))});mxEvent.addListener(d.cellEditor.textarea,+(e(ca,A(L.textAlign,"justify")),e(E,A(L.textAlign,"left")),e(G,A(L.textAlign,"center")),e(J,A(L.textAlign,"right"))):(B=d.cellEditor.align||mxUtils.getValue(h.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),A(L.textAlign,"justify")?(e(ca,A(L.textAlign,"justify")),e(E,!1),e(G,!1),e(J,!1)):(e(ca,!1),e(E,B==mxConstants.ALIGN_LEFT),e(G,B==mxConstants.ALIGN_CENTER),e(J,B==mxConstants.ALIGN_RIGHT)));X=d.getParentByName(q,"TABLE",d.cellEditor.textarea);N=null==X?null:d.getParentByName(q,"TR",X);+T=null==X?null:d.getParentByNames(q,["TD","TH"],X);Va.style.display=null!=X?"":"none";document.activeElement!=ta&&(ta.value=isNaN(Z)?"":Z+" "+Editor.fontSizeUnit,"string"===typeof R&&0<R.indexOf("%")?Da.value=R.replace("%"," %"):(A=parseFloat(R),isNaN(A)?Da.value="120 %":Da.value=Math.round(100*A)+" %"));null!=ba&&(ma=d.getTextColor(q,!0),ba(ma,!0));null!=aa&&(P=d.getTextColor(q,!1),aa(P,!0));g.toolbar.setMenuText(u,mxUtils.getCssFontFamily(L.fontFamily))}}bb=!1}),0))});mxEvent.addListener(d.cellEditor.textarea,"input",m);mxEvent.addListener(d.cellEditor.textarea,"touchend",m);mxEvent.addListener(d.cellEditor.textarea,"mouseup",m);mxEvent.addListener(d.cellEditor.textarea,"keyup",m);this.listeners.push({destroy:function(){}});m()}return a};StyleFormatPanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);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(""),f=document.createElement("style");mxUtils.setTextContent(f,a);b.body.appendChild(f);return f.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 f=b.style.editableCssRules;if(null!=f){var e=new RegExp(f),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 m="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(f=0;f<v.length;f++)this.addSvgRule(a,v[f],h,k[b],v,f,e,m,p)}}}}catch(w){}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,f,e,g,d,h,m,p){var k=this.editorUi,v=k.editor.graph;h.test(b.selectorText)&&(h=mxUtils.bind(this,function(w,y,C,D){var E=mxUtils.trim(w.style.getPropertyValue(y));if(""!=E&&"url("!=E.substring(0,4)){var G=E;"transparent"==G?G=mxConstants.NONE:(E=mxUtils.isLightDarkColor(G))&&D?D=!1:E||D||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(J){g[d].style.setProperty(y,J==mxConstants.NONE?-"transparent":mxUtils.getLightDarkColor(J).cssText);J="";p&&mxUtils.isLightDarkColor(g[d].style[y])&&(f.documentElement.style.colorScheme="light dark");for(var M=0;M<g.length;M++)J+=g[M].cssText+" ";e.textContent=J;J=mxUtils.getXml(f.documentElement);v.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(J))):Base64.encode(J,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(J){},destroy:function(){}},null,null,null,D);a.appendChild(w);+"darkMode",null),p=""==h.documentElement.style.colorScheme,k=h.getElementsByTagName("style");for(b=0;b<k.length;b++){var u=this.getCssRules(mxUtils.getTextContent(k[b]));for(f=0;f<u.length;f++)this.addSvgRule(a,u[f],h,k[b],u,f,e,m,p)}}}}catch(w){}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,f,e,g,d,h,m,p){var k=this.editorUi,u=k.editor.graph;h.test(b.selectorText)&&(h=mxUtils.bind(this,function(w,y,C,D){var E=mxUtils.trim(w.style.getPropertyValue(y));if(""!=E&&"url("!=E.substring(0,4)){var G=E;"transparent"==G?G=mxConstants.NONE:(E=mxUtils.isLightDarkColor(G))&&D?D=!1:E||D||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(J){g[d].style.setProperty(y,J==mxConstants.NONE?+"transparent":mxUtils.getLightDarkColor(J).cssText);J="";p&&mxUtils.isLightDarkColor(g[d].style[y])&&(f.documentElement.style.colorScheme="light dark");for(var M=0;M<g.length;M++)J+=g[M].cssText+" ";e.textContent=J;J=mxUtils.getXml(f.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(J))):Base64.encode(J,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(J){},destroy:function(){}},null,null,null,D);a.appendChild(w);a.style.display=""}}),h(b,"fill",mxResources.get("fill"),m),h(b,"stroke",mxResources.get("line"),m),h(b,"stop-color",mxResources.get("gradient"),m))};StyleFormatPanel.prototype.addEditOps=function(a){var b=this.editorUi.getSelectionState();if(1==b.cells.length){var f=document.createElement("select");f.style.position="relative";f.style.marginBottom="2px";f.className="geFullWidthElement";var e="edit copyAsText editLink editShape editImage editData copyData pasteData editConnectionPoints editGeometry editTooltip editStyle".split(" "),g=null;if(null!=this.editorUi.sidebar){var d=this.editorUi.sidebar.getKeyStyle(b.cells[0].style);g=this.editorUi.sidebar.getLibsForStyle(d);null!=g||this.editorUi.sidebar.isSearchIndexLoaded()||null==b.style.shape||"mxgraph."!=String(b.style.shape).substring(0,8)||(g=[])}null!=g&&e.push("openLibrary");for(d=0;d<e.length;d++){var h=this.editorUi.actions.get(e[d]);if(null==h||h.enabled){var m=document.createElement("option");m.setAttribute("value",e[d]);var p=mxResources.get(e[d]);mxUtils.write(m,p+"...");null!=h&&null!=h.shortcut&&(p+=" ("+h.shortcut+")");m.setAttribute("title",p);f.appendChild(m)}}1<f.children.length&&(a.appendChild(f),@@ -3179,18 +3180,18 @@ mxEvent.addListener(f,"change",mxUtils.bind(this,function(k){"openLibrary"==f.vae=e.view.getState(e.getSelectionCell()),null!=e&&null!=mxUtils.getValue(e.style,mxConstants.STYLE_IMAGE,null)&&(e=mxUtils.button(mxResources.get("crop")+"...",mxUtils.bind(this,function(k){this.editorUi.actions.get("crop").funct()})),e.setAttribute("title",mxResources.get("crop")),f.style.width="104px",e.style.width="104px",e.style.position="relative",e.style.top="-1px",e.style.marginLeft="2px",e.style.marginBottom="1px",a.appendChild(e))))}return a};StyleFormatPanel.prototype.addFill=function(a){function b(){h.innerHTML="";C=1;for(var E=0;E<Editor.fillStyles.length;E++){var G=document.createElement("option");G.setAttribute("value",Editor.fillStyles[E].val);mxUtils.write(G,Editor.fillStyles[E].dispName);h.appendChild(G)}}var f=this.editorUi,e=f.editor.graph,g=f.getSelectionState(),d=document.createElement("select");d.style.position="absolute";d.style.left="72px";d.style.width="90px";var h=d.cloneNode(!1);mxEvent.addListener(d,"click",function(E){mxEvent.consume(E)});mxEvent.addListener(h,"click",function(E){mxEvent.consume(E)});var m=this.createCellColorOption(mxResources.get("gradient"),mxConstants.STYLE_GRADIENTCOLOR,"default",function(E){d.style.display=null==E||E==mxConstants.NONE?"none":""},function(E){e.updateCellStyles({gradientColor:E},e.getSelectionCells())},e.getDefaultColor(g.style,mxConstants.STYLE_GRADIENTCOLOR,e.shapeForegroundColor,e.shapeBackgroundColor));m.style.fontWeight="bold";var p="image"==g.style.shape?mxConstants.STYLE_IMAGE_BACKGROUND:-mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),p,"default",null,mxUtils.bind(this,function(E){e.setCellStyles(p,E,g.cells)}),e.getDefaultColor(g.style,p,e.shapeBackgroundColor,e.shapeForegroundColor));k.style.fontWeight="bold";var v=mxUtils.getValue(g.style,p,null);m.style.display=null!=v&&v!=mxConstants.NONE&&g.fill&&"image"!=g.style.shape?"":"none";var w=[mxConstants.DIRECTION_NORTH,mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,-mxConstants.DIRECTION_RADIAL];for(v=0;v<w.length;v++){var y=document.createElement("option");y.setAttribute("value",w[v]);mxUtils.write(y,mxResources.get(w[v]));d.appendChild(y)}m.appendChild(d);var C;b();g.gradient&&k.appendChild(h);var D=mxUtils.bind(this,function(){g=f.getSelectionState();var E=mxUtils.getValue(g.style,mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(g.style,"fillStyle","auto");""==E&&(E=mxConstants.DIRECTION_SOUTH);d.value=E;a.style.display=+mxConstants.STYLE_FILLCOLOR,k=this.createCellColorOption(mxResources.get("fill"),p,"default",null,mxUtils.bind(this,function(E){e.setCellStyles(p,E,g.cells)}),e.getDefaultColor(g.style,p,e.shapeBackgroundColor,e.shapeForegroundColor));k.style.fontWeight="bold";var u=mxUtils.getValue(g.style,p,null);m.style.display=null!=u&&u!=mxConstants.NONE&&g.fill&&"image"!=g.style.shape?"":"none";var w=[mxConstants.DIRECTION_NORTH,mxConstants.DIRECTION_EAST,mxConstants.DIRECTION_SOUTH,mxConstants.DIRECTION_WEST,+mxConstants.DIRECTION_RADIAL];for(u=0;u<w.length;u++){var y=document.createElement("option");y.setAttribute("value",w[u]);mxUtils.write(y,mxResources.get(w[u]));d.appendChild(y)}m.appendChild(d);var C;b();g.gradient&&k.appendChild(h);var D=mxUtils.bind(this,function(){g=f.getSelectionState();var E=mxUtils.getValue(g.style,mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(g.style,"fillStyle","auto");""==E&&(E=mxConstants.DIRECTION_SOUTH);d.value=E;a.style.display=g.fill?"":"none";E=mxUtils.getValue(g.style,p,null);if(g.fill&&null!=E&&E!=mxConstants.NONE&&"filledEdge"!=g.style.shape){if("1"==g.style.sketch){if(2!=C){h.innerHTML="";C=2;for(E=0;E<Editor.roughFillStyles.length;E++){var J=document.createElement("option");J.setAttribute("value",Editor.roughFillStyles[E].val);mxUtils.write(J,Editor.roughFillStyles[E].dispName);h.appendChild(J)}h.value="auto"}}else 1!=C&&b();h.value=G;h.value||(G="auto",h.value=G);h.style.display="1"==g.style.sketch||"none"==d.style.display?"":"none";m.style.display=!g.gradient||g.containsImage||"1"==g.style.sketch&&"solid"!=G&&"auto"!=G?"none":""}else h.style.display="none",m.style.display="none"});e.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){e.getModel().removeListener(D)}});D();mxEvent.addListener(d,"change",function(E){e.setCellStyles(mxConstants.STYLE_GRADIENT_DIRECTION,d.value,g.cells);f.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_GRADIENT_DIRECTION],"values",[d.value],-"cells",g.cells));mxEvent.consume(E)});mxEvent.addListener(h,"change",function(E){e.setCellStyles("fillStyle",h.value,g.cells);f.fireEvent(new mxEventObject("styleChanged","keys",["fillStyle"],"values",[h.value],"cells",g.cells));mxEvent.consume(E)});a.appendChild(k);a.appendChild(m);k=this.getCustomColors();for(v=0;v<k.length;v++)a.appendChild(this.createCellColorOption(k[v].title,k[v].key,k[v].defaultValue,null,null,k[v].defaultColorValue));k=mxUtils.bind(this,function(E,G,J){if(null!=E){E=E.split(",");-G=null!=G?G.split(","):null;for(var M=0;M<E.length;M++){var Q=E[M].replace(/([a-z])([A-Z])/g,"$1 $2"),L=null!=G?G[mxUtils.mod(M,G.length)]:"default";a.appendChild(this.createCellColorOption(Q.charAt(0).toUpperCase()+Q.substring(1),E[M],L,null,null,J))}}});k(g.style.fillColorStyles,g.style.defaultFillColors,e.shapeBackgroundColor);k(g.style.strokeColorStyles,g.style.defaultStrokeColors,e.shapeForegroundColor);return a};+"cells",g.cells));mxEvent.consume(E)});mxEvent.addListener(h,"change",function(E){e.setCellStyles("fillStyle",h.value,g.cells);f.fireEvent(new mxEventObject("styleChanged","keys",["fillStyle"],"values",[h.value],"cells",g.cells));mxEvent.consume(E)});a.appendChild(k);a.appendChild(m);k=this.getCustomColors();for(u=0;u<k.length;u++)a.appendChild(this.createCellColorOption(k[u].title,k[u].key,k[u].defaultValue,null,null,k[u].defaultColorValue));k=mxUtils.bind(this,function(E,G,J){if(null!=E){E=E.split(",");+G=null!=G?G.split(","):null;for(var M=0;M<E.length;M++){var Q=E[M].replace(/([a-z])([A-Z])/g,"$1 $2"),K=null!=G?G[mxUtils.mod(M,G.length)]:null,W=null!=K?K:"default";a.appendChild(this.createCellColorOption(Q.charAt(0).toUpperCase()+Q.substring(1),E[M],W,null,null,J,K))}}});k(g.style.fillColorStyles,g.style.defaultFillColors,e.shapeBackgroundColor);k(g.style.strokeColorStyles,g.style.defaultStrokeColors,e.shapeForegroundColor);return a};StyleFormatPanel.prototype.getCustomColors=function(){var a=this.editorUi.getSelectionState(),b=[];if(null!=a.customProperties)for(var f in a.customProperties){var e=a.customProperties[f];null!=e&&"color"==e.type&&e.primary&&b.push({title:e.dispName,defaultValue:null==e.defVal?"#000000":e.defVal,key:e.name})}a.swimlane&&(a=this.editorUi.editor.graph,b.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default",defaultColorValue:a.shapeBackgroundColor}));return b};StyleFormatPanel.prototype.addStroke=function(a){function b(P){var ba=e.fromUnit(parseFloat(M.value));ba=Math.min(999,Math.max(0,isNaN(ba)?1:ba));ba!=mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ba,h.cells),g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ba],"cells",h.cells)));M.value=e.inUnit(ba)+" "+e.getUnit();mxEvent.consume(P)}function f(P){var ba=e.fromUnit(parseFloat(Q.value));ba=Math.min(999,Math.max(0,isNaN(ba)?1:ba));ba!=mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)&&(d.setCellStyles(mxConstants.STYLE_STROKEWIDTH,ba,h.cells),g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_STROKEWIDTH],"values",[ba],"cells",h.cells)));Q.value=e.inUnit(ba)+" "+e.getUnit();mxEvent.consume(P)}var e=this,g=this.editorUi,d=g.editor.graph,h=g.getSelectionState(),m=document.createElement("div");m.className="geFormatEntry";h.stroke||(m.style.display="none");var p=document.createElement("select");-p.style.position="absolute";p.style.left="72px";p.style.width="90px";for(var k=["sharp","rounded","curved"],v=0;v<k.length;v++){var w=document.createElement("option");w.setAttribute("value",k[v]);mxUtils.write(w,mxResources.get(k[v]));p.appendChild(w)}mxEvent.addListener(p,"change",function(P){d.getModel().beginUpdate();try{var ba=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],ma=["0","0"];"rounded"==p.value?ma=["1","0"]:"curved"==p.value&&(ma=["0","1"]);for(var Ja=0;Ja<ba.length;Ja++)d.setCellStyles(ba[Ja],-ma[Ja],h.cells);g.fireEvent(new mxEventObject("styleChanged","keys",ba,"values",ma,"cells",h.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(P)});mxEvent.addListener(p,"click",function(P){mxEvent.consume(P)});var y="image"==h.style.shape?mxConstants.STYLE_IMAGE_BORDER:mxConstants.STYLE_STROKECOLOR;k="image"==h.style.shape?mxResources.get("border"):mxResources.get("line");v=this.createCellColorOption(k,y,"default",null,mxUtils.bind(this,function(P){d.setCellStyles(y,P,h.cells);if(null==P||-P==mxConstants.NONE){P=[];for(var ba=0;ba<h.cells.length;ba++)(d.isTableCell(h.cells[ba])||d.isTableRow(h.cells[ba]))&&P.push(h.cells[ba]);0<P.length&&d.setCellStyles(y,"inherit",P)}}),d.shapeForegroundColor);v.style.fontWeight="bold";v.appendChild(p);var C=m.cloneNode(!1);C.style.position="relative";var D=mxUtils.bind(this,function(P,ba,ma,Ja,na){P=this.editorUi.menus.styleChange(P,"",Ja,na,"",null);Ja=document.createElement("div");na=ma.split(" ");2==na.length?(ma=parseInt(na[0])+parseInt(na[1]),+p.style.position="absolute";p.style.left="72px";p.style.width="90px";for(var k=["sharp","rounded","curved"],u=0;u<k.length;u++){var w=document.createElement("option");w.setAttribute("value",k[u]);mxUtils.write(w,mxResources.get(k[u]));p.appendChild(w)}mxEvent.addListener(p,"change",function(P){d.getModel().beginUpdate();try{var ba=[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],ma=["0","0"];"rounded"==p.value?ma=["1","0"]:"curved"==p.value&&(ma=["0","1"]);for(var Ja=0;Ja<ba.length;Ja++)d.setCellStyles(ba[Ja],+ma[Ja],h.cells);g.fireEvent(new mxEventObject("styleChanged","keys",ba,"values",ma,"cells",h.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(P)});mxEvent.addListener(p,"click",function(P){mxEvent.consume(P)});var y="image"==h.style.shape?mxConstants.STYLE_IMAGE_BORDER:mxConstants.STYLE_STROKECOLOR;k="image"==h.style.shape?mxResources.get("border"):mxResources.get("line");u=this.createCellColorOption(k,y,"default",null,mxUtils.bind(this,function(P){d.setCellStyles(y,P,h.cells);if(null==P||+P==mxConstants.NONE){P=[];for(var ba=0;ba<h.cells.length;ba++)(d.isTableCell(h.cells[ba])||d.isTableRow(h.cells[ba]))&&P.push(h.cells[ba]);0<P.length&&d.setCellStyles(y,"inherit",P)}}),d.shapeForegroundColor);u.style.fontWeight="bold";u.appendChild(p);var C=m.cloneNode(!1);C.style.position="relative";var D=mxUtils.bind(this,function(P,ba,ma,Ja,na){P=this.editorUi.menus.styleChange(P,"",Ja,na,"",null);Ja=document.createElement("div");na=ma.split(" ");2==na.length?(ma=parseInt(na[0])+parseInt(na[1]),na=parseInt(na[0])/ma*100,Ja.style.borderBottomStyle="none",Ja.style.backgroundImage="linear-gradient(to right, black "+na+"%, transparent 0%)",Ja.style.backgroundSize=ma+"px 1px"):Ja.style.borderBottomStyle=ma;P.firstChild.firstChild.className="geStyleMenuItem";P.firstChild.firstChild.style.width=ba+"px";P.firstChild.firstChild.appendChild(Ja);return P}),E=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){D(P,110,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));D(P,110,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");D(P,110,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");D(P,110,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");D(P,110,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");D(P,110,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");D(P,110,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 4"]).setAttribute("title",mxResources.get("dotted")+" (3)")})),"",null,C),G=C.cloneNode(!1),J=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){var ba=[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,@@ -3199,7 +3200,7 @@ mxConstants.STYLE_DASHED,"width"];Format.processMenuIcon(this.editorUi.menus.sty"",ba,["pipe",null,null,null,null],"",null,null,null,!0,Format.pipeEdgeImage.src)).setAttribute("title","Pipe");Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,["wire",null,null,"1",null],"",null,null,null,!0,Format.wireEdgeImage.src)).setAttribute("title","Wire")})),"",null,G);w=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){D(P,40,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));D(P,40,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");D(P,40,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");D(P,40,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");D(P,40,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");D(P,40,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");D(P,40,"1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 4"]).setAttribute("title",mxResources.get("dotted")+" (3)")})),"",null,G);k=C.cloneNode(!1);var M=document.createElement("input");M.style.position="absolute";M.style.width="52px";M.style.left="148px";M.setAttribute("title",mxResources.get("linewidth"));-C.appendChild(M);var Q=M.cloneNode(!0);Q.style.width="56px";Q.style.left="144px";G.appendChild(Q);var L=this.createStepper(M,b,this.getUnitStep(),null,null,this.isFloatUnit());L.style.display=M.style.display;C.appendChild(L);L=this.createStepper(Q,f,this.getUnitStep(),null,null,this.isFloatUnit());L.style.display=Q.style.display;G.appendChild(L);mxEvent.addListener(M,"blur",b);mxEvent.addListener(M,"change",b);mxEvent.addListener(Q,"blur",f);mxEvent.addListener(Q,"change",f);var W=g.toolbar.addMenu(new Menu(mxUtils.bind(this,+C.appendChild(M);var Q=M.cloneNode(!0);Q.style.width="56px";Q.style.left="144px";G.appendChild(Q);var K=this.createStepper(M,b,this.getUnitStep(),null,null,this.isFloatUnit());K.style.display=M.style.display;C.appendChild(K);K=this.createStepper(Q,f,this.getUnitStep(),null,null,this.isFloatUnit());K.style.display=Q.style.display;G.appendChild(K);mxEvent.addListener(M,"blur",b);mxEvent.addListener(M,"change",b);mxEvent.addListener(Q,"blur",f);mxEvent.addListener(Q,"change",f);var W=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){"arrow"!=h.style.shape&&(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],null,null,!0,Format.straightImage.src)).setAttribute("title",mxResources.get("straight")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],null,null,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],null,null,!0,Format.horizontalElbowImage.src)).setAttribute("title",mxResources.get("vertical")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,null,!0,Format.verticalElbowImage.src)).setAttribute("title",mxResources.get("horizontal")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],null,null,!0,Format.horizontalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,@@ -3233,10 +3234,10 @@ Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STY!1,Format.ERzeroToOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src),"scaleX(-1)")):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW],[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)").setAttribute("title",mxResources.get("block")),P.div.style.width="40px",window.setTimeout(mxUtils.bind(this,function(){null!=P.div&&mxUtils.fit(P.div)}),0)})),"",null,k);J.style.width="67px";J.style.marginRight="2px";w.style.width="67px";w.style.marginRight="2px";W.style.width="67px";W.style.marginRight="2px";X.style.width="67px";X.style.marginRight="2px";T.style.width="67px";T.style.marginRight="2px";this.addArrow(J).appendChild(document.createElement("div"));this.addArrow(W).appendChild(document.createElement("div"));this.addArrow(X);this.addArrow(T);E.style.width="142px";E=this.addArrow(E);w=this.addArrow(w);var N=document.createElement("div");N.className="gePatternPreview";N.style.width="100px";N.style.borderBottomStyle=-"solid";E.appendChild(N);var ca=document.createElement("div");ca.className="gePatternPreview";ca.style.width="36px";ca.style.borderBottomStyle="solid";w.appendChild(ca);a.appendChild(v);a.appendChild(G);a.appendChild(C);v=C.cloneNode(!1);v.style.display="block";v.style.height="60px";v.style.paddingTop="2px";w=document.createElement("div");w.style.position="absolute";w.style.maxWidth="78px";w.style.overflow="hidden";w.style.textOverflow="ellipsis";w.style.marginTop="4px";w.style.fontWeight="normal";-mxUtils.write(w,mxResources.get("size"));v.appendChild(w);var H=this.addUnitInput(v,this.getUnit(),82,52,function(){Y.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),S=this.addUnitInput(v,this.getUnit(),16,52,function(){ia.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(v);E=document.createElement("div");E.style.height="8px";v.appendChild(E);w=w.cloneNode(!1);mxUtils.write(w,mxResources.get("spacing"));v.appendChild(w);var ea=this.addUnitInput(v,-this.getUnit(),82,52,function(){ha.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),la=this.addUnitInput(v,this.getUnit(),16,52,function(){ta.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(v);this.addLabel(v,mxResources.get("linestart"),82,62).style.fontSize="10px";this.addLabel(v,mxResources.get("lineend"),16,62).style.fontSize="10px";mxUtils.br(v);m=m.cloneNode(!1);m.className="geFormatEntry";w=document.createElement("div");mxUtils.write(w,-mxResources.get("perimeter"));m.appendChild(w);var O=this.addUnitInput(m,this.getUnit(),16,52,function(){aa.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());h.edges.length==h.cells.length?(a.appendChild(k),a.appendChild(v)):h.vertices.length==h.cells.length&&a.appendChild(m);var V=mxUtils.bind(this,function(P,ba,ma){function Ja(na,ya,za,Ka){za=za.getElementsByTagName("div")[0];null!=za&&g.updateCssForMarker(za,Ka,h.style.shape,na,ya);return za}h=g.getSelectionState();if(ma||+"solid";E.appendChild(N);var ca=document.createElement("div");ca.className="gePatternPreview";ca.style.width="36px";ca.style.borderBottomStyle="solid";w.appendChild(ca);a.appendChild(u);a.appendChild(G);a.appendChild(C);u=C.cloneNode(!1);u.style.display="block";u.style.height="60px";u.style.paddingTop="2px";w=document.createElement("div");w.style.position="absolute";w.style.maxWidth="78px";w.style.overflow="hidden";w.style.textOverflow="ellipsis";w.style.marginTop="4px";w.style.fontWeight="normal";+mxUtils.write(w,mxResources.get("size"));u.appendChild(w);var H=this.addUnitInput(u,this.getUnit(),82,52,function(){Y.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),S=this.addUnitInput(u,this.getUnit(),16,52,function(){ia.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);E=document.createElement("div");E.style.height="8px";u.appendChild(E);w=w.cloneNode(!1);mxUtils.write(w,mxResources.get("spacing"));u.appendChild(w);var ea=this.addUnitInput(u,+this.getUnit(),82,52,function(){ha.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),la=this.addUnitInput(u,this.getUnit(),16,52,function(){ta.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(u);this.addLabel(u,mxResources.get("linestart"),82,62).style.fontSize="10px";this.addLabel(u,mxResources.get("lineend"),16,62).style.fontSize="10px";mxUtils.br(u);m=m.cloneNode(!1);m.className="geFormatEntry";w=document.createElement("div");mxUtils.write(w,+mxResources.get("perimeter"));m.appendChild(w);var O=this.addUnitInput(m,this.getUnit(),16,52,function(){aa.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());h.edges.length==h.cells.length?(a.appendChild(k),a.appendChild(u)):h.vertices.length==h.cells.length&&a.appendChild(m);var V=mxUtils.bind(this,function(P,ba,ma){function Ja(na,ya,za,Ka){za=za.getElementsByTagName("div")[0];null!=za&&g.updateCssForMarker(za,Ka,h.style.shape,na,ya);return za}h=g.getSelectionState();if(ma||document.activeElement!=M)P=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)),M.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit();if(ma||document.activeElement!=Q)P=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)),Q.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit();p.style.visibility="connector"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape?"":"hidden";"1"==mxUtils.getValue(h.style,mxConstants.STYLE_CURVED,null)?p.value="curved":"1"==mxUtils.getValue(h.style,mxConstants.STYLE_ROUNDED,null)&&(p.value="rounded");N.style.borderBottom="1px solid black";"1"==mxUtils.getValue(h.style,mxConstants.STYLE_DASHED,null)&&(P=mxUtils.getValue(h.style,mxConstants.STYLE_DASH_PATTERN,""),ba=String(P).split(" "),2<=ba.length?(P=parseInt(ba[0])+parseInt(ba[1]),ba=parseInt(ba[0])/P*100,N.style.borderBottom="1px solid transparent",N.style.backgroundImage="linear-gradient(to right, black "+ba+"%, transparent 0%)",N.style.backgroundPosition="bottom left",N.style.backgroundSize=P+"px 1px",N.style.backgroundRepeat="repeat-x"):N.style.borderBottom="1px dashed black");ca.style.backgroundImage=N.style.backgroundImage;ca.style.backgroundPosition=N.style.backgroundPosition;ca.style.backgroundSize=N.style.backgroundSize;ca.style.backgroundRepeat=N.style.backgroundRepeat;ca.style.borderBottom=N.style.borderBottom;P=W.getElementsByTagName("div")[1];null!=P&&(ba=mxUtils.getValue(h.style,mxConstants.STYLE_EDGE,null),"1"==mxUtils.getValue(h.style,@@ -3250,35 +3251,35 @@ h.lineJumps&&(a.style.borderBottomStyle="none");Ja(mxUtils.getValue(h.style,mxConull,this.isFloatUnit(),!0);this.addKeyHandler(M,V);this.addKeyHandler(H,V);this.addKeyHandler(ea,V);this.addKeyHandler(S,V);this.addKeyHandler(la,V);this.addKeyHandler(O,V);d.getModel().addListener(mxEvent.CHANGE,V);this.listeners.push({destroy:function(){d.getModel().removeListener(V)}});V();return a};StyleFormatPanel.prototype.addLineJumps=function(a){var b=this.editorUi,f=b.editor.graph,e=b.getSelectionState();a.style.height="22px";if(Graph.lineJumpsEnabled&&0<e.edges.length&&0==e.vertices.length&&e.lineJumps){a.style.display="flex";a.style.alignItems="center";var g=document.createElement("div");g.style.position="absolute";g.style.maxWidth="72px";g.style.overflow="hidden";g.style.textOverflow="ellipsis";mxUtils.write(g,mxResources.get("lineJumps"));a.appendChild(g);var d=document.createElement("select");d.style.left="72px";d.style.width="72px";g=["none","arc","gap","sharp","line"];for(var h=0;h<g.length;h++){var m=document.createElement("option");m.setAttribute("value",g[h]);mxUtils.write(m,mxResources.get(g[h]));d.appendChild(m)}mxEvent.addListener(d,"change",function(w){f.getModel().beginUpdate();try{f.setCellStyles("jumpStyle",d.value,e.cells),b.fireEvent(new mxEventObject("styleChanged","keys",["jumpStyle"],"values",[d.value],"cells",e.cells))}finally{f.getModel().endUpdate()}mxEvent.consume(w)});-mxEvent.addListener(d,"click",function(w){mxEvent.consume(w)});a.appendChild(d);var p=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(p,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var v=mxUtils.bind(this,function(w,y,C){e=b.getSelectionState();d.value=mxUtils.getValue(e.style,"jumpStyle","none");if(C||document.activeElement!=p)w=parseInt(mxUtils.getValue(e.style,-"jumpSize",Graph.defaultJumpSize)),p.value=isNaN(w)?"":this.inUnit(w)+" "+this.getUnit()});this.addKeyHandler(p,v);f.getModel().addListener(mxEvent.CHANGE,v);this.listeners.push({destroy:function(){f.getModel().removeListener(v)}});v()}else a.style.display="none";return a};+mxEvent.addListener(d,"click",function(w){mxEvent.consume(w)});a.appendChild(d);var p=this.addUnitInput(a,this.getUnit(),16,52,function(){k.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());var k=this.installInputHandler(p,"jumpSize",Graph.defaultJumpSize,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var u=mxUtils.bind(this,function(w,y,C){e=b.getSelectionState();d.value=mxUtils.getValue(e.style,"jumpStyle","none");if(C||document.activeElement!=p)w=parseInt(mxUtils.getValue(e.style,+"jumpSize",Graph.defaultJumpSize)),p.value=isNaN(w)?"":this.inUnit(w)+" "+this.getUnit()});this.addKeyHandler(p,u);f.getModel().addListener(mxEvent.CHANGE,u);this.listeners.push({destroy:function(){f.getModel().removeListener(u)}});u()}else a.style.display="none";return a};StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi,f=b.editor.graph,e=b.getSelectionState(),g=document.createElement("table");g.className="geFullWidthElement";g.style.fontWeight="bold";g.style.tableLayout="fixed";var d=document.createElement("tbody"),h=document.createElement("tr");h.style.padding="0px";var m=document.createElement("td");m.style.padding="0px";m.style.width="50%";m.style.verticalAlign="top";var p=m.cloneNode(!0);p.style.paddingLeft="8px";h.appendChild(m);h.appendChild(p);-d.appendChild(h);g.appendChild(d);a.appendChild(g);var k=m,v=mxUtils.bind(this,function(y,C,D,E){y=this.createCellOption(y,C,D,null,null,E);y.style.alignItems="top";k.appendChild(y);k=k==m?p:m;return y}),w=mxUtils.bind(this,function(y,C,D){e=b.getSelectionState();m.innerText="";p.innerText="";k=m;e.rounded&&v(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);e.swimlane&&v(mxResources.get("divider"),"swimlaneLine",1);v(mxResources.get("sketch"),"sketch",0,function(G,J){f.updateCellStyles({sketch:J?-"1":null,curveFitting:J?Editor.sketchDefaultCurveFitting:null,jiggle:J?Editor.sketchDefaultJiggle:null},G)});e.glass&&v(mxResources.get("glass"),mxConstants.STYLE_GLASS,0);y=v(mxResources.get("shadow"),mxConstants.STYLE_SHADOW,0);Editor.enableShadowOption||(y.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(y,60));0<e.edges.length&&0==e.vertices.length&&v(mxResources.get("flowAnimation",null,"Flow Animation"),"flowAnimation",0);if(null!=e.customProperties)for(var E in e.customProperties)y=-e.customProperties[E],null!=y&&"bool"==y.type&&y.primary&&v(y.dispName,E,y.defVal?"1":"0")});f.getModel().addListener(mxEvent.CHANGE,w);this.listeners.push({destroy:function(){f.getModel().removeListener(w)}});w();return a};StyleFormatPanel.prototype.addStyleOps=function(a){1==this.editorUi.getSelectionState().cells.length&&this.addActions(a,["setAsDefaultStyle"]);return a};DiagramStylePanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);this.init()};mxUtils.extend(DiagramStylePanel,BaseFormatPanel);+d.appendChild(h);g.appendChild(d);a.appendChild(g);var k=m,u=mxUtils.bind(this,function(y,C,D,E){y=this.createCellOption(y,C,D,null,null,E);y.style.alignItems="top";k.appendChild(y);k=k==m?p:m;return y}),w=mxUtils.bind(this,function(y,C,D){e=b.getSelectionState();m.innerText="";p.innerText="";k=m;e.rounded&&u(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);e.swimlane&&u(mxResources.get("divider"),"swimlaneLine",1);u(mxResources.get("sketch"),"sketch",0,function(G,J){f.updateCellStyles({sketch:J?+"1":null,curveFitting:J?Editor.sketchDefaultCurveFitting:null,jiggle:J?Editor.sketchDefaultJiggle:null},G)});e.glass&&u(mxResources.get("glass"),mxConstants.STYLE_GLASS,0);y=u(mxResources.get("shadow"),mxConstants.STYLE_SHADOW,0);Editor.enableShadowOption||(y.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(y,60));0<e.edges.length&&0==e.vertices.length&&u(mxResources.get("flowAnimation",null,"Flow Animation"),"flowAnimation",0);if(null!=e.customProperties)for(var E in e.customProperties)y=+e.customProperties[E],null!=y&&"bool"==y.type&&y.primary&&u(y.dispName,E,y.defVal?"1":"0")});f.getModel().addListener(mxEvent.CHANGE,w);this.listeners.push({destroy:function(){f.getModel().removeListener(w)}});w();return a};StyleFormatPanel.prototype.addStyleOps=function(a){1==this.editorUi.getSelectionState().cells.length&&this.addActions(a,["setAsDefaultStyle"]);return a};DiagramStylePanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);this.init()};mxUtils.extend(DiagramStylePanel,BaseFormatPanel);DiagramStylePanel.prototype.init=function(){this.container.appendChild(this.addView(this.createPanel()))};DiagramStylePanel.prototype.getGlobalStyleButtons=function(){var a=this.editorUi,b=a.editor.graph,f=document.createElement("div");f.className="geFormatEntry";var e=document.createElement("input");e.setAttribute("type","checkbox");e.checked=Editor.sketchMode;f.appendChild(e);mxUtils.write(f,mxResources.get("sketch"));mxEvent.addListener(f,"click",function(d){if(b.isEnabled()){var h=!Editor.sketchMode;b.updateCellStyles({sketch:h?"1":null,curveFitting:h?Editor.sketchDefaultCurveFitting:null,jiggle:h?Editor.sketchDefaultJiggle:null},b.getVerticesAndEdges());a.setSketchMode(h);mxEvent.consume(d)}});f=[f,mxUtils.button(mxResources.get("rounded"),mxUtils.bind(this,function(d){var h=b.getVerticesAndEdges(),m=!0;if(0<h.length)for(var p=0;p<h.length;p++){var k=b.getCellStyle(h[p]);if(0==mxUtils.getValue(k,mxConstants.STYLE_ROUNDED,0)){m=!1;break}}m=!m;b.updateCellStyles({rounded:m?"1":"0"},h);m?(b.currentEdgeStyle.rounded="1",b.currentVertexStyle.rounded="1"):(delete b.currentEdgeStyle.rounded,delete b.currentVertexStyle.rounded);mxEvent.consume(d)}))];if(!b.isEnabled())for(e=0;e<f.length;e++)if("BUTTON"==f[e].nodeName)f[e].setAttribute("disabled","disabled");else{var g=f[e].getElementsByTagName("input");0<g.length&&g[0].setAttribute("disabled","disabled")}return f};DiagramStylePanel.prototype.addView=function(a){var b=this.editorUi,f=b.editor.graph,e=document.createElement("div");e.className="geFormatEntry";if(f.isEnabled()){var g=document.createElement("table");g.style.tableLayout="fixed";g.style.width="204px";var d=document.createElement("tbody"),h=document.createElement("tr"),m=document.createElement("td"),p=m.cloneNode(!0),k=document.createElement("div");k.style.display="inline-block";k.style.boxSizing="border-box";k.style.overflow="hidden";k.style.textOverflow=-"ellipsis";var v=mxResources.get("adaptiveColors");m.setAttribute("title",v);mxUtils.write(k,v);m.appendChild(k);mxUtils.lightDarkColorSupported?(k.style.width="75%",k=document.createElement("img"),k.setAttribute("title",mxResources.get("light")+"/"+mxResources.get("dark")),k.setAttribute("src",Editor.contrastImage),k.className="geButton",k.style.width="18px",k.style.height="18px",k.style.verticalAlign="bottom",m.appendChild(k),mxEvent.addListener(k,"click",function(){f.isEnabled()&&b.setDarkMode(!Editor.isDarkMode())})):+"ellipsis";var u=mxResources.get("adaptiveColors");m.setAttribute("title",u);mxUtils.write(k,u);m.appendChild(k);mxUtils.lightDarkColorSupported?(k.style.width="75%",k=document.createElement("img"),k.setAttribute("title",mxResources.get("light")+"/"+mxResources.get("dark")),k.setAttribute("src",Editor.contrastImage),k.className="geButton",k.style.width="18px",k.style.height="18px",k.style.verticalAlign="bottom",m.appendChild(k),mxEvent.addListener(k,"click",function(){f.isEnabled()&&b.setDarkMode(!Editor.isDarkMode())})):k.style.width="100%";var w=document.createElement("select");w.style.width="82px";k=document.createElement("option");k.setAttribute("title",mxResources.get("default")+" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")");mxUtils.write(k,mxUtils.htmlEntities(k.getAttribute("title")));k.setAttribute("value","default");w.appendChild(k);k=document.createElement("option");k.setAttribute("title",mxResources.get("automatic"));mxUtils.write(k,mxUtils.htmlEntities(k.getAttribute("title")));k.setAttribute("value","auto");w.appendChild(k);k=document.createElement("option");k.setAttribute("title",mxResources.get("simple"));mxUtils.write(k,mxUtils.htmlEntities(k.getAttribute("title")));k.setAttribute("value","simple");w.appendChild(k);k=document.createElement("option");k.setAttribute("title",mxResources.get("none"));mxUtils.write(k,mxUtils.htmlEntities(k.getAttribute("title")));k.setAttribute("value","none");w.appendChild(k);w.value=null==f.adaptiveColors?"default":f.adaptiveColors;mxEvent.addListener(w,"change",-function(){var C=new ChangePageSetup(b);C.ignoreColor=!0;C.ignoreImage=!0;C.adaptiveColors=w.value;f.model.execute(C)});p.appendChild(w);(!b.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&p.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"));h.appendChild(m);h.appendChild(p);d.appendChild(h);k=this.getGlobalStyleButtons();for(v=0;v<k.length;v+=2){m=m.cloneNode(!1);p=p.cloneNode(!1);h=h.cloneNode(!1);var y=k[v];y.style.width="100%";m.appendChild(y);-h.appendChild(m);y=k[v+1];null!=y&&(y.style.width="100%",p.appendChild(y));h.appendChild(p);d.appendChild(h)}g.appendChild(d);e.appendChild(g);a.appendChild(e);f.isEnabled()&&null!=Editor.styles&&this.addGraphStyles(a)}return a};+function(){var C=new ChangePageSetup(b);C.ignoreColor=!0;C.ignoreImage=!0;C.adaptiveColors=w.value;f.model.execute(C)});p.appendChild(w);(!b.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&p.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/4713"));h.appendChild(m);h.appendChild(p);d.appendChild(h);k=this.getGlobalStyleButtons();for(u=0;u<k.length;u+=2){m=m.cloneNode(!1);p=p.cloneNode(!1);h=h.cloneNode(!1);var y=k[u];y.style.width="100%";m.appendChild(y);+h.appendChild(m);y=k[u+1];null!=y&&(y.style.width="100%",p.appendChild(y));h.appendChild(p);d.appendChild(h)}g.appendChild(d);e.appendChild(g);a.appendChild(e);f.isEnabled()&&null!=Editor.styles&&this.addGraphStyles(a)}return a};DiagramStylePanel.prototype.addGraphStyles=function(a){var b=this.editorUi,f=b.editor.graph,e=f.getModel(),g=f.view.gridColor,d=["fillColor","strokeColor","fontColor","gradientColor"];a.style.whiteSpace="normal";var h=mxUtils.bind(this,function(W,X){var T=f.getVerticesAndEdges();e.beginUpdate();try{for(var N=0;N<T.length;N++){var ca=f.getCellStyle(T[N]);p||null==ca.labelBackgroundColor?p&&f.updateCellStyles({labelBackgroundColor:mxConstants.NONE},[T[N]]):f.updateCellStyles({labelBackgroundColor:null!=X?X.background:null},[T[N]]);for(var H=e.isEdge(T[N]),S=e.getStyle(T[N]),ea=H?f.currentEdgeStyle:f.currentVertexStyle,la=0;la<W.length;la++)if(null!=ca[W[la]]&&ca[W[la]]!=mxConstants.NONE||W[la]!=mxConstants.STYLE_FILLCOLOR&&W[la]!=mxConstants.STYLE_STROKECOLOR)S=p&&H&&W[la]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(S,W[la],"default"):mxUtils.setStyle(S,W[la],ea[W[la]]);e.setStyle(T[N],S)}}finally{e.endUpdate()}}),m=mxUtils.bind(this,function(W,X,T){if(null!=W)for(var N=0;N<X.length;N++)if(null!=W[X[N]]&&W[X[N]]!=mxConstants.NONE||X[N]!=mxConstants.STYLE_FILLCOLOR&&X[N]!=mxConstants.STYLE_STROKECOLOR)W[X[N]]=T[X[N]]}),p=!0,k=mxUtils.bind(this,function(W,X,T,N,ca){if(null!=W){null!=T&&(p||null==X.labelBackgroundColor?p&&(X.labelBackgroundColor=mxConstants.NONE):(N=null!=N?N.background:null,ca=null!=ca?ca:f,null==N&&(N=ca.background),null==N&&(N=ca.defaultPageBackgroundColor),X.labelBackgroundColor=N));for(var H in W)if(null==T||null!=X[H]&&X[H]!=mxConstants.NONE||H!=mxConstants.STYLE_FILLCOLOR&&-H!=mxConstants.STYLE_STROKECOLOR)p&&e.isEdge(T)&&H==mxConstants.STYLE_FONTCOLOR?X[H]="default":X[H]=W[H]}}),v=mxUtils.bind(this,function(W,X,T,N,ca){var H=document.createElement("div");H.style.position="relative";H.style.pointerEvents="none";H.style.width="60px";H.style.height="60px";ca.appendChild(H);var S=new Graph(H,null,null,f.getStylesheet());S.shapeForegroundColor="light-dark(#000000, #c0c0c0)";S.shapeBackgroundColor="light-dark(var(--ge-panel-color), var(--ge-dark-panel-color))";S.resetViewOnRootChange=+H!=mxConstants.STYLE_STROKECOLOR)p&&e.isEdge(T)&&H==mxConstants.STYLE_FONTCOLOR?X[H]="default":X[H]=W[H]}}),u=mxUtils.bind(this,function(W,X,T,N,ca){var H=document.createElement("div");H.style.position="relative";H.style.pointerEvents="none";H.style.width="60px";H.style.height="60px";ca.appendChild(H);var S=new Graph(H,null,null,f.getStylesheet());S.shapeForegroundColor="light-dark(#000000, #c0c0c0)";S.shapeBackgroundColor="light-dark(var(--ge-panel-color), var(--ge-dark-panel-color))";S.resetViewOnRootChange=!1;S.foldingEnabled=!1;S.gridEnabled=!1;S.autoScroll=!1;S.setTooltips(!1);S.setConnectable(!1);S.setPanning(!1);S.setEnabled(!1);S.getCellStyle=function(O,V){V=null!=V?V:!0;var Y=mxUtils.clone(f.getCellStyle.apply(this,arguments)),ha=f.stylesheet.getDefaultVertexStyle(),ia=X;e.isEdge(O)&&(ha=f.stylesheet.getDefaultEdgeStyle(),ia=T);m(Y,d,ha);k(W,Y,O,N,S);k(ia,Y,O,N,S);V&&(Y=f.postProcessCellStyle(O,Y));return Y};S.model.beginUpdate();try{var ea=S.insertVertex(S.getDefaultParent(),null,"Shape",2,2,56,30,"strokeWidth=2;"),la=S.insertEdge(S.getDefaultParent(),null,"Connector",ea,ea,"edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;endSize=3;strokeWidth=2;");la.geometry.points=[new mxPoint(28,46)];la.geometry.offset=new mxPoint(0,8)}finally{S.model.endUpdate()}ca=S.view.getDrawPane().ownerSVGElement;null!=ca&&(H=ca.cloneNode(!0),H.style.position="absolute",H.style.clipPath="rect(0 52% 100% 0)",ca.style.clipPath="rect(0 100% 100% 51%)",ca.style.colorScheme="light",ca.parentNode.appendChild(H))}),-w=document.createElement("div");w.style.whiteSpace="normal";a.appendChild(w);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var y=mxUtils.bind(this,function(W,X,T,N,ca){var H=this.format.cachedStyleEntries[ca];null==H&&(H=document.createElement("div"),H.className="geGraphStylePreview",p||null==N||null==N.background||(H.style.backgroundColor=N.background),v(W,X,T,N,H),mxEvent.addGestureListeners(H,mxUtils.bind(this,function(S){H.style.opacity=.6}),null,mxUtils.bind(this,+w=document.createElement("div");w.style.whiteSpace="normal";a.appendChild(w);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var y=mxUtils.bind(this,function(W,X,T,N,ca){var H=this.format.cachedStyleEntries[ca];null==H&&(H=document.createElement("div"),H.className="geGraphStylePreview",p||null==N||null==N.background||(H.style.backgroundColor=N.background),u(W,X,T,N,H),mxEvent.addGestureListeners(H,mxUtils.bind(this,function(S){H.style.opacity=.6}),null,mxUtils.bind(this,function(S){H.style.opacity="";f.currentVertexStyle=mxUtils.clone(f.defaultVertexStyle);f.currentEdgeStyle=mxUtils.clone(f.defaultEdgeStyle);k(W,f.currentVertexStyle);k(W,f.currentEdgeStyle);k(X,f.currentVertexStyle);k(T,f.currentEdgeStyle);e.beginUpdate();try{var ea=d.slice(),la;for(la in W)ea.push(la);h(ea,N);if(!p){var O=new ChangePageSetup(b,null!=N?N.background:null);O.ignoreImage=!0;e.execute(O);e.execute(new ChangeGridColor(b,null!=N&&null!=N.gridColor?N.gridColor:g))}}finally{e.endUpdate()}})),mxClient.IS_TOUCH||(mxEvent.addListener(H,"mouseenter",mxUtils.bind(this,function(S){var ea=f.getCellStyle;S=f.background;var la=f.view.gridColor;p||(f.background=null!=N?N.background:null,f.view.gridColor=null!=N&&null!=N.gridColor?N.gridColor:g);f.getCellStyle=function(O,V){V=null!=V?V:!0;var Y=mxUtils.clone(ea.apply(this,arguments)),ha=f.stylesheet.getDefaultVertexStyle(),ia=X;e.isEdge(O)&&(ha=f.stylesheet.getDefaultEdgeStyle(),ia=T);m(Y,d,ha);k(W,Y,O,N);k(ia,Y,O,N);V&&(Y=this.postProcessCellStyle(O,Y));return Y};f.refresh();f.getCellStyle=ea;f.background=S;f.view.gridColor=la})),mxEvent.addListener(H,"mouseleave",mxUtils.bind(this,function(S){f.refresh()}))),mxClient.IS_IE||mxClient.IS_IE11||(this.format.cachedStyleEntries[ca]=H));w.appendChild(H)}),C=Math.ceil(Editor.styles.length/10);this.format.currentStylePage=null!=this.format.currentStylePage?this.format.currentStylePage:0;var D=[],E=mxUtils.bind(this,function(){0<D.length&&(D[this.format.currentStylePage].style.background="#84d7ff");for(var W=10*this.format.currentStylePage;W<Math.min(10*(this.format.currentStylePage+1),Editor.styles.length);W++){var X=Editor.styles[W];y(X.commonStyle,X.vertexStyle,X.edgeStyle,X.graph,W)}}),G=mxUtils.bind(this,function(W){0<=W&&W<C&&(D[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=W,E())});if(1<C){var J=document.createElement("div");J.className="geSwitcher";J.style.width="200px";for(var M=0;M<C;M++){var Q=document.createElement("div");-Q.className="geSwitcherDot";mxUtils.bind(this,function(W,X){mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){G(W)}))})(M,Q);J.appendChild(Q);D.push(Q)}a.appendChild(J);E();if(15>C&&0<D.length){M=document.createElement("div");M.className="geButton";M.style.backgroundImage="url("+Editor.chevronLeftImage+")";var L=M.cloneNode(!1);L.style.backgroundImage="url("+Editor.chevronRightImage+")";J.insertBefore(M,D[0]);J.appendChild(L);mxEvent.addListener(M,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage--1,C))}));mxEvent.addListener(L,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,C))}))}}else E();return a};DiagramFormatPanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);this.init()};mxUtils.extend(DiagramFormatPanel,BaseFormatPanel);DiagramFormatPanel.showPageView=!0;DiagramFormatPanel.prototype.showBackgroundImageOption=!0;+Q.className="geSwitcherDot";mxUtils.bind(this,function(W,X){mxEvent.addListener(Q,"click",mxUtils.bind(this,function(){G(W)}))})(M,Q);J.appendChild(Q);D.push(Q)}a.appendChild(J);E();if(15>C&&0<D.length){M=document.createElement("div");M.className="geButton";M.style.backgroundImage="url("+Editor.chevronLeftImage+")";var K=M.cloneNode(!1);K.style.backgroundImage="url("+Editor.chevronRightImage+")";J.insertBefore(M,D[0]);J.appendChild(K);mxEvent.addListener(M,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage-+1,C))}));mxEvent.addListener(K,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,C))}))}}else E();return a};DiagramFormatPanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);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.addView=function(a){var b=this.editorUi,f=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("view")));this.addGridOption(a);DiagramFormatPanel.showPageView&&a.appendChild(this.createOption(mxResources.get("pageView"),function(){return f.pageVisible},function(d){b.actions.get("pageView").funct()},{install:function(d){this.listener=function(){d(f.pageVisible)};b.addListener("pageViewChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}));if(f.isEnabled()){if(this.showBackgroundImageOption){var e=this.createOption(mxResources.get("background"),function(){return null!=f.backgroundImage},function(d){d||(d=new ChangePageSetup(b,null,null),d.ignoreColor=!0,f.model.execute(d))},{install:function(d){this.listener=function(){d(null!=f.backgroundImage)};b.addListener("backgroundImageChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}}),g=e.getElementsByTagName("input")[0];null!=g&&(g.style.visibility=null!=f.backgroundImage?@@ -3288,218 +3289,218 @@ function(d){d=new ChangePageSetup(b,d);d.ignoreImage=!0;f.model.execute(d)},"#ffDiagramFormatPanel.prototype.addOptions=function(a){var b=this.editorUi,f=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("options")));f.isEnabled()&&(a.appendChild(this.createOption(mxResources.get("connectionArrows"),function(){return f.connectionArrowsEnabled},function(e){b.actions.get("connectionArrows").funct()},{install:function(e){this.listener=function(){e(f.connectionArrowsEnabled)};b.addListener("connectionArrowsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),a.appendChild(this.createOption(mxResources.get("connectionPoints"),function(){return f.connectionHandler.isEnabled()},function(e){b.actions.get("connectionPoints").funct()},{install:function(e){this.listener=function(){e(f.connectionHandler.isEnabled())};b.addListener("connectionPointsChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}})),a.appendChild(this.createOption(mxResources.get("guides"),function(){return f.graphHandler.guidesEnabled},function(e){b.actions.get("guides").funct()},{install:function(e){this.listener=function(){e(f.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=f.isFloatUnit()?parseFloat(d.value):parseInt(d.value);v=f.fromUnit(Math.max(f.inUnit(1),isNaN(v)?f.inUnit(10):v));v!=g.getGridSize()&&(mxGraph.prototype.gridSize=v,g.setGridSize(v));d.value=f.inUnit(v)+" "+f.getUnit();mxEvent.consume(k)}var f=this,e=this.editorUi,g=e.editor.graph,d=document.createElement("input");d.style.position="absolute";d.style.width="50px";d.value=this.inUnit(g.getGridSize())+" "+this.getUnit();var h=+DiagramFormatPanel.prototype.addGridOption=function(a){function b(k){var u=f.isFloatUnit()?parseFloat(d.value):parseInt(d.value);u=f.fromUnit(Math.max(f.inUnit(1),isNaN(u)?f.inUnit(10):u));u!=g.getGridSize()&&(mxGraph.prototype.gridSize=u,g.setGridSize(u));d.value=f.inUnit(u)+" "+f.getUnit();mxEvent.consume(k)}var f=this,e=this.editorUi,g=e.editor.graph,d=document.createElement("input");d.style.position="absolute";d.style.width="50px";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 m=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),e.setGridColor(k,m()));d.style.display=g.isGridEnabled()?"":"none";h.style.display=d.style.display;v!=g.isGridEnabled()&&(g.defaultGridEnabled=g.isGridEnabled(),e.fireEvent(new mxEventObject("gridEnabledChanged")))},+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 u=g.isGridEnabled();k==mxConstants.NONE?g.setGridEnabled(!1):(g.setGridEnabled(!0),e.setGridColor(k,m()));d.style.display=g.isGridEnabled()?"":"none";h.style.display=d.style.display;u!=g.isGridEnabled()&&(g.defaultGridEnabled=g.isGridEnabled(),e.fireEvent(new mxEventObject("gridEnabledChanged")))},g.view.gridColor,{install:function(k){this.listener=function(){k(g.isGridEnabled()?g.view.gridColor:mxConstants.NONE)};e.addListener("darkModeChanged",this.listener);e.addListener("gridColorChanged",this.listener);e.addListener("gridEnabledChanged",this.listener)},destroy:function(){e.removeListener(this.listener)}},null,null,p,!0,m);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,f=b.editor.graph;a.appendChild(this.createTitle(mxResources.get("paperSize")));var e=PageSetupDialog.addPageFormatPanel(a,"formatpanel",f.pageFormat,function(d){if(null==f.pageFormat||f.pageFormat.width!=d.width||f.pageFormat.height!=d.height)d=new ChangePageSetup(b,null,null,d),d.ignoreColor=!0,d.ignoreImage=!0,f.model.execute(d)});this.addKeyHandler(e.widthInput,function(){e.set(f.pageFormat)});this.addKeyHandler(e.heightInput,function(){e.set(f.pageFormat)});var g=function(){e.set(f.pageFormat)};b.addListener("pageFormatChanged",g);this.listeners.push({destroy:function(){b.removeListener(g)}});f.getModel().addListener(mxEvent.CHANGE,g);this.listeners.push({destroy:function(){f.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,l,t){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=t?t:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function f(){mxSwimlane.call(this)}function e(){mxCylinder.call(this)}function g(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function h(){mxActor.call(this)}function m(){mxCylinder.call(this)}function p(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function v(){mxCylinder.call(this)}function w(){mxShape.call(this)}-function y(){mxShape.call(this)}function C(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1}function D(){mxActor.call(this)}function E(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function J(){mxActor.call(this)}function M(){mxActor.call(this)}function Q(){mxActor.call(this)}function L(){mxActor.call(this)}function W(){mxActor.call(this)}function X(){mxActor.call(this)}function T(){mxActor.call(this)}function N(c,l){this.canvas=c;this.canvas.setLineJoin("round");+DiagramFormatPanel.prototype.destroy=function(){BaseFormatPanel.prototype.destroy.apply(this,arguments);this.gridEnabledListener&&(this.editorUi.removeListener(this.gridEnabledListener),this.gridEnabledListener=null)};(function(){function a(c,l,t){mxShape.call(this);this.line=c;this.stroke=l;this.strokewidth=null!=t?t:1;this.updateBoundsFromLine()}function b(){mxSwimlane.call(this)}function f(){mxSwimlane.call(this)}function e(){mxCylinder.call(this)}function g(){mxConnector.call(this)}function d(){mxCylinder.call(this)}function h(){mxActor.call(this)}function m(){mxCylinder.call(this)}function p(){mxCylinder.call(this)}function k(){mxCylinder.call(this)}function u(){mxCylinder.call(this)}function w(){mxShape.call(this)}+function y(){mxShape.call(this)}function C(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1}function D(){mxActor.call(this)}function E(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function J(){mxActor.call(this)}function M(){mxActor.call(this)}function Q(){mxActor.call(this)}function K(){mxActor.call(this)}function W(){mxActor.call(this)}function X(){mxActor.call(this)}function T(){mxActor.call(this)}function N(c,l){this.canvas=c;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.defaultVariation=l;this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,N.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,N.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,N.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,N.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,N.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,N.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function H(){mxRectangleShape.call(this)}function S(){mxActor.call(this)}function ea(){mxActor.call(this)}function la(){mxActor.call(this)}function O(){mxRectangleShape.call(this)}function V(){mxRectangleShape.call(this)}function Y(){mxCylinder.call(this)}function ha(){mxShape.call(this)}function ia(){mxShape.call(this)}function ta(){mxEllipse.call(this)}function aa(){mxShape.call(this)}function P(){mxShape.call(this)}function ba(){mxRectangleShape.call(this)}function ma(){mxShape.call(this)}function Ja(){mxShape.call(this)}function na(){mxShape.call(this)}function ya(){mxShape.call(this)}function za(){mxShape.call(this)}function Ka(){mxCylinder.call(this)}function Qa(){mxCylinder.call(this)}function Ia(){mxRectangleShape.call(this)}function Ha(){mxDoubleEllipse.call(this)}function ra(){mxDoubleEllipse.call(this)}function Da(){mxArrowConnector.call(this);-this.spacing=0}function Va(){mxArrowConnector.call(this);this.spacing=0}function Wa(){mxActor.call(this)}function $a(){mxRectangleShape.call(this)}function db(){mxActor.call(this)}function pb(){mxActor.call(this)}function eb(){mxActor.call(this)}function Za(){mxActor.call(this)}function gb(){mxActor.call(this)}function bb(){mxActor.call(this)}function q(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function K(){mxEllipse.call(this)}+this.spacing=0}function Va(){mxArrowConnector.call(this);this.spacing=0}function Wa(){mxActor.call(this)}function $a(){mxRectangleShape.call(this)}function db(){mxActor.call(this)}function pb(){mxActor.call(this)}function eb(){mxActor.call(this)}function Za(){mxActor.call(this)}function gb(){mxActor.call(this)}function bb(){mxActor.call(this)}function q(){mxActor.call(this)}function A(){mxActor.call(this)}function B(){mxActor.call(this)}function F(){mxActor.call(this)}function L(){mxEllipse.call(this)}function R(){mxEllipse.call(this)}function Z(){mxEllipse.call(this)}function ja(){mxRhombus.call(this)}function fa(){mxEllipse.call(this)}function ka(){mxEllipse.call(this)}function va(){mxEllipse.call(this)}function Ma(){mxEllipse.call(this)}function Na(){mxActor.call(this)}function Aa(){mxActor.call(this)}function Ga(){mxActor.call(this)}function wa(c,l,t,n){mxShape.call(this);this.bounds=c;this.fill=l;this.stroke=t;this.strokewidth=null!=n?n:1;this.rectStyle="square";this.size=10;this.absoluteCornerSize=-!0;this.indent=2;this.rectOutline="single"}function ua(){mxConnector.call(this)}function Ta(){mxConnector.call(this)}function Ra(c,l,t,n,r,u,x,I,z,da){x+=z;var U=n.clone();n.x-=r*(2*x+z);n.y-=u*(2*x+z);r*=x+z;u*=x+z;return function(){c.ellipse(U.x-r-x,U.y-u-x,2*x,2*x);da?c.fillAndStroke():c.stroke()}}mxUtils.extend(a,mxShape);a.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var t=this.line[l];null!=t&&(t=new mxRectangle(t.x,t.y,this.strokewidth,-this.strokewidth),null==c?c=t:c.add(t))}this.bounds=null!=c?c:new mxRectangle};a.prototype.paintVertexShape=function(c,l,t,n,r){this.paintTableLine(c,this.line,0,0)};a.prototype.paintTableLine=function(c,l,t,n){if(null!=l){var r=null;c.begin();for(var u=0;u<l.length;u++){var x=l[u];null!=x&&(null==r?c.moveTo(x.x+t,x.y+n):null!=r&&c.lineTo(x.x+t,x.y+n));r=x}c.end();c.stroke()}};a.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=-this.line)for(var t=null,n=0;n<this.line.length&&!l;n++){var r=this.line[n];null!=r&&null!=t&&(l=mxUtils.rectangleIntersectsSegment(c,t,r));t=r}return l};mxCellRenderer.registerShape("tableLine",a);mxUtils.extend(b,mxSwimlane);b.prototype.getLabelBounds=function(c){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};b.prototype.paintVertexShape=function(c,l,t,n,r){var u=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):-!1,x=this.isHorizontal(),I=this.getTitleSize();0==I||this.outline?va.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-t));u||this.outline||!(x&&I<r||!x&&I<n)||this.paintForeground(c,l,t,n,r)};b.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.state){var u=this.flipH,x=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var I=u;u=x;x=I}c.rotate(-this.getShapeRotation(),-u,x,l+n/2,t+r/2);s=this.scale;l=this.bounds.x/s;t=this.bounds.y/s;n=this.bounds.width/s;r=this.bounds.height/s;this.paintTableForeground(c,l,t,n,r)}};b.prototype.paintTableForeground=function(c,l,t,n,r){n=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(r=0;r<n.length;r++)a.prototype.paintTableLine(c,n[r],l,t)};b.prototype.configurePointerEvents=function(c){0==this.getTitleSize()?-c.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",b);mxUtils.extend(f,b);f.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",f);mxUtils.extend(e,mxCylinder);e.prototype.size=20;e.prototype.darkOpacity=0;e.prototype.darkOpacity2=0;e.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,-parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-u,0);c.lineTo(n,u);c.lineTo(n,r);c.lineTo(u,r);c.lineTo(0,r-u);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(n-u,0),c.lineTo(n,u),c.lineTo(u,-u),c.close(),c.fill()),0!=I&&(c.setFillAlpha(Math.abs(I)),c.setFillColor(0>I?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(u,u),c.lineTo(u,r),c.lineTo(0,r-u),c.close(),c.fill()),c.begin(),c.moveTo(u,r),c.lineTo(u,u),c.lineTo(0,0),c.moveTo(u,u),c.lineTo(n,u),c.end(),c.stroke())};e.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube",+!0;this.indent=2;this.rectOutline="single"}function ua(){mxConnector.call(this)}function Ta(){mxConnector.call(this)}function Ra(c,l,t,n,r,v,x,I,z,da){x+=z;var U=n.clone();n.x-=r*(2*x+z);n.y-=v*(2*x+z);r*=x+z;v*=x+z;return function(){c.ellipse(U.x-r-x,U.y-v-x,2*x,2*x);da?c.fillAndStroke():c.stroke()}}mxUtils.extend(a,mxShape);a.prototype.updateBoundsFromLine=function(){var c=null;if(null!=this.line)for(var l=0;l<this.line.length;l++){var t=this.line[l];null!=t&&(t=new mxRectangle(t.x,t.y,this.strokewidth,+this.strokewidth),null==c?c=t:c.add(t))}this.bounds=null!=c?c:new mxRectangle};a.prototype.paintVertexShape=function(c,l,t,n,r){this.paintTableLine(c,this.line,0,0)};a.prototype.paintTableLine=function(c,l,t,n){if(null!=l){var r=null;c.begin();for(var v=0;v<l.length;v++){var x=l[v];null!=x&&(null==r?c.moveTo(x.x+t,x.y+n):null!=r&&c.lineTo(x.x+t,x.y+n));r=x}c.end();c.stroke()}};a.prototype.intersectsRectangle=function(c){var l=!1;if(mxShape.prototype.intersectsRectangle.apply(this,arguments)&&null!=+this.line)for(var t=null,n=0;n<this.line.length&&!l;n++){var r=this.line[n];null!=r&&null!=t&&(l=mxUtils.rectangleIntersectsSegment(c,t,r));t=r}return l};mxCellRenderer.registerShape("tableLine",a);mxUtils.extend(b,mxSwimlane);b.prototype.getLabelBounds=function(c){return 0==this.getTitleSize()?mxShape.prototype.getLabelBounds.apply(this,arguments):mxSwimlane.prototype.getLabelBounds.apply(this,arguments)};b.prototype.paintVertexShape=function(c,l,t,n,r){var v=null!=this.state?this.state.view.graph.isCellCollapsed(this.state.cell):+!1,x=this.isHorizontal(),I=this.getTitleSize();0==I||this.outline?va.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-t));v||this.outline||!(x&&I<r||!x&&I<n)||this.paintForeground(c,l,t,n,r)};b.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.state){var v=this.flipH,x=this.flipV;if(this.direction==mxConstants.DIRECTION_NORTH||this.direction==mxConstants.DIRECTION_SOUTH){var I=v;v=x;x=I}c.rotate(-this.getShapeRotation(),+v,x,l+n/2,t+r/2);s=this.scale;l=this.bounds.x/s;t=this.bounds.y/s;n=this.bounds.width/s;r=this.bounds.height/s;this.paintTableForeground(c,l,t,n,r)}};b.prototype.paintTableForeground=function(c,l,t,n,r){n=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(r=0;r<n.length;r++)a.prototype.paintTableLine(c,n[r],l,t)};b.prototype.configurePointerEvents=function(c){0==this.getTitleSize()?+c.pointerEvents=!1:mxSwimlane.prototype.configurePointerEvents.apply(this,arguments)};mxCellRenderer.registerShape("table",b);mxUtils.extend(f,b);f.prototype.paintForeground=function(){};mxCellRenderer.registerShape("tableRow",f);mxUtils.extend(e,mxCylinder);e.prototype.size=20;e.prototype.darkOpacity=0;e.prototype.darkOpacity2=0;e.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,+parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),I=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity2",this.darkOpacity2))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-v,0);c.lineTo(n,v);c.lineTo(n,r);c.lineTo(v,r);c.lineTo(0,r-v);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(n-v,0),c.lineTo(n,v),c.lineTo(v,+v),c.close(),c.fill()),0!=I&&(c.setFillAlpha(Math.abs(I)),c.setFillColor(0>I?"#FFFFFF":"#000000"),c.begin(),c.moveTo(0,0),c.lineTo(v,v),c.lineTo(v,r),c.lineTo(0,r-v),c.close(),c.fill()),c.begin(),c.moveTo(v,r),c.lineTo(v,v),c.lineTo(0,0),c.moveTo(v,v),c.lineTo(n,v),c.end(),c.stroke())};e.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?(c=parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale,new mxRectangle(c,c,0,0)):null};mxCellRenderer.registerShape("cube",e);var Oa=Math.tan(mxUtils.toRadians(30)),Sa=(.5-Oa)/2;mxCellRenderer.registerShape("isoRectangle",h);mxUtils.extend(g,mxConnector);g.prototype.paintEdgeShape=function(c,l){var t=this.createMarker(c,l,!0),n=this.createMarker(c,l,!1);c.setDashed(!1);mxPolyline.prototype.paintEdgeShape.apply(this,arguments);null!=this.isDashed&&c.setDashed(this.isDashed,null!=this.style?1==mxUtils.getValue(this.style,mxConstants.STYLE_FIX_DASH,!1):!1);c.setShadow(!1);c.setStrokeColor(this.fill);mxPolyline.prototype.paintEdgeShape.apply(this,-arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=t&&t();null!=n&&n()};mxCellRenderer.registerShape("wire",g);mxUtils.extend(d,mxCylinder);d.prototype.size=6;d.prototype.paintVertexShape=function(c,l,t,n,r){c.setFillColor(this.stroke);var u=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(l+.5*(n-u),t+.5*(r-u),u,u);c.fill();c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};mxCellRenderer.registerShape("waypoint",-d);mxUtils.extend(h,mxActor);h.prototype.size=20;h.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/Oa);c.translate((n-l)/2,(r-l)/2+l/4);c.moveTo(0,.25*l);c.lineTo(.5*l,l*Sa);c.lineTo(l,.25*l);c.lineTo(.5*l,(.5-Sa)*l);c.lineTo(0,.25*l);c.close();c.end()};mxCellRenderer.registerShape("isoRectangle",h);mxUtils.extend(m,mxCylinder);m.prototype.size=20;m.prototype.redrawPath=function(c,l,t,n,r,u){l=Math.min(n,r/(.5+Oa));u?(c.moveTo(0,.25*l),c.lineTo(.5*l,(.5-Sa)*l),c.lineTo(l,.25*l),c.moveTo(.5*-l,(.5-Sa)*l),c.lineTo(.5*l,(1-Sa)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Sa),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Sa)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(p,mxCylinder);p.prototype.redrawPath=function(c,l,t,n,r,u){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(u&&null!=this.fill||!u&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),u||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,-l),c.curveTo(0,2*l,n,2*l,n,l),u||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),u||(c.stroke(),c.begin()),c.translate(0,-l);u||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};p.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",p);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=-0;k.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-u,0);c.lineTo(n,u);c.lineTo(n,r);c.lineTo(0,r);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),-c.begin(),c.moveTo(n-u,0),c.lineTo(n-u,u),c.lineTo(n,u),c.close(),c.fill()),c.begin(),c.moveTo(n-u,0),c.lineTo(n-u,u),c.lineTo(n,u),c.end(),c.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(v,k);mxCellRenderer.registerShape("note2",v);v.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(w,mxShape);w.prototype.isoAngle=-15;w.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;u=Math.min(n*Math.tan(u),.5*r);c.translate(l,t);c.begin();c.moveTo(.5*n,0);c.lineTo(n,u);c.lineTo(n,r-u);c.lineTo(.5*n,r);c.lineTo(0,r-u);c.lineTo(0,u);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,u);c.lineTo(.5*n,2*u);c.lineTo(n,u);c.moveTo(.5*n,2*u);c.lineTo(.5*n,r);c.stroke()};mxCellRenderer.registerShape("isoCube2",-w);mxUtils.extend(y,mxShape);y.prototype.size=15;y.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.translate(l,t);0==u?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),c.moveTo(0,u),c.arcTo(.5*n,u,0,0,1,.5*n,0),c.arcTo(.5*n,u,0,0,1,n,u),c.lineTo(n,r-u),c.arcTo(.5*n,u,0,0,1,.5*n,r),c.arcTo(.5*n,u,0,0,1,0,r-u),c.close(),c.fillAndStroke(),c.setShadow(!1),c.begin(),c.moveTo(n,u),c.arcTo(.5*n,u,0,0,1,.5*n,2*u),c.arcTo(.5*-n,u,0,0,1,0,u),c.stroke())};mxCellRenderer.registerShape("cylinder2",y);mxUtils.extend(C,mxCylinder);C.prototype.size=15;C.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"lid",!0);c.translate(l,t);0==u?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),x?(c.moveTo(0,u),c.arcTo(.5*n,u,0,0,1,.5*n,0),c.arcTo(.5*n,u,0,0,1,n,u)):(c.moveTo(0,0),c.arcTo(.5*n,u,0,0,0,.5*n,u),c.arcTo(.5*n,u,-0,0,0,n,0)),c.lineTo(n,r-u),c.arcTo(.5*n,u,0,0,1,.5*n,r),c.arcTo(.5*n,u,0,0,1,0,r-u),c.close(),c.fillAndStroke(),c.setShadow(!1),x&&(c.begin(),c.moveTo(n,u),c.arcTo(.5*n,u,0,0,1,.5*n,2*u),c.arcTo(.5*n,u,0,0,1,0,u),c.stroke()))};mxCellRenderer.registerShape("cylinder3",C);mxUtils.extend(D,mxActor);D.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n/2,.5*r,n,0);c.quadTo(.5*n,r/2,n,r);c.quadTo(n/2,.5*r,0,r);c.quadTo(.5*n,r/2,0,0);c.end()};mxCellRenderer.registerShape("switch",D);mxUtils.extend(E,-mxCylinder);E.prototype.tabWidth=60;E.prototype.tabHeight=20;E.prototype.tabPosition="right";E.prototype.arcSize=.1;E.prototype.isRoundable=function(){return!0};E.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var u=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),x=mxUtils.getValue(this.style,-"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1),z=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));I||(z*=Math.min(n,r));z=Math.min(z,.5*n,.5*(r-t));l=Math.max(l,z);l=Math.min(n-z,l);x||(z=0);c.begin();"left"==u?(c.moveTo(Math.max(z,0),t),c.lineTo(Math.max(z,0),0),c.lineTo(l,0),c.lineTo(l,t)):(c.moveTo(n-l,t),c.lineTo(n-l,0),c.lineTo(n-Math.max(z,0),0),c.lineTo(n-Math.max(z,0),t));x?(c.moveTo(0,z+t),c.arcTo(z,z,0,0,1,z,t),c.lineTo(n-z,t),c.arcTo(z,z,0,0,1,n,z+t),c.lineTo(n,+arguments);c.setStrokeColor(this.stroke);c.setFillColor(this.stroke);c.setDashed(!1);null!=t&&t();null!=n&&n()};mxCellRenderer.registerShape("wire",g);mxUtils.extend(d,mxCylinder);d.prototype.size=6;d.prototype.paintVertexShape=function(c,l,t,n,r){c.setFillColor(this.stroke);var v=Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size))-2)+2*this.strokewidth;c.ellipse(l+.5*(n-v),t+.5*(r-v),v,v);c.fill();c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};mxCellRenderer.registerShape("waypoint",+d);mxUtils.extend(h,mxActor);h.prototype.size=20;h.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/Oa);c.translate((n-l)/2,(r-l)/2+l/4);c.moveTo(0,.25*l);c.lineTo(.5*l,l*Sa);c.lineTo(l,.25*l);c.lineTo(.5*l,(.5-Sa)*l);c.lineTo(0,.25*l);c.close();c.end()};mxCellRenderer.registerShape("isoRectangle",h);mxUtils.extend(m,mxCylinder);m.prototype.size=20;m.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(n,r/(.5+Oa));v?(c.moveTo(0,.25*l),c.lineTo(.5*l,(.5-Sa)*l),c.lineTo(l,.25*l),c.moveTo(.5*+l,(.5-Sa)*l),c.lineTo(.5*l,(1-Sa)*l)):(c.translate((n-l)/2,(r-l)/2),c.moveTo(0,.25*l),c.lineTo(.5*l,l*Sa),c.lineTo(l,.25*l),c.lineTo(l,.75*l),c.lineTo(.5*l,(1-Sa)*l),c.lineTo(0,.75*l),c.close());c.end()};mxCellRenderer.registerShape("isoCube",m);mxUtils.extend(p,mxCylinder);p.prototype.redrawPath=function(c,l,t,n,r,v){l=Math.min(r/2,Math.round(r/8)+this.strokewidth-1);if(v&&null!=this.fill||!v&&null==this.fill)c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,+l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.moveTo(0,l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,-l);v||(c.moveTo(0,l),c.curveTo(0,-l/3,n,-l/3,n,l),c.lineTo(n,r-l),c.curveTo(n,r+l/3,0,r+l/3,0,r-l),c.close())};p.prototype.getLabelMargins=function(c){return new mxRectangle(0,2.5*Math.min(c.height/2,Math.round(c.height/8)+this.strokewidth-1),0,0)};mxCellRenderer.registerShape("datastore",p);mxUtils.extend(k,mxCylinder);k.prototype.size=30;k.prototype.darkOpacity=+0;k.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),x=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));c.translate(l,t);c.begin();c.moveTo(0,0);c.lineTo(n-v,0);c.lineTo(n,v);c.lineTo(n,r);c.lineTo(0,r);c.lineTo(0,0);c.close();c.end();c.fillAndStroke();this.outline||(c.setShadow(!1),0!=x&&(c.setFillAlpha(Math.abs(x)),c.setFillColor(0>x?"#FFFFFF":"#000000"),+c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.close(),c.fill()),c.begin(),c.moveTo(n-v,0),c.lineTo(n-v,v),c.lineTo(n,v),c.end(),c.stroke())};mxCellRenderer.registerShape("note",k);mxUtils.extend(u,k);mxCellRenderer.registerShape("note2",u);u.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,0)}return null};mxUtils.extend(w,mxShape);w.prototype.isoAngle=+15;w.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;v=Math.min(n*Math.tan(v),.5*r);c.translate(l,t);c.begin();c.moveTo(.5*n,0);c.lineTo(n,v);c.lineTo(n,r-v);c.lineTo(.5*n,r);c.lineTo(0,r-v);c.lineTo(0,v);c.close();c.fillAndStroke();c.setShadow(!1);c.begin();c.moveTo(0,v);c.lineTo(.5*n,2*v);c.lineTo(n,v);c.moveTo(.5*n,2*v);c.lineTo(.5*n,r);c.stroke()};mxCellRenderer.registerShape("isoCube2",+w);mxUtils.extend(y,mxShape);y.prototype.size=15;y.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.translate(l,t);0==v?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),c.moveTo(0,v),c.arcTo(.5*n,v,0,0,1,.5*n,0),c.arcTo(.5*n,v,0,0,1,n,v),c.lineTo(n,r-v),c.arcTo(.5*n,v,0,0,1,.5*n,r),c.arcTo(.5*n,v,0,0,1,0,r-v),c.close(),c.fillAndStroke(),c.setShadow(!1),c.begin(),c.moveTo(n,v),c.arcTo(.5*n,v,0,0,1,.5*n,2*v),c.arcTo(.5*+n,v,0,0,1,0,v),c.stroke())};mxCellRenderer.registerShape("cylinder2",y);mxUtils.extend(C,mxCylinder);C.prototype.size=15;C.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.max(0,Math.min(.5*r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"lid",!0);c.translate(l,t);0==v?(c.rect(0,0,n,r),c.fillAndStroke()):(c.begin(),x?(c.moveTo(0,v),c.arcTo(.5*n,v,0,0,1,.5*n,0),c.arcTo(.5*n,v,0,0,1,n,v)):(c.moveTo(0,0),c.arcTo(.5*n,v,0,0,0,.5*n,v),c.arcTo(.5*n,v,+0,0,0,n,0)),c.lineTo(n,r-v),c.arcTo(.5*n,v,0,0,1,.5*n,r),c.arcTo(.5*n,v,0,0,1,0,r-v),c.close(),c.fillAndStroke(),c.setShadow(!1),x&&(c.begin(),c.moveTo(n,v),c.arcTo(.5*n,v,0,0,1,.5*n,2*v),c.arcTo(.5*n,v,0,0,1,0,v),c.stroke()))};mxCellRenderer.registerShape("cylinder3",C);mxUtils.extend(D,mxActor);D.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n/2,.5*r,n,0);c.quadTo(.5*n,r/2,n,r);c.quadTo(n/2,.5*r,0,r);c.quadTo(.5*n,r/2,0,0);c.end()};mxCellRenderer.registerShape("switch",D);mxUtils.extend(E,+mxCylinder);E.prototype.tabWidth=60;E.prototype.tabHeight=20;E.prototype.tabPosition="right";E.prototype.arcSize=.1;E.prototype.isRoundable=function(){return!0};E.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"tabWidth",this.tabWidth))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));var v=mxUtils.getValue(this.style,"tabPosition",this.tabPosition),x=mxUtils.getValue(this.style,+"rounded",!1),I=mxUtils.getValue(this.style,"absoluteArcSize",!1),z=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));I||(z*=Math.min(n,r));z=Math.min(z,.5*n,.5*(r-t));l=Math.max(l,z);l=Math.min(n-z,l);x||(z=0);c.begin();"left"==v?(c.moveTo(Math.max(z,0),t),c.lineTo(Math.max(z,0),0),c.lineTo(l,0),c.lineTo(l,t)):(c.moveTo(n-l,t),c.lineTo(n-l,0),c.lineTo(n-Math.max(z,0),0),c.lineTo(n-Math.max(z,0),t));x?(c.moveTo(0,z+t),c.arcTo(z,z,0,0,1,z,t),c.lineTo(n-z,t),c.arcTo(z,z,0,0,1,n,z+t),c.lineTo(n,r-z),c.arcTo(z,z,0,0,1,n-z,r),c.lineTo(z,r),c.arcTo(z,z,0,0,1,0,r-z)):(c.moveTo(0,t),c.lineTo(n,t),c.lineTo(n,r),c.lineTo(0,r));c.close();c.fillAndStroke();c.setShadow(!1);"triangle"==mxUtils.getValue(this.style,"folderSymbol",null)&&(c.begin(),c.moveTo(n-30,t+20),c.lineTo(n-20,t+10),c.lineTo(n-10,t+20),c.close(),c.stroke())};mxCellRenderer.registerShape("folder",E);E.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"tabHeight",-15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var t=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),r=mxUtils.getValue(this.style,"absoluteArcSize",!1),u=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));r||(u*=Math.min(c.width,c.height));u=Math.min(u,.5*c.width,.5*(c.height-l));n||(u=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?-new mxRectangle(u,0,Math.min(c.width,c.width-t),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-t),0,u,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};mxUtils.extend(G,mxCylinder);G.prototype.arcSize=.1;G.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);var u=mxUtils.getValue(this.style,"rounded",!1),x=mxUtils.getValue(this.style,"absoluteArcSize",!1);l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));-t=mxUtils.getValue(this.style,"umlStateConnection",null);x||(l*=Math.min(n,r));l=Math.min(l,.5*n,.5*r);u||(l=0);u=0;null!=t&&(u=10);c.begin();c.moveTo(u,l);c.arcTo(l,l,0,0,1,u+l,0);c.lineTo(n-l,0);c.arcTo(l,l,0,0,1,n,l);c.lineTo(n,r-l);c.arcTo(l,l,0,0,1,n-l,r);c.lineTo(u+l,r);c.arcTo(l,l,0,0,1,u,r-l);c.close();c.fillAndStroke();c.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(c.roundrect(n-40,r-20,10,10,3,3),c.stroke(),c.roundrect(n-20,r-20,10,10,3,3),c.stroke(),+15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var t=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),r=mxUtils.getValue(this.style,"absoluteArcSize",!1),v=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));r||(v*=Math.min(c.width,c.height));v=Math.min(v,.5*c.width,.5*(c.height-l));n||(v=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?+new mxRectangle(v,0,Math.min(c.width,c.width-t),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-t),0,v,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};mxUtils.extend(G,mxCylinder);G.prototype.arcSize=.1;G.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);var v=mxUtils.getValue(this.style,"rounded",!1),x=mxUtils.getValue(this.style,"absoluteArcSize",!1);l=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));+t=mxUtils.getValue(this.style,"umlStateConnection",null);x||(l*=Math.min(n,r));l=Math.min(l,.5*n,.5*r);v||(l=0);v=0;null!=t&&(v=10);c.begin();c.moveTo(v,l);c.arcTo(l,l,0,0,1,v+l,0);c.lineTo(n-l,0);c.arcTo(l,l,0,0,1,n,l);c.lineTo(n,r-l);c.arcTo(l,l,0,0,1,n-l,r);c.lineTo(v+l,r);c.arcTo(l,l,0,0,1,v,r-l);c.close();c.fillAndStroke();c.setShadow(!1);"collapseState"==mxUtils.getValue(this.style,"umlStateSymbol",null)&&(c.roundrect(n-40,r-20,10,10,3,3),c.stroke(),c.roundrect(n-20,r-20,10,10,3,3),c.stroke(),c.begin(),c.moveTo(n-30,r-15),c.lineTo(n-20,r-15),c.stroke());"connPointRefEntry"==t?(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke()):"connPointRefExit"==t&&(c.ellipse(0,.5*r-10,20,20),c.fillAndStroke(),c.begin(),c.moveTo(5,.5*r-5),c.lineTo(15,.5*r+5),c.moveTo(15,.5*r-5),c.lineTo(5,.5*r+5),c.stroke())};G.prototype.getLabelMargins=function(c){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",G);mxUtils.extend(J,mxActor);J.prototype.size=30;J.prototype.isRoundable=function(){return!0};J.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n,0),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("card",J);mxUtils.extend(M,mxActor);M.prototype.size=.4;M.prototype.redrawPath=function(c,l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,l/2);c.quadTo(n/4,1.4*l,n/2,l/2);c.quadTo(3*n/4,l*(1-1.4),n,l/2);c.lineTo(n,r-l/2);c.quadTo(3*n/4,r-1.4*l,n/2,r-l/2);c.quadTo(n/4,r-l*(1-1.4),0,r-l/2);c.lineTo(0,l/2);c.close();c.end()};M.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",this.size),t=c.width,n=c.height;if(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)return l*=n,new mxRectangle(c.x,c.y+l,t,n-2*l);l*=t;return new mxRectangle(c.x+l,c.y,t-2*l,n)}return c};mxCellRenderer.registerShape("tape",M);mxUtils.extend(Q,mxActor);Q.prototype.size=.3;Q.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)?new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*c.height):null};Q.prototype.redrawPath=function(c,l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(0,0);c.lineTo(n,0);c.lineTo(n,r-l/2);c.quadTo(3*n/4,r-1.4*l,n/2,r-l/2);c.quadTo(n/4,r-l*(1-1.4),0,r-l/2);c.lineTo(0,l/2);c.close();c.end()};mxCellRenderer.registerShape("document",Q);var Xa=mxCylinder.prototype.getCylinderSize;mxCylinder.prototype.getCylinderSize=function(c,l,t,n){var r=mxUtils.getValue(this.style,"size");return null!=r?n*Math.max(0,Math.min(1,r)):Xa.apply(this,arguments)};mxCylinder.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=2*mxUtils.getValue(this.style,"size",.15);return new mxRectangle(0,Math.min(this.maxHeight*this.scale,c.height*l),0,0)}return null};C.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);mxUtils.getValue(this.style,"lid",!0)||(l/=2);return new mxRectangle(0,Math.min(c.height*this.scale,2*l*this.scale),0,Math.max(0,.3*-l*this.scale))}return null};E.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var t=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),r=mxUtils.getValue(this.style,"absoluteArcSize",!1),u=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));-r||(u*=Math.min(c.width,c.height));u=Math.min(u,.5*c.width,.5*(c.height-l));n||(u=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(u,0,Math.min(c.width,c.width-t),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-t),0,u,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};G.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,-"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};v.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,Math.max(0,l*this.scale))}return null};mxUtils.extend(L,mxActor);L.prototype.size=.2;L.prototype.fixedSize=20;L.prototype.isRoundable=function(){return!0};L.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,-"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r),new mxPoint(l,0),new mxPoint(n,0),new mxPoint(n-l,r)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("parallelogram",L);mxUtils.extend(W,mxActor);W.prototype.size=.2;W.prototype.fixedSize=+l*this.scale))}return null};E.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;if(mxUtils.getValue(this.style,"labelInHeader",!1)){var t=mxUtils.getValue(this.style,"tabWidth",15)*this.scale;l=mxUtils.getValue(this.style,"tabHeight",15)*this.scale;var n=mxUtils.getValue(this.style,"rounded",!1),r=mxUtils.getValue(this.style,"absoluteArcSize",!1),v=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));+r||(v*=Math.min(c.width,c.height));v=Math.min(v,.5*c.width,.5*(c.height-l));n||(v=0);return"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?new mxRectangle(v,0,Math.min(c.width,c.width-t),Math.min(c.height,c.height-l)):new mxRectangle(Math.min(c.width,c.width-t),0,v,Math.min(c.height,c.height-l))}return new mxRectangle(0,Math.min(c.height,l),0,0)}return null};G.prototype.getLabelMargins=function(c){return mxUtils.getValue(this.style,"boundedLbl",!1)&&null!=mxUtils.getValue(this.style,+"umlStateConnection",null)?new mxRectangle(10*this.scale,0,0,0):null};u.prototype.getLabelMargins=function(c){if(mxUtils.getValue(this.style,"boundedLbl",!1)){var l=mxUtils.getValue(this.style,"size",15);return new mxRectangle(0,Math.min(c.height*this.scale,l*this.scale),0,Math.max(0,l*this.scale))}return null};mxUtils.extend(K,mxActor);K.prototype.size=.2;K.prototype.fixedSize=20;K.prototype.isRoundable=function(){return!0};K.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,+"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r),new mxPoint(l,0),new mxPoint(n,0),new mxPoint(n-l,r)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("parallelogram",K);mxUtils.extend(W,mxActor);W.prototype.size=.2;W.prototype.fixedSize=20;W.prototype.isRoundable=function(){return!0};W.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(.5,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,r),new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,r)],this.isRounded,t,!0)};mxCellRenderer.registerShape("trapezoid",W);mxUtils.extend(X,mxActor);X.prototype.size=.5;X.prototype.redrawPath=function(c,l,t,n,r){c.setFillColor(null);l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(n,0),new mxPoint(l,0),new mxPoint(l,r/2),new mxPoint(0,r/2),new mxPoint(l,r/2),new mxPoint(l,r),new mxPoint(n,r)],this.isRounded,t,!1);c.end()};mxCellRenderer.registerShape("curlyBracket",X);mxUtils.extend(T,mxActor);T.prototype.redrawPath=function(c,l,t,n,r){c.setStrokeWidth(1);c.setFillColor(this.stroke);l=n/5;c.rect(0,0,l,r);c.fillAndStroke();c.rect(2*l,0,l,r);c.fillAndStroke();c.rect(4*l,0,l,r);c.fillAndStroke()};mxCellRenderer.registerShape("parallelMarker",T);N.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};N.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)};N.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};N.prototype.curveTo=function(c,l,t,n,r,u){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=u};N.prototype.arcTo=function(c,l,t,n,r,u,x){this.originalArcTo.apply(this.canvas,arguments);this.lastX=u;this.lastY=-x};N.prototype.lineTo=function(c,l){if(null!=this.lastX&&null!=this.lastY){var t=function(U){return"number"===typeof U?U?0>U?-1:1:U===U?0:NaN:NaN},n=Math.abs(c-this.lastX),r=Math.abs(l-this.lastY),u=Math.sqrt(n*n+r*r);if(2>u){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;return}var x=Math.round(u/10),I=this.defaultVariation;5>x&&(x=5,I/=3);var z=t(c-this.lastX)*n/x;t=t(l-this.lastY)*r/x;n/=u;r/=u;for(u=0;u<x;u++){var da=(Math.random()-.5)*I;this.originalLineTo.call(this.canvas,-z*u+this.lastX-da*r,t*u+this.lastY-da*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l};N.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 kb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){kb.apply(this,+null!=this.firstY&&(this.lineTo(this.firstX,this.firstY),this.originalClose.apply(this.canvas,arguments));this.originalClose.apply(this.canvas,arguments)};N.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};N.prototype.curveTo=function(c,l,t,n,r,v){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=v};N.prototype.arcTo=function(c,l,t,n,r,v,x){this.originalArcTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=+x};N.prototype.lineTo=function(c,l){if(null!=this.lastX&&null!=this.lastY){var t=function(U){return"number"===typeof U?U?0>U?-1:1:U===U?0:NaN:NaN},n=Math.abs(c-this.lastX),r=Math.abs(l-this.lastY),v=Math.sqrt(n*n+r*r);if(2>v){this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;return}var x=Math.round(v/10),I=this.defaultVariation;5>x&&(x=5,I/=3);var z=t(c-this.lastX)*n/x;t=t(l-this.lastY)*r/x;n/=v;r/=v;for(v=0;v<x;v++){var da=(Math.random()-.5)*I;this.originalLineTo.call(this.canvas,+z*v+this.lastX-da*r,t*v+this.lastY-da*n)}this.originalLineTo.call(this.canvas,c,l)}else this.originalLineTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l};N.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 kb=mxShape.prototype.beforePaint;mxShape.prototype.beforePaint=function(c){kb.apply(this,arguments);null==c.handJiggle&&(c.handJiggle=this.createHandJiggle(c))};var tb=mxShape.prototype.afterPaint;mxShape.prototype.afterPaint=function(c){tb.apply(this,arguments);null!=c.handJiggle&&(c.handJiggle.destroy(),delete c.handJiggle)};mxShape.prototype.createComicCanvas=function(c){return new N(c,mxUtils.getValue(this.style,"jiggle",Editor.sketchDefaultJiggle))};mxShape.prototype.createHandJiggle=function(c){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"comic","0")?null:this.createComicCanvas(c)};var ub=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"))&&ub.apply(this,arguments)};var lb=mxRectangleShape.prototype.paintBackground;mxRectangleShape.prototype.paintBackground=function(c,l,t,n,r){if(null==c.handJiggle||c.handJiggle.constructor!=N)lb.apply(this,arguments);-else{var u=!0;null!=this.style&&(u="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(u||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)u||null!=this.fill&&this.fill!=mxConstants.NONE||(c.pointerEvents=!1),c.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?u=Math.min(n/2,Math.min(r/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(u=mxUtils.getValue(this.style,-mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,u=Math.min(n*u,r*u)),c.moveTo(l+u,t),c.lineTo(l+n-u,t),c.quadTo(l+n,t,l+n,t+u),c.lineTo(l+n,t+r-u),c.quadTo(l+n,t+r,l+n-u,t+r),c.lineTo(l+u,t+r),c.quadTo(l,t+r,l,t+r-u),c.lineTo(l,t+u),c.quadTo(l,t,l+u,t)):(c.moveTo(l,t),c.lineTo(l+n,t),c.lineTo(l+n,t+r),c.lineTo(l,t+r),c.lineTo(l,t)),c.close(),c.end(),c.fillAndStroke()}};mxUtils.extend(ca,mxRectangleShape);ca.prototype.size=.1;ca.prototype.fixedSize=!1;ca.prototype.isHtmlAllowed=+else{var v=!0;null!=this.style&&(v="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(v||null!=this.fill&&this.fill!=mxConstants.NONE||null!=this.stroke&&this.stroke!=mxConstants.NONE)v||null!=this.fill&&this.fill!=mxConstants.NONE||(c.pointerEvents=!1),c.begin(),this.isRounded?("1"==mxUtils.getValue(this.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?v=Math.min(n/2,Math.min(r/2,mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2)):(v=mxUtils.getValue(this.style,+mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,v=Math.min(n*v,r*v)),c.moveTo(l+v,t),c.lineTo(l+n-v,t),c.quadTo(l+n,t,l+n,t+v),c.lineTo(l+n,t+r-v),c.quadTo(l+n,t+r,l+n-v,t+r),c.lineTo(l+v,t+r),c.quadTo(l,t+r,l,t+r-v),c.lineTo(l,t+v),c.quadTo(l,t,l+v,t)):(c.moveTo(l,t),c.lineTo(l+n,t),c.lineTo(l+n,t+r),c.lineTo(l,t+r),c.lineTo(l,t)),c.close(),c.end(),c.fillAndStroke()}};mxUtils.extend(ca,mxRectangleShape);ca.prototype.size=.1;ca.prototype.fixedSize=!1;ca.prototype.isHtmlAllowed=function(){return!1};ca.prototype.getLabelBounds=function(c){if(mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,!0)==(null==this.direction||this.direction==mxConstants.DIRECTION_EAST||this.direction==mxConstants.DIRECTION_WEST)){var l=c.width,t=c.height;c=new mxRectangle(c.x,c.y,l,t);var n=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));if(this.isRounded){var r=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/-100;n=Math.max(n,Math.min(l*r,t*r))}c.x+=Math.round(n);c.width-=Math.round(2*n);return c}return c};ca.prototype.paintForeground=function(c,l,t,n,r){var u=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),x=parseFloat(mxUtils.getValue(this.style,"size",this.size));x=u?Math.max(0,Math.min(n,x)):n*Math.max(0,Math.min(1,x));this.isRounded&&(u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,x=Math.max(x,Math.min(n*u,r*u)));x=Math.round(x);c.begin();+100;n=Math.max(n,Math.min(l*r,t*r))}c.x+=Math.round(n);c.width-=Math.round(2*n);return c}return c};ca.prototype.paintForeground=function(c,l,t,n,r){var v=mxUtils.getValue(this.style,"fixedSize",this.fixedSize),x=parseFloat(mxUtils.getValue(this.style,"size",this.size));x=v?Math.max(0,Math.min(n,x)):n*Math.max(0,Math.min(1,x));this.isRounded&&(v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/100,x=Math.max(x,Math.min(n*v,r*v)));x=Math.round(x);c.begin();c.moveTo(l+x,t);c.lineTo(l+x,t+r);c.moveTo(l+n-x,t);c.lineTo(l+n-x,t+r);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("process",ca);mxCellRenderer.registerShape("process2",ca);mxUtils.extend(H,mxRectangleShape);H.prototype.paintBackground=function(c,l,t,n,r){c.setFillColor(mxConstants.NONE);c.rect(l,t,n,r);c.fill()};H.prototype.paintForeground=function(c,l,t,n,r){};mxCellRenderer.registerShape("transparent",H);mxUtils.extend(S,mxHexagon);-S.prototype.size=30;S.prototype.position=.5;S.prototype.position2=.5;S.prototype.base=20;S.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};S.prototype.isRoundable=function(){return!0};S.prototype.redrawPath=function(c,l,t,n,r){l=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var u=n*Math.max(0,-Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),x=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),I=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-t),new mxPoint(Math.min(n,u+I),r-t),new mxPoint(x,r),new mxPoint(Math.max(0,u),r-t),new mxPoint(0,r-t)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",S);mxUtils.extend(ea,+S.prototype.size=30;S.prototype.position=.5;S.prototype.position2=.5;S.prototype.base=20;S.prototype.getLabelMargins=function(){return new mxRectangle(0,0,0,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale)};S.prototype.isRoundable=function(){return!0};S.prototype.redrawPath=function(c,l,t,n,r){l=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var v=n*Math.max(0,+Math.min(1,parseFloat(mxUtils.getValue(this.style,"position",this.position)))),x=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"position2",this.position2)))),I=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"base",this.base))));this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,r-t),new mxPoint(Math.min(n,v+I),r-t),new mxPoint(x,r),new mxPoint(Math.max(0,v),r-t),new mxPoint(0,r-t)],this.isRounded,l,!0,[4])};mxCellRenderer.registerShape("callout",S);mxUtils.extend(ea,mxActor);ea.prototype.size=.2;ea.prototype.fixedSize=20;ea.prototype.isRoundable=function(){return!0};ea.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(0,r),new mxPoint(l,r/2)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("step",ea);mxUtils.extend(la,mxHexagon);la.prototype.size=.25;la.prototype.fixedSize=20;la.prototype.isRoundable=function(){return!0};la.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(.5*n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,-"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,.5*r),new mxPoint(n-l,r),new mxPoint(l,r),new mxPoint(0,.5*r)],this.isRounded,t,!0)};mxCellRenderer.registerShape("hexagon",la);mxUtils.extend(O,mxRectangleShape);O.prototype.isHtmlAllowed=function(){return!1};O.prototype.paintForeground=function(c,l,t,n,r){var u=Math.min(n/5,r/5)+1;c.begin();c.moveTo(l+n/2,t+u);c.lineTo(l+n/2,-t+r-u);c.moveTo(l+u,t+r/2);c.lineTo(l+n-u,t+r/2);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",O);var mb=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};mxRhombus.prototype.paintVertexShape=-function(c,l,t,n,r){mb.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var u=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=u;t+=u;n-=2*u;r-=2*u;0<n&&0<r&&(c.setShadow(!1),mb.apply(this,[c,l,t,n,r]))}};mxUtils.extend(V,mxRectangleShape);V.prototype.isHtmlAllowed=function(){return!1};V.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;-return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};V.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var u=Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=u;t+=u;n-=2*u;r-=2*u;0<n&&0<r&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);u=0;do{var x=mxCellRenderer.defaultShapes[this.style["symbol"+u]];if(null!=x){var I=this.style["symbol"+u+"Align"],-z=this.style["symbol"+u+"VerticalAlign"],da=this.style["symbol"+u+"Width"],U=this.style["symbol"+u+"Height"],Fa=this.style["symbol"+u+"Spacing"]||0,Ua=this.style["symbol"+u+"VSpacing"]||Fa,Pa=this.style["symbol"+u+"ArcSpacing"];null!=Pa&&(Pa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Fa+=Pa,Ua+=Pa);Pa=l;var oa=t;Pa=I==mxConstants.ALIGN_CENTER?Pa+(n-da)/2:I==mxConstants.ALIGN_RIGHT?Pa+(n-da-Fa):Pa+Fa;oa=z==mxConstants.ALIGN_MIDDLE?oa+(r-U)/2:z==mxConstants.ALIGN_BOTTOM?oa+(r-U-Ua):oa+-Ua;c.save();I=new x;I.style=this.style;x.prototype.paintVertexShape.call(I,c,Pa,oa,da,U);c.restore()}u++}while(null!=x)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",V);mxUtils.extend(Y,mxCylinder);Y.prototype.redrawPath=function(c,l,t,n,r,u){u?(c.moveTo(0,0),c.lineTo(n/2,r/2),c.lineTo(n,0),c.end()):(c.moveTo(0,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(0,r),c.close())};mxCellRenderer.registerShape("message",Y);mxUtils.extend(ha,mxShape);ha.prototype.paintBackground=+"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,.5*r),new mxPoint(n-l,r),new mxPoint(l,r),new mxPoint(0,.5*r)],this.isRounded,t,!0)};mxCellRenderer.registerShape("hexagon",la);mxUtils.extend(O,mxRectangleShape);O.prototype.isHtmlAllowed=function(){return!1};O.prototype.paintForeground=function(c,l,t,n,r){var v=Math.min(n/5,r/5)+1;c.begin();c.moveTo(l+n/2,t+v);c.lineTo(l+n/2,+t+r-v);c.moveTo(l+v,t+r/2);c.lineTo(l+n-v,t+r/2);c.end();c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("plus",O);var mb=mxRhombus.prototype.paintVertexShape;mxRhombus.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};mxRhombus.prototype.paintVertexShape=+function(c,l,t,n,r){mb.apply(this,arguments);if(!this.outline&&1==this.style["double"]){var v=2*Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=v;t+=v;n-=2*v;r-=2*v;0<n&&0<r&&(c.setShadow(!1),mb.apply(this,[c,l,t,n,r]))}};mxUtils.extend(V,mxRectangleShape);V.prototype.isHtmlAllowed=function(){return!1};V.prototype.getLabelBounds=function(c){if(1==this.style["double"]){var l=(Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0))*this.scale;+return new mxRectangle(c.x+l,c.y+l,c.width-2*l,c.height-2*l)}return c};V.prototype.paintForeground=function(c,l,t,n,r){if(null!=this.style){if(!this.outline&&1==this.style["double"]){var v=Math.max(2,this.strokewidth+1)+parseFloat(this.style[mxConstants.STYLE_MARGIN]||0);l+=v;t+=v;n-=2*v;r-=2*v;0<n&&0<r&&mxRectangleShape.prototype.paintBackground.apply(this,arguments)}c.setDashed(!1);v=0;do{var x=mxCellRenderer.defaultShapes[this.style["symbol"+v]];if(null!=x){var I=this.style["symbol"+v+"Align"],+z=this.style["symbol"+v+"VerticalAlign"],da=this.style["symbol"+v+"Width"],U=this.style["symbol"+v+"Height"],Fa=this.style["symbol"+v+"Spacing"]||0,Ua=this.style["symbol"+v+"VSpacing"]||Fa,Pa=this.style["symbol"+v+"ArcSpacing"];null!=Pa&&(Pa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Fa+=Pa,Ua+=Pa);Pa=l;var oa=t;Pa=I==mxConstants.ALIGN_CENTER?Pa+(n-da)/2:I==mxConstants.ALIGN_RIGHT?Pa+(n-da-Fa):Pa+Fa;oa=z==mxConstants.ALIGN_MIDDLE?oa+(r-U)/2:z==mxConstants.ALIGN_BOTTOM?oa+(r-U-Ua):oa++Ua;c.save();I=new x;I.style=this.style;x.prototype.paintVertexShape.call(I,c,Pa,oa,da,U);c.restore()}v++}while(null!=x)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",V);mxUtils.extend(Y,mxCylinder);Y.prototype.redrawPath=function(c,l,t,n,r,v){v?(c.moveTo(0,0),c.lineTo(n/2,r/2),c.lineTo(n,0),c.end()):(c.moveTo(0,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(0,r),c.close())};mxCellRenderer.registerShape("message",Y);mxUtils.extend(ha,mxShape);ha.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.ellipse(n/4,0,n/2,r/4);c.fillAndStroke();c.begin();c.moveTo(n/2,r/4);c.lineTo(n/2,2*r/3);c.moveTo(n/2,r/3);c.lineTo(0,r/3);c.moveTo(n/2,r/3);c.lineTo(n,r/3);c.moveTo(n/2,2*r/3);c.lineTo(0,r);c.moveTo(n/2,2*r/3);c.lineTo(n,r);c.end();c.stroke()};mxCellRenderer.registerShape("umlActor",ha);mxUtils.extend(ia,mxShape);ia.prototype.getLabelMargins=function(c){return new mxRectangle(c.width/6,0,0,0)};ia.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(0,r/4);c.lineTo(0,3*r/4);c.end();c.stroke();c.begin();c.moveTo(0,r/2);c.lineTo(n/6,r/2);c.end();c.stroke();c.ellipse(n/6,0,5*n/6,r);c.fillAndStroke()};mxCellRenderer.registerShape("umlBoundary",ia);mxUtils.extend(ta,mxEllipse);ta.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+n/8,t+r);c.lineTo(l+7*n/8,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("umlEntity",ta);mxUtils.extend(aa,mxShape);aa.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(n,0);c.lineTo(0,r);c.moveTo(0,0);c.lineTo(n,r);c.end();c.stroke()};mxCellRenderer.registerShape("umlDestroy",aa);mxUtils.extend(P,mxShape);P.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/8,c.width,7*c.height/8)};P.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,0);c.end();c.stroke();c.ellipse(0,r/8,n,7*r/8);c.fillAndStroke()};P.prototype.paintForeground=-function(c,l,t,n,r){c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,r/4);c.end();c.stroke()};mxCellRenderer.registerShape("umlControl",P);mxUtils.extend(ba,mxRectangleShape);ba.prototype.size=40;ba.prototype.isHtmlAllowed=function(){return!1};ba.prototype.getLabelBounds=function(c){var l=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,l)};ba.prototype.paintBackground=function(c,l,t,n,r){var u=Math.max(0,Math.min(r,-parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"participant");null==x||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,c,l,t,n,u):(x=this.state.view.graph.cellRenderer.getShape(x),null!=x&&x!=ba&&(x=new x,x.apply(this.state),c.save(),x.paintVertexShape(c,l,t,n,u),c.restore()));u<r&&(c.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),c.begin(),c.moveTo(l+n/2,t+u),c.lineTo(l+n/2,t+r),c.end(),c.stroke())};ba.prototype.paintForeground=-function(c,l,t,n,r){var u=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,c,l,t,n,Math.min(r,u))};mxCellRenderer.registerShape("umlLifeline",ba);mxUtils.extend(ma,mxShape);ma.prototype.width=60;ma.prototype.height=30;ma.prototype.corner=10;ma.prototype.configurePointerEvents=function(c){var l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=l&&l!=mxConstants.NONE&&-0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};ma.prototype.getLabelMargins=function(c){return new mxRectangle(0,0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};ma.prototype.paintBackground=function(c,l,t,n,r){var u=this.corner,x=Math.min(n,Math.max(u,parseFloat(mxUtils.getValue(this.style,"width",-this.width)))),I=Math.min(r,Math.max(1.5*u,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),z=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);z!=mxConstants.NONE&&(c.setFillColor(z),c.rect(l,t,n,r),c.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(c,l,t,n,r),c.setGradient(this.fill,this.gradient,l,t,n,r,this.gradientDirection)):c.setFillColor(this.fill);c.pointerEvents=!0;-c.begin();c.moveTo(l,t);c.lineTo(l+x,t);c.lineTo(l+x,t+Math.max(0,I-1.5*u));c.lineTo(l+Math.max(0,x-u),t+I);c.lineTo(l,t+I);c.close();c.fillAndStroke();this.configurePointerEvents(c);c.begin();c.moveTo(l+x,t);c.lineTo(l+n,t);c.lineTo(l+n,t+r);c.lineTo(l,t+r);c.lineTo(l,t+I);c.stroke()};mxCellRenderer.registerShape("umlFrame",ma);mxPerimeter.CenterPerimeter=function(c,l,t,n){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=+function(c,l,t,n,r){c.begin();c.moveTo(3*n/8,r/8*1.1);c.lineTo(5*n/8,r/4);c.end();c.stroke()};mxCellRenderer.registerShape("umlControl",P);mxUtils.extend(ba,mxRectangleShape);ba.prototype.size=40;ba.prototype.isHtmlAllowed=function(){return!1};ba.prototype.getLabelBounds=function(c){var l=Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(this.style,"size",this.size))*this.scale));return new mxRectangle(c.x,c.y,c.width,l)};ba.prototype.paintBackground=function(c,l,t,n,r){var v=Math.max(0,Math.min(r,+parseFloat(mxUtils.getValue(this.style,"size",this.size)))),x=mxUtils.getValue(this.style,"participant");null==x||null==this.state?mxRectangleShape.prototype.paintBackground.call(this,c,l,t,n,v):(x=this.state.view.graph.cellRenderer.getShape(x),null!=x&&x!=ba&&(x=new x,x.apply(this.state),c.save(),x.paintVertexShape(c,l,t,n,v),c.restore()));v<r&&(c.setDashed("1"==mxUtils.getValue(this.style,"lifelineDashed","1")),c.begin(),c.moveTo(l+n/2,t+v),c.lineTo(l+n/2,t+r),c.end(),c.stroke())};ba.prototype.paintForeground=+function(c,l,t,n,r){var v=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));mxRectangleShape.prototype.paintForeground.call(this,c,l,t,n,Math.min(r,v))};mxCellRenderer.registerShape("umlLifeline",ba);mxUtils.extend(ma,mxShape);ma.prototype.width=60;ma.prototype.height=30;ma.prototype.corner=10;ma.prototype.configurePointerEvents=function(c){var l=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);null==this.style||null!=l&&l!=mxConstants.NONE&&+0!=this.opacity&&0!=this.fillOpacity||"0"!=mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||(c.pointerEvents=!1)};ma.prototype.getLabelMargins=function(c){return new mxRectangle(0,0,c.width-parseFloat(mxUtils.getValue(this.style,"width",this.width)*this.scale),c.height-parseFloat(mxUtils.getValue(this.style,"height",this.height)*this.scale))};ma.prototype.paintBackground=function(c,l,t,n,r){var v=this.corner,x=Math.min(n,Math.max(v,parseFloat(mxUtils.getValue(this.style,"width",+this.width)))),I=Math.min(r,Math.max(1.5*v,parseFloat(mxUtils.getValue(this.style,"height",this.height)))),z=mxUtils.getValue(this.style,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.NONE);z!=mxConstants.NONE&&(c.setFillColor(z),c.rect(l,t,n,r),c.fill());null!=this.fill&&this.fill!=mxConstants.NONE&&this.gradient&&this.gradient!=mxConstants.NONE?(this.getGradientBounds(c,l,t,n,r),c.setGradient(this.fill,this.gradient,l,t,n,r,this.gradientDirection)):c.setFillColor(this.fill);c.pointerEvents=!0;+c.begin();c.moveTo(l,t);c.lineTo(l+x,t);c.lineTo(l+x,t+Math.max(0,I-1.5*v));c.lineTo(l+Math.max(0,x-v),t+I);c.lineTo(l,t+I);c.close();c.fillAndStroke();this.configurePointerEvents(c);c.begin();c.moveTo(l+x,t);c.lineTo(l+n,t);c.lineTo(l+n,t+r);c.lineTo(l,t+r);c.lineTo(l,t+I);c.stroke()};mxCellRenderer.registerShape("umlFrame",ma);mxPerimeter.CenterPerimeter=function(c,l,t,n){return new mxPoint(c.getCenterX(),c.getCenterY())};mxStyleRegistry.putValue("centerPerimeter",mxPerimeter.CenterPerimeter);mxPerimeter.LifelinePerimeter=function(c,l,t,n){n=ba.prototype.size;null!=l&&(n=mxUtils.getValue(l.style,"size",n)*l.view.scale);l=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;t.x<c.getCenterX()&&(l=-1*(l+1));return new mxPoint(c.getCenterX()+l,Math.min(c.y+c.height,Math.max(c.y+n,t.y)))};mxStyleRegistry.putValue("lifelinePerimeter",mxPerimeter.LifelinePerimeter);mxPerimeter.OrthogonalPerimeter=function(c,l,t,n){n=!0;return mxPerimeter.RectanglePerimeter.apply(this,arguments)};mxStyleRegistry.putValue("orthogonalPerimeter",mxPerimeter.OrthogonalPerimeter);mxPerimeter.BackbonePerimeter=function(c,l,t,n){n=parseFloat(l.style[mxConstants.STYLE_STROKEWIDTH]||1)*l.view.scale/2-1;null!=l.style.backboneSize&&(n+=parseFloat(l.style.backboneSize)*l.view.scale/2-1);if("south"==l.style[mxConstants.STYLE_DIRECTION]||"north"==l.style[mxConstants.STYLE_DIRECTION])return t.x<c.getCenterX()&&(n=-1*(n+1)),new mxPoint(c.getCenterX()+n,Math.min(c.y+c.height,Math.max(c.y,t.y)));t.y<c.getCenterY()&&(n=-1*(n+1));return new mxPoint(Math.min(c.x+c.width,Math.max(c.x,t.x)),c.getCenterY()+n)};mxStyleRegistry.putValue("backbonePerimeter",mxPerimeter.BackbonePerimeter);mxPerimeter.CalloutPerimeter=function(c,l,t,n){return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(c,new mxRectangle(0,0,0,Math.max(0,Math.min(c.height,parseFloat(mxUtils.getValue(l.style,"size",S.prototype.size))*l.view.scale))),l.style),l,t,n)};mxStyleRegistry.putValue("calloutPerimeter",mxPerimeter.CalloutPerimeter);mxPerimeter.ParallelogramPerimeter=function(c,-l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),u=r?L.prototype.fixedSize:L.prototype.size;null!=l&&(u=mxUtils.getValue(l.style,"size",u));r&&(u*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I),new mxPoint(x+z,I+r),new mxPoint(x+-z,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I)]):(r=r?Math.max(0,Math.min(.5*z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x+r,I),new mxPoint(x+z,I),new mxPoint(x+z-r,I+da),new mxPoint(x,I+da),new mxPoint(x+r,I)]);da=c.getCenterX();c=c.getCenterY();c=new mxPoint(da,c);n&&(t.x<x||t.x>x+z?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,c,t)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,-"fixedSize","0"),u=r?W.prototype.fixedSize:W.prototype.size;null!=l&&(u=mxUtils.getValue(l.style,"size",u));r&&(u*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(.5*z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x+r,I),new mxPoint(x+z-r,I),new mxPoint(x+z,I+da),new mxPoint(x,I+da),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_WEST?-(r=r?Math.max(0,Math.min(z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I),new mxPoint(x+z,I),new mxPoint(x+z-r,I+da),new mxPoint(x+r,I+da),new mxPoint(x,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I+r),new mxPoint(x+z,I),new mxPoint(x+z,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da-r),new mxPoint(x,-I+da),new mxPoint(x,I)]);da=c.getCenterX();c=c.getCenterY();c=new mxPoint(da,c);n&&(t.x<x||t.x>x+z?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,c,t)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),u=r?ea.prototype.fixedSize:ea.prototype.size;null!=l&&(u=mxUtils.getValue(l.style,"size",u));r&&(u*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height,U=c.getCenterX();-c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I),new mxPoint(x+z-r,I),new mxPoint(x+z,c),new mxPoint(x+z-r,I+da),new mxPoint(x,I+da),new mxPoint(x+r,c),new mxPoint(x,I)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x+r,I),new mxPoint(x+z,I),new mxPoint(x+-z-r,c),new mxPoint(x+z,I+da),new mxPoint(x+r,I+da),new mxPoint(x,c),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I+r),new mxPoint(U,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da),new mxPoint(U,I+da-r),new mxPoint(x,I+da),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(x,I),new mxPoint(U,I+r),new mxPoint(x+z,I),new mxPoint(x+z,I+da-r),new mxPoint(U,I+da),new mxPoint(x,-I+da-r),new mxPoint(x,I)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(I,U,t)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),u=r?la.prototype.fixedSize:la.prototype.size;null!=l&&(u=mxUtils.getValue(l.style,"size",u));r&&(u*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height,U=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,-mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(da,u)):da*Math.max(0,Math.min(1,u)),I=[new mxPoint(U,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da-r),new mxPoint(U,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I+r),new mxPoint(U,I)]):(r=r?Math.max(0,Math.min(z,u)):z*Math.max(0,Math.min(1,u)),I=[new mxPoint(x+r,I),new mxPoint(x+z-r,I),new mxPoint(x+z,c),new mxPoint(x+z-r,I+da),new mxPoint(x+-r,I+da),new mxPoint(x,c),new mxPoint(x+r,I)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(I,U,t)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(Ja,mxShape);Ja.prototype.size=10;Ja.prototype.paintBackground=function(c,l,t,n,r){var u=parseFloat(mxUtils.getValue(this.style,"size",this.size));c.translate(l,t);c.ellipse((n-u)/2,0,u,u);c.fillAndStroke();c.begin();c.moveTo(n/2,u);c.lineTo(n/2,r);c.end();c.stroke()};-mxCellRenderer.registerShape("lollipop",Ja);mxUtils.extend(na,mxShape);na.prototype.size=10;na.prototype.inset=2;na.prototype.paintBackground=function(c,l,t,n,r){var u=parseFloat(mxUtils.getValue(this.style,"size",this.size)),x=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.begin();c.moveTo(n/2,u+x);c.lineTo(n/2,r);c.end();c.stroke();c.begin();c.moveTo((n-u)/2-x,u/2);c.quadTo((n-u)/2-x,u+x,n/2,u+x);c.quadTo((n+u)/2+x,u+x,(n+u)/2+x,u/2);c.end();c.stroke()};-mxCellRenderer.registerShape("requires",na);mxUtils.extend(ya,mxShape);ya.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.end();c.stroke()};mxCellRenderer.registerShape("requiredInterface",ya);mxUtils.extend(za,mxShape);za.prototype.inset=2;za.prototype.paintBackground=function(c,l,t,n,r){var u=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.ellipse(0,u,n-2*u,r-2*u);c.fillAndStroke();-c.begin();c.moveTo(n/2,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n/2,r);c.end();c.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",za);mxUtils.extend(Ka,mxCylinder);Ka.prototype.jettyWidth=20;Ka.prototype.jettyHeight=10;Ka.prototype.redrawPath=function(c,l,t,n,r,u){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=Math.min(l,r-l),z=Math.min(I+2*l,r-l);u?(c.moveTo(t,I),-c.lineTo(x,I),c.lineTo(x,I+l),c.lineTo(t,I+l),c.moveTo(t,z),c.lineTo(x,z),c.lineTo(x,z+l),c.lineTo(t,z+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,z+l),c.lineTo(0,z+l),c.lineTo(0,z),c.lineTo(t,z),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("module",Ka);mxUtils.extend(Qa,mxCylinder);Qa.prototype.jettyWidth=32;Qa.prototype.jettyHeight=12;Qa.prototype.redrawPath=function(c,l,t,n,r,u){var x=parseFloat(mxUtils.getValue(this.style,-"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=.3*r-l/2,z=.7*r-l/2;u?(c.moveTo(t,I),c.lineTo(x,I),c.lineTo(x,I+l),c.lineTo(t,I+l),c.moveTo(t,z),c.lineTo(x,z),c.lineTo(x,z+l),c.lineTo(t,z+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,z+l),c.lineTo(0,z+l),c.lineTo(0,z),c.lineTo(t,z),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("component",-Qa);mxUtils.extend(Ia,mxRectangleShape);Ia.prototype.paintForeground=function(c,l,t,n,r){var u=n/2,x=r/2,I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;c.begin();this.addPoints(c,[new mxPoint(l+u,t),new mxPoint(l+n,t+x),new mxPoint(l+u,t+r),new mxPoint(l,t+x)],this.isRounded,I,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Ia);mxUtils.extend(Ha,mxDoubleEllipse);Ha.prototype.outerStroke=-!0;Ha.prototype.paintVertexShape=function(c,l,t,n,r){var u=Math.min(4,Math.min(n/5,r/5));0<n&&0<r&&(c.ellipse(l+u,t+u,n-2*u,r-2*u),c.fillAndStroke());c.setShadow(!1);this.outerStroke&&(c.ellipse(l,t,n,r),c.stroke())};mxCellRenderer.registerShape("endState",Ha);mxUtils.extend(ra,Ha);ra.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",ra);mxUtils.extend(Da,mxArrowConnector);Da.prototype.defaultWidth=4;Da.prototype.isOpenEnded=function(){return!0};Da.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,+l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?K.prototype.fixedSize:K.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+z,I+r),new mxPoint(x++z,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I)]):(r=r?Math.max(0,Math.min(.5*z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+z,I),new mxPoint(x+z-r,I+da),new mxPoint(x,I+da),new mxPoint(x+r,I)]);da=c.getCenterX();c=c.getCenterY();c=new mxPoint(da,c);n&&(t.x<x||t.x>x+z?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,c,t)};mxStyleRegistry.putValue("parallelogramPerimeter",mxPerimeter.ParallelogramPerimeter);mxPerimeter.TrapezoidPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,+"fixedSize","0"),v=r?W.prototype.fixedSize:W.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height;l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(.5*z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+z-r,I),new mxPoint(x+z,I+da),new mxPoint(x,I+da),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_WEST?+(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+z,I),new mxPoint(x+z-r,I+da),new mxPoint(x+r,I+da),new mxPoint(x,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I+r),new mxPoint(x+z,I),new mxPoint(x+z,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da-r),new mxPoint(x,+I+da),new mxPoint(x,I)]);da=c.getCenterX();c=c.getCenterY();c=new mxPoint(da,c);n&&(t.x<x||t.x>x+z?c.y=t.y:c.x=t.x);return mxUtils.getPerimeterPoint(I,c,t)};mxStyleRegistry.putValue("trapezoidPerimeter",mxPerimeter.TrapezoidPerimeter);mxPerimeter.StepPerimeter=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?ea.prototype.fixedSize:ea.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height,U=c.getCenterX();+c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_EAST?(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(x+z-r,I),new mxPoint(x+z,c),new mxPoint(x+z-r,I+da),new mxPoint(x,I+da),new mxPoint(x+r,c),new mxPoint(x,I)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+z,I),new mxPoint(x++z-r,c),new mxPoint(x+z,I+da),new mxPoint(x+r,I+da),new mxPoint(x,c),new mxPoint(x+r,I)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I+r),new mxPoint(U,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da),new mxPoint(U,I+da-r),new mxPoint(x,I+da),new mxPoint(x,I+r)]):(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(x,I),new mxPoint(U,I+r),new mxPoint(x+z,I),new mxPoint(x+z,I+da-r),new mxPoint(U,I+da),new mxPoint(x,+I+da-r),new mxPoint(x,I)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(I,U,t)};mxStyleRegistry.putValue("stepPerimeter",mxPerimeter.StepPerimeter);mxPerimeter.HexagonPerimeter2=function(c,l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?la.prototype.fixedSize:la.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,I=c.y,z=c.width,da=c.height,U=c.getCenterX();c=c.getCenterY();l=null!=l?mxUtils.getValue(l.style,+mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;l==mxConstants.DIRECTION_NORTH||l==mxConstants.DIRECTION_SOUTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),I=[new mxPoint(U,I),new mxPoint(x+z,I+r),new mxPoint(x+z,I+da-r),new mxPoint(U,I+da),new mxPoint(x,I+da-r),new mxPoint(x,I+r),new mxPoint(U,I)]):(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),I=[new mxPoint(x+r,I),new mxPoint(x+z-r,I),new mxPoint(x+z,c),new mxPoint(x+z-r,I+da),new mxPoint(x++r,I+da),new mxPoint(x,c),new mxPoint(x+r,I)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(I,U,t)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(Ja,mxShape);Ja.prototype.size=10;Ja.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"size",this.size));c.translate(l,t);c.ellipse((n-v)/2,0,v,v);c.fillAndStroke();c.begin();c.moveTo(n/2,v);c.lineTo(n/2,r);c.end();c.stroke()};+mxCellRenderer.registerShape("lollipop",Ja);mxUtils.extend(na,mxShape);na.prototype.size=10;na.prototype.inset=2;na.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"size",this.size)),x=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.begin();c.moveTo(n/2,v+x);c.lineTo(n/2,r);c.end();c.stroke();c.begin();c.moveTo((n-v)/2-x,v/2);c.quadTo((n-v)/2-x,v+x,n/2,v+x);c.quadTo((n+v)/2+x,v+x,(n+v)/2+x,v/2);c.end();c.stroke()};+mxCellRenderer.registerShape("requires",na);mxUtils.extend(ya,mxShape);ya.prototype.paintBackground=function(c,l,t,n,r){c.translate(l,t);c.begin();c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.end();c.stroke()};mxCellRenderer.registerShape("requiredInterface",ya);mxUtils.extend(za,mxShape);za.prototype.inset=2;za.prototype.paintBackground=function(c,l,t,n,r){var v=parseFloat(mxUtils.getValue(this.style,"inset",this.inset))+this.strokewidth;c.translate(l,t);c.ellipse(0,v,n-2*v,r-2*v);c.fillAndStroke();+c.begin();c.moveTo(n/2,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n/2,r);c.end();c.stroke()};mxCellRenderer.registerShape("providedRequiredInterface",za);mxUtils.extend(Ka,mxCylinder);Ka.prototype.jettyWidth=20;Ka.prototype.jettyHeight=10;Ka.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=Math.min(l,r-l),z=Math.min(I+2*l,r-l);v?(c.moveTo(t,I),+c.lineTo(x,I),c.lineTo(x,I+l),c.lineTo(t,I+l),c.moveTo(t,z),c.lineTo(x,z),c.lineTo(x,z+l),c.lineTo(t,z+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,z+l),c.lineTo(0,z+l),c.lineTo(0,z),c.lineTo(t,z),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("module",Ka);mxUtils.extend(Qa,mxCylinder);Qa.prototype.jettyWidth=32;Qa.prototype.jettyHeight=12;Qa.prototype.redrawPath=function(c,l,t,n,r,v){var x=parseFloat(mxUtils.getValue(this.style,+"jettyWidth",this.jettyWidth));l=parseFloat(mxUtils.getValue(this.style,"jettyHeight",this.jettyHeight));t=x/2;x=t+x/2;var I=.3*r-l/2,z=.7*r-l/2;v?(c.moveTo(t,I),c.lineTo(x,I),c.lineTo(x,I+l),c.lineTo(t,I+l),c.moveTo(t,z),c.lineTo(x,z),c.lineTo(x,z+l),c.lineTo(t,z+l)):(c.moveTo(t,0),c.lineTo(n,0),c.lineTo(n,r),c.lineTo(t,r),c.lineTo(t,z+l),c.lineTo(0,z+l),c.lineTo(0,z),c.lineTo(t,z),c.lineTo(t,I+l),c.lineTo(0,I+l),c.lineTo(0,I),c.lineTo(t,I),c.close());c.end()};mxCellRenderer.registerShape("component",+Qa);mxUtils.extend(Ia,mxRectangleShape);Ia.prototype.paintForeground=function(c,l,t,n,r){var v=n/2,x=r/2,I=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;c.begin();this.addPoints(c,[new mxPoint(l+v,t),new mxPoint(l+n,t+x),new mxPoint(l+v,t+r),new mxPoint(l,t+x)],this.isRounded,I,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Ia);mxUtils.extend(Ha,mxDoubleEllipse);Ha.prototype.outerStroke=+!0;Ha.prototype.paintVertexShape=function(c,l,t,n,r){var v=Math.min(4,Math.min(n/5,r/5));0<n&&0<r&&(c.ellipse(l+v,t+v,n-2*v,r-2*v),c.fillAndStroke());c.setShadow(!1);this.outerStroke&&(c.ellipse(l,t,n,r),c.stroke())};mxCellRenderer.registerShape("endState",Ha);mxUtils.extend(ra,Ha);ra.prototype.outerStroke=!1;mxCellRenderer.registerShape("startState",ra);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(Va,mxArrowConnector);Va.prototype.defaultWidth=10;Va.prototype.defaultArrowWidth=20;Va.prototype.getStartArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"startWidth",this.defaultArrowWidth)};Va.prototype.getEndArrowWidth=function(){return this.getEdgeWidth()+mxUtils.getNumber(this.style,"endWidth",this.defaultArrowWidth)};Va.prototype.getEdgeWidth=function(){return mxUtils.getNumber(this.style,"width",this.defaultWidth)+Math.max(0,this.strokewidth-1)};mxCellRenderer.registerShape("flexArrow",Va);mxUtils.extend(Wa,mxActor);Wa.prototype.size=30;Wa.prototype.isRoundable=function(){return!0};Wa.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size)));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,-[new mxPoint(0,r),new mxPoint(0,l),new mxPoint(n,0),new mxPoint(n,r)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("manualInput",Wa);mxUtils.extend($a,mxRectangleShape);$a.prototype.dx=20;$a.prototype.dy=20;$a.prototype.isHtmlAllowed=function(){return!1};$a.prototype.paintForeground=function(c,l,t,n,r){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var u=0;if(this.isRounded){var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/-100;u=Math.max(u,Math.min(n*x,r*x))}x=Math.max(u,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));u=Math.max(u,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.begin();c.moveTo(l,t+u);c.lineTo(l+n,t+u);c.end();c.stroke();c.begin();c.moveTo(l+x,t);c.lineTo(l+x,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("internalStorage",$a);mxUtils.extend(db,mxActor);db.prototype.dx=20;db.prototype.dy=20;db.prototype.isRoundable=function(){return!0};db.prototype.redrawPath=-function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t),new mxPoint(l,t),new mxPoint(l,r),new mxPoint(0,r)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("corner",+[new mxPoint(0,r),new mxPoint(0,l),new mxPoint(n,0),new mxPoint(n,r)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("manualInput",Wa);mxUtils.extend($a,mxRectangleShape);$a.prototype.dx=20;$a.prototype.dy=20;$a.prototype.isHtmlAllowed=function(){return!1};$a.prototype.paintForeground=function(c,l,t,n,r){mxRectangleShape.prototype.paintForeground.apply(this,arguments);var v=0;if(this.isRounded){var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)/+100;v=Math.max(v,Math.min(n*x,r*x))}x=Math.max(v,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));v=Math.max(v,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.begin();c.moveTo(l,t+v);c.lineTo(l+n,t+v);c.end();c.stroke();c.begin();c.moveTo(l+x,t);c.lineTo(l+x,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("internalStorage",$a);mxUtils.extend(db,mxActor);db.prototype.dx=20;db.prototype.dy=20;db.prototype.isRoundable=function(){return!0};db.prototype.redrawPath=+function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t),new mxPoint(l,t),new mxPoint(l,r),new mxPoint(0,r)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("corner",db);mxUtils.extend(pb,mxActor);pb.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.lineTo(0,r);c.end();c.moveTo(n,0);c.lineTo(n,r);c.end();c.moveTo(0,r/2);c.lineTo(n,r/2);c.end()};mxCellRenderer.registerShape("crossbar",pb);mxUtils.extend(eb,mxActor);eb.prototype.dx=20;eb.prototype.dy=20;eb.prototype.isRoundable=function(){return!0};eb.prototype.redrawPath=function(c,l,t,n,r){l=Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));t=Math.max(0,Math.min(r,parseFloat(mxUtils.getValue(this.style,-"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var u=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t),new mxPoint((n+l)/2,t),new mxPoint((n+l)/2,r),new mxPoint((n-l)/2,r),new mxPoint((n-l)/2,t),new mxPoint(0,t)],this.isRounded,u,!0);c.end()};mxCellRenderer.registerShape("tee",eb);mxUtils.extend(Za,mxActor);Za.prototype.arrowWidth=.3;Za.prototype.arrowSize=.2;Za.prototype.isRoundable=-function(){return!0};Za.prototype.redrawPath=function(c,l,t,n,r){var u=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));t=(r-u)/2;u=t+u;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,u),new mxPoint(0,-u)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("singleArrow",Za);mxUtils.extend(gb,mxActor);gb.prototype.isRoundable=function(){return!0};gb.prototype.redrawPath=function(c,l,t,n,r){var u=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Za.prototype.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Za.prototype.arrowSize))));t=(r-u)/2;u=t+u;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/-2;this.addPoints(c,[new mxPoint(0,r/2),new mxPoint(l,0),new mxPoint(l,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,u),new mxPoint(l,u),new mxPoint(l,r)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("doubleArrow",gb);mxUtils.extend(bb,mxActor);bb.prototype.size=.1;bb.prototype.fixedSize=20;bb.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,+"dy",this.dy))));parseFloat(mxUtils.getValue(this.style,"size",this.size));var v=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,t),new mxPoint((n+l)/2,t),new mxPoint((n+l)/2,r),new mxPoint((n-l)/2,r),new mxPoint((n-l)/2,t),new mxPoint(0,t)],this.isRounded,v,!0);c.end()};mxCellRenderer.registerShape("tee",eb);mxUtils.extend(Za,mxActor);Za.prototype.arrowWidth=.3;Za.prototype.arrowSize=.2;Za.prototype.isRoundable=+function(){return!0};Za.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(0,+v)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("singleArrow",Za);mxUtils.extend(gb,mxActor);gb.prototype.isRoundable=function(){return!0};gb.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Za.prototype.arrowWidth))));l=n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Za.prototype.arrowSize))));t=(r-v)/2;v=t+v;var x=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/+2;this.addPoints(c,[new mxPoint(0,r/2),new mxPoint(l,0),new mxPoint(l,t),new mxPoint(n-l,t),new mxPoint(n-l,0),new mxPoint(n,r/2),new mxPoint(n-l,r),new mxPoint(n-l,v),new mxPoint(l,v),new mxPoint(l,r)],this.isRounded,x,!0);c.end()};mxCellRenderer.registerShape("doubleArrow",gb);mxUtils.extend(bb,mxActor);bb.prototype.size=.1;bb.prototype.fixedSize=20;bb.prototype.redrawPath=function(c,l,t,n,r){l="0"!=mxUtils.getValue(this.style,"fixedSize","0")?Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.fixedSize)))):n*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.moveTo(l,0);c.lineTo(n,0);c.quadTo(n-2*l,r/2,n,r);c.lineTo(l,r);c.quadTo(l-2*l,r/2,l,0);c.close();c.end()};mxCellRenderer.registerShape("dataStorage",bb);mxUtils.extend(q,mxActor);q.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.close();c.end()};mxCellRenderer.registerShape("or",q);mxUtils.extend(A,mxActor);A.prototype.redrawPath=function(c,l,t,n,r){c.moveTo(0,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,0,r);c.quadTo(n/2,r/2,0,0);c.close();c.end()};mxCellRenderer.registerShape("xor",A);mxUtils.extend(B,mxActor);B.prototype.size=20;B.prototype.isRoundable=function(){return!0};B.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n/2,Math.min(r,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(l,0),new mxPoint(n-l,0),new mxPoint(n,.8*l),new mxPoint(n,r),new mxPoint(0,r),new mxPoint(0,.8*l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("loopLimit",B);mxUtils.extend(F,mxActor);F.prototype.size=.375;F.prototype.isRoundable=function(){return!0};F.prototype.redrawPath=function(c,l,t,n,r){l=r*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"size",this.size))));t=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(c,[new mxPoint(0,0),new mxPoint(n,0),new mxPoint(n,-r-l),new mxPoint(n/2,r),new mxPoint(0,r-l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("offPageConnector",F);mxUtils.extend(K,mxEllipse);K.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+n/2,t+r);c.lineTo(l+n,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("tapeData",K);mxUtils.extend(R,mxEllipse);R.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);+r-l),new mxPoint(n/2,r),new mxPoint(0,r-l)],this.isRounded,t,!0);c.end()};mxCellRenderer.registerShape("offPageConnector",F);mxUtils.extend(L,mxEllipse);L.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.begin();c.moveTo(l+n/2,t+r);c.lineTo(l+n,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("tapeData",L);mxUtils.extend(R,mxEllipse);R.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l,t+r/2);c.lineTo(l+n,t+r/2);c.end();c.stroke();c.begin();c.moveTo(l+n/2,t);c.lineTo(l+n/2,t+r);c.end();c.stroke()};mxCellRenderer.registerShape("orEllipse",R);mxUtils.extend(Z,mxEllipse);Z.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l+.145*n,t+.145*r);c.lineTo(l+.855*n,t+.855*r);c.end();c.stroke();c.begin();c.moveTo(l+.855*n,t+.145*r);c.lineTo(l+.145*n,t+.855*r);c.end();c.stroke()};mxCellRenderer.registerShape("sumEllipse",Z);mxUtils.extend(ja,mxRhombus);ja.prototype.paintVertexShape=function(c,l,t,n,r){mxRhombus.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();c.moveTo(l,t+r/2);c.lineTo(l+n,t+r/2);c.end();c.stroke()};mxCellRenderer.registerShape("sortShape",ja);mxUtils.extend(fa,mxEllipse);fa.prototype.paintVertexShape=function(c,l,t,n,r){c.begin();c.moveTo(l,t);c.lineTo(l+n,t);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke();c.begin();-c.moveTo(l,t+r);c.lineTo(l+n,t+r);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",fa);mxUtils.extend(ka,mxEllipse);ka.prototype.paintVertexShape=function(c,l,t,n,r){var u=c.state.strokeWidth/2,x=10+2*u,I=t+r-x/2;c.begin();c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+u,I);c.lineTo(l+u+x,I-x/2);c.moveTo(l+u,I);c.lineTo(l+u+x,I+x/2);c.moveTo(l+u,I);c.lineTo(l+n-u,I);c.moveTo(l+n,t);c.lineTo(l+n,t+r);c.moveTo(l+n-u,I);c.lineTo(l+n-x-u,I-x/2);c.moveTo(l+n-u,I);c.lineTo(l+-n-x-u,I+x/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ka);mxUtils.extend(va,mxEllipse);va.prototype.drawHidden=!0;va.prototype.paintVertexShape=function(c,l,t,n,r){this.outline||c.setStrokeColor(null);if(null!=this.style){var u=c.pointerEvents,x=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||x||(c.pointerEvents=!1);var I="1"==mxUtils.getValue(this.style,"top","1"),z="1"==mxUtils.getValue(this.style,"left","1"),-da="1"==mxUtils.getValue(this.style,"right","1"),U="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||x||this.outline||I||da||U||z?(c.rect(l,t,n,r),c.fill(),c.pointerEvents=u,c.setStrokeColor(this.stroke),c.setLineCap("square"),c.begin(),c.moveTo(l,t),this.outline||I?c.lineTo(l+n,t):c.moveTo(l+n,t),this.outline||da?c.lineTo(l+n,t+r):c.moveTo(l+n,t+r),this.outline||U?c.lineTo(l,t+r):c.moveTo(l,t+r),(this.outline||z)&&c.lineTo(l,t),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};+c.moveTo(l,t+r);c.lineTo(l+n,t+r);c.lineTo(l+n/2,t+r/2);c.close();c.fillAndStroke()};mxCellRenderer.registerShape("collate",fa);mxUtils.extend(ka,mxEllipse);ka.prototype.paintVertexShape=function(c,l,t,n,r){var v=c.state.strokeWidth/2,x=10+2*v,I=t+r-x/2;c.begin();c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+v,I);c.lineTo(l+v+x,I-x/2);c.moveTo(l+v,I);c.lineTo(l+v+x,I+x/2);c.moveTo(l+v,I);c.lineTo(l+n-v,I);c.moveTo(l+n,t);c.lineTo(l+n,t+r);c.moveTo(l+n-v,I);c.lineTo(l+n-x-v,I-x/2);c.moveTo(l+n-v,I);c.lineTo(l++n-x-v,I+x/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ka);mxUtils.extend(va,mxEllipse);va.prototype.drawHidden=!0;va.prototype.paintVertexShape=function(c,l,t,n,r){this.outline||c.setStrokeColor(null);if(null!=this.style){var v=c.pointerEvents,x=null!=this.fill&&this.fill!=mxConstants.NONE;"1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1")||x||(c.pointerEvents=!1);var I="1"==mxUtils.getValue(this.style,"top","1"),z="1"==mxUtils.getValue(this.style,"left","1"),+da="1"==mxUtils.getValue(this.style,"right","1"),U="1"==mxUtils.getValue(this.style,"bottom","1");this.drawHidden||x||this.outline||I||da||U||z?(c.rect(l,t,n,r),c.fill(),c.pointerEvents=v,c.setStrokeColor(this.stroke),c.setLineCap("square"),c.begin(),c.moveTo(l,t),this.outline||I?c.lineTo(l+n,t):c.moveTo(l+n,t),this.outline||da?c.lineTo(l+n,t+r):c.moveTo(l+n,t+r),this.outline||U?c.lineTo(l,t+r):c.moveTo(l,t+r),(this.outline||z)&&c.lineTo(l,t),c.end(),c.stroke(),c.setLineCap("flat")):c.setStrokeColor(this.stroke)}};mxCellRenderer.registerShape("partialRectangle",va);mxUtils.extend(Ma,mxEllipse);Ma.prototype.paintVertexShape=function(c,l,t,n,r){mxEllipse.prototype.paintVertexShape.apply(this,arguments);c.setShadow(!1);c.begin();"vertical"==mxUtils.getValue(this.style,"line")?(c.moveTo(l+n/2,t),c.lineTo(l+n/2,t+r)):(c.moveTo(l,t+r/2),c.lineTo(l+n,t+r/2));c.end();c.stroke()};mxCellRenderer.registerShape("lineEllipse",Ma);mxUtils.extend(Na,mxActor);Na.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/2);c.moveTo(0,-0);c.lineTo(n-l,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n-l,r);c.lineTo(0,r);c.close();c.end()};mxCellRenderer.registerShape("delay",Na);mxUtils.extend(Aa,mxActor);Aa.prototype.size=.2;Aa.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(r,n);var u=Math.max(0,Math.min(l,l*parseFloat(mxUtils.getValue(this.style,"size",this.size))));l=(r-u)/2;t=l+u;var x=(n-u)/2;u=x+u;c.moveTo(0,l);c.lineTo(x,l);c.lineTo(x,0);c.lineTo(u,0);c.lineTo(u,l);c.lineTo(n,l);c.lineTo(n,t);c.lineTo(u,t);c.lineTo(u,r);c.lineTo(x,+0);c.lineTo(n-l,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n-l,r);c.lineTo(0,r);c.close();c.end()};mxCellRenderer.registerShape("delay",Na);mxUtils.extend(Aa,mxActor);Aa.prototype.size=.2;Aa.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(r,n);var v=Math.max(0,Math.min(l,l*parseFloat(mxUtils.getValue(this.style,"size",this.size))));l=(r-v)/2;t=l+v;var x=(n-v)/2;v=x+v;c.moveTo(0,l);c.lineTo(x,l);c.lineTo(x,0);c.lineTo(v,0);c.lineTo(v,l);c.lineTo(n,l);c.lineTo(n,t);c.lineTo(v,t);c.lineTo(v,r);c.lineTo(x,r);c.lineTo(x,t);c.lineTo(0,t);c.close();c.end()};mxCellRenderer.registerShape("cross",Aa);mxUtils.extend(Ga,mxActor);Ga.prototype.size=.25;Ga.prototype.redrawPath=function(c,l,t,n,r){l=Math.min(n,r/2);t=Math.min(n-l,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*n);c.moveTo(0,r/2);c.lineTo(t,0);c.lineTo(n-l,0);c.quadTo(n,0,n,r/2);c.quadTo(n,r,n-l,r);c.lineTo(t,r);c.close();c.end()};mxCellRenderer.registerShape("display",Ga);mxUtils.extend(wa,mxActor);wa.prototype.cst={RECT2:"mxgraph.basic.rect"};wa.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"}]}];wa.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);this.strictDrawShape(c,0,0,n,r)};wa.prototype.strictDrawShape=-function(c,l,t,n,r,u){var x=u&&u.rectStyle?u.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),I=u&&u.absoluteCornerSize?u.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),z=u&&u.size?u.size:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),da=u&&u.rectOutline?u.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),U=u&&u.indent?u.indent:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,-"indent",this.indent)))),Fa=u&&u.dashed?u.dashed:mxUtils.getValue(this.style,"dashed",!1),Ua=u&&u.dashPattern?u.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),Pa=u&&u.relIndent?u.relIndent:Math.max(0,Math.min(50,U)),oa=u&&u.top?u.top:mxUtils.getValue(this.style,"top",!0),sa=u&&u.right?u.right:mxUtils.getValue(this.style,"right",!0),qa=u&&u.bottom?u.bottom:mxUtils.getValue(this.style,"bottom",!0),pa=u&&u.left?u.left:mxUtils.getValue(this.style,"left",!0),xa=u&&u.topLeftStyle?u.topLeftStyle:-mxUtils.getValue(this.style,"topLeftStyle","default"),Ba=u&&u.topRightStyle?u.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),Ca=u&&u.bottomRightStyle?u.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),Ea=u&&u.bottomLeftStyle?u.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),Cb=u&&u.fillColor?u.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");u&&u.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var Db=-u&&u.strokeWidth?u.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),zb=u&&u.fillColor2?u.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),Bb=u&&u.gradientColor2?u.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),Eb=u&&u.gradientDirection2?u.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Fb=u&&u.opacity?u.opacity:mxUtils.getValue(this.style,"opacity","100"),Gb=Math.max(0,Math.min(50,z));u=wa.prototype;c.setDashed(Fa);Ua&&""!=Ua&&-c.setDashPattern(Ua);c.setStrokeWidth(Db);z=Math.min(.5*r,.5*n,z);I||(z=Gb*Math.min(n,r)/100);z=Math.min(z,.5*Math.min(n,r));I||(U=Math.min(Pa*Math.min(n,r)/100));U=Math.min(U,.5*Math.min(n,r)-z);(oa||sa||qa||pa)&&"frame"!=da&&(c.begin(),oa?u.moveNW(c,l,t,n,r,x,xa,z,pa):c.moveTo(0,0),oa&&u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),sa&&u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),qa&&u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),pa&&u.paintSW(c,-l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Fa=I=Fb,"none"==zb&&(I=0),"none"==Bb&&(Fa=0),c.setGradient(zb,Bb,0,0,n,r,Eb,I,Fa),c.begin(),oa?u.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa):c.moveTo(U,0),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),pa&&qa&&u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),qa&&sa&&u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),sa&&oa&&u.paintNEInner(c,-l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),oa&&pa&&u.paintNWInner(c,l,t,n,r,x,xa,z,U),c.fill(),"none"==Cb&&(c.begin(),u.paintFolds(c,l,t,n,r,x,xa,Ba,Ca,Ea,z,oa,sa,qa,pa),c.stroke()));oa||sa||qa||!pa?oa||sa||!qa||pa?!oa&&!sa&&qa&&pa?"frame"!=da?(c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(u.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,-l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa||!sa||qa||pa?!oa&&sa&&!qa&&pa?"frame"!=da?(c.begin(),u.moveSW(c,l,t,n,r,x,xa,z,qa),u.paintLeft(c,-l,t,n,r,x,xa,z,oa),"double"==da&&(u.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke(),c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(u.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),u.moveSW(c,l,t,n,r,x,xa,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke(),c.begin(),-u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa&&sa&&qa&&!pa?"frame"!=da?(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,-r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa&&sa&&qa&&pa?"frame"!=da?(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,-l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(u.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,-l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa||sa||qa||pa?oa&&!sa&&!qa&&pa?"frame"!=da?(c.begin(),u.moveSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,-z,sa),"double"==da&&(u.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),u.moveSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):-oa&&!sa&&qa&&!pa?"frame"!=da?(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&(u.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke(),c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),-u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke(),c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa&&!sa&&qa&&pa?"frame"!=da?(c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&-(u.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,-l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa&&sa&&!qa&&!pa?"frame"!=da?(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(u.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,-x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):oa&&sa&&!qa&&pa?"frame"!=da?(c.begin(),u.moveSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,-l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(u.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),u.moveSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,-n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):oa&&sa&&qa&&!pa?"frame"!=da?(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,-Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,-Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):oa&&sa&&qa&&pa&&("frame"!=da?(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,-z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),"double"==da&&(u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,-Ea,z,U,qa,pa),c.close()),c.stroke()):(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.paintNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.paintSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.paintSW(c,l,t,n,r,x,Ea,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),u.paintSEInner(c,l,t,n,r,x,Ca,z,U),-u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),u.paintNEInner(c,l,t,n,r,x,Ba,z,U),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),u.paintNWInner(c,l,t,n,r,x,xa,z,U),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke())):"frame"!=da?(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&(u.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),u.moveNW(c,l,t,n,r,x,xa,z,pa),u.paintTop(c,l,t,n,r,x,Ba,z,sa),u.lineNEInner(c,-l,t,n,r,x,Ba,z,U,sa),u.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(u.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),u.moveNE(c,l,t,n,r,x,Ba,z,oa),u.paintRight(c,l,t,n,r,x,Ca,z,qa),u.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),u.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),u.moveSE(c,-l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(u.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),u.moveSE(c,l,t,n,r,x,Ca,z,sa),u.paintBottom(c,l,t,n,r,x,Ea,z,pa),u.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),u.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),u.moveSW(c,l,t,n,r,x,xa,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(u.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,-l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),u.moveSW(c,l,t,n,r,x,xa,z,qa),u.paintLeft(c,l,t,n,r,x,xa,z,oa),u.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),u.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke());c.begin();u.paintFolds(c,l,t,n,r,x,xa,Ba,Ca,Ea,z,oa,sa,qa,pa);c.stroke()};wa.prototype.moveNW=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.moveTo(0,0):c.moveTo(0,I)};wa.prototype.moveNE=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==-u||!z?c.moveTo(n,0):c.moveTo(n-I,0)};wa.prototype.moveSE=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.moveTo(n,r):c.moveTo(n,r-I)};wa.prototype.moveSW=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.moveTo(0,r):c.moveTo(I,r)};wa.prototype.paintNW=function(c,l,t,n,r,u,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==u||"invRound"==x||"default"==x&&"invRound"==u){l=0;if("rounded"==x||"default"==x&&"rounded"==u)l=1;c.arcTo(I,I,0,0,l,I,0)}else("snip"==-x||"default"==x&&"snip"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(I,0);else c.lineTo(0,0)};wa.prototype.paintTop=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.lineTo(n,0):c.lineTo(n-I,0)};wa.prototype.paintNE=function(c,l,t,n,r,u,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==u||"invRound"==x||"default"==x&&"invRound"==u){l=0;if("rounded"==x||"default"==x&&"rounded"==u)l=1;c.arcTo(I,I,0,0,l,n,I)}else("snip"==x||"default"==x&&"snip"==u||"fold"==x||"default"==-x&&"fold"==u)&&c.lineTo(n,I);else c.lineTo(n,0)};wa.prototype.paintRight=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.lineTo(n,r):c.lineTo(n,r-I)};wa.prototype.paintLeft=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.lineTo(0,0):c.lineTo(0,I)};wa.prototype.paintSE=function(c,l,t,n,r,u,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==u||"invRound"==x||"default"==x&&"invRound"==u){l=0;if("rounded"==x||"default"==x&&"rounded"==u)l=1;c.arcTo(I,-I,0,0,l,n-I,r)}else("snip"==x||"default"==x&&"snip"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(n-I,r);else c.lineTo(n,r)};wa.prototype.paintBottom=function(c,l,t,n,r,u,x,I,z){"square"==x||"default"==x&&"square"==u||!z?c.lineTo(0,r):c.lineTo(I,r)};wa.prototype.paintSW=function(c,l,t,n,r,u,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==u||"invRound"==x||"default"==x&&"invRound"==u){l=0;if("rounded"==x||"default"==x&&"rounded"==u)l=1;c.arcTo(I,I,0,0,l,0,r-I)}else("snip"==x||"default"==-x&&"snip"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(0,r-I);else c.lineTo(0,r)};wa.prototype.paintNWInner=function(c,l,t,n,r,u,x,I,z){if("rounded"==x||"default"==x&&"rounded"==u)c.arcTo(I-.5*z,I-.5*z,0,0,0,z,.5*z+I);else if("invRound"==x||"default"==x&&"invRound"==u)c.arcTo(I+z,I+z,0,0,1,z,z+I);else if("snip"==x||"default"==x&&"snip"==u)c.lineTo(z,.5*z+I);else if("fold"==x||"default"==x&&"fold"==u)c.lineTo(z+I,z+I),c.lineTo(z,z+I)};wa.prototype.paintTopInner=function(c,l,t,n,r,u,x,I,z,da,U){da||-U?!da&&U?c.lineTo(0,z):da&&!U?c.lineTo(z,0):da?"square"==x||"default"==x&&"square"==u?c.lineTo(z,z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(I+.5*z,z):c.lineTo(I+z,z):c.lineTo(0,z):c.lineTo(0,0)};wa.prototype.paintNEInner=function(c,l,t,n,r,u,x,I,z){if("rounded"==x||"default"==x&&"rounded"==u)c.arcTo(I-.5*z,I-.5*z,0,0,0,n-I-.5*z,z);else if("invRound"==x||"default"==x&&"invRound"==u)c.arcTo(I+z,I+z,0,0,1,n-I-z,z);else if("snip"==x||"default"==x&&"snip"==-u)c.lineTo(n-I-.5*z,z);else if("fold"==x||"default"==x&&"fold"==u)c.lineTo(n-I-z,I+z),c.lineTo(n-I-z,z)};wa.prototype.paintRightInner=function(c,l,t,n,r,u,x,I,z,da,U){da||U?!da&&U?c.lineTo(n-z,0):da&&!U?c.lineTo(n,z):da?"square"==x||"default"==x&&"square"==u?c.lineTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(n-z,I+.5*z):c.lineTo(n-z,I+z):c.lineTo(n-z,0):c.lineTo(n,0)};wa.prototype.paintLeftInner=function(c,l,t,n,r,u,x,I,z,da,U){da||U?!da&&U?c.lineTo(z,-r):da&&!U?c.lineTo(0,r-z):da?"square"==x||"default"==x&&"square"==u?c.lineTo(z,r-z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(z,r-I-.5*z):c.lineTo(z,r-I-z):c.lineTo(z,r):c.lineTo(0,r)};wa.prototype.paintSEInner=function(c,l,t,n,r,u,x,I,z){if("rounded"==x||"default"==x&&"rounded"==u)c.arcTo(I-.5*z,I-.5*z,0,0,0,n-z,r-I-.5*z);else if("invRound"==x||"default"==x&&"invRound"==u)c.arcTo(I+z,I+z,0,0,1,n-z,r-I-z);else if("snip"==x||"default"==x&&"snip"==u)c.lineTo(n--z,r-I-.5*z);else if("fold"==x||"default"==x&&"fold"==u)c.lineTo(n-I-z,r-I-z),c.lineTo(n-z,r-I-z)};wa.prototype.paintBottomInner=function(c,l,t,n,r,u,x,I,z,da,U){da||U?!da&&U?c.lineTo(n,r-z):da&&!U?c.lineTo(n-z,r):"square"==x||"default"==x&&"square"==u||!da?c.lineTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(n-I-.5*z,r-z):c.lineTo(n-I-z,r-z):c.lineTo(n,r)};wa.prototype.paintSWInner=function(c,l,t,n,r,u,x,I,z,da){if(!da)c.lineTo(z,r);else if("square"==-x||"default"==x&&"square"==u)c.lineTo(z,r-z);else if("rounded"==x||"default"==x&&"rounded"==u)c.arcTo(I-.5*z,I-.5*z,0,0,0,I+.5*z,r-z);else if("invRound"==x||"default"==x&&"invRound"==u)c.arcTo(I+z,I+z,0,0,1,I+z,r-z);else if("snip"==x||"default"==x&&"snip"==u)c.lineTo(I+.5*z,r-z);else if("fold"==x||"default"==x&&"fold"==u)c.lineTo(z+I,r-I-z),c.lineTo(z+I,r-z)};wa.prototype.moveSWInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u?c.moveTo(z,r-z):"rounded"==x||"default"==-x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.moveTo(z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.moveTo(z,r-I-z):c.moveTo(0,r-z)};wa.prototype.lineSWInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u?c.lineTo(z,r-z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(z,r-I-z):-c.lineTo(0,r-z)};wa.prototype.moveSEInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u?c.moveTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.moveTo(n-z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.moveTo(n-z,r-I-z):c.moveTo(n-z,r)};wa.prototype.lineSEInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u?c.lineTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==-u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(n-z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(n-z,r-I-z):c.lineTo(n-z,r)};wa.prototype.moveNEInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u||da?c.moveTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.moveTo(n-z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.moveTo(n-z,I+z):c.moveTo(n,-z)};wa.prototype.lineNEInner=function(c,l,t,n,r,u,x,I,z,da){da?"square"==x||"default"==x&&"square"==u||da?c.lineTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(n-z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.lineTo(n-z,I+z):c.lineTo(n,z)};wa.prototype.moveNWInner=function(c,l,t,n,r,u,x,I,z,da,U){da||U?!da&&U?c.moveTo(z,0):da&&!U?c.moveTo(0,z):"square"==x||"default"==x&&"square"==u?c.moveTo(z,z):"rounded"==-x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.moveTo(z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==x||"default"==x&&"fold"==u)&&c.moveTo(z,I+z):c.moveTo(0,0)};wa.prototype.lineNWInner=function(c,l,t,n,r,u,x,I,z,da,U){da||U?!da&&U?c.lineTo(z,0):da&&!U?c.lineTo(0,z):"square"==x||"default"==x&&"square"==u?c.lineTo(z,z):"rounded"==x||"default"==x&&"rounded"==u||"snip"==x||"default"==x&&"snip"==u?c.lineTo(z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==u||"fold"==-x||"default"==x&&"fold"==u)&&c.lineTo(z,I+z):c.lineTo(0,0)};wa.prototype.paintFolds=function(c,l,t,n,r,u,x,I,z,da,U,Fa,Ua,Pa,oa){if("fold"==u||"fold"==x||"fold"==I||"fold"==z||"fold"==da)("fold"==x||"default"==x&&"fold"==u)&&Fa&&oa&&(c.moveTo(0,U),c.lineTo(U,U),c.lineTo(U,0)),("fold"==I||"default"==I&&"fold"==u)&&Fa&&Ua&&(c.moveTo(n-U,0),c.lineTo(n-U,U),c.lineTo(n,U)),("fold"==z||"default"==z&&"fold"==u)&&Pa&&Ua&&(c.moveTo(n-U,r),c.lineTo(n-U,r-U),c.lineTo(n,r-U)),("fold"==da||"default"==da&&"fold"==-u)&&Pa&&oa&&(c.moveTo(0,r-U),c.lineTo(U,r-U),c.lineTo(U,r))};mxCellRenderer.registerShape(wa.prototype.cst.RECT2,wa);wa.prototype.constraints=null;mxUtils.extend(ua,mxConnector);ua.prototype.origPaintEdgeShape=ua.prototype.paintEdgeShape;ua.prototype.paintEdgeShape=function(c,l){for(var t=[],n=0;n<l.length;n++)t.push(mxUtils.clone(l[n]));n=c.state.dashed;var r=c.state.fixDash;ua.prototype.origPaintEdgeShape.apply(this,[c,t]);3<=c.state.strokeWidth&&(t=mxUtils.getValue(this.style,"fillColor",null),+function(c,l,t,n,r,v){var x=v&&v.rectStyle?v.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),I=v&&v.absoluteCornerSize?v.absoluteCornerSize:mxUtils.getValue(this.style,"absoluteCornerSize",this.absoluteCornerSize),z=v&&v.size?v.size:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),da=v&&v.rectOutline?v.rectOutline:mxUtils.getValue(this.style,"rectOutline",this.rectOutline),U=v&&v.indent?v.indent:Math.max(0,Math.min(n,parseFloat(mxUtils.getValue(this.style,+"indent",this.indent)))),Fa=v&&v.dashed?v.dashed:mxUtils.getValue(this.style,"dashed",!1),Ua=v&&v.dashPattern?v.dashPattern:mxUtils.getValue(this.style,"dashPattern",null),Pa=v&&v.relIndent?v.relIndent:Math.max(0,Math.min(50,U)),oa=v&&v.top?v.top:mxUtils.getValue(this.style,"top",!0),sa=v&&v.right?v.right:mxUtils.getValue(this.style,"right",!0),qa=v&&v.bottom?v.bottom:mxUtils.getValue(this.style,"bottom",!0),pa=v&&v.left?v.left:mxUtils.getValue(this.style,"left",!0),xa=v&&v.topLeftStyle?v.topLeftStyle:+mxUtils.getValue(this.style,"topLeftStyle","default"),Ba=v&&v.topRightStyle?v.topRightStyle:mxUtils.getValue(this.style,"topRightStyle","default"),Ca=v&&v.bottomRightStyle?v.bottomRightStyle:mxUtils.getValue(this.style,"bottomRightStyle","default"),Ea=v&&v.bottomLeftStyle?v.bottomLeftStyle:mxUtils.getValue(this.style,"bottomLeftStyle","default"),Cb=v&&v.fillColor?v.fillColor:mxUtils.getValue(this.style,"fillColor","#ffffff");v&&v.strokeColor||mxUtils.getValue(this.style,"strokeColor","#000000");var Db=+v&&v.strokeWidth?v.strokeWidth:mxUtils.getValue(this.style,"strokeWidth","1"),zb=v&&v.fillColor2?v.fillColor2:mxUtils.getValue(this.style,"fillColor2","none"),Bb=v&&v.gradientColor2?v.gradientColor2:mxUtils.getValue(this.style,"gradientColor2","none"),Eb=v&&v.gradientDirection2?v.gradientDirection2:mxUtils.getValue(this.style,"gradientDirection2","south"),Fb=v&&v.opacity?v.opacity:mxUtils.getValue(this.style,"opacity","100"),Gb=Math.max(0,Math.min(50,z));v=wa.prototype;c.setDashed(Fa);Ua&&""!=Ua&&+c.setDashPattern(Ua);c.setStrokeWidth(Db);z=Math.min(.5*r,.5*n,z);I||(z=Gb*Math.min(n,r)/100);z=Math.min(z,.5*Math.min(n,r));I||(U=Math.min(Pa*Math.min(n,r)/100));U=Math.min(U,.5*Math.min(n,r)-z);(oa||sa||qa||pa)&&"frame"!=da&&(c.begin(),oa?v.moveNW(c,l,t,n,r,x,xa,z,pa):c.moveTo(0,0),oa&&v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),sa&&v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),qa&&v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),pa&&v.paintSW(c,+l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Fa=I=Fb,"none"==zb&&(I=0),"none"==Bb&&(Fa=0),c.setGradient(zb,Bb,0,0,n,r,Eb,I,Fa),c.begin(),oa?v.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa):c.moveTo(U,0),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),pa&&qa&&v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),qa&&sa&&v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),sa&&oa&&v.paintNEInner(c,+l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),oa&&pa&&v.paintNWInner(c,l,t,n,r,x,xa,z,U),c.fill(),"none"==Cb&&(c.begin(),v.paintFolds(c,l,t,n,r,x,xa,Ba,Ca,Ea,z,oa,sa,qa,pa),c.stroke()));oa||sa||qa||!pa?oa||sa||!qa||pa?!oa&&!sa&&qa&&pa?"frame"!=da?(c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,+l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa||!sa||qa||pa?!oa&&sa&&!qa&&pa?"frame"!=da?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,z,qa),v.paintLeft(c,+l,t,n,r,x,xa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke(),c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(v.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,xa,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke(),c.begin(),+v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa&&sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,+r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa&&sa&&qa&&pa?"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,+l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,+l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):!oa||sa||qa||pa?oa&&!sa&&!qa&&pa?"frame"!=da?(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,+z,sa),"double"==da&&(v.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):+oa&&!sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&(v.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke(),c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),+v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke(),c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa&&!sa&&qa&&pa?"frame"!=da?(c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&+(v.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.lineNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,+l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):oa&&sa&&!qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(v.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,+x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):oa&&sa&&!qa&&pa?"frame"!=da?(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,+l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(v.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,+n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):oa&&sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,+Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,+Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):oa&&sa&&qa&&pa&&("frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,+z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),"double"==da&&(v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,+Ea,z,U,qa,pa),c.close()),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.paintSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.paintSW(c,l,t,n,r,x,Ea,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),c.close(),v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintSWInner(c,l,t,n,r,x,Ea,z,U,qa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),v.paintSEInner(c,l,t,n,r,x,Ca,z,U),+v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,xa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke())):"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),"double"==da&&(v.moveNEInner(c,l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,xa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.lineNEInner(c,+l,t,n,r,x,Ba,z,U,sa),v.paintTopInner(c,l,t,n,r,x,xa,z,U,pa,oa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),"double"==da&&(v.moveSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,oa),v.paintRight(c,l,t,n,r,x,Ca,z,qa),v.lineSEInner(c,l,t,n,r,x,Ca,z,U,qa),v.paintRightInner(c,l,t,n,r,x,Ba,z,U,oa,sa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),v.moveSE(c,+l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),"double"==da&&(v.moveSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa)),c.stroke()):(c.begin(),v.moveSE(c,l,t,n,r,x,Ca,z,sa),v.paintBottom(c,l,t,n,r,x,Ea,z,pa),v.lineSWInner(c,l,t,n,r,x,Ea,z,U,pa),v.paintBottomInner(c,l,t,n,r,x,Ca,z,U,sa,qa),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),v.moveSW(c,l,t,n,r,x,xa,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,+l,t,n,r,x,Ea,z,U,qa,pa)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,xa,z,qa),v.paintLeft(c,l,t,n,r,x,xa,z,oa),v.lineNWInner(c,l,t,n,r,x,xa,z,U,oa,pa),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke());c.begin();v.paintFolds(c,l,t,n,r,x,xa,Ba,Ca,Ea,z,oa,sa,qa,pa);c.stroke()};wa.prototype.moveNW=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(0,0):c.moveTo(0,I)};wa.prototype.moveNE=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==+v||!z?c.moveTo(n,0):c.moveTo(n-I,0)};wa.prototype.moveSE=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(n,r):c.moveTo(n,r-I)};wa.prototype.moveSW=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(0,r):c.moveTo(I,r)};wa.prototype.paintNW=function(c,l,t,n,r,v,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,I,0)}else("snip"==+x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(I,0);else c.lineTo(0,0)};wa.prototype.paintTop=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(n,0):c.lineTo(n-I,0)};wa.prototype.paintNE=function(c,l,t,n,r,v,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,n,I)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==+x&&"fold"==v)&&c.lineTo(n,I);else c.lineTo(n,0)};wa.prototype.paintRight=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(n,r):c.lineTo(n,r-I)};wa.prototype.paintLeft=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(0,0):c.lineTo(0,I)};wa.prototype.paintSE=function(c,l,t,n,r,v,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,+I,0,0,l,n-I,r)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-I,r);else c.lineTo(n,r)};wa.prototype.paintBottom=function(c,l,t,n,r,v,x,I,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(0,r):c.lineTo(I,r)};wa.prototype.paintSW=function(c,l,t,n,r,v,x,I,z){if(z)if("rounded"==x||"default"==x&&"rounded"==v||"invRound"==x||"default"==x&&"invRound"==v){l=0;if("rounded"==x||"default"==x&&"rounded"==v)l=1;c.arcTo(I,I,0,0,l,0,r-I)}else("snip"==x||"default"==+x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(0,r-I);else c.lineTo(0,r)};wa.prototype.paintNWInner=function(c,l,t,n,r,v,x,I,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*z,I-.5*z,0,0,0,z,.5*z+I);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+z,I+z,0,0,1,z,z+I);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(z,.5*z+I);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(z+I,z+I),c.lineTo(z,z+I)};wa.prototype.paintTopInner=function(c,l,t,n,r,v,x,I,z,da,U){da||+U?!da&&U?c.lineTo(0,z):da&&!U?c.lineTo(z,0):da?"square"==x||"default"==x&&"square"==v?c.lineTo(z,z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(I+.5*z,z):c.lineTo(I+z,z):c.lineTo(0,z):c.lineTo(0,0)};wa.prototype.paintNEInner=function(c,l,t,n,r,v,x,I,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*z,I-.5*z,0,0,0,n-I-.5*z,z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+z,I+z,0,0,1,n-I-z,z);else if("snip"==x||"default"==x&&"snip"==+v)c.lineTo(n-I-.5*z,z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-I-z,I+z),c.lineTo(n-I-z,z)};wa.prototype.paintRightInner=function(c,l,t,n,r,v,x,I,z,da,U){da||U?!da&&U?c.lineTo(n-z,0):da&&!U?c.lineTo(n,z):da?"square"==x||"default"==x&&"square"==v?c.lineTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-z,I+.5*z):c.lineTo(n-z,I+z):c.lineTo(n-z,0):c.lineTo(n,0)};wa.prototype.paintLeftInner=function(c,l,t,n,r,v,x,I,z,da,U){da||U?!da&&U?c.lineTo(z,+r):da&&!U?c.lineTo(0,r-z):da?"square"==x||"default"==x&&"square"==v?c.lineTo(z,r-z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(z,r-I-.5*z):c.lineTo(z,r-I-z):c.lineTo(z,r):c.lineTo(0,r)};wa.prototype.paintSEInner=function(c,l,t,n,r,v,x,I,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*z,I-.5*z,0,0,0,n-z,r-I-.5*z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+z,I+z,0,0,1,n-z,r-I-z);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-+z,r-I-.5*z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-I-z,r-I-z),c.lineTo(n-z,r-I-z)};wa.prototype.paintBottomInner=function(c,l,t,n,r,v,x,I,z,da,U){da||U?!da&&U?c.lineTo(n,r-z):da&&!U?c.lineTo(n-z,r):"square"==x||"default"==x&&"square"==v||!da?c.lineTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-I-.5*z,r-z):c.lineTo(n-I-z,r-z):c.lineTo(n,r)};wa.prototype.paintSWInner=function(c,l,t,n,r,v,x,I,z,da){if(!da)c.lineTo(z,r);else if("square"==+x||"default"==x&&"square"==v)c.lineTo(z,r-z);else if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(I-.5*z,I-.5*z,0,0,0,I+.5*z,r-z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(I+z,I+z,0,0,1,I+z,r-z);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(I+.5*z,r-z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(z+I,r-I-z),c.lineTo(z+I,r-z)};wa.prototype.moveSWInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v?c.moveTo(z,r-z):"rounded"==x||"default"==+x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(z,r-I-z):c.moveTo(0,r-z)};wa.prototype.lineSWInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v?c.lineTo(z,r-z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(z,r-I-z):+c.lineTo(0,r-z)};wa.prototype.moveSEInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v?c.moveTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-z,r-I-z):c.moveTo(n-z,r)};wa.prototype.lineSEInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v?c.lineTo(n-z,r-z):"rounded"==x||"default"==x&&"rounded"==+v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-z,r-I-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-z,r-I-z):c.lineTo(n-z,r)};wa.prototype.moveNEInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v||da?c.moveTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(n-z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-z,I+z):c.moveTo(n,+z)};wa.prototype.lineNEInner=function(c,l,t,n,r,v,x,I,z,da){da?"square"==x||"default"==x&&"square"==v||da?c.lineTo(n-z,z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(n-z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-z,I+z):c.lineTo(n,z)};wa.prototype.moveNWInner=function(c,l,t,n,r,v,x,I,z,da,U){da||U?!da&&U?c.moveTo(z,0):da&&!U?c.moveTo(0,z):"square"==x||"default"==x&&"square"==v?c.moveTo(z,z):"rounded"==+x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.moveTo(z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(z,I+z):c.moveTo(0,0)};wa.prototype.lineNWInner=function(c,l,t,n,r,v,x,I,z,da,U){da||U?!da&&U?c.lineTo(z,0):da&&!U?c.lineTo(0,z):"square"==x||"default"==x&&"square"==v?c.lineTo(z,z):"rounded"==x||"default"==x&&"rounded"==v||"snip"==x||"default"==x&&"snip"==v?c.lineTo(z,I+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==+x||"default"==x&&"fold"==v)&&c.lineTo(z,I+z):c.lineTo(0,0)};wa.prototype.paintFolds=function(c,l,t,n,r,v,x,I,z,da,U,Fa,Ua,Pa,oa){if("fold"==v||"fold"==x||"fold"==I||"fold"==z||"fold"==da)("fold"==x||"default"==x&&"fold"==v)&&Fa&&oa&&(c.moveTo(0,U),c.lineTo(U,U),c.lineTo(U,0)),("fold"==I||"default"==I&&"fold"==v)&&Fa&&Ua&&(c.moveTo(n-U,0),c.lineTo(n-U,U),c.lineTo(n,U)),("fold"==z||"default"==z&&"fold"==v)&&Pa&&Ua&&(c.moveTo(n-U,r),c.lineTo(n-U,r-U),c.lineTo(n,r-U)),("fold"==da||"default"==da&&"fold"==+v)&&Pa&&oa&&(c.moveTo(0,r-U),c.lineTo(U,r-U),c.lineTo(U,r))};mxCellRenderer.registerShape(wa.prototype.cst.RECT2,wa);wa.prototype.constraints=null;mxUtils.extend(ua,mxConnector);ua.prototype.origPaintEdgeShape=ua.prototype.paintEdgeShape;ua.prototype.paintEdgeShape=function(c,l){for(var t=[],n=0;n<l.length;n++)t.push(mxUtils.clone(l[n]));n=c.state.dashed;var r=c.state.fixDash;ua.prototype.origPaintEdgeShape.apply(this,[c,t]);3<=c.state.strokeWidth&&(t=mxUtils.getValue(this.style,"fillColor",null),null!=t&&(c.setStrokeColor(t),c.setStrokeWidth(c.state.strokeWidth-2),c.setDashed(n,r),ua.prototype.origPaintEdgeShape.apply(this,[c,l])))};mxCellRenderer.registerShape("filledEdge",ua);mxUtils.extend(Ta,mxConnector);Ta.prototype.defaultWidth=4;Ta.prototype.getEdgeWidth=function(){return Math.max(0,mxUtils.getNumber(this.style,"width",this.defaultWidth))};Ta.prototype.getFlowAnimationPath=function(){return mxShape.prototype.getFlowAnimationPath.call(this,2)};Ta.prototype.origPaintEdgeShape=Ta.prototype.paintEdgeShape;-Ta.prototype.paintEdgeShape=function(c,l){for(var t=[],n=0;n<l.length;n++)t.push(mxUtils.clone(l[n]));n=c.state.dashed;var r=c.state.fixDash,u=this.getEdgeWidth();c.setStrokeWidth(u+2*this.strokewidth);c.setDashed(!1);Ta.prototype.origPaintEdgeShape.apply(this,[c,t]);t=mxUtils.getValue(this.style,"fillColor",null);null!=t&&(c.setStrokeWidth(u),c.setStrokeColor(t),c.setDashed(n,r),Ta.prototype.origPaintEdgeShape.apply(this,[c,l]))};mxCellRenderer.registerShape("pipe",Ta);"undefined"!==typeof StyleFormatPanel&&-function(){var c=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var l=this.editorUi.getSelectionState(),t=c.apply(this,arguments);"umlFrame"==l.style.shape&&t.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return t}}();mxMarker.addMarker("dash",function(c,l,t,n,r,u,x,I,z,da){var U=r*(x+z+1),Fa=u*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Fa/2,n.y-Fa/2+U/2);c.lineTo(n.x+Fa/2-3*U/2,n.y-3*Fa/2-U/2);-c.stroke()}});mxMarker.addMarker("box",function(c,l,t,n,r,u,x,I,z,da){var U=r*(x+z+1),Fa=u*(x+z+1),Ua=n.x+U/2,Pa=n.y+Fa/2;n.x-=U;n.y-=Fa;return function(){c.begin();c.moveTo(Ua-U/2-Fa/2,Pa-Fa/2+U/2);c.lineTo(Ua-U/2+Fa/2,Pa-Fa/2-U/2);c.lineTo(Ua+Fa/2-3*U/2,Pa-3*Fa/2-U/2);c.lineTo(Ua-Fa/2-3*U/2,Pa-3*Fa/2+U/2);c.close();da?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,u,x,I,z,da){var U=r*(x+z+1),Fa=u*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Fa/2,n.y-Fa/2+U/-2);c.lineTo(n.x+Fa/2-3*U/2,n.y-3*Fa/2-U/2);c.moveTo(n.x-U/2+Fa/2,n.y-Fa/2-U/2);c.lineTo(n.x-Fa/2-3*U/2,n.y-3*Fa/2+U/2);c.stroke()}});mxMarker.addMarker("circle",Ra);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,u,x,I,z,da){var U=n.clone(),Fa=Ra.apply(this,arguments),Ua=r*(x+2*z),Pa=u*(x+2*z);return function(){Fa.apply(this,arguments);c.begin();c.moveTo(U.x-r*z,U.y-u*z);c.lineTo(U.x-2*Ua+r*z,U.y-2*Pa+u*z);c.moveTo(U.x-Ua-Pa+u*z,U.y-Pa+Ua-r*z);c.lineTo(U.x+Pa-Ua-u*z,U.y-Pa-Ua+r*z);c.stroke()}});-mxMarker.addMarker("halfCircle",function(c,l,t,n,r,u,x,I,z,da){var U=r*(x+z+1),Fa=u*(x+z+1),Ua=n.clone();n.x-=U;n.y-=Fa;return function(){c.begin();c.moveTo(Ua.x-Fa,Ua.y+U);c.quadTo(n.x-Fa,n.y+U,n.x,n.y);c.quadTo(n.x+Fa,n.y-U,Ua.x+Fa,Ua.y-U);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,u,x,I,z,da){l=r*z*1.118;t=u*z*1.118;r*=x+z;u*=x+z;var U=n.clone();U.x-=l;U.y-=t;n.x+=-r-l;n.y+=-u-t;return function(){c.begin();c.moveTo(U.x,U.y);I?c.lineTo(U.x-r-u/2,U.y-u+r/2):c.lineTo(U.x+u/2-r,U.y--u-r/2);c.lineTo(U.x-r,U.y-u);c.close();da?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,u,x,I,z,da,U){u*=I+da;x*=I+da;var Fa=r.clone();return function(){l.begin();l.moveTo(Fa.x,Fa.y);z?l.lineTo(Fa.x-u-x/c,Fa.y-x+u/c):l.lineTo(Fa.x+x/c-u,Fa.y-x-u/c);l.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var fb=function(c,l,t){return nb(c,["width"],l,function(n,r,u,x,I){I=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(x.x+-r*n/4+u*I/2,x.y+u*n/4-r*I/2)},function(n,r,u,x,I,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));c.style.width=Math.round(2*n)/c.view.scale-t})},nb=function(c,l,t,n,r){return La(c,l,function(u){var x=c.absolutePoints;if(null!=x&&0<x.length){var I=x.length-1;u=c.view.translate;var z=c.view.scale,da=t?x[0]:x[I];x=t?x[1]:x[I-1];I=x.x-da.x;var U=x.y-da.y,Fa=Math.sqrt(I*I+U*U);da=n.call(this,Fa,I/Fa,U/Fa,da,x);return new mxPoint(da.x/z-u.x,da.y/z-u.y)}return null},function(u,x,I){var z=c.absolutePoints,-da=z.length-1;u=c.view.translate;var U=c.view.scale,Fa=t?z[0]:z[da];z=t?z[1]:z[da-1];da=z.x-Fa.x;var Ua=z.y-Fa.y,Pa=Math.sqrt(da*da+Ua*Ua);x.x=(x.x+u.x)*U;x.y=(x.y+u.y)*U;r.call(this,Pa,da/Pa,Ua/Pa,Fa,z,x,I)})},cb=function(c,l){return function(t){return[nb(t,["startWidth"],!0,function(n,r,u,x,I){I=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(x.x+r*n/4+u*I/2,x.y+u*n/4-r*I/2)},function(n,r,u,x,I,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));t.style.startWidth=+Ta.prototype.paintEdgeShape=function(c,l){for(var t=[],n=0;n<l.length;n++)t.push(mxUtils.clone(l[n]));n=c.state.dashed;var r=c.state.fixDash,v=this.getEdgeWidth();c.setStrokeWidth(v+2*this.strokewidth);c.setDashed(!1);Ta.prototype.origPaintEdgeShape.apply(this,[c,t]);t=mxUtils.getValue(this.style,"fillColor",null);null!=t&&(c.setStrokeWidth(v),c.setStrokeColor(t),c.setDashed(n,r),Ta.prototype.origPaintEdgeShape.apply(this,[c,l]))};mxCellRenderer.registerShape("pipe",Ta);"undefined"!==typeof StyleFormatPanel&&+function(){var c=StyleFormatPanel.prototype.getCustomColors;StyleFormatPanel.prototype.getCustomColors=function(){var l=this.editorUi.getSelectionState(),t=c.apply(this,arguments);"umlFrame"==l.style.shape&&t.push({title:mxResources.get("laneColor"),key:"swimlaneFillColor",defaultValue:"default"});return t}}();mxMarker.addMarker("dash",function(c,l,t,n,r,v,x,I,z,da){var U=r*(x+z+1),Fa=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Fa/2,n.y-Fa/2+U/2);c.lineTo(n.x+Fa/2-3*U/2,n.y-3*Fa/2-U/2);+c.stroke()}});mxMarker.addMarker("box",function(c,l,t,n,r,v,x,I,z,da){var U=r*(x+z+1),Fa=v*(x+z+1),Ua=n.x+U/2,Pa=n.y+Fa/2;n.x-=U;n.y-=Fa;return function(){c.begin();c.moveTo(Ua-U/2-Fa/2,Pa-Fa/2+U/2);c.lineTo(Ua-U/2+Fa/2,Pa-Fa/2-U/2);c.lineTo(Ua+Fa/2-3*U/2,Pa-3*Fa/2-U/2);c.lineTo(Ua-Fa/2-3*U/2,Pa-3*Fa/2+U/2);c.close();da?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,x,I,z,da){var U=r*(x+z+1),Fa=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Fa/2,n.y-Fa/2+U/+2);c.lineTo(n.x+Fa/2-3*U/2,n.y-3*Fa/2-U/2);c.moveTo(n.x-U/2+Fa/2,n.y-Fa/2-U/2);c.lineTo(n.x-Fa/2-3*U/2,n.y-3*Fa/2+U/2);c.stroke()}});mxMarker.addMarker("circle",Ra);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,v,x,I,z,da){var U=n.clone(),Fa=Ra.apply(this,arguments),Ua=r*(x+2*z),Pa=v*(x+2*z);return function(){Fa.apply(this,arguments);c.begin();c.moveTo(U.x-r*z,U.y-v*z);c.lineTo(U.x-2*Ua+r*z,U.y-2*Pa+v*z);c.moveTo(U.x-Ua-Pa+v*z,U.y-Pa+Ua-r*z);c.lineTo(U.x+Pa-Ua-v*z,U.y-Pa-Ua+r*z);c.stroke()}});+mxMarker.addMarker("halfCircle",function(c,l,t,n,r,v,x,I,z,da){var U=r*(x+z+1),Fa=v*(x+z+1),Ua=n.clone();n.x-=U;n.y-=Fa;return function(){c.begin();c.moveTo(Ua.x-Fa,Ua.y+U);c.quadTo(n.x-Fa,n.y+U,n.x,n.y);c.quadTo(n.x+Fa,n.y-U,Ua.x+Fa,Ua.y-U);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,v,x,I,z,da){l=r*z*1.118;t=v*z*1.118;r*=x+z;v*=x+z;var U=n.clone();U.x-=l;U.y-=t;n.x+=-r-l;n.y+=-v-t;return function(){c.begin();c.moveTo(U.x,U.y);I?c.lineTo(U.x-r-v/2,U.y-v+r/2):c.lineTo(U.x+v/2-r,U.y-+v-r/2);c.lineTo(U.x-r,U.y-v);c.close();da?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("openAsync",function(c){c=null!=c?c:2;return function(l,t,n,r,v,x,I,z,da,U){v*=I+da;x*=I+da;var Fa=r.clone();return function(){l.begin();l.moveTo(Fa.x,Fa.y);z?l.lineTo(Fa.x-v-x/c,Fa.y-x+v/c):l.lineTo(Fa.x+x/c-v,Fa.y-x-v/c);l.stroke()}}}(2));if("undefined"!==typeof mxVertexHandler){var fb=function(c,l,t){return nb(c,["width"],l,function(n,r,v,x,I){I=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(x.x++r*n/4+v*I/2,x.y+v*n/4-r*I/2)},function(n,r,v,x,I,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));c.style.width=Math.round(2*n)/c.view.scale-t})},nb=function(c,l,t,n,r){return La(c,l,function(v){var x=c.absolutePoints;if(null!=x&&0<x.length){var I=x.length-1;v=c.view.translate;var z=c.view.scale,da=t?x[0]:x[I];x=t?x[1]:x[I-1];I=x.x-da.x;var U=x.y-da.y,Fa=Math.sqrt(I*I+U*U);da=n.call(this,Fa,I/Fa,U/Fa,da,x);return new mxPoint(da.x/z-v.x,da.y/z-v.y)}return null},function(v,x,I){var z=c.absolutePoints,+da=z.length-1;v=c.view.translate;var U=c.view.scale,Fa=t?z[0]:z[da];z=t?z[1]:z[da-1];da=z.x-Fa.x;var Ua=z.y-Fa.y,Pa=Math.sqrt(da*da+Ua*Ua);x.x=(x.x+v.x)*U;x.y=(x.y+v.y)*U;r.call(this,Pa,da/Pa,Ua/Pa,Fa,z,x,I)})},cb=function(c,l){return function(t){return[nb(t,["startWidth"],!0,function(n,r,v,x,I){I=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(x.x+r*n/4+v*I/2,x.y+v*n/4-r*I/2)},function(n,r,v,x,I,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));t.style.startWidth=Math.round(2*n)/t.view.scale-l})]}},vb=function(c){return function(l){return[La(l,["arrowWidth","arrowSize"],function(t){var n=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"arrowWidth",Za.prototype.arrowWidth))),r=Math.max(0,Math.min(c,mxUtils.getValue(this.state.style,"arrowSize",Za.prototype.arrowSize)));return new mxPoint(t.x+(1-r)*t.width,t.y+(1-n)*t.height/2)},function(t,n){this.state.style.arrowWidth=Math.max(0,Math.min(1,Math.abs(t.y+t.height/2-n.y)/t.height*2));this.state.style.arrowSize=-Math.max(0,Math.min(c,(t.x+t.width-n.x)/t.width))})]}},wb=function(c){return function(l){return[La(l,["size"],function(t){var n=Math.max(0,Math.min(.5*t.height,parseFloat(mxUtils.getValue(this.state.style,"size",c))));return new mxPoint(t.x,t.y+n)},function(t,n){this.state.style.size=Math.max(0,n.y-t.y)},!0)]}},yb=function(c,l,t){return function(n){var r=[La(n,["size"],function(u){var x=Math.max(0,Math.min(u.width,Math.min(u.height,parseFloat(mxUtils.getValue(this.state.style,"size",l)))))*c;return new mxPoint(u.x+-x,u.y+x)},function(u,x){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(u.width,x.x-u.x),Math.min(u.height,x.y-u.y)))/c)},!1)];t&&mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(ib(n));return r}},sb=function(c,l,t,n,r){t=null!=t?t:.5;return function(u){var x=[La(u,["size"],function(I){var z=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,da=parseFloat(mxUtils.getValue(this.state.style,"size",z?r:c));return new mxPoint(I.x+Math.max(0,Math.min(.5*I.width,-da*(z?1:I.width))),I.getCenterY())},function(I,z,da){I=null!=r&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?z.x-I.x:Math.max(0,Math.min(t,(z.x-I.x)/I.width));this.state.style.size=I},!1,n)];l&&mxUtils.getValue(u.style,mxConstants.STYLE_ROUNDED,!1)&&x.push(ib(u));return x}},qb=function(c,l,t){c=null!=c?c:.5;return function(n){var r=[La(n,["size"],function(u){var x=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,I=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,-"size",x?t:l)));return new mxPoint(u.x+Math.min(.75*u.width*c,I*(x?.75:.75*u.width)),u.y+u.height/4)},function(u,x){u=null!=t&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?x.x-u.x:Math.max(0,Math.min(c,(x.x-u.x)/u.width*.75));this.state.style.size=u},!1,!0)];mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(ib(n));return r}},rb=function(){return function(c){var l=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l}},ib=function(c,l){return La(c,+Math.max(0,Math.min(c,(t.x+t.width-n.x)/t.width))})]}},wb=function(c){return function(l){return[La(l,["size"],function(t){var n=Math.max(0,Math.min(.5*t.height,parseFloat(mxUtils.getValue(this.state.style,"size",c))));return new mxPoint(t.x,t.y+n)},function(t,n){this.state.style.size=Math.max(0,n.y-t.y)},!0)]}},yb=function(c,l,t){return function(n){var r=[La(n,["size"],function(v){var x=Math.max(0,Math.min(v.width,Math.min(v.height,parseFloat(mxUtils.getValue(this.state.style,"size",l)))))*c;return new mxPoint(v.x++x,v.y+x)},function(v,x){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(v.width,x.x-v.x),Math.min(v.height,x.y-v.y)))/c)},!1)];t&&mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(ib(n));return r}},sb=function(c,l,t,n,r){t=null!=t?t:.5;return function(v){var x=[La(v,["size"],function(I){var z=null!=r?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,da=parseFloat(mxUtils.getValue(this.state.style,"size",z?r:c));return new mxPoint(I.x+Math.max(0,Math.min(.5*I.width,+da*(z?1:I.width))),I.getCenterY())},function(I,z,da){I=null!=r&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?z.x-I.x:Math.max(0,Math.min(t,(z.x-I.x)/I.width));this.state.style.size=I},!1,n)];l&&mxUtils.getValue(v.style,mxConstants.STYLE_ROUNDED,!1)&&x.push(ib(v));return x}},qb=function(c,l,t){c=null!=c?c:.5;return function(n){var r=[La(n,["size"],function(v){var x=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,I=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,+"size",x?t:l)));return new mxPoint(v.x+Math.min(.75*v.width*c,I*(x?.75:.75*v.width)),v.y+v.height/4)},function(v,x){v=null!=t&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?x.x-v.x:Math.max(0,Math.min(c,(x.x-v.x)/v.width*.75));this.state.style.size=v},!1,!0)];mxUtils.getValue(n.style,mxConstants.STYLE_ROUNDED,!1)&&r.push(ib(n));return r}},rb=function(){return function(c){var l=[];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l}},ib=function(c,l){return La(c,[mxConstants.STYLE_ARCSIZE],function(t){var n=null!=l?l:t.height/8;if("1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)){var r=mxUtils.getValue(c.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;return new mxPoint(t.x+t.width-Math.min(t.width/2,r),t.y+n)}r=Math.max(0,parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_ARCSIZE,100*mxConstants.RECTANGLE_ROUNDING_FACTOR)))/100;return new mxPoint(t.x+t.width-Math.min(Math.max(t.width/2,t.height/2),Math.min(t.width,t.height)*-r),t.y+n)},function(t,n,r){"1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(t.width,2*(t.x+t.width-n.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(t.width-n.x+t.x)/Math.min(t.width,t.height))))})},La=function(c,l,t,n,r,u,x){var I=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);I.execute=function(da){for(var U=0;U<l.length;U++)this.copyStyle(l[U]);-x&&x(da)};I.getPosition=t;I.setPosition=n;I.ignoreGrid=null!=r?r:!0;if(u){var z=I.positionChanged;I.positionChanged=function(){z.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return I},ob={link:function(c){return[fb(c,!0,10),fb(c,!1,10)]},pipe:function(c){return[fb(c,!0,10),fb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,t=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(nb(c,["width",mxConstants.STYLE_STARTSIZE,-mxConstants.STYLE_ENDSIZE],!0,function(n,r,u,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+u*n/2,x.y+u*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,u,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+u,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*+r),t.y+n)},function(t,n,r){"1"==mxUtils.getValue(c.style,mxConstants.STYLE_ABSOLUTE_ARCSIZE,0)?this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.max(0,Math.min(t.width,2*(t.x+t.width-n.x)))):this.state.style[mxConstants.STYLE_ARCSIZE]=Math.round(Math.min(50,Math.max(0,100*(t.width-n.x+t.x)/Math.min(t.width,t.height))))})},La=function(c,l,t,n,r,v,x){var I=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);I.execute=function(da){for(var U=0;U<l.length;U++)this.copyStyle(l[U]);+x&&x(da)};I.getPosition=t;I.setPosition=n;I.ignoreGrid=null!=r?r:!0;if(v){var z=I.positionChanged;I.positionChanged=function(){z.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return I},ob={link:function(c){return[fb(c,!0,10),fb(c,!1,10)]},pipe:function(c){return[fb(c,!0,10),fb(c,!1,10)]},flexArrow:function(c){var l=c.view.graph.gridSize/c.view.scale,t=[];mxUtils.getValue(c.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(nb(c,["width",mxConstants.STYLE_STARTSIZE,+mxConstants.STYLE_ENDSIZE],!0,function(n,r,v,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE];mxEvent.isAltDown(da.getEvent())||Math.abs(parseFloat(c.style[mxConstants.STYLE_STARTSIZE])-parseFloat(c.style[mxConstants.STYLE_ENDSIZE]))<l/6&&(c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE])})),t.push(nb(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,-mxConstants.STYLE_ENDSIZE],!0,function(n,r,u,x,I){n=(c.shape.getStartArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+u*n/2,x.y+u*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,u,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+u,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_STARTSIZE]=+mxConstants.STYLE_ENDSIZE],!0,function(n,r,v,x,I){n=(c.shape.getStartArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(I+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_STARTSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.startWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE],c.style.endWidth=c.style.startWidth;mxEvent.isAltDown(da.getEvent())||(Math.abs(parseFloat(c.style[mxConstants.STYLE_STARTSIZE])-parseFloat(c.style[mxConstants.STYLE_ENDSIZE]))<l/6&&(c.style[mxConstants.STYLE_STARTSIZE]=-c.style[mxConstants.STYLE_ENDSIZE]),Math.abs(parseFloat(c.style.startWidth)-parseFloat(c.style.endWidth))<l&&(c.style.startWidth=c.style.endWidth))})));mxUtils.getValue(c.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(nb(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,u,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+-r*(I+c.shape.strokewidth*c.view.scale)-u*n/2,x.y+u*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,u,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+u,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];-mxEvent.isAltDown(da.getEvent())||Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE])})),t.push(nb(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,u,x,I){n=(c.shape.getEndArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+-r*(I+c.shape.strokewidth*c.view.scale)-u*n/2,x.y+u*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,u,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+u,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.endWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=+c.style[mxConstants.STYLE_ENDSIZE]),Math.abs(parseFloat(c.style.startWidth)-parseFloat(c.style.endWidth))<l&&(c.style.startWidth=c.style.endWidth))})));mxUtils.getValue(c.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE&&(t.push(nb(c,["width",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,I){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x++r*(I+c.shape.strokewidth*c.view.scale)-v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.width=Math.round(2*n)/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE];+mxEvent.isAltDown(da.getEvent())||Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE])})),t.push(nb(c,["startWidth","endWidth",mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE],!1,function(n,r,v,x,I){n=(c.shape.getEndArrowWidth()-c.shape.strokewidth)*c.view.scale;I=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x++r*(I+c.shape.strokewidth*c.view.scale)-v*n/2,x.y+v*(I+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,I,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,I.x,I.y,z.x,z.y));r=mxUtils.ptLineDist(x.x,x.y,x.x+v,x.y-r,z.x,z.y);c.style[mxConstants.STYLE_ENDSIZE]=Math.round(100*(r-c.shape.strokewidth)/3)/100/c.view.scale;c.style.endWidth=Math.max(0,Math.round(2*n)-c.shape.getEdgeWidth())/c.view.scale;if(mxEvent.isShiftDown(da.getEvent())||mxEvent.isControlDown(da.getEvent()))c.style[mxConstants.STYLE_STARTSIZE]=c.style[mxConstants.STYLE_ENDSIZE],c.style.startWidth=c.style.endWidth;mxEvent.isAltDown(da.getEvent())||(Math.abs(parseFloat(c.style[mxConstants.STYLE_ENDSIZE])-parseFloat(c.style[mxConstants.STYLE_STARTSIZE]))<l/6&&(c.style[mxConstants.STYLE_ENDSIZE]=c.style[mxConstants.STYLE_STARTSIZE]),Math.abs(parseFloat(c.style.endWidth)-parseFloat(c.style.startWidth))<l&&(c.style.endWidth=c.style.startWidth))})));return t},swimlane:function(c){var l=[];if(mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED)){var t=parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));l.push(ib(c,t/2))}l.push(La(c,[mxConstants.STYLE_STARTSIZE],function(n){var r=parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));return 1==mxUtils.getValue(c.style,mxConstants.STYLE_HORIZONTAL,1)?new mxPoint(n.getCenterX(),n.y+Math.max(0,Math.min(n.height,r))):new mxPoint(n.x+Math.max(0,Math.min(n.width,r)),n.getCenterY())},function(n,r){c.style[mxConstants.STYLE_STARTSIZE]=-1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(n.height,r.y-n.y))):Math.round(Math.max(0,Math.min(n.width,r.x-n.x)))},!1,null,function(n){var r=c.view.graph;if(!mxEvent.isShiftDown(n.getEvent())&&!mxEvent.isControlDown(n.getEvent())&&(r.isTableRow(c.cell)||r.isTableCell(c.cell))){n=r.getSwimlaneDirection(c.style);var u=r.model.getParent(c.cell);u=r.model.getChildCells(u,!0);for(var x=[],I=0;I<u.length;I++)u[I]!=c.cell&&r.isSwimlane(u[I])&&r.getSwimlaneDirection(r.getCurrentCellStyle(u[I]))==-n&&x.push(u[I]);r.setCellStyles(mxConstants.STYLE_STARTSIZE,c.style[mxConstants.STYLE_STARTSIZE],x)}}));return l},label:rb(),ext:rb(),rectangle:rb(),triangle:rb(),rhombus:rb(),umlLifeline:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",ba.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},umlFrame:function(c){return[La(c,+1==mxUtils.getValue(this.state.style,mxConstants.STYLE_HORIZONTAL,1)?Math.round(Math.max(0,Math.min(n.height,r.y-n.y))):Math.round(Math.max(0,Math.min(n.width,r.x-n.x)))},!1,null,function(n){var r=c.view.graph;if(!mxEvent.isShiftDown(n.getEvent())&&!mxEvent.isControlDown(n.getEvent())&&(r.isTableRow(c.cell)||r.isTableCell(c.cell))){n=r.getSwimlaneDirection(c.style);var v=r.model.getParent(c.cell);v=r.model.getChildCells(v,!0);for(var x=[],I=0;I<v.length;I++)v[I]!=c.cell&&r.isSwimlane(v[I])&&r.getSwimlaneDirection(r.getCurrentCellStyle(v[I]))==+n&&x.push(v[I]);r.setCellStyles(mxConstants.STYLE_STARTSIZE,c.style[mxConstants.STYLE_STARTSIZE],x)}}));return l},label:rb(),ext:rb(),rectangle:rb(),triangle:rb(),rhombus:rb(),umlLifeline:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",ba.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},umlFrame:function(c){return[La(c,["width","height"],function(l){var t=Math.max(ma.prototype.corner,Math.min(l.width,mxUtils.getValue(this.state.style,"width",ma.prototype.width))),n=Math.max(1.5*ma.prototype.corner,Math.min(l.height,mxUtils.getValue(this.state.style,"height",ma.prototype.height)));return new mxPoint(l.x+t,l.y+n)},function(l,t){this.state.style.width=Math.round(Math.max(ma.prototype.corner,Math.min(l.width,t.x-l.x)));this.state.style.height=Math.round(Math.max(1.5*ma.prototype.corner,Math.min(l.height,t.y-l.y)))},!1)]},process:function(c){var l=[La(c,["size"],function(t){var n="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),r=parseFloat(mxUtils.getValue(this.state.style,"size",ca.prototype.size));return n?new mxPoint(t.x+r,t.y+t.height/4):new mxPoint(t.x+t.width*r,t.y+t.height/4)},function(t,n){t="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(.5*t.width,n.x-t.x)):Math.max(0,Math.min(.5,(n.x-t.x)/t.width));this.state.style.size=t},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l},cross:function(c){return[La(c,["size"],function(l){var t=Math.min(l.width,l.height);t=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"size",Aa.prototype.size)))*t/2;return new mxPoint(l.getCenterX()-t,l.getCenterY()-t)},function(l,t){var n=Math.min(l.width,l.height);this.state.style.size=Math.max(0,Math.min(1,Math.min(Math.max(0,l.getCenterY()-t.y)/n*2,Math.max(0,l.getCenterX()-t.x)/n*2)))})]},note:function(c){return[La(c,["size"],function(l){var t=Math.max(0,-Math.min(l.width,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",k.prototype.size)))));return new mxPoint(l.x+l.width-t,l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(l.width,l.x+l.width-t.x),Math.min(l.height,t.y-l.y))))})]},note2:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(l.width,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",v.prototype.size)))));return new mxPoint(l.x+l.width-t,l.y+t)},+Math.min(l.width,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",k.prototype.size)))));return new mxPoint(l.x+l.width-t,l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(l.width,l.x+l.width-t.x),Math.min(l.height,t.y-l.y))))})]},note2:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(l.width,Math.min(l.height,parseFloat(mxUtils.getValue(this.state.style,"size",u.prototype.size)))));return new mxPoint(l.x+l.width-t,l.y+t)},function(l,t){this.state.style.size=Math.round(Math.max(0,Math.min(Math.min(l.width,l.x+l.width-t.x),Math.min(l.height,t.y-l.y))))})]},manualInput:function(c){var l=[La(c,["size"],function(t){var n=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"size",Wa.prototype.size)));return new mxPoint(t.x+t.width/4,t.y+3*n/4)},function(t,n){this.state.style.size=Math.round(Math.max(0,Math.min(t.height,4*(n.y-t.y)/3)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l},dataStorage:function(c){return[La(c,["size"],function(l){var t="0"!=mxUtils.getValue(this.state.style,"fixedSize","0"),n=parseFloat(mxUtils.getValue(this.state.style,"size",t?bb.prototype.fixedSize:bb.prototype.size));return new mxPoint(l.x+l.width-n*(t?1:l.width),l.getCenterY())},function(l,t){l="0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?Math.max(0,Math.min(l.width,l.x+l.width-t.x)):Math.max(0,Math.min(1,(l.x+l.width-t.x)/l.width));this.state.style.size=l},!1)]},callout:function(c){var l=[La(c,["size","position"],function(t){var n=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"size",S.prototype.size))),r=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",S.prototype.position)));mxUtils.getValue(this.state.style,"base",S.prototype.base);return new mxPoint(t.x+r*t.width,t.y+t.height-n)},function(t,n){mxUtils.getValue(this.state.style,"base",S.prototype.base);this.state.style.size=Math.round(Math.max(0,Math.min(t.height,t.y+t.height-n.y)));this.state.style.position=Math.round(100*Math.max(0,Math.min(1,(n.x-t.x)/t.width)))/100},!1),La(c,["position2"],function(t){var n=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position2",S.prototype.position2)));return new mxPoint(t.x+n*t.width,t.y+t.height)},function(t,n){this.state.style.position2=Math.round(100*Math.max(0,Math.min(1,(n.x-t.x)/t.width)))/100},!1),La(c,["base"],function(t){var n=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"size",S.prototype.size))),r=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,-"position",S.prototype.position))),u=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"base",S.prototype.base)));return new mxPoint(t.x+Math.min(t.width,r*t.width+u),t.y+t.height-n)},function(t,n){var r=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",S.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(t.width,n.x-t.x-r*t.width)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l},internalStorage:function(c){var l=+"position",S.prototype.position))),v=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"base",S.prototype.base)));return new mxPoint(t.x+Math.min(t.width,r*t.width+v),t.y+t.height-n)},function(t,n){var r=Math.max(0,Math.min(1,mxUtils.getValue(this.state.style,"position",S.prototype.position)));this.state.style.base=Math.round(Math.max(0,Math.min(t.width,n.x-t.x-r*t.width)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l},internalStorage:function(c){var l=[La(c,["dx","dy"],function(t){var n=Math.max(0,Math.min(t.width,mxUtils.getValue(this.state.style,"dx",$a.prototype.dx))),r=Math.max(0,Math.min(t.height,mxUtils.getValue(this.state.style,"dy",$a.prototype.dy)));return new mxPoint(t.x+n,t.y+r)},function(t,n){this.state.style.dx=Math.round(Math.max(0,Math.min(t.width,n.x-t.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(t.height,n.y-t.y)))},!1)];mxUtils.getValue(c.style,mxConstants.STYLE_ROUNDED,!1)&&l.push(ib(c));return l},module:function(c){return[La(c,["jettyWidth","jettyHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"jettyWidth",Ka.prototype.jettyWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"jettyHeight",Ka.prototype.jettyHeight)));return new mxPoint(l.x+t/2,l.y+2*n)},function(l,t){this.state.style.jettyWidth=Math.round(2*Math.max(0,Math.min(l.width,t.x-l.x)));this.state.style.jettyHeight=Math.round(Math.max(0,Math.min(l.height,t.y-l.y))/2)})]},corner:function(c){return[La(c,["dx","dy"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"dx",db.prototype.dx))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"dy",db.prototype.dy)));return new mxPoint(l.x+t,l.y+n)},function(l,t){this.state.style.dx=Math.round(Math.max(0,Math.min(l.width,t.x-l.x)));this.state.style.dy=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},tee:function(c){return[La(c,["dx","dy"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,@@ -3509,10 +3510,10 @@ folder:function(c){return[La(c,["tabWidth","tabHeight"],function(l){var t=Math.m!1)]},tape:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",M.prototype.size))));return new mxPoint(l.getCenterX(),l.y+t*l.height/2)},function(l,t){this.state.style.size=Math.max(0,Math.min(1,(t.y-l.y)/l.height*2))},!1)]},isoCube2:function(c){return[La(c,["isoAngle"],function(l){var t=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.state.style,"isoAngle",w.isoAngle))))*Math.PI/200;return new mxPoint(l.x,l.y+Math.min(l.width*Math.tan(t),.5*l.height))},function(l,t){this.state.style.isoAngle=Math.max(0,50*(t.y-l.y)/l.height)},!0)]},cylinder2:wb(y.prototype.size),cylinder3:wb(C.prototype.size),offPageConnector:function(c){return[La(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",F.prototype.size))));return new mxPoint(l.getCenterX(),l.y+(1-t)*l.height)},function(l,t){this.state.style.size=Math.max(0,Math.min(1,(l.y+l.height-t.y)/l.height))},!1)]},"mxgraph.basic.rect":function(c){var l=[Graph.createHandle(c,["size"],function(t){var n=Math.max(0,Math.min(t.width/2,t.height/2,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));return new mxPoint(t.x+n,t.y+n)},function(t,n){this.state.style.size=Math.round(100*Math.max(0,Math.min(t.height/2,t.width/2,n.x-t.x)))/100})];c=Graph.createHandle(c,["indent"],function(t){var n=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"indent",this.dx2))));return new mxPoint(t.x+.75*t.width,t.y+n*t.height/200)},function(t,-n){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(n.y-t.y)/t.height)))/100});l.push(c);return l},step:sb(ea.prototype.size,!0,null,!0,ea.prototype.fixedSize),hexagon:sb(la.prototype.size,!0,.5,!0,la.prototype.fixedSize),curlyBracket:sb(X.prototype.size,!1),display:sb(Ga.prototype.size,!1),cube:yb(1,e.prototype.size,!1),card:yb(.5,J.prototype.size,!0),loopLimit:yb(.5,B.prototype.size,!0),trapezoid:qb(.5,W.prototype.size,W.prototype.fixedSize),parallelogram:qb(1,L.prototype.size,-L.prototype.fixedSize)};Graph.createHandle=La;Graph.handleFactory=ob;var ab=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){var c=ab.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var l=this.state.style.shape;null==mxCellRenderer.defaultShapes[l]&&null==mxStencilRegistry.getStencil(l)?l=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(l=mxConstants.SHAPE_SWIMLANE);l=ob[l];null==l&&null!=this.state.shape&&+n){this.state.style.indent=Math.round(100*Math.max(0,Math.min(100,200*(n.y-t.y)/t.height)))/100});l.push(c);return l},step:sb(ea.prototype.size,!0,null,!0,ea.prototype.fixedSize),hexagon:sb(la.prototype.size,!0,.5,!0,la.prototype.fixedSize),curlyBracket:sb(X.prototype.size,!1),display:sb(Ga.prototype.size,!1),cube:yb(1,e.prototype.size,!1),card:yb(.5,J.prototype.size,!0),loopLimit:yb(.5,B.prototype.size,!0),trapezoid:qb(.5,W.prototype.size,W.prototype.fixedSize),parallelogram:qb(1,K.prototype.size,+K.prototype.fixedSize)};Graph.createHandle=La;Graph.handleFactory=ob;var ab=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){var c=ab.apply(this,arguments);if(this.graph.isCellRotatable(this.state.cell)){var l=this.state.style.shape;null==mxCellRenderer.defaultShapes[l]&&null==mxStencilRegistry.getStencil(l)?l=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(this.state.cell)&&(l=mxConstants.SHAPE_SWIMLANE);l=ob[l];null==l&&null!=this.state.shape&&this.state.shape.isRoundable()&&(l=ob[mxConstants.SHAPE_RECTANGLE]);null!=l&&(l=l(this.state),null!=l&&(c=null==c?l:c.concat(l)))}return c};mxEdgeHandler.prototype.createCustomHandles=function(){var c=this.state.style.shape;null==mxCellRenderer.defaultShapes[c]&&null==mxStencilRegistry.getStencil(c)&&(c=mxConstants.SHAPE_CONNECTOR);c=ob[c];return null!=c?c(this.state):null}}else Graph.createHandle=function(){},Graph.handleFactory={};var jb=new mxPoint(1,0),hb=new mxPoint(1,0),Ya=mxUtils.toRadians(-30);-jb=mxUtils.getRotatedPoint(jb,Math.cos(Ya),Math.sin(Ya));var xb=mxUtils.toRadians(-150);hb=mxUtils.getRotatedPoint(hb,Math.cos(xb),Math.sin(xb));mxEdgeStyle.IsometricConnector=function(c,l,t,n,r){var u=c.view;n=null!=n&&0<n.length?n[0]:null;var x=c.absolutePoints,I=x[0];x=x[x.length-1];null!=n&&(n=u.transformControlPoint(c,n));null==I&&null!=l&&(I=new mxPoint(l.getCenterX(),l.getCenterY()));null==x&&null!=t&&(x=new mxPoint(t.getCenterX(),t.getCenterY()));var z=jb.x,da=jb.y,U=hb.x,Fa=hb.y,Ua="horizontal"==+jb=mxUtils.getRotatedPoint(jb,Math.cos(Ya),Math.sin(Ya));var xb=mxUtils.toRadians(-150);hb=mxUtils.getRotatedPoint(hb,Math.cos(xb),Math.sin(xb));mxEdgeStyle.IsometricConnector=function(c,l,t,n,r){var v=c.view;n=null!=n&&0<n.length?n[0]:null;var x=c.absolutePoints,I=x[0];x=x[x.length-1];null!=n&&(n=v.transformControlPoint(c,n));null==I&&null!=l&&(I=new mxPoint(l.getCenterX(),l.getCenterY()));null==x&&null!=t&&(x=new mxPoint(t.getCenterX(),t.getCenterY()));var z=jb.x,da=jb.y,U=hb.x,Fa=hb.y,Ua="horizontal"==mxUtils.getValue(c.style,"elbow","horizontal");if(null!=x&&null!=I){c=function(oa,sa,qa){oa-=Pa.x;var pa=sa-Pa.y;sa=(Fa*oa-U*pa)/(z*Fa-da*U);oa=(da*oa-z*pa)/(da*U-z*Fa);Ua?(qa&&(Pa=new mxPoint(Pa.x+z*sa,Pa.y+da*sa),r.push(Pa)),Pa=new mxPoint(Pa.x+U*oa,Pa.y+Fa*oa)):(qa&&(Pa=new mxPoint(Pa.x+U*oa,Pa.y+Fa*oa),r.push(Pa)),Pa=new mxPoint(Pa.x+z*sa,Pa.y+da*sa));r.push(Pa)};var Pa=I;null==n&&(n=new mxPoint(I.x+(x.x-I.x)/2,I.y+(x.y-I.y)/2));c(n.x,n.y,!0);c(x.x,x.y,!1)}};mxStyleRegistry.putValue("isometricEdgeStyle",mxEdgeStyle.IsometricConnector);var Ab=Graph.prototype.createEdgeHandler;Graph.prototype.createEdgeHandler=function(c,l){if(l==mxEdgeStyle.IsometricConnector){var t=new mxElbowEdgeHandler(c);t.snapToTerminals=!1;return t}return Ab.apply(this,arguments)};h.prototype.constraints=[];m.prototype.getConstraints=function(c,l,t){c=[];var n=Math.tan(mxUtils.toRadians(30)),r=(.5-n)/2;n=Math.min(l,t/(.5+n));l=(l-n)/2;t=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t+.25*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+.5*n,t+n*r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+n,t+.25*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+n,t+.75*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l+.5*n,t+(1-r)*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t+.75*n));return c};w.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(.01,Math.min(94,parseFloat(mxUtils.getValue(this.style,"isoAngle",this.isoAngle))))*Math.PI/200;n=Math.min(l*@@ -3533,7 +3534,7 @@ null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*n,."tabWidth",this.tabWidth)))),r=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"tabHeight",this.tabHeight))));"left"==mxUtils.getValue(this.style,"tabPosition",this.tabPosition)?(c.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,0)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,r)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),r))):(c.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-.5*n,0)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,r)),c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),r)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.25*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.75*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.25*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(t-r)+r));c.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,0,t));c.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return c};$a.prototype.constraints=mxRectangleShape.prototype.constraints;bb.prototype.constraints=mxRectangleShape.prototype.constraints;K.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;Z.prototype.constraints=mxEllipse.prototype.constraints;Ma.prototype.constraints=+0),!1,null,0,t));c.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.75,1),!1));return c};$a.prototype.constraints=mxRectangleShape.prototype.constraints;bb.prototype.constraints=mxRectangleShape.prototype.constraints;L.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;Z.prototype.constraints=mxEllipse.prototype.constraints;Ma.prototype.constraints=mxEllipse.prototype.constraints;Wa.prototype.constraints=mxRectangleShape.prototype.constraints;Na.prototype.constraints=mxRectangleShape.prototype.constraints;Ga.prototype.getConstraints=function(c,l,t){c=[];var n=Math.min(l,t/2),r=Math.min(l-n,Math.max(0,parseFloat(mxUtils.getValue(this.style,"size",this.size)))*l);c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(r+l-n),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));return c};Ka.prototype.getConstraints=function(c,l,t){l=parseFloat(mxUtils.getValue(c,"jettyWidth",Ka.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,"jettyHeight",Ka.prototype.jettyHeight));var n=[new mxConnectionConstraint(new mxPoint(0,0),!1,null,l),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,@@ -3549,7 +3550,7 @@ l),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(1),!1)];mxDoubleEllipse.prototype.constraints=mxEllipse.prototype.constraints;mxRhombus.prototype.constraints=mxEllipse.prototype.constraints;mxTriangle.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0)];mxHexagon.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.375,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.625,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.375,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.625,1),!0)];mxCloud.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.25),!1),new mxConnectionConstraint(new mxPoint(.4,.1),!1),new mxConnectionConstraint(new mxPoint(.16,.55),!1),new mxConnectionConstraint(new mxPoint(.07,.4),!1),new mxConnectionConstraint(new mxPoint(.31,.8),!1),new mxConnectionConstraint(new mxPoint(.13,.77),!1),new mxConnectionConstraint(new mxPoint(.8,.8),!1),new mxConnectionConstraint(new mxPoint(.55,-.95),!1),new mxConnectionConstraint(new mxPoint(.875,.5),!1),new mxConnectionConstraint(new mxPoint(.96,.7),!1),new mxConnectionConstraint(new mxPoint(.625,.2),!1),new mxConnectionConstraint(new mxPoint(.88,.25),!1)];L.prototype.constraints=mxRectangleShape.prototype.constraints;W.prototype.constraints=mxRectangleShape.prototype.constraints;Q.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,+.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)];K.prototype.constraints=mxRectangleShape.prototype.constraints;W.prototype.constraints=mxRectangleShape.prototype.constraints;Q.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;eb.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),r=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.75*l+.25*n,r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),.5*(t+r)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),.5*(t+r)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),r));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.25*l-.25*n,r));c.push(new mxConnectionConstraint(new mxPoint(0,@@ -3559,76 +3560,76 @@ new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(newfunction(c,l,t){c=[];var n=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),r=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize))));n=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-r),n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-r),t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));return c};gb.prototype.getConstraints=function(c,l,t){c=[];var n=t*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",Za.prototype.arrowWidth)))),r=l*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",Za.prototype.arrowSize))));n=(t-n)/2;c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,0));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l-r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*l,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));return c};Aa.prototype.getConstraints=-function(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mxUtils.getValue(this.style,"size",this.size))));n=(t-r)/2;var u=n+r,x=(l-r)/2;r=x+r;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,0));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,r,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),n));c.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,-0),!1,null,0,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,u));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,n));return c};ba.prototype.constraints=null;q.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(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mxUtils.getValue(this.style,"size",this.size))));n=(t-r)/2;var v=n+r,x=(l-r)/2;r=x+r;c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,0));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,r,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,t));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,r,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),n));c.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+r),v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,+0),!1,null,0,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*x,v));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,x,n));return c};ba.prototype.constraints=null;q.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)];A.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)];ya.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];za.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)]})();function Actions(a){this.editorUi=a;this.actions={};this.init()}-Actions.prototype.init=function(){function a(k){d.escape();k=d.deleteCells(d.getDeletableCells(d.getSelectionCells()),k);null!=k&&d.setSelectionCells(k)}function b(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),v=0;v<k.length;v++)d.cellLabelChanged(k[v],"")}finally{d.getModel().endUpdate()}}}function f(k,v,w,y,C){C.getModel().beginUpdate();try{var D=C.getCellGeometry(k);null!=D&&w&&y&&(w/=y,D=D.clone(),1<w?D.height=D.width/w:D.width=D.height*w,C.getModel().setGeometry(k,-D));C.setCellStyles(mxConstants.STYLE_CLIP_PATH,v,[k]);C.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[k])}finally{C.getModel().endUpdate()}}var e=this.editorUi,g=e.editor,d=g.graph,h=function(){return Action.prototype.isEnabled.apply(this,arguments)&&d.isEnabled()};this.addAction("new...",function(){d.openLink(e.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";e.openFile()});var m=new Action("smartFit",function(){d.popupMenuHandler.hideMenu();var k=d.view.scale,-v=d.container.scrollLeft,w=d.container.scrollTop,y=d.view.translate.x,C=d.view.translate.y;e.actions.get("resetView").funct();1E-5>Math.abs(k-d.view.scale)&&5>Math.abs(v-d.container.scrollLeft)&&5>Math.abs(w-d.container.scrollTop)&&y==d.view.translate.x&&C==d.view.translate.y&&e.actions.get("fitWindow").funct()},null,null,"Enter");m.getTitle=function(){return mxResources.get("fitWindow")+" / "+mxResources.get("resetView")};this.put("smartFit",m);this.addAction("keyPressEnter",function(){d.isSelectionEmpty()?-e.actions.get("smartFit").funct():d.isEnabled()&&d.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){e.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(k,v){try{var w=mxUtils.parseXml(k);g.graph.setSelectionCells(g.graph.importGraphModel(w.documentElement))}catch(y){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+y.message)}}));e.showDialog((new OpenDialog(this)).container,+Actions.prototype.init=function(){function a(k){d.escape();k=d.deleteCells(d.getDeletableCells(d.getSelectionCells()),k);null!=k&&d.setSelectionCells(k)}function b(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),u=0;u<k.length;u++)d.cellLabelChanged(k[u],"")}finally{d.getModel().endUpdate()}}}function f(k,u,w,y,C){C.getModel().beginUpdate();try{var D=C.getCellGeometry(k);null!=D&&w&&y&&(w/=y,D=D.clone(),1<w?D.height=D.width/w:D.width=D.height*w,C.getModel().setGeometry(k,+D));C.setCellStyles(mxConstants.STYLE_CLIP_PATH,u,[k]);C.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[k])}finally{C.getModel().endUpdate()}}var e=this.editorUi,g=e.editor,d=g.graph,h=function(){return Action.prototype.isEnabled.apply(this,arguments)&&d.isEnabled()};this.addAction("new...",function(){d.openLink(e.getUrl())});this.addAction("open...",function(){window.openNew=!0;window.openKey="open";e.openFile()});var m=new Action("smartFit",function(){d.popupMenuHandler.hideMenu();var k=d.view.scale,+u=d.container.scrollLeft,w=d.container.scrollTop,y=d.view.translate.x,C=d.view.translate.y;e.actions.get("resetView").funct();1E-5>Math.abs(k-d.view.scale)&&5>Math.abs(u-d.container.scrollLeft)&&5>Math.abs(w-d.container.scrollTop)&&y==d.view.translate.x&&C==d.view.translate.y&&e.actions.get("fitWindow").funct()},null,null,"Enter");m.getTitle=function(){return mxResources.get("fitWindow")+" / "+mxResources.get("resetView")};this.put("smartFit",m);this.addAction("keyPressEnter",function(){d.isSelectionEmpty()?+e.actions.get("smartFit").funct():d.isEnabled()&&d.startEditingAtCell()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){e.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(k,u){try{var w=mxUtils.parseXml(k);g.graph.setSelectionCells(g.graph.importGraphModel(w.documentElement))}catch(y){mxUtils.alert(mxResources.get("invalidOrMissingFile")+": "+y.message)}}));e.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=h;this.addAction("save",function(){e.saveFile(!1)},null,null,Editor.ctrlKey+"+S").isEnabled=h;this.addAction("saveAs...",function(){e.saveFile(!0)},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+S");this.addAction("export...",function(){e.showDialog((new ExportDialog(e)).container,300,340,!0,!0)});this.addAction("editDiagram...",function(){var k=new EditDiagramDialog(e);e.showDialog(k.container,620,420,!0,!1);k.init()}).isEnabled=h;this.addAction("pageSetup...",function(){e.showDialog((new PageSetupDialog(e)).container,320,240,!0,!0)}).isEnabled=h;this.addAction("print...",function(){e.showPrintDialog()},null,"",Editor.ctrlKey+"+P");this.addAction("preview",function(){mxUtils.show(d,null,10,10)});this.addAction("undo",function(){e.undo()},null,"",Editor.ctrlKey+"+Z");this.addAction("redo",function(){e.redo()},null,"",mxClient.IS_WIN?Editor.ctrlKey+"+Y":Editor.ctrlKey+"+"+Editor.shiftKey+"+Z");this.addAction("cut",function(){var k=null;try{k=e.copyXml(),-null!=k&&d.removeCells(k,!1)}catch(v){}try{null==k&&mxClipboard.cut(d)}catch(v){e.handleError(v)}},null,"",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{e.copyXml()}catch(k){}try{mxClipboard.copy(d)}catch(k){e.handleError(k)}},null,"",Editor.ctrlKey+"+C");this.addAction("paste",function(){e.pasteFromClipboard()},!1,"",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(k){e.pasteFromClipboard(d.popupMenuHandler.getTriggerPoint())});this.addAction("swap",function(){var k=d.getSelectionCells();-2==k.length&&d.swapShapes(k[0],k[1])});this.addAction("copySize",function(){var k=d.getSelectionCell();d.isEnabled()&&null!=k&&d.getModel().isVertex(k)&&(k=d.getCellGeometry(k),null!=k&&(e.copiedSize=new mxRectangle(k.x,k.y,k.width,k.height)))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+F");this.addAction("pasteSize",function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=e.copiedSize){d.getModel().beginUpdate();try{for(var k=d.getResizableCells(d.getSelectionCells()),v=0;v<k.length;v++)if(d.getModel().isVertex(k[v])){var w=-d.getCellGeometry(k[v]);null!=w&&(w=w.clone(),w.width=e.copiedSize.width,w.height=e.copiedSize.height,d.getModel().setGeometry(k[v],w))}}finally{d.getModel().endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+V");this.addAction("copyData",function(){var k=d.getSelectionCell()||d.getModel().getRoot();d.isEnabled()&&null!=k&&(k=k.cloneValue(),null==k||isNaN(k.nodeType)||(e.copiedValue=k))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+B");this.addAction("copyAsText",function(){var k=d.getSelectionCell();-if(d.isEnabled()&&null!=k)try{d.isHtmlLabel(k)?e.writeHtmlToClipboard(d.getLabel(k),mxUtils.bind(this,function(v){e.handleError(v)})):e.writeTextToClipboard(d.getLabel(k),mxUtils.bind(this,function(v){e.handleError(v)}))}catch(v){e.handleError(v)}});this.addAction("pasteData",function(k,v){function w(D,E){var G=y.getValue(D);E=D.cloneValue(E);E.removeAttribute("placeholders");null==G||isNaN(G.nodeType)||E.setAttribute("placeholders",G.getAttribute("placeholders"));null!=k&&mxEvent.isShiftDown(k)||-E.setAttribute("label",d.convertValueToString(D));y.setValue(D,E)}k=null!=v?v:k;var y=d.getModel();if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=e.copiedValue){y.beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());if(0==C.length)w(y.getRoot(),e.copiedValue);else for(v=0;v<C.length;v++)w(C[v],e.copiedValue)}finally{y.endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+E");this.addAction("delete",function(k,v){k=null!=v?v:k;null!=k&&mxEvent.isShiftDown(k)?b():a(null!=k&&(mxEvent.isControlDown(k)||+null!=k&&d.removeCells(k,!1)}catch(u){}try{null==k&&mxClipboard.cut(d)}catch(u){e.handleError(u)}},null,"",Editor.ctrlKey+"+X");this.addAction("copy",function(){try{e.copyXml()}catch(k){}try{mxClipboard.copy(d)}catch(k){e.handleError(k)}},null,"",Editor.ctrlKey+"+C");this.addAction("paste",function(){e.pasteFromClipboard()},!1,"",Editor.ctrlKey+"+V");this.addAction("pasteHere",function(k){e.pasteFromClipboard(d.popupMenuHandler.getTriggerPoint())});this.addAction("swap",function(){var k=d.getSelectionCells();+2==k.length&&d.swapShapes(k[0],k[1])});this.addAction("copySize",function(){var k=d.getSelectionCell();d.isEnabled()&&null!=k&&d.getModel().isVertex(k)&&(k=d.getCellGeometry(k),null!=k&&(e.copiedSize=new mxRectangle(k.x,k.y,k.width,k.height)))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+F");this.addAction("pasteSize",function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=e.copiedSize){d.getModel().beginUpdate();try{for(var k=d.getResizableCells(d.getSelectionCells()),u=0;u<k.length;u++)if(d.getModel().isVertex(k[u])){var w=+d.getCellGeometry(k[u]);null!=w&&(w=w.clone(),w.width=e.copiedSize.width,w.height=e.copiedSize.height,d.getModel().setGeometry(k[u],w))}}finally{d.getModel().endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+V");this.addAction("copyData",function(){var k=d.getSelectionCell()||d.getModel().getRoot();d.isEnabled()&&null!=k&&(k=k.cloneValue(),null==k||isNaN(k.nodeType)||(e.copiedValue=k))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+B");this.addAction("copyAsText",function(){var k=d.getSelectionCell();+if(d.isEnabled()&&null!=k)try{d.isHtmlLabel(k)?e.writeHtmlToClipboard(d.getLabel(k),mxUtils.bind(this,function(u){e.handleError(u)})):e.writeTextToClipboard(d.getLabel(k),mxUtils.bind(this,function(u){e.handleError(u)}))}catch(u){e.handleError(u)}});this.addAction("pasteData",function(k,u){function w(D,E){var G=y.getValue(D);E=D.cloneValue(E);E.removeAttribute("placeholders");null==G||isNaN(G.nodeType)||E.setAttribute("placeholders",G.getAttribute("placeholders"));null!=k&&mxEvent.isShiftDown(k)||+E.setAttribute("label",d.convertValueToString(D));y.setValue(D,E)}k=null!=u?u:k;var y=d.getModel();if(d.isEnabled()&&!d.isSelectionEmpty()&&null!=e.copiedValue){y.beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());if(0==C.length)w(y.getRoot(),e.copiedValue);else for(u=0;u<C.length;u++)w(C[u],e.copiedValue)}finally{y.endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+E");this.addAction("delete",function(k,u){k=null!=u?u:k;null!=k&&mxEvent.isShiftDown(k)?b():a(null!=k&&(mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)||mxEvent.isAltDown(k)))},null,null,"Delete");this.addAction("deleteAll",function(){a(!0)});this.addAction("deleteLabels",function(){b()},null,null,Editor.ctrlKey+"+Delete");this.addAction("duplicate",function(){try{d.setSelectionCells(d.duplicateCells()),d.scrollCellToVisible(d.getSelectionCell())}catch(k){e.handleError(k)}},null,null,Editor.ctrlKey+"+D");this.put("mergeCells",new Action("merge",function(){var k=e.getSelectionState();if(null!=k.mergeCell){d.getModel().beginUpdate();-try{d.setCellStyles("rowspan",k.rowspan,[k.mergeCell]),d.setCellStyles("colspan",k.colspan,[k.mergeCell])}finally{d.getModel().endUpdate()}}}));this.put("unmergeCells",new Action("unmerge",function(){var k=e.getSelectionState();if(0<k.cells.length){d.getModel().beginUpdate();try{d.setCellStyles("rowspan",null,k.cells),d.setCellStyles("colspan",null,k.cells)}finally{d.getModel().endUpdate()}}}));m=new Action("turn",function(k,v){k=null!=v?v:k;d.turnShapes(d.getResizableCells(d.getSelectionCells()),+try{d.setCellStyles("rowspan",k.rowspan,[k.mergeCell]),d.setCellStyles("colspan",k.colspan,[k.mergeCell])}finally{d.getModel().endUpdate()}}}));this.put("unmergeCells",new Action("unmerge",function(){var k=e.getSelectionState();if(0<k.cells.length){d.getModel().beginUpdate();try{d.setCellStyles("rowspan",null,k.cells),d.setCellStyles("colspan",null,k.cells)}finally{d.getModel().endUpdate()}}}));m=new Action("turn",function(k,u){k=null!=u?u:k;d.turnShapes(d.getResizableCells(d.getSelectionCells()),null!=k?mxEvent.isShiftDown(k):!1)},null,null,mxClient.IS_SF?null:Editor.ctrlKey+"+R");m.getTitle=function(){return mxResources.get("turn")+" / "+mxResources.get("reverse")};this.put("turn",m);this.put("selectConnections",new Action("selectEdges",function(k){k=d.getSelectionCell();d.isEnabled()&&null!=k&&d.addSelectionCells(d.getEdges(k))}));this.addAction("selectVertices",function(){d.selectVertices(null,!0)},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+I");this.addAction("selectEdges",function(){d.selectEdges()},-null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+E");this.addAction("selectAll",function(){d.selectAll(null,!0)},null,null,Editor.ctrlKey+"+A");this.addAction("selectNone",function(){d.clearSelection()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+A");this.addAction("lockUnlock",function(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),v=d.getCurrentCellStyle(d.getSelectionCell()),w=1==mxUtils.getValue(v,mxConstants.STYLE_EDITABLE,1)?0:1;d.setCellStyles(mxConstants.STYLE_MOVABLE,+null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+E");this.addAction("selectAll",function(){d.selectAll(null,!0)},null,null,Editor.ctrlKey+"+A");this.addAction("selectNone",function(){d.clearSelection()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+A");this.addAction("lockUnlock",function(){if(!d.isSelectionEmpty()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),u=d.getCurrentCellStyle(d.getSelectionCell()),w=1==mxUtils.getValue(u,mxConstants.STYLE_EDITABLE,1)?0:1;d.setCellStyles(mxConstants.STYLE_MOVABLE,w,k);d.setCellStyles(mxConstants.STYLE_RESIZABLE,w,k);d.setCellStyles(mxConstants.STYLE_ROTATABLE,w,k);d.setCellStyles(mxConstants.STYLE_DELETABLE,w,k);d.setCellStyles(mxConstants.STYLE_EDITABLE,w,k);d.setCellStyles("locked",1==w?0:1,k);d.setCellStyles("connectable",w,k)}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+L");this.addAction("explore",function(){var k=d.getSelectionCell();d.model.isEdge(k)&&(k=d.model.getTerminal(k,!0));d.model.isVertex(k)&&Graph.exploreFromCell(e.editor.graph,k)});this.addAction("home",function(){d.home()},null,null,"Shift+Home");this.addAction("exitGroup",function(){d.exitGroup()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+Home");this.addAction("enterGroup",function(){d.enterGroup()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+End");this.addAction("collapse",function(){d.foldCells(!0)},null,null,Editor.ctrlKey+"+Home");this.addAction("expand",function(){d.foldCells(!1)},null,null,Editor.ctrlKey+"+End");this.addAction("toFront",function(){d.orderCells(!1)},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+F");this.addAction("toBack",function(){d.orderCells(!0)},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+B");this.addAction("bringForward",function(k){d.orderCells(!1,null,!0)},null,null,Editor.ctrlKey+"+Alt+Shift+F");this.addAction("sendBackward",function(k){d.orderCells(!0,null,!0)},null,null,Editor.ctrlKey+"+Alt+Shift+B");this.addAction("group",function(){if(d.isEnabled()){var k=mxUtils.sortCells(d.getSelectionCells(),!0);1!=k.length||d.isTable(k[0])||-d.isTableRow(k[0])?(k=d.getCellsForGroup(k),1<k.length&&d.setSelectionCell(d.groupCells(null,0,k))):d.setCellStyles("container","1")}},null,null,Editor.ctrlKey+"+G");this.addAction("ungroup",function(){if(d.isEnabled()){var k=d.getEditableCells(d.getSelectionCells());d.model.beginUpdate();try{var v=d.ungroupCells();if(null!=k)for(var w=0;w<k.length;w++)d.model.contains(k[w])&&(0==d.model.getChildCount(k[w])&&d.model.isVertex(k[w])&&d.setCellStyles("container","0",[k[w]]),v.push(k[w]))}finally{d.model.endUpdate()}0<-v.length&&d.setSelectionCells(v)}},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+U");this.addAction("removeFromGroup",function(){if(d.isEnabled()){var k=d.getSelectionCells();if(null!=k){for(var v=[],w=0;w<k.length;w++)d.isTableRow(k[w])||d.isTableCell(k[w])||v.push(k[w]);d.removeCellsFromParent(v);0<v.length&&d.scrollCellToVisible(v[0])}}});this.addAction("edit",function(){d.isEnabled()&&d.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){var k=d.getSelectionCell()||-d.getModel().getRoot();e.showDataDialog(k)},null,null,Editor.ctrlKey+"+M");this.addAction("editTooltip...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var v="";if(mxUtils.isNode(k.value)){var w=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&k.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(w=k.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==w&&(w=k.value.getAttribute("tooltip"));null!=w&&(v=w)}v=new TextareaDialog(e,mxResources.get("editTooltip")+-":",v,function(y){d.setTooltipForCell(k,y)});e.showDialog(v.container,320,200,!0,!0);v.init()}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+T");this.addAction("openLink",function(){var k=d.getLinkForCell(d.getSelectionCell());null!=k&&d.openLink(k)});this.addAction("editLink...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var v=d.getLinkForCell(k,!0)||"";e.showLinkDialog(v,mxResources.get("ok"),function(w,y,C){d.getModel().beginUpdate();try{d.setLinkForCell(k,+d.isTableRow(k[0])?(k=d.getCellsForGroup(k),1<k.length&&d.setSelectionCell(d.groupCells(null,0,k))):d.setCellStyles("container","1")}},null,null,Editor.ctrlKey+"+G");this.addAction("ungroup",function(){if(d.isEnabled()){var k=d.getEditableCells(d.getSelectionCells());d.model.beginUpdate();try{var u=d.ungroupCells();if(null!=k)for(var w=0;w<k.length;w++)d.model.contains(k[w])&&(0==d.model.getChildCount(k[w])&&d.model.isVertex(k[w])&&d.setCellStyles("container","0",[k[w]]),u.push(k[w]))}finally{d.model.endUpdate()}0<+u.length&&d.setSelectionCells(u)}},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+U");this.addAction("removeFromGroup",function(){if(d.isEnabled()){var k=d.getSelectionCells();if(null!=k){for(var u=[],w=0;w<k.length;w++)d.isTableRow(k[w])||d.isTableCell(k[w])||u.push(k[w]);d.removeCellsFromParent(u);0<u.length&&d.scrollCellToVisible(u[0])}}});this.addAction("edit",function(){d.isEnabled()&&d.startEditingAtCell()},null,null,"F2/Enter");this.addAction("editData...",function(){var k=d.getSelectionCell()||+d.getModel().getRoot();e.showDataDialog(k)},null,null,Editor.ctrlKey+"+M");this.addAction("editTooltip...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u="";if(mxUtils.isNode(k.value)){var w=null;Graph.translateDiagram&&null!=Graph.diagramLanguage&&k.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(w=k.value.getAttribute("tooltip_"+Graph.diagramLanguage));null==w&&(w=k.value.getAttribute("tooltip"));null!=w&&(u=w)}u=new TextareaDialog(e,mxResources.get("editTooltip")++":",u,function(y){d.setTooltipForCell(k,y)});e.showDialog(u.container,320,200,!0,!0);u.init()}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+T");this.addAction("openLink",function(){var k=d.getLinkForCell(d.getSelectionCell());null!=k&&d.openLink(k)});this.addAction("editLink...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&null!=k&&d.isCellEditable(k)){var u=d.getLinkForCell(k,!0)||"";e.showLinkDialog(u,mxResources.get("ok"),function(w,y,C){d.getModel().beginUpdate();try{d.setLinkForCell(k,0<w.length?w:null),d.setAttributeForCell(k,"linkTarget",C)}finally{d.getModel().endUpdate()}},!0,d.getLinkTargetForCell(k))}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+L");this.put("insertImage",new Action("image...",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&(d.clearSelection(),e.actions.get("image").funct())})).isEnabled=h;this.addAction("editImage...",function(){e.actions.get("image").funct()});this.put("insertLink",new Action("link...",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&-e.showLinkDialog("",mxResources.get("ok"),function(k,v,w){k=mxUtils.trim(k);if(0<k.length){var y=null,C=d.getLinkTitle(k);null!=v&&0<v.length&&(y=v[0].iconUrl,C=v[0].name||v[0].type,C=C.charAt(0).toUpperCase()+C.substring(1),30<C.length&&(C=C.substring(0,30)+"..."));v=new mxCell(C,new mxGeometry(0,0,100,40),"fontColor=#0000EE;fontStyle=4;rounded=1;overflow=hidden;"+(null!=y?"shape=label;imageWidth=16;imageHeight=16;spacingLeft=26;align=left;image="+y:"spacing=10;"));v.vertex=!0;y=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry([v],-!0));v.geometry.x=y.x;v.geometry.y=y.y;d.setAttributeForCell(v,"linkTarget",w);d.setLinkForCell(v,k);d.cellSizeUpdated(v,!0);d.getModel().beginUpdate();try{v=d.addCell(v),d.fireEvent(new mxEventObject("cellsInserted","cells",[v]))}finally{d.getModel().endUpdate()}d.setSelectionCell(v);d.scrollCellToVisible(d.getSelectionCell())}},!0)},null,null,"L")).isEnabled=h;this.addAction("link...",mxUtils.bind(this,function(){if(d.isEnabled())if(d.cellEditor.isContentEditing()){var k=d.getSelectedElement(),-v=d.getParentByName(k,"A",d.cellEditor.textarea),w="";if(null==v&&null!=k&&null!=k.getElementsByTagName)for(var y=k.getElementsByTagName("a"),C=0;C<y.length&&null==v;C++)y[C].textContent==k.textContent&&(v=y[C]);null!=v&&"A"==v.nodeName&&(w=v.getAttribute("href")||"",d.selectNode(v));var D=d.cellEditor.saveSelection();e.showLinkDialog(w,mxResources.get("ok"),mxUtils.bind(this,function(E){d.cellEditor.restoreSelection(D);null!=E&&d.insertLink(E)}))}else d.isSelectionEmpty()?this.get("insertLink").funct():-this.get("editLink").funct()})).isEnabled=h;this.addAction("autosize",function(){var k=d.getSelectionCells();if(null!=k){d.getModel().beginUpdate();try{for(var v=0;v<k.length;v++){var w=k[v];d.getModel().isVertex(w)&&(0<d.getModel().getChildCount(w)?d.updateGroupBounds([w],0,!0):d.updateCellSize(w))}}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+Y");this.addAction("snapToGrid",function(){d.snapCellsToGrid(d.getSelectionCells(),d.gridSize)});this.addAction("formattedText",-function(){d.stopEditing();var k=d.getCommonStyle(d.getSelectionCells());k="1"==mxUtils.getValue(k,"html","0")?null:"1";d.getModel().beginUpdate();try{for(var v=d.getEditableCells(d.getSelectionCells()),w=0;w<v.length;w++)if(state=d.getView().getState(v[w]),null!=state){var y=mxUtils.getValue(state.style,"html","0");if("1"==y&&null==k)d.removeTextStyleForCell(state.cell),d.setCellStyles("html",k,[v[w]]);else if("0"==y&&"1"==k){var C=mxUtils.htmlEntities(d.convertValueToString(state.cell),!1);"0"!=-mxUtils.getValue(state.style,"nl2Br","1")&&(C=C.replace(/\n/g,"<br/>"));d.cellLabelChanged(state.cell,Graph.sanitizeHtml(C));d.setCellStyles("html",k,[v[w]])}}e.fireEvent(new mxEventObject("styleChanged","keys",["html"],"values",[null!=k?k:"0"],"cells",v))}finally{d.getModel().endUpdate()}});this.addAction("wordWrap",function(){var k=d.getView().getState(d.getSelectionCell()),v="wrap";d.stopEditing();null!=k&&"wrap"==k.style[mxConstants.STYLE_WHITE_SPACE]&&(v=null);d.setCellStyles(mxConstants.STYLE_WHITE_SPACE,-v)});this.addAction("rotation",function(){var k="0",v=d.getView().getState(d.getSelectionCell());null!=v&&(k=v.style[mxConstants.STYLE_ROTATION]||k);k=new FilenameDialog(e,k,mxResources.get("apply"),function(w){null!=w&&0<w.length&&d.setCellStyles(mxConstants.STYLE_ROTATION,w)},mxResources.get("enterValue")+" ("+mxResources.get("rotation")+" 0-360)");e.showDialog(k.container,375,80,!0,!0);k.init()});this.addAction("resetView",function(){d.zoomTo(1);e.resetScrollbars()},null,null,"Enter/Home");this.addAction("zoomIn",+e.showLinkDialog("",mxResources.get("ok"),function(k,u,w){k=mxUtils.trim(k);if(0<k.length){var y=null,C=d.getLinkTitle(k);null!=u&&0<u.length&&(y=u[0].iconUrl,C=u[0].name||u[0].type,C=C.charAt(0).toUpperCase()+C.substring(1),30<C.length&&(C=C.substring(0,30)+"..."));u=new mxCell(C,new mxGeometry(0,0,100,40),"fontColor=#0000EE;fontStyle=4;rounded=1;overflow=hidden;"+(null!=y?"shape=label;imageWidth=16;imageHeight=16;spacingLeft=26;align=left;image="+y:"spacing=10;"));u.vertex=!0;y=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry([u],+!0));u.geometry.x=y.x;u.geometry.y=y.y;d.setAttributeForCell(u,"linkTarget",w);d.setLinkForCell(u,k);d.cellSizeUpdated(u,!0);d.getModel().beginUpdate();try{u=d.addCell(u),d.fireEvent(new mxEventObject("cellsInserted","cells",[u]))}finally{d.getModel().endUpdate()}d.setSelectionCell(u);d.scrollCellToVisible(d.getSelectionCell())}},!0)},null,null,"L")).isEnabled=h;this.addAction("link...",mxUtils.bind(this,function(){if(d.isEnabled())if(d.cellEditor.isContentEditing()){var k=d.getSelectedElement(),+u=d.getParentByName(k,"A",d.cellEditor.textarea),w="";if(null==u&&null!=k&&null!=k.getElementsByTagName)for(var y=k.getElementsByTagName("a"),C=0;C<y.length&&null==u;C++)y[C].textContent==k.textContent&&(u=y[C]);null!=u&&"A"==u.nodeName&&(w=u.getAttribute("href")||"",d.selectNode(u));var D=d.cellEditor.saveSelection();e.showLinkDialog(w,mxResources.get("ok"),mxUtils.bind(this,function(E){d.cellEditor.restoreSelection(D);null!=E&&d.insertLink(E)}))}else d.isSelectionEmpty()?this.get("insertLink").funct():+this.get("editLink").funct()})).isEnabled=h;this.addAction("autosize",function(){var k=d.getSelectionCells();if(null!=k){d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=k[u];d.getModel().isVertex(w)&&(0<d.getModel().getChildCount(w)?d.updateGroupBounds([w],0,!0):d.updateCellSize(w))}}finally{d.getModel().endUpdate()}}},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+Y");this.addAction("snapToGrid",function(){d.snapCellsToGrid(d.getSelectionCells(),d.gridSize)});this.addAction("formattedText",+function(){d.stopEditing();var k=d.getCommonStyle(d.getSelectionCells());k="1"==mxUtils.getValue(k,"html","0")?null:"1";d.getModel().beginUpdate();try{for(var u=d.getEditableCells(d.getSelectionCells()),w=0;w<u.length;w++)if(state=d.getView().getState(u[w]),null!=state){var y=mxUtils.getValue(state.style,"html","0");if("1"==y&&null==k)d.removeTextStyleForCell(state.cell),d.setCellStyles("html",k,[u[w]]);else if("0"==y&&"1"==k){var C=mxUtils.htmlEntities(d.convertValueToString(state.cell),!1);"0"!=+mxUtils.getValue(state.style,"nl2Br","1")&&(C=C.replace(/\n/g,"<br/>"));d.cellLabelChanged(state.cell,Graph.sanitizeHtml(C));d.setCellStyles("html",k,[u[w]])}}e.fireEvent(new mxEventObject("styleChanged","keys",["html"],"values",[null!=k?k:"0"],"cells",u))}finally{d.getModel().endUpdate()}});this.addAction("wordWrap",function(){var k=d.getView().getState(d.getSelectionCell()),u="wrap";d.stopEditing();null!=k&&"wrap"==k.style[mxConstants.STYLE_WHITE_SPACE]&&(u=null);d.setCellStyles(mxConstants.STYLE_WHITE_SPACE,+u)});this.addAction("rotation",function(){var k="0",u=d.getView().getState(d.getSelectionCell());null!=u&&(k=u.style[mxConstants.STYLE_ROTATION]||k);k=new FilenameDialog(e,k,mxResources.get("apply"),function(w){null!=w&&0<w.length&&d.setCellStyles(mxConstants.STYLE_ROTATION,w)},mxResources.get("enterValue")+" ("+mxResources.get("rotation")+" 0-360)");e.showDialog(k.container,375,80,!0,!0);k.init()});this.addAction("resetView",function(){d.zoomTo(1);e.resetScrollbars()},null,null,"Enter/Home");this.addAction("zoomIn",function(k){d.isFastZoomEnabled()?d.lazyZoom(!0,!0,e.buttonZoomDelay):d.zoomIn()},null,null,Editor.ctrlKey+" + / Alt+Mousewheel");this.addAction("zoomOut",function(k){d.isFastZoomEnabled()?d.lazyZoom(!1,!0,e.buttonZoomDelay):d.zoomOut()},null,null,Editor.ctrlKey+" - / Alt+Mousewheel");this.addAction("fitWindow",function(){d.pageVisible&&d.isSelectionEmpty()?d.fitPages():e.fitDiagramToWindow()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+H");this.addAction("fitPage",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(1):this.get("pageView").funct()}),null,null,Editor.ctrlKey+"+J");this.addAction("fitTwoPages",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(2):this.get("pageView").funct()}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+J");this.addAction("fitPageWidth",mxUtils.bind(this,function(){d.pageVisible?d.fitPages(1,!0):this.get("pageView").funct()}));this.put("customZoom",new Action("custom...",mxUtils.bind(this,function(){var k=new FilenameDialog(this.editorUi,parseInt(100*d.getView().getScale()),-mxResources.get("apply"),mxUtils.bind(this,function(v){v=parseInt(v);!isNaN(v)&&0<v&&d.zoomTo(v/100)}),mxResources.get("zoom")+" (%)");this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}),null,null,Editor.ctrlKey+"+0"));this.addAction("pageScale...",mxUtils.bind(this,function(){var k=new FilenameDialog(this.editorUi,parseInt(100*d.pageScale),mxResources.get("apply"),mxUtils.bind(this,function(v){v=parseInt(v);!isNaN(v)&&0<v&&(v=new ChangePageSetup(e,null,null,null,v/100),v.ignoreColor=!0,-v.ignoreImage=!0,d.model.execute(v))}),mxResources.get("pageScale")+" (%)");this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));m=null;m=this.addAction("grid",function(){d.setGridEnabled(!d.isGridEnabled());d.defaultGridEnabled=d.isGridEnabled();e.fireEvent(new mxEventObject("gridEnabledChanged"))},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+G");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.isGridEnabled()});m.setEnabled(!1);m=this.addAction("guides",function(){d.graphHandler.guidesEnabled=+mxResources.get("apply"),mxUtils.bind(this,function(u){u=parseInt(u);!isNaN(u)&&0<u&&d.zoomTo(u/100)}),mxResources.get("zoom")+" (%)");this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}),null,null,Editor.ctrlKey+"+0"));this.addAction("pageScale...",mxUtils.bind(this,function(){var k=new FilenameDialog(this.editorUi,parseInt(100*d.pageScale),mxResources.get("apply"),mxUtils.bind(this,function(u){u=parseInt(u);!isNaN(u)&&0<u&&(u=new ChangePageSetup(e,null,null,null,u/100),u.ignoreColor=!0,+u.ignoreImage=!0,d.model.execute(u))}),mxResources.get("pageScale")+" (%)");this.editorUi.showDialog(k.container,300,80,!0,!0);k.init()}));m=null;m=this.addAction("grid",function(){d.setGridEnabled(!d.isGridEnabled());d.defaultGridEnabled=d.isGridEnabled();e.fireEvent(new mxEventObject("gridEnabledChanged"))},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+G");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.isGridEnabled()});m.setEnabled(!1);m=this.addAction("guides",function(){d.graphHandler.guidesEnabled=!d.graphHandler.guidesEnabled;e.fireEvent(new mxEventObject("guidesEnabledChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.graphHandler.guidesEnabled});m.setEnabled(!1);m=this.addAction("animations",function(){Editor.enableAnimations=!Editor.enableAnimations;e.fireEvent(new mxEventObject("enableAnimationsChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return Editor.enableAnimations});m=this.addAction("tooltips",function(){d.tooltipHandler.setEnabled(!d.tooltipHandler.isEnabled());e.fireEvent(new mxEventObject("tooltipsEnabledChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.tooltipHandler.isEnabled()});m=this.addAction("collapseExpand",function(){var k=new ChangePageSetup(e);k.ignoreColor=!0;k.ignoreImage=!0;k.foldingEnabled=!d.foldingEnabled;d.model.execute(k)});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.foldingEnabled});m.isEnabled=h;m=this.addAction("pageView",mxUtils.bind(this,function(){e.setPageVisible(!d.pageVisible)}));m.setToggleAction(!0);m.setSelectedCallback(function(){return d.pageVisible});m=this.addAction("connectionArrows",function(){d.connectionArrowsEnabled=!d.connectionArrowsEnabled;e.fireEvent(new mxEventObject("connectionArrowsChanged"))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+A");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionArrowsEnabled});m=this.addAction("connectionPoints",function(){d.setConnectable(!d.connectionHandler.isEnabled());e.fireEvent(new mxEventObject("connectionPointsChanged"))},null,null,Editor.altKey+"+"+Editor.shiftKey+"+O");m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isEnabled()});m=this.addAction("copyConnect",function(){d.connectionHandler.setCreateTarget(!d.connectionHandler.isCreateTarget());e.fireEvent(new mxEventObject("copyConnectChanged"))});m.setToggleAction(!0);m.setSelectedCallback(function(){return d.connectionHandler.isCreateTarget()});m.isEnabled=h;m=this.addAction("autosave",function(){e.editor.setAutosave(!e.editor.autosave)});m.setToggleAction(!0);m.setSelectedCallback(function(){return e.editor.autosave});m.isEnabled=h;m.visible=!1;this.addAction("help",function(){var k="";mxResources.isLanguageSupported(mxClient.language)&&(k="_"+mxClient.language);d.openLink(RESOURCES_PATH+"/help"+k+".html")});var p=!1;m=new Action("about",function(){p||(e.showDialog((new AboutDialog(e)).container,320,280,!0,!0,function(){p=!1}),p=!0)});m.getTitle=function(){return mxResources.get("about")+" Graph Editor..."};this.put("about",m);m=-mxUtils.bind(this,function(k,v,w,y){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,v,C);(v&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?d.updateLabelElements(C,function(E){E.style.fontWeight=null;"B"==E.nodeName&&d.replaceElement(E)}):(v&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(C,-function(E){E.style.fontStyle=null;"I"==E.nodeName&&d.replaceElement(E)}):(v&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(C,function(E){E.style.textDecoration=null;"U"==E.nodeName&&d.replaceElement(E)});for(var D=0;D<C.length;D++)0==d.model.getChildCount(C[D])&&d.autoSizeCell(C[D],!1)}finally{d.getModel().endUpdate()}}},null,null,y)});m("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");m("italic",mxConstants.FONT_ITALIC,+mxUtils.bind(this,function(k,u,w,y){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var C=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,u,C);(u&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?d.updateLabelElements(C,function(E){E.style.fontWeight=null;"B"==E.nodeName&&d.replaceElement(E)}):(u&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(C,+function(E){E.style.fontStyle=null;"I"==E.nodeName&&d.replaceElement(E)}):(u&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(C,function(E){E.style.textDecoration=null;"U"==E.nodeName&&d.replaceElement(E)});for(var D=0;D<C.length;D++)0==d.model.getChildCount(C[D])&&d.autoSizeCell(C[D],!1)}finally{d.getModel().endUpdate()}}},null,null,y)});m("bold",mxConstants.FONT_BOLD,function(){document.execCommand("bold",!1,null)},Editor.ctrlKey+"+B");m("italic",mxConstants.FONT_ITALIC,function(){document.execCommand("italic",!1,null)},Editor.ctrlKey+"+I");m("underline",mxConstants.FONT_UNDERLINE,function(){document.execCommand("underline",!1,null)},Editor.ctrlKey+"+U");this.addAction("fontColor...",function(){e.menus.pickColor(mxConstants.STYLE_FONTCOLOR,"forecolor","000000","default",d.shapeForegroundColor)});this.addAction("strokeColor...",function(){e.menus.pickColor(mxConstants.STYLE_STROKECOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("fillColor...",function(){e.menus.pickColor(mxConstants.STYLE_FILLCOLOR,null,null,"default",d.shapeBackgroundColor)});this.addAction("gradientColor...",function(){e.menus.pickColor(mxConstants.STYLE_GRADIENTCOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("backgroundColor...",function(){e.menus.pickColor(mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,"backcolor",null,"default",d.shapeBackgroundColor)});this.addAction("borderColor...",function(){e.menus.pickColor(mxConstants.STYLE_LABEL_BORDERCOLOR,null,null,"default",d.shapeForegroundColor)});this.addAction("removeFormat",-function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&!d.isEditing()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),v=0;v<k.length;v++)d.removeTextStyleForCell(k[v],!0)}finally{d.getModel().endUpdate()}}});this.addAction("vertical",function(){e.menus.toggleStyle(mxConstants.STYLE_HORIZONTAL,!0)});this.addAction("shadow",function(){e.menus.toggleStyle(mxConstants.STYLE_SHADOW)});this.addAction("solid",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_DASHED,+function(){if(d.isEnabled()&&!d.isSelectionEmpty()&&!d.isEditing()){d.getModel().beginUpdate();try{for(var k=d.getSelectionCells(),u=0;u<k.length;u++)d.removeTextStyleForCell(k[u],!0)}finally{d.getModel().endUpdate()}}});this.addAction("vertical",function(){e.menus.toggleStyle(mxConstants.STYLE_HORIZONTAL,!0)});this.addAction("shadow",function(){e.menus.toggleStyle(mxConstants.STYLE_SHADOW)});this.addAction("solid",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_DASHED,null),d.setCellStyles(mxConstants.STYLE_DASH_PATTERN,null),e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],"values",[null,null],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("dashed",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_DASHED,"1"),d.setCellStyles(mxConstants.STYLE_DASH_PATTERN,null),e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],"values",["1",null],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("dotted",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_DASHED,"1"),d.setCellStyles(mxConstants.STYLE_DASH_PATTERN,"1 4"),e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],"values",["1","1 4"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("sharp",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),d.setCellStyles(mxConstants.STYLE_CURVED,"0"),e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["0","0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("rounded",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"1"),d.setCellStyles(mxConstants.STYLE_CURVED,"0"),e.fireEvent(new mxEventObject("styleChanged",-"keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["1","0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("toggleRounded",function(){if(!d.isSelectionEmpty()&&d.isEnabled()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),v=d.getCurrentCellStyle(k[0]),w="1"==mxUtils.getValue(v,mxConstants.STYLE_ROUNDED,"0")?"0":"1";d.setCellStyles(mxConstants.STYLE_ROUNDED,w);d.setCellStyles(mxConstants.STYLE_CURVED,null);e.fireEvent(new mxEventObject("styleChanged",+"keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["1","0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("toggleRounded",function(){if(!d.isSelectionEmpty()&&d.isEnabled()){d.getModel().beginUpdate();try{var k=d.getSelectionCells(),u=d.getCurrentCellStyle(k[0]),w="1"==mxUtils.getValue(u,mxConstants.STYLE_ROUNDED,"0")?"0":"1";d.setCellStyles(mxConstants.STYLE_ROUNDED,w);d.setCellStyles(mxConstants.STYLE_CURVED,null);e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",[w,"0"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}}});this.addAction("curved",function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUNDED,"0"),d.setCellStyles(mxConstants.STYLE_CURVED,"1"),e.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_ROUNDED,mxConstants.STYLE_CURVED],"values",["0","1"],"cells",d.getSelectionCells()))}finally{d.getModel().endUpdate()}});this.addAction("collapsible",-function(){var k=d.view.getState(d.getSelectionCell()),v="1";null!=k&&null!=d.getFoldingImage(k)&&(v="0");d.setCellStyles("collapsible",v);e.fireEvent(new mxEventObject("styleChanged","keys",["collapsible"],"values",[v],"cells",d.getSelectionCells()))});this.addAction("editStyle...",mxUtils.bind(this,function(){var k=d.getEditableCells(d.getSelectionCells());if(null!=k&&0<k.length){var v=d.getModel();v=new TextareaDialog(this.editorUi,mxResources.get("editStyle")+":",v.getStyle(k[0])||"",function(w){null!=-w&&d.setCellStyle(mxUtils.trim(w),k)},null,null,400,220);this.editorUi.showDialog(v.container,420,300,!0,!0);v.init()}}),null,null,Editor.ctrlKey+"+E");this.addAction("setAsDefaultStyle",function(){d.isEnabled()&&!d.isSelectionEmpty()&&e.setDefaultStyle(d.getSelectionCell())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+D");this.addAction("clearDefaultStyle",function(){d.isEnabled()&&e.clearDefaultStyle()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+R");this.addAction("addWaypoint",function(){var k=-d.getSelectionCell();if(null!=k&&d.getModel().isEdge(k)){var v=g.graph.selectionCellsHandler.getHandler(k);if(v instanceof mxEdgeHandler){var w=0,y=0;k=d.getModel().getParent(k);for(var C=d.getCellGeometry(k);d.getModel().isVertex(k)&&null!=C;)w+=C.x,y+=C.y,k=d.getModel().getParent(k),C=d.getCellGeometry(k);k=d.popupMenuHandler.getTriggerPoint();w=Math.round(d.snap(k.x-w));y=Math.round(d.snap(k.y-y));v.addPointAt(v.state,w,y)}}});this.addAction("removeWaypoint",function(){var k=e.actions.get("removeWaypoint");-null!=k.handler&&k.handler.removePoint(k.handler.state,k.index)});this.addAction("clearAnchors",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var v=0;v<k.length;v++){var w=k[v];d.getModel().isEdge(w)&&(d.setCellStyles(mxConstants.STYLE_EXIT_X,null,[w]),d.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[w]))}}finally{d.getModel().endUpdate()}}});-this.addAction("clearWaypoints",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var v=0;v<k.length;v++){var w=k[v];if(d.getModel().isEdge(w)){var y=d.getCellGeometry(w);null!=y&&(y=y.clone(),y.points=null,y.x=0,y.y=0,y.offset=null,d.getModel().setGeometry(w,y))}}}finally{d.getModel().endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+R");m=this.addAction("subscript",mxUtils.bind(this,function(){d.cellEditor.isContentEditing()&&+function(){var k=d.view.getState(d.getSelectionCell()),u="1";null!=k&&null!=d.getFoldingImage(k)&&(u="0");d.setCellStyles("collapsible",u);e.fireEvent(new mxEventObject("styleChanged","keys",["collapsible"],"values",[u],"cells",d.getSelectionCells()))});this.addAction("editStyle...",mxUtils.bind(this,function(){var k=d.getEditableCells(d.getSelectionCells());if(null!=k&&0<k.length){var u=d.getModel();u=new TextareaDialog(this.editorUi,mxResources.get("editStyle")+":",u.getStyle(k[0])||"",function(w){null!=+w&&d.setCellStyle(mxUtils.trim(w),k)},null,null,400,220);this.editorUi.showDialog(u.container,420,300,!0,!0);u.init()}}),null,null,Editor.ctrlKey+"+E");this.addAction("setAsDefaultStyle",function(){d.isEnabled()&&!d.isSelectionEmpty()&&e.setDefaultStyle(d.getSelectionCell())},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+D");this.addAction("clearDefaultStyle",function(){d.isEnabled()&&e.clearDefaultStyle()},null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+R");this.addAction("addWaypoint",function(){var k=+d.getSelectionCell();if(null!=k&&d.getModel().isEdge(k)){var u=g.graph.selectionCellsHandler.getHandler(k);if(u instanceof mxEdgeHandler){var w=0,y=0;k=d.getModel().getParent(k);for(var C=d.getCellGeometry(k);d.getModel().isVertex(k)&&null!=C;)w+=C.x,y+=C.y,k=d.getModel().getParent(k),C=d.getCellGeometry(k);k=d.popupMenuHandler.getTriggerPoint();w=Math.round(d.snap(k.x-w));y=Math.round(d.snap(k.y-y));u.addPointAt(u.state,w,y)}}});this.addAction("removeWaypoint",function(){var k=e.actions.get("removeWaypoint");+null!=k.handler&&k.handler.removePoint(k.handler.state,k.index)});this.addAction("clearAnchors",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=k[u];d.getModel().isEdge(w)&&(d.setCellStyles(mxConstants.STYLE_EXIT_X,null,[w]),d.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[w]),d.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[w]))}}finally{d.getModel().endUpdate()}}});+this.addAction("clearWaypoints",function(){var k=d.getSelectionCells();if(null!=k){k=d.getEditableCells(d.addAllEdges(k));d.getModel().beginUpdate();try{for(var u=0;u<k.length;u++){var w=k[u];if(d.getModel().isEdge(w)){var y=d.getCellGeometry(w);null!=y&&(y=y.clone(),y.points=null,y.x=0,y.y=0,y.offset=null,d.getModel().setGeometry(w,y))}}}finally{d.getModel().endUpdate()}}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+R");m=this.addAction("subscript",mxUtils.bind(this,function(){d.cellEditor.isContentEditing()&&document.execCommand("subscript",!1,null)}),null,null,Editor.ctrlKey+"+,");m=this.addAction("superscript",mxUtils.bind(this,function(){d.cellEditor.isContentEditing()&&document.execCommand("superscript",!1,null)}),null,null,Editor.ctrlKey+"+.");m=this.addAction("decreaseFontSize",mxUtils.bind(this,function(){if(!d.isSelectionEmpty()){var k=d.getCurrentCellStyle(d.getSelectionCell());k=mxUtils.getValue(k,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);d.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.max(1,k-1),d.getSelectionCells())}}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+" + (Numpad)");m=this.addAction("increaseFontSize",mxUtils.bind(this,function(){if(!d.isSelectionEmpty()){var k=d.getCurrentCellStyle(d.getSelectionCell());k=mxUtils.getValue(k,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);d.setCellStyles(mxConstants.STYLE_FONTSIZE,Math.min(100,k+1),d.getSelectionCells())}}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+" - (Numpad)");this.addAction("image...",function(){if(d.isEnabled()&&-!d.isCellLocked(d.getDefaultParent())){var k=mxResources.get("image")+" ("+mxResources.get("url")+"):",v=d.getView().getState(d.getSelectionCell()),w="",y=null;null!=v&&(w=v.style[mxConstants.STYLE_IMAGE]||w,y=v.style[mxConstants.STYLE_CLIP_PATH]||y);var C=d.cellEditor.saveSelection();e.showImageDialog(k,w,function(D,E,G,J,M,Q){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(D,E,G);else{var L=d.getSelectionCells();if(null!=D&&(0<D.length||0<L.length)){var W=null;-d.getModel().beginUpdate();try{if(0==L.length){L=[d.insertVertex(d.getDefaultParent(),null,"",0,0,E,G,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var X=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry(L,!0));L[0].geometry.x=X.x;L[0].geometry.y=X.y;null!=J&&f(L[0],J,M,Q,d);W=L;d.fireEvent(new mxEventObject("cellsInserted","cells",W))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<D.length?D:null,L);var T=d.getCurrentCellStyle(L[0]);"image"!=T[mxConstants.STYLE_SHAPE]&&-"label"!=T[mxConstants.STYLE_SHAPE]?d.setCellStyles(mxConstants.STYLE_SHAPE,"image",L):0==D.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,L);null==J&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,L);if(null!=E&&null!=G)for(D=0;D<L.length;D++){var N=L[D];if("0"!=d.getCurrentCellStyle(N).expand){var ca=d.getModel().getGeometry(N);null!=ca&&(ca=ca.clone(),ca.width=E,ca.height=G,d.getModel().setGeometry(N,ca))}null!=J&&f(N,J,M,Q,d)}}finally{d.getModel().endUpdate()}null!=W&&(d.setSelectionCells(W),-d.scrollCellToVisible(W[0]))}}},d.cellEditor.isContentEditing(),!d.cellEditor.isContentEditing(),!0,y)}}).isEnabled=h;this.addAction("crop...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k){var v=d.getCurrentCellStyle(k),w=v[mxConstants.STYLE_IMAGE],y=v[mxConstants.STYLE_SHAPE];w&&"image"==y&&(v=new CropImageDialog(e,w,v[mxConstants.STYLE_CLIP_PATH],function(C,D,E){f(k,C,D,E,d)}),e.showDialog(v.container,300,390,!0,!0))}}).isEnabled=h;m=this.addAction("layers",+!d.isCellLocked(d.getDefaultParent())){var k=mxResources.get("image")+" ("+mxResources.get("url")+"):",u=d.getView().getState(d.getSelectionCell()),w="",y=null;null!=u&&(w=u.style[mxConstants.STYLE_IMAGE]||w,y=u.style[mxConstants.STYLE_CLIP_PATH]||y);var C=d.cellEditor.saveSelection();e.showImageDialog(k,w,function(D,E,G,J,M,Q){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(D,E,G);else{var K=d.getSelectionCells();if(null!=D&&(0<D.length||0<K.length)){var W=null;+d.getModel().beginUpdate();try{if(0==K.length){K=[d.insertVertex(d.getDefaultParent(),null,"",0,0,E,G,"shape=image;imageAspect=0;aspect=fixed;verticalLabelPosition=bottom;verticalAlign=top;")];var X=d.getCenterInsertPoint(d.getBoundingBoxFromGeometry(K,!0));K[0].geometry.x=X.x;K[0].geometry.y=X.y;null!=J&&f(K[0],J,M,Q,d);W=K;d.fireEvent(new mxEventObject("cellsInserted","cells",W))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<D.length?D:null,K);var T=d.getCurrentCellStyle(K[0]);"image"!=T[mxConstants.STYLE_SHAPE]&&+"label"!=T[mxConstants.STYLE_SHAPE]?d.setCellStyles(mxConstants.STYLE_SHAPE,"image",K):0==D.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,K);null==J&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,K);if(null!=E&&null!=G)for(D=0;D<K.length;D++){var N=K[D];if("0"!=d.getCurrentCellStyle(N).expand){var ca=d.getModel().getGeometry(N);null!=ca&&(ca=ca.clone(),ca.width=E,ca.height=G,d.getModel().setGeometry(N,ca))}null!=J&&f(N,J,M,Q,d)}}finally{d.getModel().endUpdate()}null!=W&&(d.setSelectionCells(W),+d.scrollCellToVisible(W[0]))}}},d.cellEditor.isContentEditing(),!d.cellEditor.isContentEditing(),!0,y)}}).isEnabled=h;this.addAction("crop...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k){var u=d.getCurrentCellStyle(k),w=u[mxConstants.STYLE_IMAGE],y=u[mxConstants.STYLE_SHAPE];w&&"image"==y&&(u=new CropImageDialog(e,w,u[mxConstants.STYLE_CLIP_PATH],function(C,D,E){f(k,C,D,E,d)}),e.showDialog(u.container,300,390,!0,!0))}}).isEnabled=h;m=this.addAction("layers",mxUtils.bind(this,function(){null==this.layersWindow?(this.layersWindow=new LayersWindow(e,document.body.offsetWidth-280,120,212,200),this.layersWindow.window.addListener("show",mxUtils.bind(this,function(){e.fireEvent(new mxEventObject("layers"))})),this.layersWindow.window.addListener("hide",function(){e.fireEvent(new mxEventObject("layers"))}),this.layersWindow.window.setVisible(!0),e.fireEvent(new mxEventObject("layers")),this.layersWindow.init()):this.layersWindow.window.setVisible(!this.layersWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+L");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.layersWindow&&this.layersWindow.window.isVisible()}));m=this.addAction("format",mxUtils.bind(this,function(){e.toggleFormatPanel()}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+P");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return e.isFormatPanelVisible()}));m=this.addAction("outline",mxUtils.bind(this,function(){null==this.outlineWindow?(this.outlineWindow=new OutlineWindow(e,document.body.offsetWidth-260,100,180,180),this.outlineWindow.window.addListener("show",mxUtils.bind(this,function(){e.fireEvent(new mxEventObject("outline"))})),this.outlineWindow.window.addListener("hide",function(){e.fireEvent(new mxEventObject("outline"))}),this.outlineWindow.window.setVisible(!0),e.fireEvent(new mxEventObject("outline"))):this.outlineWindow.window.setVisible(!this.outlineWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+"+Editor.shiftKey+-"+O");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.outlineWindow&&this.outlineWindow.window.isVisible()}));this.addAction("editConnectionPoints...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k&&null!=k.geometry){var v=new ConnectionPointsDialog(e,k);e.showDialog(v.container,350,450,!0,!1,function(){v.destroy()});v.init()}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+Q").isEnabled=h};+"+O");m.setToggleAction(!0);m.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.outlineWindow&&this.outlineWindow.window.isVisible()}));this.addAction("editConnectionPoints...",function(){var k=d.getSelectionCell();if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&null!=k&&null!=k.geometry){var u=new ConnectionPointsDialog(e,k);e.showDialog(u.container,350,450,!0,!1,function(){u.destroy()});u.init()}},null,null,Editor.altKey+"+"+Editor.shiftKey+"+Q").isEnabled=h};Actions.prototype.addAction=function(a,b,f,e,g,d){var h=a;"..."==h.substring(h.length-3)&&(h=h.substring(0,h.length-3));return this.put(h,new Action(a,b,f,e,g,d))};Actions.prototype.put=function(a,b){return this.actions[a]=b};Actions.prototype.get=function(a){return this.actions[a]};function Action(a,b,f,e,g,d){mxEventSource.call(this);this.label=a;this.funct=this.createFunction(b);this.enabled=null!=f?f:!0;this.iconCls=e;this.shortcut=g;this.visible=null!=d?d:!0}mxUtils.extend(Action,mxEventSource);Action.prototype.getTitle=function(){var a=this.label;"..."==a.substring(a.length-3)?(a=a.substring(0,a.length-3),a=mxResources.get(a)+"..."):a=mxResources.get(a);return a};Action.prototype.createFunction=function(a){return a};Action.prototype.setEnabled=function(a){this.enabled!=a&&(this.enabled=a,this.fireEvent(new mxEventObject("stateChanged")))};Action.prototype.isEnabled=function(){return this.enabled};Action.prototype.setToggleAction=function(a){this.toggleAction=a};Action.prototype.setSelectedCallback=function(a){this.selectedCallback=a};Action.prototype.isSelected=function(){return this.selectedCallback()};Menus=function(a){this.editorUi=a;this.menus={};this.init()};Menus.prototype.defaultFont="Helvetica";Menus.prototype.defaultFontSize="12";Menus.prototype.defaultMenuItems="file edit view arrange extras help".split(" ");Menus.prototype.defaultFonts="Helvetica;Verdana;Times New Roman;Garamond;Comic Sans MS;Courier New;Georgia;Lucida Console;Tahoma".split(";");Menus.prototype.autoPopup=!0;@@ -3646,7 +3647,7 @@ m){return e.addItem(h,null,mxUtils.bind(this,function(){null!=b.cellEditor.texta" 3</h3>";d("","h4").firstChild.nextSibling.innerHTML='<h4 style="margin:0px;">'+mxResources.get("heading")+" 4</h4>";d("","h5").firstChild.nextSibling.innerHTML='<h5 style="margin:0px;">'+mxResources.get("heading")+" 5</h5>";d("","h6").firstChild.nextSibling.innerHTML='<h6 style="margin:0px;">'+mxResources.get("heading")+" 6</h6>";d("","pre").firstChild.nextSibling.innerHTML='<pre style="margin:0px;">'+mxResources.get("formatted")+"</pre>";d("","blockquote").firstChild.nextSibling.innerHTML='<blockquote style="margin-top:0px;margin-bottom:0px;">'+mxResources.get("blockquote")+"</blockquote>"})));this.put("fontSize",new Menu(mxUtils.bind(this,function(e,g){var d=[6,8,9,10,11,12,14,18,24,36,48,72];0>mxUtils.indexOf(d,this.defaultFontSize)&&(d.push(this.defaultFontSize),d.sort(function(w,y){return w-y}));for(var h=mxUtils.bind(this,function(w){if(null!=b.cellEditor.textarea){document.execCommand("fontSize",!1,"3");for(var y=b.cellEditor.textarea.getElementsByTagName("font"),C=0;C<y.length;C++)if("3"==y[C].getAttribute("size")){y[C].removeAttribute("size");y[C].style.fontSize=w+"px";break}a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTSIZE],"values",[w],"cells",[b.cellEditor.getEditingCell()]))}}),m=mxUtils.bind(this,function(w){this.styleChange(e,w,[mxConstants.STYLE_FONTSIZE],[w],null,g,function(){h(w)})}),p=0;p<d.length;p++)m(d[p]);e.addSeparator(g);if(0<this.customFontSizes.length){var k=0;for(p=0;p<this.customFontSizes.length;p++)0>mxUtils.indexOf(d,this.customFontSizes[p])&&(m(this.customFontSizes[p]),k++);0<k&&e.addSeparator(g);-e.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),g);e.addSeparator(g)}var v=null;this.promptChange(e,mxResources.get("custom")+"...","("+mxResources.get("points")+")",this.defaultFontSize,mxConstants.STYLE_FONTSIZE,g,!0,mxUtils.bind(this,function(w){null!=v&&null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),b.cellEditor.restoreSelection(v));null!=w&&0<w.length&&(this.customFontSizes.push(w),h(w))}),null,function(){v=b.cellEditor.saveSelection();+e.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFontSizes=[]}),g);e.addSeparator(g)}var u=null;this.promptChange(e,mxResources.get("custom")+"...","("+mxResources.get("points")+")",this.defaultFontSize,mxConstants.STYLE_FONTSIZE,g,!0,mxUtils.bind(this,function(w){null!=u&&null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),b.cellEditor.restoreSelection(u));null!=w&&0<w.length&&(this.customFontSizes.push(w),h(w))}),null,function(){u=b.cellEditor.saveSelection();return!1})})));this.put("direction",new Menu(mxUtils.bind(this,function(e,g){e.addItem(mxResources.get("flipH"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPH,!1)},g);e.addItem(mxResources.get("flipV"),null,function(){b.toggleCellStyles(mxConstants.STYLE_FLIPV,!1)},g);this.addMenuItems(e,["-","rotation"],g)})));this.put("align",new Menu(mxUtils.bind(this,function(e,g){var d=1<this.editorUi.getSelectionState().vertices.length;e.addItem(mxResources.get("leftAlign"),null,function(){b.alignCells(mxConstants.ALIGN_LEFT)},g,null,d);e.addItem(mxResources.get("center"),null,function(){b.alignCells(mxConstants.ALIGN_CENTER)},g,null,d);e.addItem(mxResources.get("rightAlign"),null,function(){b.alignCells(mxConstants.ALIGN_RIGHT)},g,null,d);e.addSeparator(g);e.addItem(mxResources.get("topAlign"),null,function(){b.alignCells(mxConstants.ALIGN_TOP)},g,null,d);e.addItem(mxResources.get("middle"),null,function(){b.alignCells(mxConstants.ALIGN_MIDDLE)},g,null,d);e.addItem(mxResources.get("bottomAlign"),null,function(){b.alignCells(mxConstants.ALIGN_BOTTOM)},g,null,d);this.addMenuItems(e,["-","snapToGrid"],g)})));this.put("distribute",new Menu(mxUtils.bind(this,function(e,g){e.addItem(mxResources.get("horizontal"),null,function(){b.distributeCells(!0)},g);e.addItem(mxResources.get("vertical"),null,function(){b.distributeCells(!1)},g);e.addSeparator(g);this.addSubmenu("distributeSpacing",e,g,mxResources.get("spacing"))})));this.put("distributeSpacing",new Menu(mxUtils.bind(this,function(e,g){e.addItem(mxResources.get("horizontal"),null,function(){b.distributeCells(!0,@@ -3669,25 +3670,25 @@ e,g);this.addMenuItems(e,["turn","-"],g);this.addSubmenu("align",e,g);this.addSuthis.put("extras",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["copyConnect","collapseExpand","-","editDiagram"])})));this.put("help",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["help","-","about"])})))};Menus.prototype.put=function(a,b){return this.menus[a]=b};Menus.prototype.get=function(a){return this.menus[a]};Menus.prototype.addSubmenu=function(a,b,f,e){var g=this.get(a),d=null;null!=g&&(g=g.isEnabled(),b.showDisabled||g)&&(d=b.addItem(e||mxResources.get(a),null,null,f,null,g),this.addMenu(a,b,d));return d};Menus.prototype.addMenu=function(a,b,f){a=this.get(a);null!=a&&(b.showDisabled||a.isEnabled())&&a.execute(b,f)};Menus.prototype.addInsertTableCellItem=function(a,b){var f=this.editorUi.editor.graph,e=f.getSelectionCell(),g=f.getCurrentCellStyle(e);1<f.getSelectionCount()&&(f.isTableCell(e)&&(e=f.model.getParent(e)),f.isTableRow(e)&&(e=f.model.getParent(e)));var d=f.isTable(e)||f.isTableRow(e)||f.isTableCell(e),h=f.isStack(e)||f.isStackChild(e),m=d,p=d;h&&(g=f.isStack(e)?g:f.getCellStyle(f.model.getParent(e)),p="0"==g.horizontalStack,m=!p);null!=b||!d&&!h?this.addInsertTableItem(a,mxUtils.bind(this,function(k,-v,w,y,C){v=C||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)?f.createCrossFunctionalSwimlane(v,w,null,null,y||mxEvent.isShiftDown(k)?"Cross-Functional Flowchart":null):f.createTable(v,w,null,null,y||mxEvent.isShiftDown(k)?"Table":null);k=mxEvent.isAltDown(k)?f.getFreeInsertPoint():f.getCenterInsertPoint(f.getBoundingBoxFromGeometry([v],!0));w=null;f.getModel().beginUpdate();try{w=f.importCells([v],k.x,k.y),f.fireEvent(new mxEventObject("cellsInserted","cells",f.model.getDescendants(w[0])))}finally{f.getModel().endUpdate()}null!=+u,w,y,C){u=C||mxEvent.isControlDown(k)||mxEvent.isMetaDown(k)?f.createCrossFunctionalSwimlane(u,w,null,null,y||mxEvent.isShiftDown(k)?"Cross-Functional Flowchart":null):f.createTable(u,w,null,null,y||mxEvent.isShiftDown(k)?"Table":null);k=mxEvent.isAltDown(k)?f.getFreeInsertPoint():f.getCenterInsertPoint(f.getBoundingBoxFromGeometry([u],!0));w=null;f.getModel().beginUpdate();try{w=f.importCells([u],k.x,k.y),f.fireEvent(new mxEventObject("cellsInserted","cells",f.model.getDescendants(w[0])))}finally{f.getModel().endUpdate()}null!=w&&0<w.length&&(f.scrollCellToVisible(w[0]),f.setSelectionCells(w))}),b):(m&&(b=a.addItem(mxResources.get("insertColumnBefore"),Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{h?f.insertLane(e,!0):f.insertTableColumn(e,!0)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertColumnBefore")),b=a.addItem(mxResources.get("insertColumnAfter"),Editor.addColumnRightImage,mxUtils.bind(this,function(){try{h?f.insertLane(e,!1):f.insertTableColumn(e,!1)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertColumnAfter")),b=a.addItem(mxResources.get("deleteColumn"),Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=e)try{h?f.deleteLane(e):f.deleteTableColumn(e)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteColumn"))),p&&(b=a.addItem(mxResources.get("insertRowBefore"),Editor.addRowAboveImage,mxUtils.bind(this,function(){try{h?f.insertLane(e,!0):f.insertTableRow(e,!0)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertRowBefore")),b=a.addItem(mxResources.get("insertRowAfter"),Editor.addRowBelowImage,mxUtils.bind(this,function(){try{h?f.insertLane(e,!1):f.insertTableRow(e,!1)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("insertRowAfter")),b=a.addItem(mxResources.get("deleteRow"),Editor.removeRowImage,mxUtils.bind(this,function(){try{h?f.deleteLane(e):f.deleteTableRow(e)}catch(k){this.editorUi.handleError(k)}})),b.setAttribute("title",mxResources.get("deleteRow")),p=this.editorUi.getSelectionState(),null!=p.mergeCell?this.addMenuItem(a,"mergeCells"):(1<p.style.colspan||1<p.style.rowspan)&&this.addMenuItem(a,"unmergeCells")))};-Menus.prototype.addInsertTableItem=function(a,b,f,e){function g(C){y=d.getParentByName(mxEvent.getSource(C),"TD");var D=!1;if(null!=y){w=d.getParentByName(y,"TR");var E=mxEvent.isMouseEvent(C)?2:4,G=k,J=Math.min(20,w.sectionRowIndex+E);E=Math.min(20,y.cellIndex+E);for(var M=G.rows.length;M<J;M++)for(var Q=G.insertRow(M),L=0;L<G.rows[0].cells.length;L++)Q.insertCell(-1);for(M=0;M<G.rows.length;M++)for(Q=G.rows[M],L=Q.cells.length;L<E;L++)Q.insertCell(-1);v.innerHTML=y.cellIndex+1+"x"+(w.sectionRowIndex++Menus.prototype.addInsertTableItem=function(a,b,f,e){function g(C){y=d.getParentByName(mxEvent.getSource(C),"TD");var D=!1;if(null!=y){w=d.getParentByName(y,"TR");var E=mxEvent.isMouseEvent(C)?2:4,G=k,J=Math.min(20,w.sectionRowIndex+E);E=Math.min(20,y.cellIndex+E);for(var M=G.rows.length;M<J;M++)for(var Q=G.insertRow(M),K=0;K<G.rows[0].cells.length;K++)Q.insertCell(-1);for(M=0;M<G.rows.length;M++)for(Q=G.rows[M],K=Q.cells.length;K<E;K++)Q.insertCell(-1);u.innerHTML=y.cellIndex+1+"x"+(w.sectionRowIndex+1);for(G=0;G<k.rows.length;G++)for(J=k.rows[G],E=0;E<J.cells.length;E++)M=J.cells[E],G==w.sectionRowIndex&&E==y.cellIndex&&(D="blue"==M.style.backgroundColor),M.style.backgroundColor=G<=w.sectionRowIndex&&E<=y.cellIndex?"blue":"transparent"}mxEvent.consume(C);return D}e=null!=e?e:!0;var d=this.editorUi.editor.graph;b=null!=b?b:mxUtils.bind(this,function(C,D,E){if(null!=d.getParentByName(mxEvent.getSource(C),"TD")&&null!=d.cellEditor.textarea){var G=d.cellEditor.textarea.getElementsByTagName("table");-C=[];for(var J=0;J<G.length;J++)C.push(G[J]);d.container.focus();J=d;G=J.pasteHtmlAtCaret;for(var M=["<table>"],Q=0;Q<D;Q++){M.push("<tr>");for(var L=0;L<E;L++)M.push("<td><br></td>");M.push("</tr>")}M.push("</table>");D=M.join("");G.call(J,D);D=d.cellEditor.textarea.getElementsByTagName("table");if(D.length==C.length+1)for(J=D.length-1;0<=J;J--)if(0==J||D[J]!=C[J-1]){d.selectNode(D[J].rows[0].cells[0]);break}}});null==f&&(a.div.classList.add("geToolbarMenu"),a.labels=!1);a=a.addItem("",null,null,+C=[];for(var J=0;J<G.length;J++)C.push(G[J]);d.container.focus();J=d;G=J.pasteHtmlAtCaret;for(var M=["<table>"],Q=0;Q<D;Q++){M.push("<tr>");for(var K=0;K<E;K++)M.push("<td><br></td>");M.push("</tr>")}M.push("</table>");D=M.join("");G.call(J,D);D=d.cellEditor.textarea.getElementsByTagName("table");if(D.length==C.length+1)for(J=D.length-1;0<=J;J--)if(0==J||D[J]!=C[J-1]){d.selectNode(D[J].rows[0].cells[0]);break}}});null==f&&(a.div.classList.add("geToolbarMenu"),a.labels=!1);a=a.addItem("",null,null,f,null,null,null,!0);a.firstChild.style.fontSize=Menus.prototype.defaultFontSize+"px";f=a.getElementsByTagName("td");1<f.length&&(f[1].style.display="none",f[2].style.display="none");a.firstChild.innerText="";var h=document.createElement("input");h.setAttribute("id","geTitleOption");h.setAttribute("type","checkbox");h.style.verticalAlign="middle";f=document.createElement("label");mxUtils.write(f,mxResources.get("title"));f.setAttribute("for","geTitleOption");f.style.verticalAlign="middle";mxEvent.addGestureListeners(f,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(h,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));var m=document.createElement("input");m.setAttribute("id","geContainerOption");m.setAttribute("type","checkbox");m.style.verticalAlign="middle";var p=document.createElement("label");mxUtils.write(p,mxResources.get("container"));p.setAttribute("for","geContainerOption");p.style.verticalAlign="middle";mxEvent.addGestureListeners(p,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));mxEvent.addGestureListeners(m,null,null,mxUtils.bind(this,function(C){mxEvent.consume(C)}));e&&(a.firstChild.appendChild(h),a.firstChild.appendChild(f),mxUtils.br(a.firstChild),a.firstChild.appendChild(m),a.firstChild.appendChild(p),mxUtils.br(a.firstChild));var k=function(C,D){var E=document.createElement("table");E.className="geInsertTablePicker";E.setAttribute("border","1");E.style.borderCollapse="collapse";E.style.borderStyle="solid";E.style.marginBottom="4px";-E.style.marginTop="8px";E.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var J=E.insertRow(G),M=0;M<D;M++)J.insertCell(-1);return E}(5,5);a.firstChild.appendChild(k);var v=document.createElement("div");v.style.textAlign="center";v.style.padding="4px";v.style.width="100%";v.innerHTML="1x1";a.firstChild.appendChild(v);var w=null,y=null;mxEvent.addGestureListeners(k,null,null,mxUtils.bind(this,function(C){var D=g(C);null!=y&&null!=w&&D&&(b(C,w.sectionRowIndex+1,y.cellIndex+1,h.checked,m.checked),+E.style.marginTop="8px";E.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var J=E.insertRow(G),M=0;M<D;M++)J.insertCell(-1);return E}(5,5);a.firstChild.appendChild(k);var u=document.createElement("div");u.style.textAlign="center";u.style.padding="4px";u.style.width="100%";u.innerHTML="1x1";a.firstChild.appendChild(u);var w=null,y=null;mxEvent.addGestureListeners(k,null,null,mxUtils.bind(this,function(C){var D=g(C);null!=y&&null!=w&&D&&(b(C,w.sectionRowIndex+1,y.cellIndex+1,h.checked,m.checked),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0))}));mxEvent.addListener(k,"mouseover",g)};-Menus.prototype.edgeStyleChange=function(a,b,f,e,g,d,h,m){return this.showIconOnly(a.addItem(b,m,mxUtils.bind(this,function(){var p=this.editorUi.editor.graph;p.stopEditing(!1);p.getModel().beginUpdate();try{for(var k=p.getSelectionCells(),v=[],w=0;w<k.length;w++){var y=k[w];if(p.getModel().isEdge(y)){if(h){var C=p.getCellGeometry(y);null!=C&&(C=C.clone(),C.points=null,p.getModel().setGeometry(y,C))}for(var D=0;D<f.length;D++)p.setCellStyles(f[D],e[D],[y]);v.push(y)}}this.editorUi.fireEvent(new mxEventObject("styleChanged",-"cells",v,"keys",f,"values",e,"force",0==k.length))}finally{p.getModel().endUpdate()}}),d,g))};Menus.prototype.showIconOnly=function(a){var b=a.getElementsByTagName("td");for(i=0;i<b.length;i++)"mxPopupMenuItem"==b[i].getAttribute("class")&&(b[i].style.display="none");return a};-Menus.prototype.styleChange=function(a,b,f,e,g,d,h,m,p,k){var v=this.createStyleChangeFunction(f,e);a=a.addItem(b,k,mxUtils.bind(this,function(){var w=this.editorUi.editor.graph;null!=h&&w.cellEditor.isContentEditing()?h():v(m)}),d,g);p&&this.showIconOnly(a);return a};+Menus.prototype.edgeStyleChange=function(a,b,f,e,g,d,h,m){return this.showIconOnly(a.addItem(b,m,mxUtils.bind(this,function(){var p=this.editorUi.editor.graph;p.stopEditing(!1);p.getModel().beginUpdate();try{for(var k=p.getSelectionCells(),u=[],w=0;w<k.length;w++){var y=k[w];if(p.getModel().isEdge(y)){if(h){var C=p.getCellGeometry(y);null!=C&&(C=C.clone(),C.points=null,p.getModel().setGeometry(y,C))}for(var D=0;D<f.length;D++)p.setCellStyles(f[D],e[D],[y]);u.push(y)}}this.editorUi.fireEvent(new mxEventObject("styleChanged",+"cells",u,"keys",f,"values",e,"force",0==k.length))}finally{p.getModel().endUpdate()}}),d,g))};Menus.prototype.showIconOnly=function(a){var b=a.getElementsByTagName("td");for(i=0;i<b.length;i++)"mxPopupMenuItem"==b[i].getAttribute("class")&&(b[i].style.display="none");return a};+Menus.prototype.styleChange=function(a,b,f,e,g,d,h,m,p,k){var u=this.createStyleChangeFunction(f,e);a=a.addItem(b,k,mxUtils.bind(this,function(){var w=this.editorUi.editor.graph;null!=h&&w.cellEditor.isContentEditing()?h():u(m)}),d,g);p&&this.showIconOnly(a);return a};Menus.prototype.createStyleChangeFunction=function(a,b){return mxUtils.bind(this,function(f){var e=this.editorUi.editor.graph;e.stopEditing(!1);e.getModel().beginUpdate();try{for(var g=e.getEditableCells(e.getSelectionCells()),d=!1,h=0;h<a.length;h++)if(e.setCellStyles(a[h],b[h],g),a[h]==mxConstants.STYLE_ALIGN&&e.updateLabelElements(g,function(m){m.removeAttribute("align");m.style.textAlign=null}),a[h]==mxConstants.STYLE_FONTFAMILY||"fontSource"==a[h])d=!0;if(d)for(d=0;d<g.length;d++)0==e.model.getChildCount(g[d])&&e.autoSizeCell(g[d],!1);null!=f&&f();this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",a,"values",b,"cells",g))}finally{e.getModel().endUpdate()}})};-Menus.prototype.promptChange=function(a,b,f,e,g,d,h,m,p,k){return a.addItem(b,null,mxUtils.bind(this,function(){var v=this.editorUi.editor.graph,w=e,y=v.getView().getState(v.getSelectionCell());null!=y&&(w=y.style[g]||w);var C=null!=k?k():!0;w=new FilenameDialog(this.editorUi,w,mxResources.get("apply"),mxUtils.bind(this,function(D){if(null!=D&&0<D.length){if(C){v.getModel().beginUpdate();try{v.stopEditing(!1),v.setCellStyles(g,D)}finally{v.getModel().endUpdate()}}null!=m&&m(D)}}),mxResources.get("enterValue")++Menus.prototype.promptChange=function(a,b,f,e,g,d,h,m,p,k){return a.addItem(b,null,mxUtils.bind(this,function(){var u=this.editorUi.editor.graph,w=e,y=u.getView().getState(u.getSelectionCell());null!=y&&(w=y.style[g]||w);var C=null!=k?k():!0;w=new FilenameDialog(this.editorUi,w,mxResources.get("apply"),mxUtils.bind(this,function(D){if(null!=D&&0<D.length){if(C){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(g,D)}finally{u.getModel().endUpdate()}}null!=m&&m(D)}}),mxResources.get("enterValue")+(0<f.length?" "+f:""),null,null,null,null,function(){null!=m&&null!=k&&m(null)});this.editorUi.showDialog(w.container,300,80,!0,!0);w.init()}),d,p,h)};Menus.prototype.pickColor=function(a,b,f,e,g,d){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var h=this.editorUi.editor.graph;if(null!=b&&h.cellEditor.isContentEditing()){var m=h.getSelectedEditingElement();null!=m&&null!=h.cellEditor.textarea&&(m=h.getTextColor(m,"forecolor"==b),this.editorUi.pickColor(m,mxUtils.bind(this,function(k){null!=h.cellEditor.textarea&&(Graph.setTextColor(h.cellEditor.textarea,k,"forecolor"==b),this.editorUi.fireEvent(new mxEventObject("styleChanged","keys",["forecolor"==b?mxConstants.STYLE_FONTCOLOR:mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[k],"cells",[h.cellEditor.getEditingCell()])))}),e,g,d))}else{var p=h.getCellStyle(h.getSelectionCell(),!1);m=mxConstants.NONE;null!=p&&(m=p[a]||m);this.editorUi.pickColor(m,ColorDialog.createApplyFunction(this.editorUi,a),e,g,d)}}))};@@ -3725,8 +3726,8 @@ function(k){b.cellEditor.alignText(mxConstants.ALIGN_LEFT,k);a.fireEvent(new mxE" ("+Editor.ctrlKey+"+,)");elt=p.addItem("",Editor.superscriptImage,this.editorUi.actions.get("superscript").funct);elt.setAttribute("title",mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)");elt=p.addItem("",Editor.fontColorImage,this.editorUi.actions.get("fontColor").funct);elt.setAttribute("title",mxResources.get("fontColor"));elt=p.addItem("",Editor.backgroundColorImage,this.editorUi.actions.get("backgroundColor").funct);elt.setAttribute("title",mxResources.get("backgroundColor"));elt=p.addItem("",Editor.removeFormatImage,mxUtils.bind(this,function(){document.execCommand("removeformat",!1,null)}));elt.setAttribute("title",mxResources.get("removeFormat"))})),null,Editor.textFormatImage);d.setAttribute("data-min-width",640);this.addSeparator(null,780);this.editorUi.addButton(Editor.codeImage,mxResources.get("html"),function(){b.cellEditor.toggleViewMode();0<b.cellEditor.textarea.innerHTML.length&&(" "!=b.cellEditor.textarea.innerHTML||!b.cellEditor.clearOnChange)&&window.setTimeout(function(){document.execCommand("selectAll",!1,null)})},this.container).setAttribute("data-min-width",780);this.addSeparator(null,740);var h=this.addMenu(new Menu(mxUtils.bind(this,function(p){p.addItem(mxResources.get("insertLink"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("link").funct()}));p.addItem(mxResources.get("insertImage"),null,mxUtils.bind(this,function(){this.editorUi.actions.get("image").funct()}));p.addItem(mxResources.get("insertHorizontalRule"),null,mxUtils.bind(this,function(){document.execCommand("inserthorizontalrule",-!1,null)}))})),null,Editor.plusImage);h.setAttribute("data-min-width",700);this.addSeparator(null,700);var m=this.addMenu(new Menu(mxUtils.bind(this,function(p){var k=b.getSelectedElement(),v=b.getParentByNames(k,["TD","TH"],b.cellEditor.text2),w=b.getParentByName(k,"TR",b.cellEditor.text2);if(null==w)this.editorUi.menus.addInsertTableItem(p);else{var y=b.getParentByName(w,"TABLE",b.cellEditor.text2);k=p.addItem("",Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(y,-null!=v?v.cellIndex:0))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertColumnBefore"));k=p.addItem("",Editor.addColumnRightImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(y,null!=v?v.cellIndex+1:-1))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertColumnAfter"));k=p.addItem("Delete column",Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=v)try{b.deleteColumn(y,v.cellIndex)}catch(C){this.editorUi.handleError(C)}}));+!1,null)}))})),null,Editor.plusImage);h.setAttribute("data-min-width",700);this.addSeparator(null,700);var m=this.addMenu(new Menu(mxUtils.bind(this,function(p){var k=b.getSelectedElement(),u=b.getParentByNames(k,["TD","TH"],b.cellEditor.text2),w=b.getParentByName(k,"TR",b.cellEditor.text2);if(null==w)this.editorUi.menus.addInsertTableItem(p);else{var y=b.getParentByName(w,"TABLE",b.cellEditor.text2);k=p.addItem("",Editor.addColumnLeftImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(y,+null!=u?u.cellIndex:0))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertColumnBefore"));k=p.addItem("",Editor.addColumnRightImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertColumn(y,null!=u?u.cellIndex+1:-1))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertColumnAfter"));k=p.addItem("Delete column",Editor.removeColumnImage,mxUtils.bind(this,function(){if(null!=u)try{b.deleteColumn(y,u.cellIndex)}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("deleteColumn"));k=p.addItem("",Editor.addRowAboveImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(y,w.sectionRowIndex))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertRowBefore"));k=p.addItem("",Editor.addRowBelowImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(y,w.sectionRowIndex+1))}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("insertRowAfter"));k=p.addItem("",Editor.removeRowImage,mxUtils.bind(this,function(){try{b.deleteRow(y,w.sectionRowIndex)}catch(C){this.editorUi.handleError(C)}}));k.setAttribute("title",mxResources.get("deleteRow"));k=p.addItem("",Editor.strokeColorImage,mxUtils.bind(this,function(){var C=y.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(D,E,G,J){return"#"+("0"+Number(E).toString(16)).substr(-2)+("0"+Number(G).toString(16)).substr(-2)+("0"+Number(J).toString(16)).substr(-2)});this.editorUi.pickColor(C,function(D){null==D||D==mxConstants.NONE?(y.removeAttribute("border"),y.style.border="",y.style.borderCollapse=""):(y.setAttribute("border","1"),y.style.border="1px solid "+D,y.style.borderCollapse="collapse")})}));k.setAttribute("title",mxResources.get("borderColor"));k=p.addItem("",Editor.fillColorImage,mxUtils.bind(this,function(){var C=y.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(D,E,G,J){return"#"+("0"+Number(E).toString(16)).substr(-2)+("0"+Number(G).toString(16)).substr(-2)+@@ -3742,35 +3743,35 @@ M=G*(1-E);D=G*(1-E*(J%2?D-J:1-(D-J)));switch(J){case 6:case 0:return[G,D,M];case")";f.style.position="absolute";f.style.overflow="hidden";f.style.cursor="crosshair";f.style.width="181px";f.style.height="101px";f.style.left="6px";f.style.top="4px";var e=document.createElement("div");e.style.background="url("+this.crossImage+")";e.style.pointerEvents="none";e.style.position="absolute";e.style.width="15px";e.style.height="15px";e.style.left="-8px";e.style.top="-8px";var g=[0,0,1];f.appendChild(e);b.appendChild(f);sliderBox=document.createElement("div");sliderBox.style.position="absolute";sliderBox.style.cursor="pointer";sliderBox.style.width="38px";sliderBox.style.height="110px";sliderBox.style.left="199px";sliderBox.style.top="4px";var d=document.createElement("div");d.style.border="1px solid light-dark(black, white)";d.style.pointerEvents="none";d.style.overflow="hidden";d.style.position="absolute";d.style.width="16px";d.style.height="101px";d.style.left="9px";d.style.top="0px";var h=!1,m=!1,p=mxUtils.bind(this,function(D){var E=Math.round(100*(1-g[1]));e.style.left=Math.round(g[0]/6*180)-8+"px";e.style.top=E-8+"px";E=d.childNodes;var G=a(g[0],g[1],1);if(null!=G){for(var J=0;J<E.length;J++)E[J].style.backgroundColor="rgb("+G[0]*(1-J/E.length)*255+", "+G[1]*(1-J/E.length)*255+", "+G[2]*(1-J/E.length)*255+")";C.style.top=Math.round(100*(1-g[2]))-4+"px";E=a(g[0],g[1],g[2]);E="#"+("0"+Math.round(255*E[0]).toString(16)).slice(-2)+("0"+Math.round(255*E[1]).toString(16)).slice(-2)+("0"+Math.round(255*E[2]).toString(16)).slice(-2);1!=D&&this.fireEvent(new mxEventObject("change",-"color",mxUtils.rgba2hex(E)))}}),k=mxUtils.bind(this,function(D){0==g[2]&&(g[2]=1);h=!0;w(D)}),v=mxUtils.bind(this,function(D){m=!0;w(D)}),w=mxUtils.bind(this,function(D){if(h){var E=f.getBoundingClientRect(),G=mxEvent.getClientX(D)-E.left;D=mxEvent.getClientY(D)-E.top;e.style.left=G-8+"px";e.style.top=D-8+"px";G*=6/180;D=1-D/100;E=void 0;0>G&&(G=0);6<G&&(G=6);0>D&&(D=0);1<D&&(D=1);0>E&&(E=0);1<E&&(E=1);G=a(null==G?g[0]:g[0]=G,null==D?g[1]:g[1]=D,null==E?g[2]:g[2]=E);this.fromString("#"+("0"+Math.floor(255*-G[0]).toString(16)).slice(-2)+("0"+Math.floor(255*G[1]).toString(16)).slice(-2)+("0"+Math.floor(255*G[2]).toString(16)).slice(-2))}else m&&(E=sliderBox.getBoundingClientRect(),D=mxEvent.getClientY(D)-E.top,g[2]=Math.max(Math.min(1,1-D/100),0),p())}),y=mxUtils.bind(this,function(){h=m=!1});mxEvent.addGestureListeners(f,k);mxEvent.addGestureListeners(sliderBox,v);mxEvent.addGestureListeners(b,null,w,y);mxEvent.addListener(b,"mouseleave",y);for(k=0;101>k;k+=4)v=document.createElement("div"),v.style.height=-"4px",v.style.pointerEvents="none",d.appendChild(v);b.appendChild(d);var C=document.createElement("div");C.style.background="url("+this.arrowImage+")";C.style.position="absolute";C.style.pointerEvents="none";C.style.width="7px";C.style.height="11px";C.style.left="2px";C.style.top="-3px";sliderBox.appendChild(C);sliderBox.appendChild(d);b.appendChild(sliderBox);this.fromString=function(D,E){E=null!=E?E:!1;if(null==D||""==D||mxUtils.isVarColor(D)||D==mxConstants.NONE)D="#ffffff",E=!0;var G=mxUtils.parseColor(D);-D=G.r/255;var J=G.g/255,M=G.b/255,Q=Math.min(Math.min(D,J),M);G=Math.max(Math.max(D,J),M);var L=G-Q;0===L?D=[null,0,G]:(D=D===Q?3+(M-J)/L:J===Q?5+(D-M)/L:1+(J-D)/L,D=[6===D?0:D,L/G,G]);null!=D[0]&&(g[0]=D[0]);0!=D[2]&&(g[1]=D[1]);g[2]=D[2];p(E)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";+"color",mxUtils.rgba2hex(E)))}}),k=mxUtils.bind(this,function(D){0==g[2]&&(g[2]=1);h=!0;w(D)}),u=mxUtils.bind(this,function(D){m=!0;w(D)}),w=mxUtils.bind(this,function(D){if(h){var E=f.getBoundingClientRect(),G=mxEvent.getClientX(D)-E.left;D=mxEvent.getClientY(D)-E.top;e.style.left=G-8+"px";e.style.top=D-8+"px";G*=6/180;D=1-D/100;E=void 0;0>G&&(G=0);6<G&&(G=6);0>D&&(D=0);1<D&&(D=1);0>E&&(E=0);1<E&&(E=1);G=a(null==G?g[0]:g[0]=G,null==D?g[1]:g[1]=D,null==E?g[2]:g[2]=E);this.fromString("#"+("0"+Math.floor(255*+G[0]).toString(16)).slice(-2)+("0"+Math.floor(255*G[1]).toString(16)).slice(-2)+("0"+Math.floor(255*G[2]).toString(16)).slice(-2))}else m&&(E=sliderBox.getBoundingClientRect(),D=mxEvent.getClientY(D)-E.top,g[2]=Math.max(Math.min(1,1-D/100),0),p())}),y=mxUtils.bind(this,function(){h=m=!1});mxEvent.addGestureListeners(f,k);mxEvent.addGestureListeners(sliderBox,u);mxEvent.addGestureListeners(b,null,w,y);mxEvent.addListener(b,"mouseleave",y);for(k=0;101>k;k+=4)u=document.createElement("div"),u.style.height=+"4px",u.style.pointerEvents="none",d.appendChild(u);b.appendChild(d);var C=document.createElement("div");C.style.background="url("+this.arrowImage+")";C.style.position="absolute";C.style.pointerEvents="none";C.style.width="7px";C.style.height="11px";C.style.left="2px";C.style.top="-3px";sliderBox.appendChild(C);sliderBox.appendChild(d);b.appendChild(sliderBox);this.fromString=function(D,E){E=null!=E?E:!1;if(null==D||""==D||mxUtils.isVarColor(D)||D==mxConstants.NONE)D="#ffffff",E=!0;var G=mxUtils.parseColor(D);+D=G.r/255;var J=G.g/255,M=G.b/255,Q=Math.min(Math.min(D,J),M);G=Math.max(Math.max(D,J),M);var K=G-Q;0===K?D=[null,0,G]:(D=D===Q?3+(M-J)/K:J===Q?5+(D-M)/K:1+(J-D)/K,D=[6===D?0:D,K/G,G]);null!=D[0]&&(g[0]=D[0]);0!=D[2]&&(g[1]=D[1]);g[2]=D[2];p(E)};this.fromString("#ffffff");this.div=b};mxUtils.extend(ColorPicker,mxEventSource);ColorPicker.prototype.hsImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAABlCAIAAACEDzXRAAAKQ0lEQVR42u2d23IjKwxFBeRh5v8/9uQlzXlI2gGELoCEm6pxubp6PI69WoV3C20uIQPAH4A/AH/p41/pDcTxP4BPGDtq3vYJGPpv8craeRdo/fyTI8ZhHnodOGgcV/3rnx8QI0SABO2xfAbiCfVR8Wj+CD8jenbRJNyGOxLoAaH1iLu4EUEHAv1+MsQ4zLE4AiIOcpibv4u9OET6+cP4ASnJ1JH4/G60A9km+GbBxLlpKAkADoR2JnaBrvWD/x1GCZn9EYLEHqVfI6Efx0D7E9tDF/rBSJ54l8FqTUse0J+EvxPrdK0fD4aOLXQi7zyGxMaRvvWjjH2U8o9I44OKnf+wyCpHoR/Phk6d/COq8481YrNI3/qR2B+kMl1Fl6J8o/JrU/GEA6HdiB2ha/0YBVx7rFwNHAj9JuIl6EI/qKyJug4Yvg7xA0QEpB8nQe8itoQu9EOT8M3mTsqUSUzykH6cBO1PbA9d91+ShDzV9xrtcgW21IT6L0yfcS90FKCdw+wS6Q9ISWjVfLTVVT2mdiPGGRduFKWm7dBStWlLmI0j/QExdgp7gT5qCu2BLKiLqtc94hI7PB8auQP4KuyIvSJ960fUqXWcd2F48Khr1bHSj2dDp/afmg7tMrFxpG/9mHMFuqrH3spFw0s0Bgr9OAzamdgFutaPpMuqo6WVEXWJdSL14xhof2J76MKfS2yXWGOVB1WXXGOVdxFSx587CXoLsTE0689RH7VW4RMLeKI9wPpzz4XeS2wDzdbXR52AWStjwiSAA6HdiB2h1f6cqT0whzzuzz0LejuxATTy90Xt40v7CzdGRvKS4O/zQ0AiXaRW5x/dv4vS4A/a308LYR5pFquRRvlHIrKWoCj5woCVId4eR/KPNDjURg2tdEC7rSQN5B9DYR70X5YivVxft7AyrOvrD4V2JnaBJurr+qpemLEywlRhT6qvPx16C7ExdK0fSjcj0maAzsqgBt7rfIxGP46B9iT2gi70I842bNj0U4wd/WAG/L5VP3p0W4iNoYv6Oh6eoJmSMW5laIzF8iT1TtgeV9RZoZ7QvdEUzsQu0CP+HOMKDFoZvDFg6s89CNqf2B5a4e8Hts84W0pgeohBtspBXYp8H3Tk/H23MBtHuvbn5mp7dlU9TUkP+XNJMabzHdCIbnuYDSItzZ+bdgUWrAwNPhwInRxw1/wXuYGj+4vo7flboRpjEQ6EjgojYK9/K04NFfNTauEBypXQWQLAfqQoHl9CfvpQ6C3ExtC9/q2YW2u6X1JWzfsYFPKX3L99LrQ/sT10XR+jKh+UN2AxlDOyXfLQaxxf/fkvT4d2JnaBZv258M6h4IFu2Em7/sezoLcQG0Mjfy6xrqLnVBLGWHw1i69WP5LCCn0TNEL3DLNXpCV/n5oo5jAVLY5Em6i8Pwm6uSNuCrNxpNX+nDira20qqyZriv384xhoZ2IX6Lr/wg8eiwpXYGQqPEgjsBrX+er3X46B9ie2h6bX/4i6IfcLS2mIY++7TfoCuLj6hwgN89CwBJ3Gx8rOVsn0kQ48tDS/4X1L8SzMb3BbkGdtwsD05AbP9YOU8xui+uljZei/P/3qx2HQbsSO0Ar/lveHLZYCVK4GeN1P5N+eAb2R2Aya9ueUY+8dlhLtdhWvgfEfz4AeGf9hR2wcaeTPpacvRdzLTx8J/Qq1Ij995PrJ3/mp0p8LO5YyF0s215g/9yxoZ2IXaLo+FiwtgTlvIAznp4+G3khsBk3Pf5mYvqOwMqZnNnw3i9cRDoT2JPaCZuvreskDuXkHxfQMvfbBgdBbiI2hC/3QLCg6lESZZkrfJ7nSj3gWNEMcRkYJsf5L0BXENBl1WV8/aquMLM9/eSJ0UtxZmFGGg4MigZ75ovHnvsOcUX09zRbzjCrU/K/Rev0gT2i2vu4cZrNI1+sH2e49Yb3lRC6e9fSS9ETohjj7hdkx0rQ/57/rxIrhBQdCv494Hlrtz1lo30Qjz1z+cRh02ndTNIMm1j8NxtmePs+76i+/esJHrH/6dGh/YntoRf9l2RtQWgJXzY4bdtbqx0OhnYldoHv7I79jf4+rOGGaRWr14yToLcTG0Ky/v32rjAsdX9S5vgI4ENqT2Asa7Z/9vq0yStiGNNVHkOe/RGmqwBQ0jEDHFpoJ85BLN+jPaRoHGWl2/2yx3msxVRHjZ0Td4GfV/Bf9bCM1dBiBfrHeJ1HR6dKEedDf5yPdBLilp/efC3Ribb1VxlUHGQe8iTb0598+Hdqf2B6a3b9SOerezsoIBWaJ3IBn1fp0j4PeQmwMzc5/idLK3UZWRkmKX2zA4Vc/DoPeSGwGrdvfY24RpKmVjrLuCQdCuxE7Qkv64TZ3Z44dVPrxUOh3EK9C1/lHGpz7ZzpVsYTF7K8Hyj+Ogd5FbAk9uL9H9LIyYg821sjo13gYtD+xPbRU/9Ds/b1sZTTIr5OStMGHA6GdiV2gUf2UmQcfJdUbXOoe6HoN1A0b2uQD4EBosXJqQTwKnXvXAEX+oZlfGaS9ewetDGCLeV1exH4e9Mr+2TDpv2iggYFW+LdBsTbngv/yUroGH0jleEX7MOgtxMbQ7PzKoMuajKyM8pYIiB194HnQzsQu0Gp/LvpulVHylsgK/TgG2p/YHrqXf6T3bJUBhfxFWUDPg95CbAytm/+ycasM9WOxWu0PnTniLWE2iLRi/4Z3bJXRvY76s0+Arl93I3aMNOHPBce2PdSkL7Kpnwe9l9gGutCPoFgkUtytXAGbex0vKCznSOs00o+ToLcQG0N/QErCrG6jrTIynVUDwo896vCzssPrNnAYtD+xPfR9fwmKeu/CVhm5OAn1STPkvhxBW1KXjeP60Y/DoJ2JXaAL/RCPy+PXc80L9d7OV294dVPbC/fb4EDoLcTG0IV+TCDrrIxMHIFg512BWj9OgvYk9oK+9SMoZG55q/JMiGS40/sLjacu28T3MVfd0Aha+u3QJXr+0Q//MBtHutaPQOzh3H0RBoZS5OJ/MjqJ9x2vQb7qgSuvX0StH0+FLptzrvTDh9gl0oV+iAbi2lAsqNmbK3yBAyLNdbRzW8Y6Btqf2B76A2IURE2zZY16KGfZlwqofJSL4feABka+xCNX+ekx0LuILaFr/Zit7s4ZA7y5Qg2sDr/t4zDodxCvQt/6occctDKGriMPzH85D9qN2BG61g/QwcLSVDSGl78C6LePY6A3EptBf0BKcjWWH/GqyJqoxKnMufEVBLJxAJwJ7U9sDH3fX0CxnIB4orMyuilTyRh6g+0bfDgQ2p/YHrrQD+jV6qb/SdRrMit8TRWwyEabxgFwJrQnsQt0rR+LR3VqFNiGHRBv73ge9EZiM+haPyicuRcVmIxzAMTMl9wfi3sGtBuxF3ShH92C29yJTteU+ohbRrZk3Qe9hdgY+tYPnOqanA+mTN33ZGKE06HQbsQu0LV+MF8+94rU5dK8B8/KyJaI+6D9ie2hC/3Q12QnSnYLn5p9P/6d0D7EltAh5wz/Hv8exON/LUjHOuz5CksAAAAASUVORK5CYII=";ColorPicker.prototype.crossImage="data:image/gif;base64,R0lGODlhDwAPAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAPAA8AAAIklB8Qx53b4otSUWcvyiz4/4AeQJbmKY4p1HHapBlwPL/uVRsFADs=";ColorPicker.prototype.arrowImage="data:image/gif;base64,R0lGODlhBwALAKECAAAAAP///6g8eKg8eCH5BAEKAAIALAAAAAAHAAsAAAITTIQYcLnsgGxvijrxqdQq6DRJAQA7";-var ColorDialog=function(a,b,f,e,g,d,h){function m(ba){return mxUtils.color2hex("#"+ba).substring(1).toUpperCase()}function p(){ea.src="none"==S.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ba){ba||"none"==S.style.display?(S.style.display="flex",N.focus()):S.style.display="none";p()}function v(ba){""==ba.value&&null!=Q&&W?ba.style.background=ba==N?Q.dark:Q.light:""==ba.value||ba.value==mxConstants.NONE||mxUtils.isVarColor(ba.value)?ba.style.background="transparent":ba.style.background=-"#"+ba.value;ba.style.color="transparent"==ba.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(ba.style.background)?"#ffffff":"#000000"}function w(){v(X);v(N)}function y(ba){ba?h&&null!=Q?(X.value=Q.light.substring(1).toUpperCase(),ba=!1):(X.value="",N.value="",ca.value="automatic",X.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),N.setAttribute("title",mxResources.get("useBlackAndWhite")),X.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==X.value&&+var ColorDialog=function(a,b,f,e,g,d,h){function m(ba){return mxUtils.color2hex("#"+ba).substring(1).toUpperCase()}function p(){ea.src="none"==S.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ba){ba||"none"==S.style.display?(S.style.display="flex",N.focus()):S.style.display="none";p()}function u(ba){""==ba.value&&null!=Q&&W?ba.style.background=ba==N?Q.dark:Q.light:""==ba.value||ba.value==mxConstants.NONE||mxUtils.isVarColor(ba.value)?ba.style.background="transparent":ba.style.background=+"#"+ba.value;ba.style.color="transparent"==ba.style.background?"light-dark(#000000, #ffffff)":mxUtils.isDarkColor(ba.style.background)?"#ffffff":"#000000"}function w(){u(X);u(N)}function y(ba){ba?h&&null!=Q?(X.value=Q.light.substring(1).toUpperCase(),ba=!1):(X.value="",N.value="",ca.value="automatic",X.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),N.setAttribute("title",mxResources.get("useBlackAndWhite")),X.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==X.value&&null!=Q&&(X.value=Q.light.substring(1).toUpperCase()),X.removeAttribute("placeholder"),X.removeAttribute("title"),""==N.value&&null!=Q&&(N.value=Q.dark.substring(1).toUpperCase()),N.removeAttribute("placeholder"),N.removeAttribute("title"),ba=!1);W=ba}function C(ba){"#"==ba.value.charAt(0)&&(ba.value=ba.value.substring(1));var ma=ba.value,Ja=ma.toLowerCase();null==g||""!=ma&&"automatic"!=Ja&&"default"!=Ja&&Ja!=mxResources.get("default").toLowerCase()&&Ja!=mxResources.get("automatic").toLowerCase()||null==Q?(ba.value==mxConstants.NONE||mxUtils.isVarColor(ba.value)||(ba.value=m(ba.value),ha.fromString("#"+ba.value)),y(!1),ba!=N||X.value==mxConstants.NONE&&N.value==mxConstants.NONE||(ca.value="custom"),ba==X&&"automatic"==ca.value&&(X.value==mxConstants.NONE?N.value=mxConstants.NONE:mxUtils.isVarColor(X.value)?N.value=X.value:N.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+ba.value)).substring(1).toUpperCase()),w()):V.click()}function D(){var ba=X.value,ma=N.value;if(W&&null!=Q||(/(^#?[a-zA-Z0-9]*$)/.test(ba)||mxUtils.isVarColor(ba))&&(/(^#?[a-zA-Z0-9]*$)/.test(ma)||mxUtils.isVarColor(ma))){if(W)ba="default";else if(""==ba&&(ba=mxConstants.NONE),""==ma&&(ma=mxConstants.NONE),ba==mxConstants.NONE||mxUtils.isVarColor(ba)||"#"==ba.charAt(0)||(ba="#"+m(ba)),ma==mxConstants.NONE||mxUtils.isVarColor(ma)||"#"==ma.charAt(0)||(ma="#"+m(ma)),ba!=mxConstants.NONE&&ma!=mxConstants.NONE||ColorDialog.addRecentColor(mxConstants.NONE,12),"automatic"!=ca.value&&ma!=mxConstants.NONE?ba==mxConstants.NONE?ColorDialog.addRecentColor(ma.substring(1),12):ColorDialog.addRecentColor("light-dark("+ba+","+ma+")",12):ba!=mxConstants.NONE&&ColorDialog.addRecentColor(ba.substring(1),12),"none"!=ba||"none"!=ma)ba=ba==mxConstants.NONE?"transparent":ba,ma=ma==mxConstants.NONE?"transparent":ma,h||"automatic"==ca.value||(ba="light-dark("+ba+","+ma+")");Y(ba);a.hideDialog()}else a.handleError({message:mxResources.get("invalidInput")})}function E(){mxClient.IS_TOUCH||window.setTimeout(function(){ia.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?-ia.select():document.execCommand("selectAll",!1,null)},0)}function G(){ia.value!=mxConstants.NONE&&""!=ia.value&&ha.fromString("#"+ia.value,!0)}function J(){var ba=aa(0==ColorDialog.recentColors.length?["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);ba.style.marginBottom="8px";return ba}function M(ba){13==ba.keyCode&&(C(mxEvent.getSource(ba)),D())}var Q=null!=d?mxUtils.getLightDarkColor(d,null,null,h):null,L=a.editor.graph;this.editorUi=a;var W=!1;"default"==b||"transparent"==b||b==mxConstants.NONE||+ia.select():document.execCommand("selectAll",!1,null)},0)}function G(){ia.value!=mxConstants.NONE&&""!=ia.value&&ha.fromString("#"+ia.value,!0)}function J(){var ba=aa(0==ColorDialog.recentColors.length?["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);ba.style.marginBottom="8px";return ba}function M(ba){13==ba.keyCode&&(C(mxEvent.getSource(ba)),D())}var Q=null!=d?mxUtils.getLightDarkColor(d,null,null,h):null,K=a.editor.graph;this.editorUi=a;var W=!1;"default"==b||"transparent"==b||b==mxConstants.NONE||mxUtils.isVarColor(b)||mxUtils.isHexColor(b)||mxUtils.isRgbColor(b)||mxUtils.isLightDarkColor(b)||(b=mxUtils.color2hex(b));var X=document.createElement("input");X.style.textOverflow="ellipsis";X.style.margin="0 0 0 4px";X.style.width="100%";d=document.createElement("div");d.style.padding="0 4px";var T=document.createElement("div");T.style.display="flex";T.style.alignItems="center";d.appendChild(T);var N=document.createElement("input");N.style.textOverflow="ellipsis";N.style.margin="0 4px";N.style.maxWidth="60px";N.style.width="100%";var ca=document.createElement("select");ca.style.textOverflow="ellipsis";ca.style.width="100%";var H=document.createElement("option");H.setAttribute("value","automatic");mxUtils.write(H,mxResources.get("automatic"));ca.appendChild(H);H=document.createElement("option");H.setAttribute("value","custom");mxUtils.write(H,mxResources.get("userDefined"));ca.appendChild(H);ca.value=mxUtils.isLightDarkColor(b)?"custom":"automatic";var S=document.createElement("div");S.style.padding="0 6px 0 6px";H=document.createElement("img");H.setAttribute("title",mxResources.get("dark"));H.className="geAdaptiveAsset";H.src=Editor.thinDarkImage;H.style.width="20px";S.appendChild(H);mxEvent.addListener(H,"click",function(){N.focus()});S.appendChild(N);S.appendChild(ca);S.style.display="flex";S.style.alignItems="center";H=document.createElement("div");H.style.display="flex";H.style.alignItems="center";H.style.userSelect="none";H.style.cursor="pointer";H.style.padding="2px 0 2px 0";var ea=document.createElement("img");ea.setAttribute("title",mxResources.get("dark"));ea.className="geAdaptiveAsset";ea.style.marginLeft="-2px";H.appendChild(ea);mxUtils.write(H,mxResources.get("advanced"));var la=document.createElement("img");la.setAttribute("title",mxResources.get("swap"));la.className="geAdaptiveAsset";la.style.marginLeft="4px";la.style.width="16px";la.style.height="16px";la.style.cursor="pointer";la.src=Editor.swapImage;mxEvent.addListener(la,"click",function(ba){k(!0);ca.value="custom";var ma=X.value;X.value=N.value;N.value=ma;w();mxEvent.consume(ba)});H.appendChild(la);var O=document.createElement("img");O.setAttribute("title",mxResources.get("copy"));O.className="geAdaptiveAsset";O.style.marginLeft="4px";O.style.width="16px";O.style.height="16px";O.style.cursor="pointer";O.src=Editor.doubleArrowUpImage;mxEvent.addListener(O,"click",function(ba){ia==N?X.value=N.value:N.value=X.value;k(!0);ca.value="custom";w();mxEvent.consume(ba)});H.appendChild(O);p();mxEvent.addListener(H,"click",function(){k();p();ColorDialog.collapsed="none"==S.style.display});var V=mxUtils.button("",function(){y(!0);w();ia.focus();""==ia.value&&null!=Q&&W&&ha.fromString(ia==N?Q.dark:Q.light,!0)});mxEvent.addListener(ca,"change",function(){"automatic"==ca.value?(X.focus(),C(X)):(y(!1),mxUtils.isVarColor(N.value)||(N.value=W&&null!=Q?Q.dark.substring(1).toUpperCase():N.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+X.value)).substring(1).toUpperCase()),N.focus(),E());w()});mxEvent.addListener(X,"change",function(){C(X)});mxEvent.addListener(N,-"change",function(){C(N)});var Y=null!=f?f:this.createApplyFunction();this.init=function(){E()};var ha=new ColorPicker,ia=Editor.isDarkMode()&&("auto"==L.getAdaptiveColors()||"simple"==L.getAdaptiveColors()&&"custom"==ca.value)&&!h?N:X;mxEvent.addListener(X,"focus",function(){ia=X;G();O.src=Editor.doubleArrowDownImage});mxEvent.addListener(N,"focus",function(){ia=N;G();O.src=Editor.doubleArrowUpImage});ha.addListener("change",function(ba,ma){ba=ma.getProperty("color").substring(1).toUpperCase();ia.value.toUpperCase()!=+"change",function(){C(N)});var Y=null!=f?f:this.createApplyFunction();this.init=function(){E()};var ha=new ColorPicker,ia=Editor.isDarkMode()&&("auto"==K.getAdaptiveColors()||"simple"==K.getAdaptiveColors()&&"custom"==ca.value)&&!h?N:X;mxEvent.addListener(X,"focus",function(){ia=X;G();O.src=Editor.doubleArrowDownImage});mxEvent.addListener(N,"focus",function(){ia=N;G();O.src=Editor.doubleArrowUpImage});ha.addListener("change",function(ba,ma){ba=ma.getProperty("color").substring(1).toUpperCase();ia.value.toUpperCase()!=ba&&(ia.value=ba,C(ia),window.setTimeout(function(){ia.focus()},0))});f=document.createElement("div");f.appendChild(ha.div);var ta=document.createElement("div");ta.style.display="flex";ta.style.flexFlow="row wrap";ta.style.justifyContent="center";ta.style.paddingTop="10px";var aa=mxUtils.bind(this,function(ba,ma,Ja,na){ma=null!=ma?ma:12;var ya=document.createElement("table");ya.style.borderCollapse="collapse";ya.setAttribute("cellspacing","0");ya.style.marginBottom="20px";ya.style.cellSpacing="0px";ya.style.marginLeft="1px";var za=document.createElement("tbody");ya.appendChild(za);for(var Ka=ba.length/ma,Qa=0;Qa<Ka;Qa++){for(var Ia=document.createElement("tr"),Ha=0;Ha<ma;Ha++)mxUtils.bind(this,function(ra){var Da=document.createElement("td");Da.style.border="0px solid black";Da.style.padding="0px";Da.style.width="16px";Da.style.height="16px";null==ra&&(ra=Ja);if(null!=ra){Da.style.borderWidth="1px";if(ra==mxConstants.NONE||null==ra)Da.style.background="url('"+Dialog.prototype.noColorImage+"')";else if(mxUtils.isLightDarkColor(ra)){var Va=mxUtils.getLightDarkColor(ra);Da.style.background="linear-gradient(to right bottom, "+Va.cssText+" 50%, "+mxUtils.invertLightDarkColor(Va).cssText+" 50.3%)"}else Da.style.backgroundColor="#"+ra;Va=this.colorNames[String(ra).toUpperCase()];null!=Va&&Da.setAttribute("title",Va)}Ia.appendChild(Da);null!=ra&&(Da.style.cursor="pointer",mxEvent.addListener(Da,"click",function(){if(ra==mxConstants.NONE){ia==N&&N.value==mxConstants.NONE?X.value=mxConstants.NONE:ia.value=mxConstants.NONE;if(ia==X||ia==N&&X.value==mxConstants.NONE)ca.value="automatic";C(ia);window.setTimeout(function(){ia.focus()},0)}else if(mxUtils.isLightDarkColor(ra)){k(!0);ca.value="custom";var Wa=mxUtils.getLightDarkColor(ra);X.value=Wa.light.substring(1).toUpperCase();N.value=Wa.dark.substring(1).toUpperCase();C(X);C(N);ia==X?ha.fromString(Wa.light):ha.fromString(Wa.dark)}else ha.fromString("#"+ra)}),mxEvent.addListener(Da,"dblclick",D))})(ba[Qa*ma+Ha]);za.appendChild(Ia)}na&&(ba=document.createElement("td"),ba.setAttribute("title",mxResources.get("reset")),ba.className="geAdaptiveAsset",ba.style.border="1px solid black",ba.style.padding="0px",ba.style.width="16px",ba.style.height="16px",ba.style.backgroundImage="url('"+Editor.crossImage+"')",ba.style.backgroundPosition="center center",ba.style.backgroundSize="14px 14px",ba.style.backgroundRepeat="no-repeat",ba.style.cursor="pointer",Ia.appendChild(ba),mxEvent.addListener(ba,"click",function(){ColorDialog.resetRecentColors();ya.parentNode.replaceChild(J(),-ya)}));ta.appendChild(ya);return ya});h||(d.appendChild(H),!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==L.getAdaptiveColors()||"automatic"!=ca.value||(S.style.display="none",p()),H=document.createElement("img"),H.setAttribute("title",mxResources.get("light")),H.className="geAdaptiveAsset",H.src=Editor.thinLightImage,H.style.width="20px",T.appendChild(H),mxEvent.addListener(H,"click",function(){X.focus()}));T.appendChild(X);null!=Q&&(V.setAttribute("title",mxResources.get(h?"default":"useBlackAndWhite")),-V.style.cursor="pointer",V.style.position="relative",V.style.marginLeft="4px",V.innerText="",L=document.createElement("div"),L.style.display="inline-block",L.style.verticalAlign="middle",L.style.borderStyle="solid",L.style.borderWidth="1px",L.style.marginTop="-2px",L.style.width="12px",L.style.height="12px",h?L.style.backgroundColor=Q.light:L.style.backgroundImage="linear-gradient(to right bottom, "+Q.cssText+" 50%, "+mxUtils.invertLightDarkColor(Q).cssText+" 50.3%)",V.appendChild(L),T.appendChild(V),-mxEvent.addListener(V,"dblclick",D));var P=document.createElement("input");P.setAttribute("type","color");P.style.position="relative";P.style.visibility="hidden";P.style.top="10px";P.style.width="0px";P.style.height="0px";P.style.border="none";f.style.whiteSpace="nowrap";T.appendChild(P);L=mxUtils.button("",function(){document.activeElement==P?X.focus():(P.value="#"+X.value,P.click())});L.style.cursor="pointer";H=document.createElement("img");H.src=Editor.colorDropperImage;H.className="geAdaptiveAsset";-H.style.position="relative";H.style.verticalAlign="middle";H.style.marginTop="-2px";H.style.width="auto";H.style.height="14px";L.appendChild(H);T.appendChild(L);f.appendChild(d);mxEvent.addListener(P,"change",function(){ha.fromString(P.value)});h||f.appendChild(S);J();d=aa(this.presetColors);d.style.marginBottom="8px";d=aa(this.defaultColors);d.style.marginBottom="16px";f.appendChild(ta);d=document.createElement("div");d.style.display="flex";d.style.whiteSpace="nowrap";d.style.alignItems="center";-d.style.justifyContent="end";a.isOffline()||d.appendChild(a.createHelpIcon("https://github.com/jgraph/drawio/discussions/4713"));T=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=e&&e()});T.className="geBtn";a.editor.cancelFirst&&d.appendChild(T);L=mxUtils.button(mxResources.get("apply"),D);L.className="geBtn gePrimaryBtn";d.appendChild(L);a.editor.cancelFirst||d.appendChild(T);null!=b&&("default"==b?V.click():(T=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==+ya)}));ta.appendChild(ya);return ya});h||(d.appendChild(H),!ColorDialog.collapsed||Editor.isDarkMode()&&"auto"==K.getAdaptiveColors()||"automatic"!=ca.value||(S.style.display="none",p()),H=document.createElement("img"),H.setAttribute("title",mxResources.get("light")),H.className="geAdaptiveAsset",H.src=Editor.thinLightImage,H.style.width="20px",T.appendChild(H),mxEvent.addListener(H,"click",function(){X.focus()}));T.appendChild(X);null!=Q&&(V.setAttribute("title",mxResources.get(h?"default":"useBlackAndWhite")),+V.style.cursor="pointer",V.style.position="relative",V.style.marginLeft="4px",V.innerText="",K=document.createElement("div"),K.style.display="inline-block",K.style.verticalAlign="middle",K.style.borderStyle="solid",K.style.borderWidth="1px",K.style.marginTop="-2px",K.style.width="12px",K.style.height="12px",h?K.style.backgroundColor=Q.light:K.style.backgroundImage="linear-gradient(to right bottom, "+Q.cssText+" 50%, "+mxUtils.invertLightDarkColor(Q).cssText+" 50.3%)",V.appendChild(K),T.appendChild(V),+mxEvent.addListener(V,"dblclick",D));var P=document.createElement("input");P.setAttribute("type","color");P.style.position="relative";P.style.visibility="hidden";P.style.top="10px";P.style.width="0px";P.style.height="0px";P.style.border="none";f.style.whiteSpace="nowrap";T.appendChild(P);K=mxUtils.button("",function(){document.activeElement==P?X.focus():(P.value="#"+X.value,P.click())});K.style.cursor="pointer";H=document.createElement("img");H.src=Editor.colorDropperImage;H.className="geAdaptiveAsset";+H.style.position="relative";H.style.verticalAlign="middle";H.style.marginTop="-2px";H.style.width="auto";H.style.height="14px";K.appendChild(H);T.appendChild(K);f.appendChild(d);mxEvent.addListener(P,"change",function(){ha.fromString(P.value)});h||f.appendChild(S);J();d=aa(this.presetColors);d.style.marginBottom="8px";d=aa(this.defaultColors);d.style.marginBottom="16px";f.appendChild(ta);d=document.createElement("div");d.style.display="flex";d.style.whiteSpace="nowrap";d.style.alignItems="center";+d.style.justifyContent="end";a.isOffline()||d.appendChild(a.createHelpIcon("https://github.com/jgraph/drawio/discussions/4713"));T=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=e&&e()});T.className="geBtn";a.editor.cancelFirst&&d.appendChild(T);K=mxUtils.button(mxResources.get("apply"),D);K.className="geBtn gePrimaryBtn";d.appendChild(K);a.editor.cancelFirst||d.appendChild(T);null!=b&&("default"==b?V.click():(T=mxUtils.getLightDarkColor(b),b==mxConstants.NONE||"transparent"==T.light?X.value=mxConstants.NONE:mxUtils.isVarColor(T.light)?X.value=T.light:(mxUtils.isRgbColor(T.light)?T.light=mxUtils.rgba2hex(T.light):mxUtils.isHexColor(T.light)||(T.light="#"+m(T.light)),X.value=T.light.substring(1).toUpperCase()),b==mxConstants.NONE||"transparent"==T.dark?N.value=mxConstants.NONE:mxUtils.isVarColor(T.dark)?N.value=T.dark:(mxUtils.isRgbColor(T.dark)?T.dark=mxUtils.rgba2hex(T.dark):mxUtils.isHexColor(T.dark)||(T.dark="#"+m(T.dark)),N.value=T.dark.substring(1).toUpperCase()),G(),w()));h||!ColorDialog.collapsed||"automatic"!=ca.value||Editor.isDarkMode()||(S.style.display="none",p());f.appendChild(d);this.picker=ha;this.colorInput=X;mxEvent.addListener(X,"keypress",M);mxEvent.addListener(N,"keypress",M);mxEvent.addListener(f,"keydown",function(ba){27==ba.keyCode&&(a.hideDialog(),null!=e&&e(),mxEvent.consume(ba))});this.container=f};ColorDialog.prototype.presetColors="E6D0DE CDA2BE B5739D E1D5E7 C3ABD0 A680B8 D4E1F5 A9C4EB 7EA6E0 D5E8D4 9AC7BF 67AB9F D5E8D4 B9E0A5 97D077 FFF2CC FFE599 FFD966 FFF4C3 FFCE9F FFB570 F8CECC F19C99 EA6B66".split(" ");ColorDialog.prototype.colorNames={};ColorDialog.prototype.defaultColors="none FFFFFF E6E6E6 CCCCCC B3B3B3 999999 808080 666666 4D4D4D 333333 1A1A1A 000000 FFCCCC FFE6CC FFFFCC E6FFCC CCFFCC CCFFE6 CCFFFF CCE5FF CCCCFF E5CCFF FFCCFF FFCCE6 FF9999 FFCC99 FFFF99 CCFF99 99FF99 99FFCC 99FFFF 99CCFF 9999FF CC99FF FF99FF FF99CC FF6666 FFB366 FFFF66 B3FF66 66FF66 66FFB3 66FFFF 66B2FF 6666FF B266FF FF66FF FF66B3 FF3333 FF9933 FFFF33 99FF33 33FF33 33FF99 33FFFF 3399FF 3333FF 9933FF FF33FF FF3399 FF0000 FF8000 FFFF00 80FF00 00FF00 00FF80 00FFFF 007FFF 0000FF 7F00FF FF00FF FF0080 CC0000 CC6600 CCCC00 66CC00 00CC00 00CC66 00CCCC 0066CC 0000CC 6600CC CC00CC CC0066 990000 994C00 999900 4D9900 009900 00994D 009999 004C99 000099 4C0099 990099 99004D 660000 663300 666600 336600 006600 006633 006666 003366 000066 330066 660066 660033 330000 331A00 333300 1A3300 003300 00331A 003333 001933 000033 190033 330033 33001A".split(" ");@@ -3779,20 +3780,20 @@ ColorDialog.addRecentColor=function(a,b){null!=a&&(mxUtils.remove(a,ColorDialog.var AboutDialog=function(a){var b=document.createElement("div");b.setAttribute("align","center");var f=document.createElement("h3");mxUtils.write(f,mxResources.get("about")+" GraphEditor");b.appendChild(f);f=document.createElement("img");f.style.border="0px";f.setAttribute("width","176");f.setAttribute("width","151");f.setAttribute("src",IMAGE_PATH+"/logo.png");b.appendChild(f);mxUtils.br(b);mxUtils.write(b,"Powered by mxGraph "+mxClient.VERSION);mxUtils.br(b);f=document.createElement("a");f.setAttribute("href","http://www.jgraph.com/");f.setAttribute("target","_blank");mxUtils.write(f,"www.jgraph.com");b.appendChild(f);mxUtils.br(b);mxUtils.br(b);f=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});f.className="geBtn gePrimaryBtn";b.appendChild(f);this.container=b},SimpleTextareaDialog=function(a,b,f){var e=document.createElement("div"),g=document.createElement("textarea");g.style.position="absolute";g.style.left="30px";g.style.right="30px";g.style.top="30px";g.style.bottom="100px";g.style.resize="none";g.setAttribute("wrap","off");g.setAttribute("spellcheck","false");g.setAttribute("autocorrect","off");g.setAttribute("autocomplete","off");g.setAttribute("autocapitalize","off");g.value=null!=b?b:"";e.appendChild(g);b=document.createElement("div");b.style.position="absolute";b.style.bottom="46px";b.style.right="30px";b.style.left="30px";b.style.justifyContent="end";b.style.display="flex";var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});d.setAttribute("title","Escape");-d.className="geBtn";a.editor.cancelFirst&&b.appendChild(d);var h=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();f(g.value)});h.setAttribute("title","Ctrl+Enter");h.className="geBtn gePrimaryBtn";b.appendChild(h);mxEvent.addListener(g,"keydown",function(m){13==m.keyCode&&mxEvent.isControlDown(m)&&h.click()});a.editor.cancelFirst||b.appendChild(d);this.init=function(){g.focus();g.scrollTop=0};e.appendChild(b);this.container=e},TextareaDialog=function(a,b,f,e,g,d,h,m,p,k,v,w,y,C,D){k=+d.className="geBtn";a.editor.cancelFirst&&b.appendChild(d);var h=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();f(g.value)});h.setAttribute("title","Ctrl+Enter");h.className="geBtn gePrimaryBtn";b.appendChild(h);mxEvent.addListener(g,"keydown",function(m){13==m.keyCode&&mxEvent.isControlDown(m)&&h.click()});a.editor.cancelFirst||b.appendChild(d);this.init=function(){g.focus();g.scrollTop=0};e.appendChild(b);this.container=e},TextareaDialog=function(a,b,f,e,g,d,h,m,p,k,u,w,y,C,D){k=null!=k?k:!1;h=document.createElement("div");h.style.position="absolute";h.style.top="20px";h.style.bottom="20px";h.style.left="20px";h.style.right="20px";m=document.createElement("div");m.style.position="absolute";m.style.left="0px";m.style.right="0px";var E=m.cloneNode(!1),G=m.cloneNode(!1);m.style.top="0px";m.style.height="20px";E.style.top="20px";E.style.bottom="64px";G.style.display="flex";G.style.whiteSpace="nowrap";G.style.alignItems="center";G.style.justifyContent="end";G.style.bottom="0px";-G.style.height="60px";G.style.textAlign="right";G.style.paddingTop="14px";G.style.boxSizing="border-box";mxUtils.write(m,b);h.appendChild(m);h.appendChild(E);h.appendChild(G);null!=D&&m.appendChild(D);var J=document.createElement("textarea");v?J.setAttribute("wrap","off"):J.style.wordBreak="break-all";J.setAttribute("spellcheck","false");J.setAttribute("autocorrect","off");J.setAttribute("autocomplete","off");J.setAttribute("autocapitalize","off");mxUtils.write(J,f||"");J.style.resize="none";J.style.outline=-"none";J.style.position="absolute";J.style.boxSizing="border-box";J.style.top="0px";J.style.left="0px";J.style.height="100%";J.style.width="100%";this.textarea=J;this.init=function(){J.focus();J.scrollTop=0};E.appendChild(J);null==y||a.isOffline()||G.appendChild(a.createHelpIcon(y));if(null!=C)for(b=0;b<C.length;b++)(function(Q,L,W){Q=mxUtils.button(Q,function(X){L(X,J)});null!=W&&Q.setAttribute("title",W);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),+G.style.height="60px";G.style.textAlign="right";G.style.paddingTop="14px";G.style.boxSizing="border-box";mxUtils.write(m,b);h.appendChild(m);h.appendChild(E);h.appendChild(G);null!=D&&m.appendChild(D);var J=document.createElement("textarea");u?J.setAttribute("wrap","off"):J.style.wordBreak="break-all";J.setAttribute("spellcheck","false");J.setAttribute("autocorrect","off");J.setAttribute("autocomplete","off");J.setAttribute("autocapitalize","off");mxUtils.write(J,f||"");J.style.resize="none";J.style.outline=+"none";J.style.position="absolute";J.style.boxSizing="border-box";J.style.top="0px";J.style.left="0px";J.style.height="100%";J.style.width="100%";this.textarea=J;this.init=function(){J.focus();J.scrollTop=0};E.appendChild(J);null==y||a.isOffline()||G.appendChild(a.createHelpIcon(y));if(null!=C)for(b=0;b<C.length;b++)(function(Q,K,W){Q=mxUtils.button(Q,function(X){K(X,J)});null!=W&&Q.setAttribute("title",W);Q.className="geBtn";G.appendChild(Q)})(C[b][0],C[b][1],C[b][2]);d=mxUtils.button(d||mxResources.get("cancel"),function(){a.hideDialog();null!=g&&g()});d.setAttribute("title","Escape");d.className="geBtn";a.editor.cancelFirst&&G.appendChild(d);null!=p&&p(G,J);if(null!=e){var M=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();e(J.value)});M.setAttribute("title","Ctrl+Enter");M.className="geBtn gePrimaryBtn";G.appendChild(M);mxEvent.addListener(J,"keydown",function(Q){13==Q.keyCode&&mxEvent.isControlDown(Q)&&M.click()})}a.editor.cancelFirst||G.appendChild(d);this.container=h},EditDiagramDialog=function(a){var b=document.createElement("div");b.style.textAlign="right";var f=document.createElement("textarea");f.setAttribute("wrap","off");f.setAttribute("spellcheck","false");f.setAttribute("autocorrect","off");f.setAttribute("autocomplete","off");f.setAttribute("autocapitalize","off");f.style.overflow="auto";f.style.resize="none";f.style.width="600px";f.style.height="360px";f.style.marginBottom="16px";var e=a.getDiagramSnapshot();f.value=mxUtils.getPrettyXml(e.node);b.appendChild(f);this.init=function(){f.focus()};Graph.fileSupport&&(f.addEventListener("dragover",function(m){m.stopPropagation();m.preventDefault()},!1),f.addEventListener("drop",function(m){m.stopPropagation();m.preventDefault();if(0<m.dataTransfer.files.length){m=m.dataTransfer.files[0];var p=new FileReader;p.onload=function(k){f.value=k.target.result};p.readAsText(m)}else f.value=a.extractGraphModelFromEvent(m)},!1));var g=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});g.className="geBtn";a.editor.cancelFirst&&b.appendChild(g);var d=document.createElement("select");d.style.textOverflow="ellipsis";d.style.width="196px";d.className="geBtn";if(a.editor.graph.isEnabled()){var h=document.createElement("option");h.setAttribute("value","apply");mxUtils.write(h,mxResources.get("apply",null,"Update Existing Drawing"));d.appendChild(h)}a.editor.graph.isEnabled()&&(h=document.createElement("option"),h.setAttribute("value","insert"),mxUtils.write(h,mxResources.get("insert")),d.appendChild(h));h=document.createElement("option");-h.setAttribute("value","new");mxUtils.write(h,mxResources.get("openInNewWindow"));EditDiagramDialog.showNewWindowOption&&!navigator.standalone&&d.appendChild(h);b.appendChild(d);h=mxUtils.button(mxResources.get("ok"),function(){var m=Graph.zapGremlins(mxUtils.trim(f.value)),p=null;if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement,v=Editor.extractParserError(k,mxResources.get("unknownError"));v?(EditorUi.debug("EditDiagramDialogParserError",-[this],"node",[k],"cause",[v]),p=mxResources.get("invalidInput")+" ("+v+")"):("mxfile"==k.nodeName?a.editor.setGraphXml(k):a.updateDiagramData(e,k),a.hideDialog())}catch(D){p=D}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var w=mxUtils.parseXml(m),y=new mxGraphModel;(new mxCodec(w)).decode(w.documentElement,y);var C=y.getChildren(y.getChildAt(y.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(C));a.hideDialog()}catch(D){p=D}finally{a.editor.graph.model.endUpdate()}}null!=+h.setAttribute("value","new");mxUtils.write(h,mxResources.get("openInNewWindow"));EditDiagramDialog.showNewWindowOption&&!navigator.standalone&&d.appendChild(h);b.appendChild(d);h=mxUtils.button(mxResources.get("ok"),function(){var m=Graph.zapGremlins(mxUtils.trim(f.value)),p=null;if("new"==d.value)a.hideDialog(),a.editor.editAsNew(m);else if("apply"==d.value)try{var k=mxUtils.parseXml(m).documentElement,u=Editor.extractParserError(k,mxResources.get("unknownError"));u?(EditorUi.debug("EditDiagramDialogParserError",+[this],"node",[k],"cause",[u]),p=mxResources.get("invalidInput")+" ("+u+")"):("mxfile"==k.nodeName?a.editor.setGraphXml(k):a.updateDiagramData(e,k),a.hideDialog())}catch(D){p=D}else if("insert"==d.value){a.editor.graph.model.beginUpdate();try{var w=mxUtils.parseXml(m),y=new mxGraphModel;(new mxCodec(w)).decode(w.documentElement,y);var C=y.getChildren(y.getChildAt(y.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(C));a.hideDialog()}catch(D){p=D}finally{a.editor.graph.model.endUpdate()}}null!=p&&a.handleError(p)});h.className="geBtn gePrimaryBtn";b.appendChild(h);a.editor.cancelFirst||b.appendChild(g);this.container=b};EditDiagramDialog.showNewWindowOption=!0;-var ExportDialog=function(a){function b(){var T=v.value,N=T.lastIndexOf(".");v.value=0<N?T.substring(0,N+1)+w.value:T+"."+w.value;"xml"===w.value?(y.setAttribute("disabled","true"),C.setAttribute("disabled","true"),D.setAttribute("disabled","true"),L.setAttribute("disabled","true")):(y.removeAttribute("disabled"),C.removeAttribute("disabled"),D.removeAttribute("disabled"),L.removeAttribute("disabled"));"png"===w.value||"svg"===w.value||"pdf"===w.value?M.removeAttribute("disabled"):M.setAttribute("disabled",+var ExportDialog=function(a){function b(){var T=u.value,N=T.lastIndexOf(".");u.value=0<N?T.substring(0,N+1)+w.value:T+"."+w.value;"xml"===w.value?(y.setAttribute("disabled","true"),C.setAttribute("disabled","true"),D.setAttribute("disabled","true"),K.setAttribute("disabled","true")):(y.removeAttribute("disabled"),C.removeAttribute("disabled"),D.removeAttribute("disabled"),K.removeAttribute("disabled"));"png"===w.value||"svg"===w.value||"pdf"===w.value?M.removeAttribute("disabled"):M.setAttribute("disabled","disabled");"png"===w.value||"jpg"===w.value||"pdf"===w.value?Q.removeAttribute("disabled"):Q.setAttribute("disabled","disabled");"png"===w.value?(E.removeAttribute("disabled"),G.removeAttribute("disabled")):(E.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"))}function f(){C.style.backgroundColor=C.value*D.value>MAX_AREA||0>=C.value?"red":"";D.style.backgroundColor=C.value*D.value>MAX_AREA||0>=D.value?"red":""}var e=a.editor.graph,g=e.getGraphBounds(),d=e.view.scale,h=Math.ceil(g.width/-d),m=Math.ceil(g.height/d);d=document.createElement("table");var p=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");g=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");g.appendChild(k);var v=document.createElement("input");v.setAttribute("value",a.editor.getOrCreateFilename());v.style.width="180px";k=document.createElement("td");k.appendChild(v);g.appendChild(k);+d),m=Math.ceil(g.height/d);d=document.createElement("table");var p=document.createElement("tbody");d.setAttribute("cellpadding",mxClient.IS_SF?"0":"2");g=document.createElement("tr");var k=document.createElement("td");k.style.fontSize="10pt";k.style.width="100px";mxUtils.write(k,mxResources.get("filename")+":");g.appendChild(k);var u=document.createElement("input");u.setAttribute("value",a.editor.getOrCreateFilename());u.style.width="180px";k=document.createElement("td");k.appendChild(u);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("format")+":");g.appendChild(k);var w=document.createElement("select");w.style.width="180px";k=document.createElement("option");k.setAttribute("value","png");mxUtils.write(k,mxResources.get("formatPng"));w.appendChild(k);k=document.createElement("option");ExportDialog.showGifOption&&(k.setAttribute("value","gif"),mxUtils.write(k,mxResources.get("formatGif")),w.appendChild(k));k=document.createElement("option");k.setAttribute("value","jpg");mxUtils.write(k,mxResources.get("formatJpg"));w.appendChild(k);k=document.createElement("option");k.setAttribute("value","svg");mxUtils.write(k,mxResources.get("formatSvg"));w.appendChild(k);ExportDialog.showXmlOption&&(k=document.createElement("option"),k.setAttribute("value","xml"),mxUtils.write(k,mxResources.get("formatXml")),w.appendChild(k));k=document.createElement("td");k.appendChild(w);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("zoom")+" (%):");g.appendChild(k);var y=document.createElement("input");y.setAttribute("type","number");y.setAttribute("value","100");y.style.width="180px";k=document.createElement("td");k.appendChild(y);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("width")+":");g.appendChild(k);var C=document.createElement("input");@@ -3801,36 +3802,36 @@ k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("dpi")+":");g.appendChilk.setAttribute("value","400");mxUtils.write(k,"400dpi");E.appendChild(k);k=document.createElement("option");k.setAttribute("value","custom");mxUtils.write(k,mxResources.get("custom"));E.appendChild(k);var G=document.createElement("input");G.style.width="180px";G.style.display="none";G.setAttribute("value","100");G.setAttribute("type","number");G.setAttribute("min","50");G.setAttribute("step","50");var J=!1;mxEvent.addListener(E,"change",function(){"custom"==this.value?(this.style.display="none",G.style.display="",G.focus()):(G.value=this.value,J||(y.value=this.value))});mxEvent.addListener(G,"change",function(){var T=parseInt(G.value);isNaN(T)||0>=T?G.style.backgroundColor="red":(G.style.backgroundColor="",J||(y.value=T))});k=document.createElement("td");k.appendChild(E);k.appendChild(G);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("background")+":");g.appendChild(k);var M=document.createElement("input");M.setAttribute("type","checkbox");M.checked=null==e.background||e.background==mxConstants.NONE;k=document.createElement("td");k.appendChild(M);mxUtils.write(k,mxResources.get("transparent"));g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("grid")+":");g.appendChild(k);var Q=document.createElement("input");Q.setAttribute("type","checkbox");Q.checked=!1;k=document.createElement("td");k.appendChild(Q);-g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");g.appendChild(k);var L=document.createElement("input");L.setAttribute("type","number");L.setAttribute("value",ExportDialog.lastBorderValue);L.style.width="180px";k=document.createElement("td");k.appendChild(L);g.appendChild(k);p.appendChild(g);d.appendChild(p);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(y,"change",+g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("borderWidth")+":");g.appendChild(k);var K=document.createElement("input");K.setAttribute("type","number");K.setAttribute("value",ExportDialog.lastBorderValue);K.style.width="180px";k=document.createElement("td");k.appendChild(K);g.appendChild(k);p.appendChild(g);d.appendChild(p);mxEvent.addListener(w,"change",b);b();mxEvent.addListener(y,"change",function(){J=!0;var T=Math.max(0,parseFloat(y.value)||100)/100;y.value=parseFloat((100*T).toFixed(2));0<h?(C.value=Math.floor(h*T),D.value=Math.floor(m*T)):(y.value="100",C.value=h,D.value=m);f()});mxEvent.addListener(C,"change",function(){var T=parseInt(C.value)/h;0<T?(y.value=parseFloat((100*T).toFixed(2)),D.value=Math.floor(m*T)):(y.value="100",C.value=h,D.value=m);f()});mxEvent.addListener(D,"change",function(){var T=parseInt(D.value)/m;0<T?(y.value=parseFloat((100*T).toFixed(2)),C.value=Math.floor(h*-T)):(y.value="100",C.value=h,D.value=m);f()});g=document.createElement("tr");k=document.createElement("td");k.setAttribute("align","right");k.style.paddingTop="22px";k.colSpan=2;var W=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(y.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var T=v.value,N=w.value,ca=Math.max(0,parseFloat(y.value)||100)/100,H=Math.max(0,parseInt(L.value)),S=e.background,ea=Math.max(1,parseInt(G.value));if(("svg"==N||"png"==N||+T)):(y.value="100",C.value=h,D.value=m);f()});g=document.createElement("tr");k=document.createElement("td");k.setAttribute("align","right");k.style.paddingTop="22px";k.colSpan=2;var W=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(y.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var T=u.value,N=w.value,ca=Math.max(0,parseFloat(y.value)||100)/100,H=Math.max(0,parseInt(K.value)),S=e.background,ea=Math.max(1,parseInt(G.value));if(("svg"==N||"png"==N||"pdf"==N)&&M.checked)S=null;else if(null==S||S==mxConstants.NONE)S="#ffffff";ExportDialog.lastBorderValue=H;ExportDialog.exportFile(a,T,N,S,ca,H,ea,Q.checked)}}));W.className="geBtn gePrimaryBtn";var X=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});X.className="geBtn";a.editor.cancelFirst?(k.appendChild(X),k.appendChild(W)):(k.appendChild(W),k.appendChild(X));g.appendChild(k);p.appendChild(g);d.appendChild(p);this.container=d};ExportDialog.lastBorderValue=0;ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0;-ExportDialog.exportFile=function(a,b,f,e,g,d,h,m){m=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(e,g,d)),b,f);else{var p=m.getGraphBounds(),k=mxUtils.createXmlDocument(),v=k.createElement("output");k.appendChild(v);k=new mxXmlCanvas2D(v);k.translate(Math.floor((d/g-p.x)/m.view.scale),Math.floor((d/g-p.y)/m.view.scale));k.scale(g/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),-k);v="xml="+encodeURIComponent(mxUtils.getXml(v));k=Math.ceil(p.width*g/m.view.scale+2*d);g=Math.ceil(p.height*g/m.view.scale+2*d);v.length<=MAX_REQUEST_SIZE&&k*g<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+f+"&filename="+encodeURIComponent(b)+"&bg="+(null!=e?e:"none")+"&w="+k+"&h="+g+"&"+v+"&dpi="+h)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};+ExportDialog.exportFile=function(a,b,f,e,g,d,h,m){m=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),b,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(m.getSvg(e,g,d)),b,f);else{var p=m.getGraphBounds(),k=mxUtils.createXmlDocument(),u=k.createElement("output");k.appendChild(u);k=new mxXmlCanvas2D(u);k.translate(Math.floor((d/g-p.x)/m.view.scale),Math.floor((d/g-p.y)/m.view.scale));k.scale(g/m.view.scale);(new mxImageExport).drawState(m.getView().getState(m.model.root),+k);u="xml="+encodeURIComponent(mxUtils.getXml(u));k=Math.ceil(p.width*g/m.view.scale+2*d);g=Math.ceil(p.height*g/m.view.scale+2*d);u.length<=MAX_REQUEST_SIZE&&k*g<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format="+f+"&filename="+encodeURIComponent(b)+"&bg="+(null!=e?e:"none")+"&w="+k+"&h="+g+"&"+u+"&dpi="+h)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}};ExportDialog.saveLocalFile=function(a,b,f,e){b.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml="+encodeURIComponent(b)+"&filename="+encodeURIComponent(f)+"&format="+e)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))};-var EditDataDialog=function(a,b){function f(){0<L.value.length?W.removeAttribute("disabled"):W.setAttribute("disabled","disabled")}var e=document.createElement("div"),g=a.editor.graph,d=g.getModel().getValue(b);if(!mxUtils.isNode(d)){var h=mxUtils.createXmlDocument().createElement("object");h.setAttribute("label",d||"");d=h}var m={};try{var p=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=p&&(m=JSON.parse(p))}catch(T){}var k=new mxForm("properties");k.table.style.width=-"100%";var v=d.attributes,w=[],y=[],C=0,D=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,E=function(T,N){var ca=document.createElement("div");ca.style.position="relative";ca.style.paddingRight="20px";ca.style.boxSizing="border-box";ca.style.width="100%";var H=document.createElement("a"),S=mxUtils.createImage(Dialog.prototype.closeImage);S.style.height="9px";S.style.fontSize="9px";S.style.marginBottom=mxClient.IS_IE11?"-1px":"5px";H.className="geButton";H.setAttribute("title",+var EditDataDialog=function(a,b){function f(){0<K.value.length?W.removeAttribute("disabled"):W.setAttribute("disabled","disabled")}var e=document.createElement("div"),g=a.editor.graph,d=g.getModel().getValue(b);if(!mxUtils.isNode(d)){var h=mxUtils.createXmlDocument().createElement("object");h.setAttribute("label",d||"");d=h}var m={};try{var p=mxUtils.getValue(a.editor.graph.getCurrentCellStyle(b),"metaData",null);null!=p&&(m=JSON.parse(p))}catch(T){}var k=new mxForm("properties");k.table.style.width=+"100%";var u=d.attributes,w=[],y=[],C=0,D=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,E=function(T,N){var ca=document.createElement("div");ca.style.position="relative";ca.style.paddingRight="20px";ca.style.boxSizing="border-box";ca.style.width="100%";var H=document.createElement("a"),S=mxUtils.createImage(Dialog.prototype.closeImage);S.style.height="9px";S.style.fontSize="9px";S.style.marginBottom=mxClient.IS_IE11?"-1px":"5px";H.className="geButton";H.setAttribute("title",mxResources.get("delete"));H.style.position="absolute";H.style.top="4px";H.style.right="0px";H.style.margin="0px";H.style.width="9px";H.style.height="9px";H.style.cursor="pointer";H.appendChild(S);N=function(ea){return function(){for(var la=0,O=0;O<w.length;O++){if(w[O]==ea){y[O]=null;k.table.deleteRow(la+(null!=D?1:0));break}null!=y[O]&&la++}}}(N);mxEvent.addListener(H,"click",N);N=T.parentNode;ca.appendChild(T);ca.appendChild(H);N.appendChild(ca)};h=function(T,N,ca){w[T]=N;y[T]=k.addTextarea(w[C]+-":",ca,2);y[T].style.width="100%";0<ca.indexOf("\n")&&y[T].setAttribute("rows","2");E(y[T],N);null!=m[N]&&0==m[N].editable&&y[T].setAttribute("disabled","disabled")};p=[];for(var G=g.getModel().getParent(b)==g.getModel().getRoot(),J=g.getCellStyle(b),M=0;M<v.length;M++)("label"!=v[M].nodeName||"1"==J.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=v[M].nodeName&&p.push({name:v[M].nodeName,value:v[M].nodeValue});p.sort(function(T,N){return"label"==T.name?1:"label"==N.name?-1:T.name<N.name?-1:-T.name>N.name?1:0});if(null!=D){v=document.createElement("div");v.style.width="100%";v.style.fontSize="11px";v.style.textAlign="center";mxUtils.write(v,D);var Q=k.addField(mxResources.get("id")+":",v);mxEvent.addListener(v,"dblclick",function(T){T=new FilenameDialog(a,D,mxResources.get("apply"),mxUtils.bind(this,function(N){if(null!=N&&0<N.length&&N!=D)if(g.model.isRoot(b)){var ca=a.getPageById(D);if(null!=ca)if(null==a.getPageById(N)){var H=a.getPageIndex(ca);0<=H&&(a.removePage(ca),ca.node.setAttribute("id",+":",ca,2);y[T].style.width="100%";0<ca.indexOf("\n")&&y[T].setAttribute("rows","2");E(y[T],N);null!=m[N]&&0==m[N].editable&&y[T].setAttribute("disabled","disabled")};p=[];for(var G=g.getModel().getParent(b)==g.getModel().getRoot(),J=g.getCellStyle(b),M=0;M<u.length;M++)("label"!=u[M].nodeName||"1"==J.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[M].nodeName&&p.push({name:u[M].nodeName,value:u[M].nodeValue});p.sort(function(T,N){return"label"==T.name?1:"label"==N.name?-1:T.name<N.name?-1:+T.name>N.name?1:0});if(null!=D){u=document.createElement("div");u.style.width="100%";u.style.fontSize="11px";u.style.textAlign="center";mxUtils.write(u,D);var Q=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(T){T=new FilenameDialog(a,D,mxResources.get("apply"),mxUtils.bind(this,function(N){if(null!=N&&0<N.length&&N!=D)if(g.model.isRoot(b)){var ca=a.getPageById(D);if(null!=ca)if(null==a.getPageById(N)){var H=a.getPageIndex(ca);0<=H&&(a.removePage(ca),ca.node.setAttribute("id",N),D=N,Q.innerHTML=mxUtils.htmlEntities(N),a.insertPage(ca,H))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==g.getModel().getCell(N)?(g.getModel().cellRemoved(b),b.setId(N),D=N,Q.innerHTML=mxUtils.htmlEntities(N),g.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[N])})}),mxResources.get("id"));a.showDialog(T.container,300,80,!0,!0);T.init()})}for(M=0;M<p.length;M++)h(C,p[M].name,p[M].value),C++;p=document.createElement("div");-p.style.position="absolute";p.style.top="30px";p.style.left="30px";p.style.right="30px";p.style.bottom="80px";p.style.overflowY="auto";p.appendChild(k.table);h=document.createElement("div");h.style.display="flex";h.style.alignItems="center";h.style.boxSizing="border-box";h.style.paddingRight="160px";h.style.whiteSpace="nowrap";h.style.marginTop="6px";h.style.width="100%";var L=document.createElement("input");L.setAttribute("placeholder",mxResources.get("enterPropertyName"));L.setAttribute("type",-"text");L.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");L.style.boxSizing="border-box";L.style.borderWidth="1px";L.style.borderStyle="solid";L.style.marginLeft="2px";L.style.padding="4px";L.style.width="100%";h.appendChild(L);p.appendChild(h);e.appendChild(p);var W=mxUtils.button(mxResources.get("addProperty"),function(){var T=L.value;if(0<T.length&&"label"!=T&&"id"!=T&&"placeholders"!=T&&0>T.indexOf(":"))try{var N=mxUtils.indexOf(w,T);if(0<=N&&null!=y[N])y[N].focus();else{d.cloneNode(!1).setAttribute(T,-"");0<=N&&(w.splice(N,1),y.splice(N,1));w.push(T);var ca=k.addTextarea(T+":","",2);ca.style.width="100%";y.push(ca);E(ca,T);ca.focus()}W.setAttribute("disabled","disabled");L.value=""}catch(H){mxUtils.alert(H)}else mxUtils.alert(mxResources.get("invalidName"))});mxEvent.addListener(L,"keypress",function(T){13==T.keyCode&&W.click()});this.init=function(){0<y.length?y[0].focus():L.focus()};W.setAttribute("title",mxResources.get("addProperty"));W.setAttribute("disabled","disabled");W.style.textOverflow=+p.style.position="absolute";p.style.top="30px";p.style.left="30px";p.style.right="30px";p.style.bottom="80px";p.style.overflowY="auto";p.appendChild(k.table);h=document.createElement("div");h.style.display="flex";h.style.alignItems="center";h.style.boxSizing="border-box";h.style.paddingRight="160px";h.style.whiteSpace="nowrap";h.style.marginTop="6px";h.style.width="100%";var K=document.createElement("input");K.setAttribute("placeholder",mxResources.get("enterPropertyName"));K.setAttribute("type",+"text");K.setAttribute("size",mxClient.IS_IE||mxClient.IS_IE11?"36":"40");K.style.boxSizing="border-box";K.style.borderWidth="1px";K.style.borderStyle="solid";K.style.marginLeft="2px";K.style.padding="4px";K.style.width="100%";h.appendChild(K);p.appendChild(h);e.appendChild(p);var W=mxUtils.button(mxResources.get("addProperty"),function(){var T=K.value;if(0<T.length&&"label"!=T&&"id"!=T&&"placeholders"!=T&&0>T.indexOf(":"))try{var N=mxUtils.indexOf(w,T);if(0<=N&&null!=y[N])y[N].focus();else{d.cloneNode(!1).setAttribute(T,+"");0<=N&&(w.splice(N,1),y.splice(N,1));w.push(T);var ca=k.addTextarea(T+":","",2);ca.style.width="100%";y.push(ca);E(ca,T);ca.focus()}W.setAttribute("disabled","disabled");K.value=""}catch(H){mxUtils.alert(H)}else mxUtils.alert(mxResources.get("invalidName"))});mxEvent.addListener(K,"keypress",function(T){13==T.keyCode&&W.click()});this.init=function(){0<y.length?y[0].focus():K.focus()};W.setAttribute("title",mxResources.get("addProperty"));W.setAttribute("disabled","disabled");W.style.textOverflow="ellipsis";W.style.position="absolute";W.style.overflow="hidden";W.style.width="144px";W.style.right="0px";W.className="geBtn";h.appendChild(W);p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog.apply(a,arguments)});p.setAttribute("title","Escape");p.className="geBtn";h=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(T){var N=g.getDataForCells([b],!0);T=new EmbedDialog(a,JSON.stringify(N,null,2),null,null,function(){console.log(N);a.alert("Written to Console (Dev Tools)")},mxResources.get("export"),null,"Console","data.json");a.showDialog(T.container,450,240,!0,!0);T.init()}));h.setAttribute("title",mxResources.get("export"));h.className="geBtn";var X=mxUtils.button(mxResources.get("apply"),function(){try{a.hideDialog.apply(a,arguments);d=d.cloneNode(!0);for(var T=!1,N=0;N<w.length;N++)null==y[N]?d.removeAttribute(w[N]):(d.setAttribute(w[N],y[N].value),T=T||"placeholder"==w[N]&&"1"==d.getAttribute("placeholders"));T&&d.removeAttribute("label");g.getModel().setValue(b,-d)}catch(ca){mxUtils.alert(ca)}});X.setAttribute("title","Ctrl+Enter");X.className="geBtn gePrimaryBtn";mxEvent.addListener(e,"keydown",function(T){13==T.keyCode&&mxEvent.isControlDown(T)&&X.click()});mxEvent.addListener(L,"keyup",f);mxEvent.addListener(L,"change",f);v=document.createElement("div");v.style.display="flex";v.style.justifyContent="flex-end";v.style.alignItems="center";v.style.position="absolute";v.style.left="30px";v.style.right="30px";v.style.bottom="30px";v.style.height="40px";if(a.editor.graph.getModel().isVertex(b)||+d)}catch(ca){mxUtils.alert(ca)}});X.setAttribute("title","Ctrl+Enter");X.className="geBtn gePrimaryBtn";mxEvent.addListener(e,"keydown",function(T){13==T.keyCode&&mxEvent.isControlDown(T)&&X.click()});mxEvent.addListener(K,"keyup",f);mxEvent.addListener(K,"change",f);u=document.createElement("div");u.style.display="flex";u.style.justifyContent="flex-end";u.style.alignItems="center";u.style.position="absolute";u.style.left="30px";u.style.right="30px";u.style.bottom="30px";u.style.height="40px";if(a.editor.graph.getModel().isVertex(b)||a.editor.graph.getModel().isEdge(b))G=document.createElement("span"),G.style.marginRight="10px",G.style.justifyContent="flex-end",G.style.alignItems="center",G.style.display="flex",G.style.whiteSpace="nowrap",J=document.createElement("input"),J.setAttribute("type","checkbox"),J.style.marginRight="6px","1"==d.getAttribute("placeholders")&&(J.setAttribute("checked","checked"),J.defaultChecked=!0),mxEvent.addListener(J,"click",function(){"1"==d.getAttribute("placeholders")?d.removeAttribute("placeholders"):-d.setAttribute("placeholders","1")}),G.appendChild(J),mxUtils.write(G,mxResources.get("placeholders")),null!=EditDataDialog.placeholderHelpLink&&G.appendChild(a.createHelpIcon(EditDataDialog.placeholderHelpLink)),v.appendChild(G);a.editor.cancelFirst&&v.appendChild(p);v.appendChild(h);v.appendChild(X);a.editor.cancelFirst||v.appendChild(p);e.appendChild(v);this.container=e};EditDataDialog.getDisplayIdForCell=function(a,b){var f=null;null!=a.editor.graph.getModel().getParent(b)&&(f=b.getId());return f};+d.setAttribute("placeholders","1")}),G.appendChild(J),mxUtils.write(G,mxResources.get("placeholders")),null!=EditDataDialog.placeholderHelpLink&&G.appendChild(a.createHelpIcon(EditDataDialog.placeholderHelpLink)),u.appendChild(G);a.editor.cancelFirst&&u.appendChild(p);u.appendChild(h);u.appendChild(X);a.editor.cancelFirst||u.appendChild(p);e.appendChild(u);this.container=e};EditDataDialog.getDisplayIdForCell=function(a,b){var f=null;null!=a.editor.graph.getModel().getParent(b)&&(f=b.getId());return f};EditDataDialog.placeholderHelpLink=null;var LinkDialog=function(a,b,f,e){var g=document.createElement("div");mxUtils.write(g,mxResources.get("editLink")+":");var d=document.createElement("div");d.className="geTitle";d.style.backgroundColor="transparent";d.style.borderColor="transparent";d.style.whiteSpace="nowrap";d.style.textOverflow="clip";d.style.cursor="default";d.style.paddingRight="20px";var h=document.createElement("input");h.setAttribute("value",b);h.setAttribute("placeholder","http://www.example.com/");h.setAttribute("type","text");h.style.marginTop="6px";h.style.width="400px";h.style.backgroundImage="url('"+Dialog.prototype.clearImage+"')";h.style.backgroundRepeat="no-repeat";h.style.backgroundPosition="100% 50%";h.style.paddingRight="14px";b=document.createElement("div");b.setAttribute("title",mxResources.get("reset"));b.style.position="relative";b.style.left="-16px";b.style.width="12px";b.style.height="14px";b.style.cursor="pointer";b.style.display="inline-block";b.style.top="3px";b.style.background="url("+IMAGE_PATH+"/transparent.gif)";mxEvent.addListener(b,"click",function(){h.value="";h.focus()});d.appendChild(h);d.appendChild(b);g.appendChild(d);this.init=function(){h.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?h.select():document.execCommand("selectAll",!1,null)};d=document.createElement("div");d.style.marginTop="18px";d.style.textAlign="right";mxEvent.addListener(h,"keypress",function(m){13==m.keyCode&&(a.hideDialog(),e(h.value))});b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});b.className="geBtn";a.editor.cancelFirst&&d.appendChild(b);f=mxUtils.button(f,function(){a.hideDialog();e(h.value)});f.className="geBtn gePrimaryBtn";d.appendChild(f);a.editor.cancelFirst||d.appendChild(b);g.appendChild(d);this.container=g},OutlineWindow=function(a,b,f,e,g){var d=a.editor.graph,h=document.createElement("div");h.style.position="absolute";h.style.width="100%";h.style.height="100%";h.style.overflow="hidden";this.window=new mxWindow(mxResources.get("outline"),h,b,f,e,g,!0,!0);this.window.minimumSize=new mxRectangle(0,0,80,80);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);var m=a.createOutline(this.window);a.installResizeHandler(this,!0,function(){m.destroy()});this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit();m.setSuspended(!1)}));this.window.addListener(mxEvent.HIDE,mxUtils.bind(this,function(){m.setSuspended(!0)}));this.window.addListener(mxEvent.NORMALIZE,mxUtils.bind(this,-function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(h);mxEvent.addMouseWheelListener(function(p,k){for(var v=!1,w=mxEvent.getSource(p);null!=w;){if(w==m.svg){v=!0;break}w=w.parentNode}v&&(v=d.zoomFactor,null!=p.deltaY&&Math.round(p.deltaY)!=p.deltaY&&(v=1+Math.abs(p.deltaY)/20*(v-1)),d.lazyZoom(k,null,null,v),mxEvent.consume(p))})},LayersWindow=function(a,b,f,e,g){function d(){var N=L.get(p.getLayerForCells(p.getSelectionCells()));-null!=N?N.appendChild(T):null!=T.parentNode&&T.parentNode.removeChild(T)}function h(){function N(S,ea,la,O){var V=document.createElement("div");V.className="geToolbarContainer";L.put(la,V);V.style.overflow="hidden";V.style.position="relative";V.style.padding="4px";V.style.height="30px";V.style.display="flex";V.style.alignItems="center";V.style.borderWidth="0px 0px 1px 0px";V.style.borderStyle="solid";V.style.whiteSpace="nowrap";V.setAttribute("title",ea+" ("+la.getId()+")");var Y=document.createElement("div");+function(){m.setSuspended(!1)}));this.window.addListener(mxEvent.MINIMIZE,mxUtils.bind(this,function(){m.setSuspended(!0)}));m.init(h);mxEvent.addMouseWheelListener(function(p,k){for(var u=!1,w=mxEvent.getSource(p);null!=w;){if(w==m.svg){u=!0;break}w=w.parentNode}u&&(u=d.zoomFactor,null!=p.deltaY&&Math.round(p.deltaY)!=p.deltaY&&(u=1+Math.abs(p.deltaY)/20*(u-1)),d.lazyZoom(k,null,null,u),mxEvent.consume(p))})},LayersWindow=function(a,b,f,e,g){function d(){var N=K.get(p.getLayerForCells(p.getSelectionCells()));+null!=N?N.appendChild(T):null!=T.parentNode&&T.parentNode.removeChild(T)}function h(){function N(S,ea,la,O){var V=document.createElement("div");V.className="geToolbarContainer";K.put(la,V);V.style.overflow="hidden";V.style.position="relative";V.style.padding="4px";V.style.height="30px";V.style.display="flex";V.style.alignItems="center";V.style.borderWidth="0px 0px 1px 0px";V.style.borderStyle="solid";V.style.whiteSpace="nowrap";V.setAttribute("title",ea+" ("+la.getId()+")");var Y=document.createElement("div");Y.style.display="inline-flex";Y.style.alignItems="center";Y.style.width="100%";Y.style.textOverflow="ellipsis";Y.style.overflow="hidden";var ha=document.createElement("span");mxEvent.addListener(V,"dragover",function(aa){aa.dataTransfer.dropEffect="move";y=S;aa.stopPropagation();aa.preventDefault()});mxEvent.addListener(V,"dragstart",function(aa){"true"!=ha.contentEditable&&(w=V,mxClient.IS_FF&&aa.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(V,"dragend",function(aa){null!=w&&null!=y&&1<p.model.getChildCount(p.model.root)&&p.addCell(la,p.model.root,y);y=w=null;aa.stopPropagation();aa.preventDefault()});var ia=document.createElement("img");ia.setAttribute("draggable","false");ia.setAttribute("align","top");ia.setAttribute("border","0");ia.className="geAdaptiveAsset";ia.style.width="16px";ia.style.padding="0px 6px 0 4px";ia.style.cursor="pointer";ia.setAttribute("title",mxResources.get(p.model.isVisible(la)?"hide":"show"));p.model.isVisible(la)?(ia.setAttribute("src",Editor.visibleImage),mxUtils.setOpacity(V,90)):(ia.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(V,40));p.isEnabled()||mxUtils.setOpacity(ia,50);Y.appendChild(ia);mxEvent.addListener(ia,"click",function(aa){p.isEnabled()&&p.model.setVisible(la,!p.model.isVisible(la));mxEvent.consume(aa)});ia=document.createElement("img");ia.setAttribute("draggable","false");ia.setAttribute("align","top");ia.setAttribute("border","0");ia.className="geAdaptiveAsset";ia.style.width="16px";ia.style.padding="0px 6px 0 0";ia.setAttribute("title",@@ -3839,17 +3840,17 @@ P&&p.removeSelectionCells(p.getModel().getDescendants(la));mxEvent.consume(aa)}}"block",ea.style.textAlign="right",ea.style.whiteSpace="nowrap",ea.style.position="absolute",ea.style.right="16px",ea.style.top="6px",0<S&&(Y=document.createElement("a"),Y.setAttribute("title",mxResources.get("toBack")),Y.className="geButton",Y.style.cssFloat="none",Y.innerHTML="▼",Y.style.width="14px",Y.style.height="14px",Y.style.fontSize="14px",Y.style.margin="0px",Y.style.marginTop="-1px",ea.appendChild(Y),mxEvent.addListener(Y,"click",function(aa){p.isEnabled()&&p.addCell(la,p.model.root,S-1);mxEvent.consume(aa)})),0<=S&&S<C-1&&(Y=document.createElement("a"),Y.setAttribute("title",mxResources.get("toFront")),Y.className="geButton",Y.style.cssFloat="none",Y.innerHTML="▲",Y.style.width="14px",Y.style.height="14px",Y.style.fontSize="14px",Y.style.margin="0px",Y.style.marginTop="-1px",ea.appendChild(Y),mxEvent.addListener(Y,"click",function(aa){p.isEnabled()&&p.addCell(la,p.model.root,S+1);mxEvent.consume(aa)})),V.appendChild(ea);mxClient.IS_SVG&&(!mxClient.IS_IE||10<=document.documentMode)&&(V.setAttribute("draggable","true"),V.style.cursor="move")}mxEvent.addListener(V,"dblclick",function(aa){var P=mxEvent.getSource(aa).nodeName;"INPUT"!=P&&"IMG"!=P&&"true"!=ha.contentEditable&&(m(la),mxEvent.consume(aa))});p.getDefaultParent()==la&&(V.classList.add("geActivePage"),V.style.fontWeight=p.isEnabled()?"bold":"",D=la);mxEvent.addListener(V,"click",function(aa){p.isEnabled()&&"true"!=ha.contentEditable&&(p.setDefaultParent(O),p.view.setCurrentRoot(null),mxEvent.isShiftDown(aa)&&p.setSelectionCells(la.children),-mxEvent.consume(aa))});v.appendChild(V)}p.isEnabled()?(X.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),W.classList.remove("mxDisabled"),J.classList.remove("mxDisabled")):(X.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),W.classList.add("mxDisabled"),J.classList.add("mxDisabled"));C=p.model.getChildCount(p.model.root);v.innerText="";L.clear();for(var ca=C-1;0<=ca;ca--)mxUtils.bind(this,function(S){N(ca,p.convertValueToString(S)||mxResources.get("background"),S,S)})(p.model.getChildAt(p.model.root,-ca));var H=p.convertValueToString(D)||mxResources.get("background");X.setAttribute("title",mxResources.get("removeIt",[H]));W.setAttribute("title",mxResources.get("duplicateIt",[H]));p.isSelectionEmpty()&&M.classList.add("mxDisabled");d()}function m(N){if(p.isEnabled()&&null!=N){var ca=L.get(N);if(null!=ca){var H=ca.getElementsByTagName("span");if(null!=H&&0<H.length){var S=H[0],ea=mxUtils.getTextContent(S);S.style.textOverflow="";S.style.cursor="text";S.contentEditable="true";S.focus();document.execCommand("selectAll",+mxEvent.consume(aa))});u.appendChild(V)}p.isEnabled()?(X.classList.remove("mxDisabled"),Q.classList.remove("mxDisabled"),W.classList.remove("mxDisabled"),J.classList.remove("mxDisabled")):(X.classList.add("mxDisabled"),Q.classList.add("mxDisabled"),W.classList.add("mxDisabled"),J.classList.add("mxDisabled"));C=p.model.getChildCount(p.model.root);u.innerText="";K.clear();for(var ca=C-1;0<=ca;ca--)mxUtils.bind(this,function(S){N(ca,p.convertValueToString(S)||mxResources.get("background"),S,S)})(p.model.getChildAt(p.model.root,+ca));var H=p.convertValueToString(D)||mxResources.get("background");X.setAttribute("title",mxResources.get("removeIt",[H]));W.setAttribute("title",mxResources.get("duplicateIt",[H]));p.isSelectionEmpty()&&M.classList.add("mxDisabled");d()}function m(N){if(p.isEnabled()&&null!=N){var ca=K.get(N);if(null!=ca){var H=ca.getElementsByTagName("span");if(null!=H&&0<H.length){var S=H[0],ea=mxUtils.getTextContent(S);S.style.textOverflow="";S.style.cursor="text";S.contentEditable="true";S.focus();document.execCommand("selectAll",!1,null);ca.removeAttribute("draggable");ca.style.cursor="";var la=function(O){if("true"==S.contentEditable){S.contentEditable="false";var V=mxUtils.getTextContent(S);O&&V!=ea?(V=mxUtils.getTextContent(S),0<V.length?p.cellLabelChanged(N,V):p.cellLabelChanged(N,mxResources.get("untitledLayer"))):h()}};mxEvent.addListener(S,"keydown",function(O){if(13==O.keyCode||27==O.keyCode)la(13==O.keyCode),mxEvent.consume(O)});mxEvent.addListener(S,"blur",function(O){la(!0);mxEvent.consume(O)})}}}}var p=a.editor.graph,-k=document.createElement("div");k.style.userSelect="none";k.style.height="100%";k.style.marginBottom="10px";k.style.overflow="auto";var v=document.createElement("div");v.style.position="absolute";v.style.overflow="auto";v.style.left="0px";v.style.right="0px";v.style.top="0px";v.style.bottom="32px";k.appendChild(v);var w=null,y=null;mxEvent.addListener(k,"dragover",function(N){N.dataTransfer.dropEffect="move";y=0;N.stopPropagation();N.preventDefault()});mxEvent.addListener(k,"drop",function(N){N.stopPropagation();+k=document.createElement("div");k.style.userSelect="none";k.style.height="100%";k.style.marginBottom="10px";k.style.overflow="auto";var u=document.createElement("div");u.style.position="absolute";u.style.overflow="auto";u.style.left="0px";u.style.right="0px";u.style.top="0px";u.style.bottom="32px";k.appendChild(u);var w=null,y=null;mxEvent.addListener(k,"dragover",function(N){N.dataTransfer.dropEffect="move";y=0;N.stopPropagation();N.preventDefault()});mxEvent.addListener(k,"drop",function(N){N.stopPropagation();N.preventDefault()});var C=null,D=null,E=document.createElement("div");E.className="geToolbarContainer geDialogToolbar";var G=document.createElement("a");G.className="geButton";var J=G.cloneNode(!1);J.style.backgroundImage="url("+Editor.plusImage+")";J.setAttribute("title",mxResources.get("addLayer"));mxEvent.addListener(J,"click",function(N){if(p.isEnabled()){p.model.beginUpdate();try{var ca=p.addCell(new mxCell(mxResources.get("untitledLayer")),p.model.root);p.setDefaultParent(ca)}finally{p.model.endUpdate()}m(ca)}mxEvent.consume(N)});p.isEnabled()||J.classList.add("mxDisabled");E.appendChild(J);var M=G.cloneNode();M.style.backgroundImage="url("+Editor.layersImage+")";M.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(M,"click",function(N){if(p.isEnabled()&&!p.isSelectionEmpty()){var ca=mxUtils.getOffset(M);a.showPopupMenu(mxUtils.bind(this,function(H,S){for(var ea=p.getLayerForCells(p.getSelectionCells()),la=C-1;0<=la;la--)mxUtils.bind(this,function(O){var V="1"==mxUtils.getValue(p.getCurrentCellStyle(O),"locked","0"),Y=H.addItem(p.convertValueToString(O)||mxResources.get("background"),null,mxUtils.bind(this,function(){V||p.moveCells(p.getSelectionCells(),0,0,!1,O)}),S,null,null,!V);V?H.addCheckmark(Y,Editor.lockedImage):O==ea&&H.addCheckmark(Y,Editor.checkmarkImage)})(p.model.getChildAt(p.model.root,la))}),ca.x,ca.y+M.offsetHeight,N)}});E.appendChild(M);var Q=G.cloneNode(!1);Q.style.backgroundImage="url("+Editor.editImage+")";Q.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(Q,-"click",function(N){p.isEnabled()&&a.showDataDialog(D);mxEvent.consume(N)});p.isEnabled()||Q.classList.add("mxDisabled");E.appendChild(Q);var L=new mxDictionary,W=G.cloneNode(!1);W.style.backgroundImage="url("+Editor.duplicateImage+")";W.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(W,"click",function(N){if(p.isEnabled()){N=null;p.model.beginUpdate();try{N=p.cloneCell(D),p.cellLabelChanged(N,mxResources.get("untitledLayer")),N.setVisible(!0),N=p.addCell(N,p.model.root),p.setDefaultParent(N)}finally{p.model.endUpdate()}null==+"click",function(N){p.isEnabled()&&a.showDataDialog(D);mxEvent.consume(N)});p.isEnabled()||Q.classList.add("mxDisabled");E.appendChild(Q);var K=new mxDictionary,W=G.cloneNode(!1);W.style.backgroundImage="url("+Editor.duplicateImage+")";W.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(W,"click",function(N){if(p.isEnabled()){N=null;p.model.beginUpdate();try{N=p.cloneCell(D),p.cellLabelChanged(N,mxResources.get("untitledLayer")),N.setVisible(!0),N=p.addCell(N,p.model.root),p.setDefaultParent(N)}finally{p.model.endUpdate()}null==N||p.isCellLocked(N)||p.selectAll(N)}});p.isEnabled()||W.classList.add("mxDisabled");E.appendChild(W);var X=G.cloneNode(!1);X.style.backgroundImage="url("+Editor.trashImage+")";X.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(X,"click",function(N){if(p.isEnabled()){p.model.beginUpdate();try{var ca=p.model.root.getIndex(D);p.removeCells([D],!1);0==p.model.getChildCount(p.model.root)?(p.model.add(p.model.root,new mxCell),p.setDefaultParent(null)):0<ca&&ca<=p.model.getChildCount(p.model.root)?p.setDefaultParent(p.model.getChildAt(p.model.root,ca-1)):p.setDefaultParent(null)}finally{p.model.endUpdate()}}mxEvent.consume(N)});p.isEnabled()||X.classList.add("mxDisabled");E.appendChild(X);k.appendChild(E);var T=document.createElement("span");T.setAttribute("title",mxResources.get("selectionOnly"));T.innerHTML="•";T.style.position="absolute";T.style.fontWeight="bold";T.style.fontSize="16pt";T.style.right="6px";h();p.model.addListener(mxEvent.CHANGE,h);p.addListener("defaultParentChanged",-h);a.addListener("lockedChanged",h);p.selectionModel.addListener(mxEvent.CHANGE,function(){p.isSelectionEmpty()?M.classList.add("mxDisabled"):M.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,f,e,g,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.init=function(){v.scrollTop=v.scrollHeight-v.clientHeight};+h);a.addListener("lockedChanged",h);p.selectionModel.addListener(mxEvent.CHANGE,function(){p.isSelectionEmpty()?M.classList.add("mxDisabled"):M.classList.remove("mxDisabled");d()});this.window=new mxWindow(mxResources.get("layers"),k,b,f,e,g,!0,!0);this.window.minimumSize=new mxRectangle(0,0,150,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.init=function(){u.scrollTop=u.scrollHeight-u.clientHeight};this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));this.refreshLayers=h;a.installResizeHandler(this,!0)};(function(){Sidebar.prototype.tagIndex="5V1dV+M6sv01rDvngax0oLvveYQEaGaAziE0PW8sxVYSDbblI9uk6V9/VVWS7ST+kB0zL3etbmIn3ltlfZRKUqkU/rpRLN6MmFJym5yM/8QL/Xnw7yLceXQ03fA3JaOTyfjCQCKZehvu66tErCMW6J9E1M4jlJcFTJWIPP1VIKK1ixj/zML4VBRiTMaf9HOKx8G7/lwy71V/ZJEv8Vv8cKea9KW646tU41nk678/4tK7SZVu5FpC9oz/TDPVnkEPJlsn4wVma1lEnVemGByy6q+M+SXkSmaQ6Vv27gJeBDzyOQDMu1ma5FVEEVBEtuokgQhdyZ62Uv/9qWWoYPRltgx4A3U970/hc6BnIuD+kdI+KbGTcelGce6ec4evOBl/k0r8llGKtWBTvulF98xVKjzEvxWXDVS/M8VHF57Hk0TDpzpxJQGScC9TIoX3euXvVV/UcWWpDFkqsCYyfaM/1ly36vGfgVhv0oiasyfh7ypgyaaBaKHl5/nThqb5VeAvZEigXx8k0AolJJUkVjo7jGBOHFOm29Se3FZin6VsyRL42V+2U90z9crTOGAeIEK8Q1UCnMlGxk4CLWb/gsflKt0y/MLnbzyQccgjaIivAjgTT/Gtr4Quf9cXXWRLjRKxyRwvkBko75hHnjisPzUkP/kyESnHtwoAtQ7kkrehL7UyzUAtLrh6E5g7Nnn9iYo2SWW8ZVr1QYsTIW8gE+ll5kHWQlXGdr/Qug1Zl/RDe2O4FL+fWPBaiJSUZGoDT6HRYT3DN9Gdgy4agY3Q59gj+iIOdAOB/MmYYlHKqYp5PMLaFHMVirSSG2XYySnnZrGHNW19JdaZoiYxGV8LbGq+9DKsT0APT3Sk1ldzXaZszQvOpfzlkndUYodytAPDOEuxuocyEqlUmM+Jbm6HevkAq0sAW8+MB9BmQJs+8HQr1Wup3G2zL6uCetJZjXKofV7J+FLnUUWtxZyLTYa20FzpV1GxEgnVdxH4JOgyS0QECr4F3z3nEUHWUQfUjUi/ZUv7tjqTGaCkl0q6Wou0Ef9tdhslUBAn9Xq4GshZkG6gTmx0m8EqvuGoYzb4iwMYdDnVMcpbS2QM3TYB3mM0Sp71/0fuSVPf7lmki1d10DN3LE6x0/CKut+GuddVgGpRyFCtc/sZYS/Cm9FySdUj3sgIPlOZeZvWNAm1o0uTXH81UO3zZEEqQDkwD5q37t+zdAOqNe/RS/aJ6Tdi5purBt73xV930PiLapT8HTTXqz2Kh7JloQ26bIlVOtAl6dIY9uBPMhbeCdgtu/ZLJeEe1XdduTSPrpc6v9+TlIf64jakMpeQ9RumQFVr3YiV3vcb+eZyy9Viw4Ogl1p+nM2xmofSyNSdYgHjnSzA6m26fu+wTKtwYM30S1LXTkxPsYp0qp+nbu8yg271r4xnWM3/hoseBI+8qttygmLlSfLhZtmsS7CZUd1Kds295iT2m4dTh7aH0qLgF2QqGo5qVVdLtHiPvIp2mdDXinvvXtBgGhLRI4/1sJs09z5TqY6sRCNVqlU+2qxPDNuRuxm20MqLmqNOO3CqHRqxEGEclC3jNtATkMOLhFZpOynrH5FAc3UlcKRsbJHvy/9wD8iylUSFJHhrrfmRYBPaZCGDZ2Mu6QXolr3prFf16OdvsxOjqyqUVPXzVEngw+g2Qrur8WehCxWnqu71sE9gv/QWnrSalK00WglxllLFX+VXVaxv1TMae7yFcRrlV2059PNiNr2+wdxh60gmKamJ7trRDvIm4xsecYXqxI7z6sQ5pICWKDHp6jFiEyjpgtLioL1lU6MmSu3VHZm0QtcI1RVNeCPPjIeKHnuZLamxJzHnNIzdyIzsV2+DJm+Y22ZVlPINS35AxuFl1Bo4nQ5IJ7PIfxyW8xzGplLgaG9BGginPqsrUhn55RCZiLoxbRn4v4dAbkYubdBLFkWoRfXYs24CvPz8lGzpNZchT1XDzN8OSEkcF8ZBhnP+1cq2jJgddJORxMmOmMX7w5A96HXzILoS882Mr/IBWqAHTcjxejheKQPvJRo3kWNuP0g0msMlzn6upFoK36/o6A6R34t5fG0RKMGiNdXSwyFVJX4R6mwE9Y+GsodSb1gcv7cCTRUWmCEx1rI2SAbsPvY2+m9QmTl7mCeBdrAdKeMnTGC24X4ylMvU3qWtzY2Yf5/QdB+kwyKPB1i9agqkwEqZJqm+HLULWY27rx0Q72mUWoass8VjGOIQHihN0cRKenQVagMsqEtZ40YXPq4geB2yGWCXNjHdvWUBLwzZJqO0hL+TVEJ2va5urbACZWbCVYXEuLKywZep5bhnERlBRuANDHRa5c1HgwZlFJY2kWnipFFzIUE+znKy+EtINIQLcbvWDo8tdUmlOANNl1A7/85EXGmvHeBG00tYB81LS0AuLBVnVATUY8Ryv9DreSbjX5/Gw7BN6qTSVmRHniapOrKd1UqFa33dmLRcn4eiO68TzJgwXYga5OrAdj+l/P+s/3w5u4BXnkOdFpGwo5wOb+7Cf+7CX/0GtfRfzjCN8YfJX05g2BeQMAv9mxwCtgIWyOwr5L/o7pR+6SJ3Fe/5QLwwr4C6BIv1fKyzpToXHJTbLiG8/GQotrMJyTgA31zp7sYz07uavDfhI0+ET93fNFPKrlqZnmkCBaS85u7Qkeu8E9ciU7jYt/Oin4Cirkdwp8G3qlPh7jTYKupVrjsR5kytjqzkeYIFXRodnI/DcJL3VsvKmexWjgEoQCsdT/N5gLf5grrxeJ6vHTm4gO6UlxdM9fCJr5VdTooZGIdRDXwVSKniAK23gL3Xr/TsPT66RK06s+5MS1xeX2UqEqZDcGRYCDPKrMfWwKV89WhCtCt0umFC9cHJWKCO87lZ93ND0Yx1Ilesax5NH5/A6H4+Kc+ulmZcK+SoYJnx5BWnwRUNUOzoqJMouyS0VN6PSOkRm10jTnAgsGXKVzQTWkNVwXMVcD3cwHzgiccCc+0iwrV+eIB8vYYrzXPHQmiE1ZMQ1dCqZe8YRowhM391K5bkoGWFgTnpJC0cvypov69W1PHZKu61VvUKlrlgOFehv8dRqYiSVFVPrFeh9R+a6FKwUKF/2DYN5EtABZqrc/t6ZBF2b+Aky+I4EDDf0hE76YPlKyXWsFCNdaYrfEHqwDPaoVMBPZl25/OkuXfYh1AuGViPJI2HzBH4syPx50fiP/fFS0ErkVp1KFpUCxjqH1AdWqWlSspDr9t9mp8sRe05lZKcAbbwhWfvXCT5uaMGgh6KpJLW1xfoBw3LaFijA7pLbA/dLBaAHq0vExEoc+vIsCVvS8dsgKfzHs2zF5UcNegfdc9XQw7LtzEBEfnVuw5qsk9o/ZpU+TG0Qy5lmqJsZZKl/bKVR1cmoRI9kMKywhvIGYGrFIq+bi/73BQ0hZ97urenL6JXo5mqakobbtIVV66p/w8gNxay1cYALkHB9QnaBuTxx//OCudewXQalev3OcXoIopkah29PmH7C415oHVru0dODdPkGKapDAJyVt7oUe06YBVuotXIfZ+gJPdtaYfWuto0odAH8LSEDeELJ+eFgmTOYjMjHzutTu3jF0WpG5cTsOdrF/oO4OA7ZEqfB4GIEzsLWN3o6/CT3nipaAhKotcVWg06C0PjypdFnnW8zKDa16wc7zM8ads4WfHympGqW4QkbMBZ9BJqM5HWi99YkIFBog0Hzio7lkrk6FpEIqHNUzdS+rD2lUqc/dJZEPYVaHSDy8bczBP5mZ0nMo6LJDO2Kt7crnZYv2dpIkqO4Lj+UwiaZGA0N9XXHbZnPaKg7UVm+cmsVbpgLwQqTBDlK2QRjYqU9WGg36q1rR4EKSmgVoQS93g0qWbzMLnj/zKeThc2Ny9xdcxvW89tJ4FBZ+TrYS822IEJJ+OfG7MBproKdaU+lm6ha0k6VD5Wkg2Rn63EH5QRvWjn4LGOw95S7TY+lo3TH5bgr0x4r7qHlmhA5xdL8inC2+X+qnIjibHk+hEt7HPJHmiPr5FDKwqa25qJBIaLoGOvda+c0H4n10rRyKPrgymjDoVVMM5x8qynOBbcSwY9gDZTfidm4q9hNigH6Zq7EjwAgaEWn4CdRLdtSHCS1yLr+oE6voukO1CwEDCn2jNsm2CDCNlvtAe2HK3BYr8H2yZ1uJHuZl7so7STbMGZwqkd6+yc2C8a0q/ngU2T1/pvyFPmk83Tn/jK+AeZjy7QxdUCkrSe3NbTqNgL40jzsEOzt6u1D9tkTG81GT/skQ2ayLenp/lHp2H3zgzG+tdOZtsNHX1oJuNi99VAhH9Z9NF0P6/LNDBfboa6fZhgGdkTPhmqg3Eaf+zelGaa70Uruxfjpw7m7dWUBlIMPOJLqqEnlbYw7m/rCMN8W4EIq3yU28lRr/00O6EP07B7pPtJPgO3BzSObqMkNTPyh4nQVpli6C+Kh7umeGXIdYrzyrTE4a54V+7GdziaNakWdy8rutDfP+5Q6uGXHqZnFasiznRQXfSQERvNwMTfZtcLB/4N88lR1Bd6tC6Wmg+3UpO1nNAGReekn+dT/fCb2QYDbrLizeyyPyxWZ8bSBMBkfKP5KJTH8MncwhpdhJEJPjKZR2kWM4anfp4/4AqMtort1M9HJXJkDjXvCa99fDR7j1goZ+Ci5eNlH6zuA1JT24fiScpErMTelfGWWtwxQgHFjjzCtuJuPPlabFdZTK9hY7OU1LD5pjsLmKV+V7LRWsksxq1hcNHhDR5nYFYqnRg0I1Y7DGhmMD12qaM7njEng52y6I//yONAG9BDsy/0hb98H4T2Hv7Q9t5BMyMPDTB4Nn9XzMNV9SGpaZMwKq/cRu6MBdc0PRqMupDoGiLfYQUGNXqIoSzglobh11Ll0aDyYCql7wahxgrlvX5sEk9cZ8huDzRQKtakbzDk+1FCGCwTPmIQ6tuLe/08bRLHSBvMs1uV8of6M2tpff8UM/Pjklg8LY7ij2R0alrmSxLrke4KNjZKlWGvuIKL9jaT+K844epjeCsbzgtnkPNwXuM/X3fC4BwyjB44eY2kUW1gqzKElvowWzyKevTim5hHprYrSXGfbPU290OwgmbZRoHEXmVmBwR7emHQ9K589FG7k96B/hk0nQWuRNKy6Ee92NUl1NrCPFkWodFqXT7dWLX8EYuTjUw/LIFnGWQh/wD6BXjF5f1UsZTtMB/UxgsRVUy8uA9OYDJGlyEbZyNpS1HacBx90z06HU8knhzZ+GJAVIo1Vl/L92CjS6WtHnxx8r5FZ4xmPbZPYWNQQGbmEnRmuZ+BSxs5k2zBqQJpskiklWy1PIuQ4XrcZbGXdyOzpNmGIhLrhZhgucX6peINVyxIRreX0Gvda5tspRgFQCo8FlPjIwyemeTOGHtHJCIiCLF1sTgfj3fTib1jX+DJSDoQaa0feE+++5K/Z4mSnEGL3N11JS8SdE9HeEraqGfFD0fVEJwXKwldJ25PbrDKdG6T+y0F1RlOcDth5Q1LnHvED0S48Kx/2FCEsd33NxRhFplVkqLAB2obiywGV+ucayDaPEbVTg7QOnlfSrsfbDAhf+w3rmPInvWoA13OtB5XbLiyp9hIlxATesgqVVuZanqbKm6MJh1Y9lBCLL9k9Gl8cwW+HVN5dYJRLrKWiYZmurNPX2FH4z9mJNcfpaWJPKJ1YKpu6aZ3cv+m5HAb00cnVoSnzXdi39v8OjrjroXiW7JZiggXhh5ecLu4/2OIdA7Ih+C08S2Hz/Mi1Fqe56VEdMY8L6Zn4/H4j64J+gKCZEl0trLXXWAjGMsGJWQg26I8EcMmW9IrrmlhBZrg+JIlHLZJUsDSTda8UlJHNIXvj2Y5Dm0N7+NY9pee1o2LUIfB7vYSCPXf0b/4OxT2bsD8RsTjfKH/6Z9VXOcwfICpjK3rhMzX9DytZOyWPLfXrWCUPg9NPwImrq4cFDp2bgze3FOyVbYDpm9SprndbD67s+TRiPMDD27nJfk83rKrqZ7X5xQq0q9YDHNhWMhV5/fLowhZv+42gEJbG6qJssvEbZBSVOXSZTsKYuja+uiYEEIglnuoh940Z5eYnsnancUvHRghyGUuRsN2kzpsWYZVmcuVBAd9W77MgSF8cWI9JZs5sAeipm0DrrRhtrqDCGj+YStWogZxgwj9oEfBAkdsCZHMvHQ0uwCj1xdrQQeRMG1SSzqzI4JDRSpiZTWQ8TCDQIm6wsMEi66wv1qClVex6HKgZJe6zcRte5SqGO6zX6dWll1JmiVrIz2g68ZgQnab6IEXIcRmwh3ZYRxAHN5hGCfHMT5dGKlkiVuP1WAvj64TsOvFLGDWJOJAP/lY+rOPooctUXaFcG5CMCa1a0AHPB6LmSeMTZjfdEePpjmWiipzbiI1JJMhSCDb6SkZvNPUfwVnB0LYx541RzxuJ/k8hFT3ptWjI2OJC8b3RVLQnYF/CSf9GYYUlJRr45LCdn5cmnOM+J+nGctEOKfpC22h0DCFPGOcUCZPT0PubViEX01O6XyqRR4tbFvn7ONCdyczP8nnzoqrvnzzLNmUx3kP0PNFsKof4FFvGGqlYWNjR/bvu+xaITXs0W3mplMCaGSq9dDgslfw95VecO/809fRxfT0YkqMuRWRmxYdiWa1RIXZ4s43G5IMY9p07mxL6Mn4UtAY33ZVfdkuC2NpZQ2orngTjbcXfnaxl7EVNqU7WUX1OZLvoBYVfDWmbgulWK24yneHH1cVriJPvce4Kh95HZSwgX8Tx5T8neyLftHFIDycVUHfSFbhqFqHRluMTCF73Rk7urVIY0gLE+jEreOr5DkbiOfzMTy0c16rX25fTSgzM38k16QXl41tRaVVG+mqHQ9Kj2tRjO4N49KlY/vbrXN4V1f3WuAjOGZmozND0lk84L9yZ3zmzFEzTpQwu8YD2B2viUbXWWKDSOkmchQHFhbnzo2qkgRHQ8tEBty9dVYSnR8lzW0QZLBgZ46HuswCmA8R9ltgtcHh8HNJD3RKA4PMUdZbLlFOtrvUhnEyICPSHGYAsR3mR598eOA4RDUx91qTOIbeVNIBkpDJiqcJlB1dnsAJOg2hOSqwoxkt5cC8PixAfV9cX8Gqx8PJzjAM7N5oP9h+T2rYzFYabfWizslupwMJu8s4qIywhoDnZ+gK/DqkqPM94mMlfji1sFJxfTppGJD3YpwMzng2OOP54IyfB2f8cgzjvK6saydCejFOBmc8G5zxfHDGz4MzfunPCEXQt3+YDK4TahiP0Ak1jEfohBrGI3RCDeMROqGG8QidMBlcJ9QwHqETahiP0Ak1jEfohBrGI3RCDWMfnSDjVL6Y+cxIeMnoK67frkNzxEEetjrhb7XHe/VlzX35Z/NSCj73REj+FIdndDml9mfNO0Si1lGgL+nuK5gEjn+Du6vZ3iiMhyK1J7EeLjJ0IJ0MTApUp8xL0fUFY+1PIThD4lH4kcAc0ZZ7fsEUO87W7k3yOaX2XX9x6sksJg8y+L2461euSImrmyKhGTR4ZOeLfsTzjUylzdYYbqqzuZbvRY8OMSAUjkF3l2M7rL3GgfcSMN/nCg7P1gX0PUvjzEbVbDt124lo0ptoAFl6SwF7LF4S3QbMsrY0LjilL47hGt08fS+aQ3tDMPNvaYbHaMjVCm4278rUQudkb2+mtp+2Z3RgWoYf/YJS812Jv/v7mYQmH57QA7rd3d5cFu+VZMFuaksRSzpcr7Lp9ktr8l9M6+y/mNb5x6Y1f5j/18prJ60PLq+dtD64vHbS+uDyAhVlI6M799fdE5h8YAK31gsPt6BVaZt6RsUp69DTk3fr9ROx1h3yS5LHHaarfvARrtguLAODtUQzBeyZU8d6kM5KpOZkDlwuH5J18iGsZwOxPmOw7TcZpG2xuxs4cH33aI5Jd5J0A/u0wKZ8oZC56GjUdHaNAwVZp8aD2xqnlQ7dlXy5uknqlI8rfmfa4p+V00n/cZ2kaqGdDEA7r5a267C7hbLPjMiWvXFYo0Y/ZnPdiBUy+ToCJYpL0l6tk/j+06MLbE6e4m3OCmUMBlbBmIwYySAVIUXwCUXkNy1blzguKWaN4jE6VDljtma3rNJVX2ak5eHgFEcCGB0nG3TrWcrDQ+wrQdSQmIkm0+0tpXzFpGTTidwVMBCtiEwAsXob3RfLWCX4ypxyl0oZVL1mDXTKAh75Jk66e3WYbjBMgC8SL0vqzqOpBO7WH5vDDkAZ6haFYTV80TxG3EGhkULjQpwqMUeO68F4KirOKKgkwXBn/2FvzDVZc9pEc2C+SiA3Pgq6yskW3VGGFYeCeDJ2blwWhh1SQRGzpMmTZIdgizN+NtQNGoLctdpe2WPnJ+N/XIVx+o67L/O4wYoztyZe5jFhh4EpiyoZ6kje0SLH+OEmmkWxpN90tkyJ4zpgyWbHhcM19WsZkH6Ras0i8du55AloXNdaztzYgSmjVSMTb53tH+BUg7xhGZYONOBme6EMCujYxrX+rN3BeYD6xunkoQ3XlnTdTqBDlETN0hSK5ABzV3IzOXRyoYOyyjWjlS7C4Gzl2KFuctjgTfkpR62bf3bRrzgai5lv1GzlwbDVWPlKbkk35kykmnDxNfh7Eyk+b73cNsoi+HsbRY71qHcpDnlyBic7MhgeB3Q5TsmbJMsckqeTLbVSk+tI5EHclWjjK84IzRcv3ASRtGEiPyEv+h/61AUTSdPlpplatvIkMKP6LPiW06Ed6OhY1wfKmLYftpG+gY7Fc4RyhcXwxBznF3yQ2LXoERXmbJgl6LsIFIGoOEPugOC7tnWi/CywOxNXSxuzuPakZB7BoTLnqxhxGxNtsOAVRmUdSnF0fvb2MtDBzKimE2/MA2mNB7qTEI8873ZXiid0El/MsdYrniqHt38sni8oclZHCnqsvxCLcqZV5+t+fnro/r7m5ryWStYNhRnMYvM+Tnm60EOFmFThlPqfZeZcvRe6EzZntaWkS0wsOJ8spTa4HjHk+6Ibt48fQlPMCVXtlFkLkvG2iMbZYpnXMBwMWHzFas7yPYRn2FSxmTraXlU05nQ71NwNh5Uc4uTB2MANp7Sh5+EmdN03vFN026Vw7ud/xJ2r5Q8KdgOHyTIb+oN5bt1bHpGwXf/vNj8HUrMgLTPqDioiQ1eBf7KAoiFR2zLDcwecuIa+t7TluwWGYR+m9rzA4ghBJ5iZsdwJqknTOi4mHXJ0HtARirSFPaHPBXL1KyZjxYJaSwJh5izfLind6Vpr9KPN18QcHuVG8GizwuetHvkllLGJuoi6sGeG/eObVOI3NJkAhoY154U58DxDm/F6suBsH7TdDa8wy2tA3fQ6YlC9NOXTGgF0TuGI+bD1SyTEX3M0aAXOM1NHtJU7n0ZywCkYmwWjBz30PNV21NvJzuSeO0EfLBzLSaFI8HQybXkJbo+4tZ/tLMW0krl0QcGMLniY2CkXc+kC1c9lJPUyS1OcetH6+4SiDIMPmf4dGpT+0lgaIX3TQmvUXIL7tS5MjYlzg7gjwTfSQF3xN9z0aDhTy1PUXKarOmnpnCoJzWDUmgLFgLBZGF0hcDmELWGhtiVWVYyHIcbCnNNabPDKOwolTaRtHq1FxLnabcBlpslwVCMGezrNyo69hvxMhe7NKq2yCuzowiK1zpsqmSSnl5yFGAIM7kBRVJ1H68B2DYvgp5cBwwNf58z3A5yua4hje1NQxjHTqlC3Bed2VIAx6JNYZTRNUNy1A2UYw6GIJmxFftcFSGvDF8JELCgYOq0S75NO7UvgzpwS72R8qv8/ZWop8DTbmR5fknemaluT2kvj5fRFJLLje6ss2UCcubWuqSZOMX53Uj4XDH+0nxTziHBunKMpfIOWCGTtjU0KwgfbJPYIawXWuUKzqHiBn+9NQxjAUFssWiW8m2z0WSihRldm5Q/ElaZpXEz/6FMhmihnSOm+CF/mw3DTbBjZdrj6CLXi3E5041VrkdJWbsdN3SXA6E78nQk8jJVwWuBLIXHTLNl9S9Ec04PI8pHWKvfRbYEEcvuS8CixfoyRS1PbcJa+8F+wBL2m181vTnDqPM0v3FlG1+IX+QKnipndmk/ZksMe4W/ANBlflVJJs2W7StlP4oAHehqJJ3NiUn8MSXwN4xO/eAtQGNcsGjSN/bzqTf4DMn7D4rLAvbO91851AIa6CmB9wgvHx0e30ekd9TiPUo9cwMH+3uBFFLT571cSLcAO8roTkUFVIjoWj5N7XieKjDzA4dPtYd3b+jiPZCB+xaTSDirhaBFZnWFuWhNLdP3Sb/diemM6EMb2ms3QNzgeGsc+dOUKGM1ktsSZMgjAqTjuIn5idqksZYIGnp6A8MItr205EY/N+dkKcxzX0bLo3kLK9I8hiEr5BNFrh+KEfgwopR5JhgOTPkq5+gBK/QFjy4GFftODSX9ILqqJg5X/TGjj1R8yV3cYSdoPqRDXLMCAGUNSBtJGzhgsO/Y4jyg+xbxXE4/UhoiespQF77gOa0e7eWi0s/FkrD9WNG0CW882fBvwlNxvvFfyzRgorU/HptUVBG6zdODOGk83i2jQkJ/09x4uccbM/F6NH7EINuHhNEZktuOlMlO0SkxXYfnHZpoRBlaYybU5t2wpfL9lQyThV1L6NUm34kZThkF9C91FPjq0dLTEeyeea4Zle02yhLzFiaaEfORJyjLFIrtJa9XA0Uow6UZAnjseLcPmbjwh94VHlsZGJvFhyLlaFp2fuFnzDo/N8PQNxE4Sv5tiJNcw3WJ05d/Mzi2K0n03poX0KACac1zyGqKn2QyqF6wS7MV+zr3Ffc5W5pn9sNl7vLq9ZZrziinM8xgi12CwVt16W+ucAf8z04VDZ2xY+BrLXtdGBSPi9wrCaqp7RnE87+gFdANgfrM75R4c7dvjxeDKy9T7IFTkqpPoAXYQiJZlrB3kA4/TjEKfHyvEPMjQ8/9oogUz+xaPZ4rkdhWwV3hy27QQUIXFY31wI1PasqxWgZv0xJ31xJ13xv3QajQbpCI/82OJnMLpHwJG11x3p1i4shPunlAdMbY+mDQ74SadcT/xlUw/yfthJ12wCVtxPGJgw35XmVR1CLBmupkxBU53VCE5e4Jdu6a1N/jU1l1rz5B4AuZARroHljjTAMIHFadYVUBjqegcRrgofTqgIKykRANWm7VhSMLHsnbdtYLhX+yd4fYTuTUr3ZK8TFkk6wIn7BA84rk3y4CZBY38HByV/9CefZZqa1Lfl8YJ/XyCfkewgYfsgze+EV67KWnwCyZouIcpJvqubXp6Dx4JM7UHUTRkQsZPvlpZHKKVgpsUaIrDDQU11B6PcKoPHFdt7I03bXa7mAqW41X3yDo3lSmmJL/vwBFhASlaZ0jsXfm6MfThLpmtsXarWZdaWwJP3MEp9za1p9FUGY8NLHuHwdEZkWHpAMndYxfT4lC6Wk739fkD6OMCDguCJSBoA4IClZL1lcDRBKiPmgie8rc3xdFw+kwjeHIM+OwY8Pkx4M9dwLDLEephqUG/cXOaBJxi241gdIG+4kXW43VXMcosk0FYzgZhOR+E5fMgLF8GYfnan+USwwljIWfLACtK/kQvqslwVGfDUZ0PQTVlefBuPZhz8PpuYJkMwnI2CMv5kSxwXGOqMvSUXAmcQrK3XWhuFO41mYyfKrRZTYG1ki5oNfaSB2hC6bslXXbkMUtOTIXkCwSfOD/vaNHt0ykmoqEaniUbpOlZskEanyYLB3zLcLiXhOpJgh1RuSzNZBias2Fozoeh+TwMzZdhaL52pzEGUM0iQB1kRM61k/HD1QkeK5NuTjntucUb3rj/tprpZ8605QWTue7CtACZEpkVMuFND5kWP3MmIwfedJDpkq3XNBgIMnvlDFVLdMVZ0HaSDRPKa4knt0sAoRsm4wvsLhYye9Oj0RIfhHRISpdp4+kRO8y0lcR7L3nwnGCMOLdFAsNyFfA3490RiFWHF8OdweQFbLdrOSJxvmjOlJkv6jLjZBjmZqunZ7Og8kSzaixkPM4YUa53yfEfsR6TCvKKsRd7//4P";Sidebar.prototype.searchIndexData="7Z1rU+M40Kh/zVbN+wEq98vHkHDbJUxeHGDrfFEpjkh0cKwc2R6G/fVHchKGKMwuRo7Usr21xQyBzUaPW62+qfuP9tkf3bM/Go0ofg2I+POP5kB+t8Rr8kdztPq54Hi9PMWcs5fodCD/QCP2Ev7RPFvGq0D8Sl389QfhMfVxcINnJJiwiMaUiV8ZzVgcs9W7XxgEdCF/ELO1eDWKOXsmj3QeL8VrjbdXhixgXLzyR6NZS/8RP5EfrTEUX182H7Jb23y73Hzb726+pfO3NWw+89t/F9DZBz/qjuRPsxK4IU+xdQK7JS/3gZghcEcXy5IjuF9bX7+lTXBGwjjdAyglYR2DIgZGMaQboeIgdgNMCL2mGQhDHAQsicXhmMwCAoRF245+2LH43wTPgZCwtDV2JMDsjo4iET1DHJbkB2chEAj9zh6EjiGzYUi5nwSYQ6GwvyU6fTMU/kxW6xO6FQVUt49hXxj6VjA0yoohtSJxOIejIVUQHYMgvCXma3Q+X5A5uiJQD09T+vKWxf5SkPDEOnDwtlns49iXkKYhHJU1tfG1dmIBBMW+MJgKQbzXFEBA2FES4JRD14py8AISzgkHHJUxJhBbEtMXhh7xawVDwhAfmqAppgEcdWHHB/NiTtdwINiJX3vil2gkKIA+Sk2JxJRTqIZVx1B4Zk9XoivG6T8sjHFgn4clkdjj8bBdlnUaavDOkGt6j6YJB2pfmQpgbhnI1DdMEJ2GURCA7Mzdyg07o1sQkPJ/dknAieAZ3hk+jXx2OktoMKfhIjo94zj0l+j70xP1yT6NNaNhTPj5DxLG0fa1OY6EDSa+kWt5okHwfo3NTk8s54PVP6X/fEjqi8jx9jufyI8oXmBJHNBQ/E/DkPjx9gOqsNv1fRO2fQA7xfMh6/QnZztuWszPw3lZgLf2gLcPjQAjwC9JSDj10e7dio69v2971Zu2uDOxqnAlSy7Kgr5eU9zkQ5vPCPrx6L7oqDv7/lbv0N8yQtpb4SAQ8h2JDxxFRYe+82F2Gr1lB/qUBMRnq1UiPjq6YklU+KO0Xts/S3uWFMsheTQZVvDNwL8PqViWWOtr4Yk3m/uK5rA08ojEhYCvpYBHabnHWhiP6yXhOIhOr8/GaIxp+MTxqvA6RynJ/CDk/x/PYLjj+EejJkiKr5NfLPN/LjSkaOC1Uke70A+mtb85PogagHowU/aSrq3Yz2Q/oNU9DGiBeSY3eL1ZaaEfiOIFd+pwH8gY+4I+i5aFfyb9/WeS2X0w+Eyoz9l6ycLCH/O9/0zVgXkoxXc1uj1nbK7JEA3m4igRjuAQ83nRn0xH8QFBbxN0x+SP/BI8F5d2DKfblRX6ifT382xNwKe852OxksI/EeWIz575NPhE1gQ/F/+JtPdd+D7kPZKE6JHx5yjGGyLFfjK99r6PAtiR9xLx3e7HhX8uyo45vPUH5rlM8SwgcdEfiHLMtwEbXlPCVzRUy2KL90g6yiMBfKrcF9+XVzYIZI/xgc4JE278Snxb9MfS2S/R+aAsG8xjeSQzdCaLPIt/vCsFwZBDw2UyhuFlGkNBJAh2z2XF5klAotN67fIcXQzZedGfiBqG/IL2eiP49kzGG4o5Po9mvdtC30YkehaL/R80DJIoDRS//XrRn1N3/5RpfmHnGHlOf8vndBEwxqun9FZTCu0pyf+LLKP2XmjsL9Hmf1D0Z9PraFsEJp7NBeXkRdYAe4T/oD7ZPh2xqV688f8U/SEpcczeFyLLJh7S/rMp/EOpO6HVvFdx2qxKdNqo4RmgttsD5XGCg91p8+t/ir49eEN5mbHwaq2ldFbLXH6c75OaizPGjxn/ZQmchwuxCPRtiP0lQaPtzwv/XNSivsw2wY6U3lPYvcvJMMBRhC7ojBM0XMpccvD2MIr+LNRTJnNCJq9nITjQWRKTeWnQK5FlW9vghon1zEvCXKkzameuJ86HuQw+LjhL1qURdjUGmTkhrwN+mcw2xtECx8LNe5WRxtoZjsgUXSWzoqNXjttWZu9OMPpl/1xuEebyGIby9TI8A+Wec3an4XjPYNdYYfumJXsS3cyn7vGeRLUPbNIfD7yy7IG2YgVlNvqP9xQ2nRhKsBMAn8rbG+o4KM1+0G1xdLxn8TC5LctTUPzhlrWzYSW+ntbbjeLfQe/rHsdj8eWrhDvdWk3m2ygpfMcdpd4je6hHh3O3XathHqFv3Xa9WfjgsnqTzKhID3yfRBGaSKqFB71/xSL7BTEt0MPC14hpZ0n0+HpF56vIb/bmRFp8R+PC89UNtWvx9Qao3S6+AddWenFkDqtrQY6ojyacyTOv+BkMJWjywZzXo8rzHarXSmMv9xTWmR1yLdbTQdH51mu61/70AI9Rs1d85azcUcp+YV8L8kPhLTi7FvLfk6LzVV1po3zPzrzCm8iqGt61HzREmBP8LIeFn7GfRSetNNs0q4rPOJ0vCl+v3tVNomghnnrCPi5BxF5t52tUkIcyNzvGIV6Ursy/aTSOPMTF57sfuWgajVwIvsKN5mmDPRou0OYSS9GRW02NDEeja3QhvhSdsl3felj8wHJ/35bLXr2kxVf+NQ3FFR2zcim0ZdSe22AeFj4Qp10Wrw/5PqTxKzr/ueYlGH2ktgqwwDttPFN0ztr9F7U4y1nSfowG/v9LKC++q6IOrTYap9vBHu4+cqFRd3Qv5euilteGpxyH0RPjq7R71a9bxNPzwld3KaPrDIu6dzIe3BU+raIWxpj1X7zxSeEJq+2/zAbxvHs08go/WbRe2+9FmP2ChRbk+7PCFyiqAxXNVtCNSFyKi9OKx5K9G7AWZBafzFnhS5mb+4yNxkVHk2nR8SpGW/aLPVp8vZtB4UOiSqcjs7W2I9lmaszmxc9wt22q4sfRGF3QoAROttKTKPswKB3OMkWF7mi4KDrlerNjUS1fcJY2QJuXp4BcGS5rVkmnXT6Enh6s1wHFoV94Za342Gavtu56qpRGtq1ejrjC4XxJgsIPSVTqyc2WzFxN0tnsRWes1NeZtfGuULPRLDzhusVj8HpYeF9QCWZkn2Gvx7fwwftuzSZf+UlDEiMv5kQOeio67Xptv07U7CWU6+8e8m7Oig5Z7bxjNFVyXfh7VIor0jV6y+d6Mi38jL6DklujZRmC8APa1WaU5HaE1eYO1xOBe7VKQrGaEmQA1UCd4SNwgkbeTdEZd21eJb6eFv4IVPWF0fjQn2ffR0UH3FAawRi1Mf4ihW9O2doX4LrRSyeCb+ErxpXrw9knw+sAvhncopgh8UfRMasFzEYNtxu6WMYvRH5Fg8KfeXa9khsWLjjBcvTXpPCliOpMNqPKYzwofDFtbz913TAqyeNh4fm2bd7gGZ/X68W/zqrdXVwLMZnTMoQqFCOuZ9QLGRMimzmsA1z86paWzXjFmETLyn47OmSxelQvQQ9b7ZlAWphpSNHD4O+iQ27rjpvRgsxmNCAlylkrCT+jBcxjr/DunnKhxGyR1vi+8MpCyYaYjdaP/y68/Kpd240G4W4Hw/JUgfcUx9qoCXdbDSk5Ll9hIuOwDNUWysUzs/qCxBELS9CQUrkOZdRCFpBfGH/elg+tSPHHRylnoFkb7pb8TKJSdPGzrKAl5oacW3KBZ/JC1PnPmITz4mtsu01AN9zbJRBvCJy7JeCsXNrpGE2wfvdjEhSdsJI6MesTfr/16mUYl6Z2wDaan/q+TteBBivhfD/R4h+Cyn1Vs27LjnbaLHHNeOENaqVRlNl7aZPBCNWLTliZSmc2rC8JNwpPeD/QYbZIYyI8b3Tty9UVm7JSy2zWmJucFT59ojTDMJvQngyRx57iF8wLH9xXSrrMTgkVnB/onLCiQ1ZLa43mAiejwk+A2Pkgu4slNaNW8mRc/MvBjX3Chg1jzmLms60fEpShCFQxL8yOqJv8fVF0vmr3cKNBjDsck1VS+HmhVodZ3pE1wSXo86kIstnpt3L0H0HeC439ZXn69Km6w6xcTzzxb9ERW22N4RH+gwpRLjpk5cKU2eqBLeS05wtnZctMmQ3KeSRGU7Yuw4zyet3meeh5hfcElXiR2aF0nneDpoSvaFgGH1Dtvmw0xOxNC9+xT6lrNtsK2Ct+vyI1hG9WfktyT0oZ5Gy2NtF7KH4eymYQY0oC4ssufeIDlyKrumu5ZSVRImnLAc6kBHd66k1FORutw5iKpRdelq1eUJtOUAlavih5P7ORuE1RHJYrLzblTt+iiTHlif9cdMIH2tjsuZdwTgpf2lnv7NfFmb3GOn0oOt9206II35/d9euFr7y3e1HnfnyJPMJp8RMjljlX6b2j8n3ASVD4085qWOihdONIzHoeD5NbmTeVn5hXiZBjw/YKr46tCvPjoGrwclS+117hx/X19gH3jQkwm5NVhHA4R+slC0l0OsSzgKSD3FdFh66UtDSzlyin9P5o1AQ/8XWSEsznKZAgQOn7Ff0hNLUnNB/tIVzg4lcbNTq6lsnR8F8xFq/LsAXUCujsyv9oz+B6Ug4tpBg4X4iXHO0RbNvmDnxZm45K+kB6oB5IGWyj/T4SjeylZUfjn77VyVMJDudaB+zBUAolBPhgvrsoh4+mzBz6QjX80R6BbLBQDvtUewJGTs9gTdg6IKeDcM7ZgoQsidCE8KgEVYX7BSzZL/tOUnJfRz7GPnpkK1x80vt2T72W2fDRRx2WA7Vq3tTbmQNwuqwnQ9lrufig9+2YeitzlEcX9F0ShjRclIF2bz9x3c9cRqTL2qOxnIBWDiWiXAHuZ44TaNOOhVFTEtFu7Bvj2ceL5wa7FLJtDzeXbTF4dCrMn9K1A85e93m3oaXBeTAdo827VLCNwJ7ixa7rSzm4a7eL0ud+xhme+ziKS4JcbTOeObOtj1z2JhGfGe16lZQSvA0dc0kXeEbjnY7ZqZxS8rch+NeDUTlh2xD26wlKbx4vWfhaTurZm2fnQN0bXpeEtnqdJXszUX3c+2UY5eDeV6azWVDkt8PzksAGoMhvSfwUsJeyAFcG02QOHeoD342n2TVsLAt5ZcpV5usE+uRLAtq+Ttm8A7oO0VlCAxm8LTp0pcHgW2sEC9QfabxEHg2oz8KtL1p0+kpHlex9SvXhV9EW08DXuDS468qFmezzx3LgHTMux2SVg7hSfJX9rr8+8Omoyg8Zg/3AKuVtEPcj/kECEi7isqTiAPidj5QL5qWJY6kJicw1nV8nHhE/4TR+PR3KXhcUXQjyLzgo/LiAltK+JXO+2duC02Iuv0Vv71Rw5KqUZ9YreSAvi3w3lJaSmVVKHrAvcUyeCVkXX4MrI4GzX1PPBXeC+bzwpBWLMHNsNg/S19+98pyUSm+dzLer8gB+w4rfo1bp75m9nXUeoG9J/ML4c2mMkpaiuDOHY/OAPrn+uzTqRPUurUj5Nv1QGuZKNZBZZ4f/SEs9U1/nPqRPlMzRZDsFIs0sF988VGacfMUaTynq8JdTTkKxILnOqJzcs98M1+c+EjrGjxl/LQlyJb/5FU9IF/kFDUhUCtg5RLHygF0S0VZof8VW1KV9xaLCd9ZWr4N/xUTU5Xw9mT6URKpzMMh1aY+pz9kLmZVDaUMA/v2qJNIN4ITcvMOm1q0c+Uxl2FL2+tkcoMtGlJz9LIvZrcSxvpJc00bOnuIXzAk6w5Fw8cvBXenHlD11nwN32XQC8zkqg3EIQZ9vqwvLIeBKCKWXuQJLH/h9SOOy6PG2km2zED7Z1BfKeGE57HEAQcLHx8eSyHdnvx+W0Uj4Rm9vMxFp3Oo8XNDi90fVno6zPfF0mAcsKXxpSr2nNIysZVcl2qRHNHomcVx4oW7rTpDUR30xRLs3KThsJWTVym4E6sOmM+FaDpdYfM4ASSlHXjKLXqO4+E3G9Z2eHPCL43KIZ+KzFt7HVFSLDdx3JEgT9ViIOo7xDEeF1zGKZZj9qo8+9an4IRpwjotf9mZfozySGRoGSVSCeLhdwzC9Vk82fSUvZHvDXfO383gpPKlS3Lrv6Hb08LYUdR9AOZoc6IdUcsA9DHAUoRZqlwS6cg88e6vxXKArHT23DSbr9eL3ae5D0DFv/Msh8rpztfNAvu+ZXuAZp35J+B80PrQi85ckJClz9hSXw5xRskTZ+03mgf1afOIgoJvvkRfj4l/RUrMX2bNzeXD3Rrcl0S9t5bKnFd43+JVw1EB3ZMViUhLyqmb/Qnw9N/TNkjAH4aSOL/9GvVqthsZJENNoz4wv+gPQbgyfywOQ3E92ZuSmdrQc+JVZWXasmhR/kOqdUil81ZWyJ/tbg3JEpOYpOnb1nLWj9Cdnf5dEzFWLMnuWKQ/cnInXVys8C8qiXkBEhMt8mloiTle/ztOScFc0jJWD9FcoDE0uH9H4clh47B0A5+gD5XGCA3RTInkHEYPf1KxXCVYL0MsBHEY87JHx5wVnybqifnzqL9smxKcDmVINcdFhK50V39owfB72rm2zDuxLId7hHE0JX9EQF741lzLCrL77sVnod3hOGZqyl+LX4jW7ipRnbr+QB3APp7nT4l/TUMeBtDIHdXPFLS8OFP7UVHRK9qKMPJA/0pMLKocKF5229rC4fGhv36PgsBXtnf36aJ6w0Rmn8xJc/tpvLZK9L3GuzG/YpoUlGqzXAcVh8VNEfd2O57nyn3IcRmvGC38LTG3TZQf7zeAWyZpezoKg+Mb5gb+fOa71Jegc+8+neO2fDiZD5K0wj9H9xEP1Wq120pS1MA8D1Ljfhx8oPDhdLON3Cw/Ik/w2WmOfhoub9LtRva0+IvFR5uzl4+f19lQOMHX2MTUPwyJySR9Skj8Qy8yDT3uLpg0YzQfGrwk03XZKpg6YTP3QE8ufzEadDeVXVO/X2rKgieIAydph8Wvxtk/Yb2dLuwxsuNNUOsgadSdZZdVIubBq1VPxEngqZJ9C1ujX3BQvC1ux0a+7yeqDiNvxWTmqtqywalesPsmq2W+0K1afZdWqWH2SVbdTa4Ln0jFvHwguLfBcPrgmYIBLBzyXj/L3BsD0wYNp1g8j2McHU4evYRofpFOODabXbNU2ofxNWP/ku3DgQnlgbScRilX/LtQPiZ2FU2vgDVC73Wuf/I0Gc7yO6Q/yNrbRBWQWHN6BdyejunXwW9GCg7tl0wDPxp7cNMRWq+j8jg58U9GCCb1lA99c7B32VjDDxgHDqN4/vCZoAk5fHFVwqVjSNAJKBy6UesvOPurX6jW4VBotS7LSl78OlUqnfVjsfWwqAsD8rStfs9aEJDRK2ap5OEPMhffJ0UT8gMS/Sp1QQ+1eCEmMLOjh34JqA+Zkwaf6LacOZIGyYAoOcYyD1yhGLXG8f3yJExIhK1vujVCjJ8zm/S7OIfm45SckaFb23xu0VgXtS9AqQL8H1GnXmifn8BC1lPmrFrWVQNRyAJGFJOJ7RB0HENU/aIdnklEfPKFGw3yY6B2hutBFgOH0zScX3+AoXm+jhp4YR1cTQLjUe+Dmc9S/o9VspLRGJAjg8vpgJJktXq0afF5Wgisf4qrXHMAFSLzqlfLKQqtZSdeHvK7nJIx3Y7XTutCPZuGW3NG7nnio1RYKyiNhJD8wVDYW4lHb8iw08H15LXh7RxUuIgvic0t+JpHMcNfQrjHg225zoD7LGrGG8B2mu0E65z9jEs5BVwdY49RotKYTdHlesfoEq2ZjMhGbsaL1SVrTcUXrs7Ravcn/VrQ+T6vSWp9j1azVO/DCnnDoVPmpf6PTaVV0fkunXcnO7+m0BZ1Jhef3ePqdKVwuVqIBOy738OXGGp+OvHoEnY61XdWRV0ig07FQS7Gh05XNtuq1Ey9gu6olOXM4imgEl5aNq7bvcfUcw9W1iqvlFi0bF9zf0eq7RatRM1++8/3WQ/V2s9beHyY6TKKYrQjf5Q4mAY6fGF/BhWfhTNyyExp/eIO877fn032IFbR/hTYeIG90BR1Zb39olYXC+w2xVru1kbGTQ2ic/aCRQCMbMcAjeCh05svMNgw7H89MhomtoTTabdTNFwRNlq+RbBz8q2lF6x55MeNY7akOScAsOACHoD5Ua4XqNmsQW5E6OxvE1gKMzcImvR96qC2LGcF7AhasDAmn02j17ie7pJ/sTMj9XTN4qKgsaK0NqjSO6hQqC5pKoho2GmjcRJvJznDpWBIkQadW4fkXPC0X6FjbWi0nhMcank6F51/wtNxQPdbwSOlpgMdjwZJ+HJyftOsNuEwsnFaSSadicsik24LLxIJqkUy6zVbVNe4QSreCsg/l4Rw1+oC3jxWVIqC0KyiHUDoVlEMo3XalaT+iUqnaQyq9SlYUKmT2Qbt65NW7NbicbGia33BqQuYESJ46FafT5fr0aoKEA9m+/NX67n2nBECENHtJXE2+iifl4b1GMVkhPx37ex76AYsSDrgcIWsyLyc8XUfw1FtWxCfqtN3gkzW893U81+ETDekZDufoYnQHXe00zMnNhLMbcVQJfXzTadT8bUR4I05g+RhUy+/5dCo+/8qn14bKp9m1zmd0U+/U0GUPDhRd7yIXKM1GjVRUDqh0KiofUllXVA6o9IDLSlYvMy8qsGXFEpV2ReWAShv4wWwBinfTaNYiUFR61nWtgNKGDcWcpOxaCg43lcHoIiA/T+o18e8IDh0bbhGdrU6vz8aoXq/Vag8DdD/xAAHRnF4uFqZBpF2rnTQa8Klk3UV6VLrtFrph/mYvRSwgaIxDvIBclpdV9+oBuhfKBcdogkPyi9FfNK74pHyaDuiZrPPJtYB0HACSNfKtBWT+U3jOcFkYVbdCKuTBDBhH1pyaLo62TKZdPcAFYlR5CCDddiUeWxo/m8LjQeMCFd9p4mg3KxzvcVTS8R5HR0pHEy4OoyftFgdg6TCNA/hmMY2jD/iUNcyiC3lytXEW7UqJ/sLRE1rj7zZcHEY92Z/NfoXj+ZSJrwE5vSUxx9tC2r+bJ40zePd5NQPw39OFagIaTprysvxgOhzsqo6hYVKs1nrG1qK5YepWmP4T07Rfg01J9YGyTk7OD1OtgvMhnG2RpNTZcNFktXPyIbPG3EfT1kkdvOhY5rM77NGYzZMAUK0tiDP/jVPxepzkwufvljzroaOxssX+7vxCU22ufUKbbXUuWwKuOY0IGrdcOOWz5kxyp9R2gVK9ZQNTddb/G5nqlP8PQvDP96zp67zItMCTyVp9qEsmCbcue8eZ+8OGNbJCaHdXfzdt/fznmsuRKRtlhBqtNarX0OXsHBBCy3ppn+C2Spr+Q+aolZL6DcsK4AHAKqL973hSN+Wth2clR4egRjjGQyLN8O39/5m8/78dmdXsAGKlWbaSA6udWqrXpJLaMuo21hWkDyD97+jufUeJSxyTF/wKr6uEfWK7SHfjBHDhi2kLfY8LoMtkAOxzJzIjFveR4HIDF4zpMIkEs5nYhRrycpmwhgac49eK0DtC/+fCe6PUrTcKVGiWN5wmZDiG00QCzgXlBE3roC/LmFfFKZW/G3VYVBogqLSAUYEhKy3Q94ks6ZW/W52SU1nT+Sle0BiL4yc6HWz/Jv5jcSBRztWg15pRGck4/0HCONq+tiPjp0EO8YKwEWM5PfFGQTljccxW735hsP0vY7ZW+aloejUlkHOIZr35+wEZ8fpuXVEObNC3QegvGf+fiswBmSFnUXRyRvCqonNIZ0QjHyqX5uGxZIyLbKxATjYB5QmezwMClVLLovRcpt0nINOxubeuSCA/PVQ0HziVxtBcr9YkCAjYA8smmwlnsOD0FR+q2bAHZ5rwGQ3BqhtjR9Z6jTmOkwiRgKzkqk/HOFwyNc9pDYz0d/fI1LLtqN36/mjUzrcrzAOSx/xnEktXYtueTawU3bJ//gEDrrnPLePpfixsyXrNeIzOpEdHYiCo6qqIQUJ1QxZAMDXaIHfiltMdDaGAUnVWI5syPzIo75lyODvPvnaXC+T0KVmQ6HT49nep2kfEx2ltyzfP5+QlDRyxgM6RtxR2FRTToX6gvjIx/LXkvNAJh4UulshbEzIHA0kVtGxK/hiQJoQ/MSG9BJo8AUSViM8Lxo0BuOHe9BNYoQLIjKSHh3AGIcUuAe4+YTCsVtX2+zdCAK0Ci3LEVmnhPeMROkE0YqdnAXshaeLtAodQAWUUo1+LFMbntfc9B0y/3lOiesB+kqzQJFmtK2T/jQx9e5NZOKFy4MRGVPwexwswGU3gvM7/L/FjONlx4LQmNIpZWMH6FCwZvqpQfQ4Vk0ktcT7CSd+AJxZj/lrB+hSs1JeuWH2KlcyisorVjhVP41QRWnAazoVCPx1uXgEK6IMSzH/js12dgHO5XV9+hIT1zuCqc1CgrjCoaAxkVNerNfbjCtUnUP2JwZ55oDhtjM8K1X+gSt9qiHZvi8bYF69BqY2BiG1MgyDN4CSBWBH9p7IaMsGqzsWvUauOyM9Qq/T+Zzk90BnHcoUVqh2qOafiHU5H8g+gUDJe/kiXkj0x+B6EvBmT0Hnat+sMcJ2QBTDb+KZwiH+QV8YFngCsgjbM51Xakt/FquUxtv12uMSr2Sa7LDPwT/L1aqNJXlcEx+k432QFF0i2IJ0ekE0cXAhIskIbdSyEZpqsZoEUpEpBbzF5a45fKxw7HGmQ+5e8yGqxX9+N2Q8pOzvNU3ZkT4TMJbOL9M9d5glN8QzO1c56raWjgjZL+zoaeS2PcbkOHKDNm4EBo6WbjwAGfRsTsV5AufGmwqhtH9F2jz1g4dVDwWRZlDYnGKj7eCoRQ4JD41jsnuj0TJg48/TsAsKjpXU8XWzXpQGEE/wcLzlLFksgSJo9rT2jjWQY4NVa+OMXAQ4XRHgOyTqAc6uuradR9OkwASeM0hZCMIgoW6hnHEglH+9wiF2zIrI7JongiAgsKOjbiMTCdpELOxG2DHsqir2SO6jzn+tALK3i9B+cZKu7kzsS0SjGIdwwKSxMaRij2om/RSesn/m7xh5AyDS0HIjcuIyS1epV0PkBJm7Ra9sFkwhBCaCwsOxWXbEIjMetsMjWi0sfxXW4uS4EBIdCw7RgXMul+UupQ2QweBNG//YrLAHl/LEdl/iY03fhem7+eh0ioXB8SCUWtpG9wal4bHhw+kR9giay92jFJGVyR+aJD8Zi6do15e6SdZxwAmnP2A5UeCR4OhGKRBavhQt0RwKCI7JJqgBBdJi3bBlmRAMSwtlEdVWnGJcZ8VWc0BvHCAgUu66QF3NMQzASYjlAvqMB63KbZSgPYm1ASNj2lR8oeZGHzWWAowgIE800db5M0LcbOaEEUPmHrejkUpZykp8bv5DL3Fs4J2EERtP2dJSKrFOVHTzflqeNZ8QS6TtP6JqgtAr27b2B8Orr7LL8eZ0HxI859VNYYCBpGnj5Y7qgP2VjRXmsC7WEpsmMRDDlS9VT2Y62/MldYcrXNATHqf+f8xHNYoK0/YDp9P19Jm1qGmy2IFTjAII0vSd2QcNQ6K+K2ReZ/bFpYAkVnfXj8YBdwDbRNPEDsDf8oAlcGrSvYH0OlremvDDdPg3g2rNcoWKzLWTpDkQ4nKMLLquonDDwMw6oy5/aHZkJgwwMH9Wwb9qlk/YGT2VKbj1FpFAdCLTOvkxla5VgGlqjgpYdWrOC9iG0TSZvImPOINV9H9YRubG7YKJST8Z+pulb+bOaLml4ckGDFTr/gdeMA7pApDfkNn9U9ycf6CwgrIBFCu+RJ39r7lIQ2jSzFf0pUV2HJzc0JGh7T3osX4VCqK/lMaZL0ebixVh8blhc9DxpPS5/hQQDasrQtYhC/NcyfjfBMZQ70o2ODRzrZLWOTof4B41fQU3kaTT3NWwmW0cu5MssyNuwnRQIGB9W2S6drjUiYBzUxh6Rrj0iULxPazIi23iA0h9aZQI6JC5xhLZj4WCg6DYsyYQk8W7yGwwaB2WAxg6WS4I5pC3S7u5HE+qmQFwxTv9hYbxVnkBw1NvKFPi6MSBFuk+pw2FCuLzGH4gPDASFGs3tm0KRzmqCtD1Uy6JjngQYu1N1TsztEC+ZrYSbR9MaYDjCUa/tA+lmur+lB0TIBWAS9Z6xjSK7ucKZRNLfb/mWLQ+mgwHedOF+f19bGDtEHrafFRKMutLspd4ytUHQCZrT8L3vDgWJXkx4i6Q2ur7VAvM2M7nC8h7Lue+nEuOjR8YrNvts0ts1bIUXIYFjtAOBI/39ish7Ilevc46ToBKUfSw39P8ldI7+JFCuDwPhckd8uubMT0vtKzR7aDYZ/80g+grNezRpvKBCskMiB1sLzbIJoHzbqBqo9fFfxPOVidbv8WzQvPMLKj4f8HlzDyo6H9CRxl4F5gMwlcb5LZrNmn6k3crWAfbJihSm0XPOpDhbyCyyhLWpVaowfYBpz2DeGocVqA9ApTZiReY0Imuclu1Hp5d8UwPo7V76Q46dJHEcvB9FCYOYXnX/2wqzx5Hf8dqMl36Hq0KzQ7MvQvQJbOMPu3SEy/HqB4D65wGjowSXK0r/RinaXHWYcGkC0Fj+rAKWEZhUV48EjAUOjNuE8BUOxYLRON2RFaYPMckuoAmnSJiYyUyYTBWmDzGJfVYh+ggRC+icPtG0D1jAIgImdAKNjpyNULF5xyadDLvbU6UHI16TjusK+0sakuj0/GfMk3SqMLC4SF2nYYS3WaZw/8fbheZJClaYBByoCQkC4Zn8I18ENHBCjScBACVjt+A2HlRMd0yIFRijCB6m7Xui7Tuib7/uE1XQPg1tVxtcIdsi+yE2Hwmi0zMMpdZImRyUrd3Pw2Y5OhjQt2vvOxT5sAyDcxLI+NCIJ1BqgJXb7xnTRvkiASUqeo00tMEk4fN2Mk569+IsXQkUNprJRl04AorwKWKCpjh8hoJEkZeuUdUylIZLOllKbKWUivhzKCxlwqEWdnZNi8xvAaFvZ4yBiUSrnLLNFTg2p0oLfRLVDVmA7SBdr9lRTuhbGnpNBwVsKvrSv17iCFC3bcVEzDZ6SBfVdjBTdcAdgJHmIeMI2mAvrbaXulAuGPfJ/GTE8VMsyLC0yGoKqGmQcme5n+nOsjadhIfYh3KTXclhWEHRgMnC8LmdttYSnz6AIhrN/ZZBZoMSksYVC+A09OzaDNFc4eBpMxZx29pz84ZA0BzYcd1MYxt04VyHckY86PNmv12IWRfzT+w/C5tt7ojoZGquo8vmr5D5zycsiSGFPtt1i5oGUjtppZlKr2cYhNwtdwQDal6n5gkydZfRJSJrktBZEjwjTxDBCyh2it7sa10qaV474fQfoWFBq9aGWXN2wtkaDRbb4mMYSKwqFFiapGXTnH27eQUpjmQ1vr2pbxxxCubwtcxjc8Igb70kHMpBYzc+sAvlgz5kzLo2gNSHVX0qOcDOFmbrv50Pj7dsxRmOwFxDVDtEWgJTFW/8O5o7xp6ggulb5pJOqYQmO/sxk7pZH3DHSHxyOFeaDo5mC0fSFok0WyCfTj0LaEZUfkDYisYuFik1jhxVDQukLnAQEWBgFCu4Xm9Y4BKwTYsgyFvLvJ+kgAGvks0CApQsrLf2lXCmiVa5gECPNF6iCfafAbWmtUplM3wCWji72dlnYjTrLltBoG9nBFJTPyXfYR5Hau9WPFIe8k9pzz09CRdAwBlRvCJitWBKatVkqlGV8otPau9uzDh5KHsJf8I+QdfhnMpeh3DuFCvGXc8mr/NwU6N9xtPqFjAy1bHpQf2G0aYnVOpGyeHs4kyHQsvqtcff0NoiOtnVkW3Kp8AQa8AjBulKieqANow6oL8BdAdpywEUIO+ZcjgqHKQITZeyQV0grIIoCUBZBTAEiq3AZPj6+2Xz2UYw5wXkIgmCk2kyIwfn2ZBROG0xGjajYjtWEwrmeAchOx5ZUQdkp25adiLx2aJTHFKhiKPTMznwvP7fMJ5oEAxZIING4n/UrKX/iNejmLNnsvtJyNLZpl8EdQD8QK6UeaWHR1q6uA9ppT8ZbFaty6vhCC81n/zBQOijAxsR4o6A9RQr4LCy1gwvVwRsF2z6fezp+LzYAn0PhfcmtKyj1A5rp45PLfE/UXIIgtZbO4XdCXmYHzg6rgvhxqArHPvCf3l1hJsiZR8Uhxwd218kDD9T4wuRV//wBt/ReY0Ziz5RJQ4Dl2KLWRCvW4aE9o/cBGbDtvDIZ+apg6B1UMRlwdb3AhY7Y1Ps9wLpWbApvBA/O6q9rGzGGM8+0ySj4rXhNSXz+Ss6+9TAdhDMOv/ZnudozJ4Ym8vun46Q0pauC7Her2Ia4jB6uwsQEFfMiW7LJjP29EQc1V2dzEejDqkRp6GsP0SPOHYpEGZTuhRmDUeYdTsWmV3gKEbpG7gBS9mUH1RhHROW+IKm3J0YmELrg2thR6T1V0ifnNH1+0GculFdf0eiGCcch7Ezel5tjmdUZ73j5YqOV8pE6rXMUcIvAlsSHMRLH3NyOgjEZwtxOpV+TObUp6Ez21NxiTIHDa/eMGgyDIXsLUlEsSvklPPSHrkoolEqezeyGXco7TTvVfztE33nQJDs6ZppeZE845iGjkADI35DzOdUrHnhTBpOiW1kNnRzJEeQF+OnJzTgxBm91wWyW4c4XiKxOle47YvdR11ITIGTv+BK2qmrWwCUF7URwU+uMOuDYcZXOHbqcFDQZa7Pyw0dFSuLnQl+q/EQa+bI+aujrpdVZOjRoWK9pmYWLy9uF3hFg1c04dgX63BG7HRTe7nhozyK0YA6GiC3B+6ShEQswNGjwd5+3bwPOp8nm/vvjvKzJnfifbg7gfR6TTknMgeG8+XWcISbKm6Zi7tzw8aiNY1x4IzEwdmoO3KuyFxPN+mVF7nr1SoJ6T/p8eDM+QrF278On4iwhFkSoRGNCHa1ct4mwbUQPfExXQEHJXNzLT5gGMkcmAyqu0IPjtil+evAteR1tw4E4F90HhJXQpxgqN0koTt3hRRo1pzYMV6tmPiZK8l9MEou1W1ppxvxQddyfgN3BaFyk8haoHiH8IbOOHbn2i00CbwjPuNzZzQfHHxhvGk1GDhzCVC7aj83eHfXjiADE3+6JQl3KXUNRtZuk5hTlwLsutcC8wL3PfRdEjgwJ8P3JEYTpwIn7Q4QkZssMV9h3xWRazeBiNxk+RqlxpxsoInXrvBTXQlrcndHFlSs3Kk8LJRgpydeQDc4XCSfmpUNAp7a+K5nLRvrMZ+KfesR/oP67tTXQUnyeAlfuNNy66BpjTVu09HIEWZg/Igpc6fbz8EI58z3XPOidh+IYzViSehMXZ2yRa3ZJI9LQgJ/iSlHA18cDRGdBcSZ6pPdhX2gGBuOYrSm/T7G2HQEo9p6w6w0hjhOZGE75s4cINrBlNt0zV+H9Weypu7kxHq6lwB0cY3xWmzHG3cuhfVsC9gYc2e8LeusCPcTZ7ysXdt/e5uRORNF0j4YdVndknWcOFPipW2O6eKaBEnMHIHV0Y2O68Ly5B+u7ER1pKLxneiF7OUpcKdFr/W96CWhM+64dlI5D1iuON0gYLniWls3TiWsVgXrc7CmURLiFXUFl5IfNo7rnuMwccVN7LQsq60H4hAs3Tt+X4a1JmwdkNMzPHt1xnxQ3MR6rZEV1yRdtSYuVwyIrm7yQ5fWcInDRdp5MXaqpkU316vNjYViwYnvEDM1kGpc1i7ICjszp0S7B7surbE7rNSWFW/fm6Tljovd1I1H5AHLlROyqRt31oaVrFauJDTUJuzGYU3InIgVU+zMoagbTNUl5i3Zi0PjXNR6WPPKawvMFf2lBnKM+0OeWG0QOFMgoVa+Zr81rAvsPqQR+ekILjUCbdzwesRiKcJ/vGNs5YwWU9zuL/S0zhWbK7qsp1vMr08tkOO8HMHVtm2NPbKVQ25RS7vRfD68XNmNLWviFeEnEr+enlG2xP9g7krBfr2m+JKZJ2h46cK/TmyIE4cChtrZbW1cS7JKL6s+Erx2FlvmU1IX2wUOgo1t4T+7kmXTbracBzSWxMhbksCdcnLrW/SC4wV1JlDd1a2+18V1hcN5QNAjjZdOdXzU7SKnzY0uluiBBTFeuHOzrWX7INij5oxZqxuRzZWaM8V1ugVQutT+ImSNRs5c/dC+h6XL69aV4nzrJsYtC0+uWUj/SW1aPKdOFaoo4y4zx2f16aHzMHZmXwKQNuStmENRRuvu5q+cLxpyFkUOodMtstZF55o2eyvn/PJsGl1iXkDX6MqlqGNXO6ytzSxmnKA7YdbG6H7tjPvUte0IKNxccaAsajWfktAnp2JFjGNBzxmrQxvZZuUazMZ4ERJX2oB2dS+Q5MCL+sLY8NnalRia9qUbfWa3iR8Q7E6xmX5QIzdkrip/C1L2SMP5SrBwhJg6qN0ksTXjcXQ6WK2XNCbYobSTbumBl65cAxn3l+5081RFLLse08R1hiMyw85syba2EtPlRUPmJ0GJGj9pE2PCI3/BwbMrwHSvd+UALEY3OAl9Rzv9tTNXsusiG+LV2qGrEor12jWuxba8HDVd21Z4PVF3ijJsWxWS14K71LFZ8SezR6+1iYXMnfoVNXeZvVw2F1yu6C/1FnTLvAJLuy7f0CdX4ojaLfu1iQV0NXMoYamdHdflJRO8aCh0fsxfkfdMZU2Go/rsC8nLY9BzRb2psmfe/H/1A4e2qnJ4Ghe2EeUxOqPOdOlU5csCsB8OiZd2NkmXFnsJl4KEc4eAImbGjVoVnKP637xCO/9JuE+jSp99ktcF5eSFMVec84POItnrpLSBRUuXVNnBkLjsxcU5EXNGhym1eHXj2n9HbELdSfbadtIlMzQMCA4dss/2Ja1jfGtessCVCT/q+Afjtqxk5Y5oabcV0ccVzlmAHcGlPTpaF9cVFvr+MqBzd0RMYdbpGGdGn505H7Wn1+QAyyHRUoKwxg/GK8ZlMZT/jKYcU1dKoqxH/q99grbGa4Xs88i8Zxw7hGzftPjKXSVdZsK0YBx5L3S1coibbRvjTxLLeKKjuIybF3/hV+xMpaJtNXZDnwj6UxyYzlxPOgiMGWc2ZjHjM1ni6UowUREz88Urv5A13ETWNK7GJtQPqe9ayzLbVRhbalMs59I7uj07xp3MPWqO7lDzFYx3OFwQvhuu5I602S4tVrg5I2+6s+K0uTH/GTlW1Kg9aSkfaHJIgkvjvOzv0XSsxCzALgW2bZdN3bEXaeO6gks5P+vGcSWhQ0lftWON+S354Agp1Zw1XkzsYRqgM4d2onaXAm1gIY0xf0UjKl6JcODaxFDbroAnPppwoB4oeUkhOcJNe0CaPrdkhpFbxdmKrBnPcXqERPjFTVpt4wEhjwRP6DJJCzSqpHAmck5HHo0nN2UymMxkpwx3dFnHtnfuPVP0Z7JaO8JrV9Bij1dA5g7Jl3pPzngSRfAia6n5HVNmfdvKbIWDjQvlVhsb+7cmvDANAvG5s8Jm3tAQyFZs5s6kIdUFML89BTGh0hhx5yhQu0GYl7KEO3QPQG1hZh7XtkjPnbTmvq2xa8togVjDFWJKVVDmYdw5EHNnQ+p3+tekNSVhSJ3pWWnbqKhCPRlgybi1I6x2sX1rLvijUylx7flB2rTEB4vSZhgVsk8iW+KApKkkh6DZbuos+9JHbln41uWMsTm6xPGScIeoWSuMiom/PB04VPOvuyWnYsEanBz1gvqZvSAdTkO8Ihy7KlPZ20TlwMpRucoej9BiRYIATZabFbpAq6Vr1mvRYqsVdrXRtVnFLlCtE4cSabqjM7RYceZMYtumTJ3/X+K7UjGnRpkzVxpqgZK2ujuDBNX4stHNlzZIdGjeg26bLB1WY2dDpV2j1vqEvbhz8tUtnnxy9DVzBZRSoZq5RkkLlOe5gslmOGFKArKW3owznnJrP071hXRhPrxc8ZabupWo+eBqOoJLmdH81l7ZNK+WK7zqILRX2xFcVnfjvXfmCKaWbjm4DqYHOicMbYKijvBSbIiW0TPxEW+ac4+xL/50xS/s6jad+CoyjsM0T5heAz1tocclEWrMGe9HCdNkPx731q8PcED5DLuSZFWH3fWz+0T541sH2CH7X20flj1OcSyCrngE9dq+C9XOHmo9FkJXvIS+dlLtWARd8Rv0o2jHIuiKK6HdNetoBDuuENzfxV/x9Y+FsOsIQvVaYCt74UreCFezRCD0XfFDtFtU5g4w9JeMu2MP6tYtHomfK9ag9pyqI/FzxhTUrTY+Ej9nDEHtQqKc+Z1R/9V3KCADzQzc8nPnANFtqncsgM6cINp5/iMBdPQIaWfPoR0JoDNniAIQjA50JpawfwhnbyaXO8AkcvUAAXACC3iOHh4N+4eHgOfowdHM3JPpGPBcOTR6+xHorxSS5UxviB0KuyidmqwrPQnPFaWnRk3tb1xJz1WtB0L0XNF62o0jjwHvhvnOzBVU6l+slx/IFt9zMkdXdLF8wa+OYFSb1lnfwxeEc1fgKTLYsR4vkFfCYp64s4mVE8R63veC8eeAPjlz/1A5RKwXEF1id8IFHe3a5iPAc8Vy1q/aPQI8ZwxnaFVrEp4rhjM8yeMsCedIeVs3YKoWjPWc2xXmM7lwF+llb2KfOz0SUJ+t3eleogZgOtYDMG65bx1oRRt/ErJ2xgJUs23WhS+l54oJqN/8JGd6N2LrxkuWRA7VvEDbv+8YuiKHbWgG4ZitydxVEbR/CWmDzxXpA1exMWYx42nVi5sEO9YzIRMs1oGD4BV5yWxF+EKI4yMn7kRVldSIdaCyWRIWUonSXuluUuxb39iez5hD+JRqXvv4CI7RGQlcie33oF3MFADRRF6KcwQguAtd3pK66xtbjwym9JyxCqGVok5x6Ir5osYE29bDqlP8kzoCD5zVMmUvaOBOQFXhZ78iQbyfH7t0DVhpX2vd+dgBdPTosF/YJufMhc7IXxua2bzB54r0dXSnsh4HnzOVHdDusG7weS4XJYCQwZUzClB13CBYMCtn9J96gxXABk78Z3eErw9O+CQ+R6WvBUDzSXzOnL5K9137zm+Kz5XKSnC3WDf4nLm7r9ygtp5I3+BzpQlgF1zINMXnSgNA9eiwfvLeh0RAQncMOzp20H7C6IEsqexe4tSdOAWilfjfDxKcDjinP2Q7/ItA1rRFjvA7mHvyFQ9ErF8LHHtB5zhyJVOu3oL7it2SA7Hbc1d45XDS5sFL7PGlI8h2MmUb2aMjvPKoa86Bl+fMlgTCiyXVlsyIrNqSmXg9EnfsCqW1knG74gwvFnjhTL2dYoYZN1zP3KlxUkXrK16SJis+Ixx5S3cGuO/r+6+1idNjRnASvyIPB+6kUjvWoTH2jAbhXNoWAg91S+aUM9O4SpNNue7Ep8OuTC9XujN8bZSLJrJoSV29JvGlWgc9XAzHaLh053aTWh78pcmHesgSzknov6Lzn/4Sh+4YaIqsGbdnh0kkFuBKJFa10b6STdbCNWIvYRRjyl0lZlzARpyGz2nMnyXi0KSumGk7X8neqTnaJkumLHHm6GxYPjrPA/JDXmt1hFdHNc2M+wLnkfjUDhFTL1J/paIjH2BIngWuUFNOAfP78o3avTOOpmKamd+aCWeOsOopVxSMB7LPf1JnQthKAMO4RXYlzFc/cQVXu2f7iLxiMXEl1qOW+tiBha7DJ8ZXTl1wUZquGz8hr1crKl6ukGVA9kvK3LmNYTvl+x5awxFobdvVUXIIhzPx624Od/U0aUVxml+SIR9HK437X7njrUVtnEQkWblCK4eeFlq0bhmaYC4Di64Qs51V2uJy5qTs5jAGJxdgrpyS1k2LiSSDvj8J8198QmeLyixsTYfOyTzam+vBEpIlPpwjuLq2I2OytMeZZKUiW8ZtMM+p1K7tOzZTKryiGI2xv6TOtKDsWY8nbrFNEu4vceQKN+t7c5qEoTNxWOsJkfu1W2Uqii7Tk6726P8D";@@ -12745,7 +12746,7 @@ R.appendChild(S);p=document.createElement("div");p.style.marginTop="30px";p.stylV.className="geBtn",p.appendChild(V));I=null!=I?I:null!=C?"export":PrintDialog.previewEnabled?"print":"ok";I=mxUtils.button(mxResources.get(I),function(){try{g.hideDialog(),O(!0)}catch(Ba){g.handleError(Ba)}});I.className="geBtn gePrimaryBtn";p.appendChild(I);g.editor.cancelFirst||p.appendChild(S);R.appendChild(p);if(g.editor.isChromelessView()){var Ka=function(){Editor.isDarkMode()?(R.classList.add("geDarkMode"),R.style.colorScheme="dark"):(R.classList.remove("geDarkMode"),R.style.colorScheme="light")};g.addListener("darkModeChanged",Ka);Ka();var Na=function(Ba,Ia){Ba=Ia.getProperty("dialog");R.parentNode==Ba.container&&(g.editor.removeListener(Na),g.removeListener(Ka))};g.editor.addListener("hideDialog",Na)}this.container=R};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="28.0.5";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))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&+(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="28.0.6";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))&&"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,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};@@ -13720,10 +13721,10 @@ function(){mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||navigator.standalone?dthis.tagsWindow.window.isVisible()}));null==Editor.gptApiKey||null==Editor.gptModel||null==Editor.gptUrl||d.isOffline()||EditorUi.isElectronApp||(y=d.actions.addAction("chatWindowTitle",mxUtils.bind(this,function(){null==this.chatWindow?(this.chatWindow=new ChatWindow(d,220,document.body.offsetHeight-380,250,320),this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){d.fireEvent(new mxEventObject("chat"))})),this.chatWindow.window.addListener("hide",function(){d.fireEvent(new mxEventObject("chat"))}),this.chatWindow.window.setVisible(!0),d.fireEvent(new mxEventObject("chat"))):this.chatWindow.window.setVisible(!this.chatWindow.window.isVisible())})),y.setToggleAction(!0),y.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.chatWindow&&this.chatWindow.window.isVisible()})));y=d.actions.addAction("findReplace",mxUtils.bind(this,function(q,u){d.showSearchWindow(x.isEnabled()&&(null==u||!mxEvent.isShiftDown(u)))}),null,null,Editor.ctrlKey+"+F");y=new Action("exportVsdx",function(){var q=null==d.pages||1>=d.pages.length;if(q)d.exportVisio();else{var u=document.createElement("div");u.style.whiteSpace="nowrap";var J=document.createElement("h3");mxUtils.write(J,mxResources.get("formatVsdx"));J.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";u.appendChild(J);var G=d.addCheckbox(u,mxResources.get("allPages"),!q,q);G.style.marginBottom="16px";q=new CustomDialog(d,u,mxUtils.bind(this,function(){d.exportVisio(!G.checked)}),null,mxResources.get("export"));d.showDialog(q.container,-300,130,!0,!0)}},null,null,null,d.vsdxExportEnabled()&&!d.isOffline());y.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};d.actions.put("exportVsdx",y);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 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(q);mxUtils.write(u,mxResources.get("showStartScreen"));mxEvent.addListener(u,"click",function(G){mxEvent.getSource(G)!=q&&(q.checked=!q.checked)});header=u}u=[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),-d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(G){d.handleError(G)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var J=d.actions.get("plugins");null==J||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||u.push([mxResources.get("plugins"),J.funct])}EditorUi.isElectronApp||u.push([mxResources.get("link"),function(G,H){if(0<H.value.length)try{var g=JSON.parse(H.value),p=window.location.protocol+"//"+window.location.host+-"/"+d.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(g)),C=new EmbedDialog(d,p);d.showDialog(C.container,450,240,!0);C.init()}catch(I){d.handleError(I)}else d.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=d.getServiceName()&&"1"!=urlParams.embed&&u.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),+300,130,!0,!0)}});y.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};d.actions.put("exportVsdx",y);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 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(q);mxUtils.write(u,mxResources.get("showStartScreen"));mxEvent.addListener(u,"click",function(G){mxEvent.getSource(G)!=q&&(q.checked=!q.checked)});header=u}u=[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),+d.alert(mxResources.get("restartForChangeRequired"))}catch(G){d.handleError(G)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var J=d.actions.get("plugins");null==J||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||u.push([mxResources.get("plugins"),J.funct])}EditorUi.isElectronApp||u.push([mxResources.get("link"),function(G,H){if(0<H.value.length)try{var g=JSON.parse(H.value),p=window.location.protocol+"//"+window.location.host+"/"+d.getSearch()++"#_CONFIG_"+Graph.compress(JSON.stringify(g)),C=new EmbedDialog(d,p);d.showDialog(C.container,450,240,!0);C.init()}catch(I){d.handleError(I)}else d.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=d.getServiceName()&&"1"!=urlParams.embed&&u.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(G){d.handleError(G)}})}]])}]);d.showLocalStorageDialog(mxResources.get("configuration")+":",Editor.configurationKey,u,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,u){var J=mxLanguage;null==urlParams.lang&&isLocalStorage&&(J=mxSettings.settings.language);var G=mxUtils.bind(this,function(g){var p=""==g?mxResources.get("automatic"):mxLanguageMap[g],C=null;""!=p&&(C=q.addItem(p,null,mxUtils.bind(this,function(){d.setAndPersistLanguage(g)}),u),(g==J||""==g&&null==J)&&q.addCheckmark(C,Editor.checkmarkImage));return C});G("");q.addSeparator(u);for(var H in mxLanguageMap)G(H)})));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)}));y=this.get("viewZoom");var M=y.funct;y.funct=mxUtils.bind(this,function(q,diff --git a/src/main/webapp/js/serviceworker/service-worker-ac-draw-io.js b/src/main/webapp/js/serviceworker/service-worker-ac-draw-io.jsindex 66b1a8dd3..c79b7f05f 100644--- a/src/main/webapp/js/serviceworker/service-worker-ac-draw-io.js+++ b/src/main/webapp/js/serviceworker/service-worker-ac-draw-io.js@@ -1,2 +1,2 @@-if(!self.define){let e,c={};const n=(n,i)=>(n=new URL(n+".js",i).href,c[n]||new Promise((c=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=c,document.head.appendChild(e)}else e=n,importScripts(n),c()})).then((()=>{let e=c[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,s)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(c[r])return;let o={};const d=e=>n(e,r),a={module:{uri:r},exports:o,require:d};c[r]=Promise.all(i.map((e=>a[e]||d(e)))).then((e=>(s(...e),o)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"3ae5cb7b92474238c9cd6c9667771e8f"},{url:"js/main.js",revision:"9f6e65617cb7b7a67185b05427d97feb"},{url:"js/app.min.js",revision:"5852db2d29586e7a82e75be88c27e367"},{url:"js/extensions.min.js",revision:"49546b5dc442ef2391394f4def07462c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"ad38046619064bc0f0790be6b5a7995f"},{url:"js/shapes-14-6-5.min.js",revision:"d4b2f375b0222562462613f553a3257c"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"styles/grapheditor.css",revision:"52d494798d4f6fc629a801fcd99c7fd5"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"ac9c7f7c93224087b3c09e3bd956a87c"},{url:"plugins/cConf-comments.js",revision:"6deea8e9b96ff96043cd5cfd2a242a9f"},{url:"plugins/cConf-1-4-8.js",revision:"42137930327ac2a2500f711352b35e25"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"d381db23d3c925eb81854c07b46776a5"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"connect/confluence/viewer-init.js",revision:"b82e366bf57ecced9435c2a8ba9cb9b9"},{url:"connect/confluence/viewer.js",revision:"78b87563d88943ab816a3463927b9b50"},{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:"174e06ff4578aa4e2cadf5434494d8dd"},{url:"connect/confluence/includeDiagram.html",revision:"01b04b3f54f1e2e63fcf1df033d24519"},{url:"connect/confluence/macro-editor.js",revision:"c4c110650228d22b021ebad4d6ef021e"},{url:"resources/dia.txt",revision:"f9a270e56f91d7b63e219306ff2b63ac"},{url:"mxgraph/css/common.css",revision:"81d1704d5ab9207e2e5c7fc84379dc1a"}],{ignoreURLParametersMatching:[/.*/]})}));+if(!self.define){let e,c={};const n=(n,i)=>(n=new URL(n+".js",i).href,c[n]||new Promise((c=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=c,document.head.appendChild(e)}else e=n,importScripts(n),c()})).then((()=>{let e=c[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,s)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(c[r])return;let o={};const d=e=>n(e,r),f={module:{uri:r},exports:o,require:d};c[r]=Promise.all(i.map((e=>f[e]||d(e)))).then((e=>(s(...e),o)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"3ae5cb7b92474238c9cd6c9667771e8f"},{url:"js/main.js",revision:"9f6e65617cb7b7a67185b05427d97feb"},{url:"js/app.min.js",revision:"daa5f18f700ca4f92d732a0f965dfddd"},{url:"js/extensions.min.js",revision:"49546b5dc442ef2391394f4def07462c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"ad38046619064bc0f0790be6b5a7995f"},{url:"js/shapes-14-6-5.min.js",revision:"d4b2f375b0222562462613f553a3257c"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"styles/grapheditor.css",revision:"52d494798d4f6fc629a801fcd99c7fd5"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"5fcd67de91d122b5ef8e73f8a6680a75"},{url:"plugins/cConf-comments.js",revision:"6deea8e9b96ff96043cd5cfd2a242a9f"},{url:"plugins/cConf-1-4-8.js",revision:"42137930327ac2a2500f711352b35e25"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"d381db23d3c925eb81854c07b46776a5"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"connect/confluence/viewer-init.js",revision:"b82e366bf57ecced9435c2a8ba9cb9b9"},{url:"connect/confluence/viewer.js",revision:"78b87563d88943ab816a3463927b9b50"},{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:"174e06ff4578aa4e2cadf5434494d8dd"},{url:"connect/confluence/includeDiagram.html",revision:"01b04b3f54f1e2e63fcf1df033d24519"},{url:"connect/confluence/macro-editor.js",revision:"c4c110650228d22b021ebad4d6ef021e"},{url:"resources/dia.txt",revision:"f9a270e56f91d7b63e219306ff2b63ac"},{url:"mxgraph/css/common.css",revision:"81d1704d5ab9207e2e5c7fc84379dc1a"}],{ignoreURLParametersMatching:[/.*/]})}));//# sourceMappingURL=service-worker-ac-draw-io.js.mapdiff --git a/src/main/webapp/js/serviceworker/service-worker-ac-draw-io.js.map b/src/main/webapp/js/serviceworker/service-worker-ac-draw-io.js.mapindex a87d378b5..0430bb8bc 100644--- a/src/main/webapp/js/serviceworker/service-worker-ac-draw-io.js.map+++ b/src/main/webapp/js/serviceworker/service-worker-ac-draw-io.js.map@@ -1 +1 @@-{"version":3,"file":"service-worker-ac-draw-io.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/df5ca39ffc71325997edabdb6a6326ad/service-worker-ac-draw-io.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/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\": \"3ae5cb7b92474238c9cd6c9667771e8f\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"9f6e65617cb7b7a67185b05427d97feb\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"5852db2d29586e7a82e75be88c27e367\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"49546b5dc442ef2391394f4def07462c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"ad38046619064bc0f0790be6b5a7995f\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d4b2f375b0222562462613f553a3257c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"52d494798d4f6fc629a801fcd99c7fd5\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"4ecc9f6d08787a9e2d29dacf7aadd1ca\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"ac9c7f7c93224087b3c09e3bd956a87c\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"6deea8e9b96ff96043cd5cfd2a242a9f\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"42137930327ac2a2500f711352b35e25\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"d381db23d3c925eb81854c07b46776a5\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"b82e366bf57ecced9435c2a8ba9cb9b9\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"78b87563d88943ab816a3463927b9b50\"\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\": \"174e06ff4578aa4e2cadf5434494d8dd\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"01b04b3f54f1e2e63fcf1df033d24519\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"c4c110650228d22b021ebad4d6ef021e\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"f9a270e56f91d7b63e219306ff2b63ac\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,kBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,wCACKC,SAAA,oCAEd,CACED,IAAO,4CACKC,SAAA,oCAEd,CACED,IAAO,6CACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of file+{"version":3,"file":"service-worker-ac-draw-io.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/03fa98c74b39a52987d91c2bdcdbc24c/service-worker-ac-draw-io.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/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\": \"3ae5cb7b92474238c9cd6c9667771e8f\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"9f6e65617cb7b7a67185b05427d97feb\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"daa5f18f700ca4f92d732a0f965dfddd\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"49546b5dc442ef2391394f4def07462c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"ad38046619064bc0f0790be6b5a7995f\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d4b2f375b0222562462613f553a3257c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"52d494798d4f6fc629a801fcd99c7fd5\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"4ecc9f6d08787a9e2d29dacf7aadd1ca\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"5fcd67de91d122b5ef8e73f8a6680a75\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"6deea8e9b96ff96043cd5cfd2a242a9f\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"42137930327ac2a2500f711352b35e25\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"d381db23d3c925eb81854c07b46776a5\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"b82e366bf57ecced9435c2a8ba9cb9b9\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"78b87563d88943ab816a3463927b9b50\"\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\": \"174e06ff4578aa4e2cadf5434494d8dd\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"01b04b3f54f1e2e63fcf1df033d24519\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"c4c110650228d22b021ebad4d6ef021e\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"f9a270e56f91d7b63e219306ff2b63ac\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,kBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,wCACKC,SAAA,oCAEd,CACED,IAAO,4CACKC,SAAA,oCAEd,CACED,IAAO,6CACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of filediff --git a/src/main/webapp/js/serviceworker/service-worker-aj-draw-io.js b/src/main/webapp/js/serviceworker/service-worker-aj-draw-io.jsindex 46341ec74..dedb16183 100644--- a/src/main/webapp/js/serviceworker/service-worker-aj-draw-io.js+++ b/src/main/webapp/js/serviceworker/service-worker-aj-draw-io.js@@ -1,2 +1,2 @@-if(!self.define){let e,i={};const r=(r,c)=>(r=new URL(r+".js",c).href,i[r]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=i,document.head.appendChild(e)}else e=r,importScripts(r),i()})).then((()=>{let e=i[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(c,n)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(i[s])return;let o={};const a=e=>r(e,s),f={module:{uri:s},exports:o,require:a};i[s]=Promise.all(c.map((e=>f[e]||a(e)))).then((e=>(n(...e),o)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"3ae5cb7b92474238c9cd6c9667771e8f"},{url:"js/main.js",revision:"9f6e65617cb7b7a67185b05427d97feb"},{url:"js/app.min.js",revision:"5852db2d29586e7a82e75be88c27e367"},{url:"js/extensions.min.js",revision:"49546b5dc442ef2391394f4def07462c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"ad38046619064bc0f0790be6b5a7995f"},{url:"js/shapes-14-6-5.min.js",revision:"d4b2f375b0222562462613f553a3257c"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"styles/grapheditor.css",revision:"52d494798d4f6fc629a801fcd99c7fd5"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"ac9c7f7c93224087b3c09e3bd956a87c"},{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:"75f816c208d0c621e3066a97ff0ee6cf"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"ce61a0e62031a160e057809fefe64aa2"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"d3269625ce04b7a277b779ff175957d0"},{url:"connect/jira/fullscreen-viewer.js",revision:"8eceb2fe587296dd11f9c8f6eae34c20"},{url:"plugins/connectJira.js",revision:"c4cb6b60234b04b2c8bc09e555746615"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"resources/dia.txt",revision:"f9a270e56f91d7b63e219306ff2b63ac"},{url:"mxgraph/css/common.css",revision:"81d1704d5ab9207e2e5c7fc84379dc1a"}],{ignoreURLParametersMatching:[/.*/]})}));+if(!self.define){let e,i={};const r=(r,c)=>(r=new URL(r+".js",c).href,i[r]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=i,document.head.appendChild(e)}else e=r,importScripts(r),i()})).then((()=>{let e=i[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(c,n)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(i[s])return;let o={};const a=e=>r(e,s),f={module:{uri:s},exports:o,require:a};i[s]=Promise.all(c.map((e=>f[e]||a(e)))).then((e=>(n(...e),o)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"3ae5cb7b92474238c9cd6c9667771e8f"},{url:"js/main.js",revision:"9f6e65617cb7b7a67185b05427d97feb"},{url:"js/app.min.js",revision:"daa5f18f700ca4f92d732a0f965dfddd"},{url:"js/extensions.min.js",revision:"49546b5dc442ef2391394f4def07462c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"ad38046619064bc0f0790be6b5a7995f"},{url:"js/shapes-14-6-5.min.js",revision:"d4b2f375b0222562462613f553a3257c"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"styles/grapheditor.css",revision:"52d494798d4f6fc629a801fcd99c7fd5"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"5fcd67de91d122b5ef8e73f8a6680a75"},{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:"75f816c208d0c621e3066a97ff0ee6cf"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"ce61a0e62031a160e057809fefe64aa2"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"d3269625ce04b7a277b779ff175957d0"},{url:"connect/jira/fullscreen-viewer.js",revision:"8eceb2fe587296dd11f9c8f6eae34c20"},{url:"plugins/connectJira.js",revision:"c4cb6b60234b04b2c8bc09e555746615"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"resources/dia.txt",revision:"f9a270e56f91d7b63e219306ff2b63ac"},{url:"mxgraph/css/common.css",revision:"81d1704d5ab9207e2e5c7fc84379dc1a"}],{ignoreURLParametersMatching:[/.*/]})}));//# sourceMappingURL=service-worker-aj-draw-io.js.mapdiff --git a/src/main/webapp/js/serviceworker/service-worker-aj-draw-io.js.map b/src/main/webapp/js/serviceworker/service-worker-aj-draw-io.js.mapindex 3be130ae4..74ca55cd7 100644--- a/src/main/webapp/js/serviceworker/service-worker-aj-draw-io.js.map+++ b/src/main/webapp/js/serviceworker/service-worker-aj-draw-io.js.map@@ -1 +1 @@-{"version":3,"file":"service-worker-aj-draw-io.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/32bc1d8995af2e276ece6e1652fc8f86/service-worker-aj-draw-io"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/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\": \"3ae5cb7b92474238c9cd6c9667771e8f\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"9f6e65617cb7b7a67185b05427d97feb\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"5852db2d29586e7a82e75be88c27e367\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"49546b5dc442ef2391394f4def07462c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"ad38046619064bc0f0790be6b5a7995f\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d4b2f375b0222562462613f553a3257c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"52d494798d4f6fc629a801fcd99c7fd5\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"4ecc9f6d08787a9e2d29dacf7aadd1ca\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"ac9c7f7c93224087b3c09e3bd956a87c\"\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\": \"75f816c208d0c621e3066a97ff0ee6cf\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"ce61a0e62031a160e057809fefe64aa2\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"d3269625ce04b7a277b779ff175957d0\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"8eceb2fe587296dd11f9c8f6eae34c20\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"c4cb6b60234b04b2c8bc09e555746615\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"f9a270e56f91d7b63e219306ff2b63ac\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,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,+BACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,oBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of file+{"version":3,"file":"service-worker-aj-draw-io.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/58711c49cc3912d550244d4eef4ad834/service-worker-aj-draw-io"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/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\": \"3ae5cb7b92474238c9cd6c9667771e8f\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"9f6e65617cb7b7a67185b05427d97feb\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"daa5f18f700ca4f92d732a0f965dfddd\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"49546b5dc442ef2391394f4def07462c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"ad38046619064bc0f0790be6b5a7995f\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d4b2f375b0222562462613f553a3257c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"52d494798d4f6fc629a801fcd99c7fd5\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"4ecc9f6d08787a9e2d29dacf7aadd1ca\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"5fcd67de91d122b5ef8e73f8a6680a75\"\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\": \"75f816c208d0c621e3066a97ff0ee6cf\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"ce61a0e62031a160e057809fefe64aa2\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"d3269625ce04b7a277b779ff175957d0\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"8eceb2fe587296dd11f9c8f6eae34c20\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"c4cb6b60234b04b2c8bc09e555746615\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"f9a270e56f91d7b63e219306ff2b63ac\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,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,+BACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,oBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of filediff --git a/src/main/webapp/js/serviceworker/service-worker-app-diagrams-net.js b/src/main/webapp/js/serviceworker/service-worker-app-diagrams-net.jsindex 151cbd8a5..9f9b273be 100644--- a/src/main/webapp/js/serviceworker/service-worker-app-diagrams-net.js+++ b/src/main/webapp/js/serviceworker/service-worker-app-diagrams-net.js@@ -1,2 +1,2 @@-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 d=e=>s(e,c),f={module:{uri:c},exports:o,require:d};i[c]=Promise.all(r.map((e=>f[e]||d(e)))).then((e=>(a(...e),o)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"3ae5cb7b92474238c9cd6c9667771e8f"},{url:"js/main.js",revision:"9f6e65617cb7b7a67185b05427d97feb"},{url:"js/app.min.js",revision:"5852db2d29586e7a82e75be88c27e367"},{url:"js/extensions.min.js",revision:"49546b5dc442ef2391394f4def07462c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"ad38046619064bc0f0790be6b5a7995f"},{url:"js/shapes-14-6-5.min.js",revision:"d4b2f375b0222562462613f553a3257c"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"52d494798d4f6fc629a801fcd99c7fd5"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"math/es5/startup.js",revision:"dc7130cdc866593293dbb5dde11ceb40"},{url:"math/es5/core.js",revision:"f71bc0bfb7d2ac8261747f97a5d47dd4"},{url:"math/es5/ui/safe.js",revision:"8c1fcfee7c879588ad409edcdd9cce53"},{url:"math/es5/output/svg.js",revision:"4f55967d16197ebb01b86356d8ab179a"},{url:"math/es5/input/tex.js",revision:"5c4f470da2ccb1acf85041fcecd6fff6"},{url:"math/es5/input/asciimath.js",revision:"c2d4076dd8e26d509bfe3a378e71cfa7"},{url:"math/es5/output/svg/fonts/tex.js",revision:"6eab785a3788ea805bd2b552d1f0aab8"},{url:"resources/dia.txt",revision:"f9a270e56f91d7b63e219306ff2b63ac"},{url:"resources/dia_da.txt",revision:"0efd12fd7f0e123bb9423ad1ffe9e656"},{url:"resources/dia_de.txt",revision:"469fb636bc289ba77a097ab7adf16a34"},{url:"resources/dia_es.txt",revision:"82f09fd89c36d86b3fef59329a613c65"},{url:"resources/dia_fr.txt",revision:"c2a77b9e1f6d0b19dfc1e7bd40af2b42"},{url:"resources/dia_id.txt",revision:"83d5c8178aa9b75a7d8be9854501508f"},{url:"resources/dia_it.txt",revision:"9e23d17c9eb7a8d074336f267f7bd2f8"},{url:"resources/dia_ja.txt",revision:"b76dd5c357b3ff1dfcabaddeab376d65"},{url:"resources/dia_ko.txt",revision:"229e8f9c3d84e4635561ba392c465d11"},{url:"resources/dia_nl.txt",revision:"b6e0431168d72e1a515bcef3e2c5aff0"},{url:"resources/dia_pl.txt",revision:"ae3475b10f2824045fa7076f4584c085"},{url:"resources/dia_pt.txt",revision:"d0c985f25e2924dd25bd540a82c3fd66"},{url:"resources/dia_ru.txt",revision:"5aed41ed91e16b0e77879e74c8843768"},{url:"resources/dia_vi.txt",revision:"8576286953704e5cdd6727eb3ec484f4"},{url:"resources/dia_zh.txt",revision:"f2fcdf5b619faf471bff3703fc0bf75f"},{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/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/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"81d1704d5ab9207e2e5c7fc84379dc1a"}],{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 d={};const o=e=>s(e,c),f={module:{uri:c},exports:d,require:o};i[c]=Promise.all(r.map((e=>f[e]||o(e)))).then((e=>(a(...e),d)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"3ae5cb7b92474238c9cd6c9667771e8f"},{url:"js/main.js",revision:"9f6e65617cb7b7a67185b05427d97feb"},{url:"js/app.min.js",revision:"daa5f18f700ca4f92d732a0f965dfddd"},{url:"js/extensions.min.js",revision:"49546b5dc442ef2391394f4def07462c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"ad38046619064bc0f0790be6b5a7995f"},{url:"js/shapes-14-6-5.min.js",revision:"d4b2f375b0222562462613f553a3257c"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"52d494798d4f6fc629a801fcd99c7fd5"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"math/es5/startup.js",revision:"dc7130cdc866593293dbb5dde11ceb40"},{url:"math/es5/core.js",revision:"f71bc0bfb7d2ac8261747f97a5d47dd4"},{url:"math/es5/ui/safe.js",revision:"8c1fcfee7c879588ad409edcdd9cce53"},{url:"math/es5/output/svg.js",revision:"4f55967d16197ebb01b86356d8ab179a"},{url:"math/es5/input/tex.js",revision:"5c4f470da2ccb1acf85041fcecd6fff6"},{url:"math/es5/input/asciimath.js",revision:"c2d4076dd8e26d509bfe3a378e71cfa7"},{url:"math/es5/output/svg/fonts/tex.js",revision:"6eab785a3788ea805bd2b552d1f0aab8"},{url:"resources/dia.txt",revision:"f9a270e56f91d7b63e219306ff2b63ac"},{url:"resources/dia_da.txt",revision:"0efd12fd7f0e123bb9423ad1ffe9e656"},{url:"resources/dia_de.txt",revision:"469fb636bc289ba77a097ab7adf16a34"},{url:"resources/dia_es.txt",revision:"82f09fd89c36d86b3fef59329a613c65"},{url:"resources/dia_fr.txt",revision:"c2a77b9e1f6d0b19dfc1e7bd40af2b42"},{url:"resources/dia_id.txt",revision:"83d5c8178aa9b75a7d8be9854501508f"},{url:"resources/dia_it.txt",revision:"9e23d17c9eb7a8d074336f267f7bd2f8"},{url:"resources/dia_ja.txt",revision:"b76dd5c357b3ff1dfcabaddeab376d65"},{url:"resources/dia_ko.txt",revision:"229e8f9c3d84e4635561ba392c465d11"},{url:"resources/dia_nl.txt",revision:"b6e0431168d72e1a515bcef3e2c5aff0"},{url:"resources/dia_pl.txt",revision:"ae3475b10f2824045fa7076f4584c085"},{url:"resources/dia_pt.txt",revision:"d0c985f25e2924dd25bd540a82c3fd66"},{url:"resources/dia_ru.txt",revision:"11e6f186a986c351426d411672463bf4"},{url:"resources/dia_vi.txt",revision:"8576286953704e5cdd6727eb3ec484f4"},{url:"resources/dia_zh.txt",revision:"f2fcdf5b619faf471bff3703fc0bf75f"},{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/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/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"81d1704d5ab9207e2e5c7fc84379dc1a"}],{ignoreURLParametersMatching:[/.*/]})}));//# sourceMappingURL=service-worker-app-diagrams-net.js.mapdiff --git a/src/main/webapp/js/serviceworker/service-worker-app-diagrams-net.js.map b/src/main/webapp/js/serviceworker/service-worker-app-diagrams-net.js.mapindex 3420d74d4..85df140c7 100644--- a/src/main/webapp/js/serviceworker/service-worker-app-diagrams-net.js.map+++ b/src/main/webapp/js/serviceworker/service-worker-app-diagrams-net.js.map@@ -1 +1 @@-{"version":3,"file":"service-worker-app-diagrams-net.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/84315260df89d783e09e1c9dc1e8d759/service-worker-app-diagrams-net.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/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\": \"3ae5cb7b92474238c9cd6c9667771e8f\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"9f6e65617cb7b7a67185b05427d97feb\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"5852db2d29586e7a82e75be88c27e367\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"49546b5dc442ef2391394f4def07462c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"ad38046619064bc0f0790be6b5a7995f\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d4b2f375b0222562462613f553a3257c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\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\": \"52d494798d4f6fc629a801fcd99c7fd5\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"4ecc9f6d08787a9e2d29dacf7aadd1ca\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"math/es5/startup.js\",\n \"revision\": \"dc7130cdc866593293dbb5dde11ceb40\"\n },\n {\n \"url\": \"math/es5/core.js\",\n \"revision\": \"f71bc0bfb7d2ac8261747f97a5d47dd4\"\n },\n {\n \"url\": \"math/es5/ui/safe.js\",\n \"revision\": \"8c1fcfee7c879588ad409edcdd9cce53\"\n },\n {\n \"url\": \"math/es5/output/svg.js\",\n \"revision\": \"4f55967d16197ebb01b86356d8ab179a\"\n },\n {\n \"url\": \"math/es5/input/tex.js\",\n \"revision\": \"5c4f470da2ccb1acf85041fcecd6fff6\"\n },\n {\n \"url\": \"math/es5/input/asciimath.js\",\n \"revision\": \"c2d4076dd8e26d509bfe3a378e71cfa7\"\n },\n {\n \"url\": \"math/es5/output/svg/fonts/tex.js\",\n \"revision\": \"6eab785a3788ea805bd2b552d1f0aab8\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"f9a270e56f91d7b63e219306ff2b63ac\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"0efd12fd7f0e123bb9423ad1ffe9e656\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"469fb636bc289ba77a097ab7adf16a34\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"82f09fd89c36d86b3fef59329a613c65\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"c2a77b9e1f6d0b19dfc1e7bd40af2b42\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"83d5c8178aa9b75a7d8be9854501508f\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"9e23d17c9eb7a8d074336f267f7bd2f8\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"b76dd5c357b3ff1dfcabaddeab376d65\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"229e8f9c3d84e4635561ba392c465d11\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"b6e0431168d72e1a515bcef3e2c5aff0\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"ae3475b10f2824045fa7076f4584c085\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"d0c985f25e2924dd25bd540a82c3fd66\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"5aed41ed91e16b0e77879e74c8843768\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"8576286953704e5cdd6727eb3ec484f4\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"f2fcdf5b619faf471bff3703fc0bf75f\"\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/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/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\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,kBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,YACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,8CACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,mCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,cACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sCACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of file+{"version":3,"file":"service-worker-app-diagrams-net.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/a1278841653e19e4691b877afae9c02a/service-worker-app-diagrams-net.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/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\": \"3ae5cb7b92474238c9cd6c9667771e8f\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"9f6e65617cb7b7a67185b05427d97feb\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"daa5f18f700ca4f92d732a0f965dfddd\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"49546b5dc442ef2391394f4def07462c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"ad38046619064bc0f0790be6b5a7995f\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d4b2f375b0222562462613f553a3257c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\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\": \"52d494798d4f6fc629a801fcd99c7fd5\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"4ecc9f6d08787a9e2d29dacf7aadd1ca\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"math/es5/startup.js\",\n \"revision\": \"dc7130cdc866593293dbb5dde11ceb40\"\n },\n {\n \"url\": \"math/es5/core.js\",\n \"revision\": \"f71bc0bfb7d2ac8261747f97a5d47dd4\"\n },\n {\n \"url\": \"math/es5/ui/safe.js\",\n \"revision\": \"8c1fcfee7c879588ad409edcdd9cce53\"\n },\n {\n \"url\": \"math/es5/output/svg.js\",\n \"revision\": \"4f55967d16197ebb01b86356d8ab179a\"\n },\n {\n \"url\": \"math/es5/input/tex.js\",\n \"revision\": \"5c4f470da2ccb1acf85041fcecd6fff6\"\n },\n {\n \"url\": \"math/es5/input/asciimath.js\",\n \"revision\": \"c2d4076dd8e26d509bfe3a378e71cfa7\"\n },\n {\n \"url\": \"math/es5/output/svg/fonts/tex.js\",\n \"revision\": \"6eab785a3788ea805bd2b552d1f0aab8\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"f9a270e56f91d7b63e219306ff2b63ac\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"0efd12fd7f0e123bb9423ad1ffe9e656\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"469fb636bc289ba77a097ab7adf16a34\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"82f09fd89c36d86b3fef59329a613c65\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"c2a77b9e1f6d0b19dfc1e7bd40af2b42\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"83d5c8178aa9b75a7d8be9854501508f\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"9e23d17c9eb7a8d074336f267f7bd2f8\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"b76dd5c357b3ff1dfcabaddeab376d65\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"229e8f9c3d84e4635561ba392c465d11\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"b6e0431168d72e1a515bcef3e2c5aff0\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"ae3475b10f2824045fa7076f4584c085\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"d0c985f25e2924dd25bd540a82c3fd66\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"11e6f186a986c351426d411672463bf4\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"8576286953704e5cdd6727eb3ec484f4\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"f2fcdf5b619faf471bff3703fc0bf75f\"\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/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/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\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,kBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,YACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,8CACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,mCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,cACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sCACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of filediff --git a/src/main/webapp/js/serviceworker/service-worker-embed-viewer-diagrams-net.js b/src/main/webapp/js/serviceworker/service-worker-embed-viewer-diagrams-net.jsindex fd8af8fba..2fca37991 100644--- a/src/main/webapp/js/serviceworker/service-worker-embed-viewer-diagrams-net.js+++ b/src/main/webapp/js/serviceworker/service-worker-embed-viewer-diagrams-net.js@@ -1,2 +1,2 @@-if(!self.define){let e,s={};const i=(i,r)=>(i=new URL(i+".js",r).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(r,c)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(s[n])return;let o={};const d=e=>i(e,n),t={module:{uri:n},exports:o,require:d};s[n]=Promise.all(r.map((e=>t[e]||d(e)))).then((e=>(c(...e),o)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"3ae5cb7b92474238c9cd6c9667771e8f"},{url:"js/main.js",revision:"9f6e65617cb7b7a67185b05427d97feb"},{url:"js/app.min.js",revision:"5852db2d29586e7a82e75be88c27e367"},{url:"js/extensions.min.js",revision:"49546b5dc442ef2391394f4def07462c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"ad38046619064bc0f0790be6b5a7995f"},{url:"js/shapes-14-6-5.min.js",revision:"d4b2f375b0222562462613f553a3257c"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"styles/grapheditor.css",revision:"52d494798d4f6fc629a801fcd99c7fd5"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"ac9c7f7c93224087b3c09e3bd956a87c"},{url:"resources/dia.txt",revision:"f9a270e56f91d7b63e219306ff2b63ac"},{url:"mxgraph/css/common.css",revision:"81d1704d5ab9207e2e5c7fc84379dc1a"}],{ignoreURLParametersMatching:[/.*/]})}));+if(!self.define){let e,s={};const i=(i,r)=>(i=new URL(i+".js",r).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(r,c)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(s[n])return;let o={};const d=e=>i(e,n),f={module:{uri:n},exports:o,require:d};s[n]=Promise.all(r.map((e=>f[e]||d(e)))).then((e=>(c(...e),o)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"3ae5cb7b92474238c9cd6c9667771e8f"},{url:"js/main.js",revision:"9f6e65617cb7b7a67185b05427d97feb"},{url:"js/app.min.js",revision:"daa5f18f700ca4f92d732a0f965dfddd"},{url:"js/extensions.min.js",revision:"49546b5dc442ef2391394f4def07462c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"ad38046619064bc0f0790be6b5a7995f"},{url:"js/shapes-14-6-5.min.js",revision:"d4b2f375b0222562462613f553a3257c"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"styles/grapheditor.css",revision:"52d494798d4f6fc629a801fcd99c7fd5"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"5fcd67de91d122b5ef8e73f8a6680a75"},{url:"resources/dia.txt",revision:"f9a270e56f91d7b63e219306ff2b63ac"},{url:"mxgraph/css/common.css",revision:"81d1704d5ab9207e2e5c7fc84379dc1a"}],{ignoreURLParametersMatching:[/.*/]})}));//# sourceMappingURL=service-worker-embed-viewer-diagrams-net.js.mapdiff --git a/src/main/webapp/js/serviceworker/service-worker-embed-viewer-diagrams-net.js.map b/src/main/webapp/js/serviceworker/service-worker-embed-viewer-diagrams-net.js.mapindex f0cb715ac..2ccae8dda 100644--- a/src/main/webapp/js/serviceworker/service-worker-embed-viewer-diagrams-net.js.map+++ b/src/main/webapp/js/serviceworker/service-worker-embed-viewer-diagrams-net.js.map@@ -1 +1 @@-{"version":3,"file":"service-worker-embed-viewer-diagrams-net.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/a9a9e6b5b9dc966bbc4b4af8e144d94a/service-worker-embed-viewer-diagrams-net.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/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\": \"3ae5cb7b92474238c9cd6c9667771e8f\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"9f6e65617cb7b7a67185b05427d97feb\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"5852db2d29586e7a82e75be88c27e367\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"49546b5dc442ef2391394f4def07462c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"ad38046619064bc0f0790be6b5a7995f\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d4b2f375b0222562462613f553a3257c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"52d494798d4f6fc629a801fcd99c7fd5\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"4ecc9f6d08787a9e2d29dacf7aadd1ca\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"ac9c7f7c93224087b3c09e3bd956a87c\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"f9a270e56f91d7b63e219306ff2b63ac\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,kBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of file+{"version":3,"file":"service-worker-embed-viewer-diagrams-net.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/06ee7c06c0a9fd7c5bf294f3fb86d77b/service-worker-embed-viewer-diagrams-net.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/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\": \"3ae5cb7b92474238c9cd6c9667771e8f\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"9f6e65617cb7b7a67185b05427d97feb\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"daa5f18f700ca4f92d732a0f965dfddd\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"49546b5dc442ef2391394f4def07462c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"ad38046619064bc0f0790be6b5a7995f\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d4b2f375b0222562462613f553a3257c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"52d494798d4f6fc629a801fcd99c7fd5\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"4ecc9f6d08787a9e2d29dacf7aadd1ca\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"5fcd67de91d122b5ef8e73f8a6680a75\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"f9a270e56f91d7b63e219306ff2b63ac\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,kBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of filediff --git a/src/main/webapp/js/viewer-static.min.js b/src/main/webapp/js/viewer-static.min.jsindex 2dc9812b3..fb91c5118 100644--- a/src/main/webapp/js/viewer-static.min.js+++ b/src/main/webapp/js/viewer-static.min.js@@ -28,7 +28,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url"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:"28.0.5",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.0.6",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-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||@@ -499,7 +499,8 @@ mxStencil.prototype.evaluateTextAttribute=function(a,b,c){b=this.evaluateAttribumxStencil.prototype.drawShape=function(a,b,c,d,e,f,g){g=null!=g?g:null!=b&&null!=b.state?b.state.view.graph:null;var k=a.states.slice(),l=mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,null);l=this.computeAspect(b.style,c,d,e,f,l);var m=Math.min(l.width,l.height);m="inherit"==this.strokewidth?Number(mxUtils.getNumber(b.style,mxConstants.STYLE_STROKEWIDTH,1)):Number(this.strokewidth)*m;a.setStrokeWidth(m);null!=b.style&&"1"==mxUtils.getValue(b.style,mxConstants.STYLE_POINTER_EVENTS,"0")&&(a.setStrokeColor(mxConstants.NONE),a.rect(c,d,e,f),a.stroke(),a.setStrokeColor(b.stroke));this.drawChildren(a,b,c,d,e,f,this.bgNode,l,!1,!0,g);this.drawChildren(a,b,c,d,e,f,this.fgNode,l,!0,!b.outline||null==b.style||0==mxUtils.getValue(b.style,mxConstants.STYLE_BACKGROUND_OUTLINE,0),g);a.states.length!=k.length&&(a.states=k)};mxStencil.prototype.drawChildren=function(a,b,c,d,e,f,g,k,l,m,n){if(null!=g&&0<e&&0<f)for(c=g.firstChild;null!=c;)c.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,c,k,l,m,n),c=c.nextSibling};mxStencil.prototype.computeAspect=function(a,b,c,d,e,f){a=b;b=d/this.w0;var g=e/this.h0;if(f=f==mxConstants.DIRECTION_NORTH||f==mxConstants.DIRECTION_SOUTH){g=d/this.h0;b=e/this.w0;var k=(d-e)/2;a+=k;c-=k}"fixed"==this.aspect&&(b=g=Math.min(b,g),f?(a+=(e-this.w0*b)/2,c+=(d-this.h0*g)/2):(a+=(d-this.w0*b)/2,c+=(e-this.h0*g)/2));return new mxRectangle(a,c,b,g)};-mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style?d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"):null==b.style||mxUtils.isValidColor(d)||(a=c.getAttribute("default"),b=mxUtils.getValue(b.style,d,null==a?mxConstants.NONE:a),"default"==b&&(b=null!=e?"fillcolor"==c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor:"#ffffff"),d=b);return d};+mxStencil.prototype.parseColor=function(a,b,c,d,e){if("stroke"==d)d=b.stroke;else if("fill"==d)d=b.fill;else if("font"==d&&null!=b.style)d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black");else if(null!=b.style&&!mxUtils.isValidColor(d)){a=c.getAttribute("default");var f=mxUtils.getValue(b.style,d);null==f&&(b=null!=b&&null!=b.state?b.state.cell.style:null,f=null==a||null!=b&&(0<=b.indexOf(";"+d+"=")||b.substring(0,d.length+1)==d+"=")?mxConstants.NONE:a);"default"==f&&(f=null!=e?"fillcolor"==+c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor:"#ffffff");d=f}return d};mxStencil.prototype.drawNode=function(a,b,c,d,e,f,g){var k=c.nodeName,l=d.x,m=d.y,n=d.width,p=d.height,q=Math.min(n,p);if("save"==k)a.save();else if("restore"==k)a.restore();else if(f){if("path"==k){a.begin();q=!0;if("1"==c.getAttribute("rounded")){q=!1;for(var r=Number(c.getAttribute("arcSize")),t=0,u=[],v=c.firstChild;null!=v;){if(v.nodeType==mxConstants.NODETYPE_ELEMENT){var y=v.nodeName;if("move"==y||"line"==y)"move"!=y&&0!=u.length||u.push([]),u[u.length-1].push(new mxPoint(l+Number(v.getAttribute("x"))*n,m+Number(v.getAttribute("y"))*p)),t++;else{q=!0;break}}v=v.nextSibling}if(!q&&0<t)for(n=0;n<u.length;n++)p=!1,m=u[n][0],l=u[n][u[n].length-1],m.x==l.x&&m.y==l.y&&(u[n].pop(),p=!0),this.addPoints(a,u[n],!0,r,p);else q=!0}if(q)for(v=c.firstChild;null!=v;)v.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,v,d,e,f,g),v=v.nextSibling}else if("close"==k)a.close();else if("move"==k)a.moveTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("line"==k)a.lineTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("quad"==k)a.quadTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p);else if("curve"==k)a.curveTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p,l+Number(c.getAttribute("x3"))*n,m+Number(c.getAttribute("y3"))*p);else if("arc"==k)a.arcTo(Number(c.getAttribute("rx"))*n,Number(c.getAttribute("ry"))*@@ -3485,7 +3486,7 @@ mxEvent.addListener(v,"click",function(ua){pa.checked=!0;mxEvent.consume(ua)}));(X.classList.add("geDarkMode"),X.style.colorScheme="dark"):(X.classList.remove("geDarkMode"),X.style.colorScheme="light")};k.addListener("darkModeChanged",xa);xa();var ta=function(ua,Ia){ua=Ia.getProperty("dialog");X.parentNode==ua.container&&(k.editor.removeListener(ta),k.removeListener(xa))};k.editor.addListener("hideDialog",ta)}this.container=X};var Z=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 k=this.image;null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});this.page.viewState.backgroundImage=k}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 Z.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&&(k=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"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="28.0.5";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))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&+this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="28.0.6";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))&&"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,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};diff --git a/src/main/webapp/js/viewer.min.js b/src/main/webapp/js/viewer.min.jsindex fec46e308..0a651be69 100644--- a/src/main/webapp/js/viewer.min.js+++ b/src/main/webapp/js/viewer.min.js@@ -28,7 +28,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url"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:"28.0.5",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.0.6",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor),IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints,IS_WEBVIEW:/((iPhone|iPod|iPad).*AppleWebKit(?!.*Version)|; wv)/i.test(navigator.userAgent),IS_GC:/Google Inc/.test(navigator.vendor),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:-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||@@ -499,7 +499,8 @@ mxStencil.prototype.evaluateTextAttribute=function(a,b,c){b=this.evaluateAttribumxStencil.prototype.drawShape=function(a,b,c,d,e,f,g){g=null!=g?g:null!=b&&null!=b.state?b.state.view.graph:null;var k=a.states.slice(),l=mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,null);l=this.computeAspect(b.style,c,d,e,f,l);var m=Math.min(l.width,l.height);m="inherit"==this.strokewidth?Number(mxUtils.getNumber(b.style,mxConstants.STYLE_STROKEWIDTH,1)):Number(this.strokewidth)*m;a.setStrokeWidth(m);null!=b.style&&"1"==mxUtils.getValue(b.style,mxConstants.STYLE_POINTER_EVENTS,"0")&&(a.setStrokeColor(mxConstants.NONE),a.rect(c,d,e,f),a.stroke(),a.setStrokeColor(b.stroke));this.drawChildren(a,b,c,d,e,f,this.bgNode,l,!1,!0,g);this.drawChildren(a,b,c,d,e,f,this.fgNode,l,!0,!b.outline||null==b.style||0==mxUtils.getValue(b.style,mxConstants.STYLE_BACKGROUND_OUTLINE,0),g);a.states.length!=k.length&&(a.states=k)};mxStencil.prototype.drawChildren=function(a,b,c,d,e,f,g,k,l,m,n){if(null!=g&&0<e&&0<f)for(c=g.firstChild;null!=c;)c.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,c,k,l,m,n),c=c.nextSibling};mxStencil.prototype.computeAspect=function(a,b,c,d,e,f){a=b;b=d/this.w0;var g=e/this.h0;if(f=f==mxConstants.DIRECTION_NORTH||f==mxConstants.DIRECTION_SOUTH){g=d/this.h0;b=e/this.w0;var k=(d-e)/2;a+=k;c-=k}"fixed"==this.aspect&&(b=g=Math.min(b,g),f?(a+=(e-this.w0*b)/2,c+=(d-this.h0*g)/2):(a+=(d-this.w0*b)/2,c+=(e-this.h0*g)/2));return new mxRectangle(a,c,b,g)};-mxStencil.prototype.parseColor=function(a,b,c,d,e){"stroke"==d?d=b.stroke:"fill"==d?d=b.fill:"font"==d&&null!=b.style?d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black"):null==b.style||mxUtils.isValidColor(d)||(a=c.getAttribute("default"),b=mxUtils.getValue(b.style,d,null==a?mxConstants.NONE:a),"default"==b&&(b=null!=e?"fillcolor"==c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor:"#ffffff"),d=b);return d};+mxStencil.prototype.parseColor=function(a,b,c,d,e){if("stroke"==d)d=b.stroke;else if("fill"==d)d=b.fill;else if("font"==d&&null!=b.style)d=mxUtils.getValue(b.style,mxConstants.STYLE_FONTCOLOR,"black");else if(null!=b.style&&!mxUtils.isValidColor(d)){a=c.getAttribute("default");var f=mxUtils.getValue(b.style,d);null==f&&(b=null!=b&&null!=b.state?b.state.cell.style:null,f=null==a||null!=b&&(0<=b.indexOf(";"+d+"=")||b.substring(0,d.length+1)==d+"=")?mxConstants.NONE:a);"default"==f&&(f=null!=e?"fillcolor"==+c.nodeName?e.shapeBackgroundColor:e.shapeForegroundColor:"#ffffff");d=f}return d};mxStencil.prototype.drawNode=function(a,b,c,d,e,f,g){var k=c.nodeName,l=d.x,m=d.y,n=d.width,p=d.height,q=Math.min(n,p);if("save"==k)a.save();else if("restore"==k)a.restore();else if(f){if("path"==k){a.begin();q=!0;if("1"==c.getAttribute("rounded")){q=!1;for(var r=Number(c.getAttribute("arcSize")),t=0,u=[],v=c.firstChild;null!=v;){if(v.nodeType==mxConstants.NODETYPE_ELEMENT){var y=v.nodeName;if("move"==y||"line"==y)"move"!=y&&0!=u.length||u.push([]),u[u.length-1].push(new mxPoint(l+Number(v.getAttribute("x"))*n,m+Number(v.getAttribute("y"))*p)),t++;else{q=!0;break}}v=v.nextSibling}if(!q&&0<t)for(n=0;n<u.length;n++)p=!1,m=u[n][0],l=u[n][u[n].length-1],m.x==l.x&&m.y==l.y&&(u[n].pop(),p=!0),this.addPoints(a,u[n],!0,r,p);else q=!0}if(q)for(v=c.firstChild;null!=v;)v.nodeType==mxConstants.NODETYPE_ELEMENT&&this.drawNode(a,b,v,d,e,f,g),v=v.nextSibling}else if("close"==k)a.close();else if("move"==k)a.moveTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("line"==k)a.lineTo(l+Number(c.getAttribute("x"))*n,m+Number(c.getAttribute("y"))*p);else if("quad"==k)a.quadTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p);else if("curve"==k)a.curveTo(l+Number(c.getAttribute("x1"))*n,m+Number(c.getAttribute("y1"))*p,l+Number(c.getAttribute("x2"))*n,m+Number(c.getAttribute("y2"))*p,l+Number(c.getAttribute("x3"))*n,m+Number(c.getAttribute("y3"))*p);else if("arc"==k)a.arcTo(Number(c.getAttribute("rx"))*n,Number(c.getAttribute("ry"))*@@ -3485,7 +3486,7 @@ mxEvent.addListener(v,"click",function(ua){pa.checked=!0;mxEvent.consume(ua)}));(X.classList.add("geDarkMode"),X.style.colorScheme="dark"):(X.classList.remove("geDarkMode"),X.style.colorScheme="light")};k.addListener("darkModeChanged",xa);xa();var ta=function(ua,Ia){ua=Ia.getProperty("dialog");X.parentNode==ua.container&&(k.editor.removeListener(ta),k.removeListener(xa))};k.editor.addListener("hideDialog",ta)}this.container=X};var Z=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 k=this.image;null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});this.page.viewState.backgroundImage=k}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 Z.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&&(k=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"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="28.0.5";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))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&+this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="28.0.6";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))&&"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,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};diff --git a/src/main/webapp/resources/dia_ru.txt b/src/main/webapp/resources/dia_ru.txtindex 783677ca6..7f6d6aa25 100644--- a/src/main/webapp/resources/dia_ru.txt+++ b/src/main/webapp/resources/dia_ru.txt@@ -355,8 +355,8 @@ formatSql=SQLformatSvg=SVGformatHtmlEmbedded=HTMLformatSvgEmbedded=SVG (с XML)-formatVsdx=VSDX-formatVssx=Вложения+formatVsdx=Вложения (VSDX)+formatVssx=Вложения (VSSX)formatWebp=WebPformatXmlPlain=XML (Plain)formatXml=XMLdiff --git a/src/main/webapp/service-worker.js b/src/main/webapp/service-worker.jsindex bda0df720..9930ea382 100644--- a/src/main/webapp/service-worker.js+++ b/src/main/webapp/service-worker.js@@ -1,2 +1,2 @@-if(!self.define){let e,r={};const i=(i,c)=>(i=new URL(i+".js",c).href,r[i]||new Promise((r=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=r,document.head.appendChild(e)}else e=i,importScripts(i),r()})).then((()=>{let e=r[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(c,a)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(r[s])return;let d={};const o=e=>i(e,s),f={module:{uri:s},exports:d,require:o};r[s]=Promise.all(c.map((e=>f[e]||o(e)))).then((e=>(a(...e),d)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"3ae5cb7b92474238c9cd6c9667771e8f"},{url:"js/main.js",revision:"9f6e65617cb7b7a67185b05427d97feb"},{url:"js/app.min.js",revision:"5852db2d29586e7a82e75be88c27e367"},{url:"js/extensions.min.js",revision:"49546b5dc442ef2391394f4def07462c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"ad38046619064bc0f0790be6b5a7995f"},{url:"js/shapes-14-6-5.min.js",revision:"d4b2f375b0222562462613f553a3257c"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"52d494798d4f6fc629a801fcd99c7fd5"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"ac9c7f7c93224087b3c09e3bd956a87c"},{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:"75f816c208d0c621e3066a97ff0ee6cf"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"ce61a0e62031a160e057809fefe64aa2"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"d3269625ce04b7a277b779ff175957d0"},{url:"connect/jira/fullscreen-viewer.js",revision:"8eceb2fe587296dd11f9c8f6eae34c20"},{url:"plugins/connectJira.js",revision:"c4cb6b60234b04b2c8bc09e555746615"},{url:"plugins/cConf-comments.js",revision:"6deea8e9b96ff96043cd5cfd2a242a9f"},{url:"plugins/cConf-1-4-8.js",revision:"42137930327ac2a2500f711352b35e25"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"d381db23d3c925eb81854c07b46776a5"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"connect/confluence/viewer-init.js",revision:"b82e366bf57ecced9435c2a8ba9cb9b9"},{url:"connect/confluence/viewer.js",revision:"78b87563d88943ab816a3463927b9b50"},{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:"174e06ff4578aa4e2cadf5434494d8dd"},{url:"connect/confluence/includeDiagram.html",revision:"01b04b3f54f1e2e63fcf1df033d24519"},{url:"connect/confluence/macro-editor.js",revision:"c4c110650228d22b021ebad4d6ef021e"},{url:"math/es5/startup.js",revision:"dc7130cdc866593293dbb5dde11ceb40"},{url:"math/es5/core.js",revision:"f71bc0bfb7d2ac8261747f97a5d47dd4"},{url:"math/es5/ui/safe.js",revision:"8c1fcfee7c879588ad409edcdd9cce53"},{url:"math/es5/output/svg.js",revision:"4f55967d16197ebb01b86356d8ab179a"},{url:"math/es5/input/tex.js",revision:"5c4f470da2ccb1acf85041fcecd6fff6"},{url:"math/es5/input/asciimath.js",revision:"c2d4076dd8e26d509bfe3a378e71cfa7"},{url:"math/es5/output/svg/fonts/tex.js",revision:"6eab785a3788ea805bd2b552d1f0aab8"},{url:"resources/dia.txt",revision:"f9a270e56f91d7b63e219306ff2b63ac"},{url:"resources/dia_am.txt",revision:"32e1e743ecec586536c25f2458cd3a43"},{url:"resources/dia_ar.txt",revision:"80851f14b8286106618f11aa7ae8805f"},{url:"resources/dia_bg.txt",revision:"91587bc16e3b642f40a25ff8d1c3d0f9"},{url:"resources/dia_bn.txt",revision:"f44c3fcc4a7b0890d4156eca0402cccc"},{url:"resources/dia_bs.txt",revision:"0702c63b2aaee2d20306adcddaea7ccc"},{url:"resources/dia_ca.txt",revision:"1a90a2b54a6f73d62e82772e1acbe8d0"},{url:"resources/dia_cs.txt",revision:"fa2847ec6f6e75a95410aa9dc20b8127"},{url:"resources/dia_da.txt",revision:"0efd12fd7f0e123bb9423ad1ffe9e656"},{url:"resources/dia_de.txt",revision:"469fb636bc289ba77a097ab7adf16a34"},{url:"resources/dia_el.txt",revision:"10cfc3115c42dae5c021d650850ae99e"},{url:"resources/dia_eo.txt",revision:"1209ecf16aa7598fe5342727c74a4d75"},{url:"resources/dia_es.txt",revision:"82f09fd89c36d86b3fef59329a613c65"},{url:"resources/dia_et.txt",revision:"f2ab92a7caa15d2161a17f58bd19e997"},{url:"resources/dia_eu.txt",revision:"e8adfcede0ea90af8a5683042a01eda0"},{url:"resources/dia_fa.txt",revision:"6793b6bed8a74a30d0b049b50d0516f2"},{url:"resources/dia_fi.txt",revision:"1a66ce94e0a9fefbd9c55edc49abf6fa"},{url:"resources/dia_fil.txt",revision:"ddcbbdc7230b1d7789002020ed34c01e"},{url:"resources/dia_fr.txt",revision:"c2a77b9e1f6d0b19dfc1e7bd40af2b42"},{url:"resources/dia_gl.txt",revision:"dbd313e4994792f6dcd1b59c39c3da7f"},{url:"resources/dia_gu.txt",revision:"3f5fa7dbec9d1f0c4fff0036b2dba0f8"},{url:"resources/dia_he.txt",revision:"e440cd11862b987985e4a0d2f5afb159"},{url:"resources/dia_hi.txt",revision:"78f34343a4f57ca4ec7e7a2717b625b6"},{url:"resources/dia_hr.txt",revision:"cc8f3026e5fd6a5c4eb4f2fb9b62ac10"},{url:"resources/dia_hu.txt",revision:"e17bfab25490d15929c65bbe3442f0dd"},{url:"resources/dia_id.txt",revision:"83d5c8178aa9b75a7d8be9854501508f"},{url:"resources/dia_it.txt",revision:"9e23d17c9eb7a8d074336f267f7bd2f8"},{url:"resources/dia_ja.txt",revision:"b76dd5c357b3ff1dfcabaddeab376d65"},{url:"resources/dia_kn.txt",revision:"280105c62f3261a784ab73952214dab2"},{url:"resources/dia_ko.txt",revision:"229e8f9c3d84e4635561ba392c465d11"},{url:"resources/dia_lt.txt",revision:"cd0159a46ef2c2bfb84bc6dad5a299cf"},{url:"resources/dia_lv.txt",revision:"9caa404e086db1e4da1a011a99847847"},{url:"resources/dia_ml.txt",revision:"44f8e230e471b112560a5ea979df1575"},{url:"resources/dia_mr.txt",revision:"9f77f05421ef5818d84c070b1b372e2b"},{url:"resources/dia_ms.txt",revision:"57cb8769a2fec369ee56969ecec2534a"},{url:"resources/dia_my.txt",revision:"a4376fafc38fda85318b032edbe9b5e4"},{url:"resources/dia_nl.txt",revision:"b6e0431168d72e1a515bcef3e2c5aff0"},{url:"resources/dia_no.txt",revision:"eb679e14c6b437fd2b22ff67f3d169ee"},{url:"resources/dia_pl.txt",revision:"ae3475b10f2824045fa7076f4584c085"},{url:"resources/dia_pt-br.txt",revision:"d5ce120975a388c3440de40d8179a36f"},{url:"resources/dia_pt.txt",revision:"d0c985f25e2924dd25bd540a82c3fd66"},{url:"resources/dia_ro.txt",revision:"b38b898b99d78cd6dbc7c9d95c0b4297"},{url:"resources/dia_ru.txt",revision:"5aed41ed91e16b0e77879e74c8843768"},{url:"resources/dia_si.txt",revision:"e70185bbb8fd9be659522ff2fa957ed3"},{url:"resources/dia_sk.txt",revision:"bf62dbf0de6a754291a822fb0ac718f4"},{url:"resources/dia_sl.txt",revision:"a6b715115ec4be67fe24a4474d74801c"},{url:"resources/dia_sr.txt",revision:"81470f91f04359c1b3b627515d71ef6f"},{url:"resources/dia_sv.txt",revision:"9ae3be18b492a3f448bf771f520f7ab4"},{url:"resources/dia_sw.txt",revision:"e217cba6058fe404745a91f5cd292245"},{url:"resources/dia_ta.txt",revision:"55349be1ac0abd9d35c9029cc289c8b0"},{url:"resources/dia_te.txt",revision:"4147210236a771e3990faedd0fe6d496"},{url:"resources/dia_th.txt",revision:"397f4bcb46b5fb76cba6a06af33005b4"},{url:"resources/dia_tr.txt",revision:"1bbf900c6d0b810f8cc944baa003802a"},{url:"resources/dia_uk.txt",revision:"5b3f8485623c0cbd22985c141e7f1c7f"},{url:"resources/dia_vi.txt",revision:"8576286953704e5cdd6727eb3ec484f4"},{url:"resources/dia_zh-tw.txt",revision:"298ab192edb19a1ef363bfb1ed8f97e4"},{url:"resources/dia_zh.txt",revision:"f2fcdf5b619faf471bff3703fc0bf75f"},{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:"81d1704d5ab9207e2e5c7fc84379dc1a"}],{ignoreURLParametersMatching:[/.*/]})}));+if(!self.define){let e,r={};const i=(i,a)=>(i=new URL(i+".js",a).href,r[i]||new Promise((r=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=r,document.head.appendChild(e)}else e=i,importScripts(i),r()})).then((()=>{let e=r[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(a,c)=>{const s=e||("document"in self?document.currentScript.src:"")||location.href;if(r[s])return;let d={};const o=e=>i(e,s),f={module:{uri:s},exports:d,require:o};r[s]=Promise.all(a.map((e=>f[e]||o(e)))).then((e=>(c(...e),d)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"3ae5cb7b92474238c9cd6c9667771e8f"},{url:"js/main.js",revision:"9f6e65617cb7b7a67185b05427d97feb"},{url:"js/app.min.js",revision:"daa5f18f700ca4f92d732a0f965dfddd"},{url:"js/extensions.min.js",revision:"49546b5dc442ef2391394f4def07462c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"ad38046619064bc0f0790be6b5a7995f"},{url:"js/shapes-14-6-5.min.js",revision:"d4b2f375b0222562462613f553a3257c"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"52d494798d4f6fc629a801fcd99c7fd5"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"5fcd67de91d122b5ef8e73f8a6680a75"},{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:"75f816c208d0c621e3066a97ff0ee6cf"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"ce61a0e62031a160e057809fefe64aa2"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"d3269625ce04b7a277b779ff175957d0"},{url:"connect/jira/fullscreen-viewer.js",revision:"8eceb2fe587296dd11f9c8f6eae34c20"},{url:"plugins/connectJira.js",revision:"c4cb6b60234b04b2c8bc09e555746615"},{url:"plugins/cConf-comments.js",revision:"6deea8e9b96ff96043cd5cfd2a242a9f"},{url:"plugins/cConf-1-4-8.js",revision:"42137930327ac2a2500f711352b35e25"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"d381db23d3c925eb81854c07b46776a5"},{url:"connect/new_common/cac.js",revision:"740dce44cf53499f476ee8edc37d09a0"},{url:"connect/gdrive_common/gac.js",revision:"3bb38a5d9186a896ed04808e921ef888"},{url:"connect/onedrive_common/ac.js",revision:"5fb6ff1a73f54a9086b7a7e1f613b8ed"},{url:"connect/confluence/viewer-init.js",revision:"b82e366bf57ecced9435c2a8ba9cb9b9"},{url:"connect/confluence/viewer.js",revision:"78b87563d88943ab816a3463927b9b50"},{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:"174e06ff4578aa4e2cadf5434494d8dd"},{url:"connect/confluence/includeDiagram.html",revision:"01b04b3f54f1e2e63fcf1df033d24519"},{url:"connect/confluence/macro-editor.js",revision:"c4c110650228d22b021ebad4d6ef021e"},{url:"math/es5/startup.js",revision:"dc7130cdc866593293dbb5dde11ceb40"},{url:"math/es5/core.js",revision:"f71bc0bfb7d2ac8261747f97a5d47dd4"},{url:"math/es5/ui/safe.js",revision:"8c1fcfee7c879588ad409edcdd9cce53"},{url:"math/es5/output/svg.js",revision:"4f55967d16197ebb01b86356d8ab179a"},{url:"math/es5/input/tex.js",revision:"5c4f470da2ccb1acf85041fcecd6fff6"},{url:"math/es5/input/asciimath.js",revision:"c2d4076dd8e26d509bfe3a378e71cfa7"},{url:"math/es5/output/svg/fonts/tex.js",revision:"6eab785a3788ea805bd2b552d1f0aab8"},{url:"resources/dia.txt",revision:"f9a270e56f91d7b63e219306ff2b63ac"},{url:"resources/dia_am.txt",revision:"32e1e743ecec586536c25f2458cd3a43"},{url:"resources/dia_ar.txt",revision:"80851f14b8286106618f11aa7ae8805f"},{url:"resources/dia_bg.txt",revision:"91587bc16e3b642f40a25ff8d1c3d0f9"},{url:"resources/dia_bn.txt",revision:"f44c3fcc4a7b0890d4156eca0402cccc"},{url:"resources/dia_bs.txt",revision:"0702c63b2aaee2d20306adcddaea7ccc"},{url:"resources/dia_ca.txt",revision:"1a90a2b54a6f73d62e82772e1acbe8d0"},{url:"resources/dia_cs.txt",revision:"fa2847ec6f6e75a95410aa9dc20b8127"},{url:"resources/dia_da.txt",revision:"0efd12fd7f0e123bb9423ad1ffe9e656"},{url:"resources/dia_de.txt",revision:"469fb636bc289ba77a097ab7adf16a34"},{url:"resources/dia_el.txt",revision:"10cfc3115c42dae5c021d650850ae99e"},{url:"resources/dia_eo.txt",revision:"1209ecf16aa7598fe5342727c74a4d75"},{url:"resources/dia_es.txt",revision:"82f09fd89c36d86b3fef59329a613c65"},{url:"resources/dia_et.txt",revision:"f2ab92a7caa15d2161a17f58bd19e997"},{url:"resources/dia_eu.txt",revision:"e8adfcede0ea90af8a5683042a01eda0"},{url:"resources/dia_fa.txt",revision:"6793b6bed8a74a30d0b049b50d0516f2"},{url:"resources/dia_fi.txt",revision:"1a66ce94e0a9fefbd9c55edc49abf6fa"},{url:"resources/dia_fil.txt",revision:"ddcbbdc7230b1d7789002020ed34c01e"},{url:"resources/dia_fr.txt",revision:"c2a77b9e1f6d0b19dfc1e7bd40af2b42"},{url:"resources/dia_gl.txt",revision:"dbd313e4994792f6dcd1b59c39c3da7f"},{url:"resources/dia_gu.txt",revision:"3f5fa7dbec9d1f0c4fff0036b2dba0f8"},{url:"resources/dia_he.txt",revision:"e440cd11862b987985e4a0d2f5afb159"},{url:"resources/dia_hi.txt",revision:"78f34343a4f57ca4ec7e7a2717b625b6"},{url:"resources/dia_hr.txt",revision:"cc8f3026e5fd6a5c4eb4f2fb9b62ac10"},{url:"resources/dia_hu.txt",revision:"e17bfab25490d15929c65bbe3442f0dd"},{url:"resources/dia_id.txt",revision:"83d5c8178aa9b75a7d8be9854501508f"},{url:"resources/dia_it.txt",revision:"9e23d17c9eb7a8d074336f267f7bd2f8"},{url:"resources/dia_ja.txt",revision:"b76dd5c357b3ff1dfcabaddeab376d65"},{url:"resources/dia_kn.txt",revision:"280105c62f3261a784ab73952214dab2"},{url:"resources/dia_ko.txt",revision:"229e8f9c3d84e4635561ba392c465d11"},{url:"resources/dia_lt.txt",revision:"cd0159a46ef2c2bfb84bc6dad5a299cf"},{url:"resources/dia_lv.txt",revision:"9caa404e086db1e4da1a011a99847847"},{url:"resources/dia_ml.txt",revision:"44f8e230e471b112560a5ea979df1575"},{url:"resources/dia_mr.txt",revision:"9f77f05421ef5818d84c070b1b372e2b"},{url:"resources/dia_ms.txt",revision:"57cb8769a2fec369ee56969ecec2534a"},{url:"resources/dia_my.txt",revision:"a4376fafc38fda85318b032edbe9b5e4"},{url:"resources/dia_nl.txt",revision:"b6e0431168d72e1a515bcef3e2c5aff0"},{url:"resources/dia_no.txt",revision:"eb679e14c6b437fd2b22ff67f3d169ee"},{url:"resources/dia_pl.txt",revision:"ae3475b10f2824045fa7076f4584c085"},{url:"resources/dia_pt-br.txt",revision:"d5ce120975a388c3440de40d8179a36f"},{url:"resources/dia_pt.txt",revision:"d0c985f25e2924dd25bd540a82c3fd66"},{url:"resources/dia_ro.txt",revision:"b38b898b99d78cd6dbc7c9d95c0b4297"},{url:"resources/dia_ru.txt",revision:"11e6f186a986c351426d411672463bf4"},{url:"resources/dia_si.txt",revision:"e70185bbb8fd9be659522ff2fa957ed3"},{url:"resources/dia_sk.txt",revision:"bf62dbf0de6a754291a822fb0ac718f4"},{url:"resources/dia_sl.txt",revision:"a6b715115ec4be67fe24a4474d74801c"},{url:"resources/dia_sr.txt",revision:"81470f91f04359c1b3b627515d71ef6f"},{url:"resources/dia_sv.txt",revision:"9ae3be18b492a3f448bf771f520f7ab4"},{url:"resources/dia_sw.txt",revision:"e217cba6058fe404745a91f5cd292245"},{url:"resources/dia_ta.txt",revision:"55349be1ac0abd9d35c9029cc289c8b0"},{url:"resources/dia_te.txt",revision:"4147210236a771e3990faedd0fe6d496"},{url:"resources/dia_th.txt",revision:"397f4bcb46b5fb76cba6a06af33005b4"},{url:"resources/dia_tr.txt",revision:"1bbf900c6d0b810f8cc944baa003802a"},{url:"resources/dia_uk.txt",revision:"5b3f8485623c0cbd22985c141e7f1c7f"},{url:"resources/dia_vi.txt",revision:"8576286953704e5cdd6727eb3ec484f4"},{url:"resources/dia_zh-tw.txt",revision:"298ab192edb19a1ef363bfb1ed8f97e4"},{url:"resources/dia_zh.txt",revision:"f2fcdf5b619faf471bff3703fc0bf75f"},{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:"81d1704d5ab9207e2e5c7fc84379dc1a"}],{ignoreURLParametersMatching:[/.*/]})}));//# sourceMappingURL=service-worker.js.mapdiff --git a/src/main/webapp/service-worker.js.map b/src/main/webapp/service-worker.js.mapindex df63f6af2..37dc0b06f 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/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/a6aa10aafcc49fa7ebd2e697d8267ac2/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/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\": \"3ae5cb7b92474238c9cd6c9667771e8f\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"9f6e65617cb7b7a67185b05427d97feb\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"5852db2d29586e7a82e75be88c27e367\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"49546b5dc442ef2391394f4def07462c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"ad38046619064bc0f0790be6b5a7995f\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d4b2f375b0222562462613f553a3257c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\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\": \"52d494798d4f6fc629a801fcd99c7fd5\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"4ecc9f6d08787a9e2d29dacf7aadd1ca\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"ac9c7f7c93224087b3c09e3bd956a87c\"\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\": \"75f816c208d0c621e3066a97ff0ee6cf\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"ce61a0e62031a160e057809fefe64aa2\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"d3269625ce04b7a277b779ff175957d0\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"8eceb2fe587296dd11f9c8f6eae34c20\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"c4cb6b60234b04b2c8bc09e555746615\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"6deea8e9b96ff96043cd5cfd2a242a9f\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"42137930327ac2a2500f711352b35e25\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"d381db23d3c925eb81854c07b46776a5\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"b82e366bf57ecced9435c2a8ba9cb9b9\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"78b87563d88943ab816a3463927b9b50\"\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\": \"174e06ff4578aa4e2cadf5434494d8dd\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"01b04b3f54f1e2e63fcf1df033d24519\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"c4c110650228d22b021ebad4d6ef021e\"\n },\n {\n \"url\": \"math/es5/startup.js\",\n \"revision\": \"dc7130cdc866593293dbb5dde11ceb40\"\n },\n {\n \"url\": \"math/es5/core.js\",\n \"revision\": \"f71bc0bfb7d2ac8261747f97a5d47dd4\"\n },\n {\n \"url\": \"math/es5/ui/safe.js\",\n \"revision\": \"8c1fcfee7c879588ad409edcdd9cce53\"\n },\n {\n \"url\": \"math/es5/output/svg.js\",\n \"revision\": \"4f55967d16197ebb01b86356d8ab179a\"\n },\n {\n \"url\": \"math/es5/input/tex.js\",\n \"revision\": \"5c4f470da2ccb1acf85041fcecd6fff6\"\n },\n {\n \"url\": \"math/es5/input/asciimath.js\",\n \"revision\": \"c2d4076dd8e26d509bfe3a378e71cfa7\"\n },\n {\n \"url\": \"math/es5/output/svg/fonts/tex.js\",\n \"revision\": \"6eab785a3788ea805bd2b552d1f0aab8\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"f9a270e56f91d7b63e219306ff2b63ac\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"32e1e743ecec586536c25f2458cd3a43\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"80851f14b8286106618f11aa7ae8805f\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"91587bc16e3b642f40a25ff8d1c3d0f9\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"f44c3fcc4a7b0890d4156eca0402cccc\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"0702c63b2aaee2d20306adcddaea7ccc\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"1a90a2b54a6f73d62e82772e1acbe8d0\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"fa2847ec6f6e75a95410aa9dc20b8127\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"0efd12fd7f0e123bb9423ad1ffe9e656\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"469fb636bc289ba77a097ab7adf16a34\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"10cfc3115c42dae5c021d650850ae99e\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"1209ecf16aa7598fe5342727c74a4d75\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"82f09fd89c36d86b3fef59329a613c65\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"f2ab92a7caa15d2161a17f58bd19e997\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"e8adfcede0ea90af8a5683042a01eda0\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"6793b6bed8a74a30d0b049b50d0516f2\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"1a66ce94e0a9fefbd9c55edc49abf6fa\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"ddcbbdc7230b1d7789002020ed34c01e\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"c2a77b9e1f6d0b19dfc1e7bd40af2b42\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"dbd313e4994792f6dcd1b59c39c3da7f\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"3f5fa7dbec9d1f0c4fff0036b2dba0f8\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"e440cd11862b987985e4a0d2f5afb159\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"78f34343a4f57ca4ec7e7a2717b625b6\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"cc8f3026e5fd6a5c4eb4f2fb9b62ac10\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"e17bfab25490d15929c65bbe3442f0dd\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"83d5c8178aa9b75a7d8be9854501508f\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"9e23d17c9eb7a8d074336f267f7bd2f8\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"b76dd5c357b3ff1dfcabaddeab376d65\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"280105c62f3261a784ab73952214dab2\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"229e8f9c3d84e4635561ba392c465d11\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"cd0159a46ef2c2bfb84bc6dad5a299cf\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"9caa404e086db1e4da1a011a99847847\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"44f8e230e471b112560a5ea979df1575\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"9f77f05421ef5818d84c070b1b372e2b\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"57cb8769a2fec369ee56969ecec2534a\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"a4376fafc38fda85318b032edbe9b5e4\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"b6e0431168d72e1a515bcef3e2c5aff0\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"eb679e14c6b437fd2b22ff67f3d169ee\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"ae3475b10f2824045fa7076f4584c085\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"d5ce120975a388c3440de40d8179a36f\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"d0c985f25e2924dd25bd540a82c3fd66\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"b38b898b99d78cd6dbc7c9d95c0b4297\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"5aed41ed91e16b0e77879e74c8843768\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"e70185bbb8fd9be659522ff2fa957ed3\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"bf62dbf0de6a754291a822fb0ac718f4\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"a6b715115ec4be67fe24a4474d74801c\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"81470f91f04359c1b3b627515d71ef6f\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"9ae3be18b492a3f448bf771f520f7ab4\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"e217cba6058fe404745a91f5cd292245\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"55349be1ac0abd9d35c9029cc289c8b0\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"4147210236a771e3990faedd0fe6d496\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"397f4bcb46b5fb76cba6a06af33005b4\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"1bbf900c6d0b810f8cc944baa003802a\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"5b3f8485623c0cbd22985c141e7f1c7f\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"8576286953704e5cdd6727eb3ec484f4\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"298ab192edb19a1ef363bfb1ed8f97e4\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"f2fcdf5b619faf471bff3703fc0bf75f\"\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\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,kBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,YACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,8CACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,uCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,wCACKC,SAAA,oCAEd,CACED,IAAO,4CACKC,SAAA,oCAEd,CACED,IAAO,6CACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,mCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,cACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sCACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of file+{"version":3,"file":"service-worker.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/4ff239d194660511b9f1e015f5542050/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/opt/homebrew/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\": \"3ae5cb7b92474238c9cd6c9667771e8f\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"9f6e65617cb7b7a67185b05427d97feb\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"daa5f18f700ca4f92d732a0f965dfddd\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"49546b5dc442ef2391394f4def07462c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"ad38046619064bc0f0790be6b5a7995f\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"d4b2f375b0222562462613f553a3257c\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"open.html\",\n \"revision\": \"d71816b3b00e769fc6019fcdd6921662\"\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\": \"52d494798d4f6fc629a801fcd99c7fd5\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"4ecc9f6d08787a9e2d29dacf7aadd1ca\"\n },\n {\n \"url\": \"js/dropbox/Dropbox-sdk.min.js\",\n \"revision\": \"4b9842892aa37b156db0a8364b7a83b0\"\n },\n {\n \"url\": \"js/onedrive/OneDrive.js\",\n \"revision\": \"505e8280346666f7ee801bc59521fa67\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"5fcd67de91d122b5ef8e73f8a6680a75\"\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\": \"75f816c208d0c621e3066a97ff0ee6cf\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"ce61a0e62031a160e057809fefe64aa2\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"d3269625ce04b7a277b779ff175957d0\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"8eceb2fe587296dd11f9c8f6eae34c20\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"c4cb6b60234b04b2c8bc09e555746615\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"6deea8e9b96ff96043cd5cfd2a242a9f\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"42137930327ac2a2500f711352b35e25\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"d381db23d3c925eb81854c07b46776a5\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"740dce44cf53499f476ee8edc37d09a0\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"3bb38a5d9186a896ed04808e921ef888\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"5fb6ff1a73f54a9086b7a7e1f613b8ed\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"b82e366bf57ecced9435c2a8ba9cb9b9\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"78b87563d88943ab816a3463927b9b50\"\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\": \"174e06ff4578aa4e2cadf5434494d8dd\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"01b04b3f54f1e2e63fcf1df033d24519\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"c4c110650228d22b021ebad4d6ef021e\"\n },\n {\n \"url\": \"math/es5/startup.js\",\n \"revision\": \"dc7130cdc866593293dbb5dde11ceb40\"\n },\n {\n \"url\": \"math/es5/core.js\",\n \"revision\": \"f71bc0bfb7d2ac8261747f97a5d47dd4\"\n },\n {\n \"url\": \"math/es5/ui/safe.js\",\n \"revision\": \"8c1fcfee7c879588ad409edcdd9cce53\"\n },\n {\n \"url\": \"math/es5/output/svg.js\",\n \"revision\": \"4f55967d16197ebb01b86356d8ab179a\"\n },\n {\n \"url\": \"math/es5/input/tex.js\",\n \"revision\": \"5c4f470da2ccb1acf85041fcecd6fff6\"\n },\n {\n \"url\": \"math/es5/input/asciimath.js\",\n \"revision\": \"c2d4076dd8e26d509bfe3a378e71cfa7\"\n },\n {\n \"url\": \"math/es5/output/svg/fonts/tex.js\",\n \"revision\": \"6eab785a3788ea805bd2b552d1f0aab8\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"f9a270e56f91d7b63e219306ff2b63ac\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"32e1e743ecec586536c25f2458cd3a43\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"80851f14b8286106618f11aa7ae8805f\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"91587bc16e3b642f40a25ff8d1c3d0f9\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"f44c3fcc4a7b0890d4156eca0402cccc\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"0702c63b2aaee2d20306adcddaea7ccc\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"1a90a2b54a6f73d62e82772e1acbe8d0\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"fa2847ec6f6e75a95410aa9dc20b8127\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"0efd12fd7f0e123bb9423ad1ffe9e656\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"469fb636bc289ba77a097ab7adf16a34\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"10cfc3115c42dae5c021d650850ae99e\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"1209ecf16aa7598fe5342727c74a4d75\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"82f09fd89c36d86b3fef59329a613c65\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"f2ab92a7caa15d2161a17f58bd19e997\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"e8adfcede0ea90af8a5683042a01eda0\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"6793b6bed8a74a30d0b049b50d0516f2\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"1a66ce94e0a9fefbd9c55edc49abf6fa\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"ddcbbdc7230b1d7789002020ed34c01e\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"c2a77b9e1f6d0b19dfc1e7bd40af2b42\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"dbd313e4994792f6dcd1b59c39c3da7f\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"3f5fa7dbec9d1f0c4fff0036b2dba0f8\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"e440cd11862b987985e4a0d2f5afb159\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"78f34343a4f57ca4ec7e7a2717b625b6\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"cc8f3026e5fd6a5c4eb4f2fb9b62ac10\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"e17bfab25490d15929c65bbe3442f0dd\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"83d5c8178aa9b75a7d8be9854501508f\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"9e23d17c9eb7a8d074336f267f7bd2f8\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"b76dd5c357b3ff1dfcabaddeab376d65\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"280105c62f3261a784ab73952214dab2\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"229e8f9c3d84e4635561ba392c465d11\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"cd0159a46ef2c2bfb84bc6dad5a299cf\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"9caa404e086db1e4da1a011a99847847\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"44f8e230e471b112560a5ea979df1575\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"9f77f05421ef5818d84c070b1b372e2b\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"57cb8769a2fec369ee56969ecec2534a\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"a4376fafc38fda85318b032edbe9b5e4\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"b6e0431168d72e1a515bcef3e2c5aff0\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"eb679e14c6b437fd2b22ff67f3d169ee\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"ae3475b10f2824045fa7076f4584c085\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"d5ce120975a388c3440de40d8179a36f\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"d0c985f25e2924dd25bd540a82c3fd66\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"b38b898b99d78cd6dbc7c9d95c0b4297\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"11e6f186a986c351426d411672463bf4\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"e70185bbb8fd9be659522ff2fa957ed3\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"bf62dbf0de6a754291a822fb0ac718f4\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"a6b715115ec4be67fe24a4474d74801c\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"81470f91f04359c1b3b627515d71ef6f\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"9ae3be18b492a3f448bf771f520f7ab4\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"e217cba6058fe404745a91f5cd292245\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"55349be1ac0abd9d35c9029cc289c8b0\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"4147210236a771e3990faedd0fe6d496\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"397f4bcb46b5fb76cba6a06af33005b4\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"1bbf900c6d0b810f8cc944baa003802a\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"5b3f8485623c0cbd22985c141e7f1c7f\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"8576286953704e5cdd6727eb3ec484f4\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"298ab192edb19a1ef363bfb1ed8f97e4\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"f2fcdf5b619faf471bff3703fc0bf75f\"\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\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,kBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,qBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,aACKC,SAAA,oCAEd,CACED,IAAO,YACKC,SAAA,oCAEd,CACED,IAAO,gBACKC,SAAA,oCAEd,CACED,IAAO,8CACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,uCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,2CACKC,SAAA,oCAEd,CACED,IAAO,4BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,oCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,wCACKC,SAAA,oCAEd,CACED,IAAO,4CACKC,SAAA,oCAEd,CACED,IAAO,6CACKC,SAAA,oCAEd,CACED,IAAO,yCACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,mBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,mCACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,cACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,kCACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,8BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,oBACKC,SAAA,oCAEd,CACED,IAAO,wBACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,2BACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,0BACKC,SAAA,oCAEd,CACED,IAAO,qCACKC,SAAA,oCAEd,CACED,IAAO,gCACKC,SAAA,oCAEd,CACED,IAAO,iCACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,+BACKC,SAAA,oCAEd,CACED,IAAO,sCACKC,SAAA,oCAEd,CACED,IAAO,6BACKC,SAAA,oCAEd,CACED,IAAO,uBACKC,SAAA,oCAEd,CACED,IAAO,kBACKC,SAAA,oCAEd,CACED,IAAO,sBACKC,SAAA,oCAEd,CACED,IAAO,yBACKC,SAAA,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of file