draw.io is a JavaScript, client-side editor for general diagramming.
28.2.5 release
David Bensoneaae294cba50
diff --git a/ChangeLog b/ChangeLogindex 6a5f7491e..d20df9a2f 100644--- a/ChangeLog+++ b/ChangeLog@@ -1,3 +1,15 @@+24-SEP-2025: 28.2.5++- Fixes handling of alpha values in inverted colors [DID-16387]++22-SEP-2025: 28.2.4++- Adds support for HEX colors with transparency+- Adds dash-dot line pattern [jgraph/drawio-desktop#2184]+- [conf cloud] Adds option to build page IDs mapping manually using DB files [DID-15536]+- Fixes possible NPE for VSDX import [jgraph/drawio#3507]+- Changes unconnected terminal dims to [0,0] [jgraph/drawio#5242]+16-SEP-2025: 28.2.3- Adds dropbox.com to connect-src CSPdiff --git a/README.md b/README.mdindex 3e56ca254..13aa96991 100644--- a/README.md+++ b/README.md@@ -1,6 +1,6 @@About------draw.io, this project, is a configurable diagramming/whiteboarding visualization application. draw.io is jointly owned and developed by JGraph Ltd and draw.io AG.+draw.io, this project, is a configurable diagramming/whiteboarding visualization application. draw.io is jointly owned and developed by draw.io Ltd and draw.io AG.As well as running this project, we run a production-grade deployment of the diagramming interface at https://app.diagrams.net.diff --git a/VERSION b/VERSIONindex efe959cbc..f84f77c95 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-28.2.3\ No newline at end of file+28.2.5\ No newline at end of filediff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.jsindex b786103ec..f02bb93e1 100644--- a/src/main/webapp/js/app.min.js+++ b/src/main/webapp/js/app.min.js@@ -67,7 +67,7 @@ b),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io"))}})();"1"==urlPa"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.2.3",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.2.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/"),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||@@ -98,7 +98,7 @@ mxRectangle.prototype.equals=function(a){return null!=a&&a.x==this.x&&a.y==this.var mxEffects={animateChanges:function(a,b,c){var d=0,e=function(){for(var g=!1,k=0;k<b.length;k++){var l=b[k];if(l instanceof mxGeometryChange||l instanceof mxTerminalChange||l instanceof mxValueChange||l instanceof mxChildChange||l instanceof mxStyleChange){var m=a.getView().getState(l.cell||l.child,!1);if(null!=m)if(g=!0,l.constructor!=mxGeometryChange||a.model.isEdge(l.cell))mxUtils.setOpacity(m.shape.node,100*d/10);else{var n=a.getView().scale,p=(l.geometry.x-l.previous.x)*n,q=(l.geometry.y-l.previous.y)*n,r=(l.geometry.width-l.previous.width)*n;n*=l.geometry.height-l.previous.height;0==d?(m.x-=p,m.y-=q,m.width-=r,m.height-=n):(m.x+=p/10,m.y+=q/10,m.width+=r/10,m.height+=n/10);a.cellRenderer.redraw(m);mxEffects.cascadeOpacity(a,l.cell,100*d/10)}}}10>d&&g?(d++,window.setTimeout(e,f)):null!=c&&c()},f=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;e<d;e++){var f=a.model.getChildAt(b,e),g=a.getView().getState(f);null!=g&&(mxUtils.setOpacity(g.shape.node,c),mxEffects.cascadeOpacity(a,f,c))}b=a.model.getEdges(b);if(null!=b)for(e=0;e<b.length;e++)d=a.getView().getState(b[e]),null!=d&&mxUtils.setOpacity(d.shape.node,c)},fadeOut:function(a,b,c,d,e,f){d=d||40;e=e||30;var g=b||100;mxUtils.setOpacity(a,g);if(f||null==f){var k=function(){g=Math.max(g-d,0);mxUtils.setOpacity(a,g);0<g?window.setTimeout(k,e):(a.style.visibility="hidden",c&&a.parentNode&&a.parentNode.removeChild(a))};window.setTimeout(k,e)}else a.style.visibility="hidden",c&&a.parentNode&&a.parentNode.removeChild(a)}},-mxUtils={errorResource:"none"!=mxClient.language?"error":"",closeResource:"none"!=mxClient.language?"close":"",errorImage:mxClient.imageBasePath+"/error.gif",lightDarkColorSupported:function(){var a=document.createElement("div");a.style.color="light-dark(white, black)";a=a.style.color;null!=a&&"generic-light-dark("===a.substring(0,19)&&(a=a.replace("generic-light-dark","light-dark"));return"light-dark(white, black)"===a}(),preferDarkColor:!1,lightDarkColorRegex:/light-dark\(\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,+mxUtils={errorResource:"none"!=mxClient.language?"error":"",closeResource:"none"!=mxClient.language?"close":"",errorImage:mxClient.imageBasePath+"/error.gif",lightDarkColorSupported:function(){var a=document.createElement("div");a.style.color="light-dark(white, black)";a=a.style.color;null!=a&&"generic-light-dark("===a.substring(0,19)&&(a=a.replace("generic-light-dark","light-dark"));return"light-dark(white, black)"===a}(),preferDarkColor:!1,lightDarkColorRegex:/light-dark\(\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,varColorRegex:/^var\([^)]+\)/,hexColorRegex:/(^#[a-zA-Z0-9]*$)/,rgbaColorRegex:/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i,canvasContext:function(){var a=null;try{a=document.createElement("canvas").getContext("2d")}catch(b){}return a}(),validInvalidColor:"rgba(0, 0, 0, 0)",normalizedValidInvalidColor:"rgba(0,0,0,0)",removeCursors:function(a){null!=a.style&&(a.style.cursor="");a=a.childNodes;if(null!=a)for(var b=a.length,c=0;c<b;c+=1)mxUtils.removeCursors(a[c])},getCurrentStyle:function(){return mxClient.IS_IE&&(null==document.documentMode||9>document.documentMode)?function(a){return null!=a?a.currentStyle:null}:function(a){return null!=a?window.getComputedStyle(a,""):null}}(),getCssFontFamily:function(a){if("string"===typeof a){a=a.split(",");for(var b=0;b<a.length;b++)a[b]=mxUtils.trim(a[b]),'"'==a[b].charAt(0)&&'"'==a[b].charAt(a[b].length-1)&&(a[b]=a[b].substring(1,a[b].length-1));a=a.join(", ")}return a},parseCssFontFamily:function(a,b){if("string"===typeof a){a=a.split(",");for(var c=0;c<a.length;c++){a[c]=mxUtils.trim(a[c]);var d=2<a[c].length&&'"'==a[c].charAt(a[c].length-1)&&'"'==a[c].charAt(0);d&&(a[c]=a[c].substring(1,a[c].length-1));b&&(a[c]=mxUtils.htmlEntities(a[c]));if(d||0<=a[c].indexOf(" "))a[c]='"'+a[c]+'"'}a=a.join(", ")}return a},parseCssNumber:function(a){"thin"==a?a="2":"medium"==a?a="4":"thick"==a&&(a="6");a=parseFloat(a);isNaN(a)&&(a=0);return a},setPrefixedStyle:function(){var a=null;mxClient.IS_OT?a="O":mxClient.IS_SF||mxClient.IS_GC?a="Webkit":mxClient.IS_MT?a="Moz":mxClient.IS_IE&&@@ -125,19 +125,19 @@ b,c-e)+"px")},load:function(a){a=new mxXmlRequest(a,null,"GET",!1);a.send();retup||299<p?g():(e[m]=n,d--,0==d&&b(e))},g)})(a[k],k);0==d&&b(e)},post:function(a,b,c,d){return(new mxXmlRequest(a,b)).send(c,d)},submit:function(a,b,c,d){return(new mxXmlRequest(a,b)).simulate(c,d)},loadInto:function(a,b,c){mxClient.IS_IE?b.onreadystatechange=function(){4==b.readyState&&c()}:b.addEventListener("load",c,!1);b.load(a)},getValue:function(a,b,c){a=null!=a?a[b]:null;null==a&&(a=c);return a},getColorValue:function(a,b,c){a=null!=a?a[b]:null;if(null==a||"default"==a)a=c;return a},getNumber:function(a,b,c){a=null!=a?a[b]:null;null==a&&(a=c||0);return Number(a)},isLightDarkColor:function(a){return"string"===typeof a&&"light-dark"==mxUtils.ltrim(a).substring(0,10)},isVarColor:function(a){return mxUtils.varColorRegex.test(a)},isHexColor:function(a){return mxUtils.hexColorRegex.test(a)},isRgbColor:function(a){return mxUtils.rgbaColorRegex.test(a)},isValidColor:function(a){if(null==a)return!1;a=String(a).replace(/\s/g,"");if(a.toLowerCase()==mxUtils.normalizedValidInvalidColor)return!0;mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor;mxUtils.canvasContext.fillStyle=a;return mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor},isDarkColor:function(a){a=mxUtils.parseColor(a);return null!=a?128>.213*a.r+.715*a.g+.072*a.b:!1},parseLightDarkColor:function(a,b,c){var d=a,e=null;null!=a&&(a=a.match(mxUtils.lightDarkColorRegex))&&3===a.length&&(d=mxUtils.trim(a[1]),e=mxUtils.trim(a[2]));null==e&&(c||mxUtils.isVarColor(d))&&(e=d);e=null!=e?e:null!=b?b:mxUtils.getInverseColor(d);return{light:d,dark:e}},-getInverseColor:function(a,b,c){function d(m){return Math.round(b/100*(255-m)+m*(1-b/100))}function e(m){return Math.round(Math.max(0,Math.min(255,m)))}c=null!=c?c:180;b=null!=b?b:93;var f=0,g=0,k=0;if("transparent"==a.toLowerCase())return a;k=mxUtils.parseColor(a);if(null==k)return a;f=k.r;g=k.g;k=k.b;f=d(f);g=d(g);k=d(k);a=[1,0,0,0,1,0,0,0,1];var l=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);a[0]=.2126+.7874*l-.2126*c;a[1]=.7152-.7152*l-.7152*c;a[2]=.0722-.0722*l+.9278*c;a[3]=.2126-.2126*-l+.143*c;a[4]=.7152+(1-.7152)*l+.14*c;a[5]=.0722-.0722*l-.283*c;a[6]=.2126-.2126*l-.7874*c;a[7]=.7152-.7152*l+.7152*c;a[8]=.0722+.9278*l+.0722*c;c=e(a[0]*f+a[1]*g+a[2]*k);l=e(a[3]*f+a[4]*g+a[5]*k);f=e(a[6]*f+a[7]*g+a[8]*k);return"#"+(16777216|c<<16|l<<8|f).toString(16).slice(1)},addAlphaToColor:function(a,b){null!=b&&null!=a&&"transparent"!=a&&(a=mxUtils.parseColor(a),a="rgba("+a.r+","+a.g+","+a.b+","+b+")");return a},getLightDarkColor:function(a,b,c,d){var e={light:"transparent",dark:"transparent",-cssText:"transparent"};null!=a&&a!=mxConstants.NONE&&("string"===typeof a?(a=mxUtils.parseLightDarkColor(a,c,d),e.light=mxUtils.addAlphaToColor(a.light,b),e.dark=mxUtils.addAlphaToColor(a.dark,b),e.cssText=mxUtils.lightDarkColorSupported?e.light==e.dark?e.light:"light-dark("+e.light+", "+e.dark+")":mxUtils.preferDarkColor?e.dark:e.light):(e.light=a,e.dark=a,e.cssText=a));return e},invertLightDarkColor:function(a){var b={};b.light=a.dark;b.dark=a.light;b.cssText=b.light==b.dark?b.light:"light-dark("+-b.light+", "+b.dark+")";return b},getColor:function(a,b,c){a=null!=a?a[b]:null;null==a?a=c:a==mxConstants.NONE&&(a=null);return a},isEmptyObject:function(a){for(var b in a)return!1;return!0},clone:function(a,b,c){c=null!=c?c:!1;var d=null;if(null!=a&&"function"==typeof a.constructor)if(a.constructor===Element)d=a.cloneNode(null!=c?!c:!1);else{d=new a.constructor;for(var e in a)e!=mxObjectIdentity.FIELD_NAME&&(null==b||0>mxUtils.indexOf(b,e))&&(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},-equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c<a.length;c++)if(null!=a[c]&&null==b[c]||null==a[c]&&null!=b[c]||null!=a[c]&&null!=b[c]&&(a[c].x!=b[c].x||a[c].y!=b[c].y))return!1;return!0},equalEntries:function(a,b){var c=0;if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b){for(var d in b)c++;for(d in a)if(c--,!(mxUtils.isNaN(a[d])&&mxUtils.isNaN(b[d])||-a[d]==b[d]))return!1}return 0==c},removeDuplicates:function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},toString:function(a){var b="",c;for(c in a)try{if(null==a[c])b+=c+" = [null]\n";else if("function"==typeof a[c])b+=c+" => [Function]\n";else if("object"==typeof a[c]){var d=-mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return A;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);A=Math.sin(e*Math.PI/180);e=p*m+A*n;m=-1*A*m+p*n;n=e*e;var q=m*m,r=c*c,t=d*d,u=n/r+q/t;1<u?(c*=Math.sqrt(u),d*=Math.sqrt(u),f=0):(u=1,f===g&&-(u=-1),f=u*Math.sqrt((r*t-r*q-t*n)/(r*q+t*n)));n=f*c*m/d;q=-1*f*d*e/c;k=p*n-A*q+k/2;l=A*n+p*q+l/2;r=Math.atan2((m-q)/d,(e-n)/c)-Math.atan2(0,1);f=0<=r?r:2*Math.PI+r;r=Math.atan2((-m-q)/d,(-e-n)/c)-Math.atan2((m-q)/d,(e-n)/c);e=0<=r?r:2*Math.PI+r;0==g&&0<e?e-=2*Math.PI:0!=g&&0>e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=A;d*=A;var v=Math.cos(f),y=Math.sin(f);q=-m*(n*y+d*v);r=-m*(c*y-p*v);for(var A=[],z=0;z<g;++z){f+=e;v=-Math.cos(f);y=Math.sin(f);t=n*v-d*y+k;u=c*v+p*y+l;var C=-m*(n*y+d*v);v=-m*(c*y-p*v);y=6*z;A[y]=Number(q+a);A[y+1]=Number(r+b);A[y+2]=Number(t-C+a);A[y+3]=Number(u-v+b);A[y+4]=Number(t+a);A[y+5]=Number(u+b);q=t+C;r=u+v}return A},getBoundingBox:function(a,b,c){var d=null;if(null!=a&&null!=b&&0!=b){b=mxUtils.toRadians(b);d=Math.cos(b);var e=Math.sin(b);c=null!=c?c:new mxPoint(a.x+a.width/2,a.y+a.height/2);var f=new mxPoint(a.x,a.y);b=new mxPoint(a.x+a.width,a.y);var g=new mxPoint(b.x,a.y+a.height);a=-new mxPoint(a.x,g.y);f=mxUtils.getRotatedPoint(f,d,e,c);b=mxUtils.getRotatedPoint(b,d,e,c);g=mxUtils.getRotatedPoint(g,d,e,c);a=mxUtils.getRotatedPoint(a,d,e,c);d=new mxRectangle(f.x,f.y,0,0);d.add(new mxRectangle(b.x,b.y,0,0));d.add(new mxRectangle(g.x,g.y,0,0));d.add(new mxRectangle(a.x,a.y,0,0))}return d},getRotatedPoint:function(a,b,c,d){d=null!=d?d:new mxPoint;var e=a.x-d.x;a=a.y-d.y;return new mxPoint(e*b-a*c+d.x,a*b+e*c+d.y)},getPortConstraints:function(a,b,c,d){b=mxUtils.getValue(a.style,-mxConstants.STYLE_PORT_CONSTRAINT,mxUtils.getValue(b.style,c?mxConstants.STYLE_SOURCE_PORT_CONSTRAINT:mxConstants.STYLE_TARGET_PORT_CONSTRAINT,null));if(null==b)return d;d=b.toString();b=mxConstants.DIRECTION_MASK_NONE;c=0;1==mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT_ROTATION,0)&&(c=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0));a=0;45<c?(a=1,135<=c&&(a=2)):-45>c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_NORTH;-break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 1:b|=-mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<+getInverseColor:function(a,b,c){function d(n){return Math.round(b/100*(255-n)+n*(1-b/100))}function e(n){return Math.round(Math.max(0,Math.min(255,n)))}c=null!=c?c:180;b=null!=b?b:93;var f=0,g=0,k=0,l=1;if("transparent"==a.toLowerCase())return a;l=mxUtils.parseColor(a);if(null==l)return a;f=l.r;g=l.g;k=l.b;l=l.a;f=d(f);g=d(g);k=d(k);a=[1,0,0,0,1,0,0,0,1];var m=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);a[0]=.2126+.7874*m-.2126*c;a[1]=.7152-.7152*m-.7152*c;a[2]=.0722-.0722*m+.9278*c;a[3]=.2126-+.2126*m+.143*c;a[4]=.7152+(1-.7152)*m+.14*c;a[5]=.0722-.0722*m-.283*c;a[6]=.2126-.2126*m-.7874*c;a[7]=.7152-.7152*m+.7152*c;a[8]=.0722+.9278*m+.0722*c;c=e(a[0]*f+a[1]*g+a[2]*k);m=e(a[3]*f+a[4]*g+a[5]*k);f=e(a[6]*f+a[7]*g+a[8]*k);return"#"+(16777216|c<<16|m<<8|f).toString(16).slice(1)+(1>l?("0"+Math.round(255*l).toString(16)).slice(-2):"")},addAlphaToColor:function(a,b){null!=b&&null!=a&&"transparent"!=a&&(a=mxUtils.parseColor(a),a="rgba("+a.r+","+a.g+","+a.b+","+a.a*b+")");return a},getLightDarkColor:function(a,+b,c,d){var e={light:"transparent",dark:"transparent",cssText:"transparent"};null!=a&&a!=mxConstants.NONE&&("string"===typeof a?(a=mxUtils.parseLightDarkColor(a,c,d),e.light=mxUtils.addAlphaToColor(a.light,b),e.dark=mxUtils.addAlphaToColor(a.dark,b),e.cssText=mxUtils.lightDarkColorSupported?e.light==e.dark?e.light:"light-dark("+e.light+", "+e.dark+")":mxUtils.preferDarkColor?e.dark:e.light):(e.light=a,e.dark=a,e.cssText=a));return e},invertLightDarkColor:function(a){var b={};b.light=a.dark;b.dark=+a.light;b.cssText=b.light==b.dark?b.light:"light-dark("+b.light+", "+b.dark+")";return b},getColor:function(a,b,c){a=null!=a?a[b]:null;null==a?a=c:a==mxConstants.NONE&&(a=null);return a},isEmptyObject:function(a){for(var b in a)return!1;return!0},clone:function(a,b,c){c=null!=c?c:!1;var d=null;if(null!=a&&"function"==typeof a.constructor)if(a.constructor===Element)d=a.cloneNode(null!=c?!c:!1);else{d=new a.constructor;for(var e in a)e!=mxObjectIdentity.FIELD_NAME&&(null==b||0>mxUtils.indexOf(b,e))&&+(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c<a.length;c++)if(null!=a[c]&&null==b[c]||null==a[c]&&null!=b[c]||null!=a[c]&&null!=b[c]&&(a[c].x!=b[c].x||a[c].y!=b[c].y))return!1;return!0},equalEntries:function(a,b){var c=0;if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b){for(var d in b)c++;+for(d in a)if(c--,!(mxUtils.isNaN(a[d])&&mxUtils.isNaN(b[d])||a[d]==b[d]))return!1}return 0==c},removeDuplicates:function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},toString:function(a){var b="",c;for(c in a)try{if(null==a[c])b+=c+" = [null]\n";else if("function"==typeof a[c])b+=+c+" => [Function]\n";else if("object"==typeof a[c]){var d=mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return A;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);A=Math.sin(e*Math.PI/180);e=p*m+A*n;m=-1*A*m+p*n;n=e*e;var q=m*m,r=c*c,t=d*d,u=n/r++q/t;1<u?(c*=Math.sqrt(u),d*=Math.sqrt(u),f=0):(u=1,f===g&&(u=-1),f=u*Math.sqrt((r*t-r*q-t*n)/(r*q+t*n)));n=f*c*m/d;q=-1*f*d*e/c;k=p*n-A*q+k/2;l=A*n+p*q+l/2;r=Math.atan2((m-q)/d,(e-n)/c)-Math.atan2(0,1);f=0<=r?r:2*Math.PI+r;r=Math.atan2((-m-q)/d,(-e-n)/c)-Math.atan2((m-q)/d,(e-n)/c);e=0<=r?r:2*Math.PI+r;0==g&&0<e?e-=2*Math.PI:0!=g&&0>e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=A;d*=A;var v=Math.cos(f),y=Math.sin(f);q=-m*+(n*y+d*v);r=-m*(c*y-p*v);for(var A=[],z=0;z<g;++z){f+=e;v=Math.cos(f);y=Math.sin(f);t=n*v-d*y+k;u=c*v+p*y+l;var x=-m*(n*y+d*v);v=-m*(c*y-p*v);y=6*z;A[y]=Number(q+a);A[y+1]=Number(r+b);A[y+2]=Number(t-x+a);A[y+3]=Number(u-v+b);A[y+4]=Number(t+a);A[y+5]=Number(u+b);q=t+x;r=u+v}return A},getBoundingBox:function(a,b,c){var d=null;if(null!=a&&null!=b&&0!=b){b=mxUtils.toRadians(b);d=Math.cos(b);var e=Math.sin(b);c=null!=c?c:new mxPoint(a.x+a.width/2,a.y+a.height/2);var f=new mxPoint(a.x,a.y);b=new mxPoint(a.x++a.width,a.y);var g=new mxPoint(b.x,a.y+a.height);a=new mxPoint(a.x,g.y);f=mxUtils.getRotatedPoint(f,d,e,c);b=mxUtils.getRotatedPoint(b,d,e,c);g=mxUtils.getRotatedPoint(g,d,e,c);a=mxUtils.getRotatedPoint(a,d,e,c);d=new mxRectangle(f.x,f.y,0,0);d.add(new mxRectangle(b.x,b.y,0,0));d.add(new mxRectangle(g.x,g.y,0,0));d.add(new mxRectangle(a.x,a.y,0,0))}return d},getRotatedPoint:function(a,b,c,d){d=null!=d?d:new mxPoint;var e=a.x-d.x;a=a.y-d.y;return new mxPoint(e*b-a*c+d.x,a*b+e*c+d.y)},getPortConstraints:function(a,+b,c,d){b=mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT,mxUtils.getValue(b.style,c?mxConstants.STYLE_SOURCE_PORT_CONSTRAINT:mxConstants.STYLE_TARGET_PORT_CONSTRAINT,null));if(null==b)return d;d=b.toString();b=mxConstants.DIRECTION_MASK_NONE;c=0;1==mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT_ROTATION,0)&&(c=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0));a=0;45<c?(a=1,135<=c&&(a=2)):-45>c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=+mxConstants.DIRECTION_MASK_NORTH;break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;+break;case 1:b|=mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<1;b|=(a&mxConstants.DIRECTION_MASK_SOUTH)>>1;return b|(a&mxConstants.DIRECTION_MASK_EAST)>>3},findNearestSegment:function(a,b,c){var d=-1;if(0<a.absolutePoints.length)for(var e=a.absolutePoints[0],f=null,g=1;g<a.absolutePoints.length;g++){var k=a.absolutePoints[g];e=mxUtils.ptSegDistSq(e.x,e.y,k.x,k.y,b,c);if(null==f||e<f)f=e,d=g-1;e=k}return d},getDirectedBounds:function(a,b,c,d,e){var f=mxUtils.getValue(c,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);d=null!=d?d:mxUtils.getValue(c,mxConstants.STYLE_FLIPH,!1);e=null!=e?e:mxUtils.getValue(c,mxConstants.STYLE_FLIPV,!1);b.x=Math.round(Math.max(0,Math.min(a.width,b.x)));b.y=Math.round(Math.max(0,Math.min(a.height,b.y)));b.width=Math.round(Math.max(0,Math.min(a.width,b.width)));b.height=Math.round(Math.max(0,Math.min(a.height,b.height)));if(e&&(f==mxConstants.DIRECTION_SOUTH||f==mxConstants.DIRECTION_NORTH)||d&&(f==mxConstants.DIRECTION_EAST||f==mxConstants.DIRECTION_WEST))c=b.x,b.x=b.width,b.width=c;if(d&&(f==mxConstants.DIRECTION_SOUTH||f==mxConstants.DIRECTION_NORTH)||e&&(f==mxConstants.DIRECTION_EAST||f==mxConstants.DIRECTION_WEST))c=b.y,b.y=b.height,b.height=c;d=mxRectangle.fromRectangle(b);f==mxConstants.DIRECTION_SOUTH?(d.y=b.x,d.x=b.height,d.width=b.y,d.height=b.width):f==mxConstants.DIRECTION_WEST?(d.y=b.height,d.x=b.width,d.width=b.x,d.height=b.y):f==mxConstants.DIRECTION_NORTH&&(d.y=b.width,d.x=b.y,d.width=b.height,d.height=b.x);return new mxRectangle(a.x+d.x,a.y+d.y,a.width-d.width-d.x,a.height-d.height-d.y)},getPerimeterPoint:function(a,b,c){for(var d=@@ -153,43 +153,43 @@ null},ptSegDistSq:function(a,b,c,d,e,f){c-=a;d-=b;e-=a;f-=b;0>=e*c+f*d?c=0:(e=c-b,c){mxEffects.cascadeOpacity.apply(this,arguments)},fadeOut:function(a,b,c,d,e,f){mxEffects.fadeOut.apply(this,arguments)},setOpacity:function(a,b){mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?a.style.filter=100<=b?"":"alpha(opacity="+b+")":a.style.opacity=b/100},createElementNs:function(a,b,c){if(null!=a.createElementNS)return a.createElementNS(b,c);a=a.createElement(c);null!=namespace&&a.setAttribute("xmlns",b);return a},createImage:function(a){var b=document.createElement("img");b.setAttribute("src",a);b.setAttribute("border","0");return b},sortCells:function(a,b){b=null!=b?b:!0;var c=new mxDictionary;a.sort(function(d,e){var f=c.get(d);null==f&&(f=mxCellPath.create(d).split(mxCellPath.PATH_SEPARATOR),c.put(d,f));d=c.get(e);null==d&&(d=mxCellPath.create(e).split(mxCellPath.PATH_SEPARATOR),c.put(e,d));e=mxCellPath.compare(f,d);return 0==e?0:0<e==b?1:-1});return a},getStylename:function(a){return null!=a&&(a=a.split(";")[0],0>a.indexOf("="))?a:""},getStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0>a[c].indexOf("=")&&b.push(a[c])}return b},indexOfStylename:function(a,b){if(null!=a&&null!=b){a=a.split(";");for(var c=0,d=0;d<a.length;d++){if(a[d]==b)return c;c+=a[d].length+1}}return-1},addStylename:function(a,b){0>mxUtils.indexOfStylename(a,b)&&(null==a?a="":0<a.length&&";"!=a.charAt(a.length-1)&&(a+=";"),a+=b);return a},removeStylename:function(a,b){var c=[];if(null!=a){a=a.split(";");for(var d=0;d<a.length;d++)a[d]!=b&&c.push(a[d])}return c.join(";")},-removeAllStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0<=a[c].indexOf("=")&&b.push(a[c])}return b.join(";")},setCellStyles:function(a,b,c,d){if(null!=b&&0<b.length){a.beginUpdate();try{for(var e=0;e<b.length;e++)if(null!=b[e]){var f=mxUtils.setStyle(a.getStyle(b[e]),c,d);a.setStyle(b[e],f)}}finally{a.endUpdate()}}},parseColor:function(a,b){b=null!=b?b:1;var c=null;if(null!=a&&a!=mxConstants.NONE){if(mxUtils.isRgbColor(a)){a=a.replace(/[^\d,]/g,"").split(",");+removeAllStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0<=a[c].indexOf("=")&&b.push(a[c])}return b.join(";")},setCellStyles:function(a,b,c,d){if(null!=b&&0<b.length){a.beginUpdate();try{for(var e=0;e<b.length;e++)if(null!=b[e]){var f=mxUtils.setStyle(a.getStyle(b[e]),c,d);a.setStyle(b[e],f)}}finally{a.endUpdate()}}},parseColor:function(a,b){b=null!=b?b:1;var c=null;if(null!=a&&a!=mxConstants.NONE){if(mxUtils.isRgbColor(a)){a=a.replace(/[^\d,.]/g,"").split(",");c=parseInt(a[0]);var d=parseInt(a[1]),e=parseInt(a[2]);4==a.length&&(b=parseFloat(a[3]))}else mxUtils.isHexColor(a)||(a=mxUtils.color2hex(a)),a=a.substring(1),c=parseInt(a.substr(0,2),16),d=parseInt(a.substr(2,2),16),e=parseInt(a.substr(4,2),16),6<a.length&&(b=parseInt(a.substr(6,2),16)/255);c={r:c,g:d,b:e,a:b}}return c},hex2rgb:function(a){var b=mxUtils.parseColor(a);null!=b&&(a="rgb("+b.r+", "+b.g+", "+b.b+")");return a},hex2rgba:function(a,b){b=mxUtils.parseColor(a,b);null!=b&&(a="rgba("+b.r+", "+-b.g+", "+b.b+", "+b.a+")");return a},rgba2hex:function(a){var b=mxUtils.parseColor(a);return null!=b?"#"+("0"+b.r.toString(16)).slice(-2)+("0"+b.g.toString(16)).slice(-2)+("0"+b.b.toString(16)).slice(-2):a},color2hex:function(a,b){b=null!=b?b:"#000000";try{null!=a&&(a=String(a).replace(/\s/g,""),a.toLowerCase()==mxUtils.normalizedValidInvalidColor?b="#000000":(mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor,mxUtils.canvasContext.fillStyle=a,mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor?-b=mxUtils.canvasContext.fillStyle:1<a.length&&"#"==a.charAt(0)&&(mxUtils.canvasContext.fillStyle=a.substring(1),mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor&&(b=mxUtils.canvasContext.fillStyle))))}catch(c){}return b},setStyle:function(a,b,c){var d=null!=c&&("undefined"==typeof c.length||0<c.length);if(null==a||0==a.length)d&&(a=b+"="+c+";");else if(a.substring(0,b.length+1)==b+"="){var e=a.indexOf(";");a=d?b+"="+c+(0>e?";":a.substring(e)):0>e||e==a.length-1?"":a.substring(e+1)}else{var f=-a.indexOf(";"+b+"=");0>f?d&&(d=";"==a.charAt(a.length-1)?"":";",a=a+d+b+"="+c+";"):(e=a.indexOf(";",f+1),a=d?a.substring(0,f+1)+b+"="+c+(0>e?";":a.substring(e)):a.substring(0,f)+(0>e?";":a.substring(e)))}return a},setCellStyleFlags:function(a,b,c,d,e){if(null!=b&&0<b.length){a.beginUpdate();try{for(var f=0;f<b.length;f++)if(null!=b[f]){var g=mxUtils.setStyleFlag(a.getStyle(b[f]),c,d,e);a.setStyle(b[f],g)}}finally{a.endUpdate()}}},setStyleFlag:function(a,b,c,d){if(null==a||0==a.length)a=d||null==d?-b+"="+c:b+"=0";else{var e=a.indexOf(b+"=");if(0>e)e=";"==a.charAt(a.length-1)?"":";",a=d||null==d?a+e+b+"="+c:a+e+b+"=0";else{var f=a.indexOf(";",e),g=0>f?a.substring(e+b.length+1):a.substring(e+b.length+1,f);g=null==d?parseInt(g)^c:d?parseInt(g)|c:parseInt(g)&~c;a=a.substring(0,e)+b+"="+g+(0<=f?a.substring(f):"")}}return a},getAlignmentAsPoint:function(a,b){var c=-.5,d=-.5;a==mxConstants.ALIGN_LEFT?c=0:a==mxConstants.ALIGN_RIGHT&&(c=-1);b==mxConstants.ALIGN_TOP?d=0:b==mxConstants.ALIGN_BOTTOM&&(d=--1);return new mxPoint(c,d)},getSizeForString:function(a,b,c,d,e){b=null!=b?b:mxConstants.DEFAULT_FONTSIZE;c=null!=c?c:mxConstants.DEFAULT_FONTFAMILY;var f=document.createElement("div");f.style.fontFamily=c;f.style.fontSize=Math.round(b)+"px";f.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?b*mxConstants.LINE_HEIGHT+"px":mxConstants.LINE_HEIGHT*mxSvgCanvas2D.prototype.lineHeightCorrection;null!=e&&((e&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(f.style.fontWeight="bold"),(e&mxConstants.FONT_ITALIC)==-mxConstants.FONT_ITALIC&&(f.style.fontStyle="italic"),b=[],(e&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&b.push("underline"),(e&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&b.push("line-through"),0<b.length&&(f.style.textDecoration=b.join(" ")));f.style.position="absolute";f.style.visibility="hidden";f.style.display="inline-block";f.style.zoom="1";null!=d?(f.style.width=d+"px",f.style.whiteSpace="normal"):f.style.whiteSpace="nowrap";f.innerHTML=a;document.body.appendChild(f);-a=new mxRectangle(0,0,f.offsetWidth,f.offsetHeight);document.body.removeChild(f);return a},getViewXml:function(a,b,c,d,e){d=null!=d?d:0;e=null!=e?e:0;b=null!=b?b:1;null==c&&(c=[a.getModel().getRoot()]);var f=a.getView(),g=null,k=f.isEventsEnabled();f.setEventsEnabled(!1);var l=f.drawPane,m=f.overlayPane;a.dialect==mxConstants.DIALECT_SVG?(f.drawPane=document.createElementNS(mxConstants.NS_SVG,"g"),f.canvas.appendChild(f.drawPane),f.overlayPane=document.createElementNS(mxConstants.NS_SVG,"g")):(f.drawPane=-f.drawPane.cloneNode(!1),f.canvas.appendChild(f.drawPane),f.overlayPane=f.overlayPane.cloneNode(!1));f.canvas.appendChild(f.overlayPane);var n=f.getTranslate();f.translate=new mxPoint(d,e);b=new mxTemporaryCellStates(a.getView(),b,c);try{g=(new mxCodec).encode(a.getView())}finally{b.destroy(),f.translate=n,f.canvas.removeChild(f.drawPane),f.canvas.removeChild(f.overlayPane),f.drawPane=l,f.overlayPane=m,f.setEventsEnabled(k)}return g},getScaleForPageCount:function(a,b,c,d){if(1>a)return 1;c=null!=-c?c:mxConstants.PAGE_FORMAT_A4_PORTRAIT;d=null!=d?d:0;var e=c.width-2*d;c=c.height-2*d;d=mxRectangle.fromRectangle(b.getGraphBounds());b=b.getView().getScale();d.width/=b;d.height/=b;b=d.width;var f=Math.sqrt(a);d=Math.sqrt(b/d.height/(e/c));c=f*d;d=f/d;if(1>c&&d>a){var g=d/a;d=a;c/=g}1>d&&c>a&&(g=c/a,c=a,d/=g);g=Math.ceil(c)*Math.ceil(d);for(f=0;g>a;){g=Math.floor(c)/c;var k=Math.floor(d)/d;1==g&&(g=Math.floor(c-1)/c);1==k&&(k=Math.floor(d-1)/d);g=g>k?g:k;c*=g;d*=g;g=Math.ceil(c)*Math.ceil(d);f++;-if(10<f)break}return e*c/b*.99999},show:function(a,b,c,d,e,f){c=null!=c?c:0;d=null!=d?d:0;null==b?b=window.open().document:b.open();9==document.documentMode&&b.writeln('\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--\x3e');var g=a.getGraphBounds(),k=Math.ceil(c-g.x),l=Math.ceil(d-g.y);null==e&&(e=Math.ceil(g.width+c)+Math.ceil(Math.ceil(g.x)-g.x));null==f&&(f=Math.ceil(g.height+d)+Math.ceil(Math.ceil(g.y)-g.y));if(mxClient.IS_IE||11==document.documentMode){d="<html><head>";-g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)d+=g[c].outerHTML;d+="<style>";for(c=0;c<document.styleSheets.length;c++)try{d+=document.styleSheets[c].cssText}catch(m){}d=d+'</style></head><body style="margin:0px;"><div style="position:absolute;overflow:hidden;width:'+(e+"px;height:"+f+'px;"><div style="position:relative;left:'+k+"px;top:"+l+'px;">')+a.container.innerHTML;b.writeln(d+"</div></div></body><html>");b.close()}else{b.writeln("<html><head>");g=document.getElementsByTagName("base");-for(c=0;c<g.length;c++)b.writeln(mxUtils.getOuterHtml(g[c]));d=document.getElementsByTagName("link");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));d=document.getElementsByTagName("style");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));b.writeln('</head><body style="margin:0px;"></body></html>');b.close();c=b.createElement("div");c.position="absolute";c.overflow="hidden";c.style.width=e+"px";c.style.height=f+"px";e=b.createElement("div");e.style.position="absolute";e.style.left=-k+"px";e.style.top=l+"px";f=a.container.firstChild;for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.appendChild(g),f=f.nextSibling;b.body.appendChild(c);null!=e.firstChild&&b.body.appendChild(e);null!=d&&(d.style.minWidth="",d.style.minHeight="",d.firstChild.setAttribute("transform","translate("+k+","+l+")"))}mxUtils.removeCursors(b.body);return b},printScreen:function(a){var b=window.open();mxUtils.show(a,b.document);a=function(){b.focus();b.print();-b.close()};mxClient.IS_GC?b.setTimeout(a,500):a()},popup:function(a,b){if(b){var c=document.createElement("div");c.style.overflow="scroll";c.style.width="636px";c.style.height="460px";b=document.createElement("pre");b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," ");c.appendChild(b);c=new mxWindow("Popup Window",c,document.body.clientWidth/2-320,Math.max(document.body.clientHeight||0,document.documentElement.clientHeight)/2-240,640,480,!1,!0);c.setClosable(!0);c.setVisible(!0)}else mxClient.IS_NS?-(c=window.open(),c.document.writeln("<pre>"+mxUtils.htmlEntities(a)+"</pre"),c.document.close()):(c=window.open(),b=c.document.createElement("pre"),b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," "),c.document.body.appendChild(b))},alert:function(a){alert(a)},prompt:function(a,b){return prompt(a,null!=b?b:"")},confirm:function(a){return confirm(a)},error:function(a,b,c,d){var e=document.createElement("div");e.style.padding="20px";var f=document.createElement("img");-f.setAttribute("src",d||mxUtils.errorImage);f.setAttribute("valign","bottom");f.style.verticalAlign="middle";e.appendChild(f);e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));mxUtils.write(e,a);a=document.body.clientWidth;d=document.body.clientHeight||document.documentElement.clientHeight;var g=new mxWindow(mxResources.get(mxUtils.errorResource)||mxUtils.errorResource,e,(a-b)/2,d/4,b,null,!1,!0);c&&(mxUtils.br(e),b=-document.createElement("p"),c=document.createElement("button"),mxClient.IS_IE?c.style.cssText="float:right":c.setAttribute("style","float:right"),mxEvent.addListener(c,"click",function(k){g.destroy()}),mxUtils.write(c,mxResources.get(mxUtils.closeResource)||mxUtils.closeResource),b.appendChild(c),e.appendChild(b),mxUtils.br(e),g.setClosable(!0));g.setVisible(!0);return g},makeDraggable:function(a,b,c,d,e,f,g,k,l,m){a=new mxDragSource(a,c);a.dragOffset=new mxPoint(null!=e?e:0,null!=f?f:mxConstants.TOOLTIP_VERTICAL_OFFSET);-a.autoscroll=g;a.setGuidesEnabled(!1);null!=l&&(a.highlightDropTargets=l);null!=m&&(a.getDropTarget=m);a.getGraphForEvent=function(n){return"function"==typeof b?b(n):b};null!=d&&(a.createDragElement=function(){return d.cloneNode(!0)},k&&(a.createPreviewElement=function(n){var p=d.cloneNode(!0),q=parseInt(p.style.width),r=parseInt(p.style.height);p.style.width=Math.round(q*n.view.scale)+"px";p.style.height=Math.round(r*n.view.scale)+"px";return p}));return a},format:function(a){return parseFloat(parseFloat(a).toFixed(2))}},-mxConstants={DEFAULT_HOTSPOT:.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:"exact",RENDERING_HINT_FASTER:"faster",RENDERING_HINT_FASTEST:"fastest",DIALECT_SVG:"svg",DIALECT_MIXEDHTML:"mixedHtml",DIALECT_PREFERHTML:"preferHtml",DIALECT_STRICTHTML:"strictHtml",NS_SVG:"http://www.w3.org/2000/svg",NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XLINK:"http://www.w3.org/1999/xlink",SHADOWCOLOR:"#808080",VML_SHADOWCOLOR:"#808080",SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_BLUR:2,SHADOW_OPACITY:1,-NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:"#00FF00",DEFAULT_INVALID_COLOR:"#FF0000",OUTLINE_HIGHLIGHT_COLOR:"#00FF00",OUTLINE_HIGHLIGHT_STROKEWIDTH:5,HIGHLIGHT_STROKEWIDTH:3,HIGHLIGHT_SIZE:2,HIGHLIGHT_OPACITY:100,CURSOR_MOVABLE_VERTEX:"move",-CURSOR_MOVABLE_EDGE:"move",CURSOR_LABEL_HANDLE:"default",CURSOR_TERMINAL_HANDLE:"pointer",CURSOR_BEND_HANDLE:"crosshair",CURSOR_VIRTUAL_BEND_HANDLE:"crosshair",CURSOR_CONNECT:"pointer",HIGHLIGHT_COLOR:"#00FF00",CONNECT_TARGET_COLOR:"#0000FF",INVALID_CONNECT_TARGET_COLOR:"#FF0000",DROP_TARGET_COLOR:"#0000FF",VALID_COLOR:"#00FF00",INVALID_COLOR:"#FF0000",EDGE_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,-EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:"#FF0000",GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:"#0099FF",OUTLINE_STROKEWIDTH:mxClient.IS_IE?2:3,HANDLE_SIZE:6,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:"#00FF00",HANDLE_STROKECOLOR:"black",LABEL_HANDLE_FILLCOLOR:"yellow",CONNECT_HANDLE_FILLCOLOR:"#0000FF",LOCKED_HANDLE_FILLCOLOR:"#FF0000",OUTLINE_HANDLE_FILLCOLOR:"#00FFFF",OUTLINE_HANDLE_STROKECOLOR:"#0033FF",DEFAULT_FONTFAMILY:"Arial,Helvetica",DEFAULT_FONTSIZE:11,DEFAULT_TEXT_DIRECTION:"",LINE_HEIGHT:1.2,WORD_WRAP:"normal",-ABSOLUTE_LINE_HEIGHT:!1,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:.15,LINE_ARCSIZE:20,ARROW_SPACING:0,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT:new mxRectangle(0,0,827,1169),PAGE_FORMAT_A4_LANDSCAPE:new mxRectangle(0,0,1169,827),PAGE_FORMAT_LETTER_PORTRAIT:new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE:new mxRectangle(0,0,1100,850),NONE:"none",STYLE_PERIMETER:"perimeter",STYLE_SOURCE_PORT:"sourcePort",-STYLE_TARGET_PORT:"targetPort",STYLE_PORT_CONSTRAINT:"portConstraint",STYLE_PORT_CONSTRAINT_ROTATION:"portConstraintRotation",STYLE_SOURCE_PORT_CONSTRAINT:"sourcePortConstraint",STYLE_TARGET_PORT_CONSTRAINT:"targetPortConstraint",STYLE_OPACITY:"opacity",STYLE_FILL_OPACITY:"fillOpacity",STYLE_FILL_STYLE:"fillStyle",STYLE_STROKE_OPACITY:"strokeOpacity",STYLE_TEXT_OPACITY:"textOpacity",STYLE_TEXT_DIRECTION:"textDirection",STYLE_OVERFLOW:"overflow",STYLE_BLOCK_SPACING:"blockSpacing",STYLE_ORTHOGONAL:"orthogonal",-STYLE_EXIT_X:"exitX",STYLE_EXIT_Y:"exitY",STYLE_EXIT_DX:"exitDx",STYLE_EXIT_DY:"exitDy",STYLE_EXIT_PERIMETER:"exitPerimeter",STYLE_ENTRY_X:"entryX",STYLE_ENTRY_Y:"entryY",STYLE_ENTRY_DX:"entryDx",STYLE_ENTRY_DY:"entryDy",STYLE_ENTRY_PERIMETER:"entryPerimeter",STYLE_WHITE_SPACE:"whiteSpace",STYLE_ROTATION:"rotation",STYLE_FILLCOLOR:"fillColor",STYLE_POINTER_EVENTS:"pointerEvents",STYLE_SWIMLANE_FILLCOLOR:"swimlaneFillColor",STYLE_MARGIN:"margin",STYLE_GRADIENTCOLOR:"gradientColor",STYLE_GRADIENT_DIRECTION:"gradientDirection",-STYLE_STROKECOLOR:"strokeColor",STYLE_SEPARATORCOLOR:"separatorColor",STYLE_STROKEWIDTH:"strokeWidth",STYLE_ALIGN:"align",STYLE_VERTICAL_ALIGN:"verticalAlign",STYLE_LABEL_WIDTH:"labelWidth",STYLE_LABEL_POSITION:"labelPosition",STYLE_VERTICAL_LABEL_POSITION:"verticalLabelPosition",STYLE_IMAGE_ASPECT:"imageAspect",STYLE_IMAGE_ALIGN:"imageAlign",STYLE_IMAGE_VERTICAL_ALIGN:"imageVerticalAlign",STYLE_GLASS:"glass",STYLE_IMAGE:"image",STYLE_IMAGE_WIDTH:"imageWidth",STYLE_IMAGE_HEIGHT:"imageHeight",STYLE_IMAGE_BACKGROUND:"imageBackground",-STYLE_IMAGE_BORDER:"imageBorder",STYLE_FLIPH:"flipH",STYLE_FLIPV:"flipV",STYLE_NOLABEL:"noLabel",STYLE_NOEDGESTYLE:"noEdgeStyle",STYLE_LABEL_BACKGROUNDCOLOR:"labelBackgroundColor",STYLE_LABEL_BORDERCOLOR:"labelBorderColor",STYLE_LABEL_PADDING:"labelPadding",STYLE_INDICATOR_SHAPE:"indicatorShape",STYLE_INDICATOR_IMAGE:"indicatorImage",STYLE_INDICATOR_COLOR:"indicatorColor",STYLE_INDICATOR_STROKECOLOR:"indicatorStrokeColor",STYLE_INDICATOR_GRADIENTCOLOR:"indicatorGradientColor",STYLE_INDICATOR_SPACING:"indicatorSpacing",-STYLE_INDICATOR_WIDTH:"indicatorWidth",STYLE_INDICATOR_HEIGHT:"indicatorHeight",STYLE_INDICATOR_DIRECTION:"indicatorDirection",STYLE_SHADOW:"shadow",STYLE_TEXT_SHADOW:"textShadow",STYLE_SHADOW_OFFSET_X:"shadowOffsetX",STYLE_SHADOW_OFFSET_Y:"shadowOffsetY",STYLE_SHADOW_BLUR:"shadowBlur",STYLE_SHADOWCOLOR:"shadowColor",STYLE_SHADOW_OPACITY:"shadowOpacity",STYLE_SEGMENT:"segment",STYLE_ENDARROW:"endArrow",STYLE_STARTARROW:"startArrow",STYLE_ENDSIZE:"endSize",STYLE_STARTSIZE:"startSize",STYLE_SWIMLANE_LINE:"swimlaneLine",-STYLE_SWIMLANE_HEAD:"swimlaneHead",STYLE_SWIMLANE_BODY:"swimlaneBody",STYLE_ENDFILL:"endFill",STYLE_ENDFILLCOLOR:"endFillColor",STYLE_STARTFILL:"startFill",STYLE_STARTFILLCOLOR:"startFillColor",STYLE_DASHED:"dashed",STYLE_DASH_PATTERN:"dashPattern",STYLE_FIX_DASH:"fixDash",STYLE_ROUNDED:"rounded",STYLE_CURVED:"curved",STYLE_ARCSIZE:"arcSize",STYLE_ABSOLUTE_ARCSIZE:"absoluteArcSize",STYLE_SOURCE_PERIMETER_SPACING:"sourcePerimeterSpacing",STYLE_TARGET_PERIMETER_SPACING:"targetPerimeterSpacing",STYLE_PERIMETER_SPACING:"perimeterSpacing",-STYLE_SPACING:"spacing",STYLE_SPACING_TOP:"spacingTop",STYLE_SPACING_LEFT:"spacingLeft",STYLE_SPACING_BOTTOM:"spacingBottom",STYLE_SPACING_RIGHT:"spacingRight",STYLE_HORIZONTAL:"horizontal",STYLE_DIRECTION:"direction",STYLE_ANCHOR_POINT_DIRECTION:"anchorPointDirection",STYLE_ELBOW:"elbow",STYLE_FONTCOLOR:"fontColor",STYLE_FONTFAMILY:"fontFamily",STYLE_FONTSIZE:"fontSize",STYLE_FONTSTYLE:"fontStyle",STYLE_ASPECT:"aspect",STYLE_AUTOSIZE:"autosize",STYLE_AUTOSIZE_GRID:"autosizeGrid",STYLE_FIXED_WIDTH:"fixedWidth",-STYLE_FOLDABLE:"foldable",STYLE_EDITABLE:"editable",STYLE_BACKGROUND_OUTLINE:"backgroundOutline",STYLE_BENDABLE:"bendable",STYLE_MOVABLE:"movable",STYLE_RESIZABLE:"resizable",STYLE_RESIZE_WIDTH:"resizeWidth",STYLE_RESIZE_HEIGHT:"resizeHeight",STYLE_ROTATABLE:"rotatable",STYLE_CLONEABLE:"cloneable",STYLE_DELETABLE:"deletable",STYLE_SHAPE:"shape",STYLE_EDGE:"edgeStyle",STYLE_JETTY_SIZE:"jettySize",STYLE_SOURCE_JETTY_SIZE:"sourceJettySize",STYLE_TARGET_JETTY_SIZE:"targetJettySize",STYLE_LOOP:"loopStyle",-STYLE_ORTHOGONAL_LOOP:"orthogonalLoop",STYLE_ROUTING_CENTER_X:"routingCenterX",STYLE_ROUTING_CENTER_Y:"routingCenterY",STYLE_CLIP_PATH:"clipPath",FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_STRIKETHROUGH:8,SHAPE_RECTANGLE:"rectangle",SHAPE_ELLIPSE:"ellipse",SHAPE_DOUBLE_ELLIPSE:"doubleEllipse",SHAPE_RHOMBUS:"rhombus",SHAPE_LINE:"line",SHAPE_IMAGE:"image",SHAPE_ARROW:"arrow",SHAPE_ARROW_CONNECTOR:"arrowConnector",SHAPE_LABEL:"label",SHAPE_CYLINDER:"cylinder",SHAPE_SWIMLANE:"swimlane",SHAPE_CONNECTOR:"connector",-SHAPE_ACTOR:"actor",SHAPE_CLOUD:"cloud",SHAPE_TRIANGLE:"triangle",SHAPE_HEXAGON:"hexagon",ARROW_CLASSIC:"classic",ARROW_CLASSIC_THIN:"classicThin",ARROW_BLOCK:"block",ARROW_BLOCK_THIN:"blockThin",ARROW_OPEN:"open",ARROW_OPEN_THIN:"openThin",ARROW_OVAL:"oval",ARROW_DIAMOND:"diamond",ARROW_DIAMOND_THIN:"diamondThin",ALIGN_LEFT:"left",ALIGN_CENTER:"center",ALIGN_RIGHT:"right",ALIGN_TOP:"top",ALIGN_MIDDLE:"middle",ALIGN_BOTTOM:"bottom",DIRECTION_NORTH:"north",DIRECTION_SOUTH:"south",DIRECTION_EAST:"east",-DIRECTION_WEST:"west",DIRECTION_RADIAL:"radial",TEXT_DIRECTION_DEFAULT:"",TEXT_DIRECTION_AUTO:"auto",TEXT_DIRECTION_LTR:"ltr",TEXT_DIRECTION_RTL:"rtl",TEXT_DIRECTION_VERTICAL_LR:"vertical-lr",TEXT_DIRECTION_VERTICAL_RL:"vertical-rl",DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,ELBOW_VERTICAL:"vertical",ELBOW_HORIZONTAL:"horizontal",EDGESTYLE_ELBOW:"elbowEdgeStyle",EDGESTYLE_ENTITY_RELATION:"entityRelationEdgeStyle",-EDGESTYLE_LOOP:"loopEdgeStyle",EDGESTYLE_SIDETOSIDE:"sideToSideEdgeStyle",EDGESTYLE_TOPTOBOTTOM:"topToBottomEdgeStyle",EDGESTYLE_ORTHOGONAL:"orthogonalEdgeStyle",EDGESTYLE_SEGMENT:"segmentEdgeStyle",PERIMETER_ELLIPSE:"ellipsePerimeter",PERIMETER_RECTANGLE:"rectanglePerimeter",PERIMETER_RHOMBUS:"rhombusPerimeter",PERIMETER_HEXAGON:"hexagonPerimeter",PERIMETER_TRIANGLE:"trianglePerimeter"};+b.g+", "+b.b+", "+b.a+")");return a},rgba2hex:function(a){var b=mxUtils.parseColor(a);return null!=b?"#"+("0"+b.r.toString(16)).slice(-2)+("0"+b.g.toString(16)).slice(-2)+("0"+b.b.toString(16)).slice(-2)+(1>b.a?("0"+Math.round(255*b.a).toString(16)).slice(-2):""):a},color2hex:function(a,b){b=null!=b?b:"#000000";try{null!=a&&(a=String(a).replace(/\s/g,""),a.toLowerCase()==mxUtils.normalizedValidInvalidColor?b="#000000":(mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor,mxUtils.canvasContext.fillStyle=+a,mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor?(b=mxUtils.canvasContext.fillStyle,mxUtils.isRgbColor(b)&&(b=mxUtils.rgba2hex(b))):1<a.length&&"#"==a.charAt(0)&&(mxUtils.canvasContext.fillStyle=a.substring(1),mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor&&(b=mxUtils.canvasContext.fillStyle))))}catch(c){}return b},setStyle:function(a,b,c){var d=null!=c&&("undefined"==typeof c.length||0<c.length);if(null==a||0==a.length)d&&(a=b+"="+c+";");else if(a.substring(0,b.length+1)==+b+"="){var e=a.indexOf(";");a=d?b+"="+c+(0>e?";":a.substring(e)):0>e||e==a.length-1?"":a.substring(e+1)}else{var f=a.indexOf(";"+b+"=");0>f?d&&(d=";"==a.charAt(a.length-1)?"":";",a=a+d+b+"="+c+";"):(e=a.indexOf(";",f+1),a=d?a.substring(0,f+1)+b+"="+c+(0>e?";":a.substring(e)):a.substring(0,f)+(0>e?";":a.substring(e)))}return a},setCellStyleFlags:function(a,b,c,d,e){if(null!=b&&0<b.length){a.beginUpdate();try{for(var f=0;f<b.length;f++)if(null!=b[f]){var g=mxUtils.setStyleFlag(a.getStyle(b[f]),c,d,+e);a.setStyle(b[f],g)}}finally{a.endUpdate()}}},setStyleFlag:function(a,b,c,d){if(null==a||0==a.length)a=d||null==d?b+"="+c:b+"=0";else{var e=a.indexOf(b+"=");if(0>e)e=";"==a.charAt(a.length-1)?"":";",a=d||null==d?a+e+b+"="+c:a+e+b+"=0";else{var f=a.indexOf(";",e),g=0>f?a.substring(e+b.length+1):a.substring(e+b.length+1,f);g=null==d?parseInt(g)^c:d?parseInt(g)|c:parseInt(g)&~c;a=a.substring(0,e)+b+"="+g+(0<=f?a.substring(f):"")}}return a},getAlignmentAsPoint:function(a,b){var c=-.5,d=-.5;a==mxConstants.ALIGN_LEFT?+c=0:a==mxConstants.ALIGN_RIGHT&&(c=-1);b==mxConstants.ALIGN_TOP?d=0:b==mxConstants.ALIGN_BOTTOM&&(d=-1);return new mxPoint(c,d)},getSizeForString:function(a,b,c,d,e){b=null!=b?b:mxConstants.DEFAULT_FONTSIZE;c=null!=c?c:mxConstants.DEFAULT_FONTFAMILY;var f=document.createElement("div");f.style.fontFamily=c;f.style.fontSize=Math.round(b)+"px";f.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?b*mxConstants.LINE_HEIGHT+"px":mxConstants.LINE_HEIGHT*mxSvgCanvas2D.prototype.lineHeightCorrection;null!=+e&&((e&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(f.style.fontWeight="bold"),(e&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(f.style.fontStyle="italic"),b=[],(e&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&b.push("underline"),(e&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&b.push("line-through"),0<b.length&&(f.style.textDecoration=b.join(" ")));f.style.position="absolute";f.style.visibility="hidden";f.style.display="inline-block";f.style.zoom="1";null!=+d?(f.style.width=d+"px",f.style.whiteSpace="normal"):f.style.whiteSpace="nowrap";f.innerHTML=a;document.body.appendChild(f);a=new mxRectangle(0,0,f.offsetWidth,f.offsetHeight);document.body.removeChild(f);return a},getViewXml:function(a,b,c,d,e){d=null!=d?d:0;e=null!=e?e:0;b=null!=b?b:1;null==c&&(c=[a.getModel().getRoot()]);var f=a.getView(),g=null,k=f.isEventsEnabled();f.setEventsEnabled(!1);var l=f.drawPane,m=f.overlayPane;a.dialect==mxConstants.DIALECT_SVG?(f.drawPane=document.createElementNS(mxConstants.NS_SVG,+"g"),f.canvas.appendChild(f.drawPane),f.overlayPane=document.createElementNS(mxConstants.NS_SVG,"g")):(f.drawPane=f.drawPane.cloneNode(!1),f.canvas.appendChild(f.drawPane),f.overlayPane=f.overlayPane.cloneNode(!1));f.canvas.appendChild(f.overlayPane);var n=f.getTranslate();f.translate=new mxPoint(d,e);b=new mxTemporaryCellStates(a.getView(),b,c);try{g=(new mxCodec).encode(a.getView())}finally{b.destroy(),f.translate=n,f.canvas.removeChild(f.drawPane),f.canvas.removeChild(f.overlayPane),f.drawPane=+l,f.overlayPane=m,f.setEventsEnabled(k)}return g},getScaleForPageCount:function(a,b,c,d){if(1>a)return 1;c=null!=c?c:mxConstants.PAGE_FORMAT_A4_PORTRAIT;d=null!=d?d:0;var e=c.width-2*d;c=c.height-2*d;d=mxRectangle.fromRectangle(b.getGraphBounds());b=b.getView().getScale();d.width/=b;d.height/=b;b=d.width;var f=Math.sqrt(a);d=Math.sqrt(b/d.height/(e/c));c=f*d;d=f/d;if(1>c&&d>a){var g=d/a;d=a;c/=g}1>d&&c>a&&(g=c/a,c=a,d/=g);g=Math.ceil(c)*Math.ceil(d);for(f=0;g>a;){g=Math.floor(c)/c;var k=Math.floor(d)/+d;1==g&&(g=Math.floor(c-1)/c);1==k&&(k=Math.floor(d-1)/d);g=g>k?g:k;c*=g;d*=g;g=Math.ceil(c)*Math.ceil(d);f++;if(10<f)break}return e*c/b*.99999},show:function(a,b,c,d,e,f){c=null!=c?c:0;d=null!=d?d:0;null==b?b=window.open().document:b.open();9==document.documentMode&&b.writeln('\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--\x3e');var g=a.getGraphBounds(),k=Math.ceil(c-g.x),l=Math.ceil(d-g.y);null==e&&(e=Math.ceil(g.width+c)+Math.ceil(Math.ceil(g.x)-g.x));null==f&&(f=+Math.ceil(g.height+d)+Math.ceil(Math.ceil(g.y)-g.y));if(mxClient.IS_IE||11==document.documentMode){d="<html><head>";g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)d+=g[c].outerHTML;d+="<style>";for(c=0;c<document.styleSheets.length;c++)try{d+=document.styleSheets[c].cssText}catch(m){}d=d+'</style></head><body style="margin:0px;"><div style="position:absolute;overflow:hidden;width:'+(e+"px;height:"+f+'px;"><div style="position:relative;left:'+k+"px;top:"+l+'px;">')+a.container.innerHTML;+b.writeln(d+"</div></div></body><html>");b.close()}else{b.writeln("<html><head>");g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)b.writeln(mxUtils.getOuterHtml(g[c]));d=document.getElementsByTagName("link");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));d=document.getElementsByTagName("style");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));b.writeln('</head><body style="margin:0px;"></body></html>');b.close();c=b.createElement("div");c.position="absolute";+c.overflow="hidden";c.style.width=e+"px";c.style.height=f+"px";e=b.createElement("div");e.style.position="absolute";e.style.left=k+"px";e.style.top=l+"px";f=a.container.firstChild;for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.appendChild(g),f=f.nextSibling;b.body.appendChild(c);null!=e.firstChild&&b.body.appendChild(e);null!=d&&(d.style.minWidth="",d.style.minHeight="",d.firstChild.setAttribute("transform","translate("+k+","+l+")"))}mxUtils.removeCursors(b.body);+return b},printScreen:function(a){var b=window.open();mxUtils.show(a,b.document);a=function(){b.focus();b.print();b.close()};mxClient.IS_GC?b.setTimeout(a,500):a()},popup:function(a,b){if(b){var c=document.createElement("div");c.style.overflow="scroll";c.style.width="636px";c.style.height="460px";b=document.createElement("pre");b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," ");c.appendChild(b);c=new mxWindow("Popup Window",c,document.body.clientWidth/2-320,Math.max(document.body.clientHeight||+0,document.documentElement.clientHeight)/2-240,640,480,!1,!0);c.setClosable(!0);c.setVisible(!0)}else mxClient.IS_NS?(c=window.open(),c.document.writeln("<pre>"+mxUtils.htmlEntities(a)+"</pre"),c.document.close()):(c=window.open(),b=c.document.createElement("pre"),b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," "),c.document.body.appendChild(b))},alert:function(a){alert(a)},prompt:function(a,b){return prompt(a,null!=b?b:"")},confirm:function(a){return confirm(a)},+error:function(a,b,c,d){var e=document.createElement("div");e.style.padding="20px";var f=document.createElement("img");f.setAttribute("src",d||mxUtils.errorImage);f.setAttribute("valign","bottom");f.style.verticalAlign="middle";e.appendChild(f);e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));mxUtils.write(e,a);a=document.body.clientWidth;d=document.body.clientHeight||document.documentElement.clientHeight;var g=new mxWindow(mxResources.get(mxUtils.errorResource)||+mxUtils.errorResource,e,(a-b)/2,d/4,b,null,!1,!0);c&&(mxUtils.br(e),b=document.createElement("p"),c=document.createElement("button"),mxClient.IS_IE?c.style.cssText="float:right":c.setAttribute("style","float:right"),mxEvent.addListener(c,"click",function(k){g.destroy()}),mxUtils.write(c,mxResources.get(mxUtils.closeResource)||mxUtils.closeResource),b.appendChild(c),e.appendChild(b),mxUtils.br(e),g.setClosable(!0));g.setVisible(!0);return g},makeDraggable:function(a,b,c,d,e,f,g,k,l,m){a=new mxDragSource(a,+c);a.dragOffset=new mxPoint(null!=e?e:0,null!=f?f:mxConstants.TOOLTIP_VERTICAL_OFFSET);a.autoscroll=g;a.setGuidesEnabled(!1);null!=l&&(a.highlightDropTargets=l);null!=m&&(a.getDropTarget=m);a.getGraphForEvent=function(n){return"function"==typeof b?b(n):b};null!=d&&(a.createDragElement=function(){return d.cloneNode(!0)},k&&(a.createPreviewElement=function(n){var p=d.cloneNode(!0),q=parseInt(p.style.width),r=parseInt(p.style.height);p.style.width=Math.round(q*n.view.scale)+"px";p.style.height=Math.round(r*+n.view.scale)+"px";return p}));return a},format:function(a){return parseFloat(parseFloat(a).toFixed(2))}},mxConstants={DEFAULT_HOTSPOT:.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:"exact",RENDERING_HINT_FASTER:"faster",RENDERING_HINT_FASTEST:"fastest",DIALECT_SVG:"svg",DIALECT_MIXEDHTML:"mixedHtml",DIALECT_PREFERHTML:"preferHtml",DIALECT_STRICTHTML:"strictHtml",NS_SVG:"http://www.w3.org/2000/svg",NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XLINK:"http://www.w3.org/1999/xlink",SHADOWCOLOR:"#808080",+VML_SHADOWCOLOR:"#808080",SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_BLUR:2,SHADOW_OPACITY:1,NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:"#00FF00",DEFAULT_INVALID_COLOR:"#FF0000",OUTLINE_HIGHLIGHT_COLOR:"#00FF00",OUTLINE_HIGHLIGHT_STROKEWIDTH:5,+HIGHLIGHT_STROKEWIDTH:3,HIGHLIGHT_SIZE:2,HIGHLIGHT_OPACITY:100,CURSOR_MOVABLE_VERTEX:"move",CURSOR_MOVABLE_EDGE:"move",CURSOR_LABEL_HANDLE:"default",CURSOR_TERMINAL_HANDLE:"pointer",CURSOR_BEND_HANDLE:"crosshair",CURSOR_VIRTUAL_BEND_HANDLE:"crosshair",CURSOR_CONNECT:"pointer",HIGHLIGHT_COLOR:"#00FF00",CONNECT_TARGET_COLOR:"#0000FF",INVALID_CONNECT_TARGET_COLOR:"#FF0000",DROP_TARGET_COLOR:"#0000FF",VALID_COLOR:"#00FF00",INVALID_COLOR:"#FF0000",EDGE_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_COLOR:"#00FF00",+VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:"#FF0000",GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:"#0099FF",OUTLINE_STROKEWIDTH:mxClient.IS_IE?2:3,HANDLE_SIZE:6,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:"#00FF00",HANDLE_STROKECOLOR:"black",LABEL_HANDLE_FILLCOLOR:"yellow",CONNECT_HANDLE_FILLCOLOR:"#0000FF",LOCKED_HANDLE_FILLCOLOR:"#FF0000",OUTLINE_HANDLE_FILLCOLOR:"#00FFFF",OUTLINE_HANDLE_STROKECOLOR:"#0033FF",DEFAULT_FONTFAMILY:"Arial,Helvetica",+DEFAULT_FONTSIZE:11,DEFAULT_TEXT_DIRECTION:"",LINE_HEIGHT:1.2,WORD_WRAP:"normal",ABSOLUTE_LINE_HEIGHT:!1,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:.15,LINE_ARCSIZE:20,ARROW_SPACING:0,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT:new mxRectangle(0,0,827,1169),PAGE_FORMAT_A4_LANDSCAPE:new mxRectangle(0,0,1169,827),PAGE_FORMAT_LETTER_PORTRAIT:new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE:new mxRectangle(0,+0,1100,850),NONE:"none",STYLE_PERIMETER:"perimeter",STYLE_SOURCE_PORT:"sourcePort",STYLE_TARGET_PORT:"targetPort",STYLE_PORT_CONSTRAINT:"portConstraint",STYLE_PORT_CONSTRAINT_ROTATION:"portConstraintRotation",STYLE_SOURCE_PORT_CONSTRAINT:"sourcePortConstraint",STYLE_TARGET_PORT_CONSTRAINT:"targetPortConstraint",STYLE_OPACITY:"opacity",STYLE_FILL_OPACITY:"fillOpacity",STYLE_FILL_STYLE:"fillStyle",STYLE_STROKE_OPACITY:"strokeOpacity",STYLE_TEXT_OPACITY:"textOpacity",STYLE_TEXT_DIRECTION:"textDirection",+STYLE_OVERFLOW:"overflow",STYLE_BLOCK_SPACING:"blockSpacing",STYLE_ORTHOGONAL:"orthogonal",STYLE_EXIT_X:"exitX",STYLE_EXIT_Y:"exitY",STYLE_EXIT_DX:"exitDx",STYLE_EXIT_DY:"exitDy",STYLE_EXIT_PERIMETER:"exitPerimeter",STYLE_ENTRY_X:"entryX",STYLE_ENTRY_Y:"entryY",STYLE_ENTRY_DX:"entryDx",STYLE_ENTRY_DY:"entryDy",STYLE_ENTRY_PERIMETER:"entryPerimeter",STYLE_WHITE_SPACE:"whiteSpace",STYLE_ROTATION:"rotation",STYLE_FILLCOLOR:"fillColor",STYLE_POINTER_EVENTS:"pointerEvents",STYLE_SWIMLANE_FILLCOLOR:"swimlaneFillColor",+STYLE_MARGIN:"margin",STYLE_GRADIENTCOLOR:"gradientColor",STYLE_GRADIENT_DIRECTION:"gradientDirection",STYLE_STROKECOLOR:"strokeColor",STYLE_SEPARATORCOLOR:"separatorColor",STYLE_STROKEWIDTH:"strokeWidth",STYLE_ALIGN:"align",STYLE_VERTICAL_ALIGN:"verticalAlign",STYLE_LABEL_WIDTH:"labelWidth",STYLE_LABEL_POSITION:"labelPosition",STYLE_VERTICAL_LABEL_POSITION:"verticalLabelPosition",STYLE_IMAGE_ASPECT:"imageAspect",STYLE_IMAGE_ALIGN:"imageAlign",STYLE_IMAGE_VERTICAL_ALIGN:"imageVerticalAlign",STYLE_GLASS:"glass",+STYLE_IMAGE:"image",STYLE_IMAGE_WIDTH:"imageWidth",STYLE_IMAGE_HEIGHT:"imageHeight",STYLE_IMAGE_BACKGROUND:"imageBackground",STYLE_IMAGE_BORDER:"imageBorder",STYLE_FLIPH:"flipH",STYLE_FLIPV:"flipV",STYLE_NOLABEL:"noLabel",STYLE_NOEDGESTYLE:"noEdgeStyle",STYLE_LABEL_BACKGROUNDCOLOR:"labelBackgroundColor",STYLE_LABEL_BORDERCOLOR:"labelBorderColor",STYLE_LABEL_PADDING:"labelPadding",STYLE_INDICATOR_SHAPE:"indicatorShape",STYLE_INDICATOR_IMAGE:"indicatorImage",STYLE_INDICATOR_COLOR:"indicatorColor",STYLE_INDICATOR_STROKECOLOR:"indicatorStrokeColor",+STYLE_INDICATOR_GRADIENTCOLOR:"indicatorGradientColor",STYLE_INDICATOR_SPACING:"indicatorSpacing",STYLE_INDICATOR_WIDTH:"indicatorWidth",STYLE_INDICATOR_HEIGHT:"indicatorHeight",STYLE_INDICATOR_DIRECTION:"indicatorDirection",STYLE_SHADOW:"shadow",STYLE_TEXT_SHADOW:"textShadow",STYLE_SHADOW_OFFSET_X:"shadowOffsetX",STYLE_SHADOW_OFFSET_Y:"shadowOffsetY",STYLE_SHADOW_BLUR:"shadowBlur",STYLE_SHADOWCOLOR:"shadowColor",STYLE_SHADOW_OPACITY:"shadowOpacity",STYLE_SEGMENT:"segment",STYLE_ENDARROW:"endArrow",+STYLE_STARTARROW:"startArrow",STYLE_ENDSIZE:"endSize",STYLE_STARTSIZE:"startSize",STYLE_SWIMLANE_LINE:"swimlaneLine",STYLE_SWIMLANE_HEAD:"swimlaneHead",STYLE_SWIMLANE_BODY:"swimlaneBody",STYLE_ENDFILL:"endFill",STYLE_ENDFILLCOLOR:"endFillColor",STYLE_STARTFILL:"startFill",STYLE_STARTFILLCOLOR:"startFillColor",STYLE_DASHED:"dashed",STYLE_DASH_PATTERN:"dashPattern",STYLE_FIX_DASH:"fixDash",STYLE_ROUNDED:"rounded",STYLE_CURVED:"curved",STYLE_ARCSIZE:"arcSize",STYLE_ABSOLUTE_ARCSIZE:"absoluteArcSize",+STYLE_SOURCE_PERIMETER_SPACING:"sourcePerimeterSpacing",STYLE_TARGET_PERIMETER_SPACING:"targetPerimeterSpacing",STYLE_PERIMETER_SPACING:"perimeterSpacing",STYLE_SPACING:"spacing",STYLE_SPACING_TOP:"spacingTop",STYLE_SPACING_LEFT:"spacingLeft",STYLE_SPACING_BOTTOM:"spacingBottom",STYLE_SPACING_RIGHT:"spacingRight",STYLE_HORIZONTAL:"horizontal",STYLE_DIRECTION:"direction",STYLE_ANCHOR_POINT_DIRECTION:"anchorPointDirection",STYLE_ELBOW:"elbow",STYLE_FONTCOLOR:"fontColor",STYLE_FONTFAMILY:"fontFamily",+STYLE_FONTSIZE:"fontSize",STYLE_FONTSTYLE:"fontStyle",STYLE_ASPECT:"aspect",STYLE_AUTOSIZE:"autosize",STYLE_AUTOSIZE_GRID:"autosizeGrid",STYLE_FIXED_WIDTH:"fixedWidth",STYLE_FOLDABLE:"foldable",STYLE_EDITABLE:"editable",STYLE_BACKGROUND_OUTLINE:"backgroundOutline",STYLE_BENDABLE:"bendable",STYLE_MOVABLE:"movable",STYLE_RESIZABLE:"resizable",STYLE_RESIZE_WIDTH:"resizeWidth",STYLE_RESIZE_HEIGHT:"resizeHeight",STYLE_ROTATABLE:"rotatable",STYLE_CLONEABLE:"cloneable",STYLE_DELETABLE:"deletable",STYLE_SHAPE:"shape",+STYLE_EDGE:"edgeStyle",STYLE_JETTY_SIZE:"jettySize",STYLE_SOURCE_JETTY_SIZE:"sourceJettySize",STYLE_TARGET_JETTY_SIZE:"targetJettySize",STYLE_LOOP:"loopStyle",STYLE_ORTHOGONAL_LOOP:"orthogonalLoop",STYLE_ROUTING_CENTER_X:"routingCenterX",STYLE_ROUTING_CENTER_Y:"routingCenterY",STYLE_CLIP_PATH:"clipPath",FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_STRIKETHROUGH:8,SHAPE_RECTANGLE:"rectangle",SHAPE_ELLIPSE:"ellipse",SHAPE_DOUBLE_ELLIPSE:"doubleEllipse",SHAPE_RHOMBUS:"rhombus",SHAPE_LINE:"line",SHAPE_IMAGE:"image",+SHAPE_ARROW:"arrow",SHAPE_ARROW_CONNECTOR:"arrowConnector",SHAPE_LABEL:"label",SHAPE_CYLINDER:"cylinder",SHAPE_SWIMLANE:"swimlane",SHAPE_CONNECTOR:"connector",SHAPE_ACTOR:"actor",SHAPE_CLOUD:"cloud",SHAPE_TRIANGLE:"triangle",SHAPE_HEXAGON:"hexagon",ARROW_CLASSIC:"classic",ARROW_CLASSIC_THIN:"classicThin",ARROW_BLOCK:"block",ARROW_BLOCK_THIN:"blockThin",ARROW_OPEN:"open",ARROW_OPEN_THIN:"openThin",ARROW_OVAL:"oval",ARROW_DIAMOND:"diamond",ARROW_DIAMOND_THIN:"diamondThin",ALIGN_LEFT:"left",ALIGN_CENTER:"center",+ALIGN_RIGHT:"right",ALIGN_TOP:"top",ALIGN_MIDDLE:"middle",ALIGN_BOTTOM:"bottom",DIRECTION_NORTH:"north",DIRECTION_SOUTH:"south",DIRECTION_EAST:"east",DIRECTION_WEST:"west",DIRECTION_RADIAL:"radial",TEXT_DIRECTION_DEFAULT:"",TEXT_DIRECTION_AUTO:"auto",TEXT_DIRECTION_LTR:"ltr",TEXT_DIRECTION_RTL:"rtl",TEXT_DIRECTION_VERTICAL_LR:"vertical-lr",TEXT_DIRECTION_VERTICAL_RL:"vertical-rl",DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,+ELBOW_VERTICAL:"vertical",ELBOW_HORIZONTAL:"horizontal",EDGESTYLE_ELBOW:"elbowEdgeStyle",EDGESTYLE_ENTITY_RELATION:"entityRelationEdgeStyle",EDGESTYLE_LOOP:"loopEdgeStyle",EDGESTYLE_SIDETOSIDE:"sideToSideEdgeStyle",EDGESTYLE_TOPTOBOTTOM:"topToBottomEdgeStyle",EDGESTYLE_ORTHOGONAL:"orthogonalEdgeStyle",EDGESTYLE_SEGMENT:"segmentEdgeStyle",PERIMETER_ELLIPSE:"ellipsePerimeter",PERIMETER_RECTANGLE:"rectanglePerimeter",PERIMETER_RHOMBUS:"rhombusPerimeter",PERIMETER_HEXAGON:"hexagonPerimeter",PERIMETER_TRIANGLE:"trianglePerimeter"};function mxEventObject(a){this.name=a;this.properties=[];for(var b=1;b<arguments.length;b+=2)null!=arguments[b+1]&&(this.properties[arguments[b]]=arguments[b+1])}mxEventObject.prototype.name=null;mxEventObject.prototype.properties=null;mxEventObject.prototype.consumed=!1;mxEventObject.prototype.getName=function(){return this.name};mxEventObject.prototype.getProperties=function(){return this.properties};mxEventObject.prototype.getProperty=function(a){return this.properties[a]};mxEventObject.prototype.isConsumed=function(){return this.consumed};mxEventObject.prototype.consume=function(){this.consumed=!0};function mxMouseEvent(a,b){this.evt=a;this.sourceState=this.state=b}mxMouseEvent.prototype.consumed=!1;mxMouseEvent.prototype.evt=null;mxMouseEvent.prototype.graphX=null;mxMouseEvent.prototype.graphY=null;mxMouseEvent.prototype.state=null;mxMouseEvent.prototype.sourceState=null;mxMouseEvent.prototype.getEvent=function(){return this.evt};mxMouseEvent.prototype.getSource=function(){return mxEvent.getSource(this.evt)};mxMouseEvent.prototype.isSource=function(a){return null!=a?mxUtils.isAncestorNode(a.node,this.getSource()):!1};mxMouseEvent.prototype.getX=function(){return mxEvent.getClientX(this.getEvent())};mxMouseEvent.prototype.getY=function(){return mxEvent.getClientY(this.getEvent())};mxMouseEvent.prototype.getGraphX=function(){return this.graphX};mxMouseEvent.prototype.getGraphY=function(){return this.graphY};@@ -439,8 +439,8 @@ mxSvgCanvas2D.prototype.addForeignObject=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t)d,e,f,g,k,l,m,n,p),null!=a&&(v.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),b=this.createElement("switch"),b.appendChild(v),b.appendChild(a),u.appendChild(b)));t.appendChild(u)};mxSvgCanvas2D.prototype.updateTextNodes=function(a,b,c,d,e,f,g,k,l,m,n,p){var q=this.state.scale,r="",t="";null!=n&&"vertical-"==n.substring(0,9)?(r="-rl"==n.substring(n.length-3),t=e==mxConstants.ALIGN_LEFT?r?"flex-end":"flex-start":e==mxConstants.ALIGN_RIGHT?r?"flex-start":"flex-end":"center",r=f==mxConstants.ALIGN_TOP?"flex-start":f==mxConstants.ALIGN_BOTTOM?"flex-end":"center"):(t=f==mxConstants.ALIGN_TOP?"flex-start":f==mxConstants.ALIGN_BOTTOM?"flex-end":"center",r=e==mxConstants.ALIGN_LEFT?"flex-start":e==mxConstants.ALIGN_RIGHT?"flex-end":"center");var u=null!=this.state.fontBackgroundColor?this.getLightDarkColor(this.state.fontBackgroundColor):null,v=null!=this.state.fontBorderColor?this.getLightDarkColor(this.state.fontBorderColor):null;mxSvgCanvas2D.createCss(c+this.foreignObjectPadding,d,e,f,g,k,l,n,null!=u?u.cssText:null,null!=v?v.cssText:null,"display: flex; align-items: unsafe "+t+"; justify-content: unsafe "+r+"; "+(null!=n&&"vertical-"==n.substring(0,9)?"writing-mode: "+n+-";":""),this.getTextCss(),q,mxUtils.bind(this,function(y,A,z,C,B){a+=this.state.dx;b+=this.state.dy;var x=p.firstChild;"title"==x.nodeName&&(x=x.nextSibling);C+="color: "+this.getLightDarkColor(this.state.fontColor).light+"; ";C+=null!=u?"background-color: "+u.light+"; ":"";C+=null!=v?"border-color: "+v.light+"; ":"";var D=x.firstChild,E=D.firstChild,I=(this.rotateHtml?this.state.rotation:0)+(null!=m?m:0),F=(0!=this.foOffset?"translate("+this.foOffset+" "+this.foOffset+")":"")+(1!=q?"scale("+q+")":-"");this.setCssText(E.firstChild,B);this.setCssText(E,C);x.setAttribute("width",Math.ceil(1/Math.min(1,q)*100)+"%");x.setAttribute("height",Math.ceil(1/Math.min(1,q)*100)+"%");A=Math.round(b+A);0>A?(x.setAttribute("y",A),z+="padding-top: 0; "):(x.removeAttribute("y"),z+="padding-top: "+A+"px; ");this.setCssText(D,z+"margin-left: "+Math.round(a+y)+"px;");F+=0!=I?"rotate("+I+" "+a+" "+b+")":"";""!=F?p.setAttribute("transform",F):p.removeAttribute("transform");1!=this.state.alpha?p.setAttribute("opacity",+";":""),this.getTextCss(),q,mxUtils.bind(this,function(y,A,z,x,B){a+=this.state.dx;b+=this.state.dy;var C=p.firstChild;"title"==C.nodeName&&(C=C.nextSibling);x+="color: "+this.getLightDarkColor(this.state.fontColor).light+"; ";x+=null!=u?"background-color: "+u.light+"; ":"";x+=null!=v?"border-color: "+v.light+"; ":"";var E=C.firstChild,D=E.firstChild,I=(this.rotateHtml?this.state.rotation:0)+(null!=m?m:0),F=(0!=this.foOffset?"translate("+this.foOffset+" "+this.foOffset+")":"")+(1!=q?"scale("+q+")":+"");this.setCssText(D.firstChild,B);this.setCssText(D,x);C.setAttribute("width",Math.ceil(1/Math.min(1,q)*100)+"%");C.setAttribute("height",Math.ceil(1/Math.min(1,q)*100)+"%");A=Math.round(b+A);0>A?(C.setAttribute("y",A),z+="padding-top: 0; "):(C.removeAttribute("y"),z+="padding-top: "+A+"px; ");this.setCssText(E,z+"margin-left: "+Math.round(a+y)+"px;");F+=0!=I?"rotate("+I+" "+a+" "+b+")":"";""!=F?p.setAttribute("transform",F):p.removeAttribute("transform");1!=this.state.alpha?p.setAttribute("opacity",this.state.alpha):p.removeAttribute("opacity")}))};mxSvgCanvas2D.createCss=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r){k=null!=k&&"vertical-"==k.substring(0,9);q="box-sizing: border-box; font-size: 0; ";q=k?q+("text-align: "+(d==mxConstants.ALIGN_TOP?"left":d==mxConstants.ALIGN_BOTTOM?"right":"center")+"; "):q+("text-align: "+(c==mxConstants.ALIGN_LEFT?"left":c==mxConstants.ALIGN_RIGHT?"right":"center")+"; ");var t=mxUtils.getAlignmentAsPoint(c,d);c="overflow: hidden; ";var u="width: 1px; ",v="height: 1px; ",y=t.x*a;t=t.y*b;g?(u="width: "+Math.round(a)+"px; ",q+="max-height: "+Math.round(b)+"px; ",t=0):"fill"==f?(u="width: "+Math.round(a)+"px; ",v="height: "+Math.round(b)+"px; ",p+="width: 100%; height: 100%; ",q+="width: "+Math.round(a-2)+"px; "+v):"width"==f?(u="width: "+Math.round(a-2)+"px; ",p+="width: 100%; ",q+=u,t=0,0<b&&(q+="max-height: "+Math.round(b)+"px; ")):"block"==f?(u="width: "+Math.round(a-2)+"px; ",p+="width: 100%; ",c="",t=0,q+=u,"middle"==d&&(q+="max-height: "+Math.round(b)+"px; ")):(c="",k?y=0:t=0);d="";null!=l&&(d+="background-color: "+@@ -476,9 +476,9 @@ m.scale,e*m.scale,(f+1)*m.scale);null!=n&&(b=this.createElement("rect"),c=null!=2)),b.setAttribute("height",Math.ceil(n.height)),null!=c&&(b.style.fill=c.cssText),d&&(b.style.stroke=d.cssText),m=null!=m.fontBorderColor?Math.max(1,this.format(m.scale)):0,b.setAttribute("stroke-width",m),this.root.ownerDocument==document&&1==mxUtils.mod(m,2)&&b.setAttribute("transform","translate(0.5, 0.5)"),a.insertBefore(b,a.firstChild))}};mxSvgCanvas2D.prototype.stroke=function(){this.addNode(!1,!0)};mxSvgCanvas2D.prototype.fill=function(){this.addNode(!0,!1)};mxSvgCanvas2D.prototype.fillAndStroke=function(){this.addNode(!0,!0)};function mxGuide(a,b){this.graph=a;this.setStates(b)}mxGuide.prototype.graph=null;mxGuide.prototype.states=null;mxGuide.prototype.horizontal=!0;mxGuide.prototype.vertical=!0;mxGuide.prototype.guideX=null;mxGuide.prototype.guideY=null;mxGuide.prototype.rounded=!1;mxGuide.prototype.tolerance=2;mxGuide.prototype.setStates=function(a){this.states=a};mxGuide.prototype.isEnabledForEvent=function(a){return!0};mxGuide.prototype.getGuideTolerance=function(a){return a&&this.graph.gridEnabled?this.graph.gridSize/2:this.tolerance};mxGuide.prototype.createGuideShape=function(a){a=new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH);a.isDashed=!0;return a};mxGuide.prototype.isStateIgnored=function(a){return!1};-mxGuide.prototype.move=function(a,b,c,d){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){d=function(B,x,D){var E=!1;D&&Math.abs(B-C)<t?(b.y=B-a.getCenterY(),t=Math.abs(B-C),E=!0):D||(Math.abs(B-A)<t?(b.y=B-a.y,t=Math.abs(B-A),E=!0):Math.abs(B-z)<t&&(b.y=B-a.y-a.height,t=Math.abs(B-z),E=!0));E&&(p=x,q=B,null==this.guideY&&(this.guideY=this.createGuideShape(!1),this.guideY.dialect=mxConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverlayPane())));-n=n||E};var e=function(B,x,D){var E=!1;D&&Math.abs(B-y)<r?(b.x=B-a.getCenterX(),r=Math.abs(B-y),E=!0):D||(Math.abs(B-u)<r?(b.x=B-a.x,r=Math.abs(B-u),E=!0):Math.abs(B-v)<r&&(b.x=B-a.x-a.width,r=Math.abs(B-v),E=!0));E&&(l=x,m=B,null==this.guideX&&(this.guideX=this.createGuideShape(!0),this.guideX.dialect=mxConstants.DIALECT_SVG,this.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||E},f=this.graph.getView().scale;f*=this.getGuideTolerance(c);var g=a.clone();g.x+=-b.x;g.y+=b.y;var k=!1,l=null,m=null,n=!1,p=null,q=null,r=f,t=f,u=g.x,v=g.x+g.width,y=g.getCenterX(),A=g.y,z=g.y+g.height,C=g.getCenterY();for(f=0;f<this.states.length;f++)g=this.states[f],null==g||this.isStateIgnored(g)||(this.horizontal&&(e.call(this,g.getCenterX(),g,!0),e.call(this,g.x,g,!1),e.call(this,g.x+g.width,g,!1),null==g.cell&&e.call(this,g.getCenterX(),g,!1)),this.vertical&&(d.call(this,g.getCenterY(),g,!0),d.call(this,g.y,g,!1),d.call(this,g.y+g.height,g,!1),null==g.cell&&d.call(this,+mxGuide.prototype.move=function(a,b,c,d){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){d=function(B,C,E){var D=!1;E&&Math.abs(B-x)<t?(b.y=B-a.getCenterY(),t=Math.abs(B-x),D=!0):E||(Math.abs(B-A)<t?(b.y=B-a.y,t=Math.abs(B-A),D=!0):Math.abs(B-z)<t&&(b.y=B-a.y-a.height,t=Math.abs(B-z),D=!0));D&&(p=C,q=B,null==this.guideY&&(this.guideY=this.createGuideShape(!1),this.guideY.dialect=mxConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverlayPane())));+n=n||D};var e=function(B,C,E){var D=!1;E&&Math.abs(B-y)<r?(b.x=B-a.getCenterX(),r=Math.abs(B-y),D=!0):E||(Math.abs(B-u)<r?(b.x=B-a.x,r=Math.abs(B-u),D=!0):Math.abs(B-v)<r&&(b.x=B-a.x-a.width,r=Math.abs(B-v),D=!0));D&&(l=C,m=B,null==this.guideX&&(this.guideX=this.createGuideShape(!0),this.guideX.dialect=mxConstants.DIALECT_SVG,this.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||D},f=this.graph.getView().scale;f*=this.getGuideTolerance(c);var g=a.clone();g.x+=+b.x;g.y+=b.y;var k=!1,l=null,m=null,n=!1,p=null,q=null,r=f,t=f,u=g.x,v=g.x+g.width,y=g.getCenterX(),A=g.y,z=g.y+g.height,x=g.getCenterY();for(f=0;f<this.states.length;f++)g=this.states[f],null==g||this.isStateIgnored(g)||(this.horizontal&&(e.call(this,g.getCenterX(),g,!0),e.call(this,g.x,g,!1),e.call(this,g.x+g.width,g,!1),null==g.cell&&e.call(this,g.getCenterX(),g,!1)),this.vertical&&(d.call(this,g.getCenterY(),g,!0),d.call(this,g.y,g,!1),d.call(this,g.y+g.height,g,!1),null==g.cell&&d.call(this,g.getCenterY(),g,!1)));this.graph.snapDelta(b,a,!c,k,n);b=this.getDelta(a,l,b.x,p,b.y);c=this.graph.container;k||null==this.guideX?null!=this.guideX&&(e=d=null,null!=l&&null!=a&&(d=Math.min(a.y+b.y-this.graph.panDy,l.y),e=Math.max(a.y+a.height+b.y-this.graph.panDy,l.y+l.height)),this.guideX.points=null!=d&&null!=e?[new mxPoint(m,d),new mxPoint(m,e)]:[new mxPoint(m,-this.graph.panDy),new mxPoint(m,c.scrollHeight-3-this.graph.panDy)],this.guideX.stroke=this.getGuideColor(l,!0),this.guideX.node.style.visibility="visible",this.guideX.redraw()):this.guideX.node.style.visibility="hidden";n||null==this.guideY?null!=this.guideY&&(e=d=null,null!=p&&null!=a&&(d=Math.min(a.x+b.x-this.graph.panDx,p.x),e=Math.max(a.x+a.width+b.x-this.graph.panDx,p.x+p.width)),this.guideY.points=null!=d&&null!=e?[new mxPoint(d,q),new mxPoint(e,q)]:[new mxPoint(-this.graph.panDx,q),new mxPoint(c.scrollWidth-3-this.graph.panDx,q)],this.guideY.stroke=this.getGuideColor(p,!1),this.guideY.node.style.visibility="visible",this.guideY.redraw()):this.guideY.node.style.visibility="hidden"}return b};mxGuide.prototype.getDelta=function(a,b,c,d,e){var f=this.graph.view.scale;if(this.rounded||null!=b&&null==b.cell)c=Math.round((a.x+c)/f)*f-a.x;if(this.rounded||null!=d&&null==d.cell)e=Math.round((a.y+e)/f)*f-a.y;return new mxPoint(c,e)};mxGuide.prototype.getGuideColor=function(a,b){return mxConstants.GUIDE_COLOR};mxGuide.prototype.hide=function(){this.setVisible(!1)};@@ -573,14 +573,14 @@ function mxArrowConnector(a,b,c,d,e,f,g){mxShape.call(this);this.points=a;this.fmxArrowConnector.prototype.resetStyles=function(){mxShape.prototype.resetStyles.apply(this,arguments);this.arrowSpacing=mxConstants.ARROW_SPACING};mxArrowConnector.prototype.apply=function(a){mxShape.prototype.apply.apply(this,arguments);null!=this.style&&(this.startSize=3*mxUtils.getNumber(this.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5),this.endSize=3*mxUtils.getNumber(this.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5))};mxArrowConnector.prototype.augmentBoundingBox=function(a){mxShape.prototype.augmentBoundingBox.apply(this,arguments);var b=this.getEdgeWidth();this.isMarkerStart()&&(b=Math.max(b,this.getStartArrowWidth()));this.isMarkerEnd()&&(b=Math.max(b,this.getEndArrowWidth()));a.grow((b/2+this.strokewidth)*this.scale)};mxArrowConnector.prototype.paintEdgeShape=function(a,b){var c=this.strokewidth;this.outline&&(c=Math.max(1,mxUtils.getNumber(this.style,mxConstants.STYLE_STROKEWIDTH,this.strokewidth)));var d=this.getStartArrowWidth()+c,e=this.getEndArrowWidth()+c,f=this.outline?this.getEdgeWidth()+c:this.getEdgeWidth(),g=this.isOpenEnded(),k=this.isMarkerStart(),l=this.isMarkerEnd(),m=g?0:this.arrowSpacing+c/2,n=this.startSize+c;c=this.endSize+c;var p=this.isArrowRounded(),q=b[b.length-1],r=b[1].x-b[0].x,t=b[1].y--b[0].y,u=Math.sqrt(r*r+t*t);if(0!=u){var v=r/u,y=v,A=t/u,z=A;u=f*A;var C=-f*v,B=[];p?a.setLineJoin("round"):2<b.length&&a.setMiterLimit(1.42);a.begin();r=v;t=A;if(k&&!g)this.paintMarker(a,b[0].x,b[0].y,v,A,n,d,f,m,!0);else{var x=b[0].x+u/2+m*v,D=b[0].y+C/2+m*A,E=b[0].x-u/2+m*v,I=b[0].y-C/2+m*A;g?(a.moveTo(x,D),B.push(function(){a.lineTo(E,I)})):(a.moveTo(E,I),a.lineTo(x,D))}var F=D=x=0;for(u=0;u<b.length-2;u++)if(C=mxUtils.relativeCcw(b[u].x,b[u].y,b[u+1].x,b[u+1].y,b[u+2].x,b[u+2].y),x=b[u+2].x--b[u+1].x,D=b[u+2].y-b[u+1].y,F=Math.sqrt(x*x+D*D),0!=F){y=x/F;z=D/F;F=Math.max(Math.sqrt((v*y+A*z+1)/2),.04);x=v+y;D=A+z;var H=Math.sqrt(x*x+D*D);if(0!=H){x/=H;D/=H;H=Math.max(F,Math.min(this.strokewidth/200+.04,.35));F=0!=C&&p?Math.max(.1,H):Math.max(F,.06);var K=b[u+1].x+D*f/2/F,G=b[u+1].y-x*f/2/F;D=b[u+1].x-D*f/2/F;x=b[u+1].y+x*f/2/F;0!=C&&p?-1==C?(C=D+z*f,F=x-y*f,a.lineTo(D+A*f,x-v*f),a.quadTo(K,G,C,F),function(L,M){B.push(function(){a.lineTo(L,M)})}(D,x)):(a.lineTo(K,G),function(L,M){var O=K--A*f,P=G+v*f,Q=K-z*f,R=G+y*f;B.push(function(){a.quadTo(L,M,O,P)});B.push(function(){a.lineTo(Q,R)})}(D,x)):(a.lineTo(K,G),function(L,M){B.push(function(){a.lineTo(L,M)})}(D,x));v=y;A=z}}u=f*z;C=-f*y;if(l&&!g)this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!1);else{a.lineTo(q.x-m*y+u/2,q.y-m*z+C/2);var J=q.x-m*y-u/2,N=q.y-m*z-C/2;g?(a.moveTo(J,N),B.splice(0,0,function(){a.moveTo(J,N)})):a.lineTo(J,N)}for(u=B.length-1;0<=u;u--)B[u]();g?(a.end(),a.stroke()):(a.close(),a.fillAndStroke());a.setShadow(!1);a.setMiterLimit(4);+b[0].y,u=Math.sqrt(r*r+t*t);if(0!=u){var v=r/u,y=v,A=t/u,z=A;u=f*A;var x=-f*v,B=[];p?a.setLineJoin("round"):2<b.length&&a.setMiterLimit(1.42);a.begin();r=v;t=A;if(k&&!g)this.paintMarker(a,b[0].x,b[0].y,v,A,n,d,f,m,!0);else{var C=b[0].x+u/2+m*v,E=b[0].y+x/2+m*A,D=b[0].x-u/2+m*v,I=b[0].y-x/2+m*A;g?(a.moveTo(C,E),B.push(function(){a.lineTo(D,I)})):(a.moveTo(D,I),a.lineTo(C,E))}var F=E=C=0;for(u=0;u<b.length-2;u++)if(x=mxUtils.relativeCcw(b[u].x,b[u].y,b[u+1].x,b[u+1].y,b[u+2].x,b[u+2].y),C=b[u+2].x-+b[u+1].x,E=b[u+2].y-b[u+1].y,F=Math.sqrt(C*C+E*E),0!=F){y=C/F;z=E/F;F=Math.max(Math.sqrt((v*y+A*z+1)/2),.04);C=v+y;E=A+z;var H=Math.sqrt(C*C+E*E);if(0!=H){C/=H;E/=H;H=Math.max(F,Math.min(this.strokewidth/200+.04,.35));F=0!=x&&p?Math.max(.1,H):Math.max(F,.06);var K=b[u+1].x+E*f/2/F,G=b[u+1].y-C*f/2/F;E=b[u+1].x-E*f/2/F;C=b[u+1].y+C*f/2/F;0!=x&&p?-1==x?(x=E+z*f,F=C-y*f,a.lineTo(E+A*f,C-v*f),a.quadTo(K,G,x,F),function(L,M){B.push(function(){a.lineTo(L,M)})}(E,C)):(a.lineTo(K,G),function(L,M){var O=K-+A*f,P=G+v*f,Q=K-z*f,R=G+y*f;B.push(function(){a.quadTo(L,M,O,P)});B.push(function(){a.lineTo(Q,R)})}(E,C)):(a.lineTo(K,G),function(L,M){B.push(function(){a.lineTo(L,M)})}(E,C));v=y;A=z}}u=f*z;x=-f*y;if(l&&!g)this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!1);else{a.lineTo(q.x-m*y+u/2,q.y-m*z+x/2);var J=q.x-m*y-u/2,N=q.y-m*z-x/2;g?(a.moveTo(J,N),B.splice(0,0,function(){a.moveTo(J,N)})):a.lineTo(J,N)}for(u=B.length-1;0<=u;u--)B[u]();g?(a.end(),a.stroke()):(a.close(),a.fillAndStroke());a.setShadow(!1);a.setMiterLimit(4);p&&a.setLineJoin("flat");2<b.length&&(a.setMiterLimit(4),k&&!g&&(a.begin(),this.paintMarker(a,b[0].x,b[0].y,r,t,n,d,f,m,!0),a.stroke(),a.end()),l&&!g&&(a.begin(),this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!0),a.stroke(),a.end()))}};mxArrowConnector.prototype.paintMarker=function(a,b,c,d,e,f,g,k,l,m){g=k/g;var n=k*e/2;k=-k*d/2;var p=(l+f)*d;f=(l+f)*e;m?a.moveTo(b-n+p,c-k+f):a.lineTo(b-n+p,c-k+f);a.lineTo(b-n/g+p,c-k/g+f);a.lineTo(b+l*d,c+l*e);a.lineTo(b+n/g+p,c+k/g+f);a.lineTo(b+n+p,c+k+f)};mxArrowConnector.prototype.isArrowRounded=function(){return this.isRounded};mxArrowConnector.prototype.getStartArrowWidth=function(){return mxConstants.ARROW_WIDTH};mxArrowConnector.prototype.getEndArrowWidth=function(){return mxConstants.ARROW_WIDTH};mxArrowConnector.prototype.getEdgeWidth=function(){return mxConstants.ARROW_WIDTH/3};mxArrowConnector.prototype.isOpenEnded=function(){return!1};mxArrowConnector.prototype.isMarkerStart=function(){return mxUtils.getValue(this.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE};mxArrowConnector.prototype.isMarkerEnd=function(){return mxUtils.getValue(this.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE};-function mxText(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t,u,v,y,A,z,C){mxShape.call(this);this.value=a;this.bounds=b;this.color=null!=e?e:"black";this.align=null!=c?c:mxConstants.ALIGN_CENTER;this.valign=null!=d?d:mxConstants.ALIGN_MIDDLE;this.family=null!=f?f:mxConstants.DEFAULT_FONTFAMILY;this.size=null!=g?g:mxConstants.DEFAULT_FONTSIZE;this.fontStyle=null!=k?k:mxConstants.DEFAULT_FONTSTYLE;this.spacing=parseInt(l||2);this.spacingTop=this.spacing+parseInt(m||0);this.spacingRight=this.spacing+parseInt(n||0);-this.spacingBottom=this.spacing+parseInt(p||0);this.spacingLeft=this.spacing+parseInt(q||0);this.horizontal=null!=r?r:!0;this.background=t;this.border=u;this.wrap=null!=v?v:!1;this.clipped=null!=y?y:!1;this.overflow=null!=A?A:"visible";this.labelPadding=null!=z?z:0;this.textDirection=C;this.rotation=0;this.updateMargin()}mxUtils.extend(mxText,mxShape);mxText.prototype.baseSpacingTop=0;mxText.prototype.baseSpacingBottom=0;mxText.prototype.baseSpacingLeft=0;mxText.prototype.baseSpacingRight=0;+function mxText(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t,u,v,y,A,z,x){mxShape.call(this);this.value=a;this.bounds=b;this.color=null!=e?e:"black";this.align=null!=c?c:mxConstants.ALIGN_CENTER;this.valign=null!=d?d:mxConstants.ALIGN_MIDDLE;this.family=null!=f?f:mxConstants.DEFAULT_FONTFAMILY;this.size=null!=g?g:mxConstants.DEFAULT_FONTSIZE;this.fontStyle=null!=k?k:mxConstants.DEFAULT_FONTSTYLE;this.spacing=parseInt(l||2);this.spacingTop=this.spacing+parseInt(m||0);this.spacingRight=this.spacing+parseInt(n||0);+this.spacingBottom=this.spacing+parseInt(p||0);this.spacingLeft=this.spacing+parseInt(q||0);this.horizontal=null!=r?r:!0;this.background=t;this.border=u;this.wrap=null!=v?v:!1;this.clipped=null!=y?y:!1;this.overflow=null!=A?A:"visible";this.labelPadding=null!=z?z:0;this.textDirection=x;this.rotation=0;this.updateMargin()}mxUtils.extend(mxText,mxShape);mxText.prototype.baseSpacingTop=0;mxText.prototype.baseSpacingBottom=0;mxText.prototype.baseSpacingLeft=0;mxText.prototype.baseSpacingRight=0;mxText.prototype.replaceLinefeeds=!0;mxText.prototype.verticalTextRotation=-90;mxText.prototype.ignoreClippedStringSize=!0;mxText.prototype.ignoreStringSize=!1;mxText.prototype.textWidthPadding=8!=document.documentMode||mxClient.IS_EM?3:4;mxText.prototype.lastValue=null;mxText.prototype.cacheEnabled=!0;mxText.prototype.isHtmlAllowed=function(){return 8!=document.documentMode||mxClient.IS_EM};mxText.prototype.getSvgScreenOffset=function(){return 0};mxText.prototype.checkBounds=function(){return!isNaN(this.scale)&&isFinite(this.scale)&&0<this.scale&&null!=this.bounds&&!isNaN(this.bounds.x)&&!isNaN(this.bounds.y)&&!isNaN(this.bounds.width)&&!isNaN(this.bounds.height)};mxText.prototype.configurePointerEvents=function(a){};mxText.prototype.getActualTextDirection=function(){var a=this.textDirection;a==mxConstants.TEXT_DIRECTION_AUTO&&(a=this.getAutoDirection());a!=mxConstants.TEXT_DIRECTION_LTR&&a!=mxConstants.TEXT_DIRECTION_RTL&&a!=mxConstants.TEXT_DIRECTION_VERTICAL_LR&&a!=mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(a=null);return a};@@ -792,7 +792,7 @@ k}else for(c++,e=0;e<this.nestedBestRanks.length;e++)for(f=a.ranks[e],g=0;g<f.lemxMedianHybridCrossingReduction.prototype.calculateRankCrossing=function(a,b){var c=0,d=b.ranks[a],e=b.ranks[a-1],f=[];for(b=0;b<d.length;b++){var g=d[b],k=g.getGeneralPurposeVariable(a);g=g.getPreviousLayerConnectedCells(a);for(var l=[],m=0;m<g.length;m++){var n=g[m].getGeneralPurposeVariable(a-1);l.push(n)}l.sort(function(p,q){return p-q});f[k]=l}a=[];for(b=0;b<f.length;b++)a=a.concat(f[b]);for(d=1;d<e.length;)d<<=1;f=2*d-1;--d;e=[];for(b=0;b<f;++b)e[b]=0;for(b=0;b<a.length;b++)for(f=a[b]+d,++e[f];0<f;)f%2&&(c+=e[f+1]),f=f-1>>1,++e[f];return c};mxMedianHybridCrossingReduction.prototype.transpose=function(a,b){for(var c=!0,d=0;c&&10>d++;){var e=1==a%2&&1==d%2;c=!1;for(var f=0;f<b.ranks.length;f++){for(var g=b.ranks[f],k=[],l=0;l<g.length;l++){var m=g[l],n=m.getGeneralPurposeVariable(f);0>n&&(n=l);k[n]=m}var p=null,q=null,r=null,t=null,u=null;for(l=0;l<g.length-1;l++){if(0==l){var v=k[l];m=v.getNextLayerConnectedCells(f);n=v.getPreviousLayerConnectedCells(f);for(var y=[],A=[],z=0;z<m.length;z++)y[z]=m[z].getGeneralPurposeVariable(f+1);for(z=-0;z<n.length;z++)A[z]=n[z].getGeneralPurposeVariable(f-1)}else m=p,n=q,y=r,A=t,v=u;u=k[l+1];p=u.getNextLayerConnectedCells(f);q=u.getPreviousLayerConnectedCells(f);r=[];t=[];for(z=0;z<p.length;z++)r[z]=p[z].getGeneralPurposeVariable(f+1);for(z=0;z<q.length;z++)t[z]=q[z].getGeneralPurposeVariable(f-1);var C=0,B=0;for(z=0;z<y.length;z++)for(var x=0;x<r.length;x++)y[z]>r[x]&&C++,y[z]<r[x]&&B++;for(z=0;z<A.length;z++)for(x=0;x<t.length;x++)A[z]>t[x]&&C++,A[z]<t[x]&&B++;if(B<C||B==C&&e)p=v.getGeneralPurposeVariable(f),+0;z<n.length;z++)A[z]=n[z].getGeneralPurposeVariable(f-1)}else m=p,n=q,y=r,A=t,v=u;u=k[l+1];p=u.getNextLayerConnectedCells(f);q=u.getPreviousLayerConnectedCells(f);r=[];t=[];for(z=0;z<p.length;z++)r[z]=p[z].getGeneralPurposeVariable(f+1);for(z=0;z<q.length;z++)t[z]=q[z].getGeneralPurposeVariable(f-1);var x=0,B=0;for(z=0;z<y.length;z++)for(var C=0;C<r.length;C++)y[z]>r[C]&&x++,y[z]<r[C]&&B++;for(z=0;z<A.length;z++)for(C=0;C<t.length;C++)A[z]>t[C]&&x++,A[z]<t[C]&&B++;if(B<x||B==x&&e)p=v.getGeneralPurposeVariable(f),v.setGeneralPurposeVariable(f,u.getGeneralPurposeVariable(f)),u.setGeneralPurposeVariable(f,p),p=m,q=n,r=y,t=A,u=v,e||(c=!0)}}}};mxMedianHybridCrossingReduction.prototype.weightedMedian=function(a,b){if(a=0==a%2)for(var c=b.maxRank-1;0<=c;c--)this.medianRank(c,a);else for(c=1;c<b.maxRank;c++)this.medianRank(c,a)};mxMedianHybridCrossingReduction.prototype.medianRank=function(a,b){for(var c=this.nestedBestRanks[a].length,d=[],e=[],f=0;f<c;f++){var g=this.nestedBestRanks[a][f],k=new MedianCellSorter;k.cell=g;var l=b?g.getNextLayerConnectedCells(a):g.getPreviousLayerConnectedCells(a),m=b?a+1:a-1;null!=l&&0!=l.length?(k.medianValue=this.medianValue(l,m),d.push(k)):e[g.getGeneralPurposeVariable(a)]=!0}d.sort(MedianCellSorter.prototype.compare);for(f=0;f<c;f++)null==e[f]&&(g=d.shift().cell,g.setGeneralPurposeVariable(a,f))};mxMedianHybridCrossingReduction.prototype.medianValue=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var f=a[e];c[d++]=f.getGeneralPurposeVariable(b)}c.sort(function(g,k){return g-k});if(1==d%2)return c[Math.floor(d/2)];if(2==d)return(c[0]+c[1])/2;a=d/2;b=c[a-1]-c[0];d=c[d-1]-c[a];return(c[a-1]*d+c[a]*b)/(b+d)};function MedianCellSorter(){}MedianCellSorter.prototype.medianValue=0;MedianCellSorter.prototype.cell=!1;@@ -828,7 +828,7 @@ if(r.isVertex())for(var t=0==k?e.connectsAsSource:e.connectsAsTarget,u=0;u<t.lenthis.prefVertEdgeOff:m>f/2&&(p-=this.prefVertEdgeOff),t=0;t<q;t++)r[4*t+2*k]=n,n+=l,r[4*t+2*k+1]=p}f=e.getNextLayerConnectedCells(b);g=b+1}}};mxCoordinateAssignment.prototype.setEdgePosition=function(a){var b=0;if(101207!=a.temp[0]){var c=a.maxRank,d=a.minRank;c==d&&(c=a.source.maxRank,d=a.target.minRank);for(var e=0,f=this.jettyPositions[a.ids[0]],g=a.isReversed?a.target.cell:a.source.cell,k=this.layout.graph,l=this.orientation==mxConstants.DIRECTION_EAST||this.orientation==mxConstants.DIRECTION_SOUTH,m=0;m<a.edges.length;m++){var n=a.edges[m],p=this.layout.getVisibleTerminal(n,!0),q=[],r=a.isReversed;p!=g&&(r=!r);if(null!=f){var t=r?2:0,u=r?l?this.rankBottomY[d]:this.rankTopY[d]:l?this.rankTopY[c]:this.rankBottomY[c],v=f[4*e+1+t];r!=l&&(v=-v);u+=v;t=f[4*e+t];var y=k.model.getTerminal(n,!0);this.layout.isPort(y)&&k.model.getParent(y)==p&&(t=k.view.getState(y),t=null!=t?t.x:p.geometry.x+a.source.width*y.geometry.x);this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(t,u)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(t,u+v))):(q.push(new mxPoint(u,-t)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u+v,t)))}t=a.x.length-1;u=v=-1;p=a.maxRank-1;for(r&&(t=0,v=a.x.length,u=1,p=a.minRank+1);a.maxRank!=a.minRank&&t!=v;t+=u){y=a.x[t]+b;var A=(this.rankTopY[p]+this.rankBottomY[p+1])/2,z=(this.rankTopY[p-1]+this.rankBottomY[p])/2;if(r){var C=A;A=z;z=C}this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(y,A)),q.push(new mxPoint(y,z))):(q.push(new mxPoint(A,y)),q.push(new mxPoint(z,+t)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u+v,t)))}t=a.x.length-1;u=v=-1;p=a.maxRank-1;for(r&&(t=0,v=a.x.length,u=1,p=a.minRank+1);a.maxRank!=a.minRank&&t!=v;t+=u){y=a.x[t]+b;var A=(this.rankTopY[p]+this.rankBottomY[p+1])/2,z=(this.rankTopY[p-1]+this.rankBottomY[p])/2;if(r){var x=A;A=z;z=x}this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(y,A)),q.push(new mxPoint(y,z))):(q.push(new mxPoint(A,y)),q.push(new mxPoint(z,y)));this.limitX=Math.max(this.limitX,y);p+=u}null!=f&&(t=r?2:0,u=r?l?this.rankTopY[c]:this.rankBottomY[c]:l?this.rankBottomY[d]:this.rankTopY[d],v=f[4*e+3-t],r!=l&&(v=-v),u-=v,t=f[4*e+2-t],r=k.model.getTerminal(n,!1),p=this.layout.getVisibleTerminal(n,!1),this.layout.isPort(r)&&k.model.getParent(r)==p&&(t=k.view.getState(r),t=null!=t?t.x:p.geometry.x+a.target.width*r.geometry.x),this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(t,u-v)),q.push(new mxPoint(t,u))):(this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u-v,t)),q.push(new mxPoint(u,t))));a.isReversed&&this.processReversedEdge(a,n);this.layout.setEdgePoints(n,q);this.layout.resetEdgeLabels&&null!=n.geometry&&(geometry=n.geometry.clone(),geometry.relative=!0,geometry.x=0,geometry.y=0,k.model.setGeometry(n,geometry));b=0==b?this.parallelEdgeSpacing:0<b?-b:-b+this.parallelEdgeSpacing;e++}a.temp[0]=101207}};mxCoordinateAssignment.prototype.setVertexLocation=function(a){var b=a.cell,c=a.x[0]-a.width/2,d=a.y[0]-a.height/2;this.rankTopY[a.minRank]=Math.min(this.rankTopY[a.minRank],d);this.rankBottomY[a.minRank]=Math.max(this.rankBottomY[a.minRank],d+a.height);this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?this.layout.setVertexLocation(b,c,d):this.layout.setVertexLocation(b,d,c);this.limitX=Math.max(this.limitX,c+a.width)};@@ -955,18 +955,18 @@ mxPrintPreview.prototype.getPageClassCss=function(a,b){var c=this.pageMargin,d=tmxUtils.htmlEntities((c/d).toFixed(2))+"in;\n}\n");return b};mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1;this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(G,J){J.init(G.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(G,J,N,L){J.dialect=G.view.graph.dialect;J.init(G.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&(b=!0,this.wnd=window.open());var p=this.wnd.document;if(b){var q=this.getDoctype();null!=q&&0<q.length&&p.writeln(q);"CSS1Compat"===document.compatMode&&p.writeln("<!DOCTYPE html>");p.writeln("<html>");p.writeln("<head>");this.writeHead(p,a);p.writeln("</head>");p.writeln("<body>")}var r=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),t=this.graph.getView().getScale(),u=t/this.scale,v=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=v.x*this.scale,-this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),C=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*C;var B=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),B=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[B]&&-(this.pageFormatClass[B]=!0,this.pendingCss+=this.getPageClassCss(B,f)));var x=mxUtils.bind(this,function(G){null!=this.borderColor&&(G.style.borderColor=this.borderColor,G.style.borderStyle="solid",G.style.borderWidth="1px");G.style.background=this.backgroundColor;null!=B?G.classList.add(B):(G.style.width=f.width+"px",G.style.height=f.height+"px");p.body.appendChild(G)}),D=this.getCoverPages(m,n);if(null!=D)for(var E=0;E<D.length;E++)x(D[E],!0);var I=this.getAppendices(m,n);for(E=0;E<C;E++){var F=-E*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-E;for(a=0;a<z;a++){if(null==this.wnd)return null;var H=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=E*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var K=new mxRectangle(H,F,y,A);this.addGraphFragment(-H,-F,this.scale,g,c,K);null!=e&&0==E&&0==a&&c.setAttribute("id",e);x(c,!0)}}if(null!=I)for(E=0;E<I.length;E++)x(I[E],E<I.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(G){null!=+this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),x=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*x;var B=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),B=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[B]&&+(this.pageFormatClass[B]=!0,this.pendingCss+=this.getPageClassCss(B,f)));var C=mxUtils.bind(this,function(G){null!=this.borderColor&&(G.style.borderColor=this.borderColor,G.style.borderStyle="solid",G.style.borderWidth="1px");G.style.background=this.backgroundColor;null!=B?G.classList.add(B):(G.style.width=f.width+"px",G.style.height=f.height+"px");p.body.appendChild(G)}),E=this.getCoverPages(m,n);if(null!=E)for(var D=0;D<E.length;D++)C(E[D],!0);var I=this.getAppendices(m,n);for(D=0;D<x;D++){var F=+D*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-D;for(a=0;a<z;a++){if(null==this.wnd)return null;var H=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=D*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var K=new mxRectangle(H,F,y,A);this.addGraphFragment(-H,-F,this.scale,g,c,K);null!=e&&0==D&&0==a&&c.setAttribute("id",e);C(c,!0)}}if(null!=I)for(D=0;D<I.length;D++)C(I[D],D<I.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(G){null!=c&&null!=c.parentNode&&c.parentNode.removeChild(c),null!=window.console&&console.error(G)}finally{this.graph.cellRenderer.initializeOverlay=k}return this.wnd};mxPrintPreview.prototype.addPendingCss=function(a){if(null!=this.pendingCss){var b=a.createElement("style");b.setAttribute("type","text/css");b.appendChild(a.createTextNode(this.pendingCss));a.getElementsByTagName("head")[0].appendChild(b);this.pendingCss=null}};mxPrintPreview.prototype.closeDocument=function(){try{if(null!=this.wnd&&null!=this.wnd.document){var a=this.wnd.document;this.writePostfix(a);a.writeln("</body>");a.writeln("</html>");a.close();this.addPendingCss(a);mxEvent.release(a.body)}}catch(b){}};mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");mxClient.link("stylesheet",mxClient.basePath+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);var c=this.pageFormat;this.addPageCss&&null!=c&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),a.writeln(" margin: "+mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(mxUtils.htmlEntities(b,!1,!1,!1));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};mxPrintPreview.prototype.addGraphFragment=function(a,b,c,d,e,f){var g=this.graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroundPane(),m=g.getDrawPane(),n=g.getOverlayPane(),p=c;if(this.graph.dialect==mxConstants.DIALECT_SVG){if(g.createSvg(),this.useCssTransforms()){var q=g.getDrawPane().parentNode;q.setAttribute("transformOrigin","0 0");q.setAttribute("transform","scale("+c+","+c+")translate("+a+","+b+")");c=1;b=a=0}}else g.createHtml();q=g.isEventsEnabled();-g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var C=this.getBackgroundImage();null!=C&&(z=new mxRectangle(Math.round(a*A+C.x),Math.round(b*A+C.y),C.width-1,C.height-1),z=new mxImageShape(z,C.src),z.dialect=this.graph.dialect)}if(this.clipping){var B=-new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),x=this;this.graph.cellRenderer.redraw=function(E,I,F){if(null!=E){var H=y.get(E.cell);if(null!=H&&(H=g.getBoundingBox(H,!1),null!=H&&0<H.width&&0<H.height&&!mxUtils.intersects(B,H))||!x.isCellVisible(E.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(B,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),-this.drawBackgroundImage(z));a=null;try{var D=[this.getRoot()];a=new mxTemporaryCellStates(g,c,D,null,mxUtils.bind(this,function(E){return this.getLinkForCellState(E)}))}finally{for(c=e.firstChild;null!=c;)e=c.nextSibling,"svg"==c.nodeName.toLowerCase()?(c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.display="",c.style.maxWidth="100%",c.style.maxHeight="100%",c.style.overflow=mxClient.IS_SF?"hidden":"clip",c.style.overflowClipMargin=this.overflowClipMargin,c.setAttribute("viewBox",+g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var x=this.getBackgroundImage();null!=x&&(z=new mxRectangle(Math.round(a*A+x.x),Math.round(b*A+x.y),x.width-1,x.height-1),z=new mxImageShape(z,x.src),z.dialect=this.graph.dialect)}if(this.clipping){var B=+new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),C=this;this.graph.cellRenderer.redraw=function(D,I,F){if(null!=D){var H=y.get(D.cell);if(null!=H&&(H=g.getBoundingBox(H,!1),null!=H&&0<H.width&&0<H.height&&!mxUtils.intersects(B,H))||!C.isCellVisible(D.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(B,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),+this.drawBackgroundImage(z));a=null;try{var E=[this.getRoot()];a=new mxTemporaryCellStates(g,c,E,null,mxUtils.bind(this,function(D){return this.getLinkForCellState(D)}))}finally{for(c=e.firstChild;null!=c;)e=c.nextSibling,"svg"==c.nodeName.toLowerCase()?(c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.display="",c.style.maxWidth="100%",c.style.maxHeight="100%",c.style.overflow=mxClient.IS_SF?"hidden":"clip",c.style.overflowClipMargin=this.overflowClipMargin,c.setAttribute("viewBox","0 0 "+(mxClient.IS_SF?f.width+1+" "+(f.height+1):f.width-1+" "+(f.height-1))),this.addGrid(c,f),mxClient.IS_SF&&(f.width>f.height?c.style.height="100%":c.style.width="100%")):this.isTextLabel(c)||c.parentNode.removeChild(c),c=e;g.overlayPane.parentNode.removeChild(g.overlayPane);this.graph.setEnabled(r);this.graph.container=d;this.graph.cellRenderer.redraw=v;this.graph.selectionCellsHandler.updateHandler=u;g.canvas=k;g.backgroundPane=l;g.drawPane=m;g.overlayPane=n;g.translate=t;a.destroy();g.setEventsEnabled(q)}};mxPrintPreview.prototype.addGrid=function(a,b){0<this.gridSize&&0<this.gridSteps&&null!=this.gridColor&&(b=this.createSvgGrid(a,b),a=mxUtils.getSvgDefs(a),null!=a.nextSibling?a.parentNode.insertBefore(b,a.nextSibling):a.parentNode.appendChild(b))};mxPrintPreview.prototype.createSvgGrid=function(a,b){var c=this.gridSize;a=a.ownerDocument;var d=null!=a.createElementNS?a.createElementNS(mxConstants.NS_SVG,"g"):a.createElement("g"),e=mxUtils.mod(Math.ceil(Math.round(b.x)/c),this.gridSteps),f=mxUtils.mod(c-mxUtils.mod(Math.round(b.x),c),c),g=mxUtils.mod(Math.ceil(Math.round(b.y)/c),this.gridSteps),k=mxUtils.mod(c-mxUtils.mod(Math.round(b.y),c),c);f*=this.scale;k*=this.scale;c*=this.scale;for(var l=Math.ceil(b.height/c),m=0;m<l;m++){var n=null!=@@ -1091,31 +1091,31 @@ d[0]:null;var g=a.absolutePoints,k=g[0];g=g[g.length-1];null!=d&&(d=f.transformCk)),mxUtils.contains(c,a,f)||mxUtils.contains(b,a,f)||e.push(new mxPoint(a,f)),1==e.length&&(null!=d?mxUtils.contains(c,a,d.y)||mxUtils.contains(b,a,d.y)||e.push(new mxPoint(a,d.y)):(f=Math.max(b.y,c.y),e.push(new mxPoint(a,f+(Math.min(b.y+b.height,c.y+c.height)-f)/2)))))},TopToBottom:function(a,b,c,d,e){var f=a.view;d=null!=d&&0<d.length?d[0]:null;var g=a.absolutePoints,k=g[0];g=g[g.length-1];null!=d&&(d=f.transformControlPoint(a,d));null!=k&&(b=new mxCellState,b.x=k.x,b.y=k.y);null!=g&&(c=new mxCellState,c.x=g.x,c.y=g.y);null!=b&&null!=c&&(k=Math.max(b.y,c.y),g=Math.min(b.y+b.height,c.y+c.height),a=f.getRoutingCenterX(b),null!=d&&d.x>=b.x&&d.x<=b.x+b.width&&(a=d.x),k=null!=d?d.y:Math.round(g+(k-g)/2),mxUtils.contains(c,a,k)||mxUtils.contains(b,a,k)||e.push(new mxPoint(a,k)),a=null!=d&&d.x>=c.x&&d.x<=c.x+c.width?d.x:f.getRoutingCenterX(c),mxUtils.contains(c,a,k)||mxUtils.contains(b,a,k)||e.push(new mxPoint(a,k)),1==e.length&&(null!=d&&1==e.length?mxUtils.contains(c,d.x,k)||mxUtils.contains(b,d.x,k)||e.push(new mxPoint(d.x,k)):(f=Math.max(b.x,c.x),e.push(new mxPoint(f+(Math.min(b.x+b.width,c.x+c.width)-f)/2,k)))))},SegmentConnector:function(a,b,c,d,e){var f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale);b=mxEdgeStyle.scaleCellState(b,a.view.scale);var g=mxEdgeStyle.scaleCellState(c,a.view.scale);c=[];var k=0<e.length?e[0]:null,l=!0,m=f[0];null==m&&null!=b?m=new mxPoint(a.view.getRoutingCenterX(b),a.view.getRoutingCenterY(b)):null!=m&&(m=m.clone());var n=f.length-1;if(null!=d&&0<d.length){for(var p=-[],q=0;q<d.length;q++){var r=a.view.transformControlPoint(a,d[q],!0);null!=r&&p.push(r)}if(0==p.length)return;null!=m&&null!=p[0]&&(1>Math.abs(p[0].x-m.x)&&(p[0].x=m.x),1>Math.abs(p[0].y-m.y)&&(p[0].y=m.y));r=f[n];null!=r&&null!=p[p.length-1]&&(1>Math.abs(p[p.length-1].x-r.x)&&(p[p.length-1].x=r.x),1>Math.abs(p[p.length-1].y-r.y)&&(p[p.length-1].y=r.y));d=p[0];var t=b,u=f[0],v=d;null!=u&&(t=null);for(q=0;2>q;q++){var y=null!=u&&u.x==v.x,A=null!=u&&u.y==v.y,z=null!=t&&v.y>=t.y&&v.y<=t.y+t.height,C=-null!=t&&v.x>=t.x&&v.x<=t.x+t.width;t=A||null==u&&z;v=y||null==u&&C;if(0!=q||!(t&&v||y&&A)){if(null!=u&&!A&&!y&&(z||C)){l=z?!1:!0;break}if(v||t){l=t;1==q&&(l=0==p.length%2?t:v);break}}t=g;u=f[n];null!=u&&(t=null);v=p[p.length-1];y&&A&&(p=p.slice(1))}l&&(null!=f[0]&&f[0].y!=d.y||null==f[0]&&null!=b&&(d.y<b.y||d.y>b.y+b.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[0]&&f[0].x!=d.x||null==f[0]&&null!=b&&(d.x<b.x||d.x>b.x+b.width))&&c.push(new mxPoint(d.x,m.y));l?m.y=d.y:m.x=d.x;for(q=0;q<p.length;q++)l=+[],q=0;q<d.length;q++){var r=a.view.transformControlPoint(a,d[q],!0);null!=r&&p.push(r)}if(0==p.length)return;null!=m&&null!=p[0]&&(1>Math.abs(p[0].x-m.x)&&(p[0].x=m.x),1>Math.abs(p[0].y-m.y)&&(p[0].y=m.y));r=f[n];null!=r&&null!=p[p.length-1]&&(1>Math.abs(p[p.length-1].x-r.x)&&(p[p.length-1].x=r.x),1>Math.abs(p[p.length-1].y-r.y)&&(p[p.length-1].y=r.y));d=p[0];var t=b,u=f[0],v=d;null!=u&&(t=null);for(q=0;2>q;q++){var y=null!=u&&u.x==v.x,A=null!=u&&u.y==v.y,z=null!=t&&v.y>=t.y&&v.y<=t.y+t.height,x=+null!=t&&v.x>=t.x&&v.x<=t.x+t.width;t=A||null==u&&z;v=y||null==u&&x;if(0!=q||!(t&&v||y&&A)){if(null!=u&&!A&&!y&&(z||x)){l=z?!1:!0;break}if(v||t){l=t;1==q&&(l=0==p.length%2?t:v);break}}t=g;u=f[n];null!=u&&(t=null);v=p[p.length-1];y&&A&&(p=p.slice(1))}l&&(null!=f[0]&&f[0].y!=d.y||null==f[0]&&null!=b&&(d.y<b.y||d.y>b.y+b.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[0]&&f[0].x!=d.x||null==f[0]&&null!=b&&(d.x<b.x||d.x>b.x+b.width))&&c.push(new mxPoint(d.x,m.y));l?m.y=d.y:m.x=d.x;for(q=0;q<p.length;q++)l=!l,d=p[q],l?m.y=d.y:m.x=d.x,c.push(m.clone())}else d=m,l=!0;m=f[n];null==m&&null!=g&&(m=new mxPoint(a.view.getRoutingCenterX(g),a.view.getRoutingCenterY(g)));null!=m&&null!=d&&(l&&(null!=f[n]&&f[n].y!=d.y||null==f[n]&&null!=g&&(d.y<g.y||d.y>g.y+g.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[n]&&f[n].x!=d.x||null==f[n]&&null!=g&&(d.x<g.x||d.x>g.x+g.width))&&c.push(new mxPoint(d.x,m.y)));if(null==f[0]&&null!=b)for(;0<c.length&&null!=c[0]&&mxUtils.contains(b,c[0].x,c[0].y);)c.splice(0,1);if(null==f[n]&&null!=g)for(;0<c.length&&null!=c[c.length-1]&&mxUtils.contains(g,c[c.length-1].x,c[c.length-1].y);)c.splice(c.length-1,1);for(q=0;q<c.length;q++)if(f=c[q],f.x=Math.round(f.x*a.view.scale*10)/10,f.y=Math.round(f.y*a.view.scale*10)/10,null==k||1<=Math.abs(k.x-f.x)||Math.abs(k.y-f.y)>=Math.max(1,a.view.scale))e.push(f),k=f;null!=r&&null!=e[e.length-1]&&1>=Math.abs(r.x-e[e.length-1].x)&&1>=Math.abs(r.y-e[e.length-1].y)&&(e.splice(e.length-1,1),null!=e[e.length-1]&&(1>Math.abs(e[e.length-1].x-r.x)&&(e[e.length-1].x=r.x),1>Math.abs(e[e.length-1].y-r.y)&&(e[e.length-1].y=r.y)))},orthBuffer:10,orthPointsFallback:!0,dirVectors:[[-1,0],[0,-1],[1,0],[0,1],[-1,0],[0,-1],[1,0]],wayPoints1:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],routePatterns:[[[513,2308,2081,2562],[513,1090,514,2184,2114,2561],[513,1090,514,2564,2184,2562],[513,2308,2561,1090,514,2568,2308]],[[514,1057,513,2308,2081,2562],[514,2184,2114,2561],[514,2184,2562,1057,513,2564,2184],[514,1057,513,2568,2308,2561]],[[1090,514,1057,513,2308,2081,2562],[2114,2561],[1090,2562,1057,513,2564,2184],[1090,514,1057,513,2308,2561,2568]],[[2081,2562],[1057,513,1090,514,2184,2114,2561],[1057,513,1090,514,2184,2562,2564],[1057,2561,1090,514,2568,2308]]],inlineRoutePatterns:[[null,[2114,2568],null,null],[null,[514,2081,2114,2568],null,null],[null,[2114,2561],null,null],[[2081,2562],[1057,2114,2568],[2184,2562],null]],vertexSeperations:[],limits:[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]],LEFT_MASK:32,TOP_MASK:64,RIGHT_MASK:128,BOTTOM_MASK:256,LEFT:1,TOP:2,RIGHT:4,BOTTOM:8,SIDE_MASK:480,CENTER_MASK:512,SOURCE_MASK:1024,TARGET_MASK:2048,VERTEX_MASK:3072,getJettySize:function(a,b){var c=mxUtils.getValue(a.style,b?mxConstants.STYLE_SOURCE_JETTY_SIZE:mxConstants.STYLE_TARGET_JETTY_SIZE,mxUtils.getValue(a.style,mxConstants.STYLE_JETTY_SIZE,mxEdgeStyle.orthBuffer));"auto"==c&&(mxUtils.getValue(a.style,b?mxConstants.STYLE_STARTARROW:mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE?(a=mxUtils.getNumber(a.style,b?mxConstants.STYLE_STARTSIZE:mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE),c=Math.max(2,Math.ceil((a+mxEdgeStyle.orthBuffer)/mxEdgeStyle.orthBuffer))*mxEdgeStyle.orthBuffer):c=2*mxEdgeStyle.orthBuffer);return c},scalePointArray:function(a,b){var c=[];if(null!=a)for(var d=0;d<a.length;d++)if(null!=a[d]){var e=new mxPoint(Math.round(a[d].x/b*10)/10,Math.round(a[d].y/b*10)/10);c[d]=e}else c[d]=null;else c=null;return c},scaleCellState:function(a,b){if(null!=a){var c=a.clone();c.setRect(Math.round(a.x/b*10)/10,Math.round(a.y/-b*10)/10,Math.round(a.width/b*10)/10,Math.round(a.height/b*10)/10)}else c=null;return c},OrthConnector:function(a,b,c,d,e){var f=a.view.graph,g=null==l?!1:f.getModel().isEdge(l.cell),k=null==m?!1:f.getModel().isEdge(m.cell);f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale);var l=mxEdgeStyle.scaleCellState(b,a.view.scale),m=mxEdgeStyle.scaleCellState(c,a.view.scale),n=f[0],p=f[f.length-1],q=null!=l?l.x:n.x,r=null!=l?l.y:n.y,t=null!=l?l.width:1,u=null!=l?l.height:1,v=null!=m?m.x:p.x,y=null!=-m?m.y:p.y,A=null!=m?m.width:1,z=null!=m?m.height:1;f=mxEdgeStyle.getJettySize(a,!0);var C=mxEdgeStyle.getJettySize(a,!1);null!=l&&m==l&&(f=C=Math.max(f,C));var B=C+f,x=!1;if(null!=n&&null!=p){x=p.x-n.x;var D=p.y-n.y;x=x*x+D*D<B*B}if(x||mxEdgeStyle.orthPointsFallback&&null!=d&&0<d.length||g||k)mxEdgeStyle.SegmentConnector(a,b,c,d,e);else if(c=[mxConstants.DIRECTION_MASK_ALL,mxConstants.DIRECTION_MASK_ALL],null!=l&&(c[0]=mxUtils.getPortConstraints(l,a,!0,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(l.style,-mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(q,r,t,u),b),q=b.x,r=b.y,t=b.width,u=b.height)),null!=m&&(c[1]=mxUtils.getPortConstraints(m,a,!1,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(m.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(v,y,A,z),b),v=b.x,y=b.y,A=b.width,z=b.height)),0!=t&&0!=u&&0!=A&&0!=z){b=[0,0];q=[[q,r,t,u],[v,y,A,z]];C=[f,C];for(x=0;2>x;x++)mxEdgeStyle.limits[x][1]=q[x][0]-C[x],mxEdgeStyle.limits[x][2]=-q[x][1]-C[x],mxEdgeStyle.limits[x][4]=q[x][0]+q[x][2]+C[x],mxEdgeStyle.limits[x][8]=q[x][1]+q[x][3]+C[x];C=q[0][1]+q[0][3]/2;r=q[1][1]+q[1][3]/2;x=q[0][0]+q[0][2]/2-(q[1][0]+q[1][2]/2);D=C-r;C=0;0>x?C=0>D?2:1:0>=D&&(C=3,0==x&&(C=2));r=null;null!=l&&(r=n);l=[[.5,.5],[.5,.5]];for(x=0;2>x;x++)null!=r&&(l[x][0]=(r.x-q[x][0])/q[x][2],1>=Math.abs(r.x-q[x][0])?b[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(r.x-q[x][0]-q[x][2])&&(b[x]=mxConstants.DIRECTION_MASK_EAST),l[x][1]=(r.y-q[x][1])/q[x][3],1>=Math.abs(r.y--q[x][1])?b[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(r.y-q[x][1]-q[x][3])&&(b[x]=mxConstants.DIRECTION_MASK_SOUTH)),r=null,null!=m&&(r=p);x=q[0][1]-(q[1][1]+q[1][3]);p=q[0][0]-(q[1][0]+q[1][2]);r=q[1][1]-(q[0][1]+q[0][3]);t=q[1][0]-(q[0][0]+q[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(p-B,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-B,0);mxEdgeStyle.vertexSeperations[4]=Math.max(r-B,0);mxEdgeStyle.vertexSeperations[3]=Math.max(t-B,0);B=[];m=[];n=[];m[0]=p>=t?mxConstants.DIRECTION_MASK_WEST:-mxConstants.DIRECTION_MASK_EAST;n[0]=x>=r?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;m[1]=mxUtils.reversePortConstraints(m[0]);n[1]=mxUtils.reversePortConstraints(n[0]);p=p>=t?p:t;r=x>=r?x:r;t=[[0,0],[0,0]];u=!1;for(x=0;2>x;x++)0==b[x]&&(0==(m[x]&c[x])&&(m[x]=mxUtils.reversePortConstraints(m[x])),0==(n[x]&c[x])&&(n[x]=mxUtils.reversePortConstraints(n[x])),t[x][0]=n[x],t[x][1]=m[x]);0<r&&0<p&&(0<(m[0]&c[0])&&0<(n[1]&c[1])?(t[0][0]=m[0],t[0][1]=n[0],t[1][0]=n[1],t[1][1]=m[1],-u=!0):0<(n[0]&c[0])&&0<(m[1]&c[1])&&(t[0][0]=n[0],t[0][1]=m[0],t[1][0]=m[1],t[1][1]=n[1],u=!0));0<r&&!u&&(t[0][0]=n[0],t[0][1]=m[0],t[1][0]=n[1],t[1][1]=m[1],u=!0);0<p&&!u&&(t[0][0]=m[0],t[0][1]=n[0],t[1][0]=m[1],t[1][1]=n[1]);for(x=0;2>x;x++)0==b[x]&&(0==(t[x][0]&c[x])&&(t[x][0]=t[x][1]),B[x]=t[x][0]&c[x],B[x]|=(t[x][1]&c[x])<<8,B[x]|=(t[1-x][x]&c[x])<<16,B[x]|=(t[1-x][1-x]&c[x])<<24,0==(B[x]&15)&&(B[x]<<=8),0==(B[x]&3840)&&(B[x]=B[x]&15|B[x]>>8),0==(B[x]&983040)&&(B[x]=B[x]&65535|(B[x]&251658240)>>-8),b[x]=B[x]&15,c[x]==mxConstants.DIRECTION_MASK_WEST||c[x]==mxConstants.DIRECTION_MASK_NORTH||c[x]==mxConstants.DIRECTION_MASK_EAST||c[x]==mxConstants.DIRECTION_MASK_SOUTH)&&(b[x]=c[x]);c=b[0]==mxConstants.DIRECTION_MASK_EAST?3:b[0];B=b[1]==mxConstants.DIRECTION_MASK_EAST?3:b[1];c-=C;B-=C;1>c&&(c+=4);1>B&&(B+=4);c=mxEdgeStyle.routePatterns[c-1][B-1];mxEdgeStyle.wayPoints1[0][0]=q[0][0];mxEdgeStyle.wayPoints1[0][1]=q[0][1];switch(b[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-=-f;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*q[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*q[0][2];mxEdgeStyle.wayPoints1[0][1]+=q[0][3]+f;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=q[0][2]+f;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*q[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*q[0][2],mxEdgeStyle.wayPoints1[0][1]-=f}f=0;m=B=0<(b[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?-0:1;for(x=0;x<c.length;x++)n=c[x]&15,u=n==mxConstants.DIRECTION_MASK_EAST?3:n,u+=C,4<u&&(u-=4),p=mxEdgeStyle.dirVectors[u-1],n=0<u%2?0:1,n!=B&&(f++,mxEdgeStyle.wayPoints1[f][0]=mxEdgeStyle.wayPoints1[f-1][0],mxEdgeStyle.wayPoints1[f][1]=mxEdgeStyle.wayPoints1[f-1][1]),v=0<(c[x]&mxEdgeStyle.TARGET_MASK),y=0<(c[x]&mxEdgeStyle.SOURCE_MASK),r=(c[x]&mxEdgeStyle.SIDE_MASK)>>5,r<<=C,15<r&&(r>>=4),t=0<(c[x]&mxEdgeStyle.CENTER_MASK),(y||v)&&9>r?(u=y?0:1,r=t&&0==n?q[u][0]+l[u][0]*q[u][2]:t?q[u][1]+l[u][1]*-q[u][3]:mxEdgeStyle.limits[u][r],0==n?(r=(r-mxEdgeStyle.wayPoints1[f][0])*p[0],0<r&&(mxEdgeStyle.wayPoints1[f][0]+=p[0]*r)):(r=(r-mxEdgeStyle.wayPoints1[f][1])*p[1],0<r&&(mxEdgeStyle.wayPoints1[f][1]+=p[1]*r))):t&&(mxEdgeStyle.wayPoints1[f][0]+=p[0]*Math.abs(mxEdgeStyle.vertexSeperations[u]/2),mxEdgeStyle.wayPoints1[f][1]+=p[1]*Math.abs(mxEdgeStyle.vertexSeperations[u]/2)),0<f&&mxEdgeStyle.wayPoints1[f][n]==mxEdgeStyle.wayPoints1[f-1][n]?f--:B=n;for(x=0;x<=f&&(x!=f||((0<(b[1]&(mxConstants.DIRECTION_MASK_EAST|-mxConstants.DIRECTION_MASK_WEST))?0:1)==m?0:1)==(f+1)%2);x++)e.push(new mxPoint(Math.round(mxEdgeStyle.wayPoints1[x][0]*a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[x][1]*a.view.scale*10)/10));for(a=1;a<e.length;)null==e[a-1]||null==e[a]||e[a-1].x!=e[a].x||e[a-1].y!=e[a].y?a++:e.splice(a,1)}},getRoutePattern:function(a,b,c,d){var e=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];a=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];e-=b;a-=b;1>e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];0!=c&&-0!=d||null==inlineRoutePatterns[e-1][a-1]||(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);-mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);-mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource;-mxGraphView.prototype.constructor=mxGraphView;mxGraphView.prototype.EMPTY_POINT=new mxPoint;mxGraphView.prototype.doneResource="none"!=mxClient.language?"done":"";mxGraphView.prototype.updatingDocumentResource="none"!=mxClient.language?"updatingDocument":"";mxGraphView.prototype.allowEval=!1;mxGraphView.prototype.captureDocumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.prototype.currentRoot=null;mxGraphView.prototype.graphBounds=null;-mxGraphView.prototype.scale=1;mxGraphView.prototype.translate=null;mxGraphView.prototype.states=null;mxGraphView.prototype.updateStyle=!1;mxGraphView.prototype.lastNode=null;mxGraphView.prototype.lastHtmlNode=null;mxGraphView.prototype.lastForegroundNode=null;mxGraphView.prototype.lastForegroundHtmlNode=null;mxGraphView.prototype.getGraphBounds=function(){return this.graphBounds};mxGraphView.prototype.setGraphBounds=function(a){this.graphBounds=a};+b*10)/10,Math.round(a.width/b*10)/10,Math.round(a.height/b*10)/10)}else c=null;return c},OrthConnector:function(a,b,c,d,e){var f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale),g=mxEdgeStyle.scaleCellState(b,a.view.scale),k=mxEdgeStyle.scaleCellState(c,a.view.scale),l=f[0],m=f[f.length-1];f=null!=g?g.x:l.x;var n=null!=g?g.y:l.y,p=null!=g?g.width:1,q=null!=g?g.height:1,r=null!=k?k.x:m.x,t=null!=k?k.y:m.y,u=null!=k?k.width:1,v=null!=k?k.height:1,y=mxEdgeStyle.getJettySize(a,!0),A=mxEdgeStyle.getJettySize(a,+!1);null!=g&&k==g&&(y=A=Math.max(y,A));var z=A+y,x=!1;if(null!=l&&null!=m){x=m.x-l.x;var B=m.y-l.y;x=x*x+B*B<z*z}if(x||mxEdgeStyle.orthPointsFallback&&null!=d&&0<d.length)mxEdgeStyle.SegmentConnector(a,b,c,d,e);else if(c=[mxConstants.DIRECTION_MASK_ALL,mxConstants.DIRECTION_MASK_ALL],null!=g&&(c[0]=mxUtils.getPortConstraints(g,a,!0,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(g.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(f,n,p,q),b),f=b.x,n=b.y,p=b.width,+q=b.height)),null!=k&&(c[1]=mxUtils.getPortConstraints(k,a,!1,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(k.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(r,t,u,v),b),r=b.x,t=b.y,u=b.width,v=b.height)),0!=p&&0!=q&&0!=u&&0!=v){b=[0,0];f=[[f,n,p,q],[r,t,u,v]];A=[y,A];for(x=0;2>x;x++)mxEdgeStyle.limits[x][1]=f[x][0]-A[x],mxEdgeStyle.limits[x][2]=f[x][1]-A[x],mxEdgeStyle.limits[x][4]=f[x][0]+f[x][2]+A[x],mxEdgeStyle.limits[x][8]=f[x][1]+f[x][3]+A[x];A=f[0][1]++f[0][3]/2;n=f[1][1]+f[1][3]/2;x=f[0][0]+f[0][2]/2-(f[1][0]+f[1][2]/2);B=A-n;A=0;0>x?A=0>B?2:1:0>=B&&(A=3,0==x&&(A=2));n=null;null!=g&&(n=l);l=[[.5,.5],[.5,.5]];g||(l[0]=[0,0]);k||(l[1]=[0,0]);for(x=0;2>x;x++)null!=n&&(l[x][0]=(n.x-f[x][0])/f[x][2],1>=Math.abs(n.x-f[x][0])?b[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(n.x-f[x][0]-f[x][2])&&(b[x]=mxConstants.DIRECTION_MASK_EAST),l[x][1]=(n.y-f[x][1])/f[x][3],1>=Math.abs(n.y-f[x][1])?b[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(n.y-f[x][1]-f[x][3])&&+(b[x]=mxConstants.DIRECTION_MASK_SOUTH)),n=null,null!=k&&(n=m);x=f[0][1]-(f[1][1]+f[1][3]);m=f[0][0]-(f[1][0]+f[1][2]);n=f[1][1]-(f[0][1]+f[0][3]);p=f[1][0]-(f[0][0]+f[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(m-z,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-z,0);mxEdgeStyle.vertexSeperations[4]=Math.max(n-z,0);mxEdgeStyle.vertexSeperations[3]=Math.max(p-z,0);z=[];g=[];k=[];g[0]=m>=p?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;k[0]=x>=n?mxConstants.DIRECTION_MASK_NORTH:+mxConstants.DIRECTION_MASK_SOUTH;g[1]=mxUtils.reversePortConstraints(g[0]);k[1]=mxUtils.reversePortConstraints(k[0]);m=m>=p?m:p;n=x>=n?x:n;p=[[0,0],[0,0]];q=!1;for(x=0;2>x;x++)0==b[x]&&(0==(g[x]&c[x])&&(g[x]=mxUtils.reversePortConstraints(g[x])),0==(k[x]&c[x])&&(k[x]=mxUtils.reversePortConstraints(k[x])),p[x][0]=k[x],p[x][1]=g[x]);0<n&&0<m&&(0<(g[0]&c[0])&&0<(k[1]&c[1])?(p[0][0]=g[0],p[0][1]=k[0],p[1][0]=k[1],p[1][1]=g[1],q=!0):0<(k[0]&c[0])&&0<(g[1]&c[1])&&(p[0][0]=k[0],p[0][1]=g[0],p[1][0]=g[1],+p[1][1]=k[1],q=!0));0<n&&!q&&(p[0][0]=k[0],p[0][1]=g[0],p[1][0]=k[1],p[1][1]=g[1],q=!0);0<m&&!q&&(p[0][0]=g[0],p[0][1]=k[0],p[1][0]=g[1],p[1][1]=k[1]);for(x=0;2>x;x++)0==b[x]&&(0==(p[x][0]&c[x])&&(p[x][0]=p[x][1]),z[x]=p[x][0]&c[x],z[x]|=(p[x][1]&c[x])<<8,z[x]|=(p[1-x][x]&c[x])<<16,z[x]|=(p[1-x][1-x]&c[x])<<24,0==(z[x]&15)&&(z[x]<<=8),0==(z[x]&3840)&&(z[x]=z[x]&15|z[x]>>8),0==(z[x]&983040)&&(z[x]=z[x]&65535|(z[x]&251658240)>>8),b[x]=z[x]&15,c[x]==mxConstants.DIRECTION_MASK_WEST||c[x]==mxConstants.DIRECTION_MASK_NORTH||+c[x]==mxConstants.DIRECTION_MASK_EAST||c[x]==mxConstants.DIRECTION_MASK_SOUTH)&&(b[x]=c[x]);c=b[0]==mxConstants.DIRECTION_MASK_EAST?3:b[0];z=b[1]==mxConstants.DIRECTION_MASK_EAST?3:b[1];c-=A;z-=A;1>c&&(c+=4);1>z&&(z+=4);c=mxEdgeStyle.routePatterns[c-1][z-1];mxEdgeStyle.wayPoints1[0][0]=f[0][0];mxEdgeStyle.wayPoints1[0][1]=f[0][1];switch(b[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-=y;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*f[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=+l[0][0]*f[0][2];mxEdgeStyle.wayPoints1[0][1]+=f[0][3]+y;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=f[0][2]+y;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*f[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*f[0][2],mxEdgeStyle.wayPoints1[0][1]-=y}y=0;g=z=0<(b[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?0:1;for(x=0;x<c.length;x++)k=c[x]&15,q=k==mxConstants.DIRECTION_MASK_EAST?3:k,q+=A,4<q&&(q-=4),m=mxEdgeStyle.dirVectors[q-+1],k=0<q%2?0:1,k!=z&&(y++,mxEdgeStyle.wayPoints1[y][0]=mxEdgeStyle.wayPoints1[y-1][0],mxEdgeStyle.wayPoints1[y][1]=mxEdgeStyle.wayPoints1[y-1][1]),r=0<(c[x]&mxEdgeStyle.TARGET_MASK),t=0<(c[x]&mxEdgeStyle.SOURCE_MASK),n=(c[x]&mxEdgeStyle.SIDE_MASK)>>5,n<<=A,15<n&&(n>>=4),p=0<(c[x]&mxEdgeStyle.CENTER_MASK),(t||r)&&9>n?(q=t?0:1,n=p&&0==k?f[q][0]+l[q][0]*f[q][2]:p?f[q][1]+l[q][1]*f[q][3]:mxEdgeStyle.limits[q][n],0==k?(n=(n-mxEdgeStyle.wayPoints1[y][0])*m[0],0<n&&(mxEdgeStyle.wayPoints1[y][0]+=m[0]*n)):+(n=(n-mxEdgeStyle.wayPoints1[y][1])*m[1],0<n&&(mxEdgeStyle.wayPoints1[y][1]+=m[1]*n))):p&&(mxEdgeStyle.wayPoints1[y][0]+=m[0]*Math.abs(mxEdgeStyle.vertexSeperations[q]/2),mxEdgeStyle.wayPoints1[y][1]+=m[1]*Math.abs(mxEdgeStyle.vertexSeperations[q]/2)),0<y&&mxEdgeStyle.wayPoints1[y][k]==mxEdgeStyle.wayPoints1[y-1][k]?y--:z=k;for(x=0;x<=y&&(x!=y||((0<(b[1]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?0:1)==g?0:1)==(y+1)%2);x++)e.push(new mxPoint(Math.round(mxEdgeStyle.wayPoints1[x][0]*+a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[x][1]*a.view.scale*10)/10));for(a=1;a<e.length;)null==e[a-1]||null==e[a]||e[a-1].x!=e[a].x||e[a-1].y!=e[a].y?a++:e.splice(a,1)}},getRoutePattern:function(a,b,c,d){var e=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];a=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];e-=b;a-=b;1>e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];0!=c&&0!=d||null==inlineRoutePatterns[e-1][a-1]||(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,+b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);+mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);+mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource;mxGraphView.prototype.constructor=mxGraphView;mxGraphView.prototype.EMPTY_POINT=new mxPoint;mxGraphView.prototype.doneResource="none"!=mxClient.language?"done":"";+mxGraphView.prototype.updatingDocumentResource="none"!=mxClient.language?"updatingDocument":"";mxGraphView.prototype.allowEval=!1;mxGraphView.prototype.captureDocumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.prototype.currentRoot=null;mxGraphView.prototype.graphBounds=null;mxGraphView.prototype.scale=1;mxGraphView.prototype.translate=null;mxGraphView.prototype.states=null;mxGraphView.prototype.updateStyle=!1;mxGraphView.prototype.lastNode=null;+mxGraphView.prototype.lastHtmlNode=null;mxGraphView.prototype.lastForegroundNode=null;mxGraphView.prototype.lastForegroundHtmlNode=null;mxGraphView.prototype.getGraphBounds=function(){return this.graphBounds};mxGraphView.prototype.setGraphBounds=function(a){this.graphBounds=a};mxGraphView.prototype.getBounds=function(a){var b=null;if(null!=a&&0<a.length)for(var c=this.graph.getModel(),d=0;d<a.length;d++)if(c.isVertex(a[d])||c.isEdge(a[d])){var e=this.getState(a[d]);null!=e&&(null==b?b=mxRectangle.fromRectangle(e):b.add(e))}return b};mxGraphView.prototype.setCurrentRoot=function(a){if(this.currentRoot!=a){var b=new mxCurrentRootChange(this,a);b.execute();var c=new mxUndoableEdit(this,!0);c.add(b);this.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",c));this.graph.sizeDidChange()}return a};mxGraphView.prototype.scaleAndTranslate=function(a,b,c){var d=this.scale,e=new mxPoint(this.translate.x,this.translate.y);if(this.scale!=a||this.translate.x!=b||this.translate.y!=c)this.scale=a,this.translate.x=b,this.translate.y=c,this.isEventsEnabled()&&this.viewStateChanged();this.fireEvent(new mxEventObject(mxEvent.SCALE_AND_TRANSLATE,"scale",a,"previousScale",d,"translate",this.translate,"previousTranslate",e))};mxGraphView.prototype.getScale=function(){return this.scale};mxGraphView.prototype.setScale=function(a){var b=this.scale;this.scale!=a&&(this.scale=a,this.isEventsEnabled()&&this.viewStateChanged());this.fireEvent(new mxEventObject(mxEvent.SCALE,"scale",a,"previousScale",b))};mxGraphView.prototype.getTranslate=function(){return this.translate};@@ -2032,67 +2032,67 @@ Dialog.prototype.close=function(a,b){if(null!=this.onDialogClose){if(0==this.onDthis.container.parentNode.removeChild(this.container)};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 B=mxUtils.button(e,function(){p&&a.hideDialog();null!=g&&g()});B.className="geBtn";f.appendChild(B);null!=h&&(e=mxUtils.button(h,function(){p&&a.hideDialog();null!=m&&m()}),e.className="geBtn gePrimaryBtn",f.appendChild(e));this.init=function(){B.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(B){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();B&&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(B){h.checked=!h.checked;k.checked=!h.checked;mxEvent.consume(B)});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(B){k.checked=!k.checked;h.checked=!k.checked;mxEvent.consume(B)});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",+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 E=h.checked||k.checked,D=parseInt(w.value)/100;isNaN(D)&&(D=1,w.value="100%");mxClient.IS_SF&&(D*=.75);var G=f.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,I=1/f.pageScale;if(E){var M=h.checked?1:parseInt(u.value);isNaN(M)||(I=mxUtils.getScaleForPageCount(M,f,G))}var N=M=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*D);G.height=Math.ceil(G.height*D);I*=D;!E&&f.pageVisible?(D=f.getPageLayout(),M-=D.x*G.width,N-=D.y*G.height):+E=!0;E=PrintDialog.createPrintPreview(f,I,G,0,M,N,E);E.open();C&&PrintDialog.printPreview(E)}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 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?(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 PageSetupDialog=function(a){function b(){var D=w;null!=D&&null!=D.originalSrc&&(D=a.createImageForPageLink(D.originalSrc,null));null!=D&&null!=D.src?(u.style.backgroundImage="url("+D.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")+":");+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 D=parseInt(p.value);p.value=Math.max(1,isNaN(D)?f.getGridSize():D)});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 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,B=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,B=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!=B&&-(E.shadowVisible=B);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};+u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var w=f.backgroundImage,y=f.background,C=f.shadowVisible,E=function(D){a.showBackgroundImageDialog(function(G,I,M,N){I||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=N);y=M;b()},w,y,!0);mxEvent.consume(D)};mxEvent.addListener(k,"click",E);mxEvent.addListener(u,"click",E);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);E=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var D=parseInt(p.value);isNaN(D)||f.gridSize===D||f.setGridSize(D);D=new ChangePageSetup(a,y,w,m.get());D.ignoreColor=f.background==y;D.ignoreImage=(null!=f.backgroundImage?f.backgroundImage.src:null)===(null!=w?w.src:null);null!=C&&+(D.shadowVisible=C);f.pageFormat.width==D.previousFormat.width&&f.pageFormat.height==D.previousFormat.height&&D.ignoreColor&&D.ignoreImage&&D.shadowVisible==f.shadowVisible||f.model.execute(D)});E.className="geBtn gePrimaryBtn";h.appendChild(E);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 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 B=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],D=0;D<B.length;D++){var E=document.createElement("option");E.setAttribute("value",B[D].unit);mxUtils.write(E,B[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++)B=J[D],G[B.key]=B,E=document.createElement("option"),E.setAttribute("value",B.key),mxUtils.write(E,B.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?(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}};+"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}],E=0;E<C.length;E++){var D=document.createElement("option");D.setAttribute("value",C[E].unit);mxUtils.write(D,C[E].label);y.appendChild(D)}y.value=Editor.pageSizeUnit;k.appendChild(y);+m.style.display="none";k.style.display="none";var G={},I=PageSetupDialog.getFormats();for(E=0;E<I.length;E++)C=I[E],G[C.key]=C,D=document.createElement("option"),D.setAttribute("value",C.key),mxUtils.write(D,C.title),h.appendChild(D);var M=function(){h.value="custom";for(var L=0;L<I.length;L++){var V=I[L];null!=V.format&&("a4"==V.key?826==f.width?(f=mxRectangle.fromRectangle(f),f.width=827):826==f.height&&(f=mxRectangle.fromRectangle(f),f.height=827):"a5"==V.key&&(584==f.width?(f=mxRectangle.fromRectangle(f),+f.width=583):584==f.height&&(f=mxRectangle.fromRectangle(f),f.height=583)),f.width==V.format.width&&f.height==V.format.height?(h.value=V.key,g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0,d.removeAttribute("checked"),d.defaultChecked=!1,d.checked=!1,detected=!0):f.width==V.format.height&&f.height==V.format.width&&(h.value=V.key,g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1,d.setAttribute("checked","checked"),d.defaultChecked=!0,detected=d.checked=!0))}"custom"==+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 N=function(L,V){L=G[h.value];null!=L.format?(u.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(u.value);if(isNaN(L)||0>=L)u.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(u.value),y.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),y.value)));V||L.width==f.width&&L.height==f.height||(f=L,null!=e&&e(f))};mxEvent.addListener(b,"click",function(L){g.checked=!0;N(L);mxEvent.consume(L)});+mxEvent.addListener(p,"click",function(L){d.checked=!0;N(L);mxEvent.consume(L)});mxEvent.addListener(u,"blur",N);mxEvent.addListener(u,"click",N);mxEvent.addListener(w,"blur",N);mxEvent.addListener(w,"click",N);mxEvent.addListener(d,"change",N);mxEvent.addListener(g,"change",N);mxEvent.addListener(h,"change",function(L){N(L,"custom"==h.value);mxEvent.consume(L)});mxEvent.addListener(y,"change",function(L){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;N(L,!0);mxEvent.consume(L)});N(null,!0);return{set:function(L){f=L;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,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 B=document.createElement("div");B.style.display="inline-flex";B.style.alignItems="center";B.style.justifyContent="flex-end";B.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"))+":");B.appendChild(D);y.appendChild(B);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!=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()}))}}};B=document.createElement("div");B.style.display="inline-flex";B.style.alignItems="center";B.style.gap="4px";B.style.whiteSpace="nowrap";B.appendChild(E);y.appendChild(B);-null==g&&null!=h||null==u||null==a.editor.diagramFileTypes||(B=document.createElement("div"),B.style.display="inline-flex",B.style.alignItems="center",B.style.textOverflow="ellipsis",B.style.justifyContent="flex-end",B.style.fontSize="10pt",mxUtils.write(B,mxResources.get("type")+":"),y.appendChild(B),B=document.createElement("div"),B.style.display="inline-flex",B.style.alignItems="center",B.style.whiteSpace="nowrap",y.appendChild(B),b=FilenameDialog.createFileTypes(a,E,a.editor.diagramFileTypes),-b.style.width="100%",B.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");B=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=k&&k()});B.className="geBtn";null==m||a.isOffline()||row.appendChild(a.createHelpIcon(m));-a.editor.cancelFirst&&row.appendChild(B);mxEvent.addListener(E,"keypress",function(J){13==J.keyCode&&G.click()});row.appendChild(G);a.editor.cancelFirst||row.appendChild(B);y.appendChild(row);w.appendChild(y);this.container=w};FilenameDialog.filenameHelpLink=null;+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 E=document.createElement("div");E.style.display="inline-block";+E.style.textOverflow="ellipsis";E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.fontSize="10pt";E.style.padding="2px 0";E.setAttribute("title",g||mxResources.get("filename"));mxUtils.write(E,(g||mxResources.get("filename"))+":");C.appendChild(E);y.appendChild(C);var D=document.createElement("input");D.setAttribute("value",b||"");D.style.flexGrow="1";var G=mxUtils.button(f,function(){if(null==d||d(D.value))p&&a.hideDialog(),e(D.value)});G.className="geBtn gePrimaryBtn";this.init=function(){if(null!=+g||null==h)if(null!=u?Editor.selectFilename(D):(D.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var I=y.parentNode;if(null!=I){var M=null;mxEvent.addListener(I,"dragleave",function(N){null!=M&&(M.style.backgroundColor="",M=null);N.stopPropagation();N.preventDefault()});mxEvent.addListener(I,"dragover",mxUtils.bind(this,function(N){null==M&&(!mxClient.IS_IE||10<document.documentMode)&&(M=D,M.style.backgroundColor=+"#ebf2f9");N.stopPropagation();N.preventDefault()}));mxEvent.addListener(I,"drop",mxUtils.bind(this,function(N){null!=M&&(M.style.backgroundColor="",M=null);0<=mxUtils.indexOf(N.dataTransfer.types,"text/uri-list")&&(D.value=decodeURIComponent(N.dataTransfer.getData("text/uri-list")),G.click());N.stopPropagation();N.preventDefault()}))}}};C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.gap="4px";C.style.whiteSpace="nowrap";C.appendChild(D);y.appendChild(C);+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,D,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(D,"keypress",function(I){13==I.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};var WrapperWindow=function(a,b,f,e,g,d,h,m){m=null!=m?m:document.createElement("div");this.window=new mxWindow(b,m,f,e,g,d,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);a.installResizeHandler(this,!0);h(m)};(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 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",B="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?(B=unescape(encodeURIComponent(this.createSvgGrid(y,h))),B=window.btoa?btoa(B):Base64.encode(B,!0),B="url(data:image/svg+xml;base64,"+B+")",D=k.gridSize*this.scale*this.gridSteps*h):B="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=B,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=B,"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,+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",E="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(u=k.background);if(k.isGridEnabled()||k.gridVisible){E=+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+")",E=k.gridSize*this.scale*this.gridSteps*h):C="url("+this.gridImage+")";var D=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,I=m%G;G=p%G;null!=k.view.backgroundPageShape&&(D=this.getBackgroundPageBounds(),y=1+D.x,D=1+D.y);E=-Math.round(E-mxUtils.mod(this.translate.x*+this.scale-y+m,E)+I*h)+"px "+-Math.round(E-mxUtils.mod(this.translate.y*this.scale-D+p,E)+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=E,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=E,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,u=this.view.translate,w=this.pageFormat,y=k*this.pageScale,B=this.view.getBackgroundPageBounds();-m=B.width;p=B.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=B.x+m,M=B.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(B.x),-Math.round(B.y+(W+1)*D.height)),new mxPoint(Math.round(J),Math.round(B.y+(W+1)*D.height))]:[new mxPoint(Math.round(B.x+(W+1)*D.width),Math.round(B.y)),new mxPoint(Math.round(B.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);+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 E=new mxRectangle(k*u.x,k*u.y,w.width*y,w.height*y),D=(h=h&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(p/E.height)-1:0,G=h?Math.ceil(m/E.width)-1:0,I=C.x+m,M=C.y+p;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);h=mxUtils.bind(this,function(N){if(null!=N){for(var L=N==this.horizontalPageBreaks?D:G,V=0;V<=L;V++){var X=N==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),+Math.round(C.y+(V+1)*E.height)),new mxPoint(Math.round(I),Math.round(C.y+(V+1)*E.height))]:[new mxPoint(Math.round(C.x+(V+1)*E.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(V+1)*E.width),Math.round(M))];null!=N[V]?(N[V].points=X,N[V].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(),N[V]=X)}for(V=L;V<N.length;V++)null!=N[V]&&N[V].destroy();N.splice(L,N.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 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,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(B){mxEvent.consume(B)});return y};var d=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=+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 fa=this.view.translate,la=this.view.scale;H=mxRectangle.fromRectangle(H);H.add(new mxRectangle((fa.x+S.x)*la,(fa.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),fa=[],la=[],O;for(O in S)fa.push(S[O]),la.push(O);g.getModel().isEdge(H)?g.currentEdgeStyle={}:g.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",fa,"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=+p=g.pasteEdgeStyle=!1:m=!1;var S=g.getCellStyle(H,!1),fa=[],la=[],P;for(P in S)fa.push(S[P]),la.push(P);g.getModel().isEdge(H)?g.currentEdgeStyle={}:g.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",fa,"cells",[H],"force",!0));g.getModel().isEdge(H)?p=g.pasteEdgeStyle=!0:m=!0}catch(W){this.handleError(W)}};this.clearDefaultStyle=function(){g.currentEdgeStyle=mxUtils.clone(g.defaultEdgeStyle);g.currentVertexStyle=mxUtils.clone(g.defaultVertexStyle);m=p=g.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};g.addListener("cellsInserted",function(H,S){g.pasteCellStyles(g.includeDescendants(S.getProperty("cells")))});g.addListener("textInserted",function(H,S){g.pasteCellStyles(S.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var k=mxUtils.bind(this,function(H){null==H&&(H=window.event);return g.isEditing()||null!=H&&this.isSelectionAllowed(H)});this.container!=document.body||this.editor.chromeless&&!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(fa){}}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,@@ -2100,12 +2100,12 @@ navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{H=[parseInt(S[1],10),pa(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 B=g.cellEditor.isStopEditingEvent;g.cellEditor.isStopEditingEvent=function(H){return B.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 fa=S.getAttribute("data-min-width");null!=fa&&parseInt(fa)>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 fa=H.nextSibling;H.parentNode.removeChild(H);-S.push(H);H=fa}H=this.toolbar.fontMenu;fa=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=fa;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 fa=g.getSelectedEditingElement();null!=fa&&(fa=mxUtils.getCurrentStyle(fa),null!=fa&&null!=e.toolbar&&(e.toolbar.setFontName(mxUtils.getCssFontFamily(fa.fontFamily)),e.toolbar.setFontSize(parseInt(fa.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(fa){e.handleError(fa)}};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,fa){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,fa,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,fa){this.menus.createPopupMenu(H,S,fa)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(H){g.popupMenuHandler.hideMenu()}));+(!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 E=g.isZoomWheelEvent;g.isZoomWheelEvent=function(){return e.isSpaceDown()||E.apply(this,arguments)};var D=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 fa=S.getAttribute("data-min-width");null!=fa&&parseInt(fa)>H?S.style.display="none":S.style.display="";S=S.nextSibling}}),G=!1,I=null,M=null,N=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 fa=H.nextSibling;H.parentNode.removeChild(H);+S.push(H);H=fa}H=this.toolbar.fontMenu;fa=this.toolbar.sizeMenu;if(null==N)this.toolbar.createTextToolbar();else{for(var la=0;la<N.length;la++)this.toolbar.container.appendChild(N[la]);this.toolbar.fontMenu=I;this.toolbar.sizeMenu=M}G=g.cellEditor.isContentEditing();I=H;M=fa;N=S;D()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();L()}));this.addListener("currentThemeChanged",D);mxEvent.addListener(window,+"resize",D);D();g.isTouchPopupMenuEnabled=function(){return null==e.dialog};var V=g.cellEditor.startEditing;g.cellEditor.startEditing=function(){V.apply(this,arguments);L();if(g.cellEditor.isContentEditing()){var H=!1,S=function(){H||(H=!0,window.setTimeout(function(){var fa=g.getSelectedEditingElement();null!=fa&&(fa=mxUtils.getCurrentStyle(fa),null!=fa&&null!=e.toolbar&&(e.toolbar.setFontName(mxUtils.getCssFontFamily(fa.fontFamily)),e.toolbar.setFontSize(parseInt(fa.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(fa){e.handleError(fa)}};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,fa){try{H==mxEvent.MOUSE_DOWN&&this.container.focus(),T.apply(this,arguments)}catch(la){e.handleError(la)}};var O=g.foldCells;g.foldCells=function(H,S,fa,la,P){try{O.apply(this,arguments)}catch(W){e.handleError(W)}};g.popupMenuHandler.autoExpand=!0;null!=this.menus&&(g.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(H,S,fa){this.menus.createPopupMenu(H,S,fa)}));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 fa=[S.getProperty("cell")];S.getProperty("terminalInserted")&&(fa.push(S.getProperty("terminal")),window.setTimeout(function(){null!=e.hoverIcons&&e.hoverIcons.update(g.view.getState(fa[fa.length-1]))},0));g.pasteCellStyles(fa)});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,Format.curvedImage.src):"straight"==g.currentEdgeStyle.edgeStyle||"none"==g.currentEdgeStyle.edgeStyle||null==g.currentEdgeStyle.edgeStyle?this.toolbar.setMenuIcon(this.toolbar.edgeStyleMenu,Format.straightImage.src):"entityRelationEdgeStyle"==g.currentEdgeStyle.edgeStyle?this.toolbar.setMenuIcon(this.toolbar.edgeStyleMenu,Format.entityImage.src):"elbowEdgeStyle"==g.currentEdgeStyle.edgeStyle?"vertical"==g.currentEdgeStyle.elbow?this.toolbar.setMenuIcon(this.toolbar.edgeStyleMenu,Format.verticalElbowImage.src):@@ -2127,29 +2127,29 @@ 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,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 B=this.editor.graph.view.getState(y);-if(y==f.getChildAt(e,d+p)&&null!=B&&1==mxUtils.getValue(B.style,"colspan",1)&&1==mxUtils.getValue(B.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.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 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,B,D){return mxUtils.isLightDarkColor(D)?(D=mxUtils.getLightDarkColor(D),y.style.setProperty(B,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};+"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(e.getLabel(a[h])),Graph.addLightDarkColors(d,null,null,function(y,C,E){return mxUtils.isLightDarkColor(E)?(E=mxUtils.getLightDarkColor(E),y.style.setProperty(C,E.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 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,B,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 B=mxUtils.getOffset(a.container),D=a.container.scrollLeft+u.x-B.x;B=a.container.scrollTop+u.y-B.y;var E=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(D,B,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,B,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)}))}};+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,E){var D=a.getCompositeParent(p.cell);y=a.getCellGeometry(D);for(u.consume();null!=D&&a.model.isVertex(D)&&null!=y&&y.relative;)cell=+D,D=a.model.getParent(cell),y=a.getCellGeometry(D);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.getGraphX(),u.getGraphY(),D,mxUtils.bind(this,function(G){E(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),E=a.container.scrollLeft+u.x-C.x;C=a.container.scrollTop+u.y-C.y;var D=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(E,C,D,mxUtils.bind(this,function(I){null!=I&&a.connectVertex(D,w,a.defaultEdgeLength,y,!0,!1,function(M,N,L){L(I);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(I))},+function(M){a.selectCellsForConnectVertex(M)},y,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,u,E,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,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 B=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 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!=B.hoverIcons&&B.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.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(D){D=D[0];var G=0,I=0,M=D.geometry;null!=M&&(w.model.isEdge(D)&&(D=M.getTerminalPoint(!1),M=new mxRectangle(0,0,D.x,D.y)),G=M.width/2,I=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-I))};if(null!=h&&0<h.length){var C=this;w=this.editor.graph;y=document.createElement("div");+g=w.view.getState(f);var E=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(D){var G=document.createElement("a");y.appendChild(G);null!=E&&"1"!=urlParams.sketch?+this.sidebar.graph.pasteStyle(E,[D]):this.sidebar.graph.pasteCellStyles([D],w.currentVertexStyle,w.currentEdgeStyle);var I=D.geometry;w.model.isEdge(D)&&(I=I.getTerminalPoint(!1),I=new mxRectangle(0,0,I.x,I.y));null!=I&&(I=this.sidebar.createVertexTemplateFromCells([D],I.width,I.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 N=w.cloneCell(D);if(null!=e)e(N);else{var L=p([N]);w.model.isEdge(N)?+N.geometry.translate(L.x,L.y):(N.geometry.x=L.x,N.geometry.y=L.y);w.model.beginUpdate();try{w.addCell(N),w.model.isVertex(N)&&w.isAutoSizeCell(N)&&w.updateCellSize(N)}finally{w.model.endUpdate()}w.setSelectionCell(N);w.scrollCellToVisible(N);u&&w.startEditing(N);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(N))}}else N=w.getEditableCells(null!=f?[f]:w.getSelectionCells()),w.updateShapes(D,N);null!=d&&d(M);mxEvent.consume(M)}}),25,25,null,null,f),I.style.display="flex",I.style.alignItems=+"center",I.style.justifyContent="center",G.appendChild(I))});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;",80,80),g("rounded=1;whiteSpace=wrap;html=1;"),g("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),g("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),g("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),g("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),g("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),g("triangle;whiteSpace=wrap;html=1;",@@ -2166,46 +2166,46 @@ a?"1"!=b?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.s"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),u=new mxGraphModel,w=u.getChildAt(u.getRoot(),-0),y=0;y<k.length;y++){u.add(w,k[y]);var B=d.view.getState(h[y]);if(null!=B){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=B.x/B.view.scale-B.view.translate.x,D.y=B.y/B.view.scale-B.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=+0),y=0;y<k.length;y++){u.add(w,k[y]);var C=d.view.getState(h[y]);if(null!=C){var E=d.getCellGeometry(k[y]);null!=E&&E.relative&&!u.isEdge(h[y])&&null==p[mxObjectIdentity.get(u.getParent(h[y]))]&&(E.offset=null,E.relative=!1,E.x=C.x/C.view.scale-C.view.translate.x,E.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*-P.width,this.scale*aa.height*P.height)};a.getPreferredPageSize=function(aa,P,ba){aa=this.getPageLayout();P=this.getPageSize();return new mxRectangle(0,0,aa.width*P.width,aa.height*P.height)};var b=null,f=this;if(this.editor.isChromelessView()){this.chromelessResize=b=mxUtils.bind(this,function(aa,P,ba,ma){if(null!=a.container&&!a.isViewer()){ba=null!=ba?ba:0;ma=null!=ma?ma:0;var La=a.pageVisible?a.view.getBackgroundPageBounds():a.getGraphBounds(),na=mxUtils.hasScrollbars(a.container),za=a.view.translate,-Aa=a.view.scale,Ma=mxRectangle.fromRectangle(La);Ma.x=Ma.x/Aa-za.x;Ma.y=Ma.y/Aa-za.y;Ma.width/=Aa;Ma.height/=Aa;za=a.container.scrollTop;var Qa=a.container.scrollLeft,Ja=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ja+=3;var Ia=a.container.offsetWidth-Ja;Ja=a.container.offsetHeight-Ja;aa=aa?Math.max(.3,Math.min(P||1,Ia/Ma.width)):Aa;P=(Ia-aa*Ma.width)/2/aa;var ra=0==this.lightboxVerticalDivider?0:(Ja-aa*Ma.height)/this.lightboxVerticalDivider/aa;na&&(P=Math.max(P,-0),ra=Math.max(ra,0));if(na||La.width<Ia||La.height<Ja)a.view.scaleAndTranslate(aa,Math.floor(P-Ma.x),Math.floor(ra-Ma.y)),a.container.scrollTop=za*aa/Aa,a.container.scrollLeft=Qa*aa/Aa;else if(0!=ba||0!=ma)La=a.view.translate,a.view.setTranslate(Math.floor(La.x+ba/Aa),Math.floor(La.y+ma/Aa))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var e=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",e);this.destroyFunctions.push(function(){mxEvent.removeListener(window,+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(),Q=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+aa.x*Q.width),this.scale*(this.translate.y+aa.y*Q.height),this.scale*aa.width*+Q.width,this.scale*aa.height*Q.height)};a.getPreferredPageSize=function(aa,Q,ba){aa=this.getPageLayout();Q=this.getPageSize();return new mxRectangle(0,0,aa.width*Q.width,aa.height*Q.height)};var b=null,f=this;if(this.editor.isChromelessView()){this.chromelessResize=b=mxUtils.bind(this,function(aa,Q,ba,ma){if(null!=a.container&&!a.isViewer()){ba=null!=ba?ba:0;ma=null!=ma?ma:0;var Na=a.pageVisible?a.view.getBackgroundPageBounds():a.getGraphBounds(),oa=mxUtils.hasScrollbars(a.container),za=a.view.translate,+Aa=a.view.scale,La=mxRectangle.fromRectangle(Na);La.x=La.x/Aa-za.x;La.y=La.y/Aa-za.y;La.width/=Aa;La.height/=Aa;za=a.container.scrollTop;var Qa=a.container.scrollLeft,Ja=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ja+=3;var Ia=a.container.offsetWidth-Ja;Ja=a.container.offsetHeight-Ja;aa=aa?Math.max(.3,Math.min(Q||1,Ia/La.width)):Aa;Q=(Ia-aa*La.width)/2/aa;var ra=0==this.lightboxVerticalDivider?0:(Ja-aa*La.height)/this.lightboxVerticalDivider/aa;oa&&(Q=Math.max(Q,+0),ra=Math.max(ra,0));if(oa||Na.width<Ia||Na.height<Ja)a.view.scaleAndTranslate(aa,Math.floor(Q-La.x),Math.floor(ra-La.y)),a.container.scrollTop=za*aa/Aa,a.container.scrollLeft=Qa*aa/Aa;else if(0!=ba||0!=ma)Na=a.view.translate,a.view.setTranslate(Math.floor(Na.x+ba/Aa),Math.floor(Na.y+ma/Aa))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var e=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",e);this.destroyFunctions.push(function(){mxEvent.removeListener(window,"resize",e)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(aa){a.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(aa){a.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var g=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position="fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing="border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=a.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,-"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var 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=+"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,Q,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",Q);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 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 B=this.menus.get("pages");null!=B&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(aa){var P=new mxPopupMenu(B.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 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||+"",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 Q=new mxPopupMenu(C.funct);Q.smartSeparators=!0;Q.showDisabled=!0;Q.autoExpand=!0;Q.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(Q,arguments);Q.destroy()});var ba=mxUtils.getOffset(k);Q.popup(ba.x,ba.y+k.offsetHeight,null,aa);mxEvent.addListener(Q.div,+"mouseleave",mxUtils.bind(this,function(){Q.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 E=null,D=null,G=mxUtils.bind(this,function(aa){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);E=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);E=null;D=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";D=null}),+600)}),aa||200)}),I=mxUtils.bind(this,function(aa){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=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 Q=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=+Q.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));Q=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=+Q.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(aa)}),Editor.layersImage,mxResources.get("layers")),N=a.getModel();N.addListener(mxEvent.CHANGE,function(){M.style.display=1<N.getChildCount(N.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 Q=null!=this.currentPage?this.currentPage.getId():null;this.editor.editAsNew(this.getEditBlankXml(),null,null,Q)}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 V=null==g.refreshBtn.url?null:Graph.sanitizeLink(g.refreshBtn.url);+d(mxUtils.bind(this,function(aa){null!=V?window.location.href=V: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)?-G():J(100);mxEvent.consume(aa)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(aa){mxEvent.isTouchEvent(aa)||J(30)}));var X=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(aa,P){this.startX=P.getGraphX();this.startY=P.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(aa,P){},mouseUp:function(aa,P){mxEvent.isTouchEvent(P.getEvent())&&Math.abs(this.scrollLeft--a.container.scrollLeft)<X&&Math.abs(this.scrollTop-a.container.scrollTop)<X&&Math.abs(this.startX-P.getGraphX())<X&&Math.abs(this.startY-P.getGraphY())<X&&(0<parseFloat(f.chromelessToolbar.style.opacity||0)?G():J(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var T=a.view.validate,N=new mxPoint,ca=!1,H=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=f.currentPage&&H!=f.currentPage){H=f.currentPage;-ca=!0;var aa=a.getBoundingBoxFromGeometry(a.model.getCells(),!0,null,!0);null==aa&&(aa=new mxRectangle(a.view.translate.x*a.view.scale,a.view.translate.y*a.view.scale));aa=a.getPageLayout(aa,N,1);var P=a.getDefaultTranslate(aa);this.x0=aa.x;this.y0=aa.y;if(P.x!=this.translate.x||P.y!=this.translate.y)this.invalidate(),this.translate.x=P.x,this.translate.y=P.y}P=a.getPagePadding();var ba=a.getPageSize();aa=P.x-(this.x0||0)*ba.width;P=P.y-(this.y0||0)*ba.height;if(this.translate.x!=aa||this.translate.y!=-P)this.invalidate(),this.translate.x=aa,this.translate.y=P}T.apply(this,arguments)};if(!a.isViewer()){var S=a.sizeDidChange;a.sizeDidChange=function(){var aa=ca;ca=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var P=this.getPageLayout(),ba=this.getDefaultTranslate(P),ma=this.view.translate.x,La=this.view.translate.y;if(ba.x!=ma||ba.y!=La){this.view.x0=P.x;this.view.y0=P.y;this.autoTranslate=!0;this.view.setTranslate(ba.x,ba.y);-this.autoTranslate=!1;aa||(this.container.scrollLeft+=Math.round((ba.x-ma)*this.view.scale),this.container.scrollTop+=Math.round((ba.y-La)*this.view.scale));return}}S.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var fa=a.view.getBackgroundPane(),la=a.view.getDrawPane();a.cumulativeZoomFactor=1;var O=null,V=null,Y=null,ha=null,ia=null,ta=function(aa){null!=O&&window.clearTimeout(O);0<=aa&&window.setTimeout(function(){if(!a.isMouseDown||-ha)O=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&(null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform",null)),la.style.transformOrigin="",fa.style.transformOrigin="",mxClient.IS_SF?(la.style.transform="scale(1)",fa.style.transform="scale(1)",window.setTimeout(function(){la.style.transform="";-fa.style.transform=""},0)):(la.style.transform="",fa.style.transform=""),a.view.getDecoratorPane().style.opacity="",a.view.getOverlayPane().style.opacity="");var P=new mxPoint(a.container.scrollLeft,a.container.scrollTop),ba=mxUtils.getOffset(a.container),ma=a.view.scale,La=0,na=0;null!=V&&(La=a.container.offsetWidth/2-V.x+ba.x,na=a.container.offsetHeight/2-V.y+ba.y);a.zoom(a.cumulativeZoomFactor,null,a.isFastZoomEnabled()?20:null);a.view.scale!=ma&&(null!=Y&&(La+=P.x-Y.x,na+=P.y-Y.y),null!=b&&f.chromelessResize(!1,-null,La*(a.cumulativeZoomFactor-1),na*(a.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(a.container)||0==La&&0==na||(a.container.scrollLeft-=La*(a.cumulativeZoomFactor-1),a.container.scrollTop-=na*(a.cumulativeZoomFactor-1)));null!=ia&&la.setAttribute("filter",ia);a.cumulativeZoomFactor=1;ia=ha=V=Y=O=null}),null!=aa?aa:a.isFastZoomEnabled()?f.wheelZoomDelay:f.lazyZoomDelay)},0)};a.lazyZoom=function(aa,P,ba,ma){ma=null!=ma?ma:this.zoomFactor;(P=P||!a.scrollbars)&&(V=new mxPoint(a.container.offsetLeft++"mousemove",mxUtils.bind(this,function(aa){mxEvent.isTouchEvent(aa)||(mxEvent.isShiftDown(aa)||I(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():I(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(aa){mxEvent.isShiftDown(aa)?+G():I(100);mxEvent.consume(aa)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(aa){mxEvent.isTouchEvent(aa)||I(30)}));var X=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(aa,Q){this.startX=Q.getGraphX();this.startY=Q.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(aa,Q){},mouseUp:function(aa,Q){mxEvent.isTouchEvent(Q.getEvent())&&Math.abs(this.scrollLeft-+a.container.scrollLeft)<X&&Math.abs(this.scrollTop-a.container.scrollTop)<X&&Math.abs(this.startX-Q.getGraphX())<X&&Math.abs(this.startY-Q.getGraphY())<X&&(0<parseFloat(f.chromelessToolbar.style.opacity||0)?G():I(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var T=a.view.validate,O=new mxPoint,ca=!1,H=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=f.currentPage&&H!=f.currentPage){H=f.currentPage;+ca=!0;var aa=a.getBoundingBoxFromGeometry(a.model.getCells(),!0,null,!0);null==aa&&(aa=new mxRectangle(a.view.translate.x*a.view.scale,a.view.translate.y*a.view.scale));aa=a.getPageLayout(aa,O,1);var Q=a.getDefaultTranslate(aa);this.x0=aa.x;this.y0=aa.y;if(Q.x!=this.translate.x||Q.y!=this.translate.y)this.invalidate(),this.translate.x=Q.x,this.translate.y=Q.y}Q=a.getPagePadding();var ba=a.getPageSize();aa=Q.x-(this.x0||0)*ba.width;Q=Q.y-(this.y0||0)*ba.height;if(this.translate.x!=aa||this.translate.y!=+Q)this.invalidate(),this.translate.x=aa,this.translate.y=Q}T.apply(this,arguments)};if(!a.isViewer()){var S=a.sizeDidChange;a.sizeDidChange=function(){var aa=ca;ca=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var Q=this.getPageLayout(),ba=this.getDefaultTranslate(Q),ma=this.view.translate.x,Na=this.view.translate.y;if(ba.x!=ma||ba.y!=Na){this.view.x0=Q.x;this.view.y0=Q.y;this.autoTranslate=!0;this.view.setTranslate(ba.x,ba.y);+this.autoTranslate=!1;aa||(this.container.scrollLeft+=Math.round((ba.x-ma)*this.view.scale),this.container.scrollTop+=Math.round((ba.y-Na)*this.view.scale));return}}S.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var fa=a.view.getBackgroundPane(),la=a.view.getDrawPane();a.cumulativeZoomFactor=1;var P=null,W=null,Y=null,ha=null,ia=null,ta=function(aa){null!=P&&window.clearTimeout(P);0<=aa&&window.setTimeout(function(){if(!a.isMouseDown||+ha)P=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&(null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform",null)),la.style.transformOrigin="",fa.style.transformOrigin="",mxClient.IS_SF?(la.style.transform="scale(1)",fa.style.transform="scale(1)",window.setTimeout(function(){la.style.transform="";+fa.style.transform=""},0)):(la.style.transform="",fa.style.transform=""),a.view.getDecoratorPane().style.opacity="",a.view.getOverlayPane().style.opacity="");var Q=new mxPoint(a.container.scrollLeft,a.container.scrollTop),ba=mxUtils.getOffset(a.container),ma=a.view.scale,Na=0,oa=0;null!=W&&(Na=a.container.offsetWidth/2-W.x+ba.x,oa=a.container.offsetHeight/2-W.y+ba.y);a.zoom(a.cumulativeZoomFactor,null,a.isFastZoomEnabled()?20:null);a.view.scale!=ma&&(null!=Y&&(Na+=Q.x-Y.x,oa+=Q.y-Y.y),null!=b&&f.chromelessResize(!1,+null,Na*(a.cumulativeZoomFactor-1),oa*(a.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(a.container)||0==Na&&0==oa||(a.container.scrollLeft-=Na*(a.cumulativeZoomFactor-1),a.container.scrollTop-=oa*(a.cumulativeZoomFactor-1)));null!=ia&&la.setAttribute("filter",ia);a.cumulativeZoomFactor=1;ia=ha=W=Y=P=null}),null!=aa?aa:a.isFastZoomEnabled()?f.wheelZoomDelay:f.lazyZoomDelay)},0)};a.lazyZoom=function(aa,Q,ba,ma){ma=null!=ma?ma:this.zoomFactor;(Q=Q||!a.scrollbars)&&(W=new mxPoint(a.container.offsetLeft+a.container.clientWidth/2,a.container.offsetTop+a.container.clientHeight/2));aa?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=ma,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=ma,this.cumulativeZoomFactor=Math.round(this.view.scale*-this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;if(a.isFastZoomEnabled()){null==ia&&""!=la.getAttribute("filter")&&(ia=la.getAttribute("filter"),la.removeAttribute("filter"));Y=new mxPoint(a.container.scrollLeft,a.container.scrollTop);aa=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);ma=P||null==V?a.container.scrollLeft+a.container.clientWidth/-2:V.x+a.container.scrollLeft-a.container.offsetLeft;var La=P||null==V?a.container.scrollTop+a.container.clientHeight/2:V.y+a.container.scrollTop-a.container.offsetTop;la.style.transformOrigin=ma+"px "+La+"px";la.style.transform="scale("+aa+")";fa.style.transformOrigin=ma+"px "+La+"px";fa.style.transform="scale("+aa+")";null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node?(ma=a.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(ma.style,"transform-origin",(P||null==V?a.container.clientWidth/-2+a.container.scrollLeft-ma.offsetLeft+"px":V.x+a.container.scrollLeft-ma.offsetLeft-a.container.offsetLeft+"px")+" "+(P||null==V?a.container.clientHeight/2+a.container.scrollTop-ma.offsetTop+"px":V.y+a.container.scrollTop-ma.offsetTop-a.container.offsetTop+"px")),mxUtils.setPrefixedStyle(ma.style,"transform","scale("+aa+")")):a.view.validateBackgroundStyles(aa,ma,La);a.view.getDecoratorPane().style.opacity="0";a.view.getOverlayPane().style.opacity="0";null!=f.hoverIcons&&f.hoverIcons.reset();a.fireEvent(new mxEventObject("zoomPreview",-"factor",aa))}ta(a.isFastZoomEnabled()?ba:0)};mxEvent.addGestureListeners(a.container,function(aa){null!=O&&window.clearTimeout(O)},null,function(aa){1!=a.cumulativeZoomFactor&&ta(0)});mxEvent.addListener(a.container,"scroll",function(aa){null==O||a.isMouseDown||1==a.cumulativeZoomFactor||ta(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(aa,P,ba,ma,La){a.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!a.scrollbars&&!ba&&a.isScrollWheelEvent(aa))ba=-a.view.getTranslate(),ma=40/a.view.scale,mxEvent.isShiftDown(aa)?a.view.setTranslate(ba.x+(P?-ma:ma),ba.y):a.view.setTranslate(ba.x,ba.y+(P?ma:-ma));else if(ba||a.isZoomWheelEvent(aa))for(var na=mxEvent.getSource(aa);null!=na;){if(na==a.container)return a.tooltipHandler.hideTooltip(),V=null!=ma&&null!=La?new mxPoint(ma,La):new mxPoint(mxEvent.getClientX(aa),mxEvent.getClientY(aa)),ha=ba,ba=a.zoomFactor,ma=null,aa.ctrlKey&&null!=aa.deltaY&&40>Math.abs(aa.deltaY)&&Math.round(aa.deltaY)!=aa.deltaY?ba=-1+Math.abs(aa.deltaY)/20*(ba-1):null!=aa.movementY&&"pointermove"==aa.type&&(ba=1+Math.max(1,Math.abs(aa.movementY))/20*(ba-1),ma=-1),a.lazyZoom(P,null,ma,ba),mxEvent.consume(aa),!1;na=na.parentNode}}),a.container);a.panningHandler.zoomGraph=function(aa){a.cumulativeZoomFactor=aa.scale;a.lazyZoom(0<aa.scale,!0);mxEvent.consume(aa)}};EditorUi.prototype.addChromelessToolbarItems=function(a){a(mxUtils.bind(this,function(b){this.actions.get("print").funct();mxEvent.consume(b)}),Editor.printImage,mxResources.get("print"))};+this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;if(a.isFastZoomEnabled()){null==ia&&""!=la.getAttribute("filter")&&(ia=la.getAttribute("filter"),la.removeAttribute("filter"));Y=new mxPoint(a.container.scrollLeft,a.container.scrollTop);aa=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);ma=Q||null==W?a.container.scrollLeft+a.container.clientWidth/+2:W.x+a.container.scrollLeft-a.container.offsetLeft;var Na=Q||null==W?a.container.scrollTop+a.container.clientHeight/2:W.y+a.container.scrollTop-a.container.offsetTop;la.style.transformOrigin=ma+"px "+Na+"px";la.style.transform="scale("+aa+")";fa.style.transformOrigin=ma+"px "+Na+"px";fa.style.transform="scale("+aa+")";null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node?(ma=a.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(ma.style,"transform-origin",(Q||null==W?a.container.clientWidth/+2+a.container.scrollLeft-ma.offsetLeft+"px":W.x+a.container.scrollLeft-ma.offsetLeft-a.container.offsetLeft+"px")+" "+(Q||null==W?a.container.clientHeight/2+a.container.scrollTop-ma.offsetTop+"px":W.y+a.container.scrollTop-ma.offsetTop-a.container.offsetTop+"px")),mxUtils.setPrefixedStyle(ma.style,"transform","scale("+aa+")")):a.view.validateBackgroundStyles(aa,ma,Na);a.view.getDecoratorPane().style.opacity="0";a.view.getOverlayPane().style.opacity="0";null!=f.hoverIcons&&f.hoverIcons.reset();a.fireEvent(new mxEventObject("zoomPreview",+"factor",aa))}ta(a.isFastZoomEnabled()?ba:0)};mxEvent.addGestureListeners(a.container,function(aa){null!=P&&window.clearTimeout(P)},null,function(aa){1!=a.cumulativeZoomFactor&&ta(0)});mxEvent.addListener(a.container,"scroll",function(aa){null==P||a.isMouseDown||1==a.cumulativeZoomFactor||ta(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(aa,Q,ba,ma,Na){a.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!a.scrollbars&&!ba&&a.isScrollWheelEvent(aa))ba=+a.view.getTranslate(),ma=40/a.view.scale,mxEvent.isShiftDown(aa)?a.view.setTranslate(ba.x+(Q?-ma:ma),ba.y):a.view.setTranslate(ba.x,ba.y+(Q?ma:-ma));else if(ba||a.isZoomWheelEvent(aa))for(var oa=mxEvent.getSource(aa);null!=oa;){if(oa==a.container)return a.tooltipHandler.hideTooltip(),W=null!=ma&&null!=Na?new mxPoint(ma,Na):new mxPoint(mxEvent.getClientX(aa),mxEvent.getClientY(aa)),ha=ba,ba=a.zoomFactor,ma=null,aa.ctrlKey&&null!=aa.deltaY&&40>Math.abs(aa.deltaY)&&Math.round(aa.deltaY)!=aa.deltaY?ba=+1+Math.abs(aa.deltaY)/20*(ba-1):null!=aa.movementY&&"pointermove"==aa.type&&(ba=1+Math.max(1,Math.abs(aa.movementY))/20*(ba-1),ma=-1),a.lazyZoom(Q,null,ma,ba),mxEvent.consume(aa),!1;oa=oa.parentNode}}),a.container);a.panningHandler.zoomGraph=function(aa){a.cumulativeZoomFactor=aa.scale;a.lazyZoom(0<aa.scale,!0);mxEvent.consume(aa)}};EditorUi.prototype.addChromelessToolbarItems=function(a){a(mxUtils.bind(this,function(b){this.actions.get("print").funct();mxEvent.consume(b)}),Editor.printImage,mxResources.get("print"))};EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};EditorUi.prototype.createTemporaryGraph=function(a){return Graph.createOffscreenGraph(a)};EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0<a.length&&(a="#"+a);this.editor.graph.addClickHandler(a)};EditorUi.prototype.toggleFormatPanel=function(a){a=null!=a?a:0==this.formatWidth;if(null!=this.format){var b=Editor.transitionDelay;mxUtils.setPrefixedStyle(this.formatContainer.style,"transition","width "+b+"s ease-in-out");window.setTimeout(mxUtils.bind(this,function(){this.formatWidth=a?240:0;this.hsplitPosition=Math.min(this.container.clientWidth-this.hsplit.clientWidth-this.formatWidth,this.hsplitPosition);this.refresh();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.formatContainer.style,"transition",null);this.refresh(!0);this.fireEvent(new mxEventObject("formatWidthChanged"))}),1E3*b)},0))}};EditorUi.prototype.isFormatPanelVisible=function(){return 0<this.formatWidth};EditorUi.prototype.lightboxFit=function(a){if(this.isDiagramEmpty())this.editor.graph.view.setScale(1);else{var b=urlParams.border,f=60;null!=b&&(f=parseInt(b));this.editor.graph.maxFitScale=this.lightboxMaxFitScale;this.editor.graph.fit(f,null,null,null,null,null,a);this.editor.graph.maxFitScale=null}};@@ -2278,14 +2278,14 @@ EditorUi.prototype.showDataDialog=function(a){null!=a&&"undefined"!==typeof windEditorUi.prototype.showBackgroundImageDialog=function(a,b){a=null!=a?a:mxUtils.bind(this,function(e){e=new ChangePageSetup(this,null,e);e.ignoreColor=!0;this.editor.graph.model.execute(e)});var f=mxUtils.prompt(mxResources.get("backgroundImage"),null!=b?b.src:"");null!=f&&0<f.length?(b=new Image,b.onload=function(){a(new mxImage(f,b.width,b.height),!1)},b.onerror=function(){a(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},b.src=f):a(null)};EditorUi.prototype.setBackgroundImage=function(a){this.editor.graph.setBackgroundImage(a);this.editor.graph.view.validateBackgroundImage();this.fireEvent(new mxEventObject("backgroundImageChanged"))};EditorUi.prototype.confirm=function(a,b,f){mxUtils.confirm(a)?null!=b&&b():null!=f&&f()};EditorUi.prototype.createOutline=function(a){var b=new mxOutline(this.editor.graph);mxEvent.addListener(window,"resize",function(){b.update(!1)});return b};EditorUi.prototype.altShiftActions={65:"connectionArrows",82:"clearWaypoints",76:"editLink",79:"connectionPoints",81:"editConnectionPoints",84:"editTooltip",86:"pasteSize",70:"copySize",66:"copyData",69:"pasteData"};EditorUi.prototype.ctrlAltShiftActions={70:"bringForward",66:"sendBackward",88:"copyAsSvg"};EditorUi.prototype.ctrlAltActions={88:"copyAsImage"};-EditorUi.prototype.createKeyHandler=function(a){function b(w,y,B){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(B){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;B=null;1==e.getSelectionCount()&&e.model.isVertex(E)&&null!=e.layoutManager&&!e.isCellLocked(E)&&(B=e.layoutManager.getLayout(G));if(null!=B&&B.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),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)||+EditorUi.prototype.createKeyHandler=function(a){function b(w,y,C){if(!e.isSelectionEmpty()&&e.isEnabled()){y=null!=y?y:1;var E=e.getCompositeParents(e.getSelectionCells()),D=0<E.length?E[0]:null;if(null!=D)if(C){e.getModel().beginUpdate();try{for(D=0;D<E.length;D++)if(e.getModel().isVertex(E[D])&&e.isCellResizable(E[D])){var G=e.getCellGeometry(E[D]);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(E[D],+G))}}finally{e.getModel().endUpdate()}}else{G=e.model.getParent(D);var I=e.getView().scale;C=null;1==e.getSelectionCount()&&e.model.isVertex(D)&&null!=e.layoutManager&&!e.isCellLocked(D)&&(C=e.layoutManager.getLayout(G));if(null!=C&&C.constructor==mxStackLayout)y=G.getIndex(D),37==w||38==w?e.model.add(G,D,Math.max(0,y-1)):(39==w||40==w)&&e.model.add(G,D,Math.min(e.model.getChildCount(G),y+1));else{var M=e.graphHandler;null!=M&&(null==M.first&&M.start(D,0,0,e.getMovableCells(E)),null!=M.first&&(D=+E=0,37==w?E=-y:38==w?D=-y:39==w?E=y:40==w&&(D=y),M.currentDx+=E*I,M.currentDy+=D*I,M.checkPreview(),M.updatePreview()),null!=h&&window.clearTimeout(h),h=window.setTimeout(function(){if(null!=M.first){var N=M.roundLength(M.currentDx/I),L=M.roundLength(M.currentDy/I);M.moveCells(M.cells,N,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)||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 B=document.getElementById("geOmniSearch");null!=B&&30<B.clientWidth&&B.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 B=-e.connectVertex(e.getSelectionCell(),m[w.keyCode],e.defaultEdgeLength,w,!0);null!=B&&0<B.length&&(1==B.length&&e.model.isEdge(B[0])?e.setSelectionCell(e.model.getTerminal(B[0],!1)):e.setSelectionCell(B[B.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,B,D){var E=this.actions.get(B);null!=E&&(B=function(){E.isEnabled()&&E.funct.apply(this,arguments)},y?D?g.bindControlShiftKey(w,B):g.bindControlKey(w,B):D?g.bindShiftKey(w,B):g.bindKey(w,B))});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()});+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,E){var D=this.actions.get(C);null!=D&&(C=function(){D.isEnabled()&&D.funct.apply(this,arguments)},y?E?g.bindControlShiftKey(w,C):g.bindControlKey(w,C):E?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,@@ -2340,23 +2340,23 @@ Sidebar.prototype.getLibsForStyle=function(a){return null!=this.styleToLibs?thisSidebar.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 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 B=w[y];if(0==p==(null==a.get(B))&&null==u.get(B)&&(u.put(B,B),!this.isEntryIgnored(B,-d)&&(m.push(B),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=+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){D=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="";O()}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 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}),B="about deleteAll showBoundingBox createSidebarEntry downloadDesktop toggleGoogleFonts".split(" "),D=mxUtils.bind(this,function(H){var S=null,fa;for(fa in e.actions.actions){var la=0>B.indexOf(fa)&&"test"!=fa.substring(0,4)?e.actions.get(fa):null;if(null!=la&&la.isEnabled()&&la.visible){if(fa.toLowerCase()==H)return la;for(var O=H.toLowerCase().split(" "),V=0,Y=0;Y<O.length;Y++)0==O[Y].length?V++:(0<=fa.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 fa(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;fa(V);for(O=0;O<w.length;O++)w[O]!=V&&fa(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,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,fa,la,O){if(this.currentSearch==H){S=null!=S?S:[];Q=!1;W++;this.insertSearchHint(h,M,T,W,S,fa,la,O);0==S.length&&1==W&&(M="");null!=G.parentNode&&G.parentNode.removeChild(G);for(fa=0;fa<S.length;fa++)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[fa]);la?(J.removeAttribute("disabled"),J.innerHTML="",mxUtils.write(J,mxResources.get("moreResults"))):-(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,+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(" "),E=mxUtils.bind(this,function(H){var S=null,fa;for(fa in e.actions.actions){var la=0>C.indexOf(fa)&&"test"!=fa.substring(0,4)?e.actions.get(fa):null;if(null!=la&&la.isEnabled()&&la.visible){if(fa.toLowerCase()==H)return la;for(var P=H.toLowerCase().split(" "),W=0,Y=0;Y<P.length;Y++)0==P[Y].length?W++:(0<=fa.toLowerCase().indexOf(P[Y])||+0<=la.getTitle().toLowerCase().indexOf(P[Y]))&&W++;W==P.length&&(0>w.indexOf(S)||null!=S&&!S.isEnabled())&&(S=la)}}return S}),D=null;e.addMenuHandler(p,mxUtils.bind(this,function(H,S){function fa(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!=D||!ia.isEnabled()||0!=p.value.length&&W!=ia||b(ta,function(){y(ia,arguments);g.container.focus()})}}var la=+p.value.toLowerCase();D=null;var P=H.addItem(mxResources.get("searchShapes"),null,mxUtils.bind(this,function(){ca()}),S);b(P,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 W=0<p.value.length?E(la):null;fa(W);for(P=0;P<w.length;P++)w[P]!=W&&fa(w[P]);if(0<la.length&&null!=e.pages)for(H.addSeparator(),P=0;P<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==D&&b(aa,ta);return!0}return!1}(e.pages[P]);P++);if(0<la.length&&null!=e.sidebar&&null!=e.sidebar.entries)for(H.addSeparator(),P=0;P<e.sidebar.entries.length;P++)for(var Y=e.sidebar.entries[P].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 Q=+e.sidebar.showPalettes(ta.prefix||"",ta.libs||[ta.id],!0);p.value="";null!=Q&&1<Q.length&&(null==Q[1].firstChild||null!=Q[1].firstChild.firstChild&&"none"!=Q[1].firstChild.style.display||Q[0].click(),Q[0].scrollIntoView({behavior:"smooth"}))},ia=H.addItem(ia.title+" ("+mxResources.get("openLibrary")+")",null,aa,S),null==D&&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 I=mxUtils.button(mxResources.get("moreResults"),function(){ca()});I.setAttribute("title",mxResources.get("moreResults"));I.className="geBtn gePrimaryBtn";I.style.borderRadius="16px";I.style.padding="8px 12px";G.appendChild(I);h.appendChild(G);var M="",N=!1,L=!1,V=0,X={},T=12,O=mxUtils.bind(this,function(){N=!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&&(O(),M=p.value,X={},L=!1,V=0),!N&&!L)){I.setAttribute("disabled","true");G.style.display="flex";I.style.cursor="wait";I.innerHTML="";mxUtils.write(I,mxResources.get("loading")+"...");N=!0;var H={};this.currentSearch=H;try{this.searchEntries(M,T,V,mxUtils.bind(this,+function(S,fa,la,P){if(this.currentSearch==H){S=null!=S?S:[];N=!1;V++;this.insertSearchHint(h,M,T,V,S,fa,la,P);0==S.length&&1==V&&(M="");null!=G.parentNode&&G.parentNode.removeChild(G);for(fa=0;fa<S.length;fa++)mxUtils.bind(this,function(W){try{var Y=W();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(W,!1)&&(Y.style.opacity=this.closedLibraryOpacity);null==X[Y.innerHTML]?(X[Y.innerHTML]=null!=W.parentLibraries?W.parentLibraries.slice():[],h.appendChild(Y)):null!=+W.parentLibraries&&(X[Y.innerHTML]=X[Y.innerHTML].concat(W.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[fa]);la?(I.removeAttribute("disabled"),I.innerHTML="",mxUtils.write(I,mxResources.get("moreResults"))):+(I.innerHTML=mxResources.get("reset"),G.style.display="none",L=!0);I.style.cursor="";h.appendChild(G)}}),mxUtils.bind(this,function(){I.style.cursor=""}),this.searchClosedLibraries)}catch(S){e.handleError(S)}}}else O(),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!=D?(D(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):N||(G.style.display=L?"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;"+@@ -2468,17 +2468,17 @@ a.width,(f-2*this.thumbBorder)/a.height))/100,this.graph.view.scaleAndTranslate(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,u,w,y,B){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,B),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,B),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.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 E=document.createElement("a"),D=2*this.thumbBorder;E.style.width=k+D+"px";E.style.height=u+D+"px";mxEvent.addListener(E,"click",function(I){mxEvent.consume(I)});var G=new mxRectangle(0,0,g,d);null!=a&&0<a.length?(D=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(D),this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),+null!=w?(E.className="geButton",E.style.backgroundImage="url("+w+")",E.style.backgroundRepeat="no-repeat",E.style.backgroundPosition="center",E.style.backgroundSize="24px 24px"):(E.className="geItem",this.createThumb(D,k,u,E,b,f,e,g,d)),1<a.length||a[0].vertex?(e=this.createDragSource(E,this.createDropHandler(a,!0,h,G,y,C),this.createDragPreview(g,d),a,G,y),this.addClickHandler(E,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(E,this.createDropHandler(a,!1,h,G,y,C),this.createDragPreview(g,d),a,G,y),this.addClickHandler(E,e,a,p)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(E,null,mxUtils.bind(this,function(I){mxEvent.isMouseEvent(I)&&this.showTooltip(E,a,G.width,G.height,b,f)}))):(E.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",E.setAttribute("title",b));return E};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 B=h.view.scale,D=h.view.translate,E=(k+D.x)*B,G=(u+D.y)*B,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){B=h.view.scale;D=h.view.translate;E=(k+D.x)*B;G=(u+D.y)*B;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.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,E=h.view.translate,D=(k+E.x)*C,G=(u+E.y)*C,I=h.cloneCells(a);h.splitEdge(p,I,null,k-e.width/2,u-e.height/2,D,G);y=I}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 N=h.layoutManager.getLayout(p);if(null!=N){C=h.view.scale;E=h.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var L=0;L<y.length;L++)N.moveCell(y[L],D,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(V){this.editorUi.handleError(V)}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 u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),y=m.getCellGeometry(b[e]),B=m.model.getParent(a),D=!0;if(null!=m.layoutManager){var E=m.layoutManager.getLayout(B);null!=E&&E.constructor==mxStackLayout&&(D=!1)}k=m.model.isEdge(a)?null:m.view.getState(B);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!=B)k=m.view.getState(Q),null!=k&&(J=k.origin,B=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?B: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(B)){var N=m.view.getState(B);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,+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),E=!0;if(null!=m.layoutManager){var D=m.layoutManager.getLayout(C);null!=D&&D.constructor==mxStackLayout&&(E=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=D=0;if(null!=k){var I=k.origin;D=I.x;+G=I.y}var M=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&E),N=m.getCellAt((p.x+D+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!=N&&N!=C)k=m.view.getState(N),null!=k&&(I=k.origin,C=N,M=!0,m.model.isEdge(a)||(p.x-=I.x-D,p.y-=I.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))p.x+=D,p.y+=G;D=y.x;G=y.y;m.model.isEdge(b[e])&&(G=D=0);k=b=m.importCells(b,p.x-(M?D: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]),V=null!=L?L.getTerminalPoint(!0):null;L.points=null;if(null!=V)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==V.x&&T.y==V.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 O=m.view.getState(C);I=O.cell!=m.view.currentRoot?O.origin:new mxPoint(0,0);m.cellsMoved(b,I.x,I.y,null,null,!0)}}else null!=d&&(y=m.getCellGeometry(b[d]),D=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,D,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+@@ -2486,36 +2486,36 @@ e.width,e.y),!1)):f==mxConstants.DIRECTION_SOUTH?(e.height=d,e.y=p.y+p.height,e.e.width/2+d:f==mxConstants.DIRECTION_SOUTH?e.y=e.y+p.height/2+e.height/2+d:f==mxConstants.DIRECTION_WEST&&(e.x=e.x-p.width/2-e.width/2-d),g.model.isEdge(b)&&null!=e.getTerminalPoint(!0)&&null!=b.getTerminal(!1)&&(p=g.getCellGeometry(b.getTerminal(!1)),null!=p&&(f==mxConstants.DIRECTION_NORTH?(e.x-=p.getCenterX(),e.y-=p.getCenterY()+p.height/2):f==mxConstants.DIRECTION_EAST?(e.x-=p.getCenterX()-p.width/2,e.y-=p.getCenterY()):f==mxConstants.DIRECTION_SOUTH?(e.x-=p.getCenterX(),e.y-=p.getCenterY()-p.height/2):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,za){var Aa=mxUtils.createImage(na.src);Aa.style.width=na.width+"px";Aa.style.height=na.height+"px";null!=za&&Aa.setAttribute("title",za);mxUtils.setOpacity(Aa,na==this.refreshTarget?30:20);Aa.style.position="absolute";Aa.style.cursor="crosshair";return Aa}function m(na,za,Aa,Ma){null!=Ma.parentNode&&(mxUtils.contains(Aa,na,za)?(mxUtils.setOpacity(Ma,100),V=Ma):mxUtils.setOpacity(Ma,Ma==H?30:20));return Aa}var p=this.editorUi,k=-p.editor.graph,u=null,w=null,y=this;d=0;for(var B=this.livePreview,D=0;D<e.length&&B;D++)d+=k.model.getDescendants(e[D]).length,B=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,za,Aa,Ma,Qa){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=e&&null!=-K&&V==H){var Ja=na.isCellSelected(K.cell)?na.getSelectionCells():[K.cell];na.updateShapes(na.model.isEdge(K.cell)?e[0]:e[w],Ja,!0);na.setSelectionCells(Ja)}else null!=e&&null!=V&&null!=M&&V!=H?(Ja=na.model.isEdge(M.cell)||null==u?w:u,na.setSelectionCells(this.dropAndConnect(M.cell,e,O,Ja,za,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);B&&(G.createDragElement=mxUtils.bind(this,function(){return G.createPreviewElement(this.graph)}),-G.createPreviewElement=mxUtils.bind(this,function(na){var za=document.createElement("a");za.className="geItem";za.style.overflow="visible";na=na.view.scale;za.style.width=na*Math.max(1,g.width)+"px";za.style.height=na*Math.max(1,g.height)+"px";mxUtils.setOpacity(za,50);var Aa=k.cloneCells(e);this.graph.pasteCellStyles(k.includeDescendants(Aa),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);y.createThumb(Aa,na*Math.max(1,g.width),na*Math.max(1,g.height),za,null,null,null,null,null,k.shapeBackgroundColor,-0,na);return za}));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,fa=h(this.roundDrop),-la=h(this.roundDrop),O=mxConstants.DIRECTION_NORTH,V=null,Y=G.createPreviewElement;G.createPreviewElement=function(na){var za=Y.apply(this,arguments);this.previewElementWidth=za.style.width;this.previewElementHeight=za.style.height;za.style.pointerEvents="none";return za};var ha=G.dragEnter;G.dragEnter=function(na,za){null!=p.hoverIcons&&p.hoverIcons.setDisplay("none");ha.apply(this,arguments)};var ia=G.dragExit;G.dragExit=function(na,za){null!=p.hoverIcons&&p.hoverIcons.setDisplay("");ia.apply(this,-arguments)};G.dragOver=function(na,za){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=V&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var Aa=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 Ma=na.model.isEdge(M.cell)||null!=w?w:u,Qa=y.getDropAndConnectGeometry(M.cell,e[Ma],O,e),Ja=na.model.isEdge(M.cell)?-null:na.getCellGeometry(M.cell),Ia=na.getCellGeometry(e[Ma]),ra=na.model.getParent(M.cell),Da=Aa.translate.x*Aa.scale,Va=Aa.translate.y*Aa.scale;null!=Ja&&!Ja.relative&&na.model.isVertex(ra)&&ra!=Aa.currentRoot&&(Va=Aa.getState(ra),Da=Va.x,Va=Va.y);Ja=Ia.x;Ia=Ia.y;na.model.isEdge(e[Ma])&&(Ia=Ja=0);this.previewElement.style.left=(Qa.x-Ja)*Aa.scale+Da+"px";this.previewElement.style.top=(Qa.y-Ia)*Aa.scale+Va+"px";1==e.length&&(this.previewElement.style.width=Qa.width*Aa.scale+"px",this.previewElement.style.height=-Qa.height*Aa.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*Aa.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)--g.height*Aa.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,za,Aa,Ma){var Qa=mxEvent.isAltDown(Ma)||-null==e?null:na.getCellAt(za,Aa,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 Ja=this.graph.getModel().getParent(Qa);this.graph.getModel().isVertex(Ja)&&this.graph.isCellConnectable(Ja)&&(Qa=Ja)}na.isCellLocked(Qa)&&(Qa=null);var Ia=na.view.getState(Qa);Ja=V=null;P!=Ia?(ta=(new Date).getTime(),aa=0,P=Ia,null!=this.updateThread&&window.clearTimeout(this.updateThread),-null!=Ia&&(this.updateThread=window.setTimeout(function(){null==V&&(P=Ia,G.getDropTarget(na,za,Aa,Ma))},this.dropTargetDelay+10))):aa=(new Date).getTime()-ta;if(E&&2500>aa&&null!=Ia&&!mxEvent.isShiftDown(Ma)&&(mxUtils.getValue(Ia.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)&&(mxUtils.getValue(Ia.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ia.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ia.style,-mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)||1500<aa||na.model.isEdge(Ia.cell))&&aa>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ia)&&(na.model.isVertex(Ia.cell)&&null!=w||na.model.isEdge(Ia.cell)&&na.model.isEdge(e[0]))){if(na.isCellEditable(Ia.cell)){K=Ia;var ra=na.model.isEdge(Ia.cell)?na.view.getPoint(Ia):new mxPoint(Ia.getCenterX(),Ia.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(za,Aa,ra,H)}}else null==K||!mxUtils.contains(K,za,Aa)||1500<aa&&!mxEvent.isShiftDown(Ma)?(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(za,Aa,ra,H));if(W&&null!=M&&!mxEvent.isAltDown(Ma)&&null==V){Ja=mxRectangle.fromRectangle(M);if(na.model.isEdge(M.cell)){var Da=M.absolutePoints;null!=fa.parentNode&&(ra=Da[0],Ja.add(m(za,Aa,new mxRectangle(ra.x-this.roundDrop.width/2,ra.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),fa)));null!=la.parentNode&&(Da=Da[Da.length-1],Ja.add(m(za,Aa,new mxRectangle(Da.x-this.roundDrop.width/2,Da.y-this.roundDrop.height/2,this.roundDrop.width,+Sidebar.prototype.createDragSource=function(a,b,f,e,g,d){function h(oa,za){var Aa=mxUtils.createImage(oa.src);Aa.style.width=oa.width+"px";Aa.style.height=oa.height+"px";null!=za&&Aa.setAttribute("title",za);mxUtils.setOpacity(Aa,oa==this.refreshTarget?30:20);Aa.style.position="absolute";Aa.style.cursor="crosshair";return Aa}function m(oa,za,Aa,La){null!=La.parentNode&&(mxUtils.contains(Aa,oa,za)?(mxUtils.setOpacity(La,100),W=La):mxUtils.setOpacity(La,La==H?30:20));return Aa}var p=this.editorUi,k=+p.editor.graph,u=null,w=null,y=this;d=0;for(var C=this.livePreview,E=0;E<e.length&&C;E++)d+=k.model.getDescendants(e[E]).length,C=d<k.graphHandler.maxLivePreview;for(E=0;E<e.length&&(null==w&&k.model.isVertex(e[E])?w=E:null==u&&k.model.isEdge(e[E])&&null==k.model.getTerminal(e[E],!0)&&(u=E),null==w||null==u);E++);var D=this.isDropStyleEnabled(e,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(oa,za,Aa,La,Qa){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=e&&null!=+L&&W==H){var Ja=oa.isCellSelected(L.cell)?oa.getSelectionCells():[L.cell];oa.updateShapes(oa.model.isEdge(L.cell)?e[0]:e[w],Ja,!0);oa.setSelectionCells(Ja)}else null!=e&&null!=W&&null!=M&&W!=H?(Ja=oa.model.isEdge(M.cell)||null==u?w:u,oa.setSelectionCells(this.dropAndConnect(M.cell,e,P,Ja,za,w,u))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(oa.view.getState(oa.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(oa){var za=document.createElement("a");za.className="geItem";za.style.overflow="visible";oa=oa.view.scale;za.style.width=oa*Math.max(1,g.width)+"px";za.style.height=oa*Math.max(1,g.height)+"px";mxUtils.setOpacity(za,50);var Aa=k.cloneCells(e);this.graph.pasteCellStyles(k.includeDescendants(Aa),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);y.createThumb(Aa,oa*Math.max(1,g.width),oa*Math.max(1,g.height),za,null,null,null,null,null,k.shapeBackgroundColor,+0,oa);return za}));var I=G.mouseDown;G.mouseDown=function(oa){mxEvent.isPopupTrigger(oa)||mxEvent.isMultiTouchEvent(oa)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),I.apply(this,arguments))};var M=null,N=null,L=null,V=!1,X=h(this.triangleUp,mxResources.get("connect")),T=h(this.triangleRight,mxResources.get("connect")),O=h(this.triangleDown,mxResources.get("connect")),ca=h(this.triangleLeft,mxResources.get("connect")),H=h(this.refreshTarget,mxResources.get("replace")),S=null,fa=h(this.roundDrop),+la=h(this.roundDrop),P=mxConstants.DIRECTION_NORTH,W=null,Y=G.createPreviewElement;G.createPreviewElement=function(oa){var za=Y.apply(this,arguments);this.previewElementWidth=za.style.width;this.previewElementHeight=za.style.height;za.style.pointerEvents="none";return za};var ha=G.dragEnter;G.dragEnter=function(oa,za){null!=p.hoverIcons&&p.hoverIcons.setDisplay("none");ha.apply(this,arguments)};var ia=G.dragExit;G.dragExit=function(oa,za){null!=p.hoverIcons&&p.hoverIcons.setDisplay("");ia.apply(this,+arguments)};G.dragOver=function(oa,za){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=W&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var Aa=oa.view;if(null!=L&&W==H)this.previewElement.style.display="none";else if(null!=M&&null!=W){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var La=oa.model.isEdge(M.cell)||null!=w?w:u,Qa=y.getDropAndConnectGeometry(M.cell,e[La],P,e),Ja=oa.model.isEdge(M.cell)?+null:oa.getCellGeometry(M.cell),Ia=oa.getCellGeometry(e[La]),ra=oa.model.getParent(M.cell),Da=Aa.translate.x*Aa.scale,Va=Aa.translate.y*Aa.scale;null!=Ja&&!Ja.relative&&oa.model.isVertex(ra)&&ra!=Aa.currentRoot&&(Va=Aa.getState(ra),Da=Va.x,Va=Va.y);Ja=Ia.x;Ia=Ia.y;oa.model.isEdge(e[La])&&(Ia=Ja=0);this.previewElement.style.left=(Qa.x-Ja)*Aa.scale+Da+"px";this.previewElement.style.top=(Qa.y-Ia)*Aa.scale+Va+"px";1==e.length&&(this.previewElement.style.width=Qa.width*Aa.scale+"px",this.previewElement.style.height=+Qa.height*Aa.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&&oa.model.isEdge(G.currentHighlight.state.cell)?(this.previewElement.style.left=Math.round(parseInt(this.previewElement.style.left)-g.width*Aa.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)-+g.height*Aa.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,Q=null,ba=this.editorUi.editor.graph.getCellStyle(e[0]);G.getDropTarget=mxUtils.bind(this,function(oa,za,Aa,La){var Qa=mxEvent.isAltDown(La)||+null==e?null:oa.getCellAt(za,Aa,null,null,null,function(Va,Wa,$a){return oa.isContainer(Va.cell)&&"0"!=mxUtils.getValue(Va.style,"dropTarget","1")});if(null!=Qa&&!this.graph.isCellConnectable(Qa)&&!this.graph.model.isEdge(Qa)){var Ja=this.graph.getModel().getParent(Qa);this.graph.getModel().isVertex(Ja)&&this.graph.isCellConnectable(Ja)&&(Qa=Ja)}oa.isCellLocked(Qa)&&(Qa=null);var Ia=oa.view.getState(Qa);Ja=W=null;Q!=Ia?(ta=(new Date).getTime(),aa=0,Q=Ia,null!=this.updateThread&&window.clearTimeout(this.updateThread),+null!=Ia&&(this.updateThread=window.setTimeout(function(){null==W&&(Q=Ia,G.getDropTarget(oa,za,Aa,La))},this.dropTargetDelay+10))):aa=(new Date).getTime()-ta;if(D&&2500>aa&&null!=Ia&&!mxEvent.isShiftDown(La)&&(mxUtils.getValue(Ia.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)&&(mxUtils.getValue(Ia.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ia.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ia.style,+mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)||1500<aa||oa.model.isEdge(Ia.cell))&&aa>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ia)&&(oa.model.isVertex(Ia.cell)&&null!=w||oa.model.isEdge(Ia.cell)&&oa.model.isEdge(e[0]))){if(oa.isCellEditable(Ia.cell)){L=Ia;var ra=oa.model.isEdge(Ia.cell)?oa.view.getPoint(Ia):new mxPoint(Ia.getCenterX(),Ia.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&&(oa.container.appendChild(H),S=H.parentNode);m(za,Aa,ra,H)}}else null==L||!mxUtils.contains(L,za,Aa)||1500<aa&&!mxEvent.isShiftDown(La)?(L=null,null!=S&&(H.parentNode.removeChild(H),S=null)):null!=L&&null!=S&&(ra=oa.model.isEdge(L.cell)?oa.view.getPoint(L):new mxPoint(L.getCenterX(),L.getCenterY()),ra=new mxRectangle(ra.x-this.refreshTarget.width/2,ra.y-this.refreshTarget.height/+2,this.refreshTarget.width,this.refreshTarget.height),m(za,Aa,ra,H));if(V&&null!=M&&!mxEvent.isAltDown(La)&&null==W){Ja=mxRectangle.fromRectangle(M);if(oa.model.isEdge(M.cell)){var Da=M.absolutePoints;null!=fa.parentNode&&(ra=Da[0],Ja.add(m(za,Aa,new mxRectangle(ra.x-this.roundDrop.width/2,ra.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),fa)));null!=la.parentNode&&(Da=Da[Da.length-1],Ja.add(m(za,Aa,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)),Ja.add(m(za,Aa,new mxRectangle(M.getCenterX()-this.triangleUp.width/2,ra.y-this.triangleUp.height,this.triangleUp.width,this.triangleUp.height),X)),Ja.add(m(za,Aa,new mxRectangle(ra.x+ra.width,M.getCenterY()-this.triangleRight.height/2,this.triangleRight.width,this.triangleRight.height),T)),Ja.add(m(za,Aa,new mxRectangle(M.getCenterX()-this.triangleDown.width/2,ra.y+ra.height,this.triangleDown.width,-this.triangleDown.height),N)),Ja.add(m(za,Aa,new mxRectangle(ra.x-this.triangleLeft.width,M.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),ca));null!=Ja&&Ja.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&&(Ia=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!=Ia&&(null==Ja||!mxUtils.contains(Ja,za,Aa)||500<aa&&null==V&&ra))if(W=!1,M=5E3>aa&&aa>this.dropTargetDelay||na.model.isEdge(Qa)?Ia:null,null!=M&&ra){Ja=[fa,la,X,T,N,ca];for(ra=0;ra<Ja.length;ra++)null!=Ja[ra].parentNode&&Ja[ra].parentNode.removeChild(Ja[ra]);na.model.isEdge(Qa)?(Da=Ia.absolutePoints,null!=Da&&(ra=Da[0],Da=Da[Da.length-1],fa.style.left=Math.floor(ra.x-this.roundDrop.width/2)+"px",fa.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(fa),null==na.model.getTerminal(Qa,!1)&&na.container.appendChild(la))):(ra=mxRectangle.fromRectangle(Ia),null!=Ia.shape&&null!=Ia.shape.boundingBox&&(ra=mxRectangle.fromRectangle(Ia.shape.boundingBox)),ra.grow(this.graph.tolerance),ra.grow(HoverIcons.prototype.arrowSpacing),Da=this.graph.selectionCellsHandler.getHandler(Ia.cell),null!=Da&&(ra.x-=Da.horizontalOffset/+this.triangleDown.height),O)),Ja.add(m(za,Aa,new mxRectangle(ra.x-this.triangleLeft.width,M.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),ca));null!=Ja&&Ja.grow(10)}P=mxConstants.DIRECTION_NORTH;W==T?P=mxConstants.DIRECTION_EAST:W==O||W==la?P=mxConstants.DIRECTION_SOUTH:W==ca&&(P=mxConstants.DIRECTION_WEST);null!=L&&W==H&&(Ia=L);ra=(null==w||oa.isCellConnectable(e[w]))&&(oa.model.isEdge(Qa)&&null!=w||oa.model.isVertex(Qa)&&oa.isCellConnectable(Qa));if(null!=+M&&5E3<=aa||M!=Ia&&(null==Ja||!mxUtils.contains(Ja,za,Aa)||500<aa&&null==W&&ra))if(V=!1,M=5E3>aa&&aa>this.dropTargetDelay||oa.model.isEdge(Qa)?Ia:null,null!=M&&ra){Ja=[fa,la,X,T,O,ca];for(ra=0;ra<Ja.length;ra++)null!=Ja[ra].parentNode&&Ja[ra].parentNode.removeChild(Ja[ra]);oa.model.isEdge(Qa)?(Da=Ia.absolutePoints,null!=Da&&(ra=Da[0],Da=Da[Da.length-1],fa.style.left=Math.floor(ra.x-this.roundDrop.width/2)+"px",fa.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==oa.model.getTerminal(Qa,!0)&&oa.container.appendChild(fa),null==oa.model.getTerminal(Qa,!1)&&oa.container.appendChild(la))):(ra=mxRectangle.fromRectangle(Ia),null!=Ia.shape&&null!=Ia.shape.boundingBox&&(ra=mxRectangle.fromRectangle(Ia.shape.boundingBox)),ra.grow(this.graph.tolerance),ra.grow(HoverIcons.prototype.arrowSpacing),Da=this.graph.selectionCellsHandler.getHandler(Ia.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(Ia.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(Ia.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"!=Ia.style.portConstraint&&(na.container.appendChild(X),na.container.appendChild(N)),na.container.appendChild(T),na.container.appendChild(ca));null!=Ia&&(Q=na.selectionCellsHandler.getHandler(Ia.cell),null!=Q&&null!=Q.setHandlesVisible&&Q.setHandlesVisible(!1));W=!0}else for(Ja=[fa,la,X,T,N,ca],ra=0;ra<-Ja.length;ra++)null!=Ja[ra].parentNode&&Ja[ra].parentNode.removeChild(Ja[ra]);W||null==Q||Q.setHandlesVisible(!0);Qa=mxEvent.isAltDown(Ma)&&!mxEvent.isShiftDown(Ma)||null!=K&&V==H?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Qa||null==V&&na.isSplitTarget(Qa,e,Ma)||(Qa=na.getDropTarget(e,Ma,Qa,!0));return Qa});var ma=G.startDrag;G.startDrag=function(na){y.activeDragSource=this;ma.apply(this,arguments)};var La=G.stopDrag;G.stopDrag=function(){La.apply(this,arguments);for(var na=-[fa,la,H,X,T,N,ca],za=0;za<na.length;za++)null!=na[za].parentNode&&na[za].parentNode.removeChild(na[za]);null!=M&&null!=Q&&Q.reset();V=S=K=M=Q=y.activeDragSource=null};return G};+this.triangleRight.height/2)+"px",O.style.left=X.style.left,O.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"!=Ia.style.portConstraint&&(oa.container.appendChild(X),oa.container.appendChild(O)),oa.container.appendChild(T),oa.container.appendChild(ca));null!=Ia&&(N=oa.selectionCellsHandler.getHandler(Ia.cell),null!=N&&null!=N.setHandlesVisible&&N.setHandlesVisible(!1));V=!0}else for(Ja=[fa,la,X,T,O,ca],ra=0;ra<+Ja.length;ra++)null!=Ja[ra].parentNode&&Ja[ra].parentNode.removeChild(Ja[ra]);V||null==N||N.setHandlesVisible(!0);Qa=mxEvent.isAltDown(La)&&!mxEvent.isShiftDown(La)||null!=L&&W==H?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Qa||null==W&&oa.isSplitTarget(Qa,e,La)||(Qa=oa.getDropTarget(e,La,Qa,!0));return Qa});var ma=G.startDrag;G.startDrag=function(oa){y.activeDragSource=this;ma.apply(this,arguments)};var Na=G.stopDrag;G.stopDrag=function(){Na.apply(this,arguments);for(var oa=+[fa,la,H,X,T,O,ca],za=0;za<oa.length;za++)null!=oa[za].parentNode&&oa[za].parentNode.removeChild(oa[za]);null!=M&&null!=N&&N.reset();W=S=L=M=N=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,u=null,w=this,y=null;b.getGraphForEvent=function(B){return k?g.apply(this,arguments):null};b.mouseDown=function(B){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(B),mxEvent.getClientY(B));y=a.style.opacity;k=!1;""==y&&(y="1");null!=this.dragElement&&(this.dragElement.style.display="none")};b.mouseMove=function(B){(k=null!=u&&(Math.abs(u.x--mxEvent.getClientX(B))>p||Math.abs(u.y-mxEvent.getClientY(B))>p))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="");h.apply(this,arguments)};b.mouseUp=function(B){try{mxEvent.isPopupTrigger(B)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=e&&e(B),mxEvent.isConsumed(B)||w.itemClicked(f,b,B,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,B){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,B)};-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,B){return this.createItem(a,e,g,d,b,f,h,m,p,k,u,w,y,B)};+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(E){b.reset(),w.editorUi.handleError(E)}}};+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,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))}))};@@ -2526,8 +2526,8 @@ Sidebar.prototype.setContentVisible=function(a,b){var f=Editor.transitionDelay;m(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,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 u=[];if(null!=p)for(k=0;k<p.length;k++)u.push(p[k]);mxStencilRegistry.loadStencilSet(f,mxUtils.bind(this,function(w,y,B,D,E){if(null==g||0>mxUtils.indexOf(g,y)){B=this.getTagsForStencil(w,y);var G=null!=m?m[y]:null;null!=G&&B.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(B.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(B,D,E,G,J){(null==g||0>mxUtils.indexOf(g,D))&&w.appendChild(this.createVertexTemplate("shape="+B+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,E,D){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(E*h),Math.round(D*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,E,D,G,I){(null==g||0>mxUtils.indexOf(g,E))&&w.appendChild(this.createVertexTemplate("shape="+C+E.toLowerCase()+e,Math.round(G*h),Math.round(I*h),"",E.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)}})();@@ -2539,37 +2539,37 @@ mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphViemxShape.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 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,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()),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;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());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)||-this.isTableRow(V.cell)||this.isTable(V.cell));)this.isSwimlane(V.cell)&&this.isCellMovable(V.cell)&&(ha=this.getActualStartSize(V.cell),ta=this.view.scale,(0<ha.x||0<ha.width)&&mxUtils.intersects(O,new mxRectangle(V.x+(ha.x-ha.width-1)*ta+(0==ha.x?V.width*ta:0),V.y,1,V.height))?ia="col-resize":(0<ha.y||0<ha.height)&&mxUtils.intersects(O,new mxRectangle(V.x,V.y+(ha.y-ha.height-1)*ta+(0==ha.y?V.height:0),V.width,1))&&(ia="row-resize")),V=this.view.getState(this.model.getParent(V.cell))}null!=ia&&Y.setCursor(ia)}}}),-mouseUp:mxUtils.bind(this,function(O,V){k=h=m=p=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var y=document.createElement("div");this.cellRenderer.getLabelValue=function(O){var V=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);O.view.graph.isHtmlLabel(O.cell)&&("0"==mxUtils.getValue(O.style,"html","0")?V=mxUtils.htmlEntities(V,!1):(O.lastLabelValue!=V&&(O.lastLabelValue=V,O.lastSanitizedLabelValue=Graph.sanitizeHtml(V),y.innerHTML=O.lastSanitizedLabelValue,Graph.addLightDarkColors(y,-null,"simple"==O.view.graph.getAdaptiveColors())&&(O.lastSanitizedLabelValue=y.innerHTML)),V=O.lastSanitizedLabelValue));return V};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);-this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(O,V){return!1};this.alternateEdgeStyle="vertical";null==e&&this.loadStylesheet();var B=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var O=B.apply(this,arguments);if(this.graph.pageVisible){var V=[],Y=this.graph.pageFormat,ha=this.graph.pageScale,ia=Y.width*ha;Y=Y.height*ha;ha=this.graph.view.translate;for(var ta=this.graph.view.scale,aa=this.graph.getPageLayout(),P=0;P<aa.width;P++)V.push(new mxRectangle(((aa.x+-P)*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 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,-arguments)};this.selectRegion=function(O,V){var Y=mxEvent.isAltDown(V)?O:null;O=this.getCells(O.x,O.y,O.width,O.height,null,null,Y,null,!0);if(this.isToggleEvent(V))for(Y=0;Y<O.length;Y++)this.selectCellForEvent(O[Y],V);else this.selectCellsForEvent(O,V);return O};var H=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(O,V,Y){return this.graph.isCellSelected(O)?!1:H.apply(this,arguments)};var S=this.updateMouseEvent;this.updateMouseEvent=function(O){O=-S.apply(this,arguments);null!=O.state&&this.isCellLocked(this.getLayerForCell(O.getCell()))&&(null==this.getLinkForCell(O.getCell())?O.state=this.view.getState(this.getCellAt(O.getGraphX(),O.getGraphY(),null,null,null,mxUtils.bind(this,function(V,Y,ha){return O.state==V||this.isCellLocked(this.getLayerForCell(V.cell))&&null==this.getLinkForCell(V.cell)}))):O.state=null);return O};var fa=this.isCellSelectable;this.isCellSelectable=function(O){return fa.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(O))};-this.isCellLocked=function(O){for(;null!=O;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(O),"locked","0"))return!0;O=this.model.getParent(O)}return!1};var la=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,V){"mouseDown"==V.getProperty("eventName")&&(O=V.getProperty("event").getState(),la=null==O||this.isSelectionEmpty()||this.isCellSelected(O.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(O,V){if(!mxEvent.isMultiTouchEvent(V)){O=-V.getProperty("event");var Y=V.getProperty("cell");null==Y?(O=mxUtils.convertPoint(this.container,mxEvent.getClientX(O),mxEvent.getClientY(O)),G.start(O.x,O.y)):null!=la?this.addSelectionCells(la):1<this.getSelectionCount()&&this.isCellSelected(Y)&&this.removeSelectionCell(Y);la=null;V.consume()}}));this.connectionHandler.selectCells=function(O,V){this.graph.setSelectionCell(V||O)};this.connectionHandler.constraintHandler.isStateIgnored=function(O,V){var Y=O.view.graph;return V&&(Y.isCellSelected(O.cell)||-Y.isTableRow(O.cell)&&Y.selectionCellsHandler.isHandled(Y.model.getParent(O.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var O=this.connectionHandler.constraintHandler;null!=O.currentFocus&&O.isStateIgnored(O.currentFocus,!0)&&(O.currentFocus=null,O.constraints=null,O.destroyIcons());O.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch()}this.currentTranslate=new mxPoint(0,0)};+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(P){P=this.getCurrentCellStyle(P);+return null!=P?"1"==P.html||"wrap"==P[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(P,W){if("mouseDown"==W.getProperty("eventName")&&this.isEnabled()){P=W.getProperty("event");var Y=P.getState();W=this.view.scale;if(!mxEvent.isAltDown(P.getEvent())&&null!=Y&&(w=this.isCellSelected(Y.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(P.getEvent()))){var ha=this.selectionCellsHandler.getHandler(Y.cell);+if(null==ha||null==ha.getHandleForEvent(P)){var ia=new mxRectangle(P.getGraphX()-1,P.getGraphY()-1),ta=mxEvent.isTouchEvent(P.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,P.getGraphX()-ha,P.getGraphY()-ha)&&mxUtils.contains(Y,P.getGraphX()-ha,P.getGraphY()+ha)&&mxUtils.contains(Y,P.getGraphX()+ha,P.getGraphY()+ha)&&mxUtils.contains(Y,+P.getGraphX()+ha,P.getGraphY()-ha))){var aa=this.model.getParent(Y.cell);ha=this.model.getParent(aa);if(!this.isCellSelected(ha)){ta*=W;var Q=2*ta;if(this.model.getChildAt(ha,0)!=aa&&mxUtils.intersects(ia,new mxRectangle(Y.x,Y.y-ta,Y.width,Q))||this.model.getChildAt(aa,0)!=Y.cell&&mxUtils.intersects(ia,new mxRectangle(Y.x-ta,Y.y,Q,Y.height))||mxUtils.intersects(ia,new mxRectangle(Y.x,Y.y+Y.height-ta,Y.width,Q))||mxUtils.intersects(ia,new mxRectangle(Y.x+Y.width-ta,Y.y,Q,Y.height)))aa=this.selectionCellsHandler.isHandled(ha),+this.selectCellForEvent(ha,P.getEvent()),ha=this.selectionCellsHandler.getHandler(ha),null!=ha&&(ta=ha.getHandleForEvent(P),null!=ta&&(ha.start(P.getGraphX(),P.getGraphY(),ta),ha.blockDelayedSelection=!aa,P.consume()))}}for(;!P.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)*W+(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)*W+(0==ha.y?Y.height:0),Y.width,1)))&&(this.selectCellForEvent(Y.cell,P.getEvent()),ha=this.selectionCellsHandler.getHandler(Y.cell),null!=ha&&null!=ha.customHandles&&(ta=mxEvent.CUSTOM_HANDLE-ha.customHandles.length+1,ha.start(P.getGraphX(),P.getGraphY(),ta),P.consume())),Y=this.view.getState(this.model.getParent(Y.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,+function(P,W){if("mouseDown"==W.getProperty("eventName")&&this.isEnabled()){P=W.getProperty("event");var Y=P.getState();mxEvent.isAltDown(P.getEvent())||mxEvent.isControlDown(W)||mxEvent.isShiftDown(W)||w||null==Y||!this.model.isEdge(Y.cell)||(h=new mxPoint(P.getGraphX(),P.getGraphY()),u=this.isCellSelected(Y.cell),p=Y,m=P,null!=Y.text&&null!=Y.text.boundingBox&&mxUtils.contains(Y.text.boundingBox,P.getGraphX(),P.getGraphY())?k=mxEvent.LABEL_HANDLE:(W=this.selectionCellsHandler.getHandler(Y.cell),+null!=W&&null!=W.bends&&0<W.bends.length&&(k=W.getHandleForEvent(P))))}}));this.addMouseListener({mouseDown:function(P,W){},mouseMove:mxUtils.bind(this,function(P,W){P=this.selectionCellsHandler.handlers.map;for(var Y in P)if(null!=P[Y].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(W.getEvent())){var ha=this.tolerance;if(null!=h&&null!=p&&null!=m){if(Y=p,null!=k||Math.abs(h.x-W.getGraphX())>ha||Math.abs(h.y-W.getGraphY())>ha){var ia=null;mxEvent.isShiftDown(W.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),Q=aa==mxEdgeStyle.EntityRelation;ha=Y.absolutePoints;u||(ta=k);ta!=mxEvent.LABEL_HANDLE&&null!=ha&&(ta=k,null==ta&&(P=new mxRectangle(h.x,h.y),P.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(P,ha[0].x,ha[0].y)?ta=0:mxUtils.contains(P,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));P=ta==mxEvent.LABEL_HANDLE||0==ta||ta==ia.bends.length-1;if(!Q&&(null!=Y.visibleSourceState||null!=Y.visibleTargetState)||+P)ia.start(W.getGraphX(),W.getGraphX(),ta),W.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,W.getEvent())):this.isCellSelected(Y.cell)||ia.destroy());u=!1;h=m=p=k=null}}else if(Y=W.getState(),null!=Y&&this.isCellEditable(Y.cell)){P=this.model.getParent(Y.cell);ia=null;if(this.model.isEdge(Y.cell)&&!this.isCellSelected(Y.cell)&&!mxEvent.isAltDown(W.getEvent())&&+!mxEvent.isShiftDown(W.getEvent())&&!this.isAncestorSelected(Y.cell)&&(this.isSwimlane(P)||this.model.isLayer(P)||this.getCurrentRoot()==P)){if(P=new mxRectangle(W.getGraphX(),W.getGraphY()),P.grow(mxEdgeHandler.prototype.handleImage.width/2),ha=Y.absolutePoints,null!=ha)null!=Y.text&&null!=Y.text.boundingBox&&mxUtils.contains(Y.text.boundingBox,W.getGraphX(),W.getGraphY())?ia="move":mxUtils.contains(P,ha[0].x,ha[0].y)||mxUtils.contains(P,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))||(W=mxUtils.findNearestSegment(Y,W.getGraphX(),W.getGraphY()),W<ha.length-1&&0<=W&&(ia=0==Math.round(ha[W].x-ha[W+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(W.getEvent())){ha=mxShape.prototype.svgStrokeTolerance/2;P=new mxRectangle(W.getGraphX(),W.getGraphY());P.grow(ha);if(this.isTableCell(Y.cell)&&this.isCellMovable(Y.cell)&&+(W=this.model.getParent(Y.cell),ha=this.model.getParent(W),!this.isCellSelected(ha)))if(mxUtils.intersects(P,new mxRectangle(Y.x,Y.y-2,Y.width,4))&&this.model.getChildAt(ha,0)!=W||mxUtils.intersects(P,new mxRectangle(Y.x,Y.y+Y.height-2,Y.width,4)))ia="row-resize";else if(mxUtils.intersects(P,new mxRectangle(Y.x-2,Y.y,4,Y.height))&&this.model.getChildAt(W,0)!=Y.cell||mxUtils.intersects(P,new mxRectangle(Y.x+Y.width-2,Y.y,4,Y.height)))ia="col-resize";for(W=Y;null==ia&&null!=W&&(this.isTableCell(W.cell)||+this.isTableRow(W.cell)||this.isTable(W.cell));)this.isSwimlane(W.cell)&&this.isCellMovable(W.cell)&&(ha=this.getActualStartSize(W.cell),ta=this.view.scale,(0<ha.x||0<ha.width)&&mxUtils.intersects(P,new mxRectangle(W.x+(ha.x-ha.width-1)*ta+(0==ha.x?W.width*ta:0),W.y,1,W.height))?ia="col-resize":(0<ha.y||0<ha.height)&&mxUtils.intersects(P,new mxRectangle(W.x,W.y+(ha.y-ha.height-1)*ta+(0==ha.y?W.height:0),W.width,1))&&(ia="row-resize")),W=this.view.getState(this.model.getParent(W.cell))}null!=ia&&Y.setCursor(ia)}}}),+mouseUp:mxUtils.bind(this,function(P,W){k=h=m=p=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var y=document.createElement("div");this.cellRenderer.getLabelValue=function(P){var W=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);P.view.graph.isHtmlLabel(P.cell)&&("0"==mxUtils.getValue(P.style,"html","0")?W=mxUtils.htmlEntities(W,!1):(P.lastLabelValue!=W&&(P.lastLabelValue=W,P.lastSanitizedLabelValue=Graph.sanitizeHtml(W),y.innerHTML=P.lastSanitizedLabelValue,Graph.addLightDarkColors(y,+null,"simple"==P.view.graph.getAdaptiveColors())&&(P.lastSanitizedLabelValue=y.innerHTML)),W=P.lastSanitizedLabelValue));return W};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);+this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(P,W){return!1};this.alternateEdgeStyle="vertical";null==e&&this.loadStylesheet();var C=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var P=C.apply(this,arguments);if(this.graph.pageVisible){var W=[],Y=this.graph.pageFormat,ha=this.graph.pageScale,ia=Y.width*ha;Y=Y.height*ha;ha=this.graph.view.translate;for(var ta=this.graph.view.scale,aa=this.graph.getPageLayout(),Q=0;Q<aa.width;Q++)W.push(new mxRectangle(((aa.x++Q)*ia+ha.x)*ta,(aa.y*Y+ha.y)*ta,ia*ta,Y*ta));for(Q=1;Q<aa.height;Q++)W.push(new mxRectangle((aa.x*ia+ha.x)*ta,((aa.y+Q)*Y+ha.y)*ta,ia*ta,Y*ta));P=W.concat(P)}return P};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(P,W){return null==P.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(P){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,+arguments)};var E=this.graphHandler.getCells;this.graphHandler.getCells=function(P){for(var W=E.apply(this,arguments),Y=new mxDictionary,ha=[],ia=0;ia<W.length;ia++){var ta=this.graph.isTableCell(P)&&this.graph.isTableCell(W[ia])&&this.graph.isCellSelected(W[ia])?this.graph.model.getParent(W[ia]):this.graph.isTableRow(P)&&this.graph.isTableRow(W[ia])&&this.graph.isCellSelected(W[ia])?W[ia]:this.graph.getCompositeParent(W[ia]);null==ta||Y.get(ta)||(Y.put(ta,!0),ha.push(ta))}return ha};var D=this.graphHandler.start;+this.graphHandler.start=function(P,W,Y,ha){var ia=!1;this.graph.isTableCell(P)&&(this.graph.isCellSelected(P)?ia=!0:P=this.graph.model.getParent(P));ia||this.graph.isTableRow(P)&&this.graph.isCellSelected(P)||(P=this.graph.getCompositeParent(P));D.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(P,W){W=this.graph.getCompositeParent(W);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(P,W,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 I=(new Date).getTime(),M=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var P=this.currentState;N.apply(this,arguments);P!=this.currentState?(I=(new Date).getTime(),M=0):M=(new Date).getTime()-I};var L=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=+function(P){return mxEvent.isShiftDown(P.getEvent())&&mxEvent.isAltDown(P.getEvent())?!1:null!=this.currentState&&P.getState()==this.currentState&&2E3<M||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&L.apply(this,arguments)};var V=this.isToggleEvent;this.isToggleEvent=function(P){return V.apply(this,arguments)||mxEvent.isShiftDown(P)};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(P){return mxEvent.isMouseEvent(P.getEvent())};var T=this.click;this.click=function(P){var W=null==P.state&&null!=P.sourceState&&this.isCellLocked(this.getLayerForCell(P.sourceState.cell));if(this.isEnabled()&&!W||P.isConsumed())return T.apply(this,arguments);+var Y=W?P.sourceState.cell:P.getCell();if(null!=Y){var ha=this.getClickableLinkForCell(Y);null!=ha?this.isCustomLink(ha)?this.customLinkClicked(ha,Y):this.openLink(ha):W&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(P){return P.sourceState};var O=this.tooltipHandler.show;this.tooltipHandler.show=function(){O.apply(this,arguments);if(null!=this.div)for(var P=this.div.getElementsByTagName("a"),W=0;W<P.length;W++)null!=P[W].getAttribute("href")&&null==P[W].getAttribute("target")&&+P[W].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(P){return P.sourceState};this.getCursorForMouseEvent=function(P){var W=null==P.state&&null!=P.sourceState&&this.isCellLocked(P.sourceState.cell);return this.getCursorForCell(W?P.sourceState.cell:P.getCell())};var ca=this.getCursorForCell;this.getCursorForCell=function(P){if(!this.isEnabled()||this.isCellLocked(P)){if(null!=this.getClickableLinkForCell(P))return"pointer";if(this.isCellLocked(P))return"default"}return ca.apply(this,+arguments)};this.selectRegion=function(P,W){var Y=mxEvent.isAltDown(W)?P:null;P=this.getCells(P.x,P.y,P.width,P.height,null,null,Y,null,!0);if(this.isToggleEvent(W))for(Y=0;Y<P.length;Y++)this.selectCellForEvent(P[Y],W);else this.selectCellsForEvent(P,W);return P};var H=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(P,W,Y){return this.graph.isCellSelected(P)?!1:H.apply(this,arguments)};var S=this.updateMouseEvent;this.updateMouseEvent=function(P){P=+S.apply(this,arguments);null!=P.state&&this.isCellLocked(this.getLayerForCell(P.getCell()))&&(null==this.getLinkForCell(P.getCell())?P.state=this.view.getState(this.getCellAt(P.getGraphX(),P.getGraphY(),null,null,null,mxUtils.bind(this,function(W,Y,ha){return P.state==W||this.isCellLocked(this.getLayerForCell(W.cell))&&null==this.getLinkForCell(W.cell)}))):P.state=null);return P};var fa=this.isCellSelectable;this.isCellSelectable=function(P){return fa.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(P))};+this.isCellLocked=function(P){for(;null!=P;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(P),"locked","0"))return!0;P=this.model.getParent(P)}return!1};var la=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(P,W){"mouseDown"==W.getProperty("eventName")&&(P=W.getProperty("event").getState(),la=null==P||this.isSelectionEmpty()||this.isCellSelected(P.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(P,W){if(!mxEvent.isMultiTouchEvent(W)){P=+W.getProperty("event");var Y=W.getProperty("cell");null==Y?(P=mxUtils.convertPoint(this.container,mxEvent.getClientX(P),mxEvent.getClientY(P)),G.start(P.x,P.y)):null!=la?this.addSelectionCells(la):1<this.getSelectionCount()&&this.isCellSelected(Y)&&this.removeSelectionCell(Y);la=null;W.consume()}}));this.connectionHandler.selectCells=function(P,W){this.graph.setSelectionCell(W||P)};this.connectionHandler.constraintHandler.isStateIgnored=function(P,W){var Y=P.view.graph;return W&&(Y.isCellSelected(P.cell)||+Y.isTableRow(P.cell)&&Y.selectionCellsHandler.isHandled(Y.model.getParent(P.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var P=this.connectionHandler.constraintHandler;null!=P.currentFocus&&P.isStateIgnored(P.currentFocus,!0)&&(P.currentFocus=null,P.constraints=null,P.destroyIcons());P.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch()}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;Graph.fileSupport=null!=window.File&&null!=window.FileReader&&null!=window.FileList&&(null==window.urlParams||"0"!=urlParams.filesupport);Graph.translateDiagram="1"==urlParams["translate-diagram"];Graph.diagramLanguage=null!=urlParams["diagram-language"]?urlParams["diagram-language"]:mxClient.language;Graph.lineJumpsEnabled=!0;Graph.defaultJumpSize=6;Graph.zoomWheel=!1;Graph.selectParentLayer=!1;Graph.minTableColumnWidth=20;Graph.minTableRowHeight=20;Graph.foreignObjectWarningText="Text is not SVG - cannot display";Graph.foreignObjectWarningLink="https://www.drawio.com/doc/faq/svg-export-text-problems";Graph.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>';Graph.svgDoctype='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';Graph.svgFileComment="\x3c!-- Do not edit this file with editors other than draw.io --\x3e";Graph.colorStyles=[mxConstants.STYLE_FONTCOLOR,mxConstants.STYLE_FILLCOLOR,mxConstants.STYLE_GRADIENTCOLOR,mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_IMAGE_BORDER,mxConstants.STYLE_IMAGE_BACKGROUND,mxConstants.STYLE_LABEL_BORDERCOLOR,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR];Graph.textStyles="fontFamily fontSource fontSize fontColor fontStyle textOpacity labelBorderColor labelBackgroundColor autosize resizable horizontal textDirection".split(" ");@@ -2584,7 +2584,7 @@ Graph.createSvgNode=function(a,b,f,e,g){var d=mxUtils.createXmlDocument(),h=nullf+"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(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,B,D){return null!=e?e(y,B,D):mxUtils.isValidColor(D)?(null==h&&null!=b&&(h={}),null!=h&&(h[B]=y.style.getPropertyValue(B)),D=mxUtils.getLightDarkColor(D,null,null,f),y.style.setProperty(B,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&&+Graph.addLightDarkColors=function(a,b,f,e){function g(y,C,E){return null!=e?e(y,C,E):mxUtils.isValidColor(E)?(null==h&&null!=b&&(h={}),null!=h&&(h[C]=y.style.getPropertyValue(C)),E=mxUtils.getLightDarkColor(E,null,null,f),y.style.setProperty(C,E.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]=@@ -2595,17 +2595,17 @@ Graph.arrayBufferToString=function(a){var b="";a=new Uint8Array(a);for(var f=a.bGraph.arrayBufferIndexOfString=function(a,b,f){var e=b.charCodeAt(0),g=1,d=-1;for(f=f||0;f<a.byteLength;f++)if(a[f]==e){d=f;break}for(f=d+1;-1<d&&f<a.byteLength&&f<d+b.length-1;f++){if(a[f]!=b.charCodeAt(g))return Graph.arrayBufferIndexOfString(a,b,d+1);g++}return g==b.length-1?d:-1};Graph.compress=function(a,b){if(null==a||0==a.length||"undefined"===typeof pako)return a;a=b?pako.deflate(encodeURIComponent(a)):pako.deflateRaw(encodeURIComponent(a));return btoa(Graph.arrayBufferToString(new Uint8Array(a)))};Graph.decompress=function(a,b,f){if(null==a||0==a.length||"undefined"===typeof pako)return a;a=Graph.stringToArrayBuffer(atob(a));b=decodeURIComponent(b?pako.inflate(a,{to:"string"}):pako.inflateRaw(a,{to:"string"}));return f?b:Graph.zapGremlins(b)};Graph.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,B){null!=B.shape&&w.model.isEdge(w.model.getParent(B.cell))?B.shape.node.parentNode.appendChild(B.shape.node):null!=B.text&&w.model.isEdge(B.cell)&&B.text.node.parentNode.appendChild(B.text.node)})}function h(w,y){if(w.getModel().isVertex(y)){var B=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 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=B-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=B-S.width/2,S.y=D-S.height/2));var fa=y.length,la=2*Math.PI/fa,O=Math.max(minSize,Math.min(w.container.offsetWidth/-2-40,w.container.offsetHeight/2-80));for(B=0;B<fa;B++)S=w.getModel().getGeometry(y[B]),null!=S&&(S=S.clone(),S.x+=O*Math.sin(B*la),S.y+=O*Math.cos(B*la),w.getModel().setGeometry(y[B],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?+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,E=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 D=y.referenceCell||y,G=e.model.getCell(D.sourceCellId),I=e.getEdges(G,null,!0,!0,!1,!0),M=[],N=0;N<I.length;N++)null!=I[N].getTerminal(!0)&&null!=I[N].getTerminal(!1)&&e.isCellVisible(I[N])&&!e.isEdgeIgnored(I[N])&&e.isCellVisible(I[N].getTerminal(!0))&&e.isCellVisible(I[N].getTerminal(!1))&&e.isCellVisible(e.getLayerForCell(I[N]))&&+M.push(I[N]);M=I=M;if(null!=y.startIndex||0<pageSize&&I.length>pageSize){var L=y.startIndex||0;M=I.slice(Math.max(0,L),Math.min(I.length,L+pageSize))}M=e.getOpposites(M,G).concat(M);var V=w.cloneCells(M);for(N=0;N<M.length;N++)if(V[N].sourceCellId=M[N].id,w.model.isEdge(V[N]))for(V[N].geometry.x=0,V[N].geometry.y=0,V[N].geometry.points=null,V[N].setStyle(V[N].getStyle()+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffe0;textOpacity=100;"),V[N].setTerminal(D,+null==V[N].getTerminal(!0)),G=0;G<V[N].getChildCount();G++){var X=V[N].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(I.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");+T.referenceCell=D;T.startIndex=Math.max(0,(y.startIndex||0)-pageSize);V.splice(0,0,T)}if(I.length>(y.startIndex||0)+pageSize){var O=w.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((y.startIndex||0)/pageSize)+2)+"/"+Math.ceil(I.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");O.referenceCell=D;O.startIndex=(y.startIndex||0)+pageSize;V.splice(0,0,O)}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(V);var S=w.getModel().getGeometry(w.rootCell);null!=S&&(S=S.clone(),S.x=C-S.width/2,S.y=E-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=E-S.height/2));var fa=y.length,la=2*Math.PI/fa,P=Math.max(minSize,Math.min(w.container.offsetWidth/+2-40,w.container.offsetHeight/2-80));for(C=0;C<fa;C++)S=w.getModel().getGeometry(y[C]),null!=S&&(S=S.clone(),S.x+=P*Math.sin(C*la),S.y+=P*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 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 B=function(){mxEvent.removeListener(document,"keydown",u);w.parentNode.removeChild(w);e.scrollCellToVisible(g)};mxEvent.addListener(p,"click",B);mxEvent.addListener(k,-"click",B);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)};B=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=B-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]};+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 E=y.click;y.click=function(M){var N=M.getCell(),L=null!=N?null!=N.referenceCell?N.referenceCell:N:null;null!=N&&0<y.getEdges(L).length?h(y,N):E.apply(this,arguments)};C=y.container.offsetWidth/2;var D=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=D-G.geometry.height/2;y.model.endUpdate();var I=!1;y.getModel().addListener(mxEvent.CHANGE,function(M,N){I||(M=N.getProperty("edit").changes,+mxText.prototype.enableBoundingBox=!1,y.labelsVisible=!1,I=!0,mxEffects.animateChanges(y,M,function(){var L=new mxParallelEdgeLayout(y);L.spacing=60;var V=L.layout;L.layout=function(X){L.spacing=Math.min(60,Math.max(30,60-5*X.length));V.apply(this,arguments)};L.execute(y.getDefaultParent());mxText.prototype.enableBoundingBox=!0;y.labelsVisible=!0;y.tooltipHandler.hide();y.refresh();d(y);I=!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)};@@ -2631,14 +2631,14 @@ h.shape?h.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.gemxUtils.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 B=!1,D=!1;if(0<h.length)for(var E=0;E<h.length&&(B=this.getModel().isVertex(h[E])||B,!(D=this.getModel().isEdge(h[E])||-D)||!B);E++);else D=B=!0;B=B&&!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]&&(B||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],B=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!=B?B.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))&&(B=mxUtils.setStyle(B,K,H),"fontFamily"==K&&null==D.fontSource&&(B=mxUtils.setStyle(B,"fontSource",null)),ca&&"rounded"==K&&"1"==H&&null==D.curved&&(B=mxUtils.setStyle(B,-"curved",null)))}Editor.simpleLabels&&(B=mxUtils.setStyle(mxUtils.setStyle(B,"html",null),"whiteSpace",null));this.model.setStyle(y,B)}}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(B in h){var y=h[B];if(k[B]!=y){if(B==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[B]&&"umlLifeline"!=-y){w=!0;var B="participant"}this.setCellStyles(B,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 B=this.model.getChildAt(p,y),D=this.getScaledCellAt(h,m,B,k,u,w);if(null!=D)return D;if(this.isCellVisible(B)&&-(u&&this.model.isEdge(B)||k&&this.model.isVertex(B))&&(D=this.view.getState(B),null!=D&&(null==w||!w(D,h,m))&&this.intersects(D,h,m)))return B}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&&+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,E=!1;if(0<h.length)for(var D=0;D<h.length&&(C=this.getModel().isVertex(h[D])||C,!(E=this.getModel().isEdge(h[D])||+E)||!C);D++);else E=C=!0;C=C&&!w;E=E&&!y;for(D=0;D<m.length;D++)if(h=0<=mxUtils.indexOf(Graph.textStyles,m[D]),"strokeColor"!=m[D]||null!=p[D]&&"none"!=p[D])if(0<=mxUtils.indexOf(Graph.cellStyles,m[D])||"shape"==m[D])if("shape"!=m[D]&&(C||h)&&(null==p[D]?delete k[m[D]]:k[m[D]]=p[D]),E||h)null==p[D]?delete u[m[D]]:u[m[D]]=p[D]};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),E=!1;null!=y.style&&(pairs=y.style.split(";"),E=E||0<=mxUtils.indexOf(pairs,"text"));if(E)var D=Graph.textStyles;else if(D=Graph.cellStyles.slice(),!k)for(var G=null!=C?C.split(";"):[],I=0;I<G.length;I++){var M=G[I],N=M.indexOf("=");if(0<=N){var L=M.substring(0,N),V=mxUtils.indexOf(D,L);0<=V&&D.splice(V,+1);for(E=0;E<Graph.cellStyleGroups.length;E++){var X=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(X,L))for(var T=0;T<X.length;T++){var O=mxUtils.indexOf(D,X[T]);0<=O&&D.splice(O,1)}}}}var ca=this.model.isEdge(y);E=ca?p:m;for(I=0;I<D.length;I++){L=D[I];var H=E[L];null!=H&&("edgeStyle"!=L||u)&&(ca||!ca&&0>mxUtils.indexOf(Graph.edgeStyles,L))&&(C=mxUtils.setStyle(C,L,H),"fontFamily"==L&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),ca&&"rounded"==L&&"1"==H&&null==E.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),E=this.getScaledCellAt(h,m,C,k,u,w);if(null!=E)return E;if(this.isCellVisible(C)&&+(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(E=this.view.getState(C),null!=E&&(null==w||!w(E,h,m))&&this.intersects(E,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=@@ -2675,10 +2675,10 @@ Graph.prototype.isSplitTarget=function(a,b,f){return!this.model.isEdge(b[0])&&!mGraph.prototype.isLabelMovable=function(a){var b=this.getCurrentCellStyle(a);return!this.isCellLocked(a)&&(this.model.isEdge(a)&&this.edgeLabelsMovable||this.model.isVertex(a)&&(this.vertexLabelsMovable||"1"==mxUtils.getValue(b,"labelMovable","0")))};Graph.prototype.setGridSize=function(a){this.gridSize=a;this.fireEvent(new mxEventObject("gridSizeChanged"))};Graph.prototype.setDefaultParent=function(a){this.defaultParent=a;this.fireEvent(new mxEventObject("defaultParentChanged"))};Graph.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"](),u=a[m+"Month"](),w=a[m+"FullYear"](),y=a[m+"Hours"](),B=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:B,MM:h(B),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};+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(I,M){I=String(I);for(M=M||2;I.length<M;)I="0"+I;return I};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"](),u=a[m+"Month"](),w=a[m+"FullYear"](),y=a[m+"Hours"](),C=a[m+"Minutes"](),E=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var D=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:E,ss:h(E),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<D?"-":"+")+h(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%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(I){return I in G?G[I]:I.slice(1,+I.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)?(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};@@ -2696,11 +2696,11 @@ Graph.prototype.selectCellsForConnectVertex=function(a,b,f){2==a.length&&this.moGraph.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),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 B=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==B||d[E]==this.model.getParent(a)))B=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?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=B;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!=B?(this.addCells([Q],B,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)};+this.getCells(0,0,0,0,null,null,d,null,!0):null;w=this.view.getState(a);var C=null,E=null;if(null!=d){d=d.reverse();for(var D=0;D<d.length;D++)if(!this.isCellLocked(d[D])&&!this.model.isEdge(d[D])&&d[D]!=a)if(!this.model.isAncestor(a,d[D])&&this.isContainer(d[D])&&(null==C||d[D]==this.model.getParent(a)))C=d[D];else if(null==E&&this.isCellConnectable(d[D])&&!this.model.isAncestor(d[D],a)&&!this.isSwimlane(d[D])){var G=this.view.getState(d[D]);null==w||null==G||mxUtils.intersects(w,G)||(E=d[D])}}var I=+!mxEvent.isShiftDown(e)||mxEvent.isControlDown(e)||g;I&&("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=[],N=E;E=C;g=mxUtils.bind(this,function(L){if(null==h||null!=L||null==E&&p){this.model.beginUpdate();try{if(null==N&&I){var V=this.getAbsoluteParent(null!=L?L:a);V=p?a:this.getCompositeParent(V);N=null!=L?L:this.duplicateCells([V],+!1)[0];null!=L&&this.addCells([N],this.model.getParent(a),null,null,null,!0);var X=this.getCellGeometry(N);null!=X&&(null!=L&&"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([N],C,null,null,null,!0),E=null):I&&!p&&this.addCells([N],this.getDefaultParent(),null,null,null,!0)}var T=mxEvent.isControlDown(e)&&+mxEvent.isShiftDown(e)&&I||null==E&&p?null:this.insertEdge(this.model.getParent(a),null,"",a,N,this.createCurrentEdgeStyle());null!=T&&(M.push(T),this.applyNewEdgeStyle(a,[T],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(T,a));if(null==E&&null!=N&&null!=a.parent&&p&&b==mxConstants.DIRECTION_WEST){var O=a.parent.getIndex(a);this.model.add(a.parent,N,O)}null==E&&null!=N&&M.push(N);null==N&&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!=N||!I||null==E&&p)return g(N);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};@@ -2786,25 +2786,25 @@ TableLayout.prototype.getRowLayout=function(a,b){var f=this.graph.model.getChildTableLayout.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,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 B=this.graph.getCellGeometry(u[u.length-1]);null!=B&&(B=B.clone(),B.height=p-y+B.height,h.setGeometry(u[u.length-1],B))}var D=d?null:this.getRowLayout(u[0],k),E=[],G=b.y;for(w=0;w<u.length;w++)B=this.graph.getCellGeometry(u[w]),null!=B&&(B=B.clone(),B.x=b.x,B.width=k,B.y=Math.round(G),G=g||e?G+B.height:G+B.height/y*p,B.height=Math.round(G)-B.y,h.setGeometry(u[w],B)),m=Math.max(m,this.layoutRow(u[w],D,B.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],+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 E=d?null:this.getRowLayout(u[0],k),D=[],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],E,C.height,k,D));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(I){h.setVisible(I.cell,I.actual.cell==I.cell);if(I.actual.cell!=I.cell){if(I.actual.row==I.row){var M=null!=I.geo.alternateBounds?I.geo.alternateBounds:I.geo;I.actual.geo.width+=M.width}I.actual.col==I.col&&(M=null!=I.geo.alternateBounds?I.geo.alternateBounds:I.geo,I.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 B=this.getState(w);null!=B&&y&&this.graph.model.isEdge(B.cell)&&null!=B.style&&1!=B.style[mxConstants.STYLE_CURVED]&&!B.invalid&&this.updateLineJumps(B)&&this.graph.cellRenderer.redraw(B,!1,this.isRendering());B=b.apply(this,-arguments);null!=B&&y&&this.graph.model.isEdge(B.cell)&&null!=B.style&&1!=B.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(B);return B};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 B=null,D=0;D<y.length;D++)if("hidden"!=y[D].getAttribute("visibility")){if(!(null!=B&&B!=y[D].getAttribute("d")||null!=w&&0!=--w))return y[D]}else null==B&&(B=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,+(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,E=0;E<y.length;E++)if("hidden"!=y[E].getAttribute("visibility")){if(!(null!=C&&C!=y[E].getAttribute("d")||null!=w&&0!=--w))return y[E]}else null==C&&(C=y[E].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 B=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;B=!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];B=E(0,Q.x,Q.y)||B;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 fa=mxUtils.intersection(Q.x,Q.y,M.x,M.y,S.x,S.y,H.x,H.y);if(null!=fa&&(Math.abs(fa.x-Q.x)>G||Math.abs(fa.y-Q.y)>G)&&(Math.abs(fa.x-M.x)>G||Math.abs(fa.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=-fa.x-Q.x;ca=fa.y-Q.y;fa={distSq:W*W+ca*ca,x:fa.x,y:fa.y};for(W=0;W<K.length;W++)if(K[W].distSq>fa.distSq){K.splice(W,0,fa);fa=null;break}null==fa||0!=K.length&&K[K.length-1].x===fa.x&&K[K.length-1].y===fa.y||K.push(fa)}ca=S}}}for(T=0;T<K.length;T++)B=E(1,K[T].x,K[T].y)||B}fa=y[y.length-1];B=E(0,fa.x,fa.y)||B}w.routedPoints=D;return B}return!1};var h=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(w,y,B){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,B,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,B,D,!1,null,J);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;-mxGraphView.prototype.getFixedTerminalPoint=function(w,y,B,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,B,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,B,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),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,B,D,E),D)}};mxGraphView.prototype.snapToAnchorPoint=function(w,y,B,D,E){if(null!=y&&null!=w){w=this.graph.getAllConnectionConstraints(y);D=B=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)B=J,D=M}}null!=B&&(E=B)}return E};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,y,B){var D=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&-null!=B.state&&(D=B.state.view.graph.replacePlaceholders(B.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 B=y.substring(8,y.length-1),D=mxUtils.parseXml(Graph.decompress(B));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};+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,E=null;if(null!=y&&null!=this.validEdges&&"none"!==mxUtils.getValue(w.style,"jumpStyle","none")){var D=function(la,P,W){var Y=new mxPoint(P,W);Y.type=la;E.push(Y);+Y=null!=w.routedPoints?w.routedPoints[E.length-1]:null;return null==Y||Y.type!=la||Y.x!=P||Y.y!=W},G=.5*this.scale;C=!1;E=[];for(var I=0;I<y.length-1;I++){for(var M=y[I+1],N=y[I],L=[],V=y[I+2];I<y.length-2&&mxUtils.ptSegDistSq(N.x,N.y,V.x,V.y,M.x,M.y)<1*this.scale*this.scale;)M=V,I++,V=y[I+2];C=D(0,N.x,N.y)||C;for(var X=0;X<this.validEdges.length;X++){var T=this.validEdges[X],O=T.absolutePoints;if(null!=O&&mxUtils.intersects(w,T)&&"1"!=T.style.noJump){var ca=null;for(T=0;T<O.length-1;T++){var H=O[T++1],S=O[T];for(V=O[T+2];T<O.length-2&&mxUtils.ptSegDistSq(S.x,S.y,V.x,V.y,H.x,H.y)<1*this.scale*this.scale;)H=V,T++,V=O[T+2];var fa=mxUtils.intersection(N.x,N.y,M.x,M.y,S.x,S.y,H.x,H.y);if(null!=fa&&(Math.abs(fa.x-N.x)>G||Math.abs(fa.y-N.y)>G)&&(Math.abs(fa.x-M.x)>G||Math.abs(fa.y-M.y)>G)&&(null==ca||mxUtils.ptLineDist(N.x,N.y,M.x,M.y,ca.x,ca.y)>G||mxUtils.ptLineDist(N.x,N.y,M.x,M.y,S.x,S.y)>G)&&(null==V||mxUtils.ptLineDist(N.x,N.y,M.x,M.y,V.x,V.y)>G||mxUtils.ptLineDist(N.x,N.y,M.x,M.y,H.x,H.y)>G)){V=+fa.x-N.x;ca=fa.y-N.y;fa={distSq:V*V+ca*ca,x:fa.x,y:fa.y};for(V=0;V<L.length;V++)if(L[V].distSq>fa.distSq){L.splice(V,0,fa);fa=null;break}null==fa||0!=L.length&&L[L.length-1].x===fa.x&&L[L.length-1].y===fa.y||L.push(fa)}ca=S}}}for(T=0;T<L.length;T++)C=D(1,L[T].x,L[T].y)||C}fa=y[y.length-1];C=D(0,fa.x,fa.y)||C}w.routedPoints=E;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 E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,D=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),I=!0,M=null,N=null,L=[],V=null;w.begin();for(var X=0;X<this.state.routedPoints.length;X++){var T=this.state.routedPoints[X],O=new mxPoint(T.x/+this.scale,T.y/this.scale);0==X?O=y[0]:X==this.state.routedPoints.length-1&&(O=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-O.x;H=H.y/this.scale-O.y;T=T*T+H*H;null==V&&(V=new mxPoint(O.x-M.x,O.y-M.y),N=Math.sqrt(V.x*V.x+V.y*V.y),0<N?(V.x=V.x*D/N,V.y=V.y*D/N):V=null);T>D*D&&0<N&&(T=M.x-O.x,H=M.y-O.y,T=T*T+H*H,T>D*D&&(ca=new mxPoint(O.x-V.x,O.y-V.y),T=new mxPoint(O.x+V.x,O.y+V.y),L.push(ca),this.addPoints(w,L,C,E,!1,null,I),L=0>Math.round(V.x)||+0==Math.round(V.x)&&0>=Math.round(V.y)?1:-1,I=!1,"sharp"==G?(w.lineTo(ca.x-V.y*L,ca.y+V.x*L),w.lineTo(T.x-V.y*L,T.y+V.x*L),w.lineTo(T.x,T.y)):"line"==G?(w.moveTo(ca.x+V.y*L,ca.y-V.x*L),w.lineTo(ca.x-V.y*L,ca.y+V.x*L),w.moveTo(T.x-V.y*L,T.y+V.x*L),w.lineTo(T.x+V.y*L,T.y-V.x*L),w.moveTo(T.x,T.y)):"arc"==G?(L*=1.3,w.curveTo(ca.x-V.y*L,ca.y+V.x*L,T.x-V.y*L,T.y+V.x*L,T.x,T.y)):(w.moveTo(T.x,T.y),I=!0),L=[T],ca=!0))}else V=null;ca||(L.push(O),M=O)}this.addPoints(w,L,C,E,!1,null,I);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;+mxGraphView.prototype.getFixedTerminalPoint=function(w,y,C,E){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,E){if(null==y||null==w||"1"!=y.style.snapToPoint&&"1"!=w.style.snapToPoint)p.apply(this,arguments);else{y=this.getTerminalPort(w,y,E);var D=this.getNextPoint(w,C,E),G=this.graph.isOrthogonal(w),+I=mxUtils.toRadians(Number(y.style[mxConstants.STYLE_ROTATION]||"0")),M=new mxPoint(y.getCenterX(),y.getCenterY());if(0!=I){var N=Math.cos(-I),L=Math.sin(-I);D=mxUtils.getRotatedPoint(D,N,L,M)}N=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);N+=parseFloat(w.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(y,D,0==I&&G,N);0!=I&&(N=Math.cos(I),L=Math.sin(I),D=mxUtils.getRotatedPoint(D,N,L,M));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,+y,C,E,D),E)}};mxGraphView.prototype.snapToAnchorPoint=function(w,y,C,E,D){if(null!=y&&null!=w){w=this.graph.getAllConnectionConstraints(y);E=C=null;if(null!=w)for(var G=0;G<w.length;G++){var I=this.graph.getConnectionPoint(y,w[G]);if(null!=I){var M=(I.x-D.x)*(I.x-D.x)+(I.y-D.y)*(I.y-D.y);if(null==E||M<E)C=I,E=M}}null!=C&&(D=C)}return D};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,y,C){var E=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&+null!=C.state&&(E=C.state.view.graph.replacePlaceholders(C.state.cell,E));return E};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),E=mxUtils.parseXml(Graph.decompress(C));return new mxShape(new mxStencil(E.documentElement))}catch(D){null!=window.console&&+console.log("Error in shape: "+D)}}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};@@ -2817,152 +2817,152 @@ 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 C=this.previous.style.newEdgeStyle;if(null!=C)try{var F=JSON.parse(C);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(C){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(" "),C=0;C<A.length;C++)null!=-this.currentEdgeStyle[A[C]]&&(q+=A[C]+"="+this.currentEdgeStyle[A[C]]+";");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++"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};+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 C=0;C<q.length;C++){var F=q[C];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,C){C=null!=C?C:{};for(var F in q){var L=A[F];null==C[L]&&(C[L]=q[F].getId()||"")}return C};Graph.prototype.importGraphModel=function(q,A,-C,F){A=null!=A?A:0;C=null!=C?C: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 ea=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,C,!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,C,!1,this.getDefaultParent()),Z[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=q&&(this.createCellMapping(L,ea,Z),this.updateCustomLinks(Z,q),F)){this.isGridEnabled()&&(A=this.snap(A),C=this.snap(C));var xa=this.getBoundingBoxFromGeometry(q,!0);null!=xa&&this.moveCells(q,A-xa.x,C-xa.y)}}finally{this.model.endUpdate()}}return q};Graph.prototype.encodeCells=function(q){for(var A={},C=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<C.length;L++){Z.add(ja,C[L]);var ea=this.view.getState(q[L]);if(null!=ea){var ka=this.getCellGeometry(C[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=ea.x/ea.view.scale-ea.view.translate.x,ka.y=ea.y/ea.view.scale-ea.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(q)),C);return R.encode(Z)};Graph.prototype.isSwimlane=-function(q,A){var C=null;null==q||this.model.isEdge(q)||this.model.getParent(q)==this.model.getRoot()||(C=this.getCurrentCellStyle(q,A)[mxConstants.STYLE_SHAPE]);return C==mxConstants.SHAPE_SWIMLANE||"table"==C||"tableRow"==C};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 C=this.getCurrentCellStyle(A);if(null!=C.expand)return"0"!=C.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(q,A,C,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));C=null;this.model.beginUpdate();try{var ea=this.getCellGeometry(q);if(null!=ea&&null!=ea.points&&0<ea.points.length&&1==A.length&&this.model.isVertex(A[0])){var ka=this.getCellGeometry(A[0]);if(null!=ka&&!ka.relative){var xa=new mxRectangle(ka.x+F,ka.y+L,ka.width,ka.height),Ka=ea.points;ka=[];for(var Ha=0;Ha<Ka.length;Ha++)xa.intersectsPoint(Ka[Ha].x,Ka[Ha].y)||ka.push(Ka[Ha]);ka.length<Ka.length&&(ea=ea.clone(),ea.points=-ka,this.model.setGeometry(q,ea))}}C=u.apply(this,[q,A,C,F,L,R,Z,ja]);this.model.setValue(C,"");var ya=this.getChildCells(C,!0);for(Ha=0;Ha<ya.length;Ha++)ea=this.getCellGeometry(ya[Ha]),null!=ea&&ea.relative&&0<ea.x&&this.model.remove(ya[Ha]);var Fa=this.getChildCells(q,!0);for(Ha=0;Ha<Fa.length;Ha++)ea=this.getCellGeometry(Fa[Ha]),null!=ea&&ea.relative&&0>=ea.x&&this.model.remove(Fa[Ha]);var va=this.model.getTerminal(C,!1);if(null!=va){var ua=this.getCurrentCellStyle(va);null!=ua&&"1"==ua.snapToPoint&&-(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[q]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[q]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[C]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[C]))}}finally{this.model.endUpdate()}return C};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(q,A,C){if(A||C)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 ea=0;ea<this.model.getChildCount(ja);ea++)Z(this.model.getChildAt(ja,ea))});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 C=this.getCellGeometry(q),F=this.getCellGeometry(A);-if(null!=C&&null!=F){var L=C.clone(),R=F.clone();this.model.beginUpdate();try{L.x=F.getCenterX()-C.width/2,L.y=F.getCenterY()-C.height/2,R.x=C.getCenterX()-F.width/2,R.y=C.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,C,F,L,R,Z){Z=null!=Z?Z:{};if(this.isTable(L)){for(var ja=[],ea=0;ea<q.length;ea++)this.isTable(q[ea])?ja=ja.concat(this.model.getChildCells(q[ea],-!0).reverse()):ja.push(q[ea]);q=ja}this.model.beginUpdate();try{ja=[];for(ea=0;ea<q.length;ea++)if(null!=L&&this.isTableRow(q[ea])){var ka=this.model.getParent(q[ea]),xa=this.getCellGeometry(q[ea]);this.isTable(ka)&&ja.push(ka);if(null!=ka&&null!=xa&&this.isTable(ka)&&this.isTable(L)&&(F||ka!=L)){if(!F){var Ka=this.getCellGeometry(ka);null!=Ka&&(Ka=Ka.clone(),Ka.height-=xa.height,this.model.setGeometry(ka,Ka))}Ka=this.getCellGeometry(L);null!=Ka&&(Ka=Ka.clone(),Ka.height+=xa.height,this.model.setGeometry(L,-Ka));var Ha=this.model.getChildCells(L,!0);if(0<Ha.length){q[ea]=F?this.cloneCell(q[ea]):q[ea];var ya=this.model.getChildCells(q[ea],!0),Fa=this.model.getChildCells(Ha[0],!0),va=Fa.length-ya.length;if(0<va)for(var ua=0;ua<va;ua++){var Ta=this.cloneCell(ya[ya.length-1]);null!=Ta&&(Ta.value="",this.model.add(q[ea],Ta))}else if(0>va)for(ua=0;ua>va;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(q[ea],!0);for(ua=0;ua<Fa.length;ua++){var Ra=this.getCellGeometry(Fa[ua]),Oa=this.getCellGeometry(ya[ua]);-null!=Ra&&null!=Oa&&(Oa=Oa.clone(),Oa.width=Ra.width,this.model.setGeometry(ya[ua],Oa))}}}}var Sa=y.apply(this,arguments);for(ea=0;ea<ja.length;ea++)!F&&this.model.contains(ja[ea])&&0==this.model.getChildCount(ja[ea])&&this.model.remove(ja[ea]);F&&this.updateCustomLinks(this.createCellMapping(Z,this.createCellLookup(q)),Sa)}finally{this.model.endUpdate()}return Sa};var B=Graph.prototype.removeCells;Graph.prototype.removeCells=function(q,A){var C=[];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(C,R)&&C.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(C,R))){for(var Z=this.model.getChildCells(R,!0),ja=0,ea=0;ea<Z.length;ea++)0<=mxUtils.indexOf(q,Z[ea])&&ja++;ja==Z.length&&C.push(R)}C.push(q[F])}C=B.apply(this,[C,A])}finally{this.model.endUpdate()}return C};-Graph.prototype.updateCustomLinks=function(q,A,C){C=null!=C?C:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&C.updateCustomLinksForCell(q,A[F],C)};Graph.prototype.updateCustomLinksForCell=function(q,A){this.doUpdateCustomLinksForCell(q,A);for(var C=this.model.getChildCount(A),F=0;F<C;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 C=JSON.parse(A);for(A=0;A<C.length;A++){var F=C[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;C=A.width/L;A=A.height/L;if(F==mxConstants.DIRECTION_NORTH||F==mxConstants.DIRECTION_SOUTH)F=C,C=A,A=F;A=q.shape.getConstraints(q.style,C,A);if(null!=A)return A;if(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 ea=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,ea,Z),this.updateCustomLinks(Z,q),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var xa=this.getBoundingBoxFromGeometry(q,!0);null!=xa&&this.moveCells(q,A-xa.x,B-xa.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 ea=this.view.getState(q[K]);if(null!=ea){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=ea.x/ea.view.scale-ea.view.translate.x,ka.y=ea.y/ea.view.scale-ea.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 u=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{var ea=this.getCellGeometry(q);if(null!=ea&&null!=ea.points&&0<ea.points.length&&1==A.length&&this.model.isVertex(A[0])){var ka=this.getCellGeometry(A[0]);if(null!=ka&&!ka.relative){var xa=new mxRectangle(ka.x+F,ka.y+K,ka.width,ka.height),Ka=ea.points;ka=[];for(var Ha=0;Ha<Ka.length;Ha++)xa.intersectsPoint(Ka[Ha].x,Ka[Ha].y)||ka.push(Ka[Ha]);ka.length<Ka.length&&(ea=ea.clone(),ea.points=+ka,this.model.setGeometry(q,ea))}}B=u.apply(this,[q,A,B,F,K,R,Z,ja]);this.model.setValue(B,"");var ya=this.getChildCells(B,!0);for(Ha=0;Ha<ya.length;Ha++)ea=this.getCellGeometry(ya[Ha]),null!=ea&&ea.relative&&0<ea.x&&this.model.remove(ya[Ha]);var Fa=this.getChildCells(q,!0);for(Ha=0;Ha<Fa.length;Ha++)ea=this.getCellGeometry(Fa[Ha]),null!=ea&&ea.relative&&0>=ea.x&&this.model.remove(Fa[Ha]);var va=this.model.getTerminal(B,!1);if(null!=va){var ua=this.getCurrentCellStyle(va);null!=ua&&"1"==ua.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 ea=0;ea<this.model.getChildCount(ja);ea++)Z(this.model.getChildAt(ja,ea))});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=[],ea=0;ea<q.length;ea++)this.isTable(q[ea])?ja=ja.concat(this.model.getChildCells(q[ea],+!0).reverse()):ja.push(q[ea]);q=ja}this.model.beginUpdate();try{ja=[];for(ea=0;ea<q.length;ea++)if(null!=K&&this.isTableRow(q[ea])){var ka=this.model.getParent(q[ea]),xa=this.getCellGeometry(q[ea]);this.isTable(ka)&&ja.push(ka);if(null!=ka&&null!=xa&&this.isTable(ka)&&this.isTable(K)&&(F||ka!=K)){if(!F){var Ka=this.getCellGeometry(ka);null!=Ka&&(Ka=Ka.clone(),Ka.height-=xa.height,this.model.setGeometry(ka,Ka))}Ka=this.getCellGeometry(K);null!=Ka&&(Ka=Ka.clone(),Ka.height+=xa.height,this.model.setGeometry(K,+Ka));var Ha=this.model.getChildCells(K,!0);if(0<Ha.length){q[ea]=F?this.cloneCell(q[ea]):q[ea];var ya=this.model.getChildCells(q[ea],!0),Fa=this.model.getChildCells(Ha[0],!0),va=Fa.length-ya.length;if(0<va)for(var ua=0;ua<va;ua++){var Ta=this.cloneCell(ya[ya.length-1]);null!=Ta&&(Ta.value="",this.model.add(q[ea],Ta))}else if(0>va)for(ua=0;ua>va;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(q[ea],!0);for(ua=0;ua<Fa.length;ua++){var Ra=this.getCellGeometry(Fa[ua]),Oa=this.getCellGeometry(ya[ua]);+null!=Ra&&null!=Oa&&(Oa=Oa.clone(),Oa.width=Ra.width,this.model.setGeometry(ya[ua],Oa))}}}}var Sa=y.apply(this,arguments);for(ea=0;ea<ja.length;ea++)!F&&this.model.contains(ja[ea])&&0==this.model.getChildCount(ja[ea])&&this.model.remove(ja[ea]);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,ea=0;ea<Z.length;ea++)0<=mxUtils.indexOf(q,Z[ea])&&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||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),C=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||C++)}return 0<C||this.isContainer(q)};Graph.prototype.isValidDropTarget=function(q,A,C){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,C)||("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 C=this.model.getParent(q);null!=C&&(C=this.layoutManager.getLayout(C),-null!=C&&C.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(q,A,C){C=null!=C?C:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,C&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(q,A){var C=this.getModel(),F=[];C.beginUpdate();try{for(var L=0;L<q.length;L++){var R=q[L];if(C.isEdge(R)){var Z=C.getTerminal(R,!0),ja=C.getTerminal(R,-!1);C.setTerminal(R,ja,!0);C.setTerminal(R,Z,!1);var ea=C.getGeometry(R);if(null!=ea){ea=ea.clone();null!=ea.points&&ea.points.reverse();var ka=ea.getTerminalPoint(!0),xa=ea.getTerminalPoint(!1);ea.setTerminalPoint(ka,!1);ea.setTerminalPoint(xa,!0);C.setGeometry(R,ea);var Ka=this.view.getState(R),Ha=this.view.getState(Z),ya=this.view.getState(ja);if(null!=Ka){var Fa=null!=Ha?this.getConnectionConstraint(Ka,Ha,!0):null,va=null!=ya?this.getConnectionConstraint(Ka,ya,!1):null;this.setConnectionConstraint(R,-Z,!0,va);this.setConnectionConstraint(R,ja,!1,Fa);var ua=mxUtils.getValue(Ka.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ka.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(C.isVertex(R)&&(ea=this.getCellGeometry(R),null!=ea)){if(!(this.isTable(R)||this.isTableRow(R)||this.isTableCell(R)||this.isSwimlane(R))){ea=ea.clone();-ea.x+=ea.width/2-ea.height/2;ea.y+=ea.height/2-ea.width/2;var Ta=ea.width;ea.width=ea.height;ea.height=Ta;C.setGeometry(R,ea)}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{C.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 C=this.view.getState(A);null!=C&&null!=C.shape&&(this.view.invalidate(A),C.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 C=this.view.getState(q[A]);null!=C&&null!=C.shape&&-null!=C.shape.stencil&&this.stencilHasPlaceholders(C.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 C=Array.prototype.slice.call(q.attributes);attr=C.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 C=0;C<q.length;C++)null!=q[C]&&A(q[C])}};Graph.prototype.updateLabelElements=function(q,A,C){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!=C?C:"*"),ja=0;ja<Z.length;ja++)A(Z[ja]);F.innerHTML!=R&&this.cellLabelChanged(q[L],F.innerHTML)}}};Graph.prototype.cellLabelChanged=-function(q,A,C){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,C=0;C<q.length;C++)A.put(q[C],!0);var F=[];for(C=0;C<q.length;C++){var L=this.model.getParent(q[C]);null==L||A.get(L)||(A.put(L,!0),F.push(L))}for(C=0;C<F.length;C++)if(L=this.view.getState(F[C]),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=[],C=0;C<q.length;C++)this.isCellDeletable(q[C])&&this.isTransparentState(this.view.getState(q[C]))&&A.push(q[C]);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 C="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(q.value)&&q.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(C="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(q,C,A)};Graph.prototype.getAttributeForCell=function(q,A,C){q=null!=q.value&&"object"===typeof q.value?q.value.getAttribute(A):null;return null!=q?q:C};Graph.prototype.setAttributeForCell=function(q,-A,C){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!=C?F.setAttribute(A,C):F.removeAttribute(A);this.model.setValue(q,F)};Graph.prototype.isTargetShape=function(q,A,C){q=mxUtils.getValue(this.getCurrentCellStyle(q),mxConstants.STYLE_SHAPE,"");for(C=0;C<A.length;C++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[C]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,-q))return!0}return!1};var E=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(q,A,C,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 C=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,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,C.x,C.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(C.x,C.y))),A=this.addText(C.x,C.y,F))}return A};Graph.prototype.getInsertPoint=-function(){var q=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,C=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),L=this.getPageSize();A=Math.max(A,F.x*L.width);C=Math.max(C,F.y*L.height)}return new mxPoint(this.snap(A+q),this.snap(C+q))};Graph.prototype.getFreeInsertPoint=function(){var q=this.view,A=this.getGraphBounds(),C=this.getInsertPoint(),F=this.snap(Math.round(Math.max(C.x,A.x/q.scale-q.translate.x+-(0==A.width?2*this.gridSize:0))));q=this.snap(Math.round(Math.max(C.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,C){var F=-new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=C&&this.model.isEdge(C.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(C,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(C,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!=C?C.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-L.y-(null!=C?C.origin.y:0),F.style+="autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=C?C.cell:null),this.fireEvent(new mxEventObject("textInserted",-"cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(q,A,C){var F=mxUtils.bind(this,function(){var ea=this.container.getElementsByTagName("a");if(null!=ea)for(var ka=0;ka<ea.length;ka++){var xa=this.getAbsoluteUrl(ea[ka].getAttribute("href"));null!=xa&&(ea[ka].setAttribute("rel",this.linkRelation),ea[ka].setAttribute("href",xa),null!=A&&mxEvent.addGestureListeners(ea[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(ea){var ka=ea.sourceState;if(null==ka||null==Z.getLinkForCell(ka.cell))ea=Z.getCellAt(ea.getGraphX(),ea.getGraphY(),null,null,null,function(xa,Ka,Ha){return null==Z.getLinkForCell(xa.cell)}),ka=null==ka||Z.model.isAncestor(ea,ka.cell)?+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!=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 ea=B.getGeometry(R);if(null!=ea){ea=ea.clone();null!=ea.points&&ea.points.reverse();var ka=ea.getTerminalPoint(!0),xa=ea.getTerminalPoint(!1);ea.setTerminalPoint(ka,!1);ea.setTerminalPoint(xa,!0);B.setGeometry(R,ea);var Ka=this.view.getState(R),Ha=this.view.getState(Z),ya=this.view.getState(ja);if(null!=Ka){var Fa=null!=Ha?this.getConnectionConstraint(Ka,Ha,!0):null,va=null!=ya?this.getConnectionConstraint(Ka,ya,!1):null;this.setConnectionConstraint(R,+Z,!0,va);this.setConnectionConstraint(R,ja,!1,Fa);var ua=mxUtils.getValue(Ka.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ka.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(B.isVertex(R)&&(ea=this.getCellGeometry(R),null!=ea)){if(!(this.isTable(R)||this.isTableRow(R)||this.isTableCell(R)||this.isSwimlane(R))){ea=ea.clone();+ea.x+=ea.width/2-ea.height/2;ea.y+=ea.height/2-ea.width/2;var Ta=ea.width;ea.width=ea.height;ea.height=Ta;B.setGeometry(R,ea)}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 E=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)}E.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]))&&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 D=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=D.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=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=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+="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 ea=this.container.getElementsByTagName("a");if(null!=ea)for(var ka=0;ka<ea.length;ka++){var xa=this.getAbsoluteUrl(ea[ka].getAttribute("href"));null!=xa&&(ea[ka].setAttribute("rel",this.linkRelation),ea[ka].setAttribute("href",xa),null!=A&&mxEvent.addGestureListeners(ea[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(ea){var ka=ea.sourceState;if(null==ka||null==Z.getLinkForCell(ka.cell))ea=Z.getCellAt(ea.getGraphX(),ea.getGraphY(),null,null,null,function(xa,Ka,Ha){return null==Z.getLinkForCell(xa.cell)}),ka=null==ka||Z.model.isAncestor(ea,ka.cell)?Z.view.getState(ea):null;ka!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ka,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(ea,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(ea,ka){if(Z.isMouseDown)null!=this.currentLink&&(ea=Math.abs(this.startX-ka.getGraphX()),ka=Math.abs(this.startY-ka.getGraphY()),(ea>R||ka>R)&&this.clear());else{for(ea=ka.getSource();null!=ea&&"a"!=ea.nodeName.toLowerCase();)ea=ea.parentNode;null!=ea?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(ea,ka){var xa=ka.getSource();for(ea=ka.getEvent();null!=xa&&"a"!=xa.nodeName.toLowerCase();)xa=xa.parentNode;null==xa&&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(ea)||mxEvent.isMiddleMouseButton(ea))&&!mxEvent.isPopupTrigger(ea)||mxEvent.isTouchEvent(ea))&&(null!=this.currentLink?(xa=Z.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,-5)&&xa||null==A||A(ea,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(ea)||(ea=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(ea)?"_blank":xa?Z.linkTarget:"_top",Z.openLink(this.currentLink,ea),ka.consume())):null!=C&&!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&&C(ka.getEvent()));-this.clear()},activate:function(ea){this.currentLink=Z.getAbsoluteUrl(Z.getLinkForCell(ea.cell));null!=this.currentLink&&(this.currentTarget=Z.getLinkTargetForCell(ea.cell),Z.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(ea))},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(ea){};-Z.addMouseListener(ja);mxEvent.addListener(document,"mouseleave",function(ea){ja.clear()})};Graph.prototype.duplicateCells=function(q,A){q=null!=q?q:this.getSelectionCells();A=null!=A?A:!0;for(var C=0;C<q.length;C++)this.isTableCell(q[C])&&(q[C]=this.model.getParent(q[C]));q=this.model.getTopmostCells(q);var F=this.getModel(),L=this.gridSize,R=[];F.beginUpdate();try{var Z={},ja=this.createCellLookup(q),ea=this.cloneCells(q,!1,Z,!0);for(C=0;C<q.length;C++){var ka=F.getParent(q[C]);if(null!=ka){var xa=-this.moveCells([ea[C]],L,L,!1)[0];R.push(xa);if(A)F.add(ka,ea[C]);else{var Ka=ka.getIndex(q[C]);F.add(ka,ea[C],Ka+1)}if(this.isTable(ka)){var Ha=this.getCellGeometry(ea[C]),ya=this.getCellGeometry(ka);null!=Ha&&null!=ya&&(ya=ya.clone(),ya.height+=Ha.height,F.setGeometry(ka,ya))}}else R.push(ea[C])}this.updateCustomLinks(this.createCellMapping(Z,ja),ea,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",ea))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(q,A,C){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",C);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"),C=[],F=0;F<A.length;F++)C.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(q));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==C.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=C[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(C=A[0].parentNode;null!=A[0].firstChild;)C.insertBefore(A[0].firstChild,A[0]);C.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),C=this.getCurrentCellStyle(q);return!this.isTableCell(q)&&!this.isTableRow(q)&&(A||"0"!=mxUtils.getValue(C,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==C[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(q,A,C){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 ea=this.view.getState(A[ja]);if(null!=ea){var ka=-q?ea.getCenterX():ea.getCenterY();L=null!=L?Math.max(L,ka):ka;R=null!=R?Math.min(R,ka):ka;C&&(Z+=q?ea.width:ea.height);F.push(ea)}}if(2<F.length){F.sort(function(Fa,va){return q?Fa.x-va.x:Fa.y-va.y});C&&(Z-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);ea=this.view.translate;ka=this.view.scale;R=R/ka-(q?ea.x:ea.y);L=L/ka-(q?ea.x:ea.y);this.getModel().beginUpdate();try{var xa=(L-R-Z)/(F.length-1),Ka=R+(C?q?F[0].width/2:F[0].height/2:0);for(ja=1;ja<F.length-1;ja++){var Ha=-this.view.getState(this.model.getParent(F[ja].cell)),ya=this.getCellGeometry(F[ja].cell);Ka+=xa;null!=ya&&null!=Ha&&(ya=ya.clone(),q?ya.x=Math.round(Ka-(C?0:ya.width/2))-Ha.origin.x:ya.y=Math.round(Ka-(C?0:ya.height/2))-Ha.origin.y,this.getModel().setGeometry(F[ja].cell,ya));C&&(Ka+=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(C,F,L){F.setAttribute("data-cell-id",C.id);if(L)if(mxUtils.isNode(C.value))for(L=0;L<C.value.attributes.length;L++){var R=C.value.attributes[L];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof C.value)for(R in C.value)F.setAttribute("data-cell-"+R,C.value[R]);else null!=C.value&&F.setAttribute("data-cell-value",C.value);return F};var A=q.visitStatesRecursive;q.visitStatesRecursive=function(C,F,L){if(null!=C){var R=F.root,-Z=F.root.ownerDocument;F.root=this.addCellData(C.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(C,F){return this.getLinkForCell(C.cell)});q.getTitleForCellState=mxUtils.bind(this,function(C,F){return Editor.convertHtmlToText(this.convertValueToTooltip(C.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,C,F,L,R,Z,ja,ea,ka,xa,Ka,Ha,ya,Fa,va){var ua=null;if(null!=ya)for(ua=new mxDictionary,xa=0;xa<ya.length;xa++)ua.put(ya[xa],!0);ya=this.useCssTransforms;var Ta=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(this.useCssTransforms=!1,this.view.revalidate(),this.sizeDidChange());try{A=null!=A?A:1;C=null!=-C?C:0;L=null!=L?L:!0;R=null!=R?R:!0;Z=null!=Z?Z:!0;ka=null!=ka?ka:!1;var Ra="page"==Ha?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Ha?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Oa=this.backgroundImage,Sa=this.view.translate,Xa=this.view.scale;"diagram"==Ha&&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*C)+(ka&&0==C?5:0),tb=Math.max(1,Math.ceil(Ra.height*F)+2*C)+(ka&&0==C?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(C/A-Ra.x/Xa),Math.floor(C/A-Ra.y/Xa));cb.idPrefix="drawio-svg-"+Editor.guid();var vb=document.createElement("div"),wb=cb.getAlternateText;cb.getAlternateText=function(Na,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 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(Na,ob){var ab=Na.view.graph.getAbsoluteUrl(yb.apply(this,arguments));return null==ab||Na.view.graph.isCustomLink(ab)?null:ab};ja.getLinkTargetForCellState=function(Na,ob){return Na.view.graph.getLinkTargetForCell(Na.cell)};var sb=ja.drawCellState,qb=null,rb=mxUtils.bind(this,function(){if(null==qb){qb="ge-flow-animation-"+Editor.guid();var Na=null!=mb.createElementNS?-mb.createElementNS(mxConstants.NS_SVG,"style"):mb.createElement("style");Na.innerHTML=this.createFlowAnimationCss(qb);mb.getElementsByTagName("defs")[0].appendChild(Na)}return qb});ja.drawCellState=function(Na,ob){for(var ab=Na.view.graph,jb=null!=ua?ua.get(Na.cell):ab.isCellSelected(Na.cell),hb=ab.model.getParent(Na.cell);!(R&&null==ua||jb)&&null!=hb;)jb=null!=ua?ua.get(hb):ab.isCellSelected(hb),hb=ab.model.getParent(hb);if(null!=Na.shape)try{var Ya=Na.shape.isFlowAnimationEnabled,xb=Na.shape.addFlowAnimationToShape;-Na.shape.isFlowAnimationEnabled=function(){return Ta&&ab.model.isEdge(Na.cell)&&"1"==mxUtils.getValue(Na.style,"flowAnimation","0")};Na.shape.addFlowAnimationToShape=function(){ab.addFlowAnimationToNode(this.getFlowAnimationPath(),Na.style,A,rb())};if(R&&null==ua||jb)ab.view.redrawEnumerationState(Na),sb.apply(this,arguments),this.doDrawShape(Na.secondLabel,ob)}finally{Na.shape.isFlowAnimationEnabled=Ya,Na.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);va?this.disableSvgLinks(lb):this.updateSvgLinks(lb,ea,!0);return lb}finally{this.enableFlowAnimation=Ta,ya&&(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 C=q.createElement("switch"),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);C.appendChild(F);L.appendChild(q);C.appendChild(L);A.appendChild(C)}};Graph.prototype.disableSvgLinks=function(q,A){q=q.getElementsByTagName("a");for(var C=0;C<q.length;C++){var F=q[C].getAttribute("href");null==F&&(F=q[C].getAttribute("xlink:href"));null!=F&&(q[C].style.pointerEvents="none",q[C].setAttribute("href",""));A&&A(q[C])}};Graph.prototype.updateSvgLinks=-function(q,A,C){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):C&&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=+5)&&xa||null==A||A(ea,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(ea)||(ea=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(ea)?"_blank":xa?Z.linkTarget:"_top",Z.openLink(this.currentLink,ea),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(ea){this.currentLink=Z.getAbsoluteUrl(Z.getLinkForCell(ea.cell));null!=this.currentLink&&(this.currentTarget=Z.getLinkTargetForCell(ea.cell),Z.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(ea))},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(ea){};+Z.addMouseListener(ja);mxEvent.addListener(document,"mouseleave",function(ea){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),ea=this.cloneCells(q,!1,Z,!0);for(B=0;B<q.length;B++){var ka=F.getParent(q[B]);if(null!=ka){var xa=+this.moveCells([ea[B]],K,K,!1)[0];R.push(xa);if(A)F.add(ka,ea[B]);else{var Ka=ka.getIndex(q[B]);F.add(ka,ea[B],Ka+1)}if(this.isTable(ka)){var Ha=this.getCellGeometry(ea[B]),ya=this.getCellGeometry(ka);null!=Ha&&null!=ya&&(ya=ya.clone(),ya.height+=Ha.height,F.setGeometry(ka,ya))}}else R.push(ea[B])}this.updateCustomLinks(this.createCellMapping(Z,ja),ea,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",ea))}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!=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 ea=this.view.getState(A[ja]);if(null!=ea){var ka=+q?ea.getCenterX():ea.getCenterY();K=null!=K?Math.max(K,ka):ka;R=null!=R?Math.min(R,ka):ka;B&&(Z+=q?ea.width:ea.height);F.push(ea)}}if(2<F.length){F.sort(function(Fa,va){return q?Fa.x-va.x:Fa.y-va.y});B&&(Z-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);ea=this.view.translate;ka=this.view.scale;R=R/ka-(q?ea.x:ea.y);K=K/ka-(q?ea.x:ea.y);this.getModel().beginUpdate();try{var xa=(K-R-Z)/(F.length-1),Ka=R+(B?q?F[0].width/2:F[0].height/2:0);for(ja=1;ja<F.length-1;ja++){var Ha=+this.view.getState(this.model.getParent(F[ja].cell)),ya=this.getCellGeometry(F[ja].cell);Ka+=xa;null!=ya&&null!=Ha&&(ya=ya.clone(),q?ya.x=Math.round(Ka-(B?0:ya.width/2))-Ha.origin.x:ya.y=Math.round(Ka-(B?0:ya.height/2))-Ha.origin.y,this.getModel().setGeometry(F[ja].cell,ya));B&&(Ka+=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,ea,ka,xa,Ka,Ha,ya,Fa,va){var ua=null;if(null!=ya)for(ua=new mxDictionary,xa=0;xa<ya.length;xa++)ua.put(ya[xa],!0);ya=this.useCssTransforms;var Ta=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(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"==Ha?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Ha?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Oa=this.backgroundImage,Sa=this.view.translate,Xa=this.view.scale;"diagram"==Ha&&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","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(Ma,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 v=Math.ceil(2*jb/this.state.fontSize),x=[],J=0,z=+0;(0==v||J<v)&&z<Ya.length;){var da=Ya.charCodeAt(z);if(10==da||13==da){if(0<J)break}else x.push(Ya.charAt(z)),255>da&&J++;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+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(Ma,ob){var ab=Ma.view.graph.getAbsoluteUrl(yb.apply(this,arguments));return null==ab||Ma.view.graph.isCustomLink(ab)?null:ab};ja.getLinkTargetForCellState=function(Ma,ob){return Ma.view.graph.getLinkTargetForCell(Ma.cell)};var sb=ja.drawCellState,qb=null,rb=mxUtils.bind(this,function(){if(null==qb){qb="ge-flow-animation-"+Editor.guid();var Ma=null!=mb.createElementNS?+mb.createElementNS(mxConstants.NS_SVG,"style"):mb.createElement("style");Ma.innerHTML=this.createFlowAnimationCss(qb);mb.getElementsByTagName("defs")[0].appendChild(Ma)}return qb});ja.drawCellState=function(Ma,ob){for(var ab=Ma.view.graph,jb=null!=ua?ua.get(Ma.cell):ab.isCellSelected(Ma.cell),hb=ab.model.getParent(Ma.cell);!(R&&null==ua||jb)&&null!=hb;)jb=null!=ua?ua.get(hb):ab.isCellSelected(hb),hb=ab.model.getParent(hb);if(null!=Ma.shape)try{var Ya=Ma.shape.isFlowAnimationEnabled,xb=Ma.shape.addFlowAnimationToShape;+Ma.shape.isFlowAnimationEnabled=function(){return Ta&&ab.model.isEdge(Ma.cell)&&"1"==mxUtils.getValue(Ma.style,"flowAnimation","0")};Ma.shape.addFlowAnimationToShape=function(){ab.addFlowAnimationToNode(this.getFlowAnimationPath(),Ma.style,A,rb())};if(R&&null==ua||jb)ab.view.redrawEnumerationState(Ma),sb.apply(this,arguments),this.doDrawShape(Ma.secondLabel,ob)}finally{Ma.shape.isFlowAnimationEnabled=Ya,Ma.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);va?this.disableSvgLinks(lb):this.updateSvgLinks(lb,ea,!0);return lb}finally{this.enableFlowAnimation=Ta,ya&&(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;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,C){for(;null!=q&&q.nodeName!=A;){if(q==C)return null;q=q.parentNode}return q};Graph.prototype.getParentByNames=function(q,A,C){for(;null!=q&&!(0<=mxUtils.indexOf(A,q.nodeName));){if(q==C)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 C=document.createRange();C.selectNode(q);A.removeAllRanges();A.addRange(C)}}else(A=document.selection)&&"Control"!=A.type&&(q=A.createRange(),-q.collapse(!0),C=A.createRange(),C.setEndPoint("StartToStart",q),C.select())};Graph.prototype.flipEdgePoints=function(q,A,C){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=C+(C-F.points[L].x):F.points[L].y=C+(C-F.points[L].y);L=function(R){null!=R&&(A?R.x=C+(C-R.x):R.y=C+(C-R.y))};L(F.getTerminalPoint(!0));L(F.getTerminalPoint(!1));this.model.setGeometry(q,F)}};Graph.prototype.flipChildren=function(q,A,C){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,C);else{var Z=this.getCellGeometry(R);null!=Z&&(Z=Z.clone(),A?Z.x=C+(C-Z.x-Z.width):Z.y=C+(C-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 C=[],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);C.push(q[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,C)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=function(q,A){var C=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(C=[],F=0;F<ja.length;F++)this.model.contains(ja[F])&&(this.model.isVertex(ja[F])||this.model.isEdge(ja[F]))&&C.push(ja[F])}return C};Graph.prototype.insertTableColumn=-function(q,A){var C=this.getModel();C.beginUpdate();try{var F=q,L=0;if(this.isTableCell(q)){var R=C.getParent(q);F=C.getParent(R);L=mxUtils.indexOf(C.getChildCells(R,!0),q)}else this.isTableRow(q)?F=C.getParent(q):q=C.getChildCells(F,!0)[0],A||(L=C.getChildCells(q,!0).length-1);var Z=C.getChildCells(F,!0),ja=Graph.minTableColumnWidth;for(q=0;q<Z.length;q++){var ea=C.getChildCells(Z[q],!0)[L],ka=C.cloneCell(ea,!1);null==ka&&(ka=this.createVertex());var xa=this.getCellGeometry(ka);ka.value=null;ka.style=-mxUtils.setStyle(mxUtils.setStyle(ka.style,"rowspan",null),"colspan",null);if(null!=xa){null!=xa.alternateBounds&&(xa.width=xa.alternateBounds.width,xa.height=xa.alternateBounds.height,xa.alternateBounds=null);ja=xa.width;var Ka=this.getCellGeometry(Z[q]);null!=Ka&&(xa.height=Ka.height)}C.add(Z[q],ka,L+(A?0:1))}var Ha=this.getCellGeometry(F);null!=Ha&&(Ha=Ha.clone(),Ha.width+=ja,C.setGeometry(F,Ha))}finally{C.endUpdate()}};Graph.prototype.deleteLane=function(q){var A=this.getModel();A.beginUpdate();-try{var C=null;C="stackLayout"==this.getCurrentCellStyle(q).childLayout?q:A.getParent(q);var F=A.getChildCells(C,!0);0==F.length?A.remove(C):(C==q&&(q=F[F.length-1]),A.remove(q))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(q,A){var C=this.getModel();C.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(q).childLayout){F=q;var L=C.getChildCells(F,!0);q=L[A?0:L.length-1]}else F=C.getParent(q);var R=F.getIndex(q);q=C.cloneCell(q,!1);q.value=null;C.add(F,q,R+(A?0:1))}finally{C.endUpdate()}};-Graph.prototype.insertTableRow=function(q,A){var C=this.getModel();C.beginUpdate();try{var F=q,L=q;if(this.isTableCell(q))L=C.getParent(q),F=C.getParent(L);else if(this.isTableRow(q))F=C.getParent(q);else{var R=C.getChildCells(F,!0);L=R[A?0:R.length-1]}var Z=C.getChildCells(L,!0),ja=F.getIndex(L);L=C.cloneCell(L,!1);L.value=null;var ea=this.getCellGeometry(L);if(null!=ea){for(R=0;R<Z.length;R++){q=C.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=ea.height);L.insert(q)}C.add(F,L,ja+(A?0:1));var xa=this.getCellGeometry(F);null!=xa&&(xa=xa.clone(),xa.height+=ea.height,C.setGeometry(F,xa))}}finally{C.endUpdate()}};Graph.prototype.deleteTableColumn=function(q){var A=this.getModel();A.beginUpdate();try{var C=q,F=q;this.isTableCell(q)&&(F=A.getParent(q));this.isTableRow(F)&&-(C=A.getParent(F));var L=A.getChildCells(C,!0);if(0==L.length)A.remove(C);else{this.isTableRow(F)||(F=L[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(C);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 ea=this.getCellGeometry(ja);null!=ea&&(q=Math.max(q,ea.width))}var ka=this.getCellGeometry(C);null!=ka&&(ka=ka.clone(),ka.width-=q,A.setGeometry(C,ka))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=-function(q){var A=this.getModel();A.beginUpdate();try{var C=q,F=q;this.isTableCell(q)&&(q=F=A.getParent(q));this.isTableRow(q)&&(C=A.getParent(F));var L=A.getChildCells(C,!0);if(1>=L.length)A.remove(C);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(C);null!=Z&&(Z=Z.clone(),Z.height-=q,A.setGeometry(C,Z))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(q,A){for(var C=q.tBodies[0],F=C.rows[0].cells,-L=q=0;L<F.length;L++){var R=F[L].getAttribute("colspan");q+=null!=R?parseInt(R):1}A=C.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 C=q.tHead;if(null!=C)for(var F=0;F<C.rows.length;F++){var L=document.createElement("th");C.rows[F].appendChild(L);mxUtils.br(L)}q=q.tBodies[0];for(C=0;C<q.rows.length;C++)F=q.rows[C].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 C=0;C<q.length;C++)q[C].cells.length>A&&q[C].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 C=document.createElement("div");C.innerHTML=q;q=document.createDocumentFragment();for(var F;F=C.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,C){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,C);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,C=!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()),C=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&&(C&&null==Z.getCell()&&this.isSelectionEmpty()||A&&this.isCellSelected(Z.getCell())));ja=!A||ja?null:mxUtils.bind(this,function(ea){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,ea,Z.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[R,Z,ja])}})};Graph.prototype.isTouchPopupMenuEnabled=function(){return!0};+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 ea=B.getChildCells(Z[q],!0)[K],ka=B.cloneCell(ea,!1);null==ka&&(ka=this.createVertex());var xa=this.getCellGeometry(ka);ka.value=null;ka.style=+mxUtils.setStyle(mxUtils.setStyle(ka.style,"rowspan",null),"colspan",null);if(null!=xa){null!=xa.alternateBounds&&(xa.width=xa.alternateBounds.width,xa.height=xa.alternateBounds.height,xa.alternateBounds=null);ja=xa.width;var Ka=this.getCellGeometry(Z[q]);null!=Ka&&(xa.height=Ka.height)}B.add(Z[q],ka,K+(A?0:1))}var Ha=this.getCellGeometry(F);null!=Ha&&(Ha=Ha.clone(),Ha.width+=ja,B.setGeometry(F,Ha))}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 ea=this.getCellGeometry(K);if(null!=ea){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=ea.height);K.insert(q)}B.add(F,K,ja+(A?0:1));var xa=this.getCellGeometry(F);null!=xa&&(xa=xa.clone(),xa.height+=ea.height,B.setGeometry(F,xa))}}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 ea=this.getCellGeometry(ja);null!=ea&&(q=Math.max(q,ea.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<=+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||+!F&&!ja&&(B&&null==Z.getCell()&&this.isSelectionEmpty()||A&&this.isCellSelected(Z.getCell())));ja=!A||ja?null:mxUtils.bind(this,function(ea){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,ea,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(),C=A.getRangeAt(0);q=Graph.createTabNode(q);C.insertNode(q);C.setStartAfter(q);C.setEndAfter(q);A.removeAllRanges();A.addRange(C)};mxCellEditor.prototype.alignText=function(q,A){var C=this.graph.getView().getState(this.editingCell);if(null!=C){C=mxUtils.getValue(C.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=C&&"vertical-"==C.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=-[],C=0,F=q.rangeCount;C<F;++C)A.push(q.getRangeAt(C));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,C=q.length;A<C;++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 C=this.graph.view.getState(q);this.textarea.className=null!=C&&1==C.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"),C=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";ea=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),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(ea*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ea)+"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=+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=+[],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 I=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(q,A){this.isKeepFocusEvent(q)||!mxEvent.isAltDown(q.getEvent())?I.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";ea=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(ea*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ea)+"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=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 ea=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(ea*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ea)+"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=-C;this.resize()}};var Q=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(q,A){if(null!=this.textarea)if(q=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=q){var C=q.view.scale;this.bounds=mxRectangle.fromRectangle(q);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*C;this.bounds.height=60*C;var F=null!=q.text?q.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),-mxUtils.getValue(q.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/C)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/C)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/C)+(this.textarea.offsetHeight-this.textarea.clientHeight)+-"px",this.bounds.height=parseInt(this.textarea.style.height)*C);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/C)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*C);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+C+","+C+")")}else this.textarea.style.height=-"",this.textarea.style.overflow="",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 C=this.graph.getEditingValue(q.cell,A);"1"==mxUtils.getValue(q.style,"nl2Br","1")&&(C=C.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(C,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=+B;this.resize()}};var N=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(q,A){if(null!=this.textarea)if(q=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=q){var B=q.view.scale;this.bounds=mxRectangle.fromRectangle(q);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*B;this.bounds.height=60*B;var F=null!=q.text?q.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),+mxUtils.getValue(q.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/B)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/B)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/B)+(this.textarea.offsetHeight-this.textarea.clientHeight)++"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="",N.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 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=+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()};+mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(q){}};var V=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(q,A){this.graph.getModel().beginUpdate();try{V.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,C=this.graph.view.scale;q=this.roundLength((this.bounds.x+this.currentDx)/C-A.x);A=this.roundLength((this.bounds.y+-this.currentDy)/C-A.y);C=this.graph.view.unit;this.hint.innerHTML=b(q,C)+", "+b(A,C);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 C=this.graph.getCellStyle(q);if(null==C.childLayout){var F=this.graph.model.getParent(q),L=null!=F?this.graph.getCellGeometry(F):null;if(null!=L&&(C=this.graph.getCellStyle(F),"stackLayout"==C.childLayout)){var R=parseFloat(mxUtils.getValue(C,"stackBorder",mxStackLayout.prototype.border));C="1"==mxUtils.getValue(C,"horizontalStack","1");var Z=this.graph.getActualStartSize(F);L=L.clone();C?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){C.get(ja)||(C.put(ja,!0),L.push(ja))}for(var A=T.apply(this,arguments),C=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,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 O=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=+function(q){return O.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 fa=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return fa.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(Fa,va,ua){for(var Ta=[],Ra=0;Ra<Fa.length;Ra++){var Oa=Fa[Ra];Ta.push(null==Oa?null:new mxPoint((ea+Oa.x+va)*R,(ka+Oa.y+ua)*-R))}return Ta},C=this,F=this.graph,L=F.model,R=F.view.scale,Z=this.state,ja=this.selectionBorder,ea=this.state.origin.x+F.view.translate.x,ka=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var xa=F.view.getCellStates(L.getChildCells(this.state.cell,!0));if(0<xa.length){var Ka=L.getChildCells(xa[0].cell,!0),Ha=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(L=0;L<xa.length;L++)mxUtils.bind(this,function(Fa){var va=xa[Fa],ua=null;if(F.isCellMovable(va.cell)){ua=+var P=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(q){return q.tableHandle||P.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 W=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=+function(){return W.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(Fa,va,ua){for(var Ta=[],Ra=0;Ra<Fa.length;Ra++){var Oa=Fa[Ra];Ta.push(null==Oa?null:new mxPoint((ea+Oa.x+va)*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,ea=this.state.origin.x+F.view.translate.x,ka=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var xa=F.view.getCellStates(K.getChildCells(this.state.cell,!0));if(0<xa.length){var Ka=K.getChildCells(xa[0].cell,!0),Ha=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(K=0;K<xa.length;K++)mxUtils.bind(this,function(Fa){var va=xa[Fa],ua=null;if(F.isCellMovable(va.cell)){ua=Fa<xa.length-1?xa[Fa+1]:null;ua=null!=ua?F.getCellGeometry(ua.cell):null;var Ta=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=ya[Fa]?new Y(ya[Fa],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);ua.isDashed=ja.isDashed;ua.svgStrokeTolerance++;ua=new mxHandle(va,"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(ya[Fa],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+(Fa==xa.length-1?0:Sa.x*R);this.shape.bounds.width=Z.width-(Fa==xa.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(!C.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<Ka.length;L++)mxUtils.bind(this,function(Fa){var va=F.view.getState(Ka[Fa]),ua=F.getCellGeometry(Ka[Fa]),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)})(K);for(K=0;K<Ka.length;K++)mxUtils.bind(this,function(Fa){var va=F.view.getState(Ka[Fa]),ua=F.getCellGeometry(Ka[Fa]),Ta=null!=ua.alternateBounds?ua.alternateBounds:ua;null==va&&(va=new mxCellState(F.view,Ka[Fa],F.getCellStyle(Ka[Fa])),va.x=Z.x+ua.x*R,va.y=Z.y+ua.y*R,va.width=Ta.width*R,va.height=Ta.height*R,va.updateCachedBounds());ua=Fa<Ka.length-1?Ka[Fa+1]:null;ua=null!=ua?F.getCellGeometry(ua):null;var Ra=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Ha[Fa]?new Y(Ha[Fa],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);ua.isDashed=ja.isDashed;ua.svgStrokeTolerance++;va=new mxHandle(va,"col-resize",null,ua);va.tableHandle=!0;var Oa=0;va.shape.node.parentNode.insertBefore(va.shape.node,va.shape.node.parentNode.firstChild);va.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Oa?mxConstants.NONE:ja.stroke;if(this.shape.constructor==Y)this.shape.line=A(Ha[Fa],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+(Fa==Ka.length-1?0:Xa.y*R);this.shape.bounds.height=-Z.height-(Fa==Ka.length-1?0:(Xa.height+Xa.y)*R)}this.shape.redraw()}};var Sa=!1;va.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))};va.execute=function(Xa){if(0!=Oa)F.setTableColumnWidth(this.state.cell,Oa,Sa);else if(!C.blockDelayedSelection){var kb=F.getCellAt(Xa.getGraphX(),Xa.getGraphY())||Z.cell;F.graphHandler.selectCellForEvent(kb,Xa)}Oa=-0};va.positionChanged=function(){};va.reset=function(){Oa=0};q.push(va)})(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=+Z.height-(Fa==Ka.length-1?0:(Xa.height+Xa.y)*R)}this.shape.redraw()}};var Sa=!1;va.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))};va.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};va.positionChanged=function(){};va.reset=function(){Oa=0};q.push(va)})(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=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,C=[],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))}));C.push(R)}else C.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return C};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(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.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,C=this.state.style.shape;null==mxCellRenderer.defaultShapes[C]&&mxStencilRegistry.getStencil(C);C=this.graph.isTable(this.state.cell)||-this.graph.cellEditor.getEditingCell()==this.state.cell;if(!C&&null!=this.customHandles)for(var 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){C=-!0;break}}C&&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;+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=+!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,C){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,-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!=C&&(C.view.updateEdgeBounds(C),this.hint.innerHTML+=" ("+(Z==mxConstants.POINTS?Math.round(C.length/L):b(C.length/L,Z))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(C=this.constraintHandler.currentConstraint.point,-this.hint.innerHTML="["+Math.round(100*C.x)+"%, "+Math.round(100*C.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"/>');+function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var Q=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){Q.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,+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"/>');HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/><circle cx="11" cy="11" r="3" stroke="#fff" fill="transparent"/>');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="'+@@ -2974,33 +2974,33 @@ HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.prot30;mxConnectionHandler.prototype.outlineConnect=!0;mxCellHighlight.prototype.keepOnTop=!0;mxVertexHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.dblClickRemoveEnabled=!0;mxEdgeHandler.prototype.straightRemoveEnabled=!0;mxEdgeHandler.prototype.virtualBendsEnabled=!0;mxEdgeHandler.prototype.mergeRemoveEnabled=!0;mxEdgeHandler.prototype.manageLabelHandle=!0;mxEdgeHandler.prototype.outlineConnect=!0;mxEdgeHandler.prototype.isAddVirtualBendEvent=function(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 C=-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(C){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();-try{var Z=this.graph.getCellsBeyond(F,L,this.graph.getDefaultParent(),!0,!0);for(C=0;C<Z.length;C++)if(this.graph.isCellMovable(Z[C])){var ja=this.graph.view.getState(Z[C]),ea=this.graph.getCellGeometry(Z[C]);null!=ja&&null!=ea&&(ea=ea.clone(),ea.translate(q,R),this.graph.model.setGeometry(Z[C],ea))}}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 C=mxUtils.getScrollOrigin(this.graph.container);q=mxUtils.getOffset(this.graph.container);C.x-=q.x;C.y-=q.y;q=A.getX()+C.x;C=A.getY()+C.y;var F=this.first.x-q,L=this.first.y-C,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,C),this.isSpaceEvent(A)?(q=this.x+this.width,C=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=C-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight++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]),ea=this.graph.getCellGeometry(Z[B]);null!=ja&&null!=ea&&(ea=ea.clone(),ea.translate(q,R),this.graph.model.setGeometry(Z[B],ea))}}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/+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 La=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);La.apply(this,arguments)};var na=(new Date).getTime(),za=0,Aa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(q,-A,C,F){Aa.apply(this,arguments);C!=this.currentTerminalState?(na=(new Date).getTime(),za=0):za=(new Date).getTime()-na;this.currentTerminalState=C};var Ma=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(q){return mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())?!1:null!=this.currentTerminalState&&q.getState()==this.currentTerminalState&&2E3<za||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,-"outlineConnect","1"))&&Ma.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(q,A,C){A=null!=q&&0==q;var F=this.state.getVisibleTerminalState(A);q=null!=q&&null!=this.state.absolutePoints&&(0==q||q>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==q)?this.graph.getConnectionConstraint(this.state,F,A):null;C=null!=(null!=q?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),q):null)?C?this.endFixedHandleImage:this.fixedHandleImage:-null!=q&&null!=F?C?this.endTerminalHandleImage:this.terminalHandleImage:C?this.endHandleImage:this.handleImage;if(null!=C)return C=new mxImageShape(new mxRectangle(0,0,C.width,C.height),C.src),C.preserveImageAspect=!1,C;C=mxConstants.HANDLE_SIZE;this.preferHtml&&--C;return new mxRectangleShape(new mxRectangle(0,0,C,C),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Qa=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(q,A,C,F){F=A==mxEvent.ROTATION_HANDLE?-HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Qa.apply(this,arguments)};var Ja=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(q){if(null!=q&&1==q.length){var A=this.graph.getModel(),C=A.getParent(q[0]),F=this.graph.getCellGeometry(q[0]);if(A.isEdge(C)&&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 Ja.apply(this,-arguments)};var Ia=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var q=Ia.apply(this,arguments),A=[],C=0;C<q.length;C++)"1"!=mxUtils.getValue(q[C].style,"part","0")&&A.push(q[C]);return A};var ra=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(q){var A=this.graph.getModel(),C=A.getParent(q.cell),F=this.graph.getCellGeometry(q.cell);return A.isEdge(C)&&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 C=this.graph.getModel(),F=C.getParent(this.state.cell),L=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!C.isEdge(F)||null==L||!L.relative||null==this.state||+"",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Na=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Na.apply(this,arguments)};var oa=(new Date).getTime(),za=0,Aa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(q,+A,B,F){Aa.apply(this,arguments);B!=this.currentTerminalState?(oa=(new Date).getTime(),za=0):za=(new Date).getTime()-oa;this.currentTerminalState=B};var La=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(q){return mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())?!1:null!=this.currentTerminalState&&q.getState()==this.currentTerminalState&&2E3<za||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,+"outlineConnect","1"))&&La.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(q,A,B){A=null!=q&&0==q;var F=this.state.getVisibleTerminalState(A);q=null!=q&&null!=this.state.absolutePoints&&(0==q||q>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==q)?this.graph.getConnectionConstraint(this.state,F,A):null;B=null!=(null!=q?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),q):null)?B?this.endFixedHandleImage:this.fixedHandleImage:+null!=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 Ja=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 Ja.apply(this,+arguments)};var Ia=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var q=Ia.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||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 C=document.createElement("img");C.className="geAdaptiveAsset";C.setAttribute("src",Editor.editImage);C.setAttribute("title",mxResources.get("editLink"));C.setAttribute("width","14");C.setAttribute("height","14");C.style.paddingLeft="8px";C.style.marginLeft="auto";C.style.marginBottom="-1px";C.style.cursor="pointer";var F=C.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 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=C.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,ea){var ka=document.createElement("div");ka.style.display="flex";ka.style.alignItems="center";ka.style.marginTop=null!=q||0<ea?"6px":"0px";ka.appendChild(this.graph.createLinkForHint(ja.getAttribute("href"),mxUtils.getTextContent(ja),this.state.cell));var xa=C.cloneNode(!0);ka.appendChild(xa);var Ka=mxUtils.bind(this,function(Ha){var ya=+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,ea){var ka=document.createElement("div");ka.style.display="flex";ka.style.alignItems="center";ka.style.marginTop=null!=q||0<ea?"6px":"0px";ka.appendChild(this.graph.createLinkForHint(ja.getAttribute("href"),mxUtils.getTextContent(ja),this.state.cell));var xa=B.cloneNode(!0);ka.appendChild(xa);var Ka=mxUtils.bind(this,function(Ha){var ya=document.createElement("div");ya.innerHTML=Graph.sanitizeHtml(this.graph.getLabel(this.state.cell));var Fa=ya.getElementsByTagName("a")[ea];if(null!=Fa){if(null==Ha||""==Ha){for(Ha=Fa.cloneNode(!0).firstChild;null!=Ha;)Fa.parentNode.insertBefore(Ha.cloneNode(!0),Fa),Ha=Ha.nextSibling;Fa.parentNode.removeChild(Fa)}else Fa.setAttribute("href",Ha);this.graph.labelChanged(this.state.cell,ya.innerHTML)}});mxEvent.addListener(xa,"click",mxUtils.bind(this,function(Ha){this.graph.showLinkDialog(ja.getAttribute("href")||-"",mxResources.get("ok"),Ka);mxEvent.consume(Ha)}));xa=F.cloneNode(!0);ka.appendChild(xa);mxEvent.addListener(xa,"click",mxUtils.bind(this,function(Ha){Ka();mxEvent.consume(Ha)}));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,+"",mxResources.get("ok"),Ka);mxEvent.consume(Ha)}));xa=F.cloneNode(!0);ka.appendChild(xa);mxEvent.addListener(xa,"click",mxUtils.bind(this,function(Ha){Ka();mxEvent.consume(Ha)}));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,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,C=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-C+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",-mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(q=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),C=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",q),q=null!=C?mxUtils.getBoundingBox(this.state,-this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==C&&(C=this.state),C=C.y+C.height,null!=A&&(C=Math.max(C,A.y+A.height)),this.linkHint.style.left=q.x+q.width/2+"px",this.linkHint.style.top=Math.round(C+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var eb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){eb.apply(this,arguments);+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",+mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(q=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),B=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",q),q=null!=B?mxUtils.getBoundingBox(this.state,+this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==B&&(B=this.state),B=B.y+B.height,null!=A&&(B=Math.max(B,A.y+A.height)),this.linkHint.style.left=q.x+q.width/2+"px",this.linkHint.style.top=Math.round(B+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var eb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){eb.apply(this,arguments);this.destroyMoveHandles();this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var Za=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(Za.apply(this),null!=this.state&&null!=this.linkHint)){var q=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(q=new mxRectangle(q.x,q.y,q.width,q.height),q.add(this.state.text.bounds));this.linkHint.style.left=q.x+q.width/2+"px";this.linkHint.style.top=Math.round(q.y+q.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var gb=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){gb.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var bb=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){bb.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();Format=function(a,b){this.editorUi=a;this.container=b};Format.noMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);@@ -3025,7 +3025,7 @@ Format.linkEdgeImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)Format.filledEdgeImage=Graph.createSvgImage(20,22,'<path transform="translate(4,0)" stroke-width="8.5" d="M 0 10 L 34 10" stroke="black" fill="black"/><path transform="translate(4,0)" stroke-width="4.5" d="M 0 10 L 34 10" stroke="white" fill="black"/>',42,20);Format.wireEdgeImage=Graph.createSvgImage(20,22,'<path transform="translate(4,0)" stroke-dasharray="8 8" stroke-width="3.5" d="M 0 10 L 34 10" stroke="red" fill="black"/><path transform="translate(4,0)" stroke-dashoffset="8" stroke-dasharray="8 8" stroke-width="3.5" d="M 0 10 L 34 10" stroke="green" fill="black"/>',42,20);Format.arrowImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2.5" d="M 0 6 L 24 6 L 24 2 L 32 8 L 24 14 L 24 10 L 0 10 Z" stroke="black" fill="none"/>',42,20);Format.simpleArrowImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2.5" d="M 0 6 L 4 6 L 4 10 L 0 10 Z M 7 6 L 18 6 L 18 2 L 25 8 L 18 14 L 18 10 L 7 10 Z M 28 6 L 28 6 L 32 6 L 32 10 L 28 10 Z" stroke="black" fill="none"/>',42,20);-Format.straightImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="4.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);Format.orthogonalImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);+Format.straightImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);Format.orthogonalImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);Format.horizontalElbowImage=Graph.createSvgImage(16,18,'<path transform="translate(3,3)rotate(270,0,0)scale(-1,1)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z M 14 11 L 14 5 M 14 3 L 16 5 L 12 5 Z M 14 17 L 14 23 M 14 25 L 16 23 L 12 23 Z" stroke="black" fill="none"/>',36,36);Format.verticalElbowImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z M 14 11 L 14 5 M 14 3 L 16 5 L 12 5 Z M 14 17 L 14 23 M 14 25 L 16 23 L 12 23 Z" stroke="black" fill="none"/>',36,36);Format.horizontalIsometricImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 19 17 L 10 12 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);Format.verticalIsometricImage=Graph.createSvgImage(16,18,'<path transform="translate(32,4)scale(-1,1)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 19 17 L 10 12 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);@@ -3034,32 +3034,32 @@ 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(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);+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(E,D,G,I){var M=mxUtils.bind(this,function(L,V){h!=E&&(V||(d?this.labelIndex=G:b.isSelectionEmpty()?this.diagramIndex=G:this.currentIndex=+G),null!=h&&h.classList.remove("geActiveFormatTitle"),h=E,h.classList.add("geActiveFormatTitle"),m!=D&&(null!=m&&(m.style.display="none"),m=D,m.style.display=""))});mxEvent.addListener(E,"click",M);var N=d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex;(I&&null==h||G==N)&&M(null,I&&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 B=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"));B.appendChild(u);B.setAttribute("title",mxResources.get("arrange"));-f.appendChild(B);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(B,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,u=k.editor.graph;e=null!=e?e:1;g=null!=g?g:999;var w=null,y=!1,B=null,D=mxUtils.bind(this,function(E){var G=m?parseFloat(a.value):parseInt(a.value);p&&(G=this.fromUnit(G));if(G!=B){B=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};+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,u=k.editor.graph;e=null!=e?e:1;g=null!=g?g:999;var w=null,y=!1,C=null,E=mxUtils.bind(this,function(D){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 I=k.getSelectionState().cells;u.setCellStyles(b,G,I);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(I,function(N){N.removeAttribute("size");N.style.fontSize="";""==N.getAttribute("style")&&N.removeAttribute("style")});for(var M=0;M<I.length;M++)0==u.model.getChildCount(I[M])&&u.autoSizeCell(I[M],!1);k.fireEvent(new mxEventObject("styleChanged",+"keys",[b],"values",[G],"cells",I))}finally{u.getModel().endUpdate()}}a.value=(p?this.inUnit(G):G)+d}mxEvent.consume(D)});h&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,"blur",E);return E};BaseFormatPanel.prototype.createPanel=function(){var a=document.createElement("div");a.className="geFormatSection";return a};BaseFormatPanel.prototype.createTitle=function(a){var b=document.createElement("div");b.className="geFormatSectionTitle";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){function m(y,B,D){""==a.value&&(a.value=null!=d?d:B);B=h?parseFloat(a.value):parseInt(a.value);isNaN(B)||(a.value=B+y,null!=b&&b(D))}f=null!=f?f:1;var p=10*f;e=document.createElement("div");e.className="geBtnStepper";e.style.position="absolute";e.style.left="200px";var k=document.createElement("div");k.style.height="9px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";e.appendChild(k);var u=k.cloneNode(!1);-u.style.backgroundImage="url("+Editor.arrowDownImage+")";e.appendChild(u);mxEvent.addGestureListeners(k,function(y){mxEvent.consume(y)},null,function(y){m(mxEvent.isShiftDown(y)?p:f,"0",y);mxEvent.consume(y)});mxEvent.addGestureListeners(u,function(y){mxEvent.consume(y)},null,function(y){m(-(mxEvent.isShiftDown(y)?p:f),"2",y);mxEvent.consume(y)});if(g){var w=null;mxEvent.addGestureListeners(e,function(y){mxEvent.consume(y)},null,function(y){if(null!=w){try{w.select()}catch(B){}w=null;mxEvent.consume(y)}})}else mxEvent.addListener(e,+BaseFormatPanel.prototype.createStepper=function(a,b,f,e,g,d,h){function m(y,C,E){""==a.value&&(a.value=null!=d?d:C);C=h?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+y,null!=b&&b(E))}f=null!=f?f:1;var p=10*f;e=document.createElement("div");e.className="geBtnStepper";e.style.position="absolute";e.style.left="200px";var k=document.createElement("div");k.style.height="9px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";e.appendChild(k);var u=k.cloneNode(!1);+u.style.backgroundImage="url("+Editor.arrowDownImage+")";e.appendChild(u);mxEvent.addGestureListeners(k,function(y){mxEvent.consume(y)},null,function(y){m(mxEvent.isShiftDown(y)?p:f,"0",y);mxEvent.consume(y)});mxEvent.addGestureListeners(u,function(y){mxEvent.consume(y)},null,function(y){m(-(mxEvent.isShiftDown(y)?p:f),"2",y);mxEvent.consume(y)});if(g){var w=null;mxEvent.addGestureListeners(e,function(y){mxEvent.consume(y)},null,function(y){if(null!=w){try{w.select()}catch(C){}w=null;mxEvent.consume(y)}})}else mxEvent.addListener(e,"click",function(y){mxEvent.consume(y)});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 B=null!=p?p:k.getSelectionState().cells;y=y?e:g;u.setCellStyles(b,y,B);null!=d&&d(B,y);k.fireEvent(new mxEventObject("styleChanged",-"keys",[b],"values",[y],"cells",B))}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,B=document.createElement("div");B.className="geFormatEntry";var D=document.createElement("input");D.setAttribute("type","checkbox");h||B.appendChild(D);var E=document.createElement("span");mxUtils.write(E,a);B.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)};B.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";B.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(B,"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(B,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 B};+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,O){"default"!=T||O||(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 E=document.createElement("input");E.setAttribute("type","checkbox");h||C.appendChild(E);var D=document.createElement("span");mxUtils.write(D,a);C.appendChild(D);var G=+b(),I=!1,M=null,N=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=u(G);L.click();mxEvent.consume(T)}));var V=null,X=function(T,O){I||+(I=!0,null!=d&&d(T),O||(null!=V&&(y.cellEditor.restoreSelection(V),V=null),f(T)),G=b(),T=mxUtils.getLightDarkColor("default"!=G?G:m),O=document.createElement("div"),O.style.width="21px",O.style.height="12px",O.style.margin="2px 18px 2px 3px",O.style.borderWidth="1px",O.style.borderStyle="solid",O.style.backgroundColor=T.cssText,N.innerText="",N.appendChild(O),!p&&mxUtils.isLightDarkColor(G)&&T.light!=T.dark?O.style.background="linear-gradient(to right bottom, "+T.cssText+" 50%, "+mxUtils.invertLightDarkColor(T).cssText++" 50.3%)":p&&w&&(O.style.backgroundColor=k()?T.dark:T.light),null!=M?(O.style.width="21px",O.style.margin="2px 18px 2px 3px",O.appendChild(M)):(O.style.width="36px",O.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?N.setAttribute("title",T):"default"==G?N.setAttribute("title",mxResources.get("useBlackAndWhite")):N.setAttribute("title",G)),y.isSpecialColor(G)?E.style.display=+"none":(E.style.display="",null!=G&&G!=mxConstants.NONE?(E.setAttribute("checked","checked"),E.defaultChecked=!0,E.checked=!0):(E.removeAttribute("checked"),E.defaultChecked=!1,E.checked=!1)),N.style.display=E.checked||h?"":"none",I=!1)};C.appendChild(L);mxEvent.addListener(L,"change",function(){var T=L.value;if(!p){var O=mxUtils.getLightDarkColor(G);k()?O.dark=T:O.light=T;T="light-dark("+O.light+", "+O.dark+")"}X(T)});N=mxUtils.button("",mxUtils.bind(this,function(T){var O=m;p&&k()&&mxUtils.isLightDarkColor(O)&&+(O=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(ca){X(ca)},"default"==e?"default":null,O,p);mxEvent.consume(T)}));N.className="geColorBtn";N.style.display=E.checked||h?"":"none";C.appendChild(N);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&N.setAttribute("title",a);h||(mxEvent.addListener(C,"click",function(T){T=mxEvent.getSource(T);if(T==E||"INPUT"!=T.nodeName)T!=E&&(E.checked=!E.checked),+E.checked||null==G||G==mxConstants.NONE||e==mxConstants.NONE||(e=u(G)),X(E.checked?e:mxConstants.NONE)}),mxEvent.addGestureListeners(E,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(V=y.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(V=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};@@ -3095,174 +3095,175 @@ ArrangePanel.prototype.addAngle=function(a){var b=this.editorUi,f=b.editor.graphBaseFormatPanel.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(){B.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=+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(){E.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 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 B=this.addGeometryHandler(p,function(H,S,fa){S=Math.max(1,b.fromUnit(S));if(e.isTableCell(fa))return e.setTableColumnWidth(fa,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,fa){S=Math.max(1,b.fromUnit(S));e.isTableCell(fa)&&(fa=g.getParent(fa));if(e.isTableRow(fa))return e.setTableRowHeight(fa,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);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,fa){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(fa||document.activeElement!=p)p.value=this.inUnit(d.width)+-" "+this.getUnit();if(fa||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(fa||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(fa||document.activeElement!=J)J.value=this.inUnit(d.y)+" "+this.getUnit();null!=H&&H.relative&&(null==M||!fa&&document.activeElement==M||(M.value=Math.round(1E3*H.x)/10+" %"),null==-Q||!fa&&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]))&&(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,+this.addKeyHandler(p,X);this.addKeyHandler(k,X);var C=this.addGeometryHandler(p,function(H,S,fa){S=Math.max(1,b.fromUnit(S));if(e.isTableCell(fa))return e.setTableColumnWidth(fa,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 E=this.addGeometryHandler(k,function(H,S,fa){S=Math.max(1,b.fromUnit(S));e.isTableCell(fa)&&(fa=g.getParent(fa));if(e.isTableRow(fa))return e.setTableRowHeight(fa,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 D=this.createPanel();D.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"));D.appendChild(m);var G=this.addUnitInput(D,this.getUnit(),87,52,function(){T.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),I=this.addUnitInput(D,this.getUnit(),16,+52,function(){O.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(D);u=!0;var M=null,N=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(D);m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";mxUtils.write(m,mxResources.get("relative"));D.appendChild(m);M=this.addGenericInput(D," %",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]))){u=!1;var V=null;N=this.addUnitInput(D,this.getUnit(),16,52,function(){V.apply(this,arguments)});V=this.addGeometryHandler(N,function(H,S){H.y=b.fromUnit(S)})}else N=this.addGenericInput(D," %",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(D)}}a.appendChild(D)}this.addLabel(D,mxResources.get(u?"left":"line"),87,64);this.addLabel(D,mxResources.get(u?"top":"orthogonal"),16,64);var X=mxUtils.bind(this,function(H,S,fa){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(fa||document.activeElement!=p)p.value=this.inUnit(d.width)++" "+this.getUnit();if(fa||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]);D.style.display="";if(fa||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(fa||document.activeElement!=I)I.value=this.inUnit(d.y)+" "+this.getUnit();null!=H&&H.relative&&(null==M||!fa&&document.activeElement==M||(M.value=Math.round(1E3*H.x)/10+" %"),null==+N||!fa&&document.activeElement==N||(g.isEdge(g.getParent(d.vertices[0]))?N.value=this.inUnit(H.y)+" "+this.getUnit():N.value=Math.round(1E3*H.y)/10+" %"))}else D.style.display="none"});this.listeners.push({destroy:function(){g.removeListener(X)}});g.addListener(mxEvent.CHANGE,X);this.addKeyHandler(G,X);this.addKeyHandler(I,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 O=this.addGeometryHandler(I,+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,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{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)}};+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(D);mxUtils.br(D);D.appendChild(ca)}a.appendChild(D)}};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 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(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 B=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(B,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)?(B.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(B,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 C=mxUtils.getCurrentStyle(q);parseFloat(C.fontSize)*A/100!=parseFloat(C.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=+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,D);var p=mxUtils.bind(this,function(L){var V=parseInt(m.value);+V=Math.min(999,Math.max(1,isNaN(V)?1:V));if(V!=mxUtils.getValue(g.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var X=f.getSelectionState().cells;e.setCellStyles("width",V,X);f.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[V],"cells",X))}m.value=V+" 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 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(){I.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,D);this.addKeyHandler(w,D);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()),E=this.addUnitInput(y,this.getUnit(),16,52,function(){N.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,D);this.addKeyHandler(E,D);var D=mxUtils.bind(this,function(L,V,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)?(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(L,!1)?(C.value=this.inUnit(X.targetPoint.x)+" "+this.getUnit(),E.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(L,V){null!=L.sourcePoint&&(L.sourcePoint.x=b.fromUnit(V))});var I=this.addEdgeGeometryHandler(w,function(L,V){null!=L.sourcePoint&&(L.sourcePoint.y=b.fromUnit(V))});var M=this.addEdgeGeometryHandler(C,function(L,V){null!=L.targetPoint&&(L.targetPoint.x=b.fromUnit(V))});var N=this.addEdgeGeometryHandler(E,function(L,V){null!=L.targetPoint&&(L.targetPoint.y=b.fromUnit(V))});e.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){e.getModel().removeListener(D)}});+D()};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 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 B=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])),B),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])),-B),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])),B);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])),B),Q=g.addButton(Editor.alignMiddleImage,mxResources.get("middle"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_MIDDLE])),B),K=g.addButton(Editor.alignBottomImage,mxResources.get("bottom"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),-B);a.appendChild(B);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)},B);ca.style.marginRight="9px";var H=g.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},B);H.style.marginLeft="10px";var S=g.addButton(Editor.superscriptImage,-mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)",function(){document.execCommand("superscript",!1,null)},B);H.style.marginLeft="10px";D=B.cloneNode(!1);D.style.paddingTop="4px";B=[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)];B[B.length-2].style.marginLeft="10px";a.appendChild(D)}else w[2].style.marginRight="12px",J.style.marginRight=-"12px";B=m.cloneNode(!1);mxUtils.write(B,mxResources.get("position"));var fa=document.createElement("select");fa.style.left="114px";fa.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,+")");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),E=function(q){return function(){return q()}},D=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))}:E(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))}:E(g.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_CENTER])),+C),I=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))}:E(g.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);d.cellEditor.isContentEditing()&&(V=g.addButton(Editor.strikethroughImage,mxResources.get("strikethrough"),function(){document.execCommand("strikeThrough",+!1,null)},k));var M=g.addButton(Editor.alignTopImage,mxResources.get("top"),E(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),N=g.addButton(Editor.alignMiddleImage,mxResources.get("middle"),E(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_MIDDLE])),C),L=g.addButton(Editor.alignBottomImage,mxResources.get("bottom"),E(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),+C);a.appendChild(C);var V,X,T,O;if(d.cellEditor.isContentEditing()){M.style.display="none";N.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,+mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)",function(){document.execCommand("superscript",!1,null)},C);H.style.marginLeft="10px";E=C.cloneNode(!1);E.style.paddingTop="4px";C=[g.addButton(Editor.orderedListImage,mxResources.get("numberedList"),function(){document.execCommand("insertorderedlist",!1,null)},E),g.addButton(Editor.unorderedListImage,mxResources.get("bulletedList"),function(){document.execCommand("insertunorderedlist",!1,null)},E),g.addButton(Editor.indentImage,mxResources.get("increaseIndent"),+function(){document.execCommand("indent",!1,null)},E),g.addButton(Editor.outdentImage,mxResources.get("decreaseIndent"),function(){document.execCommand("outdent",!1,null)},E),g.addButton(Editor.removeFormatImage,mxResources.get("removeFormat"),function(){document.execCommand("removeformat",!1,null)},E),g.addButton(Editor.codeImage,mxResources.get("html"),function(){d.cellEditor.toggleViewMode()},E)];C[C.length-2].style.marginLeft="10px";a.appendChild(E)}else w[2].style.marginRight="12px",I.style.marginRight=+"12px";C=m.cloneNode(!1);mxUtils.write(C,mxResources.get("position"));var fa=document.createElement("select");fa.style.left="114px";fa.style.width="98px";var la="topLeft top topRight left center right bottomLeft bottom bottomRight".split(" "),P={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,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM],left:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE],center:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE],right:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE],bottomLeft:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_TOP],bottom:[mxConstants.ALIGN_CENTER,-mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP],bottomRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP]};for(D=0;D<la.length;D++){var V=document.createElement("option");V.setAttribute("value",la[D]);mxUtils.write(V,mxResources.get(la[D]));fa.appendChild(V)}B.appendChild(fa);la=B.cloneNode(!1);mxUtils.write(la,mxResources.get("writingDirection"));var Y=fa.cloneNode(!1);V=["automatic","leftToRight","rightToLeft"];h.html&&(V.push("vertical-leftToRight"),-V.push("vertical-rightToLeft"));var ha={automatic:null,leftToRight:mxConstants.TEXT_DIRECTION_LTR,rightToLeft:mxConstants.TEXT_DIRECTION_RTL,"vertical-leftToRight":mxConstants.TEXT_DIRECTION_VERTICAL_LR,"vertical-rightToLeft":mxConstants.TEXT_DIRECTION_VERTICAL_RL};for(D=0;D<V.length;D++){var ia=document.createElement("option");ia.setAttribute("value",V[D]);"vertical-"==V[D].substring(0,9)?mxUtils.write(ia,mxResources.get("vertical")+" ("+mxResources.get(V[D].substring(9))+")"):mxUtils.write(ia,mxResources.get(V[D]));-Y.appendChild(ia)}la.appendChild(Y);d.isEditing()||(a.appendChild(B),mxEvent.addListener(fa,"change",function(q){d.getModel().beginUpdate();try{var A=O[fa.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],h.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],h.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],h.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],h.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(q)}),a.appendChild(la),mxEvent.addListener(Y,-"change",function(q){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ha[Y.value],h.cells);mxEvent.consume(q)}));var ta=document.createElement("input");ta.style.position="absolute";ta.style.left="146px";ta.style.width="52px";k.appendChild(ta);B=this.installInputHandler(ta,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(q){if(null!=d.getSelectedEditingElement()){ta.value=q+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),-C=0;C<A.length;C++)if("1"==A[C].getAttribute("size")){A[C].removeAttribute("size");A[C].style.fontSize="";var F=mxUtils.getCurrentStyle(A[C]);q!=b(F)?A[C].style.fontSize=q+"px":""==A[C].getAttribute("style")&&A[C].removeAttribute("style")}}},!0);B=this.createStepper(ta,B,1,!0,Menus.prototype.defaultFontSize);B.style.display=ta.style.display;B.style.left="198px";"inherit"==h.style[mxConstants.STYLE_FONTSIZE]&&(ta.style.display="none",B.style.display="none");k.appendChild(B);var aa=null,P=d.shapeBackgroundColor,-ba=null,ma=d.shapeForegroundColor;k=mxUtils.getLightDarkColor(d.shapeBackgroundColor);var La="light-dark("+mxUtils.hex2rgb(k.light)+", "+mxUtils.hex2rgb(k.dark)+")",na=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("backgroundColor"),function(){return P==d.shapeBackgroundColor||P==La?"default":P},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,q,!1),g.fireEvent(new mxEventObject("styleChanged","keys",-[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[q],"cells",h.cells)))},"default",{install:function(q){aa=q},destroy:function(){aa=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,"default",null,function(q){d.updateLabelElements(h.cells,function(A){A.style.backgroundColor=null})},d.shapeBackgroundColor);na.style.fontWeight="bold";var za=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,+mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP],bottomRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP]};for(E=0;E<la.length;E++){var W=document.createElement("option");W.setAttribute("value",la[E]);mxUtils.write(W,mxResources.get(la[E]));fa.appendChild(W)}C.appendChild(fa);la=C.cloneNode(!1);mxUtils.write(la,mxResources.get("writingDirection"));var Y=fa.cloneNode(!1);W=["automatic","leftToRight","rightToLeft"];h.html&&(W.push("vertical-leftToRight"),+W.push("vertical-rightToLeft"));var ha={automatic:null,leftToRight:mxConstants.TEXT_DIRECTION_LTR,rightToLeft:mxConstants.TEXT_DIRECTION_RTL,"vertical-leftToRight":mxConstants.TEXT_DIRECTION_VERTICAL_LR,"vertical-rightToLeft":mxConstants.TEXT_DIRECTION_VERTICAL_RL};for(E=0;E<W.length;E++){var ia=document.createElement("option");ia.setAttribute("value",W[E]);"vertical-"==W[E].substring(0,9)?mxUtils.write(ia,mxResources.get("vertical")+" ("+mxResources.get(W[E].substring(9))+")"):mxUtils.write(ia,mxResources.get(W[E]));+Y.appendChild(ia)}la.appendChild(Y);d.isEditing()||(a.appendChild(C),mxEvent.addListener(fa,"change",function(q){d.getModel().beginUpdate();try{var A=P[fa.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],h.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],h.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],h.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],h.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(q)}),a.appendChild(la),mxEvent.addListener(Y,+"change",function(q){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ha[Y.value],h.cells);mxEvent.consume(q)}));var ta=document.createElement("input");ta.style.position="absolute";ta.style.left="146px";ta.style.width="52px";k.appendChild(ta);C=this.installInputHandler(ta,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(q){if(null!=d.getSelectedEditingElement()){ta.value=q+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),+B=0;B<A.length;B++)if("1"==A[B].getAttribute("size")){A[B].removeAttribute("size");A[B].style.fontSize="";var F=mxUtils.getCurrentStyle(A[B]);q!=b(F)?A[B].style.fontSize=q+"px":""==A[B].getAttribute("style")&&A[B].removeAttribute("style")}}},!0);C=this.createStepper(ta,C,1,!0,Menus.prototype.defaultFontSize);C.style.display=ta.style.display;C.style.left="198px";"inherit"==h.style[mxConstants.STYLE_FONTSIZE]&&(ta.style.display="none",C.style.display="none");k.appendChild(C);var aa=null,Q=d.shapeBackgroundColor,+ba=null,ma=d.shapeForegroundColor;k=mxUtils.getLightDarkColor(d.shapeBackgroundColor);var Na="light-dark("+mxUtils.hex2rgb(k.light)+", "+mxUtils.hex2rgb(k.dark)+")",oa=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("backgroundColor"),function(){return Q==d.shapeBackgroundColor||Q==Na?"default":Q},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,q,!1),g.fireEvent(new mxEventObject("styleChanged","keys",+[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[q],"cells",h.cells)))},"default",{install:function(q){aa=q},destroy:function(){aa=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,"default",null,function(q){d.updateLabelElements(h.cells,function(A){A.style.backgroundColor=null})},d.shapeBackgroundColor);oa.style.fontWeight="bold";var za=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,"default",null,null,d.shapeForegroundColor);za.style.fontWeight="bold";k=1<=h.vertices.length?d.stylesheet.getDefaultVertexStyle():d.stylesheet.getDefaultEdgeStyle();k=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("fontColor"),function(){return ma},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=mxConstants.NONE),Graph.setTextColor(d.cellEditor.textarea,q,!0),g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTCOLOR],"values",[q],"cells",-h.cells)))},"default",{install:function(q){ba=q},destroy:function(){ba=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),mxConstants.STYLE_FONTCOLOR,"default",function(q){na.style.display=q==mxConstants.NONE?"none":"";za.style.display=na.style.display},function(q){q==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",h.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,-null,h.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,q,h.cells);d.updateLabelElements(h.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);"inherit"==h.style[mxConstants.STYLE_FONTCOLOR]&&(k.style.display="none");k.style.fontWeight="bold";p.appendChild(k);p.appendChild(na);k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled",-"disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(p.appendChild(za),p.appendChild(k));a.appendChild(p);p=this.createPanel();p.style.paddingTop="2px";p.style.paddingBottom="4px";B=d.filterSelectionCells(mxUtils.bind(this,function(q){var A=d.view.getState(q);return null==A||d.getModel().isEdge(q)||d.isAutoSizeState(A)}));k=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,B);k.style.fontWeight="bold";0<B.length&&p.appendChild(k);-B=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,g.actions.get("formattedText"));B.style.fontWeight="bold";p.appendChild(B);B=d.view.getState(d.getSelectionCell());if(1<d.getSelectionCount()&&"1"==h.style.convertToSvg||1==d.getSelectionCount()&&null!=B&&null!=B.text&&null!=B.text.node&&0==B.text.node.getElementsByTagName("foreignObject").length)k.style.opacity="0.5",k.getElementsByTagName("input")[0].setAttribute("disabled","disabled");k=this.createCellOption(mxResources.get("lblToSvg"),-"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";B=document.createElement("div");B.style.position="absolute";B.style.width="70px";B.style.marginTop="0px";B.style.fontWeight="bold";mxUtils.write(B,mxResources.get("spacing"));k.appendChild(B);-var Aa=this.addUnitInput(k,this.getUnit(),87,52,function(){db.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ma=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(),+h.cells)))},"default",{install:function(q){ba=q},destroy:function(){ba=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),mxConstants.STYLE_FONTCOLOR,"default",function(q){oa.style.display=q==mxConstants.NONE?"none":"";za.style.display=oa.style.display},function(q){q==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",h.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,+null,h.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,q,h.cells);d.updateLabelElements(h.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);"inherit"==h.style[mxConstants.STYLE_FONTCOLOR]&&(k.style.display="none");k.style.fontWeight="bold";p.appendChild(k);p.appendChild(oa);k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled",+"disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(p.appendChild(za),p.appendChild(k));a.appendChild(p);p=this.createPanel();p.style.paddingTop="2px";p.style.paddingBottom="4px";C=d.filterSelectionCells(mxUtils.bind(this,function(q){var A=d.view.getState(q);return null==A||d.getModel().isEdge(q)||d.isAutoSizeState(A)}));k=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,C);k.style.fontWeight="bold";0<C.length&&p.appendChild(k);+C=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,g.actions.get("formattedText"));C.style.fontWeight="bold";p.appendChild(C);C=d.view.getState(d.getSelectionCell());if(1<d.getSelectionCount()&&"1"==h.style.convertToSvg||1==d.getSelectionCount()&&null!=C&&null!=C.text&&null!=C.text.node&&0==C.text.node.getElementsByTagName("foreignObject").length)k.style.opacity="0.5",k.getElementsByTagName("input")[0].setAttribute("disabled","disabled");k=this.createCellOption(mxResources.get("lblToSvg"),+"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 Aa=this.addUnitInput(k,this.getUnit(),87,52,function(){db.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),La=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()),Ja=this.addUnitInput(k,this.getUnit(),87,52,function(){eb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ia=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 C=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&C==d.cellEditor.textarea){var F=window.getSelection();if(F.getRangeAt&&0<F.rangeCount){var L=F.getRangeAt(0);C=document.createElement("div");C.appendChild(L.extractContents());d.cellEditor.textarea.innerHTML=-"";d.cellEditor.textarea.appendChild(C);F.removeAllRanges();L=new Range;L.selectNodeContents(C);F.addRange(L)}}if(null!=C)for(C!=d.cellEditor.textarea&&f(C,A),C=C.getElementsByTagName("*"),F=window.getSelection(),L=0;L<C.length;L++)F.containsNode(C[L],!0)&&f(C[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]);B=[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);B=[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)];B[2].style.marginRight="10px";p=this.createPanel();p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(k);m=m.cloneNode(!1);B=[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(C,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(C){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(L){L.style.border=null});null==C||C==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+C,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(C,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(C){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(L){L.style.backgroundColor=null});F.style.backgroundColor=null==C||C==mxConstants.NONE?-"":C})}}),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)];B[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,C){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(C||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);+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==+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!=O&&d.insertRow(X,O.sectionRowIndex)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=X&&null!=O&&d.insertRow(X,O.sectionRowIndex+1)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.removeRowImage,+mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=X&&null!=O&&d.deleteRow(X,O.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?+"":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(E=0;3>E;E++)(function(q){mxEvent.addListener(w[q],"click",function(){e(w[q],""==w[q].style.backgroundImage)})})(E);+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(D,q==mxConstants.ALIGN_LEFT);e(G,q==mxConstants.ALIGN_CENTER);e(I,q==mxConstants.ALIGN_RIGHT);q=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);e(M,q==mxConstants.ALIGN_TOP);e(N,q==mxConstants.ALIGN_MIDDLE);e(L,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);fa.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(C||document.activeElement!=Ma)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING,2)),Ma.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(C||document.activeElement!=Aa)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_TOP,0)),Aa.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(C||document.activeElement!=Ia)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ia.value=isNaN(q)?"":this.inUnit(q)+-" "+this.getUnit();if(C||document.activeElement!=Ja)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ja.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(C||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(Ma,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var db=this.installInputHandler(Aa,mxConstants.STYLE_SPACING_TOP,-0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var eb=this.installInputHandler(Ja,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(Ma,Wa);this.addKeyHandler(Aa,+(Y.value="vertical-rightToLeft"):Y.value="automatic";if(B||document.activeElement!=La)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING,2)),La.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Aa)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_TOP,0)),Aa.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ia)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ia.value=isNaN(q)?"":this.inUnit(q)++" "+this.getUnit();if(B||document.activeElement!=Ja)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ja.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(La,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var db=this.installInputHandler(Aa,mxConstants.STYLE_SPACING_TOP,+0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var eb=this.installInputHandler(Ja,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(La,Wa);this.addKeyHandler(Aa,Wa);this.addKeyHandler(Ia,Wa);this.addKeyHandler(Ja,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(ya,Fa){if(null!=ya&&null!=Fa){if(ya==Fa)return!0;if(ya.length>-Fa.length+1)return ya.substring(ya.length-Fa.length-1,ya.length)=="-"+Fa}return!1},C=function(ya){if(null!=d.getParentByName(q,ya,d.cellEditor.textarea))return!0;for(var Fa=q;null!=Fa&&1==Fa.childNodes.length;)if(Fa=Fa.childNodes[0],Fa.nodeName==ya)return!0;return!1},F=function(ya){for(;null!=ya&&ya!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(ya).display)return ya;ya=ya.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("*"),ea=window.getSelection(),ka=0;ka<ja.length&&(!ea.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||C("B")||C("STRONG"));e(w[1],"italic"==L.fontStyle||C("I")||C("EM"));e(w[2],"underline"==L.textDecorationLine||C("U"));e(W,"line-through"==L.textDecorationLine||C("STRIKE"));e(S,C("SUP"));e(H,C("SUB"));var xa=F(q);if(null!=xa){C=function(ya,Fa){Ha.push({name:ya,dispName:Fa,type:"string",getValue:function(){return Ka[ya]},valueChanged:function(va,ua){var Ta=xa.style,Ra=va;parseInt(Ra)==Ra&&(Ra+="px",-null!=ua&&(ua.value=Ra));Ta[ya]=Ra;""==va&&null!=ua&&(ua.value=Ka[ya])}})};var Ka=mxUtils.getCurrentStyle(xa),Ha=[];C("paddingTop","Padding Top");C("paddingRight","Padding Right");C("paddingLeft","Padding Left");C("paddingBottom","Padding Bottom");C("marginTop","Margin Top");C("marginRight","Margin Right");C("marginLeft","Margin Left");C("marginBottom","Margin Bottom");C=this.createPanel();this.addProperties(C,Ha,h,!0);null!=gb?gb.parentNode.replaceChild(C,gb):a.appendChild(C);gb=C}d.cellEditor.isTableSelected()?-(e(ca,A(L.textAlign,"justify")),e(E,A(L.textAlign,"left")),e(G,A(L.textAlign,"center")),e(J,A(L.textAlign,"right"))):(C=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,C==mxConstants.ALIGN_LEFT),e(G,C==mxConstants.ALIGN_CENTER),e(J,C==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,+Fa.length+1)return ya.substring(ya.length-Fa.length-1,ya.length)=="-"+Fa}return!1},B=function(ya){if(null!=d.getParentByName(q,ya,d.cellEditor.textarea))return!0;for(var Fa=q;null!=Fa&&1==Fa.childNodes.length;)if(Fa=Fa.childNodes[0],Fa.nodeName==ya)return!0;return!1},F=function(ya){for(;null!=ya&&ya!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(ya).display)return ya;ya=ya.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("*"),ea=window.getSelection(),ka=0;ka<ja.length&&(!ea.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(V,"line-through"==K.textDecorationLine||B("STRIKE"));e(S,B("SUP"));e(H,B("SUB"));var xa=F(q);if(null!=xa){B=function(ya,Fa){Ha.push({name:ya,dispName:Fa,type:"string",getValue:function(){return Ka[ya]},valueChanged:function(va,ua){var Ta=xa.style,Ra=va;parseInt(Ra)==Ra&&(Ra+="px",+null!=ua&&(ua.value=Ra));Ta[ya]=Ra;""==va&&null!=ua&&(ua.value=Ka[ya])}})};var Ka=mxUtils.getCurrentStyle(xa),Ha=[];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,Ha,h,!0);null!=gb?gb.parentNode.replaceChild(B,gb):a.appendChild(B);gb=B}d.cellEditor.isTableSelected()?+(e(ca,A(K.textAlign,"justify")),e(D,A(K.textAlign,"left")),e(G,A(K.textAlign,"center")),e(I,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(D,!1),e(G,!1),e(I,!1)):(e(ca,!1),e(D,B==mxConstants.ALIGN_LEFT),e(G,B==mxConstants.ALIGN_CENTER),e(I,B==mxConstants.ALIGN_RIGHT)));X=d.getParentByName(q,"TABLE",d.cellEditor.textarea);O=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&&(Q=d.getTextColor(q,!1),aa(Q,!0));g.toolbar.setMenuText(u,mxUtils.getCssFontFamily(K.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 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,B,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(B+" "+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);+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,E){var D=mxUtils.trim(w.style.getPropertyValue(y));if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(I){g[d].style.setProperty(y,I==mxConstants.NONE?+"transparent":mxUtils.getLightDarkColor(I).cssText);I="";p&&mxUtils.isLightDarkColor(g[d].style[y])&&(f.documentElement.style.colorScheme="light dark");for(var M=0;M<g.length;M++)I+=g[M].cssText+" ";e.textContent=I;I=mxUtils.getXml(f.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(I))):Base64.encode(I,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(I){},destroy:function(){}},null,null,null,E);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),mxEvent.addListener(f,"change",mxUtils.bind(this,function(k){"openLibrary"==f.value?(null!=g&&0==g.length&&(this.editorUi.sidebar.updateSearchIndex(),k=this.editorUi.sidebar.getKeyStyle(b.cells[0].style),g=this.editorUi.sidebar.getLibsForStyle(k)),null!=g&&0<g.length?this.editorUi.sidebar.openLibraries(g):this.editorUi.handleError({message:mxResources.get("objectNotFound")}),f.value="edit"):(k=this.editorUi.actions.get(f.value),f.value="edit",null!=k&&k.funct())})),b.image&&(e=this.editorUi.editor.graph,e=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="";B=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 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 B;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!=B){h.innerHTML="";B=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!=B&&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(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.addFill=function(a){function b(){h.innerHTML="";C=1;for(var D=0;D<Editor.fillStyles.length;D++){var G=document.createElement("option");G.setAttribute("value",Editor.fillStyles[D].val);mxUtils.write(G,Editor.fillStyles[D].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(D){mxEvent.consume(D)});+mxEvent.addListener(h,"click",function(D){mxEvent.consume(D)});var m=this.createCellColorOption(mxResources.get("gradient"),mxConstants.STYLE_GRADIENTCOLOR,"default",function(D){d.style.display=null==D||D==mxConstants.NONE?"none":""},function(D){e.updateCellStyles({gradientColor:D},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(D){e.setCellStyles(p,D,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 E=mxUtils.bind(this,function(){g=f.getSelectionState();var D=mxUtils.getValue(g.style,mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(g.style,"fillStyle","auto");""==D&&(D=mxConstants.DIRECTION_SOUTH);d.value=D;a.style.display=+g.fill?"":"none";D=mxUtils.getValue(g.style,p,null);if(g.fill&&null!=D&&D!=mxConstants.NONE&&"filledEdge"!=g.style.shape){if("1"==g.style.sketch){if(2!=C){h.innerHTML="";C=2;for(D=0;D<Editor.roughFillStyles.length;D++){var I=document.createElement("option");I.setAttribute("value",Editor.roughFillStyles[D].val);mxUtils.write(I,Editor.roughFillStyles[D].dispName);h.appendChild(I)}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,E);this.listeners.push({destroy:function(){e.getModel().removeListener(E)}});E();mxEvent.addListener(d,"change",function(D){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(D)});mxEvent.addListener(h,"change",function(D){e.setCellStyles("fillStyle",h.value,g.cells);f.fireEvent(new mxEventObject("styleChanged","keys",["fillStyle"],"values",[h.value],"cells",g.cells));mxEvent.consume(D)});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(D,G,I){if(null!=D){D=D.split(",");+G=null!=G?G.split(","):null;for(var M=0;M<D.length;M++){var N=D[M].replace(/([a-z])([A-Z])/g,"$1 $2"),L=null!=G?G[mxUtils.mod(M,G.length)]:null,V=null!=L?L:"default";a.appendChild(this.createCellColorOption(N.charAt(0).toUpperCase()+N.substring(1),D[M],V,null,null,I,L))}}});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"],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 La=0;La<ba.length;La++)d.setCellStyles(ba[La],-ma[La],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 B=m.cloneNode(!1);B.style.position="relative";var D=mxUtils.bind(this,function(P,ba,ma,La,na){P=this.editorUi.menus.styleChange(P,"",La,na,"",null);La=document.createElement("div");na=ma.split(" ");2==na.length?(ma=parseInt(na[0])+parseInt(na[1]),-na=parseInt(na[0])/ma*100,La.style.borderBottomStyle="none",La.style.backgroundImage="linear-gradient(to right, black "+na+"%, transparent 0%)",La.style.backgroundSize=ma+"px 1px"):La.style.borderBottomStyle=ma;P.firstChild.firstChild.className="geStyleMenuItem";P.firstChild.firstChild.style.width=ba+"px";P.firstChild.firstChild.appendChild(La);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,B),G=B.cloneNode(!1),J=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){var ba=[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,-mxConstants.STYLE_DASHED,"width"];Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,[null,null,null,null,null],"",null,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line"));Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,["link",null,null,null,null],"",null,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link"));Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,["flexArrow",null,null,null,null],-"",null,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow"));Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,["arrow",null,null,null,null],"",null,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow"));Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,["filledEdge",null,null,null,null],"",null,null,null,!0,Format.filledEdgeImage.src)).setAttribute("title","Filled Edge");Format.processMenuIcon(this.editorUi.menus.styleChange(P,-"",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=B.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"));-B.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;B.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,-mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,null,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==h.style.shape&&Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,null,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),-Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation")))})),"",null,k),X=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){if("connector"==h.style.shape||"flexArrow"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src)),-Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,-null,!1,Format.blockThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],-[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK_THIN,0],null,null,!1,Format.blockThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],["async",0],null,null,!1,Format.asyncMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OVAL,0],null,null,!1,Format.ovalMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND,0],null,null,!1,Format.diamondMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["box",0],null,null,!1,Format.boxMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,-"startFill"],["circle",1],null,null,!1,Format.circleMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],-["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],-["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,-"startFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src))):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW],[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src)).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),T=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){if("connector"==h.style.shape||-"flexArrow"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,-"endFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src),"scaleX(-1)"),-Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,-1],null,null,!1,Format.blockFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,null,!1,Format.blockThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src),-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],-[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,0],null,null,!1,Format.blockThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",0],null,null,!1,Format.asyncMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,0],null,null,!1,Format.ovalMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,0],null,null,!1,Format.diamondMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src),-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["box",0],null,null,!1,Format.boxMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src),-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circle",0],null,null,!1,Format.circleMarkerImage.src),-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src),-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToOne",0],null,null,-!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(u);a.appendChild(G);a.appendChild(B);u=B.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 fa=this.addUnitInput(u,+StyleFormatPanel.prototype.addDashPattern=function(a,b){var f=b.split(" ");if(2<=f.length){for(var e=0,g=0;g<f.length;g++)e+=parseInt(f[g]);b=Graph.createSvgImage(e,1,'<line transform="translate(0,1)" x1="0" y1="0" x2="'+e+'" y2="0" stroke-dasharray="'+b+'" stroke-width="2" stroke="black"/>',e,1);a.style.backgroundImage="url("+b.src+")";a.style.backgroundSize=e+"px 1px";a.style.backgroundRepeat="repeat-x"}else a.style.borderBottomStyle=b};+StyleFormatPanel.prototype.addStroke=function(a){function b(Q){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(Q)}function f(Q){var ba=e.fromUnit(parseFloat(N.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)));N.value=e.inUnit(ba)+" "+e.getUnit();mxEvent.consume(Q)}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"],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(Q){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 Na=0;Na<ba.length;Na++)d.setCellStyles(ba[Na],+ma[Na],h.cells);g.fireEvent(new mxEventObject("styleChanged","keys",ba,"values",ma,"cells",h.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(Q)});mxEvent.addListener(p,"click",function(Q){mxEvent.consume(Q)});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(Q){d.setCellStyles(y,Q,h.cells);if(null==Q||+Q==mxConstants.NONE){Q=[];for(var ba=0;ba<h.cells.length;ba++)(d.isTableCell(h.cells[ba])||d.isTableRow(h.cells[ba]))&&Q.push(h.cells[ba]);0<Q.length&&d.setCellStyles(y,"inherit",Q)}}),d.shapeForegroundColor);u.style.fontWeight="bold";u.appendChild(p);var C=m.cloneNode(!1);C.style.position="relative";var E=mxUtils.bind(this,function(Q,ba,ma,Na,oa){Q=this.editorUi.menus.styleChange(Q,"",Na,oa,"",null);Na=document.createElement("div");this.addDashPattern(Na,ma);Q.firstChild.firstChild.className="geStyleMenuItem";+Q.firstChild.firstChild.style.width=ba+"px";Q.firstChild.firstChild.appendChild(Na);return Q}),D=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(Q){E(Q,110,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(Q,110,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");E(Q,110,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],+["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");E(Q,110,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");E(Q,110,"8 4 1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 4 1 4"]).setAttribute("title",mxResources.get("dashed")+" (4)");E(Q,110,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");+E(Q,110,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(Q,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),I=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(Q){var ba=[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,mxConstants.STYLE_DASHED,"width"];Format.processMenuIcon(this.editorUi.menus.styleChange(Q,+"",ba,[null,null,null,null,null],"",null,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line"));Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",ba,["link",null,null,null,null],"",null,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link"));Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",ba,["flexArrow",null,null,null,null],"",null,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow"));+Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",ba,["arrow",null,null,null,null],"",null,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow"));Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",ba,["filledEdge",null,null,null,null],"",null,null,null,!0,Format.filledEdgeImage.src)).setAttribute("title","Filled Edge");Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",ba,["pipe",null,null,null,null],"",null,null,null,!0,Format.pipeEdgeImage.src)).setAttribute("title",+"Pipe");Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",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(Q){E(Q,40,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(Q,40,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")++" (1)");E(Q,40,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");E(Q,40,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");E(Q,40,"8 4 1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 4 1 4"]).setAttribute("title",mxResources.get("dashed")+" (4)");E(Q,40,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],+["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");E(Q,40,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(Q,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 N=M.cloneNode(!0);N.style.width="56px";N.style.left="144px";G.appendChild(N);var L=this.createStepper(M,b,this.getUnitStep(),null,null,this.isFloatUnit());L.style.display=M.style.display;C.appendChild(L);L=this.createStepper(N,f,this.getUnitStep(),null,null,this.isFloatUnit());L.style.display=N.style.display;G.appendChild(L);mxEvent.addListener(M,"blur",b);mxEvent.addListener(M,"change",b);mxEvent.addListener(N,"blur",f);mxEvent.addListener(N,"change",+f);var V=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(Q){"arrow"!=h.style.shape&&(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[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(Q,"",[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(Q,"",[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(Q,"",[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(Q,"",[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(Q,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,null,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==h.style.shape&&Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",+"1",null],null,null,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation")))})),"",null,k),X=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(Q){if("connector"==h.style.shape||"flexArrow"==h.style.shape||+"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,+1],null,null,!1,Format.classicFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,+"startFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,null,!1,Format.blockThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src)),+Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK_THIN,+0],null,null,!1,Format.blockThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["async",0],null,null,!1,Format.asyncMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OVAL,0],null,null,!1,Format.ovalMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND,+0],null,null,!1,Format.diamondMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["box",0],null,null,!1,Format.boxMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],+["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circlePlus",+0],null,null,!1,Format.circlePlusMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circle",1],null,null,!1,Format.circleMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERone",0],+null,null,!1,Format.EROneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERoneToMany",0],+null,null,!1,Format.ERoneToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],+["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src))):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW],[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src)).setAttribute("title",mxResources.get("block")),Q.div.style.width="40px",window.setTimeout(mxUtils.bind(this,+function(){null!=Q.div&&mxUtils.fit(Q.div)}),0)})),"",null,k),T=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(Q){if("connector"==h.style.shape||"flexArrow"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==h.style.shape||"filledEdge"==+h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src),+"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,null,!1,Format.blockThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,+"endFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src),+"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,0],null,null,!1,Format.blockThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",+0],null,null,!1,Format.asyncMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,0],null,null,!1,Format.ovalMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,0],null,null,!1,Format.diamondMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,+"endFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["box",0],null,null,!1,Format.boxMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],["circle",0],null,null,!1,Format.circleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src),"scaleX(-1)")):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW],[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)").setAttribute("title",mxResources.get("block")),Q.div.style.width="40px",window.setTimeout(mxUtils.bind(this,function(){null!=Q.div&&mxUtils.fit(Q.div)}),0)})),"",null,k);I.style.width="67px";I.style.marginRight=+"2px";w.style.width="67px";w.style.marginRight="2px";V.style.width="67px";V.style.marginRight="2px";X.style.width="67px";X.style.marginRight="2px";T.style.width="67px";T.style.marginRight="2px";this.addArrow(I).appendChild(document.createElement("div"));this.addArrow(V).appendChild(document.createElement("div"));this.addArrow(X);this.addArrow(T);D.style.width="142px";D=this.addArrow(D);w=this.addArrow(w);var O=document.createElement("div");O.className="gePatternPreview";O.style.width="100px";O.style.borderBottomStyle=+"solid";D.appendChild(O);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);D=document.createElement("div");D.style.height="8px";u.appendChild(D);w=w.cloneNode(!1);mxUtils.write(w,mxResources.get("spacing"));u.appendChild(w);var fa=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 La(na,za,Aa,Ma){Aa=Aa.getElementsByTagName("div")[0];null!=Aa&&g.updateCssForMarker(Aa,Ma,h.style.shape,na,za);return Aa}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,-mxConstants.STYLE_NOEDGESTYLE,null)&&(ba=null),"orthogonalEdgeStyle"==ba&&"1"==mxUtils.getValue(h.style,mxConstants.STYLE_CURVED,null)?P.style.backgroundImage="url("+Format.curvedImage.src+")":"straight"==ba||"none"==ba||null==ba?P.style.backgroundImage="url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==ba?P.style.backgroundImage="url("+Format.entityImage.src+")":"elbowEdgeStyle"==ba?"vertical"==mxUtils.getValue(h.style,mxConstants.STYLE_ELBOW,null)?P.style.backgroundImage="url("+Format.verticalElbowImage.src+-")":P.style.backgroundImage="url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==ba?"vertical"==mxUtils.getValue(h.style,mxConstants.STYLE_ELBOW,null)?P.style.backgroundImage="url("+Format.verticalIsometricImage.src+")":P.style.backgroundImage="url("+Format.horizontalIsometricImage.src+")":P.style.backgroundImage="url("+Format.orthogonalImage.src+")");P=J.getElementsByTagName("div")[1];null!=P&&(P.style.backgroundImage="link"==h.style.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==-h.style.shape?"url("+Format.arrowImage.src+")":"arrow"==h.style.shape?"url("+Format.simpleArrowImage.src+")":"filledEdge"==h.style.shape?"url("+Format.filledEdgeImage.src+")":"pipe"==h.style.shape?"url("+Format.pipeEdgeImage.src+")":"wire"==h.style.shape?"url("+Format.wireEdgeImage.src+")":"url("+Format.connectionImage.src+")");h.edges.length==h.cells.length?(G.style.display="",B.style.display="none"):(G.style.display="none",B.style.display="");Graph.lineJumpsEnabled&&0<h.edges.length&&0==h.vertices.length&&-h.lineJumps&&(a.style.borderBottomStyle="none");La(mxUtils.getValue(h.style,mxConstants.STYLE_STARTARROW,null),mxUtils.getValue(h.style,"startFill","1"),X,"start");La(mxUtils.getValue(h.style,mxConstants.STYLE_ENDARROW,null),mxUtils.getValue(h.style,"endFill","1"),T,"end");mxUtils.setOpacity(W,"arrow"==h.style.shape?30:100);"connector"!=h.style.shape&&"flexArrow"!=h.style.shape&&"filledEdge"!=h.style.shape&&"wire"!=h.style.shape&&"pipe"!=h.style.shape&&(mxUtils.setOpacity(X,30),mxUtils.setOpacity(T,-30));if(ma||document.activeElement!=H)P=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE)),H.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit();if(ma||document.activeElement!=fa)P=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),fa.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit();if(ma||document.activeElement!=S)P=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE)),S.value=isNaN(P)?-"":this.inUnit(P)+" "+this.getUnit();if(ma||document.activeElement!=fa)P=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)),la.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit();if(ma||document.activeElement!=O)P=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_PERIMETER_SPACING,0)),O.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit()});var Y=this.installInputHandler(H,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),-!0);var ha=this.installInputHandler(fa,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ia=this.installInputHandler(S,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ta=this.installInputHandler(la,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var aa=this.installInputHandler(O,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),-null,this.isFloatUnit(),!0);this.addKeyHandler(M,V);this.addKeyHandler(H,V);this.addKeyHandler(fa,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 u=mxUtils.bind(this,function(w,y,B){e=b.getSelectionState();d.value=mxUtils.getValue(e.style,"jumpStyle","none");if(B||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};+mxResources.get("perimeter"));m.appendChild(w);var P=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 W=mxUtils.bind(this,function(Q,ba,ma){function Na(oa,za,Aa,La){Aa=Aa.getElementsByTagName("div")[0];null!=Aa&&g.updateCssForMarker(Aa,La,h.style.shape,oa,za);return Aa}h=g.getSelectionState();if(ma||+document.activeElement!=M)Q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)),M.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit();if(ma||document.activeElement!=N)Q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)),N.value=isNaN(Q)?"":this.inUnit(Q)+" "+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");O.style.borderBottom="1px solid black";"1"==mxUtils.getValue(h.style,mxConstants.STYLE_DASHED,null)&&(Q=mxUtils.getValue(h.style,mxConstants.STYLE_DASH_PATTERN,""),2<=String(Q).split(" ").length?(O.style.borderBottom="1px solid transparent",this.addDashPattern(O,Q)):O.style.borderBottom="1px dashed black");ca.style.backgroundImage=O.style.backgroundImage;ca.style.backgroundPosition=O.style.backgroundPosition;+ca.style.backgroundSize=O.style.backgroundSize;ca.style.backgroundRepeat=O.style.backgroundRepeat;ca.style.borderBottom=O.style.borderBottom;Q=V.getElementsByTagName("div")[1];null!=Q&&(ba=mxUtils.getValue(h.style,mxConstants.STYLE_EDGE,null),"1"==mxUtils.getValue(h.style,mxConstants.STYLE_NOEDGESTYLE,null)&&(ba=null),"orthogonalEdgeStyle"==ba&&"1"==mxUtils.getValue(h.style,mxConstants.STYLE_CURVED,null)?Q.style.backgroundImage="url("+Format.curvedImage.src+")":"straight"==ba||"none"==ba||null==ba?+Q.style.backgroundImage="url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==ba?Q.style.backgroundImage="url("+Format.entityImage.src+")":"elbowEdgeStyle"==ba?"vertical"==mxUtils.getValue(h.style,mxConstants.STYLE_ELBOW,null)?Q.style.backgroundImage="url("+Format.verticalElbowImage.src+")":Q.style.backgroundImage="url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==ba?"vertical"==mxUtils.getValue(h.style,mxConstants.STYLE_ELBOW,null)?Q.style.backgroundImage="url("+Format.verticalIsometricImage.src++")":Q.style.backgroundImage="url("+Format.horizontalIsometricImage.src+")":Q.style.backgroundImage="url("+Format.orthogonalImage.src+")");Q=I.getElementsByTagName("div")[1];null!=Q&&(Q.style.backgroundImage="link"==h.style.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==h.style.shape?"url("+Format.arrowImage.src+")":"arrow"==h.style.shape?"url("+Format.simpleArrowImage.src+")":"filledEdge"==h.style.shape?"url("+Format.filledEdgeImage.src+")":"pipe"==h.style.shape?"url("+Format.pipeEdgeImage.src++")":"wire"==h.style.shape?"url("+Format.wireEdgeImage.src+")":"url("+Format.connectionImage.src+")");h.edges.length==h.cells.length?(G.style.display="",C.style.display="none"):(G.style.display="none",C.style.display="");Graph.lineJumpsEnabled&&0<h.edges.length&&0==h.vertices.length&&h.lineJumps&&(a.style.borderBottomStyle="none");Na(mxUtils.getValue(h.style,mxConstants.STYLE_STARTARROW,null),mxUtils.getValue(h.style,"startFill","1"),X,"start");Na(mxUtils.getValue(h.style,mxConstants.STYLE_ENDARROW,+null),mxUtils.getValue(h.style,"endFill","1"),T,"end");mxUtils.setOpacity(V,"arrow"==h.style.shape?30:100);"connector"!=h.style.shape&&"flexArrow"!=h.style.shape&&"filledEdge"!=h.style.shape&&"wire"!=h.style.shape&&"pipe"!=h.style.shape&&(mxUtils.setOpacity(X,30),mxUtils.setOpacity(T,30));if(ma||document.activeElement!=H)Q=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE)),H.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit();if(ma||document.activeElement!=+fa)Q=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),fa.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit();if(ma||document.activeElement!=S)Q=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE)),S.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit();if(ma||document.activeElement!=fa)Q=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)),la.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit();if(ma||+document.activeElement!=P)Q=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_PERIMETER_SPACING,0)),P.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit()});var Y=this.installInputHandler(H,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ha=this.installInputHandler(fa,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ia=this.installInputHandler(S,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,+0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ta=this.installInputHandler(la,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var aa=this.installInputHandler(P,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(M,W);this.addKeyHandler(H,W);this.addKeyHandler(fa,W);this.addKeyHandler(S,W);this.addKeyHandler(la,W);this.addKeyHandler(P,W);d.getModel().addListener(mxEvent.CHANGE,W);this.listeners.push({destroy:function(){d.getModel().removeListener(W)}});+W();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 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,u=mxUtils.bind(this,function(y,B,D,E){y=this.createCellOption(y,B,D,null,null,E);y.style.alignItems="top";k.appendChild(y);k=k==m?p:m;return y}),w=mxUtils.bind(this,function(y,B,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);+d.appendChild(h);g.appendChild(d);a.appendChild(g);var k=m,u=mxUtils.bind(this,function(y,C,E,D){y=this.createCellOption(y,C,E,null,null,D);y.style.alignItems="top";k.appendChild(y);k=k==m?p:m;return y}),w=mxUtils.bind(this,function(y,C,E){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,I){f.updateCellStyles({sketch:I?+"1":null,curveFitting:I?Editor.sketchDefaultCurveFitting:null,jiggle:I?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 D in e.customProperties)y=+e.customProperties[D],null!=y&&"bool"==y.type&&y.primary&&u(y.dispName,D,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);@@ -3271,21 +3272,21 @@ DiagramStylePanel.prototype.addView=function(a){var b=this.editorUi,f=b.editor.g"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 B=new ChangePageSetup(b);B.ignoreColor=!0;B.ignoreImage=!0;B.adaptiveColors=w.value;f.model.execute(B)});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);+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]),fa=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],fa[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]}}),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 fa=S.insertVertex(S.getDefaultParent(),null,"Shape",2,2,+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(V,X){var T=f.getVerticesAndEdges();e.beginUpdate();try{for(var O=0;O<T.length;O++){var ca=f.getCellStyle(T[O]);p||null==ca.labelBackgroundColor?p&&f.updateCellStyles({labelBackgroundColor:mxConstants.NONE},[T[O]]):f.updateCellStyles({labelBackgroundColor:null!=+X?X.background:null},[T[O]]);for(var H=e.isEdge(T[O]),S=e.getStyle(T[O]),fa=H?f.currentEdgeStyle:f.currentVertexStyle,la=0;la<V.length;la++)if(null!=ca[V[la]]&&ca[V[la]]!=mxConstants.NONE||V[la]!=mxConstants.STYLE_FILLCOLOR&&V[la]!=mxConstants.STYLE_STROKECOLOR)S=p&&H&&V[la]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(S,V[la],"default"):mxUtils.setStyle(S,V[la],fa[V[la]]);e.setStyle(T[O],S)}}finally{e.endUpdate()}}),m=mxUtils.bind(this,function(V,X,T){if(null!=V)for(var O=0;O<X.length;O++)if(null!=+V[X[O]]&&V[X[O]]!=mxConstants.NONE||X[O]!=mxConstants.STYLE_FILLCOLOR&&X[O]!=mxConstants.STYLE_STROKECOLOR)V[X[O]]=T[X[O]]}),p=!0,k=mxUtils.bind(this,function(V,X,T,O,ca){if(null!=V){null!=T&&(p||null==X.labelBackgroundColor?p&&(X.labelBackgroundColor=mxConstants.NONE):(O=null!=O?O.background:null,ca=null!=ca?ca:f,null==O&&(O=ca.background),null==O&&(O=ca.defaultPageBackgroundColor),X.labelBackgroundColor=O));for(var H in V)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]=V[H]}}),u=mxUtils.bind(this,function(V,X,T,O,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(P,W){W=null!=W?W:!0;var Y=mxUtils.clone(f.getCellStyle.apply(this,arguments)),ha=f.stylesheet.getDefaultVertexStyle(),ia=X;e.isEdge(P)&&(ha=f.stylesheet.getDefaultEdgeStyle(),ia=T);m(Y,d,ha);k(V,Y,P,O,S);k(ia,Y,P,O,S);W&&(Y=f.postProcessCellStyle(P,Y));return Y};S.model.beginUpdate();try{var fa=S.insertVertex(S.getDefaultParent(),null,"Shape",2,2,56,30,"strokeWidth=2;"),la=S.insertEdge(S.getDefaultParent(),null,"Connector",fa,fa,"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),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 fa=d.slice(),la;for(la in W)fa.push(la);h(fa,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 fa=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(fa.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=fa;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)}),B=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<B&&(D[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=W,E())});if(1<B){var J=document.createElement("div");J.className="geSwitcher";J.style.width="200px";for(var M=0;M<B;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>B&&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,B))}));mxEvent.addListener(K,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,B))}))}}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;+w=document.createElement("div");w.style.whiteSpace="normal";a.appendChild(w);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var y=mxUtils.bind(this,function(V,X,T,O,ca){var H=this.format.cachedStyleEntries[ca];null==H&&(H=document.createElement("div"),H.className="geGraphStylePreview",p||null==O||null==O.background||(H.style.backgroundColor=O.background),u(V,X,T,O,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(V,f.currentVertexStyle);k(V,f.currentEdgeStyle);k(X,f.currentVertexStyle);k(T,f.currentEdgeStyle);e.beginUpdate();try{var fa=d.slice(),la;for(la in V)fa.push(la);h(fa,O);if(!p){var P=new ChangePageSetup(b,null!=O?O.background:null);P.ignoreImage=!0;e.execute(P);e.execute(new ChangeGridColor(b,null!=O&&null!=O.gridColor?O.gridColor:g))}}finally{e.endUpdate()}})),+mxClient.IS_TOUCH||(mxEvent.addListener(H,"mouseenter",mxUtils.bind(this,function(S){var fa=f.getCellStyle;S=f.background;var la=f.view.gridColor;p||(f.background=null!=O?O.background:null,f.view.gridColor=null!=O&&null!=O.gridColor?O.gridColor:g);f.getCellStyle=function(P,W){W=null!=W?W:!0;var Y=mxUtils.clone(fa.apply(this,arguments)),ha=f.stylesheet.getDefaultVertexStyle(),ia=X;e.isEdge(P)&&(ha=f.stylesheet.getDefaultEdgeStyle(),ia=T);m(Y,d,ha);k(V,Y,P,O);k(ia,Y,P,O);W&&(Y=this.postProcessCellStyle(P,+Y));return Y};f.refresh();f.getCellStyle=fa;f.background=S;f.view.gridColor=la})),mxEvent.addListener(H,"mouseleave",mxUtils.bind(this,function(S){f.refresh()}))),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 E=[],D=mxUtils.bind(this,function(){0<E.length&&(E[this.format.currentStylePage].style.background="#84d7ff");for(var V=10*this.format.currentStylePage;V<+Math.min(10*(this.format.currentStylePage+1),Editor.styles.length);V++){var X=Editor.styles[V];y(X.commonStyle,X.vertexStyle,X.edgeStyle,X.graph,V)}}),G=mxUtils.bind(this,function(V){0<=V&&V<C&&(E[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=V,D())});if(1<C){var I=document.createElement("div");I.className="geSwitcher";I.style.width="200px";for(var M=0;M<C;M++){var N=document.createElement("div");N.className="geSwitcherDot";mxUtils.bind(this,+function(V,X){mxEvent.addListener(N,"click",mxUtils.bind(this,function(){G(V)}))})(M,N);I.appendChild(N);E.push(N)}a.appendChild(I);D();if(15>C&&0<E.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+")";I.insertBefore(M,E[0]);I.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 D();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?@@ -3303,20 +3304,20 @@ DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(thiDiagramFormatPanel.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 u(){mxCylinder.call(this)}function w(){mxShape.call(this)}-function y(){mxShape.call(this)}function B(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 fa(){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 La(){mxShape.call(this)}function na(){mxShape.call(this)}function za(){mxShape.call(this)}function Aa(){mxShape.call(this)}function Ma(){mxCylinder.call(this)}function Qa(){mxCylinder.call(this)}function Ja(){mxRectangleShape.call(this)}function Ia(){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 C(){mxActor.call(this)}function F(){mxActor.call(this)}function L(){mxEllipse.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 E(){mxActor.call(this)}function D(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function I(){mxActor.call(this)}function M(){mxActor.call(this)}function N(){mxActor.call(this)}function L(){mxActor.call(this)}function V(){mxActor.call(this)}function X(){mxActor.call(this)}function T(){mxActor.call(this)}function O(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,O.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,O.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,O.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,O.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,+O.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,O.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function H(){mxRectangleShape.call(this)}function S(){mxActor.call(this)}function fa(){mxActor.call(this)}function la(){mxActor.call(this)}function P(){mxRectangleShape.call(this)}function W(){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 Q(){mxShape.call(this)}function ba(){mxRectangleShape.call(this)}function ma(){mxShape.call(this)}function Na(){mxShape.call(this)}function oa(){mxShape.call(this)}function za(){mxShape.call(this)}function Aa(){mxShape.call(this)}function La(){mxCylinder.call(this)}function Qa(){mxCylinder.call(this)}function Ja(){mxRectangleShape.call(this)}function Ia(){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)}function R(){mxEllipse.call(this)}function Z(){mxEllipse.call(this)}function ja(){mxRhombus.call(this)}function ea(){mxEllipse.call(this)}function ka(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function Ka(){mxEllipse.call(this)}function Ha(){mxActor.call(this)}function ya(){mxActor.call(this)}function Fa(){mxActor.call(this)}function va(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,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,+!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,J,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?xa.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(),+!1,x=this.isHorizontal(),J=this.getTitleSize();0==J||this.outline?xa.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-t));v||this.outline||!(x&&J<r||!x&&J<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 J=v;v=x;x=J}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",+parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),J=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!=J&&(c.setFillAlpha(Math.abs(J)),c.setFillColor(0>J?"#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 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*@@ -3326,75 +3327,75 @@ l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.movc.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(B,mxCylinder);B.prototype.size=15;B.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",B);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",+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(E,mxActor);E.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",E);mxUtils.extend(D,+mxCylinder);D.prototype.tabWidth=60;D.prototype.tabHeight=20;D.prototype.tabPosition="right";D.prototype.arcSize=.1;D.prototype.isRoundable=function(){return!0};D.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),J=mxUtils.getValue(this.style,"absoluteArcSize",!1),z=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));J||(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",D);D.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};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,+G);mxUtils.extend(I,mxActor);I.prototype.size=30;I.prototype.isRoundable=function(){return!0};I.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",I);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};B.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),v=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));+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(N,mxActor);N.prototype.size=.3;N.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};N.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",N);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};D.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,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);+"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(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(V,mxActor);V.prototype.size=.2;V.prototype.fixedSize=+20;V.prototype.isRoundable=function(){return!0};V.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",V);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);O.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};O.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)};O.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};O.prototype.curveTo=function(c,l,t,n,r,v){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=v};O.prototype.arcTo=function(c,l,t,n,r,v,x){this.originalArcTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=+x};O.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),J=this.defaultVariation;5>x&&(x=5,J/=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)*J;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};O.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 O(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!=O)lb.apply(this,arguments);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 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 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(fa,+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)))),J=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+J),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(fa,mxActor);fa.prototype.size=.2;fa.prototype.fixedSize=20;fa.prototype.isRoundable=function(){return!0};fa.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",fa);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 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"],Ga=this.style["symbol"+v+"Spacing"]||0,Ua=this.style["symbol"+v+"VSpacing"]||Ga,Pa=this.style["symbol"+v+"ArcSpacing"];null!=Pa&&(Pa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Ga+=Pa,Ua+=Pa);Pa=l;var oa=t;Pa=I==mxConstants.ALIGN_CENTER?Pa+(n-da)/2:I==mxConstants.ALIGN_RIGHT?Pa+(n-da-Ga):Pa+Ga;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=+"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(P,mxRectangleShape);P.prototype.isHtmlAllowed=function(){return!1};P.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",P);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(W,mxRectangleShape);W.prototype.isHtmlAllowed=function(){return!1};W.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};W.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 J=this.style["symbol"+v+"Align"],+z=this.style["symbol"+v+"VerticalAlign"],da=this.style["symbol"+v+"Width"],U=this.style["symbol"+v+"Height"],Ga=this.style["symbol"+v+"Spacing"]||0,Ua=this.style["symbol"+v+"VSpacing"]||Ga,Pa=this.style["symbol"+v+"ArcSpacing"];null!=Pa&&(Pa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Ga+=Pa,Ua+=Pa);Pa=l;var na=t;Pa=J==mxConstants.ALIGN_CENTER?Pa+(n-da)/2:J==mxConstants.ALIGN_RIGHT?Pa+(n-da-Ga):Pa+Ga;na=z==mxConstants.ALIGN_MIDDLE?na+(r-U)/2:z==mxConstants.ALIGN_BOTTOM?na+(r-U-Ua):na++Ua;c.save();J=new x;J.style=this.style;x.prototype.paintVertexShape.call(J,c,Pa,na,da,U);c.restore()}v++}while(null!=x)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",W);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 v=Math.max(0,Math.min(r,+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(Q,mxShape);Q.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/8,c.width,7*c.height/8)};Q.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()};Q.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",Q);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=+this.width)))),J=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,J-1.5*v));c.lineTo(l+Math.max(0,x-v),t+J);c.lineTo(l,t+J);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+J);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"),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?fa.prototype.fixedSize:fa.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(La,mxShape);La.prototype.size=10;La.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",La);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(za,mxShape);za.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",za);mxUtils.extend(Aa,mxShape);Aa.prototype.inset=2;Aa.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",Aa);mxUtils.extend(Ma,mxCylinder);Ma.prototype.jettyWidth=20;Ma.prototype.jettyHeight=10;Ma.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",Ma);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(Ja,mxRectangleShape);Ja.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",Ja);mxUtils.extend(Ia,mxDoubleEllipse);Ia.prototype.outerStroke=+l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?L.prototype.fixedSize:L.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,J=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)),J=[new mxPoint(x,J),new mxPoint(x+z,J+r),new mxPoint(x++z,J+da),new mxPoint(x,J+da-r),new mxPoint(x,J)]):(r=r?Math.max(0,Math.min(.5*z,v)):z*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+z,J),new mxPoint(x+z-r,J+da),new mxPoint(x,J+da),new mxPoint(x+r,J)]);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(J,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?V.prototype.fixedSize:V.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,J=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)),J=[new mxPoint(x+r,J),new mxPoint(x+z-r,J),new mxPoint(x+z,J+da),new mxPoint(x,J+da),new mxPoint(x+r,J)]):l==mxConstants.DIRECTION_WEST?+(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+z,J),new mxPoint(x+z-r,J+da),new mxPoint(x+r,J+da),new mxPoint(x,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J+r),new mxPoint(x+z,J),new mxPoint(x+z,J+da),new mxPoint(x,J+da-r),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+z,J+r),new mxPoint(x+z,J+da-r),new mxPoint(x,+J+da),new mxPoint(x,J)]);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(J,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?fa.prototype.fixedSize:fa.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,J=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)),J=[new mxPoint(x,J),new mxPoint(x+z-r,J),new mxPoint(x+z,c),new mxPoint(x+z-r,J+da),new mxPoint(x,J+da),new mxPoint(x+r,c),new mxPoint(x,J)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+z,J),new mxPoint(x++z-r,c),new mxPoint(x+z,J+da),new mxPoint(x+r,J+da),new mxPoint(x,c),new mxPoint(x+r,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J+r),new mxPoint(U,J),new mxPoint(x+z,J+r),new mxPoint(x+z,J+da),new mxPoint(U,J+da-r),new mxPoint(x,J+da),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(U,J+r),new mxPoint(x+z,J),new mxPoint(x+z,J+da-r),new mxPoint(U,J+da),new mxPoint(x,+J+da-r),new mxPoint(x,J)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(J,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,J=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)),J=[new mxPoint(U,J),new mxPoint(x+z,J+r),new mxPoint(x+z,J+da-r),new mxPoint(U,J+da),new mxPoint(x,J+da-r),new mxPoint(x,J+r),new mxPoint(U,J)]):(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+z-r,J),new mxPoint(x+z,c),new mxPoint(x+z-r,J+da),new mxPoint(x++r,J+da),new mxPoint(x,c),new mxPoint(x+r,J)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(J,U,t)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(Na,mxShape);Na.prototype.size=10;Na.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",Na);mxUtils.extend(oa,mxShape);oa.prototype.size=10;oa.prototype.inset=2;oa.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",oa);mxUtils.extend(za,mxShape);za.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",za);mxUtils.extend(Aa,mxShape);Aa.prototype.inset=2;Aa.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",Aa);mxUtils.extend(La,mxCylinder);La.prototype.jettyWidth=20;La.prototype.jettyHeight=10;La.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 J=Math.min(l,r-l),z=Math.min(J+2*l,r-l);v?(c.moveTo(t,J),+c.lineTo(x,J),c.lineTo(x,J+l),c.lineTo(t,J+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,J+l),c.lineTo(0,J+l),c.lineTo(0,J),c.lineTo(t,J),c.close());c.end()};mxCellRenderer.registerShape("module",La);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 J=.3*r-l/2,z=.7*r-l/2;v?(c.moveTo(t,J),c.lineTo(x,J),c.lineTo(x,J+l),c.lineTo(t,J+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,J+l),c.lineTo(0,J+l),c.lineTo(0,J),c.lineTo(t,J),c.close());c.end()};mxCellRenderer.registerShape("component",+Qa);mxUtils.extend(Ja,mxRectangleShape);Ja.prototype.paintForeground=function(c,l,t,n,r){var v=n/2,x=r/2,J=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,J,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Ja);mxUtils.extend(Ia,mxDoubleEllipse);Ia.prototype.outerStroke=!0;Ia.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",Ia);mxUtils.extend(ra,Ia);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,@@ -3407,14 +3408,14 @@ function(){return!0};Za.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.mav)],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(C,mxActor);C.prototype.size=20;C.prototype.isRoundable=function(){return!0};C.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",C);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(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);+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);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(ea,mxEllipse);ea.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",ea);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(xa,mxEllipse);xa.prototype.drawHidden=!0;xa.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)}};+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",ea);mxUtils.extend(ka,mxEllipse);ka.prototype.paintVertexShape=function(c,l,t,n,r){var v=c.state.strokeWidth/2,x=10+2*v,J=t+r-x/2;c.begin();c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+v,J);c.lineTo(l+v+x,J-x/2);c.moveTo(l+v,J);c.lineTo(l+v+x,J+x/2);c.moveTo(l+v,J);c.lineTo(l+n-v,J);c.moveTo(l+n,t);c.lineTo(l+n,t+r);c.moveTo(l+n-v,J);c.lineTo(l+n-x-v,J-x/2);c.moveTo(l+n-v,J);c.lineTo(l++n-x-v,J+x/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ka);mxUtils.extend(xa,mxEllipse);xa.prototype.drawHidden=!0;xa.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 J="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||J||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||J?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",xa);mxUtils.extend(Ka,mxEllipse);Ka.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",Ka);mxUtils.extend(Ha,mxActor);Ha.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",Ha);mxUtils.extend(ya,mxActor);ya.prototype.size=.2;ya.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",ya);mxUtils.extend(Fa,mxActor);Fa.prototype.size=.25;Fa.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",Fa);mxUtils.extend(va,mxActor);va.prototype.cst={RECT2:"mxgraph.basic.rect"};@@ -3423,104 +3424,104 @@ type:"enum",defVal:"single",enumList:[{val:"single",dispName:"Single"},{val:"doudispName:"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"}]}];va.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);this.strictDrawShape(c,0,0,n,r)};va.prototype.strictDrawShape=-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)))),Ga=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),wa=v&&v.topLeftStyle?v.topLeftStyle:+function(c,l,t,n,r,v){var x=v&&v.rectStyle?v.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),J=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)))),Ga=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)),na=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),wa=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=va.prototype;c.setDashed(Ga);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,wa,z,pa):c.moveTo(0,0),oa&&v.paintNW(c,l,t,n,r,x,wa,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,wa,z,oa),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Ga=I=Fb,"none"==zb&&(I=0),"none"==Bb&&(Ga=0),c.setGradient(zb,Bb,0,0,n,r,Eb,I,Ga),c.begin(),oa?v.moveNWInner(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),oa&&pa&&v.paintNWInner(c,l,t,n,r,x,wa,z,U),c.fill(),"none"==Cb&&(c.begin(),v.paintFolds(c,l,t,n,r,x,wa,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,wa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.lineNWInner(c,l,t,n,r,x,wa,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,wa,z,qa),v.paintLeft(c,-l,t,n,r,x,wa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,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,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,oa),v.lineNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.lineNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,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,wa,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,wa,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,wa,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,wa,z,oa),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,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,wa,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,wa,z,oa),v.paintNW(c,-l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),c.close(),c.fillAndStroke()):oa&&sa&&qa&&pa&&("frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintNW(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,pa),v.paintNW(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,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,wa,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,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,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,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,oa),v.lineNWInner(c,l,t,n,r,x,wa,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,wa,Ba,Ca,Ea,z,oa,sa,qa,pa);c.stroke()};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.prototype.paintFolds=function(c,l,t,n,r,v,x,I,z,da,U,Ga,Ua,Pa,oa){if("fold"==v||"fold"==x||"fold"==I||"fold"==z||"fold"==da)("fold"==x||"default"==x&&"fold"==v)&&Ga&&oa&&(c.moveTo(0,U),c.lineTo(U,U),c.lineTo(U,0)),("fold"==I||"default"==I&&"fold"==v)&&Ga&&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(va.prototype.cst.RECT2,va);va.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),+c.setDashPattern(Ua);c.setStrokeWidth(Db);z=Math.min(.5*r,.5*n,z);J||(z=Gb*Math.min(n,r)/100);z=Math.min(z,.5*Math.min(n,r));J||(U=Math.min(Pa*Math.min(n,r)/100));U=Math.min(U,.5*Math.min(n,r)-z);(na||sa||qa||pa)&&"frame"!=da&&(c.begin(),na?v.moveNW(c,l,t,n,r,x,wa,z,pa):c.moveTo(0,0),na&&v.paintNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),sa&&v.paintNE(c,l,t,n,r,x,Ba,z,na),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,wa,z,na),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Ga=J=Fb,"none"==zb&&(J=0),"none"==Bb&&(Ga=0),c.setGradient(zb,Bb,0,0,n,r,Eb,J,Ga),c.begin(),na?v.moveNWInner(c,l,t,n,r,x,wa,z,U,na,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,na,sa),sa&&na&&v.paintNEInner(c,+l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),na&&pa&&v.paintNWInner(c,l,t,n,r,x,wa,z,U),c.fill(),"none"==Cb&&(c.begin(),v.paintFolds(c,l,t,n,r,x,wa,Ba,Ca,Ea,z,na,sa,qa,pa),c.stroke()));na||sa||qa||!pa?na||sa||!qa||pa?!na&&!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,wa,z,na),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,z,U,na,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,wa,z,na),v.lineNWInner(c,l,t,n,r,x,wa,z,U,na,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()):na||!sa||qa||pa?!na&&sa&&!qa&&pa?"frame"!=da?(c.begin(),v.moveSW(c,l,t,n,r,x,wa,z,qa),v.paintLeft(c,+l,t,n,r,x,wa,z,na),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,z,U,na,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,na),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,na,sa)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,na),v.lineNWInner(c,l,t,n,r,x,wa,z,U,na,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,na),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,na,sa),c.close(),c.fillAndStroke()):!na&&sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,na,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),c.close(),c.fillAndStroke()):!na&&sa&&qa&&pa?"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,wa,z,na),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,z,U,na,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,na,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,wa,z,na),v.lineNWInner(c,l,t,n,r,x,wa,z,U,na,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,na,sa),c.close(),c.fillAndStroke()):!na||sa||qa||pa?na&&!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,wa,z,na),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,na),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):+na&&!sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na)),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,wa,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,wa,z,U,pa,na),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()):na&&!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,wa,z,na),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,na),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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()):na&&sa&&!qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,+x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),c.close(),c.fillAndStroke()):na&&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,wa,z,na),v.paintNW(c,+l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,na),v.paintNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,+n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):na&&sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),c.close(),c.fillAndStroke()):na&&sa&&qa&&pa&&("frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,wa,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,pa),v.paintNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,wa,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,na)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,na,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,na,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,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,na),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,z,U,na,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,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,na),v.lineNWInner(c,l,t,n,r,x,wa,z,U,na,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,wa,Ba,Ca,Ea,z,na,sa,qa,pa);c.stroke()};va.prototype.moveNW=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(0,0):c.moveTo(0,J)};va.prototype.moveNE=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==+v||!z?c.moveTo(n,0):c.moveTo(n-J,0)};va.prototype.moveSE=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(n,r):c.moveTo(n,r-J)};va.prototype.moveSW=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(0,r):c.moveTo(J,r)};va.prototype.paintNW=function(c,l,t,n,r,v,x,J,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(J,J,0,0,l,J,0)}else("snip"==+x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(J,0);else c.lineTo(0,0)};va.prototype.paintTop=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(n,0):c.lineTo(n-J,0)};va.prototype.paintNE=function(c,l,t,n,r,v,x,J,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(J,J,0,0,l,n,J)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==+x&&"fold"==v)&&c.lineTo(n,J);else c.lineTo(n,0)};va.prototype.paintRight=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(n,r):c.lineTo(n,r-J)};va.prototype.paintLeft=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(0,0):c.lineTo(0,J)};va.prototype.paintSE=function(c,l,t,n,r,v,x,J,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(J,+J,0,0,l,n-J,r)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-J,r);else c.lineTo(n,r)};va.prototype.paintBottom=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(0,r):c.lineTo(J,r)};va.prototype.paintSW=function(c,l,t,n,r,v,x,J,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(J,J,0,0,l,0,r-J)}else("snip"==x||"default"==+x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(0,r-J);else c.lineTo(0,r)};va.prototype.paintNWInner=function(c,l,t,n,r,v,x,J,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*z,J-.5*z,0,0,0,z,.5*z+J);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+z,J+z,0,0,1,z,z+J);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(z,.5*z+J);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(z+J,z+J),c.lineTo(z,z+J)};va.prototype.paintTopInner=function(c,l,t,n,r,v,x,J,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(J+.5*z,z):c.lineTo(J+z,z):c.lineTo(0,z):c.lineTo(0,0)};va.prototype.paintNEInner=function(c,l,t,n,r,v,x,J,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*z,J-.5*z,0,0,0,n-J-.5*z,z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+z,J+z,0,0,1,n-J-z,z);else if("snip"==x||"default"==x&&"snip"==+v)c.lineTo(n-J-.5*z,z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-J-z,J+z),c.lineTo(n-J-z,z)};va.prototype.paintRightInner=function(c,l,t,n,r,v,x,J,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,J+.5*z):c.lineTo(n-z,J+z):c.lineTo(n-z,0):c.lineTo(n,0)};va.prototype.paintLeftInner=function(c,l,t,n,r,v,x,J,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-J-.5*z):c.lineTo(z,r-J-z):c.lineTo(z,r):c.lineTo(0,r)};va.prototype.paintSEInner=function(c,l,t,n,r,v,x,J,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*z,J-.5*z,0,0,0,n-z,r-J-.5*z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+z,J+z,0,0,1,n-z,r-J-z);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-+z,r-J-.5*z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-J-z,r-J-z),c.lineTo(n-z,r-J-z)};va.prototype.paintBottomInner=function(c,l,t,n,r,v,x,J,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-J-.5*z,r-z):c.lineTo(n-J-z,r-z):c.lineTo(n,r)};va.prototype.paintSWInner=function(c,l,t,n,r,v,x,J,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(J-.5*z,J-.5*z,0,0,0,J+.5*z,r-z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+z,J+z,0,0,1,J+z,r-z);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(J+.5*z,r-z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(z+J,r-J-z),c.lineTo(z+J,r-z)};va.prototype.moveSWInner=function(c,l,t,n,r,v,x,J,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-J-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(z,r-J-z):c.moveTo(0,r-z)};va.prototype.lineSWInner=function(c,l,t,n,r,v,x,J,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-J-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(z,r-J-z):+c.lineTo(0,r-z)};va.prototype.moveSEInner=function(c,l,t,n,r,v,x,J,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-J-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-z,r-J-z):c.moveTo(n-z,r)};va.prototype.lineSEInner=function(c,l,t,n,r,v,x,J,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-J-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-z,r-J-z):c.lineTo(n-z,r)};va.prototype.moveNEInner=function(c,l,t,n,r,v,x,J,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,J+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-z,J+z):c.moveTo(n,+z)};va.prototype.lineNEInner=function(c,l,t,n,r,v,x,J,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,J+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-z,J+z):c.lineTo(n,z)};va.prototype.moveNWInner=function(c,l,t,n,r,v,x,J,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,J+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(z,J+z):c.moveTo(0,0)};va.prototype.lineNWInner=function(c,l,t,n,r,v,x,J,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,J+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==+x||"default"==x&&"fold"==v)&&c.lineTo(z,J+z):c.lineTo(0,0)};va.prototype.paintFolds=function(c,l,t,n,r,v,x,J,z,da,U,Ga,Ua,Pa,na){if("fold"==v||"fold"==x||"fold"==J||"fold"==z||"fold"==da)("fold"==x||"default"==x&&"fold"==v)&&Ga&&na&&(c.moveTo(0,U),c.lineTo(U,U),c.lineTo(U,0)),("fold"==J||"default"==J&&"fold"==v)&&Ga&&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&&na&&(c.moveTo(0,r-U),c.lineTo(U,r-U),c.lineTo(U,r))};mxCellRenderer.registerShape(va.prototype.cst.RECT2,va);va.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,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),Ga=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Ga/2,n.y-Ga/2+U/2);c.lineTo(n.x+Ga/2-3*U/2,n.y-3*Ga/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),Ga=v*(x+z+1),Ua=n.x+U/2,Pa=n.y+Ga/2;n.x-=U;n.y-=Ga;return function(){c.begin();c.moveTo(Ua-U/2-Ga/2,Pa-Ga/2+U/2);c.lineTo(Ua-U/2+Ga/2,Pa-Ga/2-U/2);c.lineTo(Ua+Ga/2-3*U/2,Pa-3*Ga/2-U/2);c.lineTo(Ua-Ga/2-3*U/2,Pa-3*Ga/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),Ga=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Ga/2,n.y-Ga/2+U/-2);c.lineTo(n.x+Ga/2-3*U/2,n.y-3*Ga/2-U/2);c.moveTo(n.x-U/2+Ga/2,n.y-Ga/2-U/2);c.lineTo(n.x-Ga/2-3*U/2,n.y-3*Ga/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(),Ga=Ra.apply(this,arguments),Ua=r*(x+2*z),Pa=v*(x+2*z);return function(){Ga.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),Ga=v*(x+z+1),Ua=n.clone();n.x-=U;n.y-=Ga;return function(){c.begin();c.moveTo(Ua.x-Ga,Ua.y+U);c.quadTo(n.x-Ga,n.y+U,n.x,n.y);c.quadTo(n.x+Ga,n.y-U,Ua.x+Ga,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 Ga=r.clone();return function(){l.begin();l.moveTo(Ga.x,Ga.y);z?l.lineTo(Ga.x-v-x/c,Ga.y-x+v/c):l.lineTo(Ga.x+x/c-v,Ga.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 Na(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,Ga=Math.sqrt(I*I+U*U);da=n.call(this,Ga,I/Ga,U/Ga,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,Ga=t?z[0]:z[da];z=t?z[1]:z[da-1];da=z.x-Ga.x;var Ua=z.y-Ga.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,Ga,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[Na(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[Na(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=[Na(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=[Na(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=[Na(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 Na(c,+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,J,z,da){var U=r*(x+z+1),Ga=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Ga/2,n.y-Ga/2+U/2);c.lineTo(n.x+Ga/2-3*U/2,n.y-3*Ga/2-U/2);+c.stroke()}});mxMarker.addMarker("box",function(c,l,t,n,r,v,x,J,z,da){var U=r*(x+z+1),Ga=v*(x+z+1),Ua=n.x+U/2,Pa=n.y+Ga/2;n.x-=U;n.y-=Ga;return function(){c.begin();c.moveTo(Ua-U/2-Ga/2,Pa-Ga/2+U/2);c.lineTo(Ua-U/2+Ga/2,Pa-Ga/2-U/2);c.lineTo(Ua+Ga/2-3*U/2,Pa-3*Ga/2-U/2);c.lineTo(Ua-Ga/2-3*U/2,Pa-3*Ga/2+U/2);c.close();da?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,x,J,z,da){var U=r*(x+z+1),Ga=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Ga/2,n.y-Ga/2+U/+2);c.lineTo(n.x+Ga/2-3*U/2,n.y-3*Ga/2-U/2);c.moveTo(n.x-U/2+Ga/2,n.y-Ga/2-U/2);c.lineTo(n.x-Ga/2-3*U/2,n.y-3*Ga/2+U/2);c.stroke()}});mxMarker.addMarker("circle",Ra);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,v,x,J,z,da){var U=n.clone(),Ga=Ra.apply(this,arguments),Ua=r*(x+2*z),Pa=v*(x+2*z);return function(){Ga.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,J,z,da){var U=r*(x+z+1),Ga=v*(x+z+1),Ua=n.clone();n.x-=U;n.y-=Ga;return function(){c.begin();c.moveTo(Ua.x-Ga,Ua.y+U);c.quadTo(n.x-Ga,n.y+U,n.x,n.y);c.quadTo(n.x+Ga,n.y-U,Ua.x+Ga,Ua.y-U);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,v,x,J,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);J?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,J,z,da,U){v*=J+da;x*=J+da;var Ga=r.clone();return function(){l.begin();l.moveTo(Ga.x,Ga.y);z?l.lineTo(Ga.x-v-x/c,Ga.y-x+v/c):l.lineTo(Ga.x+x/c-v,Ga.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,J){J=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(x.x++r*n/4+v*J/2,x.y+v*n/4-r*J/2)},function(n,r,v,x,J,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,z.x,z.y));c.style.width=Math.round(2*n)/c.view.scale-t})},nb=function(c,l,t,n,r){return Ma(c,l,function(v){var x=c.absolutePoints;if(null!=x&&0<x.length){var J=x.length-1;v=c.view.translate;var z=c.view.scale,da=t?x[0]:x[J];x=t?x[1]:x[J-1];J=x.x-da.x;var U=x.y-da.y,Ga=Math.sqrt(J*J+U*U);da=n.call(this,Ga,J/Ga,U/Ga,da,x);return new mxPoint(da.x/z-v.x,da.y/z-v.y)}return null},function(v,x,J){var z=c.absolutePoints,+da=z.length-1;v=c.view.translate;var U=c.view.scale,Ga=t?z[0]:z[da];z=t?z[1]:z[da-1];da=z.x-Ga.x;var Ua=z.y-Ga.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,Ga,z,x,J)})},cb=function(c,l){return function(t){return[nb(t,["startWidth"],!0,function(n,r,v,x,J){J=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(x.x+r*n/4+v*J/2,x.y+v*n/4-r*J/2)},function(n,r,v,x,J,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,z.x,z.y));t.style.startWidth=+Math.round(2*n)/t.view.scale-l})]}},vb=function(c){return function(l){return[Ma(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[Ma(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=[Ma(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=[Ma(v,["size"],function(J){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(J.x+Math.max(0,Math.min(.5*J.width,+da*(z?1:J.width))),J.getCenterY())},function(J,z,da){J=null!=r&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?z.x-J.x:Math.max(0,Math.min(t,(z.x-J.x)/J.width));this.state.style.size=J},!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=[Ma(n,["size"],function(v){var x=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,J=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,+"size",x?t:l)));return new mxPoint(v.x+Math.min(.75*v.width*c,J*(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 Ma(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))))})},Na=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),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))))})},Ma=function(c,l,t,n,r,v,x){var J=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);J.execute=function(da){for(var U=0;U<l.length;U++)this.copyStyle(l[U]);+x&&x(da)};J.getPosition=t;J.setPosition=n;J.ignoreGrid=null!=r?r:!0;if(v){var z=J.positionChanged;J.positionChanged=function(){z.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return J},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,J){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,J,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.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,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]=+mxConstants.STYLE_ENDSIZE],!0,function(n,r,v,x,J){n=(c.shape.getStartArrowWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,J,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.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,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]),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,J){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x++r*(J+c.shape.strokewidth*c.view.scale)-v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,J,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.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,J){n=(c.shape.getEndArrowWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x++r*(J+c.shape.strokewidth*c.view.scale)-v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,J,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.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(Na(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 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[Na(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[Na(c,+parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));l.push(ib(c,t/2))}l.push(Ma(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 v=r.model.getParent(c.cell);v=r.model.getChildCells(v,!0);for(var x=[],J=0;J<v.length;J++)v[J]!=c.cell&&r.isSwimlane(v[J])&&r.getSwimlaneDirection(r.getCurrentCellStyle(v[J]))==+n&&x.push(v[J]);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[Ma(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[Ma(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=[Na(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[Na(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",ya.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[Na(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[Na(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=[Na(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[Na(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=-[Na(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),Na(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),Na(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,+!1)]},process:function(c){var l=[Ma(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[Ma(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",ya.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[Ma(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[Ma(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=[Ma(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[Ma(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=+[Ma(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),Ma(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),Ma(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))),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=-[Na(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[Na(c,-["jettyWidth","jettyHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"jettyWidth",Ma.prototype.jettyWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"jettyHeight",Ma.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[Na(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[Na(c,["dx","dy"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,+[Ma(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[Ma(c,+["jettyWidth","jettyHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"jettyWidth",La.prototype.jettyWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"jettyHeight",La.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[Ma(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[Ma(c,["dx","dy"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"dx",eb.prototype.dx))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"dy",eb.prototype.dy)));return new mxPoint(l.x+(l.width+t)/2,l.y+n)},function(l,t){this.state.style.dx=Math.round(Math.max(0,2*Math.min(l.width/2,t.x-l.x-l.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},singleArrow:vb(1),doubleArrow:vb(.5),"mxgraph.arrows2.wedgeArrow":cb(20,20),"mxgraph.arrows2.wedgeArrowDashed":cb(20,20),"mxgraph.arrows2.wedgeArrowDashed2":cb(20,20),-folder:function(c){return[Na(c,["tabWidth","tabHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"tabWidth",E.prototype.tabWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"tabHeight",E.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",E.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(t=l.width-t);return new mxPoint(l.x+t,l.y+n)},function(l,t){var n=Math.max(0,Math.min(l.width,t.x-l.x));mxUtils.getValue(this.state.style,-"tabPosition",E.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(n=l.width-n);this.state.style.tabWidth=Math.round(n);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},document:function(c){return[Na(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",Q.prototype.size))));return new mxPoint(l.x+3*l.width/4,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)]},tape:function(c){return[Na(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[Na(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(B.prototype.size),offPageConnector:function(c){return[Na(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=+folder:function(c){return[Ma(c,["tabWidth","tabHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"tabWidth",D.prototype.tabWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"tabHeight",D.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",D.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(t=l.width-t);return new mxPoint(l.x+t,l.y+n)},function(l,t){var n=Math.max(0,Math.min(l.width,t.x-l.x));mxUtils.getValue(this.state.style,+"tabPosition",D.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(n=l.width-n);this.state.style.tabWidth=Math.round(n);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},document:function(c){return[Ma(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",N.prototype.size))));return new mxPoint(l.x+3*l.width/4,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)]},tape:function(c){return[Ma(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[Ma(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[Ma(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(fa.prototype.size,!0,null,!0,fa.prototype.fixedSize),hexagon:sb(la.prototype.size,!0,.5,!0,la.prototype.fixedSize),curlyBracket:sb(X.prototype.size,!1),display:sb(Fa.prototype.size,!1),cube:yb(1,e.prototype.size,!1),card:yb(.5,J.prototype.size,!0),loopLimit:yb(.5,C.prototype.size,!0),trapezoid:qb(.5,W.prototype.size,W.prototype.fixedSize),parallelogram:qb(1,K.prototype.size,-K.prototype.fixedSize)};Graph.createHandle=Na;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(fa.prototype.size,!0,null,!0,fa.prototype.fixedSize),hexagon:sb(la.prototype.size,!0,.5,!0,la.prototype.fixedSize),curlyBracket:sb(X.prototype.size,!1),display:sb(Fa.prototype.size,!1),cube:yb(1,e.prototype.size,!1),card:yb(.5,I.prototype.size,!0),loopLimit:yb(.5,B.prototype.size,!0),trapezoid:qb(.5,V.prototype.size,V.prototype.fixedSize),parallelogram:qb(1,L.prototype.size,+L.prototype.fixedSize)};Graph.createHandle=Ma;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 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,Ga=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=(Ga*oa-U*pa)/(z*Ga-da*U);oa=(da*oa-z*pa)/(da*U-z*Ga);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+Ga*oa)):(qa&&(Pa=new mxPoint(Pa.x+U*oa,Pa.y+Ga*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",+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,J=x[0];x=x[x.length-1];null!=n&&(n=v.transformControlPoint(c,n));null==J&&null!=l&&(J=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,Ga=hb.y,Ua="horizontal"==+mxUtils.getValue(c.style,"elbow","horizontal");if(null!=x&&null!=J){c=function(na,sa,qa){na-=Pa.x;var pa=sa-Pa.y;sa=(Ga*na-U*pa)/(z*Ga-da*U);na=(da*na-z*pa)/(da*U-z*Ga);Ua?(qa&&(Pa=new mxPoint(Pa.x+z*sa,Pa.y+da*sa),r.push(Pa)),Pa=new mxPoint(Pa.x+U*na,Pa.y+Ga*na)):(qa&&(Pa=new mxPoint(Pa.x+U*na,Pa.y+Ga*na),r.push(Pa)),Pa=new mxPoint(Pa.x+z*sa,Pa.y+da*sa));r.push(Pa)};var Pa=J;null==n&&(n=new mxPoint(J.x+(x.x-J.x)/2,J.y+(x.y-J.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*Math.tan(n),.5*t);c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));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,t-n));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,@@ -3529,34 +3530,34 @@ Math.tan(n),.5*t);c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.pust-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-n)));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0)];mxEllipse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5))];xa.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=-mxRectangleShape.prototype.constraints;O.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;k.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,+mxRectangleShape.prototype.constraints;P.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;k.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-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-.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,-0),!1));return c};J.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,+0),!1));return c};I.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};e.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-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-.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(1,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,n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-n)));return c};B.prototype.getConstraints=function(c,l,t){c=[];l=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,+0),!1,null,n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-n)));return c};C.prototype.getConstraints=function(c,l,t){c=[];l=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,l));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,l));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,0,-l));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1,null,0,-l));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,l+.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,l+.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(1,-0),!1,null,0,t-l-.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-l-.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(.145,0),!1,null,0,.29*l));c.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*l));c.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-l));c.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-l));return c};E.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(this.style,+0),!1,null,0,t-l-.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-l-.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(.145,0),!1,null,0,.29*l));c.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*l));c.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-l));c.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-l));return c};D.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(this.style,"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;L.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;Z.prototype.constraints=mxEllipse.prototype.constraints;Ka.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;K.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;Z.prototype.constraints=mxEllipse.prototype.constraints;Ka.prototype.constraints=mxEllipse.prototype.constraints;Wa.prototype.constraints=mxRectangleShape.prototype.constraints;Ha.prototype.constraints=mxRectangleShape.prototype.constraints;Fa.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};Ma.prototype.getConstraints=function(c,l,t){l=parseFloat(mxUtils.getValue(c,"jettyWidth",Ma.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,-"jettyHeight",Ma.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,+.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};La.prototype.getConstraints=function(c,l,t){l=parseFloat(mxUtils.getValue(c,"jettyWidth",La.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,+"jettyHeight",La.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,l),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(t-.5*c,1.5*c)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(t-.5*c,3.5*c))];t>5*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,l));t>8*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,l));t>-15*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,l));return n};C.prototype.constraints=mxRectangleShape.prototype.constraints;F.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,+15*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,l));return n};B.prototype.constraints=mxRectangleShape.prototype.constraints;F.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.3),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.7),!0),new mxConnectionConstraint(new mxPoint(.15,.95),!1),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.85,.95),!1)];ha.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.1),!1),new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.75,.1),!1),new mxConnectionConstraint(new mxPoint(0,1/3),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(1,1/3),!1),new mxConnectionConstraint(new mxPoint(1,1),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1)];Qa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];mxActor.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.25,.2),!1),new mxConnectionConstraint(new mxPoint(.1,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.75,-.25),!1),new mxConnectionConstraint(new mxPoint(.9,.5),!1),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];D.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(.5,.25),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,+.25),!1),new mxConnectionConstraint(new mxPoint(.9,.5),!1),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];E.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(.5,.25),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(.5,.75),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];M.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.35),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.65),!1),new mxConnectionConstraint(new mxPoint(1,.35),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,.65),!1),new mxConnectionConstraint(new mxPoint(.25,1),!1),new mxConnectionConstraint(new mxPoint(.75,0),!1)];fa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,-.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxLine.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];La.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.5,+.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxLine.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];Na.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.5,1),!1)];mxDoubleEllipse.prototype.constraints=mxEllipse.prototype.constraints;mxRhombus.prototype.constraints=mxEllipse.prototype.constraints;mxTriangle.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0)];mxHexagon.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.375,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.625,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.375,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.625,1),!0)];mxCloud.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.25),!1),new mxConnectionConstraint(new mxPoint(.4,.1),!1),new mxConnectionConstraint(new mxPoint(.16,.55),!1),new mxConnectionConstraint(new mxPoint(.07,.4),!1),new mxConnectionConstraint(new mxPoint(.31,.8),!1),new mxConnectionConstraint(new mxPoint(.13,.77),!1),new mxConnectionConstraint(new mxPoint(.8,.8),!1),new mxConnectionConstraint(new mxPoint(.55,-.95),!1),new mxConnectionConstraint(new mxPoint(.875,.5),!1),new mxConnectionConstraint(new mxPoint(.96,.7),!1),new mxConnectionConstraint(new mxPoint(.625,.2),!1),new mxConnectionConstraint(new mxPoint(.88,.25),!1)];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,+.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;V.prototype.constraints=mxRectangleShape.prototype.constraints;N.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,@@ -3572,17 +3573,17 @@ function(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mx0),!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)];za.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];Aa.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(),u=0;u<k.length;u++)d.cellLabelChanged(k[u],"")}finally{d.getModel().endUpdate()}}}function f(k,u,w,y,B){B.getModel().beginUpdate();try{var D=B.getCellGeometry(k);null!=D&&w&&y&&(w/=y,D=D.clone(),1<w?D.height=D.width/w:D.width=D.height*w,B.getModel().setGeometry(k,-D));B.setCellStyles(mxConstants.STYLE_CLIP_PATH,u,[k]);B.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[k])}finally{B.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,B=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&&B==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()?+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 E=C.getCellGeometry(k);null!=E&&w&&y&&(w/=y,E=E.clone(),1<w?E.height=E.width/w:E.width=E.height*w,C.getModel().setGeometry(k,+E));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(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 B=d.getEditableCells(d.getSelectionCells());if(0==B.length)w(y.getRoot(),e.copiedValue);else for(u=0;u<B.length;u++)w(B[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)||+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(E,D){var G=y.getValue(E);D=E.cloneValue(D);D.removeAttribute("placeholders");null==G||isNaN(G.nodeType)||D.setAttribute("placeholders",G.getAttribute("placeholders"));null!=k&&mxEvent.isShiftDown(k)||+D.setAttribute("label",d.convertValueToString(E));y.setValue(E,D)}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,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()},@@ -3593,14 +3594,14 @@ null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+F");this.addAction("toBack",functd.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,B){d.getModel().beginUpdate();try{d.setLinkForCell(k,-0<w.length?w:null),d.setAttributeForCell(k,"linkTarget",B)}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,u,w){k=mxUtils.trim(k);if(0<k.length){var y=null,B=d.getLinkTitle(k);null!=u&&0<u.length&&(y=u[0].iconUrl,B=u[0].name||u[0].type,B=B.charAt(0).toUpperCase()+B.substring(1),30<B.length&&(B=B.substring(0,30)+"..."));u=new mxCell(B,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],+":",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,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"),B=0;B<y.length&&null==u;B++)y[B].textContent==k.textContent&&(u=y[B]);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():+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 E=d.cellEditor.saveSelection();e.showLinkDialog(w,mxResources.get("ok"),mxUtils.bind(this,function(D){d.cellEditor.restoreSelection(E);null!=D&&d.insertLink(D)}))}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 B=mxUtils.htmlEntities(d.convertValueToString(state.cell),!1);"0"!=-mxUtils.getValue(state.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));d.cellLabelChanged(state.cell,Graph.sanitizeHtml(B));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,+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()),@@ -3611,8 +3612,8 @@ e.fireEvent(new mxEventObject("tooltipsEnabledChanged"))});m.setToggleAction(!0)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,u,w,y){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var B=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,u,B);(u&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?d.updateLabelElements(B,function(E){E.style.fontWeight=null;"B"==E.nodeName&&d.replaceElement(E)}):(u&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(B,-function(E){E.style.fontStyle=null;"I"==E.nodeName&&d.replaceElement(E)}):(u&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(B,function(E){E.style.textDecoration=null;"U"==E.nodeName&&d.replaceElement(E)});for(var D=0;D<B.length;D++)0==d.model.getChildCount(B[D])&&d.autoSizeCell(B[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(D){D.style.fontWeight=null;"B"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(C,+function(D){D.style.fontStyle=null;"I"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(C,function(D){D.style.textDecoration=null;"U"==D.nodeName&&d.replaceElement(D)});for(var E=0;E<C.length;E++)0==d.model.getChildCount(C[E])&&d.autoSizeCell(C[E],!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(),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,@@ -3623,15 +3624,15 @@ function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUN"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()),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 B=d.getCellGeometry(k);d.getModel().isVertex(k)&&null!=B;)w+=B.x,y+=B.y,k=d.getModel().getParent(k),B=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");+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")+"):",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 B=d.cellEditor.saveSelection();e.showImageDialog(k,w,function(D,E,G,J,M,Q){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(B),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(B,D,E){f(k,B,D,E,d)}),e.showDialog(u.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(E,D,G,I,M,N){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(E,D,G);else{var L=d.getSelectionCells();if(null!=E&&(0<E.length||0<L.length)){var V=null;+d.getModel().beginUpdate();try{if(0==L.length){L=[d.insertVertex(d.getDefaultParent(),null,"",0,0,D,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!=I&&f(L[0],I,M,N,d);V=L;d.fireEvent(new mxEventObject("cellsInserted","cells",V))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<E.length?E: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==E.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,L);null==I&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,L);if(null!=D&&null!=G)for(E=0;E<L.length;E++){var O=L[E];if("0"!=d.getCurrentCellStyle(O).expand){var ca=d.getModel().getGeometry(O);null!=ca&&(ca=ca.clone(),ca.width=D,ca.height=G,d.getModel().setGeometry(O,ca))}null!=I&&f(O,I,M,N,d)}}finally{d.getModel().endUpdate()}null!=V&&(d.setSelectionCells(V),+d.scrollCellToVisible(V[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,E,D){f(k,C,E,D,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+@@ -3643,58 +3644,58 @@ Menus.prototype.init=function(){var a=this.editorUi,b=a.editor.graph,f=mxUtils.bFormat.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["link",null,null,null,null],null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["flexArrow",null,null,null,null],null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["arrow",null,null,null,null],null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["filledEdge",null,null,null,null],null,null,!0,Format.filledEdgeImage.src)).setAttribute("title","Filled Edge");Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["pipe",null,null,null,null],null,null,!0,Format.pipeEdgeImage.src)).setAttribute("title","Pipe");Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["wire",null,null,"1",null],null,null,!0,Format.wireEdgeImage.src)).setAttribute("title","Wire")})));this.put("edgeStyle",new Menu(mxUtils.bind(this,function(e){Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[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(e,"",[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(e,"",[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("simple"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[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("simple"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[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(e,-"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,null,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,null,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved"));-Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(e,g){for(var d=mxUtils.bind(this,function(m){this.styleChange(e,m,[mxConstants.STYLE_FONTFAMILY],[m],null,g,function(){document.execCommand("fontname",!1,m);a.fireEvent(new mxEventObject("styleChanged",-"keys",[mxConstants.STYLE_FONTFAMILY],"values",[m],"cells",[b.cellEditor.getEditingCell()]))},function(){b.updateLabelElements(b.getSelectionCells(),function(p){p.removeAttribute("face");p.style.fontFamily=null;"PRE"==p.nodeName&&b.replaceElement(p,"div")})}).firstChild.nextSibling.style.fontFamily=m}),h=0;h<this.defaultFonts.length;h++)d(this.defaultFonts[h]);e.addSeparator(g);if(0<this.customFonts.length){for(h=0;h<this.customFonts.length;h++)d(this.customFonts[h]);e.addSeparator(g);e.addItem(mxResources.get("reset"),-null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),g);e.addSeparator(g)}this.promptChange(e,mxResources.get("custom")+"...","",mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,g,!0,mxUtils.bind(this,function(m){0>mxUtils.indexOf(this.customFonts,m)&&(this.customFonts.push(m),this.editorUi.fireEvent(new mxEventObject("customFontsChanged")))}))})));this.put("formatBlock",new Menu(mxUtils.bind(this,function(e,g){function d(h,-m){return e.addItem(h,null,mxUtils.bind(this,function(){null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),document.execCommand("formatBlock",!1,"<"+m+">"))}),g)}d(mxResources.get("normal"),"p");d("","h1").firstChild.nextSibling.innerHTML='<h1 style="margin:0px;">'+mxResources.get("heading")+" 1</h1>";d("","h2").firstChild.nextSibling.innerHTML='<h2 style="margin:0px;">'+mxResources.get("heading")+" 2</h2>";d("","h3").firstChild.nextSibling.innerHTML='<h3 style="margin:0px;">'+mxResources.get("heading")+-" 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"),B=0;B<y.length;B++)if("3"==y[B].getAttribute("size")){y[B].removeAttribute("size");-y[B].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 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,-null,!0)},g);e.addItem(mxResources.get("vertical"),null,function(){b.distributeCells(!1,null,!0)},g)})));this.put("line",new Menu(mxUtils.bind(this,function(e,g){var d=b.view.getState(b.getSelectionCell());null!=d&&(d=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE),"arrow"!=d&&(Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],null,g,!0,Format.straightImage.src)).setAttribute("title",mxResources.get("straight")),-Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],null,g,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],null,g,!0,Format.horizontalElbowImage.src)).setAttribute("title",-mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,g,!0,Format.verticalElbowImage.src)).setAttribute("title",mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],-null,g,!0,Format.horizontalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,g,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==d&&Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,-mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,g,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,g,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))),e.addSeparator(g),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,-mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],null,g,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line")),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],null,g,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link")),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,-"width"],["flexArrow",null,null,null],null,g,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow")),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],null,g,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",new Menu(mxUtils.bind(this,function(e,g){var d=mxUtils.bind(this,function(m,p){this.editorUi.prompt(mxResources.get("spacing"),-m,p)}),h=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var p=b.getSelectionCell(),k=null;null==p||0==b.getModel().getChildCount(p)?0==b.getModel().getEdgeCount(p)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(p);null!=k&&0<k.length&&(p=k[0]);null!=p&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),p);b.isSelectionEmpty()||(p=b.getModel().getParent(p),b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0))},!0)}))});-e.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),g);e.addItem(mxResources.get("verticalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);-this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),g);e.addSeparator(g);e.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,h(m))}))}),g);e.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,-!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,h(m))}))}),g);e.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,h(m))}))}),g);e.addSeparator(g);e.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,-mxUtils.bind(this,function(p){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=p;this.editorUi.executeLayout(function(){var k=b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),g);e.addItem(mxResources.get("circle"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var p=-b.getSelectionCell();if(null==p||0==b.getModel().getChildCount(p))p=b.getDefaultParent();m.execute(p);b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0)},!0)}))}),g)})));this.put("navigation",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),g)})));this.put("arrange",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["toFront","toBack","bringForward","sendBackward","-"],g);this.addSubmenu("direction",-e,g);this.addMenuItems(e,["turn","-"],g);this.addSubmenu("align",e,g);this.addSubmenu("distribute",e,g);e.addSeparator(g);this.addSubmenu("navigation",e,g);this.addSubmenu("insert",e,g);this.addSubmenu("layout",e,g);this.addMenuItems(e,"- group ungroup removeFromGroup - clearWaypoints autosize".split(" "),g)}))).isEnabled=f;this.put("insert",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["insertLink","insertImage"],g)})));this.put("view",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,-(null!=this.editorUi.format?["format"]:[]).concat("outline layers - pageView pageScale - tooltips grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),g))})));this.put("viewPanels",new Menu(mxUtils.bind(this,function(e,g){null!=this.editorUi.format&&this.addMenuItems(e,["format"],g);this.addMenuItems(e,["outline","layers"],g)})));this.put("viewZoom",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["smartFit","-"],g);for(var d=[.25,.5,.75,1,1.25,1.5,2,-3,4],h=0;h<d.length;h++)(function(m){e.addItem(100*m+"%",null,function(){b.zoomTo(m)},g)})(d[h]);this.addMenuItems(e,"- fitWindow fitPageWidth fitPage fitTwoPages - customZoom".split(" "),g)})));this.put("file",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"new open - save saveAs - import export - pageSetup print".split(" "),g)})));this.put("edit",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"undo redo - cut copy paste delete - duplicate - editData editTooltip - editStyle - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));-this.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)};+null,null,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[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(e,"",[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(e,"",[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(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,null,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,null,!0,+Format.curvedImage.src)).setAttribute("title",mxResources.get("curved"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(e,g){for(var d=mxUtils.bind(this,function(m){this.styleChange(e,m,[mxConstants.STYLE_FONTFAMILY],+[m],null,g,function(){document.execCommand("fontname",!1,m);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY],"values",[m],"cells",[b.cellEditor.getEditingCell()]))},function(){b.updateLabelElements(b.getSelectionCells(),function(p){p.removeAttribute("face");p.style.fontFamily=null;"PRE"==p.nodeName&&b.replaceElement(p,"div")})}).firstChild.nextSibling.style.fontFamily=m}),h=0;h<this.defaultFonts.length;h++)d(this.defaultFonts[h]);e.addSeparator(g);if(0<this.customFonts.length){for(h=+0;h<this.customFonts.length;h++)d(this.customFonts[h]);e.addSeparator(g);e.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),g);e.addSeparator(g)}this.promptChange(e,mxResources.get("custom")+"...","",mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,g,!0,mxUtils.bind(this,function(m){0>mxUtils.indexOf(this.customFonts,m)&&(this.customFonts.push(m),this.editorUi.fireEvent(new mxEventObject("customFontsChanged")))}))})));+this.put("formatBlock",new Menu(mxUtils.bind(this,function(e,g){function d(h,m){return e.addItem(h,null,mxUtils.bind(this,function(){null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),document.execCommand("formatBlock",!1,"<"+m+">"))}),g)}d(mxResources.get("normal"),"p");d("","h1").firstChild.nextSibling.innerHTML='<h1 style="margin:0px;">'+mxResources.get("heading")+" 1</h1>";d("","h2").firstChild.nextSibling.innerHTML='<h2 style="margin:0px;">'+mxResources.get("heading")+" 2</h2>";d("",+"h3").firstChild.nextSibling.innerHTML='<h3 style="margin:0px;">'+mxResources.get("heading")+" 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 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,null,!0)},g);e.addItem(mxResources.get("vertical"),null,function(){b.distributeCells(!1,null,!0)},g)})));this.put("line",new Menu(mxUtils.bind(this,function(e,g){var d=b.view.getState(b.getSelectionCell());null!=d&&(d=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE),"arrow"!=d&&(Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],+[null,null,null],null,g,!0,Format.straightImage.src)).setAttribute("title",mxResources.get("straight")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],null,g,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],+["elbowEdgeStyle",null,null,null],null,g,!0,Format.horizontalElbowImage.src)).setAttribute("title",mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,g,!0,Format.verticalElbowImage.src)).setAttribute("title",mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,+mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],null,g,!0,Format.horizontalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,g,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==d&&+Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,g,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,g,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))),+e.addSeparator(g),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],null,g,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line")),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],null,g,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link")),+Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],null,g,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow")),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],null,g,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow")))})));+this.put("layout",new Menu(mxUtils.bind(this,function(e,g){var d=mxUtils.bind(this,function(m,p){this.editorUi.prompt(mxResources.get("spacing"),m,p)}),h=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var p=b.getSelectionCell(),k=null;null==p||0==b.getModel().getChildCount(p)?0==b.getModel().getEdgeCount(p)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(p);null!=k&&0<k.length&&(p=k[0]);null!=p&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),+p);b.isSelectionEmpty()||(p=b.getModel().getParent(p),b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0))},!0)}))});e.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),g);e.addItem(mxResources.get("verticalFlow"),null,+mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),g);e.addSeparator(g);e.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||+(m.levelDistance=p,h(m))}))}),g);e.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,h(m))}))}),g);e.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=+p,h(m))}))}),g);e.addSeparator(g);e.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,mxUtils.bind(this,function(p){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=p;this.editorUi.executeLayout(function(){var k=b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),g);e.addItem(mxResources.get("circle"),+null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var p=b.getSelectionCell();if(null==p||0==b.getModel().getChildCount(p))p=b.getDefaultParent();m.execute(p);b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0)},!0)}))}),g)})));this.put("navigation",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),+g)})));this.put("arrange",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["toFront","toBack","bringForward","sendBackward","-"],g);this.addSubmenu("direction",e,g);this.addMenuItems(e,["turn","-"],g);this.addSubmenu("align",e,g);this.addSubmenu("distribute",e,g);e.addSeparator(g);this.addSubmenu("navigation",e,g);this.addSubmenu("insert",e,g);this.addSubmenu("layout",e,g);this.addMenuItems(e,"- group ungroup removeFromGroup - clearWaypoints autosize".split(" "),g)}))).isEnabled=f;this.put("insert",+new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["insertLink","insertImage"],g)})));this.put("view",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,(null!=this.editorUi.format?["format"]:[]).concat("outline layers - pageView pageScale - tooltips grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),g))})));this.put("viewPanels",new Menu(mxUtils.bind(this,function(e,g){null!=this.editorUi.format&&this.addMenuItems(e,["format"],g);this.addMenuItems(e,+["outline","layers"],g)})));this.put("viewZoom",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["smartFit","-"],g);for(var d=[.25,.5,.75,1,1.25,1.5,2,3,4],h=0;h<d.length;h++)(function(m){e.addItem(100*m+"%",null,function(){b.zoomTo(m)},g)})(d[h]);this.addMenuItems(e,"- fitWindow fitPageWidth fitPage fitTwoPages - customZoom".split(" "),g)})));this.put("file",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"new open - save saveAs - import export - pageSetup print".split(" "),+g)})));this.put("edit",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"undo redo - cut copy paste delete - duplicate - editData editTooltip - editStyle - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));this.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,-u,w,y,B){u=B||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!=+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(B){y=d.getParentByName(mxEvent.getSource(B),"TD");var D=!1;if(null!=y){w=d.getParentByName(y,"TR");var E=mxEvent.isMouseEvent(B)?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(B);return D}e=null!=e?e:!0;var d=this.editorUi.editor.graph;b=null!=b?b:mxUtils.bind(this,function(B,D,E){if(null!=d.getParentByName(mxEvent.getSource(B),"TD")&&null!=d.cellEditor.textarea){var G=d.cellEditor.textarea.getElementsByTagName("table");-B=[];for(var J=0;J<G.length;J++)B.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==B.length+1)for(J=D.length-1;0<=J;J--)if(0==J||D[J]!=B[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,+Menus.prototype.addInsertTableItem=function(a,b,f,e){function g(C){y=d.getParentByName(mxEvent.getSource(C),"TD");var E=!1;if(null!=y){w=d.getParentByName(y,"TR");var D=mxEvent.isMouseEvent(C)?2:4,G=k,I=Math.min(20,w.sectionRowIndex+D);D=Math.min(20,y.cellIndex+D);for(var M=G.rows.length;M<I;M++)for(var N=G.insertRow(M),L=0;L<G.rows[0].cells.length;L++)N.insertCell(-1);for(M=0;M<G.rows.length;M++)for(N=G.rows[M],L=N.cells.length;L<D;L++)N.insertCell(-1);u.innerHTML=y.cellIndex+1+"x"+(w.sectionRowIndex++1);for(G=0;G<k.rows.length;G++)for(I=k.rows[G],D=0;D<I.cells.length;D++)M=I.cells[D],G==w.sectionRowIndex&&D==y.cellIndex&&(E="blue"==M.style.backgroundColor),M.style.backgroundColor=G<=w.sectionRowIndex&&D<=y.cellIndex?"blue":"transparent"}mxEvent.consume(C);return E}e=null!=e?e:!0;var d=this.editorUi.editor.graph;b=null!=b?b:mxUtils.bind(this,function(C,E,D){if(null!=d.getParentByName(mxEvent.getSource(C),"TD")&&null!=d.cellEditor.textarea){var G=d.cellEditor.textarea.getElementsByTagName("table");+C=[];for(var I=0;I<G.length;I++)C.push(G[I]);d.container.focus();I=d;G=I.pasteHtmlAtCaret;for(var M=["<table>"],N=0;N<E;N++){M.push("<tr>");for(var L=0;L<D;L++)M.push("<td><br></td>");M.push("</tr>")}M.push("</table>");E=M.join("");G.call(I,E);E=d.cellEditor.textarea.getElementsByTagName("table");if(E.length==C.length+1)for(I=E.length-1;0<=I;I--)if(0==I||E[I]!=C[I-1]){d.selectNode(E[I].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(B){mxEvent.consume(B)}));mxEvent.addGestureListeners(h,null,null,mxUtils.bind(this,function(B){mxEvent.consume(B)}));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(B){mxEvent.consume(B)}));mxEvent.addGestureListeners(m,null,null,mxUtils.bind(this,function(B){mxEvent.consume(B)}));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(B,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<B;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(B){var D=g(B);null!=y&&null!=w&&D&&(b(B,w.sectionRowIndex+1,y.cellIndex+1,h.checked,m.checked),+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,E){var D=document.createElement("table");D.className="geInsertTablePicker";D.setAttribute("border","1");D.style.borderCollapse="collapse";D.style.borderStyle="solid";D.style.marginBottom="4px";+D.style.marginTop="8px";D.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var I=D.insertRow(G),M=0;M<E;M++)I.insertCell(-1);return D}(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 E=g(C);null!=y&&null!=w&&E&&(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(),u=[],w=0;w<k.length;w++){var y=k[w];if(p.getModel().isEdge(y)){if(h){var B=p.getCellGeometry(y);null!=B&&(B=B.clone(),B.points=null,p.getModel().setGeometry(y,B))}for(var D=0;D<f.length;D++)p.setCellStyles(f[D],e[D],[y]);u.push(y)}}this.editorUi.fireEvent(new mxEventObject("styleChanged",+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 E=0;E<f.length;E++)p.setCellStyles(f[E],e[E],[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 u=this.editorUi.editor.graph,w=e,y=u.getView().getState(u.getSelectionCell());null!=y&&(w=y.style[g]||w);var B=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(B){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(g,D)}finally{u.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(E){if(null!=E&&0<E.length){if(C){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(g,E)}finally{u.getModel().endUpdate()}}null!=m&&m(E)}}),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)}}))};@@ -3733,53 +3734,53 @@ function(k){b.cellEditor.alignText(mxConstants.ALIGN_LEFT,k);a.fireEvent(new mxEp.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(),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(B){this.editorUi.handleError(B)}}));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(B){this.editorUi.handleError(B)}}));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(B){this.editorUi.handleError(B)}}));-k.setAttribute("title",mxResources.get("deleteColumn"));k=p.addItem("",Editor.addRowAboveImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(y,w.sectionRowIndex))}catch(B){this.editorUi.handleError(B)}}));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(B){this.editorUi.handleError(B)}}));k.setAttribute("title",mxResources.get("insertRowAfter"));k=p.addItem("",-Editor.removeRowImage,mxUtils.bind(this,function(){try{b.deleteRow(y,w.sectionRowIndex)}catch(B){this.editorUi.handleError(B)}}));k.setAttribute("title",mxResources.get("deleteRow"));k=p.addItem("",Editor.strokeColorImage,mxUtils.bind(this,function(){var B=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(B,-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 B=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)+-("0"+Number(J).toString(16)).substr(-2)});this.editorUi.pickColor(B,function(D){y.style.backgroundColor=null==D||D==mxConstants.NONE?"":D})}));k.setAttribute("title",mxResources.get("backgroundColor"));k=p.addItem("",Editor.spacingImage,mxUtils.bind(this,function(){var B=y.getAttribute("cellPadding")||0;B=new FilenameDialog(this.editorUi,B,mxResources.get("apply"),mxUtils.bind(this,function(D){null!=D&&0<D.length?y.setAttribute("cellPadding",D):y.removeAttribute("cellPadding")}),mxResources.get("spacing"));-this.editorUi.showDialog(B.container,300,80,!0,!0);B.init()}));k.setAttribute("title",mxResources.get("spacing"));k=p.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(){y.setAttribute("align","left")}));k.setAttribute("title",mxResources.get("left"));k=p.addItem("",Editor.alignCenterImage,mxUtils.bind(this,function(){y.setAttribute("align","center")}));k.setAttribute("title",mxResources.get("center"));k=p.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(){y.setAttribute("align",+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(E,D,G,I){return"#"+("0"+Number(D).toString(16)).substr(-2)+("0"+Number(G).toString(16)).substr(-2)+("0"+Number(I).toString(16)).substr(-2)});this.editorUi.pickColor(C,+function(E){null==E||E==mxConstants.NONE?(y.removeAttribute("border"),y.style.border="",y.style.borderCollapse=""):(y.setAttribute("border","1"),y.style.border="1px solid "+E,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(E,D,G,I){return"#"+("0"+Number(D).toString(16)).substr(-2)+("0"+Number(G).toString(16)).substr(-2)++("0"+Number(I).toString(16)).substr(-2)});this.editorUi.pickColor(C,function(E){y.style.backgroundColor=null==E||E==mxConstants.NONE?"":E})}));k.setAttribute("title",mxResources.get("backgroundColor"));k=p.addItem("",Editor.spacingImage,mxUtils.bind(this,function(){var C=y.getAttribute("cellPadding")||0;C=new FilenameDialog(this.editorUi,C,mxResources.get("apply"),mxUtils.bind(this,function(E){null!=E&&0<E.length?y.setAttribute("cellPadding",E):y.removeAttribute("cellPadding")}),mxResources.get("spacing"));+this.editorUi.showDialog(C.container,300,80,!0,!0);C.init()}));k.setAttribute("title",mxResources.get("spacing"));k=p.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(){y.setAttribute("align","left")}));k.setAttribute("title",mxResources.get("left"));k=p.addItem("",Editor.alignCenterImage,mxUtils.bind(this,function(){y.setAttribute("align","center")}));k.setAttribute("title",mxResources.get("center"));k=p.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(){y.setAttribute("align","right")}));k.setAttribute("title",mxResources.get("right"))}})),null,Editor.tableImage);m.setAttribute("data-min-width",740);this.editorUi.dependsOnLanguage(mxUtils.bind(this,function(){f.innerText=mxResources.get("style");d.setAttribute("title",mxResources.get("format"));f.setAttribute("title",mxResources.get("style"));e.setAttribute("title",mxResources.get("fontFamily"));g.setAttribute("title",mxResources.get("fontSize"));h.setAttribute("title",mxResources.get("insert"));m.setAttribute("title",mxResources.get("table"))}))};Toolbar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};Toolbar.prototype.setMenuText=function(a,b){a.getElementsByTagName("span")[0].innerText=b};Toolbar.prototype.setMenuIcon=function(a,b){a.style.backgroundImage="url("+b+")"};Toolbar.prototype.addMenu=function(a,b,f,e){var g=this.editorUi.createMenuElement("",a.funct);this.editorUi.menus.menuCreated(a,g,"geButton");null!=f?g.style.backgroundImage="url("+f+")":null!=b&&(a=document.createElement("span"),mxUtils.write(a,b),g.appendChild(a));e=null!=e?e:this.container;e.appendChild(g);return g};Toolbar.prototype.addSeparator=function(a,b){a=null!=a?a:this.container;var f=document.createElement("div");f.className="geSeparator";a.appendChild(f);null!=b&&f.setAttribute("data-min-width",b);return f};Toolbar.prototype.addItems=function(a,b,f,e,g){for(var d=[],h=0;h<a.length;h++){var m=a[h];"-"==m?d.push(this.addSeparator(b,g)):(m=this.addItem(null!=e?e[h]:null,m,b,f),d.push(m),null!=g&&m.setAttribute("data-min-width",g))}return d};Toolbar.prototype.addItem=function(a,b,f){var e=this.editorUi.actions.get(b),g=null;null!=e&&(g=this.editorUi.addButton(a,"",e.funct,null!=f?f:this.container),this.editorUi.dependsOnLanguage(mxUtils.bind(this,function(){var d=e.getTitle();null!=e.shortcut&&(d+=" ("+e.shortcut+")");g.setAttribute("title",d)})),a=mxUtils.bind(this,function(){e.enabled?g.removeAttribute("disabled"):g.setAttribute("disabled","disabled")}),e.addListener("stateChanged",a),a());return g};-Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(D,E,G){if(null==D)return[G,G,G];var J=Math.floor(D),-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 1:return[D,G,M];case 2:return[M,G,D];case 3:return[M,D,G];case 4:return[D,M,G];case 5:return[G,M,D]}}mxEventSource.call(this);var b=document.createElement("div");b.style.overflow="visible";b.style.position="relative";b.style.top="0px";b.style.left="0px";b.style.width="230px";b.style.height="114px";var f=document.createElement("div");f.style.border="1px solid light-dark(black, white)";f.style.backgroundImage="url("+this.hsImage+-")";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+")";B.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)}),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 B=document.createElement("div");B.style.background="url("+this.arrowImage+")";B.style.position="absolute";B.style.pointerEvents="none";B.style.width="7px";B.style.height="11px";B.style.left="2px";B.style.top="-3px";sliderBox.appendChild(B);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=";+Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(D,G,I){if(null==D)return[I,I,I];var M=Math.floor(D),+N=I*(1-G);D=I*(1-G*(M%2?D-M:1-(D-M)));switch(M){case 6:case 0:return[I,D,N];case 1:return[D,I,N];case 2:return[N,I,D];case 3:return[N,D,I];case 4:return[D,N,I];case 5:return[I,N,D]}}mxEventSource.call(this);var b=document.createElement("div");b.style.overflow="visible";b.style.position="relative";b.style.top="0px";b.style.left="0px";b.style.width="230px";b.style.height="114px";var f=document.createElement("div");f.style.border="1px solid light-dark(black, white)";f.style.backgroundImage="url("+this.hsImage++")";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],d=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 h=document.createElement("div");h.style.border="1px solid light-dark(black, white)";h.style.pointerEvents="none";h.style.overflow="hidden";h.style.position="absolute";h.style.width="16px";h.style.height="101px";h.style.left="9px";h.style.top="0px";var m=!1,p=!1,k=mxUtils.bind(this,function(D){var G=Math.round(100*(1-g[1]));e.style.left=+Math.round(g[0]/6*180)-8+"px";e.style.top=G-8+"px";G=h.childNodes;var I=a(g[0],g[1],1);if(null!=I){for(var M=0;M<G.length;M++)G[M].style.backgroundColor="rgb("+I[0]*(1-M/G.length)*255+", "+I[1]*(1-M/G.length)*255+", "+I[2]*(1-M/G.length)*255+")";E.style.top=Math.round(100*(1-g[2]))-4+"px";G=a(g[0],g[1],g[2]);G="#"+("0"+Math.round(255*G[0]).toString(16)).slice(-2)+("0"+Math.round(255*G[1]).toString(16)).slice(-2)+("0"+Math.round(255*G[2]).toString(16)).slice(-2)+(1>d?("0"+Math.round(255*d).toString(16)).slice(-2):+"");1!=D&&this.fireEvent(new mxEventObject("change","color",mxUtils.rgba2hex(G)))}}),u=mxUtils.bind(this,function(D){0==g[2]&&(g[2]=1);m=!0;y(D)}),w=mxUtils.bind(this,function(D){p=!0;y(D)}),y=mxUtils.bind(this,function(D){if(m){var G=f.getBoundingClientRect(),I=mxEvent.getClientX(D)-G.left;D=mxEvent.getClientY(D)-G.top;e.style.left=I-8+"px";e.style.top=D-8+"px";I*=6/180;D=1-D/100;G=void 0;0>I&&(I=0);6<I&&(I=6);0>D&&(D=0);1<D&&(D=1);0>G&&(G=0);1<G&&(G=1);I=a(null==I?g[0]:g[0]=I,null==D?g[1]:g[1]=+D,null==G?g[2]:g[2]=G);this.fromString("#"+("0"+Math.floor(255*I[0]).toString(16)).slice(-2)+("0"+Math.floor(255*I[1]).toString(16)).slice(-2)+("0"+Math.floor(255*I[2]).toString(16)).slice(-2)+(1>d?("0"+Math.round(255*d).toString(16)).slice(-2):""))}else p&&(G=sliderBox.getBoundingClientRect(),D=mxEvent.getClientY(D)-G.top,g[2]=Math.max(Math.min(1,1-D/100),0),k())}),C=mxUtils.bind(this,function(){m=p=!1});mxEvent.addGestureListeners(f,u);mxEvent.addGestureListeners(sliderBox,w);mxEvent.addGestureListeners(b,+null,y,C);mxEvent.addListener(b,"mouseleave",C);for(u=0;101>u;u+=4)w=document.createElement("div"),w.style.height="4px",w.style.pointerEvents="none",h.appendChild(w);b.appendChild(h);var E=document.createElement("div");E.style.background="url("+this.arrowImage+")";E.style.position="absolute";E.style.pointerEvents="none";E.style.width="7px";E.style.height="11px";E.style.left="2px";E.style.top="-3px";sliderBox.appendChild(E);sliderBox.appendChild(h);b.appendChild(sliderBox);this.fromString=function(D,+G){G=null!=G?G:!1;if(null==D||""==D||mxUtils.isVarColor(D)||D==mxConstants.NONE)D="#ffffff",G=!0;D=mxUtils.parseColor(D);var I=D.r/255,M=D.g/255,N=D.b/255,L=Math.min(Math.min(I,M),N);var V=Math.max(Math.max(I,M),N);var X=V-L;0===X?V=[null,0,V]:(I=I===L?3+(N-M)/X:M===L?5+(I-N)/X:1+(M-I)/X,V=[6===I?0:I,X/V,V]);null!=V[0]&&(g[0]=V[0]);0!=V[2]&&(g[1]=V[1]);g[2]=V[2];d=D.a;k(G)};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(){fa.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 B(ba){"#"==ba.value.charAt(0)&&(ba.value=ba.value.substring(1));var ma=ba.value,La=ma.toLowerCase();null==g||""!=ma&&"automatic"!=La&&"default"!=La&&La!=mxResources.get("default").toLowerCase()&&La!=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&&(B(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 fa=document.createElement("img");-fa.setAttribute("title",mxResources.get("dark"));fa.className="geAdaptiveAsset";fa.style.marginLeft="-2px";H.appendChild(fa);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(),B(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(){B(X)});mxEvent.addListener(N,-"change",function(){B(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,B(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,La,na){ma=null!=ma?ma:12;var za=document.createElement("table");za.style.borderCollapse="collapse";za.setAttribute("cellspacing","0");za.style.marginBottom="20px";za.style.cellSpacing="0px";-za.style.marginLeft="1px";var Aa=document.createElement("tbody");za.appendChild(Aa);for(var Ma=ba.length/ma,Qa=0;Qa<Ma;Qa++){for(var Ja=document.createElement("tr"),Ia=0;Ia<ma;Ia++)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=La);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)}Ja.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";B(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();B(X);B(N);ia==X?ha.fromString(Wa.light):ha.fromString(Wa.dark)}else ha.fromString("#"+ra)}),mxEvent.addListener(Da,"dblclick",D))})(ba[Qa*ma+Ia]);Aa.appendChild(Ja)}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",Ja.appendChild(ba),mxEvent.addListener(ba,"click",function(){ColorDialog.resetRecentColors();za.parentNode.replaceChild(J(),-za)}));ta.appendChild(za);return za});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(" ");+var ColorDialog=function(a,b,f,e,g,d,h){function m(ba){return mxUtils.color2hex("#"+ba).substring(1).toUpperCase()}function p(){fa.src="none"==S.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ba){ba||"none"==S.style.display?(S.style.display="flex",O.focus()):S.style.display="none";p()}function u(ba){""==ba.value&&null!=N&&V?ba.style.background=ba==O?N.dark:N.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(O)}function y(ba){ba?h&&null!=N?(X.value=N.light.substring(1).toUpperCase(),ba=!1):(X.value="",O.value="",ca.value="automatic",X.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),O.setAttribute("title",mxResources.get("useBlackAndWhite")),X.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==X.value&&+null!=N&&(X.value=N.light.substring(1).toUpperCase()),X.removeAttribute("placeholder"),X.removeAttribute("title"),""==O.value&&null!=N&&(O.value=N.dark.substring(1).toUpperCase()),O.removeAttribute("placeholder"),O.removeAttribute("title"),ba=!1);V=ba}function C(ba){"#"==ba.value.charAt(0)&&(ba.value=ba.value.substring(1));var ma=ba.value,Na=ma.toLowerCase();null==g||""!=ma&&"automatic"!=Na&&"default"!=Na&&Na!=mxResources.get("default").toLowerCase()&&Na!=mxResources.get("automatic").toLowerCase()||+null==N?(ba.value==mxConstants.NONE||mxUtils.isVarColor(ba.value)||(ba.value=m(ba.value),ha.fromString("#"+ba.value)),y(!1),ba!=O||X.value==mxConstants.NONE&&O.value==mxConstants.NONE||(ca.value="custom"),ba==X&&"automatic"==ca.value&&(X.value==mxConstants.NONE?O.value=mxConstants.NONE:mxUtils.isVarColor(X.value)?O.value=X.value:O.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+ba.value)).substring(1).toUpperCase()),w()):W.click()}function E(){var ba=X.value,ma=O.value;if(V&&null!=N||(/(^#?[a-zA-Z0-9]*$)/.test(ba)||+mxUtils.isVarColor(ba))&&(/(^#?[a-zA-Z0-9]*$)/.test(ma)||mxUtils.isVarColor(ma))){if(V)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 D(){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 I(){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)),E())}var N=null!=d?mxUtils.getLightDarkColor(d,null,null,h):null,L=a.editor.graph;this.editorUi=a;var V=!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 O=document.createElement("input");O.style.textOverflow="ellipsis";O.style.margin="0 4px";O.style.maxWidth=+"70px";O.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(){O.focus()});S.appendChild(O);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 fa=document.createElement("img");+fa.setAttribute("title",mxResources.get("dark"));fa.className="geAdaptiveAsset";fa.style.marginLeft="-2px";H.appendChild(fa);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=O.value;+O.value=ma;w();mxEvent.consume(ba)});H.appendChild(la);var P=document.createElement("img");P.setAttribute("title",mxResources.get("copy"));P.className="geAdaptiveAsset";P.style.marginLeft="4px";P.style.width="16px";P.style.height="16px";P.style.cursor="pointer";P.src=Editor.doubleArrowUpImage;mxEvent.addListener(P,"click",function(ba){ia==O?X.value=O.value:O.value=X.value;k(!0);ca.value="custom";w();mxEvent.consume(ba)});H.appendChild(P);p();mxEvent.addListener(H,"click",function(){k();p();ColorDialog.collapsed=+"none"==S.style.display});var W=mxUtils.button("",function(){y(!0);w();ia.focus();""==ia.value&&null!=N&&V&&ha.fromString(ia==O?N.dark:N.light,!0)});mxEvent.addListener(ca,"change",function(){"automatic"==ca.value?(X.focus(),C(X)):(y(!1),mxUtils.isVarColor(O.value)||(O.value=V&&null!=N?N.dark.substring(1).toUpperCase():O.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+X.value)).substring(1).toUpperCase()),O.focus(),D());w()});mxEvent.addListener(X,"change",function(){C(X)});mxEvent.addListener(O,+"change",function(){C(O)});var Y=null!=f?f:this.createApplyFunction();this.init=function(){D()};var ha=new ColorPicker,ia=Editor.isDarkMode()&&("auto"==L.getAdaptiveColors()||"simple"==L.getAdaptiveColors()&&"custom"==ca.value)&&!h?O:X;mxEvent.addListener(X,"focus",function(){ia=X;G();P.src=Editor.doubleArrowDownImage});mxEvent.addListener(O,"focus",function(){ia=O;G();P.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,Na,oa){ma=null!=ma?ma:12;var za=document.createElement("table");za.style.borderCollapse="collapse";za.setAttribute("cellspacing","0");za.style.marginBottom="20px";za.style.cellSpacing="0px";+za.style.marginLeft="1px";var Aa=document.createElement("tbody");za.appendChild(Aa);for(var La=ba.length/ma,Qa=0;Qa<La;Qa++){for(var Ja=document.createElement("tr"),Ia=0;Ia<ma;Ia++)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=Na);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)}Ja.appendChild(Da);null!=ra&&(Da.style.cursor="pointer",mxEvent.addListener(Da,"click",function(){if(ra==mxConstants.NONE){ia==O&&O.value==mxConstants.NONE?X.value=mxConstants.NONE:+ia.value=mxConstants.NONE;if(ia==X||ia==O&&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();O.value=Wa.dark.substring(1).toUpperCase();C(X);C(O);ia==X?ha.fromString(Wa.light):ha.fromString(Wa.dark)}else ha.fromString("#"+ra)}),mxEvent.addListener(Da,"dblclick",E))})(ba[Qa*ma+Ia]);Aa.appendChild(Ja)}oa&&(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",Ja.appendChild(ba),mxEvent.addListener(ba,"click",function(){ColorDialog.resetRecentColors();za.parentNode.replaceChild(I(),+za)}));ta.appendChild(za);return za});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!=N&&(W.setAttribute("title",mxResources.get(h?"default":"useBlackAndWhite")),+W.style.cursor="pointer",W.style.position="relative",W.style.marginLeft="4px",W.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=N.light:L.style.backgroundImage="linear-gradient(to right bottom, "+N.cssText+" 50%, "+mxUtils.invertLightDarkColor(N).cssText+" 50.3%)",W.appendChild(L),T.appendChild(W),+mxEvent.addListener(W,"dblclick",E));var Q=document.createElement("input");Q.setAttribute("type","color");Q.style.position="relative";Q.style.visibility="hidden";Q.style.top="10px";Q.style.width="0px";Q.style.height="0px";Q.style.border="none";f.style.whiteSpace="nowrap";T.appendChild(Q);L=mxUtils.button("",function(){document.activeElement==Q?X.focus():(Q.value="#"+X.value,Q.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(Q,"change",function(){ha.fromString(Q.value)});h||f.appendChild(S);I();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"),E);L.className="geBtn gePrimaryBtn";d.appendChild(L);a.editor.cancelFirst||d.appendChild(T);null!=b&&("default"==b?W.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?O.value=mxConstants.NONE:mxUtils.isVarColor(T.dark)?O.value=T.dark:(mxUtils.isRgbColor(T.dark)?T.dark=mxUtils.rgba2hex(T.dark):mxUtils.isHexColor(T.dark)||(T.dark="#"+m(T.dark)),O.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(O,"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(" ");ColorDialog.prototype.createApplyFunction=function(){return ColorDialog.createApplyFunction(this.editorUi,this.currentColorKey)};ColorDialog.createApplyFunction=function(a,b){return function(f){var e=a.editor.graph;e.getModel().beginUpdate();try{e.setCellStyles(b,f),a.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[f],"cells",e.getSelectionCells()))}finally{e.getModel().endUpdate()}}};ColorDialog.recentColors=[];ColorDialog.addRecentColor=function(a,b){null!=a&&(mxUtils.remove(a,ColorDialog.recentColors),ColorDialog.recentColors.splice(0,0,a),ColorDialog.recentColors.length>=b&&ColorDialog.recentColors.pop())};ColorDialog.resetRecentColors=function(){ColorDialog.recentColors=[]};ColorDialog.collapsed=!0;@@ -3787,75 +3788,75 @@ var AboutDialog=function(a){var b=document.createElement("div");b.setAttribute(""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,e,g){var d=document.createElement("div"),h=document.createElement("textarea");h.style.position="absolute";h.style.left="30px";h.style.right="30px";h.style.top="30px";h.style.bottom="100px";h.style.resize="none";h.setAttribute("wrap","off");h.setAttribute("spellcheck","false");h.setAttribute("autocorrect","off");h.setAttribute("autocomplete","off");h.setAttribute("autocapitalize","off");h.value=null!=b?b:"";d.appendChild(h);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";null==g||a.isOffline()||b.appendChild(a.createHelpIcon(g));g=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});g.setAttribute("title","Escape");g.className="geBtn";a.editor.cancelFirst&&b.appendChild(g);var m=mxUtils.button(null!=e?e:mxResources.get("apply"),function(){a.hideDialog();f(h.value)});m.setAttribute("title","Ctrl+Enter");m.className="geBtn gePrimaryBtn";b.appendChild(m);mxEvent.addListener(h,"keydown",function(p){13==p.keyCode&&mxEvent.isControlDown(p)&&m.click()});a.editor.cancelFirst||b.appendChild(g);this.init=function(){h.focus();h.scrollTop=0};d.appendChild(b);-this.container=d},TextareaDialog=function(a,b,f,e,g,d,h,m,p,k,u,w,y,B,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");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!=B)for(b=0;b<B.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)})(B[b][0],-B[b][1],B[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||+this.container=d},TextareaDialog=function(a,b,f,e,g,d,h,m,p,k,u,w,y,C,E){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 D=m.cloneNode(!1),G=m.cloneNode(!1);m.style.top="0px";m.style.height="20px";D.style.top="20px";D.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(D);h.appendChild(G);null!=E&&m.appendChild(E);var I=document.createElement("textarea");u?I.setAttribute("wrap","off"):I.style.wordBreak="break-all";I.setAttribute("spellcheck","false");I.setAttribute("autocorrect","off");I.setAttribute("autocomplete","off");I.setAttribute("autocapitalize",+"off");mxUtils.write(I,f||"");I.style.resize="none";I.style.outline="none";I.style.position="absolute";I.style.boxSizing="border-box";I.style.top="0px";I.style.left="0px";I.style.height="100%";I.style.width="100%";this.textarea=I;this.init=function(){I.focus();I.scrollTop=0};D.appendChild(I);null==y||a.isOffline()||G.appendChild(a.createHelpIcon(y));if(null!=C)for(b=0;b<C.length;b++)(function(N,L,V){N=mxUtils.button(N,function(X){L(X,I)});null!=V&&N.setAttribute("title",V);N.className="geBtn";G.appendChild(N)})(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,I);if(null!=e){var M=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();e(I.value)});M.setAttribute("title","Ctrl+Enter");M.className="geBtn gePrimaryBtn";G.appendChild(M);mxEvent.addListener(I,"keydown",function(N){13==N.keyCode&&mxEvent.isControlDown(N)&&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,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 B=y.getChildren(y.getChildAt(y.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(B));-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=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"),B.setAttribute("disabled","true"),D.setAttribute("disabled","true"),K.setAttribute("disabled","true")):(y.removeAttribute("disabled"),B.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(){B.style.backgroundColor=B.value*D.value>MAX_AREA||0>=B.value?"red":"";D.style.backgroundColor=B.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/+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(E){p=E}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(E){p=E}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=u.value,O=T.lastIndexOf(".");u.value=0<O?T.substring(0,O+1)+w.value:T+"."+w.value;"xml"===w.value?(y.setAttribute("disabled","true"),C.setAttribute("disabled","true"),E.setAttribute("disabled","true"),L.setAttribute("disabled","true")):(y.removeAttribute("disabled"),C.removeAttribute("disabled"),E.removeAttribute("disabled"),L.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?N.removeAttribute("disabled"):N.setAttribute("disabled","disabled");"png"===w.value?(D.removeAttribute("disabled"),G.removeAttribute("disabled")):(D.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"))}function f(){C.style.backgroundColor=C.value*E.value>MAX_AREA||0>=C.value?"red":"";E.style.backgroundColor=C.value*E.value>MAX_AREA||0>=E.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 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 B=document.createElement("input");-B.setAttribute("value",h);B.style.width="180px";k=document.createElement("td");k.appendChild(B);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("height")+":");g.appendChild(k);var D=document.createElement("input");D.setAttribute("value",m);D.style.width="180px";k=document.createElement("td");k.appendChild(D);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");-k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("dpi")+":");g.appendChild(k);var E=document.createElement("select");E.style.width="180px";k=document.createElement("option");k.setAttribute("value","100");mxUtils.write(k,"100dpi");E.appendChild(k);k=document.createElement("option");k.setAttribute("value","200");mxUtils.write(k,"200dpi");E.appendChild(k);k=document.createElement("option");k.setAttribute("value","300");mxUtils.write(k,"300dpi");E.appendChild(k);k=document.createElement("option");-k.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 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?(B.value=Math.floor(h*T),D.value=Math.floor(m*T)):(y.value="100",B.value=h,D.value=m);f()});mxEvent.addListener(B,"change",function(){var T=parseInt(B.value)/h;0<T?(y.value=parseFloat((100*T).toFixed(2)),D.value=Math.floor(m*T)):(y.value="100",B.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)),B.value=Math.floor(h*-T)):(y.value="100",B.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,fa=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,fa,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;+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");+C.setAttribute("value",h);C.style.width="180px";k=document.createElement("td");k.appendChild(C);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("height")+":");g.appendChild(k);var E=document.createElement("input");E.setAttribute("value",m);E.style.width="180px";k=document.createElement("td");k.appendChild(E);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");+k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("dpi")+":");g.appendChild(k);var D=document.createElement("select");D.style.width="180px";k=document.createElement("option");k.setAttribute("value","100");mxUtils.write(k,"100dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","200");mxUtils.write(k,"200dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","300");mxUtils.write(k,"300dpi");D.appendChild(k);k=document.createElement("option");+k.setAttribute("value","400");mxUtils.write(k,"400dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","custom");mxUtils.write(k,mxResources.get("custom"));D.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 I=!1;mxEvent.addListener(D,"change",function(){"custom"==this.value?(this.style.display="none",G.style.display=+"",G.focus()):(G.value=this.value,I||(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="",I||(y.value=T))});k=document.createElement("td");k.appendChild(D);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 N=document.createElement("input");N.setAttribute("type","checkbox");N.checked=!1;k=document.createElement("td");k.appendChild(N);+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",+function(){I=!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),E.value=Math.floor(m*T)):(y.value="100",C.value=h,E.value=m);f()});mxEvent.addListener(C,"change",function(){var T=parseInt(C.value)/h;0<T?(y.value=parseFloat((100*T).toFixed(2)),E.value=Math.floor(m*T)):(y.value="100",C.value=h,E.value=m);f()});mxEvent.addListener(E,"change",function(){var T=parseInt(E.value)/m;0<T?(y.value=parseFloat((100*T).toFixed(2)),C.value=Math.floor(h*+T)):(y.value="100",C.value=h,E.value=m);f()});g=document.createElement("tr");k=document.createElement("td");k.setAttribute("align","right");k.style.paddingTop="22px";k.colSpan=2;var V=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(y.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var T=u.value,O=w.value,ca=Math.max(0,parseFloat(y.value)||100)/100,H=Math.max(0,parseInt(L.value)),S=e.background,fa=Math.max(1,parseInt(G.value));if(("svg"==O||"png"==O||+"pdf"==O)&&M.checked)S=null;else if(null==S||S==mxConstants.NONE)S="#ffffff";ExportDialog.lastBorderValue=H;ExportDialog.exportFile(a,T,O,S,ca,H,fa,N.checked)}}));V.className="geBtn gePrimaryBtn";var X=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});X.className="geBtn";a.editor.cancelFirst?(k.appendChild(X),k.appendChild(V)):(k.appendChild(V),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(),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<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=[],B=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(fa){return function(){for(var la=0,O=0;O<w.length;O++){if(w[O]==fa){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[B]+-":",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(B,p[M].name,p[M].value),B++;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 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(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)),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};+var EditDataDialog=function(a,b){function f(){0<L.value.length?V.removeAttribute("disabled"):V.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,E=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,D=function(T,O){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);O=function(fa){return function(){for(var la=0,P=0;P<w.length;P++){if(w[P]==fa){y[P]=null;k.table.deleteRow(la+(null!=E?1:0));break}null!=y[P]&&la++}}}(O);mxEvent.addListener(H,"click",O);O=T.parentNode;ca.appendChild(T);ca.appendChild(H);O.appendChild(ca)};h=function(T,O,ca){w[T]=O;y[T]=k.addTextarea(w[C]++":",ca,2);y[T].style.width="100%";0<ca.indexOf("\n")&&y[T].setAttribute("rows","2");D(y[T],O);null!=m[O]&&0==m[O].editable&&y[T].setAttribute("disabled","disabled")};p=[];for(var G=g.getModel().getParent(b)==g.getModel().getRoot(),I=g.getCellStyle(b),M=0;M<u.length;M++)("label"!=u[M].nodeName||"1"==I.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[M].nodeName&&p.push({name:u[M].nodeName,value:u[M].nodeValue});p.sort(function(T,O){return"label"==T.name?1:"label"==O.name?-1:T.name<O.name?-1:+T.name>O.name?1:0});if(null!=E){u=document.createElement("div");u.style.width="100%";u.style.fontSize="11px";u.style.textAlign="center";mxUtils.write(u,E);var N=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(T){T=new FilenameDialog(a,E,mxResources.get("apply"),mxUtils.bind(this,function(O){if(null!=O&&0<O.length&&O!=E)if(g.model.isRoot(b)){var ca=a.getPageById(E);if(null!=ca)if(null==a.getPageById(O)){var H=a.getPageIndex(ca);0<=H&&(a.removePage(ca),ca.node.setAttribute("id",+O),E=O,N.innerHTML=mxUtils.htmlEntities(O),a.insertPage(ca,H))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==g.getModel().getCell(O)?(g.getModel().cellRemoved(b),b.setId(O),E=O,N.innerHTML=mxUtils.htmlEntities(O),g.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[O])})}),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 V=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 O=mxUtils.indexOf(w,T);if(0<=O&&null!=y[O])y[O].focus();else{d.cloneNode(!1).setAttribute(T,+"");0<=O&&(w.splice(O,1),y.splice(O,1));w.push(T);var ca=k.addTextarea(T+":","",2);ca.style.width="100%";y.push(ca);D(ca,T);ca.focus()}V.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&&V.click()});this.init=function(){0<y.length?y[0].focus():L.focus()};V.setAttribute("title",mxResources.get("addProperty"));V.setAttribute("disabled","disabled");V.style.textOverflow=+"ellipsis";V.style.position="absolute";V.style.overflow="hidden";V.style.width="144px";V.style.right="0px";V.className="geBtn";h.appendChild(V);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 O=g.getDataForCells([b],!0);T=new EmbedDialog(a,JSON.stringify(O,null,2),null,null,function(){console.log(O);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,O=0;O<w.length;O++)null==y[O]?d.removeAttribute(w[O]):(d.setAttribute(w[O],y[O].value),T=T||"placeholder"==w[O]&&"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);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",I=document.createElement("input"),I.setAttribute("type","checkbox"),I.style.marginRight="6px","1"==d.getAttribute("placeholders")&&(I.setAttribute("checked","checked"),I.defaultChecked=!0),mxEvent.addListener(I,"click",function(){"1"==d.getAttribute("placeholders")?d.removeAttribute("placeholders"):+d.setAttribute("placeholders","1")}),G.appendChild(I),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 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,fa,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",fa+" ("+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!=+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 O=L.get(p.getLayerForCells(p.getSelectionCells()));+null!=O?O.appendChild(T):null!=T.parentNode&&T.parentNode.removeChild(T)}function h(){function O(S,fa,la,P){var W=document.createElement("div");W.className="geToolbarContainer";L.put(la,W);W.style.overflow="hidden";W.style.position="relative";W.style.padding="4px";W.style.height="30px";W.style.display="flex";W.style.alignItems="center";W.style.borderWidth="0px 0px 1px 0px";W.style.borderStyle="solid";W.style.whiteSpace="nowrap";W.setAttribute("title",fa+" ("+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(W,"dragover",function(aa){aa.dataTransfer.dropEffect="move";y=S;aa.stopPropagation();aa.preventDefault()});mxEvent.addListener(W,"dragstart",function(aa){"true"!=ha.contentEditable&&(w=W,mxClient.IS_FF&&aa.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(W,"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",-mxResources.get("lockUnlock"));var ta=p.getCurrentCellStyle(la);"1"==mxUtils.getValue(ta,"locked","0")?(ia.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(ia,90),V.style.color="red"):(ia.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(ia,40));p.isEnabled()&&(ia.style.cursor="pointer");mxEvent.addListener(ia,"click",function(aa){if(p.isEnabled()){var P=null;p.getModel().beginUpdate();try{P="1"==mxUtils.getValue(ta,"locked","0")?null:"1",p.setCellStyles("locked",P,[la])}finally{p.getModel().endUpdate()}"1"==-P&&p.removeSelectionCells(p.getModel().getDescendants(la));mxEvent.consume(aa)}});Y.appendChild(ia);mxUtils.write(ha,fa);ha.style.display="block";ha.style.whiteSpace="nowrap";ha.style.overflow="hidden";ha.style.textOverflow="ellipsis";ha.style.position="absolute";ha.style.padding="2px";ha.style.left="52px";ha.style.right="8px";Y.appendChild(ha);V.appendChild(Y);if(p.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)fa=document.createElement("div"),fa.style.display=+mxUtils.setOpacity(W,90)):(ia.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(W,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",+mxResources.get("lockUnlock"));var ta=p.getCurrentCellStyle(la);"1"==mxUtils.getValue(ta,"locked","0")?(ia.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(ia,90),W.style.color="red"):(ia.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(ia,40));p.isEnabled()&&(ia.style.cursor="pointer");mxEvent.addListener(ia,"click",function(aa){if(p.isEnabled()){var Q=null;p.getModel().beginUpdate();try{Q="1"==mxUtils.getValue(ta,"locked","0")?null:"1",p.setCellStyles("locked",Q,[la])}finally{p.getModel().endUpdate()}"1"==+Q&&p.removeSelectionCells(p.getModel().getDescendants(la));mxEvent.consume(aa)}});Y.appendChild(ia);mxUtils.write(ha,fa);ha.style.display="block";ha.style.whiteSpace="nowrap";ha.style.overflow="hidden";ha.style.textOverflow="ellipsis";ha.style.position="absolute";ha.style.padding="2px";ha.style.left="52px";ha.style.right="8px";Y.appendChild(ha);W.appendChild(Y);if(p.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)fa=document.createElement("div"),fa.style.display="block",fa.style.textAlign="right",fa.style.whiteSpace="nowrap",fa.style.position="absolute",fa.style.right="16px",fa.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",fa.appendChild(Y),mxEvent.addListener(Y,"click",function(aa){p.isEnabled()&&p.addCell(la,p.model.root,-S-1);mxEvent.consume(aa)})),0<=S&&S<B-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",fa.appendChild(Y),mxEvent.addListener(Y,"click",function(aa){p.isEnabled()&&p.addCell(la,p.model.root,S+1);mxEvent.consume(aa)})),V.appendChild(fa);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))});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"));B=p.model.getChildCount(p.model.root);u.innerText="";K.clear();for(var ca=B-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],fa=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!=fa?(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 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 B=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 fa=p.getLayerForCells(p.getSelectionCells()),la=B-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==fa&&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 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",+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",fa.appendChild(Y),mxEvent.addListener(Y,"click",function(aa){p.isEnabled()&&p.addCell(la,p.model.root,S+1);mxEvent.consume(aa)})),W.appendChild(fa);mxClient.IS_SVG&&(!mxClient.IS_IE||10<=document.documentMode)&&+(W.setAttribute("draggable","true"),W.style.cursor="move")}mxEvent.addListener(W,"dblclick",function(aa){var Q=mxEvent.getSource(aa).nodeName;"INPUT"!=Q&&"IMG"!=Q&&"true"!=ha.contentEditable&&(m(la),mxEvent.consume(aa))});p.getDefaultParent()==la&&(W.classList.add("geActivePage"),W.style.fontWeight=p.isEnabled()?"bold":"",E=la);mxEvent.addListener(W,"click",function(aa){p.isEnabled()&&"true"!=ha.contentEditable&&(p.setDefaultParent(P),p.view.setCurrentRoot(null),mxEvent.isShiftDown(aa)&&p.setSelectionCells(la.children),+mxEvent.consume(aa))});u.appendChild(W)}p.isEnabled()?(X.classList.remove("mxDisabled"),N.classList.remove("mxDisabled"),V.classList.remove("mxDisabled"),I.classList.remove("mxDisabled")):(X.classList.add("mxDisabled"),N.classList.add("mxDisabled"),V.classList.add("mxDisabled"),I.classList.add("mxDisabled"));C=p.model.getChildCount(p.model.root);u.innerText="";L.clear();for(var ca=C-1;0<=ca;ca--)mxUtils.bind(this,function(S){O(ca,p.convertValueToString(S)||mxResources.get("background"),S,S)})(p.model.getChildAt(p.model.root,+ca));var H=p.convertValueToString(E)||mxResources.get("background");X.setAttribute("title",mxResources.get("removeIt",[H]));V.setAttribute("title",mxResources.get("duplicateIt",[H]));p.isSelectionEmpty()&&M.classList.add("mxDisabled");d()}function m(O){if(p.isEnabled()&&null!=O){var ca=L.get(O);if(null!=ca){var H=ca.getElementsByTagName("span");if(null!=H&&0<H.length){var S=H[0],fa=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(P){if("true"==S.contentEditable){S.contentEditable="false";var W=mxUtils.getTextContent(S);P&&W!=fa?(W=mxUtils.getTextContent(S),0<W.length?p.cellLabelChanged(O,W):p.cellLabelChanged(O,mxResources.get("untitledLayer"))):h()}};mxEvent.addListener(S,"keydown",function(P){if(13==P.keyCode||27==P.keyCode)la(13==P.keyCode),mxEvent.consume(P)});mxEvent.addListener(S,"blur",function(P){la(!0);mxEvent.consume(P)})}}}}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 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(O){O.dataTransfer.dropEffect="move";y=0;O.stopPropagation();O.preventDefault()});mxEvent.addListener(k,"drop",function(O){O.stopPropagation();+O.preventDefault()});var C=null,E=null,D=document.createElement("div");D.className="geToolbarContainer geDialogToolbar";var G=document.createElement("a");G.className="geButton";var I=G.cloneNode(!1);I.style.backgroundImage="url("+Editor.plusImage+")";I.setAttribute("title",mxResources.get("addLayer"));mxEvent.addListener(I,"click",function(O){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(O)});+p.isEnabled()||I.classList.add("mxDisabled");D.appendChild(I);var M=G.cloneNode();M.style.backgroundImage="url("+Editor.layersImage+")";M.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(M,"click",function(O){if(p.isEnabled()&&!p.isSelectionEmpty()){var ca=mxUtils.getOffset(M);a.showPopupMenu(mxUtils.bind(this,function(H,S){for(var fa=p.getLayerForCells(p.getSelectionCells()),la=C-1;0<=la;la--)mxUtils.bind(this,function(P){var W="1"==mxUtils.getValue(p.getCurrentCellStyle(P),+"locked","0"),Y=H.addItem(p.convertValueToString(P)||mxResources.get("background"),null,mxUtils.bind(this,function(){W||p.moveCells(p.getSelectionCells(),0,0,!1,P)}),S,null,null,!W);W?H.addCheckmark(Y,Editor.lockedImage):P==fa&&H.addCheckmark(Y,Editor.checkmarkImage)})(p.model.getChildAt(p.model.root,la))}),ca.x,ca.y+M.offsetHeight,O)}});D.appendChild(M);var N=G.cloneNode(!1);N.style.backgroundImage="url("+Editor.editImage+")";N.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(N,+"click",function(O){p.isEnabled()&&a.showDataDialog(E);mxEvent.consume(O)});p.isEnabled()||N.classList.add("mxDisabled");D.appendChild(N);var L=new mxDictionary,V=G.cloneNode(!1);V.style.backgroundImage="url("+Editor.duplicateImage+")";V.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(V,"click",function(O){if(p.isEnabled()){O=null;p.model.beginUpdate();try{O=p.cloneCell(E),p.cellLabelChanged(O,mxResources.get("untitledLayer")),O.setVisible(!0),O=p.addCell(O,p.model.root),p.setDefaultParent(O)}finally{p.model.endUpdate()}null==+O||p.isCellLocked(O)||p.selectAll(O)}});p.isEnabled()||V.classList.add("mxDisabled");D.appendChild(V);var X=G.cloneNode(!1);X.style.backgroundImage="url("+Editor.trashImage+")";X.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(X,"click",function(O){if(p.isEnabled()){p.model.beginUpdate();try{var ca=p.model.root.getIndex(E);p.removeCells([E],!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(O)});p.isEnabled()||X.classList.add("mxDisabled");D.appendChild(X);k.appendChild(D);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(){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";@@ -12795,7 +12796,7 @@ mxEvent.addListener(t,"click",function(Ea){Ba.checked=!0;mxEvent.consume(Ea)}));S.style.colorScheme="dark"):(S.classList.remove("geDarkMode"),S.style.colorScheme="light")};l.addListener("darkModeChanged",Ka);Ka();var Ma=function(Ea,Ia){Ea=Ia.getProperty("dialog");S.parentNode==Ea.container&&(l.editor.removeListener(Ma),l.removeListener(Ka))};l.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 l=this.image;null!=l&&null!=l.src&&Graph.isPageLink(l.src)&&(l={originalSrc:l.src});this.page.viewState.backgroundImage=l}null!=this.format&&(this.page.viewState.pageFormat=this.format);null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled);null!=this.adaptiveColors&&(this.page.viewState.adaptiveColors=this.adaptiveColors);null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)}}else 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&&(l=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=l?l:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),-this.shadowVisible=!this.shadowVisible)}})();(function(){EditorUi.VERSION="28.2.3";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.2.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&&"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:{useWidth:1E3,useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',@@ -13805,8 +13806,7 @@ mxUtils.htmlEntities(mxResources.get(H?"select":"open"))+"</button>":"");var P=n(P?"":"\tbackground-color: #eeeeee;")+"}.odEvenRow {"+(P?"":"\tbackground-color: #FFFFFF;")+"}.odRowSelected {\tbackground-color: #cadfff;}.odCatListTitle {\tbox-sizing: border-box;\theight: 17px;\tcursor: default;\tcolor: #666666;\tfont-size: 14px;\tline-height: 17px;\tmargin: 5px 0 5px 0px; padding-left: 10px;}.odCatSelected {\tfont-weight: bold;\tbackground-color: #cadfff;}.odEmptyFolder {\theight: 17px;\tcolor: #6D6D6D;\tfont-size: 14px;\tfont-weight: bold;\tline-height: 17px;\tmargin: 10px 0 3px 5px;\twidth: 100%; text-align: center;}.odBCFolder {\tcursor: pointer;\tcolor: #0432ff;}.odPreviewStatus {\tposition:absolute;\ttext-align:center;\twidth:100%;\ttop:50%;\ttransform: translateY(-50%);\tfont-size:13px;\topacity:0.5;}.odPreview { position:absolute;\t overflow:hidden;\t border: 1px solid #CCCCCC; bottom:0px; top: 50%; left:0px; right:0px;}.odLinkBtn { position: absolute;\tfont-size: 12px;\tcursor: pointer;\tcolor: #6D6D6D;\tleft: 5px;\tbottom: 3px;}.odSubmitBtn { position: absolute;\tcolor: #333;\tright: 5px;\tbottom: 5px;}";var v=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),A=new Editor,N=null,J=null,K=null,l=!1,t=[],D=null,M=null;this.getSelectedItem=function(){null!=J&&q(J);return J};if(null==n("#mxODPickerCss")){var L=document.head||document.getElementsByTagName("head")[0],O=document.createElement("style");L.appendChild(O);O.type="text/css";O.id="mxODPickerCss";O.appendChild(document.createTextNode(P))}b.innerHTML=T;var Q=n(".odPreview"),S=n("#odFiles");b=function(X,W){W=W||document;return W.querySelectorAll(X)}(".odCatListTitle");for(T=0;T<b.length;T++)b[T].addEventListener("click",function(){J=M=null;if(!l)switch(R(this),this.id){case "odFiles":C();break;case "odRecent":C("recent");break;case "odShared":C("shared");break;case "odSharepoint":C("sharepoint")}});var V=null;n("#odSearchBox").addEventListener("keyup",function(X){var W=this;null!=V&&clearTimeout(V);13==X.keyCode?U(W.value):V=setTimeout(function(){U(W.value)},-500)});n("#refreshOD").addEventListener("click",function(){if(null!=D){f(null);var X=t.slice();C.apply(this,D);t=X}});E&&n("#odBackBtn").addEventListener("click",E);F&&n("#odSubmitBtn").addEventListener("click",z);null!=g?(E=g.pop(),"sharepoint"==g[0].driveId&&R(n("#odSharepoint")),t=g,C(E.driveId,E.folderId,E.siteId,E.name)):C()};App=function(b,f,k){EditorUi.call(this,b,f,null!=k?k:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var c=this.getCurrentFile();null!=c&&c.isModified()&&(c.getHash(),c.savingFile&&null!=c.savingFileTime&&(Date.now(),c.savingFileTime.getTime()),null!=c.ageStart&&(Date.now(),c.ageStart.getTime()),c.isAutosave(),null!=c.opened&&(Date.now(),c.opened.getTime()),null!=c.lastSaved&&(Date.now(),c.lastSaved.getTime()),-null!=c.lastChanged&&(Date.now(),c.lastChanged.getTime()),Date.now(),App.startTime.getTime(),c.constructor==DriveFile&&null!=c.desc&&null!=this.drive&&c.getSize())}));this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var c=this.getCurrentFile();null!=c&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+c.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave?"on":"off")})}));mxClient.IS_SVG?mxGraph.prototype.warningImage.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE7SURBVHjaYvz//z8DJQAggBjwGXDuHMP/tWuD/uPTCxBAOA0AaQRK/f/+XeJ/cbHlf1wGAAQQTgPu3QNLgfHSpZo4DQAIIKwGwGyH4e/fFbG6AiQJEEAs2Ew2NFzH8OOHBMO6dT/A/KCg7wxGRh+wuhQggDBcALMdFIAcHBxgDGJjcwVIIUAAYbhAUXEdVos4OO4DXcGBIQ4QQCguQPY7sgtgAYruCpAgQACx4LJdU1OCwctLEcyWlLwPJF+AXQE0EMUBAAEEdwF6yMOiD4RRY0QT7gqQAEAAseDzu6XldYYPH9DD4joQa8L5AAEENgWb7SBcXa0JDQMBrK4AcQACiAlfyOMCEFdAnAYQQEz4FLa0XGf4/v0H0IIPONUABBAjyBmMjIwMS5cK/L927QORbtBkaG29DtYLEGAAH6f7oq3Zc+kAAAAASUVORK5CYII=":+500)});n("#refreshOD").addEventListener("click",function(){if(null!=D){f(null);var X=t.slice();C.apply(this,D);t=X}});E&&n("#odBackBtn").addEventListener("click",E);F&&n("#odSubmitBtn").addEventListener("click",z);null!=g?(E=g.pop(),"sharepoint"==g[0].driveId&&R(n("#odSharepoint")),t=g,C(E.driveId,E.folderId,E.siteId,E.name)):C()};App=function(b,f,k){EditorUi.call(this,b,f,null!=k?k:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var c=this.getCurrentFile();null!=c&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+c.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave?"on":"off")})}));mxClient.IS_SVG?mxGraph.prototype.warningImage.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE7SURBVHjaYvz//z8DJQAggBjwGXDuHMP/tWuD/uPTCxBAOA0AaQRK/f/+XeJ/cbHlf1wGAAQQTgPu3QNLgfHSpZo4DQAIIKwGwGyH4e/fFbG6AiQJEEAs2Ew2NFzH8OOHBMO6dT/A/KCg7wxGRh+wuhQggDBcALMdFIAcHBxgDGJjcwVIIUAAYbhAUXEdVos4OO4DXcGBIQ4QQCguQPY7sgtgAYruCpAgQACx4LJdU1OCwctLEcyWlLwPJF+AXQE0EMUBAAEEdwF6yMOiD4RRY0QT7gqQAEAAseDzu6XldYYPH9DD4joQa8L5AAEENgWb7SBcXa0JDQMBrK4AcQACiAlfyOMCEFdAnAYQQEz4FLa0XGf4/v0H0IIPONUABBAjyBmMjIwMS5cK/L927QORbtBkaG29DtYLEGAAH6f7oq3Zc+kAAAAASUVORK5CYII=":(new Image).src=mxGraph.prototype.warningImage.src;window.geOpenWindow=mxUtils.bind(this,function(c,p,q){if("1"==urlParams.openInSameWin||navigator.standalone)null!=q&&q();else{var u=null;try{u=window.open(c)}catch(y){}null==u||void 0===u?this.showDialog((new PopupDialog(this,c,p,q)).container,340,140,!0,!0):null!=p&&p()}});this.updateDocumentTitle();this.updateUi();window.showOpenAlert=mxUtils.bind(this,function(c){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(c)});this.editor.chromeless&&!this.editor.editable||this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(b=0;b<App.DrawPlugins.length;b++)try{App.DrawPlugins[b](this)}catch(c){null!=window.console&&console.log("Plugin Error:",c,App.DrawPlugins[b])}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}window.Draw.loadPlugin=mxUtils.bind(this,function(c){try{c(this)}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}});setTimeout(mxUtils.bind(this,function(){0<App.embedModePluginsCount&&(App.embedModePluginsCount=0,this.initializeEmbedMode())}),5E3)}this.load()};App.ERROR_TIMEOUT="timeout";App.ERROR_BUSY="busy";App.ERROR_UNKNOWN="unknown";App.MODE_GOOGLE="google";App.MODE_DROPBOX="dropbox";App.MODE_ONEDRIVE="onedrive";App.MODE_GITHUB="github";App.MODE_GITLAB="gitlab";App.MODE_DEVICE="device";App.MODE_BROWSER="browser";App.MODE_TRELLO="trello";App.MODE_EMBED="embed";App.MODE_ATLAS="atlas";App.DROPBOX_APPKEY=window.DRAWIO_DROPBOX_ID;App.DROPBOX_URL="js/dropbox/Dropbox-sdk.min.js";App.DROPINS_URL="https://www.dropbox.com/static/api/2/dropins.js";diff --git a/src/main/webapp/js/diagramly/App.js b/src/main/webapp/js/diagramly/App.jsindex a602d2b17..fd542a9fe 100644--- a/src/main/webapp/js/diagramly/App.js+++ b/src/main/webapp/js/diagramly/App.js@@ -17,41 +17,6 @@ App = function(editor, container, lightbox)(urlParams['lightbox'] == '1' || (uiTheme == 'min' &&urlParams['chrome'] != '0')));- // Logs unloading of window with modifications for Google Drive file- if (!mxClient.IS_CHROMEAPP && !EditorUi.isElectronApp)- {- window.onunload = mxUtils.bind(this, function()- {- var file = this.getCurrentFile();-- if (file != null && file.isModified())- {- var evt = {category: 'DISCARD-FILE-' + file.getHash(),- action: ((file.savingFile) ? 'saving' : '') +- ((file.savingFile && file.savingFileTime != null) ? '_' +- Math.round((Date.now() - file.savingFileTime.getTime()) / 1000) : '') +- ((file.saveLevel != null) ? ('-sl_' + file.saveLevel) : '') +- '-age_' + ((file.ageStart != null) ? Math.round((Date.now() - file.ageStart.getTime()) / 1000) : 'x') +- ((this.editor.autosave) ? '' : '-nosave') +- ((file.isAutosave()) ? '' : '-noauto') +- '-open_' + ((file.opened != null) ? Math.round((Date.now() - file.opened.getTime()) / 1000) : 'x') +- '-save_' + ((file.lastSaved != null) ? Math.round((Date.now() - file.lastSaved.getTime()) / 1000) : 'x') +- '-change_' + ((file.lastChanged != null) ? Math.round((Date.now() - file.lastChanged.getTime()) / 1000) : 'x') +- '-alive_' + Math.round((Date.now() - App.startTime.getTime()) / 1000),- label: (file.sync != null) ? ('client_' + file.sync.clientId) : 'nosync'};-- if (file.constructor == DriveFile && file.desc != null && this.drive != null)- {- evt.label += ((this.drive.user != null) ? ('-user_' + this.drive.user.id) : '-nouser') + '-rev_' +- file.desc.headRevisionId + '-mod_' + file.desc.modifiedDate + '-size_' + file.getSize() +- '-mime_' + file.desc.mimeType;- }-- // EditorUi.logEvent(evt);- }- });- }-// Logs changes to autosavethis.editor.addListener('autosaveChanged', mxUtils.bind(this, function(){diff --git a/src/main/webapp/js/diagramly/GraphViewer.js b/src/main/webapp/js/diagramly/GraphViewer.jsindex 1ef3fceaa..d10f30221 100644--- a/src/main/webapp/js/diagramly/GraphViewer.js+++ b/src/main/webapp/js/diagramly/GraphViewer.js@@ -1370,7 +1370,7 @@ GraphViewer.prototype.addToolbar = function()fadeThead2 = null;}- toolbar.style.display = '';+ toolbar.style.display = 'flex';mxUtils.setOpacity(toolbar, opacity || 30);});diff --git a/src/main/webapp/js/diagramly/vsdx/importer.js b/src/main/webapp/js/diagramly/vsdx/importer.jsindex 5000d0a4b..dd0be482c 100644--- a/src/main/webapp/js/diagramly/vsdx/importer.js+++ b/src/main/webapp/js/diagramly/vsdx/importer.js@@ -4774,7 +4774,7 @@ var com;case 102:case 103:var index = quickStyleLineMatrix - 100;- if (lineStyles === this.lineStyles) {+ if (lineStyles === this.lineStyles && this.variantLineIdx[this.themeVariantStl] != null) {lineStyle = this.lineStyles[this.variantLineIdx[this.themeVariantStl][index] - 1];}else {diff --git a/src/main/webapp/js/grapheditor/Dialogs.js b/src/main/webapp/js/grapheditor/Dialogs.jsindex d7d9d5007..948c34165 100644--- a/src/main/webapp/js/grapheditor/Dialogs.js+++ b/src/main/webapp/js/grapheditor/Dialogs.js@@ -64,6 +64,7 @@ var ColorPicker = function()cross.style.top = '-8px';var currentHsv = [0, 0, 1];+ var currentAlpha = 1;function hsv2rgb(h, s, v){@@ -172,7 +173,9 @@ var ColorPicker = function()var color = '#' +('0' + Math.round(rgb[0] * 255).toString(16)).slice(-2) +('0' + Math.round(rgb[1] * 255).toString(16)).slice(-2) +- ('0' + Math.round(rgb[2] * 255).toString(16)).slice(-2);+ ('0' + Math.round(rgb[2] * 255).toString(16)).slice(-2) ++ (currentAlpha < 1 ?+ ('0' + Math.round(currentAlpha * 255).toString(16)).slice(-2) : '');if (quiet != true){@@ -215,7 +218,9 @@ var ColorPicker = function()this.fromString('#' +('0' + Math.floor(temp[0] * 255).toString(16)).slice(-2) +('0' + Math.floor(temp[1] * 255).toString(16)).slice(-2) +- ('0' + Math.floor(temp[2] * 255).toString(16)).slice(-2));+ ('0' + Math.floor(temp[2] * 255).toString(16)).slice(-2) ++ (currentAlpha < 1 ?+ ('0' + Math.round(currentAlpha * 255).toString(16)).slice(-2) : ''));}else if (sliderActive){@@ -288,6 +293,7 @@ var ColorPicker = function()}currentHsv[2] = hsv[2];+ currentAlpha = rgb.a;update(quiet);};@@ -358,7 +364,7 @@ var ColorDialog = function(editorUi, color, apply, cancelFn, defaultColor, defauvar darkInput = document.createElement('input');darkInput.style.textOverflow = 'ellipsis';darkInput.style.margin = '0 4px';- darkInput.style.maxWidth = '60px';+ darkInput.style.maxWidth = '70px';darkInput.style.width = '100%';var darkSelect = document.createElement('select');diff --git a/src/main/webapp/js/grapheditor/Format.js b/src/main/webapp/js/grapheditor/Format.jsindex 451e9c237..dbeb1d548 100644--- a/src/main/webapp/js/grapheditor/Format.js+++ b/src/main/webapp/js/grapheditor/Format.js@@ -55,7 +55,7 @@ Format.wireEdgeImage = Graph.createSvgImage(20, 22, '<path transform="translate('<path transform="translate(4,0)" stroke-dashoffset="8" stroke-dasharray="8 8" stroke-width="3.5" d="M 0 10 L 34 10" stroke="green" fill="black"/>', 42, 20);Format.arrowImage = Graph.createSvgImage(20, 22, '<path transform="translate(4,3)" stroke-width="2.5" d="M 0 6 L 24 6 L 24 2 L 32 8 L 24 14 L 24 10 L 0 10 Z" stroke="black" fill="none"/>', 42, 20);Format.simpleArrowImage = Graph.createSvgImage(20, 22, '<path transform="translate(4,3)" stroke-width="2.5" d="M 0 6 L 4 6 L 4 10 L 0 10 Z M 7 6 L 18 6 L 18 2 L 25 8 L 18 14 L 18 10 L 7 10 Z M 28 6 L 28 6 L 32 6 L 32 10 L 28 10 Z" stroke="black" fill="none"/>', 42, 20);-Format.straightImage = Graph.createSvgImage(16, 18, '<path transform="translate(3,4)" stroke-width="4.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>', 36, 36);+Format.straightImage = Graph.createSvgImage(16, 18, '<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>', 36, 36);Format.orthogonalImage = Graph.createSvgImage(16, 18, '<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>', 36, 36);Format.horizontalElbowImage = Graph.createSvgImage(16, 18, '<path transform="translate(3,3)rotate(270,0,0)scale(-1,1)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z M 14 11 L 14 5 M 14 3 L 16 5 L 12 5 Z M 14 17 L 14 23 M 14 25 L 16 23 L 12 23 Z" stroke="black" fill="none"/>', 36, 36);Format.verticalElbowImage = Graph.createSvgImage(16, 18, '<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z M 14 11 L 14 5 M 14 3 L 16 5 L 12 5 Z M 14 17 L 14 23 M 14 25 L 16 23 L 12 23 Z" stroke="black" fill="none"/>', 36, 36);@@ -4976,6 +4976,34 @@ StyleFormatPanel.prototype.getCustomColors = function()return result;};+/**+ * Adds the label menu items to the given menu and parent.+ */+StyleFormatPanel.prototype.addDashPattern = function(elt, pattern)+{+ var tokens = pattern.split(' ');++ if (tokens.length >= 2)+ {+ var sum = 0;++ for (var i = 0; i < tokens.length; i++)+ {+ sum += parseInt(tokens[i]);+ }++ var img = Graph.createSvgImage(sum, 1, '<line transform="translate(0,1)" x1="0" y1="0" x2="' + sum ++ '" y2="0" stroke-dasharray="' + pattern + '" stroke-width="2" stroke="black"/>', sum, 1);+ elt.style.backgroundImage = 'url(' + img.src + ')';+ elt.style.backgroundSize = sum + 'px 1px';+ elt.style.backgroundRepeat = 'repeat-x';+ }+ else+ {+ elt.style.borderBottomStyle = pattern;+ }+};+/*** Adds the label menu items to the given menu and parent.*/@@ -5087,23 +5115,8 @@ StyleFormatPanel.prototype.addStroke = function(container)var addItem = mxUtils.bind(this, function(menu, width, pattern, keys, values){var item = this.editorUi.menus.styleChange(menu, '', keys, values, '', null);- var pat = document.createElement('div');- var tokens = pattern.split(' ');-- if (tokens.length == 2)- {- var len = parseInt(tokens[0]) + parseInt(tokens[1]);- var fill = parseInt(tokens[0]) / len * 100;- pat.style.borderBottomStyle = 'none';- pat.style.backgroundImage = 'linear-gradient(to right, ' +- 'black ' + fill + '%, transparent 0%)';- pat.style.backgroundSize = len + 'px 1px';- }- else- {- pat.style.borderBottomStyle = pattern;- }-+ var pat = document.createElement('div');+ this.addDashPattern(pat, pattern);item.firstChild.firstChild.className = 'geStyleMenuItem';item.firstChild.firstChild.style.width = width + 'px';item.firstChild.firstChild.appendChild(pat);@@ -5117,6 +5130,7 @@ StyleFormatPanel.prototype.addStroke = function(container)addItem(menu, 110, 'dashed', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN], ['1', null]).setAttribute('title', mxResources.get('dashed') + ' (1)');addItem(menu, 110, '8 8', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN], ['1', '8 8']).setAttribute('title', mxResources.get('dashed') + ' (2)');addItem(menu, 110, '12 12', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN], ['1', '12 12']).setAttribute('title', mxResources.get('dashed') + ' (3)');+ addItem(menu, 110, '8 4 1 4', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN], ['1', '8 4 1 4']).setAttribute('title', mxResources.get('dashed') + ' (4)');addItem(menu, 110, 'dotted', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN], ['1', '1 1']).setAttribute('title', mxResources.get('dotted') + ' (1)');addItem(menu, 110, '1 2', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN], ['1', '1 2']).setAttribute('title', mxResources.get('dotted') + ' (2)');addItem(menu, 110, '1 4', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN], ['1', '1 4']).setAttribute('title', mxResources.get('dotted') + ' (3)');@@ -5155,6 +5169,8 @@ StyleFormatPanel.prototype.addStroke = function(container)['1', '8 8']).setAttribute('title', mxResources.get('dashed') + ' (2)');addItem(menu, 40, '12 12', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN],['1', '12 12']).setAttribute('title', mxResources.get('dashed') + ' (3)');+ addItem(menu, 40, '8 4 1 4', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN],+ ['1', '8 4 1 4']).setAttribute('title', mxResources.get('dashed') + ' (4)');addItem(menu, 40, 'dotted', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN],['1', '1 1']).setAttribute('title', mxResources.get('dotted') + ' (1)');addItem(menu, 40, '1 2', [mxConstants.STYLE_DASHED, mxConstants.STYLE_DASH_PATTERN],@@ -5603,15 +5619,8 @@ StyleFormatPanel.prototype.addStroke = function(container)if (tokens.length >= 2){- var len = parseInt(tokens[0]) + parseInt(tokens[1]);- var fill = parseInt(tokens[0]) / len * 100;-solid.style.borderBottom = '1px solid transparent';- solid.style.backgroundImage = 'linear-gradient(to right, ' +- 'black ' + fill + '%, transparent 0%)';- solid.style.backgroundPosition = 'bottom left';- solid.style.backgroundSize = len +'px 1px';- solid.style.backgroundRepeat = 'repeat-x';+ this.addDashPattern(solid, pat);}else{@@ -6641,11 +6650,7 @@ DiagramStylePanel.prototype.addGraphStyles = function(div)}));}- // Workaround for broken cache in IE11- if (!mxClient.IS_IE && !mxClient.IS_IE11)- {- this.format.cachedStyleEntries[index] = panel;- }+ this.format.cachedStyleEntries[index] = panel;}entries.appendChild(panel);diff --git a/src/main/webapp/js/grapheditor/Menus.js b/src/main/webapp/js/grapheditor/Menus.jsindex 84e79d867..ca327405b 100644--- a/src/main/webapp/js/grapheditor/Menus.js+++ b/src/main/webapp/js/grapheditor/Menus.js@@ -76,9 +76,9 @@ Menus.prototype.init = function()Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(menu, '', [mxConstants.STYLE_EDGE, mxConstants.STYLE_CURVED, mxConstants.STYLE_NOEDGESTYLE],['orthogonalEdgeStyle', null, null], null, null, true, Format.orthogonalImage.src)).setAttribute('title', mxResources.get('orthogonal'));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(menu, '', [mxConstants.STYLE_EDGE, mxConstants.STYLE_ELBOW, mxConstants.STYLE_CURVED, mxConstants.STYLE_NOEDGESTYLE],- ['elbowEdgeStyle', null, null, null], null, null, true, Format.horizontalElbowImage.src)).setAttribute('title', mxResources.get('simple'));+ ['elbowEdgeStyle', null, null, null], null, null, true, Format.horizontalElbowImage.src)).setAttribute('title', mxResources.get('vertical'));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(menu, '', [mxConstants.STYLE_EDGE, mxConstants.STYLE_ELBOW, mxConstants.STYLE_CURVED, mxConstants.STYLE_NOEDGESTYLE],- ['elbowEdgeStyle', 'vertical', null, null], null, null, true, Format.verticalElbowImage.src)).setAttribute('title', mxResources.get('simple'));+ ['elbowEdgeStyle', 'vertical', null, null], null, null, true, Format.verticalElbowImage.src)).setAttribute('title', mxResources.get('horizontal'));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(menu, '', [mxConstants.STYLE_EDGE, mxConstants.STYLE_ELBOW, mxConstants.STYLE_CURVED, mxConstants.STYLE_NOEDGESTYLE],['isometricEdgeStyle', null, null, null], null, null, true, Format.horizontalIsometricImage.src)).setAttribute('title', mxResources.get('isometric'));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(menu, '', [mxConstants.STYLE_EDGE, mxConstants.STYLE_ELBOW, mxConstants.STYLE_CURVED, mxConstants.STYLE_NOEDGESTYLE],diff --git a/src/main/webapp/js/integrate.min.js b/src/main/webapp/js/integrate.min.jsindex c3c549687..dc282eba9 100644--- a/src/main/webapp/js/integrate.min.js+++ b/src/main/webapp/js/integrate.min.js@@ -67,7 +67,7 @@ b),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io"))}})();"1"==urlPa"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.2.3",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.2.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/"),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||@@ -98,7 +98,7 @@ mxRectangle.prototype.equals=function(a){return null!=a&&a.x==this.x&&a.y==this.var mxEffects={animateChanges:function(a,b,c){var d=0,e=function(){for(var g=!1,k=0;k<b.length;k++){var l=b[k];if(l instanceof mxGeometryChange||l instanceof mxTerminalChange||l instanceof mxValueChange||l instanceof mxChildChange||l instanceof mxStyleChange){var m=a.getView().getState(l.cell||l.child,!1);if(null!=m)if(g=!0,l.constructor!=mxGeometryChange||a.model.isEdge(l.cell))mxUtils.setOpacity(m.shape.node,100*d/10);else{var n=a.getView().scale,p=(l.geometry.x-l.previous.x)*n,q=(l.geometry.y-l.previous.y)*n,r=(l.geometry.width-l.previous.width)*n;n*=l.geometry.height-l.previous.height;0==d?(m.x-=p,m.y-=q,m.width-=r,m.height-=n):(m.x+=p/10,m.y+=q/10,m.width+=r/10,m.height+=n/10);a.cellRenderer.redraw(m);mxEffects.cascadeOpacity(a,l.cell,100*d/10)}}}10>d&&g?(d++,window.setTimeout(e,f)):null!=c&&c()},f=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;e<d;e++){var f=a.model.getChildAt(b,e),g=a.getView().getState(f);null!=g&&(mxUtils.setOpacity(g.shape.node,c),mxEffects.cascadeOpacity(a,f,c))}b=a.model.getEdges(b);if(null!=b)for(e=0;e<b.length;e++)d=a.getView().getState(b[e]),null!=d&&mxUtils.setOpacity(d.shape.node,c)},fadeOut:function(a,b,c,d,e,f){d=d||40;e=e||30;var g=b||100;mxUtils.setOpacity(a,g);if(f||null==f){var k=function(){g=Math.max(g-d,0);mxUtils.setOpacity(a,g);0<g?window.setTimeout(k,e):(a.style.visibility="hidden",c&&a.parentNode&&a.parentNode.removeChild(a))};window.setTimeout(k,e)}else a.style.visibility="hidden",c&&a.parentNode&&a.parentNode.removeChild(a)}},-mxUtils={errorResource:"none"!=mxClient.language?"error":"",closeResource:"none"!=mxClient.language?"close":"",errorImage:mxClient.imageBasePath+"/error.gif",lightDarkColorSupported:function(){var a=document.createElement("div");a.style.color="light-dark(white, black)";a=a.style.color;null!=a&&"generic-light-dark("===a.substring(0,19)&&(a=a.replace("generic-light-dark","light-dark"));return"light-dark(white, black)"===a}(),preferDarkColor:!1,lightDarkColorRegex:/light-dark\(\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,+mxUtils={errorResource:"none"!=mxClient.language?"error":"",closeResource:"none"!=mxClient.language?"close":"",errorImage:mxClient.imageBasePath+"/error.gif",lightDarkColorSupported:function(){var a=document.createElement("div");a.style.color="light-dark(white, black)";a=a.style.color;null!=a&&"generic-light-dark("===a.substring(0,19)&&(a=a.replace("generic-light-dark","light-dark"));return"light-dark(white, black)"===a}(),preferDarkColor:!1,lightDarkColorRegex:/light-dark\(\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,varColorRegex:/^var\([^)]+\)/,hexColorRegex:/(^#[a-zA-Z0-9]*$)/,rgbaColorRegex:/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i,canvasContext:function(){var a=null;try{a=document.createElement("canvas").getContext("2d")}catch(b){}return a}(),validInvalidColor:"rgba(0, 0, 0, 0)",normalizedValidInvalidColor:"rgba(0,0,0,0)",removeCursors:function(a){null!=a.style&&(a.style.cursor="");a=a.childNodes;if(null!=a)for(var b=a.length,c=0;c<b;c+=1)mxUtils.removeCursors(a[c])},getCurrentStyle:function(){return mxClient.IS_IE&&(null==document.documentMode||9>document.documentMode)?function(a){return null!=a?a.currentStyle:null}:function(a){return null!=a?window.getComputedStyle(a,""):null}}(),getCssFontFamily:function(a){if("string"===typeof a){a=a.split(",");for(var b=0;b<a.length;b++)a[b]=mxUtils.trim(a[b]),'"'==a[b].charAt(0)&&'"'==a[b].charAt(a[b].length-1)&&(a[b]=a[b].substring(1,a[b].length-1));a=a.join(", ")}return a},parseCssFontFamily:function(a,b){if("string"===typeof a){a=a.split(",");for(var c=0;c<a.length;c++){a[c]=mxUtils.trim(a[c]);var d=2<a[c].length&&'"'==a[c].charAt(a[c].length-1)&&'"'==a[c].charAt(0);d&&(a[c]=a[c].substring(1,a[c].length-1));b&&(a[c]=mxUtils.htmlEntities(a[c]));if(d||0<=a[c].indexOf(" "))a[c]='"'+a[c]+'"'}a=a.join(", ")}return a},parseCssNumber:function(a){"thin"==a?a="2":"medium"==a?a="4":"thick"==a&&(a="6");a=parseFloat(a);isNaN(a)&&(a=0);return a},setPrefixedStyle:function(){var a=null;mxClient.IS_OT?a="O":mxClient.IS_SF||mxClient.IS_GC?a="Webkit":mxClient.IS_MT?a="Moz":mxClient.IS_IE&&@@ -125,19 +125,19 @@ b,c-e)+"px")},load:function(a){a=new mxXmlRequest(a,null,"GET",!1);a.send();retup||299<p?g():(e[m]=n,d--,0==d&&b(e))},g)})(a[k],k);0==d&&b(e)},post:function(a,b,c,d){return(new mxXmlRequest(a,b)).send(c,d)},submit:function(a,b,c,d){return(new mxXmlRequest(a,b)).simulate(c,d)},loadInto:function(a,b,c){mxClient.IS_IE?b.onreadystatechange=function(){4==b.readyState&&c()}:b.addEventListener("load",c,!1);b.load(a)},getValue:function(a,b,c){a=null!=a?a[b]:null;null==a&&(a=c);return a},getColorValue:function(a,b,c){a=null!=a?a[b]:null;if(null==a||"default"==a)a=c;return a},getNumber:function(a,b,c){a=null!=a?a[b]:null;null==a&&(a=c||0);return Number(a)},isLightDarkColor:function(a){return"string"===typeof a&&"light-dark"==mxUtils.ltrim(a).substring(0,10)},isVarColor:function(a){return mxUtils.varColorRegex.test(a)},isHexColor:function(a){return mxUtils.hexColorRegex.test(a)},isRgbColor:function(a){return mxUtils.rgbaColorRegex.test(a)},isValidColor:function(a){if(null==a)return!1;a=String(a).replace(/\s/g,"");if(a.toLowerCase()==mxUtils.normalizedValidInvalidColor)return!0;mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor;mxUtils.canvasContext.fillStyle=a;return mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor},isDarkColor:function(a){a=mxUtils.parseColor(a);return null!=a?128>.213*a.r+.715*a.g+.072*a.b:!1},parseLightDarkColor:function(a,b,c){var d=a,e=null;null!=a&&(a=a.match(mxUtils.lightDarkColorRegex))&&3===a.length&&(d=mxUtils.trim(a[1]),e=mxUtils.trim(a[2]));null==e&&(c||mxUtils.isVarColor(d))&&(e=d);e=null!=e?e:null!=b?b:mxUtils.getInverseColor(d);return{light:d,dark:e}},-getInverseColor:function(a,b,c){function d(m){return Math.round(b/100*(255-m)+m*(1-b/100))}function e(m){return Math.round(Math.max(0,Math.min(255,m)))}c=null!=c?c:180;b=null!=b?b:93;var f=0,g=0,k=0;if("transparent"==a.toLowerCase())return a;k=mxUtils.parseColor(a);if(null==k)return a;f=k.r;g=k.g;k=k.b;f=d(f);g=d(g);k=d(k);a=[1,0,0,0,1,0,0,0,1];var l=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);a[0]=.2126+.7874*l-.2126*c;a[1]=.7152-.7152*l-.7152*c;a[2]=.0722-.0722*l+.9278*c;a[3]=.2126-.2126*-l+.143*c;a[4]=.7152+(1-.7152)*l+.14*c;a[5]=.0722-.0722*l-.283*c;a[6]=.2126-.2126*l-.7874*c;a[7]=.7152-.7152*l+.7152*c;a[8]=.0722+.9278*l+.0722*c;c=e(a[0]*f+a[1]*g+a[2]*k);l=e(a[3]*f+a[4]*g+a[5]*k);f=e(a[6]*f+a[7]*g+a[8]*k);return"#"+(16777216|c<<16|l<<8|f).toString(16).slice(1)},addAlphaToColor:function(a,b){null!=b&&null!=a&&"transparent"!=a&&(a=mxUtils.parseColor(a),a="rgba("+a.r+","+a.g+","+a.b+","+b+")");return a},getLightDarkColor:function(a,b,c,d){var e={light:"transparent",dark:"transparent",-cssText:"transparent"};null!=a&&a!=mxConstants.NONE&&("string"===typeof a?(a=mxUtils.parseLightDarkColor(a,c,d),e.light=mxUtils.addAlphaToColor(a.light,b),e.dark=mxUtils.addAlphaToColor(a.dark,b),e.cssText=mxUtils.lightDarkColorSupported?e.light==e.dark?e.light:"light-dark("+e.light+", "+e.dark+")":mxUtils.preferDarkColor?e.dark:e.light):(e.light=a,e.dark=a,e.cssText=a));return e},invertLightDarkColor:function(a){var b={};b.light=a.dark;b.dark=a.light;b.cssText=b.light==b.dark?b.light:"light-dark("+-b.light+", "+b.dark+")";return b},getColor:function(a,b,c){a=null!=a?a[b]:null;null==a?a=c:a==mxConstants.NONE&&(a=null);return a},isEmptyObject:function(a){for(var b in a)return!1;return!0},clone:function(a,b,c){c=null!=c?c:!1;var d=null;if(null!=a&&"function"==typeof a.constructor)if(a.constructor===Element)d=a.cloneNode(null!=c?!c:!1);else{d=new a.constructor;for(var e in a)e!=mxObjectIdentity.FIELD_NAME&&(null==b||0>mxUtils.indexOf(b,e))&&(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},-equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c<a.length;c++)if(null!=a[c]&&null==b[c]||null==a[c]&&null!=b[c]||null!=a[c]&&null!=b[c]&&(a[c].x!=b[c].x||a[c].y!=b[c].y))return!1;return!0},equalEntries:function(a,b){var c=0;if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b){for(var d in b)c++;for(d in a)if(c--,!(mxUtils.isNaN(a[d])&&mxUtils.isNaN(b[d])||-a[d]==b[d]))return!1}return 0==c},removeDuplicates:function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},toString:function(a){var b="",c;for(c in a)try{if(null==a[c])b+=c+" = [null]\n";else if("function"==typeof a[c])b+=c+" => [Function]\n";else if("object"==typeof a[c]){var d=-mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return A;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);A=Math.sin(e*Math.PI/180);e=p*m+A*n;m=-1*A*m+p*n;n=e*e;var q=m*m,r=c*c,t=d*d,u=n/r+q/t;1<u?(c*=Math.sqrt(u),d*=Math.sqrt(u),f=0):(u=1,f===g&&-(u=-1),f=u*Math.sqrt((r*t-r*q-t*n)/(r*q+t*n)));n=f*c*m/d;q=-1*f*d*e/c;k=p*n-A*q+k/2;l=A*n+p*q+l/2;r=Math.atan2((m-q)/d,(e-n)/c)-Math.atan2(0,1);f=0<=r?r:2*Math.PI+r;r=Math.atan2((-m-q)/d,(-e-n)/c)-Math.atan2((m-q)/d,(e-n)/c);e=0<=r?r:2*Math.PI+r;0==g&&0<e?e-=2*Math.PI:0!=g&&0>e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=A;d*=A;var v=Math.cos(f),y=Math.sin(f);q=-m*(n*y+d*v);r=-m*(c*y-p*v);for(var A=[],z=0;z<g;++z){f+=e;v=-Math.cos(f);y=Math.sin(f);t=n*v-d*y+k;u=c*v+p*y+l;var C=-m*(n*y+d*v);v=-m*(c*y-p*v);y=6*z;A[y]=Number(q+a);A[y+1]=Number(r+b);A[y+2]=Number(t-C+a);A[y+3]=Number(u-v+b);A[y+4]=Number(t+a);A[y+5]=Number(u+b);q=t+C;r=u+v}return A},getBoundingBox:function(a,b,c){var d=null;if(null!=a&&null!=b&&0!=b){b=mxUtils.toRadians(b);d=Math.cos(b);var e=Math.sin(b);c=null!=c?c:new mxPoint(a.x+a.width/2,a.y+a.height/2);var f=new mxPoint(a.x,a.y);b=new mxPoint(a.x+a.width,a.y);var g=new mxPoint(b.x,a.y+a.height);a=-new mxPoint(a.x,g.y);f=mxUtils.getRotatedPoint(f,d,e,c);b=mxUtils.getRotatedPoint(b,d,e,c);g=mxUtils.getRotatedPoint(g,d,e,c);a=mxUtils.getRotatedPoint(a,d,e,c);d=new mxRectangle(f.x,f.y,0,0);d.add(new mxRectangle(b.x,b.y,0,0));d.add(new mxRectangle(g.x,g.y,0,0));d.add(new mxRectangle(a.x,a.y,0,0))}return d},getRotatedPoint:function(a,b,c,d){d=null!=d?d:new mxPoint;var e=a.x-d.x;a=a.y-d.y;return new mxPoint(e*b-a*c+d.x,a*b+e*c+d.y)},getPortConstraints:function(a,b,c,d){b=mxUtils.getValue(a.style,-mxConstants.STYLE_PORT_CONSTRAINT,mxUtils.getValue(b.style,c?mxConstants.STYLE_SOURCE_PORT_CONSTRAINT:mxConstants.STYLE_TARGET_PORT_CONSTRAINT,null));if(null==b)return d;d=b.toString();b=mxConstants.DIRECTION_MASK_NONE;c=0;1==mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT_ROTATION,0)&&(c=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0));a=0;45<c?(a=1,135<=c&&(a=2)):-45>c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_NORTH;-break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 1:b|=-mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<+getInverseColor:function(a,b,c){function d(n){return Math.round(b/100*(255-n)+n*(1-b/100))}function e(n){return Math.round(Math.max(0,Math.min(255,n)))}c=null!=c?c:180;b=null!=b?b:93;var f=0,g=0,k=0,l=1;if("transparent"==a.toLowerCase())return a;l=mxUtils.parseColor(a);if(null==l)return a;f=l.r;g=l.g;k=l.b;l=l.a;f=d(f);g=d(g);k=d(k);a=[1,0,0,0,1,0,0,0,1];var m=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);a[0]=.2126+.7874*m-.2126*c;a[1]=.7152-.7152*m-.7152*c;a[2]=.0722-.0722*m+.9278*c;a[3]=.2126-+.2126*m+.143*c;a[4]=.7152+(1-.7152)*m+.14*c;a[5]=.0722-.0722*m-.283*c;a[6]=.2126-.2126*m-.7874*c;a[7]=.7152-.7152*m+.7152*c;a[8]=.0722+.9278*m+.0722*c;c=e(a[0]*f+a[1]*g+a[2]*k);m=e(a[3]*f+a[4]*g+a[5]*k);f=e(a[6]*f+a[7]*g+a[8]*k);return"#"+(16777216|c<<16|m<<8|f).toString(16).slice(1)+(1>l?("0"+Math.round(255*l).toString(16)).slice(-2):"")},addAlphaToColor:function(a,b){null!=b&&null!=a&&"transparent"!=a&&(a=mxUtils.parseColor(a),a="rgba("+a.r+","+a.g+","+a.b+","+a.a*b+")");return a},getLightDarkColor:function(a,+b,c,d){var e={light:"transparent",dark:"transparent",cssText:"transparent"};null!=a&&a!=mxConstants.NONE&&("string"===typeof a?(a=mxUtils.parseLightDarkColor(a,c,d),e.light=mxUtils.addAlphaToColor(a.light,b),e.dark=mxUtils.addAlphaToColor(a.dark,b),e.cssText=mxUtils.lightDarkColorSupported?e.light==e.dark?e.light:"light-dark("+e.light+", "+e.dark+")":mxUtils.preferDarkColor?e.dark:e.light):(e.light=a,e.dark=a,e.cssText=a));return e},invertLightDarkColor:function(a){var b={};b.light=a.dark;b.dark=+a.light;b.cssText=b.light==b.dark?b.light:"light-dark("+b.light+", "+b.dark+")";return b},getColor:function(a,b,c){a=null!=a?a[b]:null;null==a?a=c:a==mxConstants.NONE&&(a=null);return a},isEmptyObject:function(a){for(var b in a)return!1;return!0},clone:function(a,b,c){c=null!=c?c:!1;var d=null;if(null!=a&&"function"==typeof a.constructor)if(a.constructor===Element)d=a.cloneNode(null!=c?!c:!1);else{d=new a.constructor;for(var e in a)e!=mxObjectIdentity.FIELD_NAME&&(null==b||0>mxUtils.indexOf(b,e))&&+(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c<a.length;c++)if(null!=a[c]&&null==b[c]||null==a[c]&&null!=b[c]||null!=a[c]&&null!=b[c]&&(a[c].x!=b[c].x||a[c].y!=b[c].y))return!1;return!0},equalEntries:function(a,b){var c=0;if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b){for(var d in b)c++;+for(d in a)if(c--,!(mxUtils.isNaN(a[d])&&mxUtils.isNaN(b[d])||a[d]==b[d]))return!1}return 0==c},removeDuplicates:function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},toString:function(a){var b="",c;for(c in a)try{if(null==a[c])b+=c+" = [null]\n";else if("function"==typeof a[c])b+=+c+" => [Function]\n";else if("object"==typeof a[c]){var d=mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return A;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);A=Math.sin(e*Math.PI/180);e=p*m+A*n;m=-1*A*m+p*n;n=e*e;var q=m*m,r=c*c,t=d*d,u=n/r++q/t;1<u?(c*=Math.sqrt(u),d*=Math.sqrt(u),f=0):(u=1,f===g&&(u=-1),f=u*Math.sqrt((r*t-r*q-t*n)/(r*q+t*n)));n=f*c*m/d;q=-1*f*d*e/c;k=p*n-A*q+k/2;l=A*n+p*q+l/2;r=Math.atan2((m-q)/d,(e-n)/c)-Math.atan2(0,1);f=0<=r?r:2*Math.PI+r;r=Math.atan2((-m-q)/d,(-e-n)/c)-Math.atan2((m-q)/d,(e-n)/c);e=0<=r?r:2*Math.PI+r;0==g&&0<e?e-=2*Math.PI:0!=g&&0>e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=A;d*=A;var v=Math.cos(f),y=Math.sin(f);q=-m*+(n*y+d*v);r=-m*(c*y-p*v);for(var A=[],z=0;z<g;++z){f+=e;v=Math.cos(f);y=Math.sin(f);t=n*v-d*y+k;u=c*v+p*y+l;var x=-m*(n*y+d*v);v=-m*(c*y-p*v);y=6*z;A[y]=Number(q+a);A[y+1]=Number(r+b);A[y+2]=Number(t-x+a);A[y+3]=Number(u-v+b);A[y+4]=Number(t+a);A[y+5]=Number(u+b);q=t+x;r=u+v}return A},getBoundingBox:function(a,b,c){var d=null;if(null!=a&&null!=b&&0!=b){b=mxUtils.toRadians(b);d=Math.cos(b);var e=Math.sin(b);c=null!=c?c:new mxPoint(a.x+a.width/2,a.y+a.height/2);var f=new mxPoint(a.x,a.y);b=new mxPoint(a.x++a.width,a.y);var g=new mxPoint(b.x,a.y+a.height);a=new mxPoint(a.x,g.y);f=mxUtils.getRotatedPoint(f,d,e,c);b=mxUtils.getRotatedPoint(b,d,e,c);g=mxUtils.getRotatedPoint(g,d,e,c);a=mxUtils.getRotatedPoint(a,d,e,c);d=new mxRectangle(f.x,f.y,0,0);d.add(new mxRectangle(b.x,b.y,0,0));d.add(new mxRectangle(g.x,g.y,0,0));d.add(new mxRectangle(a.x,a.y,0,0))}return d},getRotatedPoint:function(a,b,c,d){d=null!=d?d:new mxPoint;var e=a.x-d.x;a=a.y-d.y;return new mxPoint(e*b-a*c+d.x,a*b+e*c+d.y)},getPortConstraints:function(a,+b,c,d){b=mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT,mxUtils.getValue(b.style,c?mxConstants.STYLE_SOURCE_PORT_CONSTRAINT:mxConstants.STYLE_TARGET_PORT_CONSTRAINT,null));if(null==b)return d;d=b.toString();b=mxConstants.DIRECTION_MASK_NONE;c=0;1==mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT_ROTATION,0)&&(c=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0));a=0;45<c?(a=1,135<=c&&(a=2)):-45>c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=+mxConstants.DIRECTION_MASK_NORTH;break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;+break;case 1:b|=mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<1;b|=(a&mxConstants.DIRECTION_MASK_SOUTH)>>1;return b|(a&mxConstants.DIRECTION_MASK_EAST)>>3},findNearestSegment:function(a,b,c){var d=-1;if(0<a.absolutePoints.length)for(var e=a.absolutePoints[0],f=null,g=1;g<a.absolutePoints.length;g++){var k=a.absolutePoints[g];e=mxUtils.ptSegDistSq(e.x,e.y,k.x,k.y,b,c);if(null==f||e<f)f=e,d=g-1;e=k}return d},getDirectedBounds:function(a,b,c,d,e){var f=mxUtils.getValue(c,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);d=null!=d?d:mxUtils.getValue(c,mxConstants.STYLE_FLIPH,!1);e=null!=e?e:mxUtils.getValue(c,mxConstants.STYLE_FLIPV,!1);b.x=Math.round(Math.max(0,Math.min(a.width,b.x)));b.y=Math.round(Math.max(0,Math.min(a.height,b.y)));b.width=Math.round(Math.max(0,Math.min(a.width,b.width)));b.height=Math.round(Math.max(0,Math.min(a.height,b.height)));if(e&&(f==mxConstants.DIRECTION_SOUTH||f==mxConstants.DIRECTION_NORTH)||d&&(f==mxConstants.DIRECTION_EAST||f==mxConstants.DIRECTION_WEST))c=b.x,b.x=b.width,b.width=c;if(d&&(f==mxConstants.DIRECTION_SOUTH||f==mxConstants.DIRECTION_NORTH)||e&&(f==mxConstants.DIRECTION_EAST||f==mxConstants.DIRECTION_WEST))c=b.y,b.y=b.height,b.height=c;d=mxRectangle.fromRectangle(b);f==mxConstants.DIRECTION_SOUTH?(d.y=b.x,d.x=b.height,d.width=b.y,d.height=b.width):f==mxConstants.DIRECTION_WEST?(d.y=b.height,d.x=b.width,d.width=b.x,d.height=b.y):f==mxConstants.DIRECTION_NORTH&&(d.y=b.width,d.x=b.y,d.width=b.height,d.height=b.x);return new mxRectangle(a.x+d.x,a.y+d.y,a.width-d.width-d.x,a.height-d.height-d.y)},getPerimeterPoint:function(a,b,c){for(var d=@@ -153,43 +153,43 @@ null},ptSegDistSq:function(a,b,c,d,e,f){c-=a;d-=b;e-=a;f-=b;0>=e*c+f*d?c=0:(e=c-b,c){mxEffects.cascadeOpacity.apply(this,arguments)},fadeOut:function(a,b,c,d,e,f){mxEffects.fadeOut.apply(this,arguments)},setOpacity:function(a,b){mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?a.style.filter=100<=b?"":"alpha(opacity="+b+")":a.style.opacity=b/100},createElementNs:function(a,b,c){if(null!=a.createElementNS)return a.createElementNS(b,c);a=a.createElement(c);null!=namespace&&a.setAttribute("xmlns",b);return a},createImage:function(a){var b=document.createElement("img");b.setAttribute("src",a);b.setAttribute("border","0");return b},sortCells:function(a,b){b=null!=b?b:!0;var c=new mxDictionary;a.sort(function(d,e){var f=c.get(d);null==f&&(f=mxCellPath.create(d).split(mxCellPath.PATH_SEPARATOR),c.put(d,f));d=c.get(e);null==d&&(d=mxCellPath.create(e).split(mxCellPath.PATH_SEPARATOR),c.put(e,d));e=mxCellPath.compare(f,d);return 0==e?0:0<e==b?1:-1});return a},getStylename:function(a){return null!=a&&(a=a.split(";")[0],0>a.indexOf("="))?a:""},getStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0>a[c].indexOf("=")&&b.push(a[c])}return b},indexOfStylename:function(a,b){if(null!=a&&null!=b){a=a.split(";");for(var c=0,d=0;d<a.length;d++){if(a[d]==b)return c;c+=a[d].length+1}}return-1},addStylename:function(a,b){0>mxUtils.indexOfStylename(a,b)&&(null==a?a="":0<a.length&&";"!=a.charAt(a.length-1)&&(a+=";"),a+=b);return a},removeStylename:function(a,b){var c=[];if(null!=a){a=a.split(";");for(var d=0;d<a.length;d++)a[d]!=b&&c.push(a[d])}return c.join(";")},-removeAllStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0<=a[c].indexOf("=")&&b.push(a[c])}return b.join(";")},setCellStyles:function(a,b,c,d){if(null!=b&&0<b.length){a.beginUpdate();try{for(var e=0;e<b.length;e++)if(null!=b[e]){var f=mxUtils.setStyle(a.getStyle(b[e]),c,d);a.setStyle(b[e],f)}}finally{a.endUpdate()}}},parseColor:function(a,b){b=null!=b?b:1;var c=null;if(null!=a&&a!=mxConstants.NONE){if(mxUtils.isRgbColor(a)){a=a.replace(/[^\d,]/g,"").split(",");+removeAllStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0<=a[c].indexOf("=")&&b.push(a[c])}return b.join(";")},setCellStyles:function(a,b,c,d){if(null!=b&&0<b.length){a.beginUpdate();try{for(var e=0;e<b.length;e++)if(null!=b[e]){var f=mxUtils.setStyle(a.getStyle(b[e]),c,d);a.setStyle(b[e],f)}}finally{a.endUpdate()}}},parseColor:function(a,b){b=null!=b?b:1;var c=null;if(null!=a&&a!=mxConstants.NONE){if(mxUtils.isRgbColor(a)){a=a.replace(/[^\d,.]/g,"").split(",");c=parseInt(a[0]);var d=parseInt(a[1]),e=parseInt(a[2]);4==a.length&&(b=parseFloat(a[3]))}else mxUtils.isHexColor(a)||(a=mxUtils.color2hex(a)),a=a.substring(1),c=parseInt(a.substr(0,2),16),d=parseInt(a.substr(2,2),16),e=parseInt(a.substr(4,2),16),6<a.length&&(b=parseInt(a.substr(6,2),16)/255);c={r:c,g:d,b:e,a:b}}return c},hex2rgb:function(a){var b=mxUtils.parseColor(a);null!=b&&(a="rgb("+b.r+", "+b.g+", "+b.b+")");return a},hex2rgba:function(a,b){b=mxUtils.parseColor(a,b);null!=b&&(a="rgba("+b.r+", "+-b.g+", "+b.b+", "+b.a+")");return a},rgba2hex:function(a){var b=mxUtils.parseColor(a);return null!=b?"#"+("0"+b.r.toString(16)).slice(-2)+("0"+b.g.toString(16)).slice(-2)+("0"+b.b.toString(16)).slice(-2):a},color2hex:function(a,b){b=null!=b?b:"#000000";try{null!=a&&(a=String(a).replace(/\s/g,""),a.toLowerCase()==mxUtils.normalizedValidInvalidColor?b="#000000":(mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor,mxUtils.canvasContext.fillStyle=a,mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor?-b=mxUtils.canvasContext.fillStyle:1<a.length&&"#"==a.charAt(0)&&(mxUtils.canvasContext.fillStyle=a.substring(1),mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor&&(b=mxUtils.canvasContext.fillStyle))))}catch(c){}return b},setStyle:function(a,b,c){var d=null!=c&&("undefined"==typeof c.length||0<c.length);if(null==a||0==a.length)d&&(a=b+"="+c+";");else if(a.substring(0,b.length+1)==b+"="){var e=a.indexOf(";");a=d?b+"="+c+(0>e?";":a.substring(e)):0>e||e==a.length-1?"":a.substring(e+1)}else{var f=-a.indexOf(";"+b+"=");0>f?d&&(d=";"==a.charAt(a.length-1)?"":";",a=a+d+b+"="+c+";"):(e=a.indexOf(";",f+1),a=d?a.substring(0,f+1)+b+"="+c+(0>e?";":a.substring(e)):a.substring(0,f)+(0>e?";":a.substring(e)))}return a},setCellStyleFlags:function(a,b,c,d,e){if(null!=b&&0<b.length){a.beginUpdate();try{for(var f=0;f<b.length;f++)if(null!=b[f]){var g=mxUtils.setStyleFlag(a.getStyle(b[f]),c,d,e);a.setStyle(b[f],g)}}finally{a.endUpdate()}}},setStyleFlag:function(a,b,c,d){if(null==a||0==a.length)a=d||null==d?-b+"="+c:b+"=0";else{var e=a.indexOf(b+"=");if(0>e)e=";"==a.charAt(a.length-1)?"":";",a=d||null==d?a+e+b+"="+c:a+e+b+"=0";else{var f=a.indexOf(";",e),g=0>f?a.substring(e+b.length+1):a.substring(e+b.length+1,f);g=null==d?parseInt(g)^c:d?parseInt(g)|c:parseInt(g)&~c;a=a.substring(0,e)+b+"="+g+(0<=f?a.substring(f):"")}}return a},getAlignmentAsPoint:function(a,b){var c=-.5,d=-.5;a==mxConstants.ALIGN_LEFT?c=0:a==mxConstants.ALIGN_RIGHT&&(c=-1);b==mxConstants.ALIGN_TOP?d=0:b==mxConstants.ALIGN_BOTTOM&&(d=--1);return new mxPoint(c,d)},getSizeForString:function(a,b,c,d,e){b=null!=b?b:mxConstants.DEFAULT_FONTSIZE;c=null!=c?c:mxConstants.DEFAULT_FONTFAMILY;var f=document.createElement("div");f.style.fontFamily=c;f.style.fontSize=Math.round(b)+"px";f.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?b*mxConstants.LINE_HEIGHT+"px":mxConstants.LINE_HEIGHT*mxSvgCanvas2D.prototype.lineHeightCorrection;null!=e&&((e&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(f.style.fontWeight="bold"),(e&mxConstants.FONT_ITALIC)==-mxConstants.FONT_ITALIC&&(f.style.fontStyle="italic"),b=[],(e&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&b.push("underline"),(e&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&b.push("line-through"),0<b.length&&(f.style.textDecoration=b.join(" ")));f.style.position="absolute";f.style.visibility="hidden";f.style.display="inline-block";f.style.zoom="1";null!=d?(f.style.width=d+"px",f.style.whiteSpace="normal"):f.style.whiteSpace="nowrap";f.innerHTML=a;document.body.appendChild(f);-a=new mxRectangle(0,0,f.offsetWidth,f.offsetHeight);document.body.removeChild(f);return a},getViewXml:function(a,b,c,d,e){d=null!=d?d:0;e=null!=e?e:0;b=null!=b?b:1;null==c&&(c=[a.getModel().getRoot()]);var f=a.getView(),g=null,k=f.isEventsEnabled();f.setEventsEnabled(!1);var l=f.drawPane,m=f.overlayPane;a.dialect==mxConstants.DIALECT_SVG?(f.drawPane=document.createElementNS(mxConstants.NS_SVG,"g"),f.canvas.appendChild(f.drawPane),f.overlayPane=document.createElementNS(mxConstants.NS_SVG,"g")):(f.drawPane=-f.drawPane.cloneNode(!1),f.canvas.appendChild(f.drawPane),f.overlayPane=f.overlayPane.cloneNode(!1));f.canvas.appendChild(f.overlayPane);var n=f.getTranslate();f.translate=new mxPoint(d,e);b=new mxTemporaryCellStates(a.getView(),b,c);try{g=(new mxCodec).encode(a.getView())}finally{b.destroy(),f.translate=n,f.canvas.removeChild(f.drawPane),f.canvas.removeChild(f.overlayPane),f.drawPane=l,f.overlayPane=m,f.setEventsEnabled(k)}return g},getScaleForPageCount:function(a,b,c,d){if(1>a)return 1;c=null!=-c?c:mxConstants.PAGE_FORMAT_A4_PORTRAIT;d=null!=d?d:0;var e=c.width-2*d;c=c.height-2*d;d=mxRectangle.fromRectangle(b.getGraphBounds());b=b.getView().getScale();d.width/=b;d.height/=b;b=d.width;var f=Math.sqrt(a);d=Math.sqrt(b/d.height/(e/c));c=f*d;d=f/d;if(1>c&&d>a){var g=d/a;d=a;c/=g}1>d&&c>a&&(g=c/a,c=a,d/=g);g=Math.ceil(c)*Math.ceil(d);for(f=0;g>a;){g=Math.floor(c)/c;var k=Math.floor(d)/d;1==g&&(g=Math.floor(c-1)/c);1==k&&(k=Math.floor(d-1)/d);g=g>k?g:k;c*=g;d*=g;g=Math.ceil(c)*Math.ceil(d);f++;-if(10<f)break}return e*c/b*.99999},show:function(a,b,c,d,e,f){c=null!=c?c:0;d=null!=d?d:0;null==b?b=window.open().document:b.open();9==document.documentMode&&b.writeln('\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--\x3e');var g=a.getGraphBounds(),k=Math.ceil(c-g.x),l=Math.ceil(d-g.y);null==e&&(e=Math.ceil(g.width+c)+Math.ceil(Math.ceil(g.x)-g.x));null==f&&(f=Math.ceil(g.height+d)+Math.ceil(Math.ceil(g.y)-g.y));if(mxClient.IS_IE||11==document.documentMode){d="<html><head>";-g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)d+=g[c].outerHTML;d+="<style>";for(c=0;c<document.styleSheets.length;c++)try{d+=document.styleSheets[c].cssText}catch(m){}d=d+'</style></head><body style="margin:0px;"><div style="position:absolute;overflow:hidden;width:'+(e+"px;height:"+f+'px;"><div style="position:relative;left:'+k+"px;top:"+l+'px;">')+a.container.innerHTML;b.writeln(d+"</div></div></body><html>");b.close()}else{b.writeln("<html><head>");g=document.getElementsByTagName("base");-for(c=0;c<g.length;c++)b.writeln(mxUtils.getOuterHtml(g[c]));d=document.getElementsByTagName("link");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));d=document.getElementsByTagName("style");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));b.writeln('</head><body style="margin:0px;"></body></html>');b.close();c=b.createElement("div");c.position="absolute";c.overflow="hidden";c.style.width=e+"px";c.style.height=f+"px";e=b.createElement("div");e.style.position="absolute";e.style.left=-k+"px";e.style.top=l+"px";f=a.container.firstChild;for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.appendChild(g),f=f.nextSibling;b.body.appendChild(c);null!=e.firstChild&&b.body.appendChild(e);null!=d&&(d.style.minWidth="",d.style.minHeight="",d.firstChild.setAttribute("transform","translate("+k+","+l+")"))}mxUtils.removeCursors(b.body);return b},printScreen:function(a){var b=window.open();mxUtils.show(a,b.document);a=function(){b.focus();b.print();-b.close()};mxClient.IS_GC?b.setTimeout(a,500):a()},popup:function(a,b){if(b){var c=document.createElement("div");c.style.overflow="scroll";c.style.width="636px";c.style.height="460px";b=document.createElement("pre");b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," ");c.appendChild(b);c=new mxWindow("Popup Window",c,document.body.clientWidth/2-320,Math.max(document.body.clientHeight||0,document.documentElement.clientHeight)/2-240,640,480,!1,!0);c.setClosable(!0);c.setVisible(!0)}else mxClient.IS_NS?-(c=window.open(),c.document.writeln("<pre>"+mxUtils.htmlEntities(a)+"</pre"),c.document.close()):(c=window.open(),b=c.document.createElement("pre"),b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," "),c.document.body.appendChild(b))},alert:function(a){alert(a)},prompt:function(a,b){return prompt(a,null!=b?b:"")},confirm:function(a){return confirm(a)},error:function(a,b,c,d){var e=document.createElement("div");e.style.padding="20px";var f=document.createElement("img");-f.setAttribute("src",d||mxUtils.errorImage);f.setAttribute("valign","bottom");f.style.verticalAlign="middle";e.appendChild(f);e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));mxUtils.write(e,a);a=document.body.clientWidth;d=document.body.clientHeight||document.documentElement.clientHeight;var g=new mxWindow(mxResources.get(mxUtils.errorResource)||mxUtils.errorResource,e,(a-b)/2,d/4,b,null,!1,!0);c&&(mxUtils.br(e),b=-document.createElement("p"),c=document.createElement("button"),mxClient.IS_IE?c.style.cssText="float:right":c.setAttribute("style","float:right"),mxEvent.addListener(c,"click",function(k){g.destroy()}),mxUtils.write(c,mxResources.get(mxUtils.closeResource)||mxUtils.closeResource),b.appendChild(c),e.appendChild(b),mxUtils.br(e),g.setClosable(!0));g.setVisible(!0);return g},makeDraggable:function(a,b,c,d,e,f,g,k,l,m){a=new mxDragSource(a,c);a.dragOffset=new mxPoint(null!=e?e:0,null!=f?f:mxConstants.TOOLTIP_VERTICAL_OFFSET);-a.autoscroll=g;a.setGuidesEnabled(!1);null!=l&&(a.highlightDropTargets=l);null!=m&&(a.getDropTarget=m);a.getGraphForEvent=function(n){return"function"==typeof b?b(n):b};null!=d&&(a.createDragElement=function(){return d.cloneNode(!0)},k&&(a.createPreviewElement=function(n){var p=d.cloneNode(!0),q=parseInt(p.style.width),r=parseInt(p.style.height);p.style.width=Math.round(q*n.view.scale)+"px";p.style.height=Math.round(r*n.view.scale)+"px";return p}));return a},format:function(a){return parseFloat(parseFloat(a).toFixed(2))}},-mxConstants={DEFAULT_HOTSPOT:.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:"exact",RENDERING_HINT_FASTER:"faster",RENDERING_HINT_FASTEST:"fastest",DIALECT_SVG:"svg",DIALECT_MIXEDHTML:"mixedHtml",DIALECT_PREFERHTML:"preferHtml",DIALECT_STRICTHTML:"strictHtml",NS_SVG:"http://www.w3.org/2000/svg",NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XLINK:"http://www.w3.org/1999/xlink",SHADOWCOLOR:"#808080",VML_SHADOWCOLOR:"#808080",SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_BLUR:2,SHADOW_OPACITY:1,-NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:"#00FF00",DEFAULT_INVALID_COLOR:"#FF0000",OUTLINE_HIGHLIGHT_COLOR:"#00FF00",OUTLINE_HIGHLIGHT_STROKEWIDTH:5,HIGHLIGHT_STROKEWIDTH:3,HIGHLIGHT_SIZE:2,HIGHLIGHT_OPACITY:100,CURSOR_MOVABLE_VERTEX:"move",-CURSOR_MOVABLE_EDGE:"move",CURSOR_LABEL_HANDLE:"default",CURSOR_TERMINAL_HANDLE:"pointer",CURSOR_BEND_HANDLE:"crosshair",CURSOR_VIRTUAL_BEND_HANDLE:"crosshair",CURSOR_CONNECT:"pointer",HIGHLIGHT_COLOR:"#00FF00",CONNECT_TARGET_COLOR:"#0000FF",INVALID_CONNECT_TARGET_COLOR:"#FF0000",DROP_TARGET_COLOR:"#0000FF",VALID_COLOR:"#00FF00",INVALID_COLOR:"#FF0000",EDGE_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,-EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:"#FF0000",GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:"#0099FF",OUTLINE_STROKEWIDTH:mxClient.IS_IE?2:3,HANDLE_SIZE:6,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:"#00FF00",HANDLE_STROKECOLOR:"black",LABEL_HANDLE_FILLCOLOR:"yellow",CONNECT_HANDLE_FILLCOLOR:"#0000FF",LOCKED_HANDLE_FILLCOLOR:"#FF0000",OUTLINE_HANDLE_FILLCOLOR:"#00FFFF",OUTLINE_HANDLE_STROKECOLOR:"#0033FF",DEFAULT_FONTFAMILY:"Arial,Helvetica",DEFAULT_FONTSIZE:11,DEFAULT_TEXT_DIRECTION:"",LINE_HEIGHT:1.2,WORD_WRAP:"normal",-ABSOLUTE_LINE_HEIGHT:!1,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:.15,LINE_ARCSIZE:20,ARROW_SPACING:0,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT:new mxRectangle(0,0,827,1169),PAGE_FORMAT_A4_LANDSCAPE:new mxRectangle(0,0,1169,827),PAGE_FORMAT_LETTER_PORTRAIT:new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE:new mxRectangle(0,0,1100,850),NONE:"none",STYLE_PERIMETER:"perimeter",STYLE_SOURCE_PORT:"sourcePort",-STYLE_TARGET_PORT:"targetPort",STYLE_PORT_CONSTRAINT:"portConstraint",STYLE_PORT_CONSTRAINT_ROTATION:"portConstraintRotation",STYLE_SOURCE_PORT_CONSTRAINT:"sourcePortConstraint",STYLE_TARGET_PORT_CONSTRAINT:"targetPortConstraint",STYLE_OPACITY:"opacity",STYLE_FILL_OPACITY:"fillOpacity",STYLE_FILL_STYLE:"fillStyle",STYLE_STROKE_OPACITY:"strokeOpacity",STYLE_TEXT_OPACITY:"textOpacity",STYLE_TEXT_DIRECTION:"textDirection",STYLE_OVERFLOW:"overflow",STYLE_BLOCK_SPACING:"blockSpacing",STYLE_ORTHOGONAL:"orthogonal",-STYLE_EXIT_X:"exitX",STYLE_EXIT_Y:"exitY",STYLE_EXIT_DX:"exitDx",STYLE_EXIT_DY:"exitDy",STYLE_EXIT_PERIMETER:"exitPerimeter",STYLE_ENTRY_X:"entryX",STYLE_ENTRY_Y:"entryY",STYLE_ENTRY_DX:"entryDx",STYLE_ENTRY_DY:"entryDy",STYLE_ENTRY_PERIMETER:"entryPerimeter",STYLE_WHITE_SPACE:"whiteSpace",STYLE_ROTATION:"rotation",STYLE_FILLCOLOR:"fillColor",STYLE_POINTER_EVENTS:"pointerEvents",STYLE_SWIMLANE_FILLCOLOR:"swimlaneFillColor",STYLE_MARGIN:"margin",STYLE_GRADIENTCOLOR:"gradientColor",STYLE_GRADIENT_DIRECTION:"gradientDirection",-STYLE_STROKECOLOR:"strokeColor",STYLE_SEPARATORCOLOR:"separatorColor",STYLE_STROKEWIDTH:"strokeWidth",STYLE_ALIGN:"align",STYLE_VERTICAL_ALIGN:"verticalAlign",STYLE_LABEL_WIDTH:"labelWidth",STYLE_LABEL_POSITION:"labelPosition",STYLE_VERTICAL_LABEL_POSITION:"verticalLabelPosition",STYLE_IMAGE_ASPECT:"imageAspect",STYLE_IMAGE_ALIGN:"imageAlign",STYLE_IMAGE_VERTICAL_ALIGN:"imageVerticalAlign",STYLE_GLASS:"glass",STYLE_IMAGE:"image",STYLE_IMAGE_WIDTH:"imageWidth",STYLE_IMAGE_HEIGHT:"imageHeight",STYLE_IMAGE_BACKGROUND:"imageBackground",-STYLE_IMAGE_BORDER:"imageBorder",STYLE_FLIPH:"flipH",STYLE_FLIPV:"flipV",STYLE_NOLABEL:"noLabel",STYLE_NOEDGESTYLE:"noEdgeStyle",STYLE_LABEL_BACKGROUNDCOLOR:"labelBackgroundColor",STYLE_LABEL_BORDERCOLOR:"labelBorderColor",STYLE_LABEL_PADDING:"labelPadding",STYLE_INDICATOR_SHAPE:"indicatorShape",STYLE_INDICATOR_IMAGE:"indicatorImage",STYLE_INDICATOR_COLOR:"indicatorColor",STYLE_INDICATOR_STROKECOLOR:"indicatorStrokeColor",STYLE_INDICATOR_GRADIENTCOLOR:"indicatorGradientColor",STYLE_INDICATOR_SPACING:"indicatorSpacing",-STYLE_INDICATOR_WIDTH:"indicatorWidth",STYLE_INDICATOR_HEIGHT:"indicatorHeight",STYLE_INDICATOR_DIRECTION:"indicatorDirection",STYLE_SHADOW:"shadow",STYLE_TEXT_SHADOW:"textShadow",STYLE_SHADOW_OFFSET_X:"shadowOffsetX",STYLE_SHADOW_OFFSET_Y:"shadowOffsetY",STYLE_SHADOW_BLUR:"shadowBlur",STYLE_SHADOWCOLOR:"shadowColor",STYLE_SHADOW_OPACITY:"shadowOpacity",STYLE_SEGMENT:"segment",STYLE_ENDARROW:"endArrow",STYLE_STARTARROW:"startArrow",STYLE_ENDSIZE:"endSize",STYLE_STARTSIZE:"startSize",STYLE_SWIMLANE_LINE:"swimlaneLine",-STYLE_SWIMLANE_HEAD:"swimlaneHead",STYLE_SWIMLANE_BODY:"swimlaneBody",STYLE_ENDFILL:"endFill",STYLE_ENDFILLCOLOR:"endFillColor",STYLE_STARTFILL:"startFill",STYLE_STARTFILLCOLOR:"startFillColor",STYLE_DASHED:"dashed",STYLE_DASH_PATTERN:"dashPattern",STYLE_FIX_DASH:"fixDash",STYLE_ROUNDED:"rounded",STYLE_CURVED:"curved",STYLE_ARCSIZE:"arcSize",STYLE_ABSOLUTE_ARCSIZE:"absoluteArcSize",STYLE_SOURCE_PERIMETER_SPACING:"sourcePerimeterSpacing",STYLE_TARGET_PERIMETER_SPACING:"targetPerimeterSpacing",STYLE_PERIMETER_SPACING:"perimeterSpacing",-STYLE_SPACING:"spacing",STYLE_SPACING_TOP:"spacingTop",STYLE_SPACING_LEFT:"spacingLeft",STYLE_SPACING_BOTTOM:"spacingBottom",STYLE_SPACING_RIGHT:"spacingRight",STYLE_HORIZONTAL:"horizontal",STYLE_DIRECTION:"direction",STYLE_ANCHOR_POINT_DIRECTION:"anchorPointDirection",STYLE_ELBOW:"elbow",STYLE_FONTCOLOR:"fontColor",STYLE_FONTFAMILY:"fontFamily",STYLE_FONTSIZE:"fontSize",STYLE_FONTSTYLE:"fontStyle",STYLE_ASPECT:"aspect",STYLE_AUTOSIZE:"autosize",STYLE_AUTOSIZE_GRID:"autosizeGrid",STYLE_FIXED_WIDTH:"fixedWidth",-STYLE_FOLDABLE:"foldable",STYLE_EDITABLE:"editable",STYLE_BACKGROUND_OUTLINE:"backgroundOutline",STYLE_BENDABLE:"bendable",STYLE_MOVABLE:"movable",STYLE_RESIZABLE:"resizable",STYLE_RESIZE_WIDTH:"resizeWidth",STYLE_RESIZE_HEIGHT:"resizeHeight",STYLE_ROTATABLE:"rotatable",STYLE_CLONEABLE:"cloneable",STYLE_DELETABLE:"deletable",STYLE_SHAPE:"shape",STYLE_EDGE:"edgeStyle",STYLE_JETTY_SIZE:"jettySize",STYLE_SOURCE_JETTY_SIZE:"sourceJettySize",STYLE_TARGET_JETTY_SIZE:"targetJettySize",STYLE_LOOP:"loopStyle",-STYLE_ORTHOGONAL_LOOP:"orthogonalLoop",STYLE_ROUTING_CENTER_X:"routingCenterX",STYLE_ROUTING_CENTER_Y:"routingCenterY",STYLE_CLIP_PATH:"clipPath",FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_STRIKETHROUGH:8,SHAPE_RECTANGLE:"rectangle",SHAPE_ELLIPSE:"ellipse",SHAPE_DOUBLE_ELLIPSE:"doubleEllipse",SHAPE_RHOMBUS:"rhombus",SHAPE_LINE:"line",SHAPE_IMAGE:"image",SHAPE_ARROW:"arrow",SHAPE_ARROW_CONNECTOR:"arrowConnector",SHAPE_LABEL:"label",SHAPE_CYLINDER:"cylinder",SHAPE_SWIMLANE:"swimlane",SHAPE_CONNECTOR:"connector",-SHAPE_ACTOR:"actor",SHAPE_CLOUD:"cloud",SHAPE_TRIANGLE:"triangle",SHAPE_HEXAGON:"hexagon",ARROW_CLASSIC:"classic",ARROW_CLASSIC_THIN:"classicThin",ARROW_BLOCK:"block",ARROW_BLOCK_THIN:"blockThin",ARROW_OPEN:"open",ARROW_OPEN_THIN:"openThin",ARROW_OVAL:"oval",ARROW_DIAMOND:"diamond",ARROW_DIAMOND_THIN:"diamondThin",ALIGN_LEFT:"left",ALIGN_CENTER:"center",ALIGN_RIGHT:"right",ALIGN_TOP:"top",ALIGN_MIDDLE:"middle",ALIGN_BOTTOM:"bottom",DIRECTION_NORTH:"north",DIRECTION_SOUTH:"south",DIRECTION_EAST:"east",-DIRECTION_WEST:"west",DIRECTION_RADIAL:"radial",TEXT_DIRECTION_DEFAULT:"",TEXT_DIRECTION_AUTO:"auto",TEXT_DIRECTION_LTR:"ltr",TEXT_DIRECTION_RTL:"rtl",TEXT_DIRECTION_VERTICAL_LR:"vertical-lr",TEXT_DIRECTION_VERTICAL_RL:"vertical-rl",DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,ELBOW_VERTICAL:"vertical",ELBOW_HORIZONTAL:"horizontal",EDGESTYLE_ELBOW:"elbowEdgeStyle",EDGESTYLE_ENTITY_RELATION:"entityRelationEdgeStyle",-EDGESTYLE_LOOP:"loopEdgeStyle",EDGESTYLE_SIDETOSIDE:"sideToSideEdgeStyle",EDGESTYLE_TOPTOBOTTOM:"topToBottomEdgeStyle",EDGESTYLE_ORTHOGONAL:"orthogonalEdgeStyle",EDGESTYLE_SEGMENT:"segmentEdgeStyle",PERIMETER_ELLIPSE:"ellipsePerimeter",PERIMETER_RECTANGLE:"rectanglePerimeter",PERIMETER_RHOMBUS:"rhombusPerimeter",PERIMETER_HEXAGON:"hexagonPerimeter",PERIMETER_TRIANGLE:"trianglePerimeter"};+b.g+", "+b.b+", "+b.a+")");return a},rgba2hex:function(a){var b=mxUtils.parseColor(a);return null!=b?"#"+("0"+b.r.toString(16)).slice(-2)+("0"+b.g.toString(16)).slice(-2)+("0"+b.b.toString(16)).slice(-2)+(1>b.a?("0"+Math.round(255*b.a).toString(16)).slice(-2):""):a},color2hex:function(a,b){b=null!=b?b:"#000000";try{null!=a&&(a=String(a).replace(/\s/g,""),a.toLowerCase()==mxUtils.normalizedValidInvalidColor?b="#000000":(mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor,mxUtils.canvasContext.fillStyle=+a,mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor?(b=mxUtils.canvasContext.fillStyle,mxUtils.isRgbColor(b)&&(b=mxUtils.rgba2hex(b))):1<a.length&&"#"==a.charAt(0)&&(mxUtils.canvasContext.fillStyle=a.substring(1),mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor&&(b=mxUtils.canvasContext.fillStyle))))}catch(c){}return b},setStyle:function(a,b,c){var d=null!=c&&("undefined"==typeof c.length||0<c.length);if(null==a||0==a.length)d&&(a=b+"="+c+";");else if(a.substring(0,b.length+1)==+b+"="){var e=a.indexOf(";");a=d?b+"="+c+(0>e?";":a.substring(e)):0>e||e==a.length-1?"":a.substring(e+1)}else{var f=a.indexOf(";"+b+"=");0>f?d&&(d=";"==a.charAt(a.length-1)?"":";",a=a+d+b+"="+c+";"):(e=a.indexOf(";",f+1),a=d?a.substring(0,f+1)+b+"="+c+(0>e?";":a.substring(e)):a.substring(0,f)+(0>e?";":a.substring(e)))}return a},setCellStyleFlags:function(a,b,c,d,e){if(null!=b&&0<b.length){a.beginUpdate();try{for(var f=0;f<b.length;f++)if(null!=b[f]){var g=mxUtils.setStyleFlag(a.getStyle(b[f]),c,d,+e);a.setStyle(b[f],g)}}finally{a.endUpdate()}}},setStyleFlag:function(a,b,c,d){if(null==a||0==a.length)a=d||null==d?b+"="+c:b+"=0";else{var e=a.indexOf(b+"=");if(0>e)e=";"==a.charAt(a.length-1)?"":";",a=d||null==d?a+e+b+"="+c:a+e+b+"=0";else{var f=a.indexOf(";",e),g=0>f?a.substring(e+b.length+1):a.substring(e+b.length+1,f);g=null==d?parseInt(g)^c:d?parseInt(g)|c:parseInt(g)&~c;a=a.substring(0,e)+b+"="+g+(0<=f?a.substring(f):"")}}return a},getAlignmentAsPoint:function(a,b){var c=-.5,d=-.5;a==mxConstants.ALIGN_LEFT?+c=0:a==mxConstants.ALIGN_RIGHT&&(c=-1);b==mxConstants.ALIGN_TOP?d=0:b==mxConstants.ALIGN_BOTTOM&&(d=-1);return new mxPoint(c,d)},getSizeForString:function(a,b,c,d,e){b=null!=b?b:mxConstants.DEFAULT_FONTSIZE;c=null!=c?c:mxConstants.DEFAULT_FONTFAMILY;var f=document.createElement("div");f.style.fontFamily=c;f.style.fontSize=Math.round(b)+"px";f.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?b*mxConstants.LINE_HEIGHT+"px":mxConstants.LINE_HEIGHT*mxSvgCanvas2D.prototype.lineHeightCorrection;null!=+e&&((e&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(f.style.fontWeight="bold"),(e&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(f.style.fontStyle="italic"),b=[],(e&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&b.push("underline"),(e&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&b.push("line-through"),0<b.length&&(f.style.textDecoration=b.join(" ")));f.style.position="absolute";f.style.visibility="hidden";f.style.display="inline-block";f.style.zoom="1";null!=+d?(f.style.width=d+"px",f.style.whiteSpace="normal"):f.style.whiteSpace="nowrap";f.innerHTML=a;document.body.appendChild(f);a=new mxRectangle(0,0,f.offsetWidth,f.offsetHeight);document.body.removeChild(f);return a},getViewXml:function(a,b,c,d,e){d=null!=d?d:0;e=null!=e?e:0;b=null!=b?b:1;null==c&&(c=[a.getModel().getRoot()]);var f=a.getView(),g=null,k=f.isEventsEnabled();f.setEventsEnabled(!1);var l=f.drawPane,m=f.overlayPane;a.dialect==mxConstants.DIALECT_SVG?(f.drawPane=document.createElementNS(mxConstants.NS_SVG,+"g"),f.canvas.appendChild(f.drawPane),f.overlayPane=document.createElementNS(mxConstants.NS_SVG,"g")):(f.drawPane=f.drawPane.cloneNode(!1),f.canvas.appendChild(f.drawPane),f.overlayPane=f.overlayPane.cloneNode(!1));f.canvas.appendChild(f.overlayPane);var n=f.getTranslate();f.translate=new mxPoint(d,e);b=new mxTemporaryCellStates(a.getView(),b,c);try{g=(new mxCodec).encode(a.getView())}finally{b.destroy(),f.translate=n,f.canvas.removeChild(f.drawPane),f.canvas.removeChild(f.overlayPane),f.drawPane=+l,f.overlayPane=m,f.setEventsEnabled(k)}return g},getScaleForPageCount:function(a,b,c,d){if(1>a)return 1;c=null!=c?c:mxConstants.PAGE_FORMAT_A4_PORTRAIT;d=null!=d?d:0;var e=c.width-2*d;c=c.height-2*d;d=mxRectangle.fromRectangle(b.getGraphBounds());b=b.getView().getScale();d.width/=b;d.height/=b;b=d.width;var f=Math.sqrt(a);d=Math.sqrt(b/d.height/(e/c));c=f*d;d=f/d;if(1>c&&d>a){var g=d/a;d=a;c/=g}1>d&&c>a&&(g=c/a,c=a,d/=g);g=Math.ceil(c)*Math.ceil(d);for(f=0;g>a;){g=Math.floor(c)/c;var k=Math.floor(d)/+d;1==g&&(g=Math.floor(c-1)/c);1==k&&(k=Math.floor(d-1)/d);g=g>k?g:k;c*=g;d*=g;g=Math.ceil(c)*Math.ceil(d);f++;if(10<f)break}return e*c/b*.99999},show:function(a,b,c,d,e,f){c=null!=c?c:0;d=null!=d?d:0;null==b?b=window.open().document:b.open();9==document.documentMode&&b.writeln('\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--\x3e');var g=a.getGraphBounds(),k=Math.ceil(c-g.x),l=Math.ceil(d-g.y);null==e&&(e=Math.ceil(g.width+c)+Math.ceil(Math.ceil(g.x)-g.x));null==f&&(f=+Math.ceil(g.height+d)+Math.ceil(Math.ceil(g.y)-g.y));if(mxClient.IS_IE||11==document.documentMode){d="<html><head>";g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)d+=g[c].outerHTML;d+="<style>";for(c=0;c<document.styleSheets.length;c++)try{d+=document.styleSheets[c].cssText}catch(m){}d=d+'</style></head><body style="margin:0px;"><div style="position:absolute;overflow:hidden;width:'+(e+"px;height:"+f+'px;"><div style="position:relative;left:'+k+"px;top:"+l+'px;">')+a.container.innerHTML;+b.writeln(d+"</div></div></body><html>");b.close()}else{b.writeln("<html><head>");g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)b.writeln(mxUtils.getOuterHtml(g[c]));d=document.getElementsByTagName("link");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));d=document.getElementsByTagName("style");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));b.writeln('</head><body style="margin:0px;"></body></html>');b.close();c=b.createElement("div");c.position="absolute";+c.overflow="hidden";c.style.width=e+"px";c.style.height=f+"px";e=b.createElement("div");e.style.position="absolute";e.style.left=k+"px";e.style.top=l+"px";f=a.container.firstChild;for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.appendChild(g),f=f.nextSibling;b.body.appendChild(c);null!=e.firstChild&&b.body.appendChild(e);null!=d&&(d.style.minWidth="",d.style.minHeight="",d.firstChild.setAttribute("transform","translate("+k+","+l+")"))}mxUtils.removeCursors(b.body);+return b},printScreen:function(a){var b=window.open();mxUtils.show(a,b.document);a=function(){b.focus();b.print();b.close()};mxClient.IS_GC?b.setTimeout(a,500):a()},popup:function(a,b){if(b){var c=document.createElement("div");c.style.overflow="scroll";c.style.width="636px";c.style.height="460px";b=document.createElement("pre");b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," ");c.appendChild(b);c=new mxWindow("Popup Window",c,document.body.clientWidth/2-320,Math.max(document.body.clientHeight||+0,document.documentElement.clientHeight)/2-240,640,480,!1,!0);c.setClosable(!0);c.setVisible(!0)}else mxClient.IS_NS?(c=window.open(),c.document.writeln("<pre>"+mxUtils.htmlEntities(a)+"</pre"),c.document.close()):(c=window.open(),b=c.document.createElement("pre"),b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," "),c.document.body.appendChild(b))},alert:function(a){alert(a)},prompt:function(a,b){return prompt(a,null!=b?b:"")},confirm:function(a){return confirm(a)},+error:function(a,b,c,d){var e=document.createElement("div");e.style.padding="20px";var f=document.createElement("img");f.setAttribute("src",d||mxUtils.errorImage);f.setAttribute("valign","bottom");f.style.verticalAlign="middle";e.appendChild(f);e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));mxUtils.write(e,a);a=document.body.clientWidth;d=document.body.clientHeight||document.documentElement.clientHeight;var g=new mxWindow(mxResources.get(mxUtils.errorResource)||+mxUtils.errorResource,e,(a-b)/2,d/4,b,null,!1,!0);c&&(mxUtils.br(e),b=document.createElement("p"),c=document.createElement("button"),mxClient.IS_IE?c.style.cssText="float:right":c.setAttribute("style","float:right"),mxEvent.addListener(c,"click",function(k){g.destroy()}),mxUtils.write(c,mxResources.get(mxUtils.closeResource)||mxUtils.closeResource),b.appendChild(c),e.appendChild(b),mxUtils.br(e),g.setClosable(!0));g.setVisible(!0);return g},makeDraggable:function(a,b,c,d,e,f,g,k,l,m){a=new mxDragSource(a,+c);a.dragOffset=new mxPoint(null!=e?e:0,null!=f?f:mxConstants.TOOLTIP_VERTICAL_OFFSET);a.autoscroll=g;a.setGuidesEnabled(!1);null!=l&&(a.highlightDropTargets=l);null!=m&&(a.getDropTarget=m);a.getGraphForEvent=function(n){return"function"==typeof b?b(n):b};null!=d&&(a.createDragElement=function(){return d.cloneNode(!0)},k&&(a.createPreviewElement=function(n){var p=d.cloneNode(!0),q=parseInt(p.style.width),r=parseInt(p.style.height);p.style.width=Math.round(q*n.view.scale)+"px";p.style.height=Math.round(r*+n.view.scale)+"px";return p}));return a},format:function(a){return parseFloat(parseFloat(a).toFixed(2))}},mxConstants={DEFAULT_HOTSPOT:.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:"exact",RENDERING_HINT_FASTER:"faster",RENDERING_HINT_FASTEST:"fastest",DIALECT_SVG:"svg",DIALECT_MIXEDHTML:"mixedHtml",DIALECT_PREFERHTML:"preferHtml",DIALECT_STRICTHTML:"strictHtml",NS_SVG:"http://www.w3.org/2000/svg",NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XLINK:"http://www.w3.org/1999/xlink",SHADOWCOLOR:"#808080",+VML_SHADOWCOLOR:"#808080",SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_BLUR:2,SHADOW_OPACITY:1,NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:"#00FF00",DEFAULT_INVALID_COLOR:"#FF0000",OUTLINE_HIGHLIGHT_COLOR:"#00FF00",OUTLINE_HIGHLIGHT_STROKEWIDTH:5,+HIGHLIGHT_STROKEWIDTH:3,HIGHLIGHT_SIZE:2,HIGHLIGHT_OPACITY:100,CURSOR_MOVABLE_VERTEX:"move",CURSOR_MOVABLE_EDGE:"move",CURSOR_LABEL_HANDLE:"default",CURSOR_TERMINAL_HANDLE:"pointer",CURSOR_BEND_HANDLE:"crosshair",CURSOR_VIRTUAL_BEND_HANDLE:"crosshair",CURSOR_CONNECT:"pointer",HIGHLIGHT_COLOR:"#00FF00",CONNECT_TARGET_COLOR:"#0000FF",INVALID_CONNECT_TARGET_COLOR:"#FF0000",DROP_TARGET_COLOR:"#0000FF",VALID_COLOR:"#00FF00",INVALID_COLOR:"#FF0000",EDGE_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_COLOR:"#00FF00",+VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:"#FF0000",GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:"#0099FF",OUTLINE_STROKEWIDTH:mxClient.IS_IE?2:3,HANDLE_SIZE:6,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:"#00FF00",HANDLE_STROKECOLOR:"black",LABEL_HANDLE_FILLCOLOR:"yellow",CONNECT_HANDLE_FILLCOLOR:"#0000FF",LOCKED_HANDLE_FILLCOLOR:"#FF0000",OUTLINE_HANDLE_FILLCOLOR:"#00FFFF",OUTLINE_HANDLE_STROKECOLOR:"#0033FF",DEFAULT_FONTFAMILY:"Arial,Helvetica",+DEFAULT_FONTSIZE:11,DEFAULT_TEXT_DIRECTION:"",LINE_HEIGHT:1.2,WORD_WRAP:"normal",ABSOLUTE_LINE_HEIGHT:!1,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:.15,LINE_ARCSIZE:20,ARROW_SPACING:0,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT:new mxRectangle(0,0,827,1169),PAGE_FORMAT_A4_LANDSCAPE:new mxRectangle(0,0,1169,827),PAGE_FORMAT_LETTER_PORTRAIT:new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE:new mxRectangle(0,+0,1100,850),NONE:"none",STYLE_PERIMETER:"perimeter",STYLE_SOURCE_PORT:"sourcePort",STYLE_TARGET_PORT:"targetPort",STYLE_PORT_CONSTRAINT:"portConstraint",STYLE_PORT_CONSTRAINT_ROTATION:"portConstraintRotation",STYLE_SOURCE_PORT_CONSTRAINT:"sourcePortConstraint",STYLE_TARGET_PORT_CONSTRAINT:"targetPortConstraint",STYLE_OPACITY:"opacity",STYLE_FILL_OPACITY:"fillOpacity",STYLE_FILL_STYLE:"fillStyle",STYLE_STROKE_OPACITY:"strokeOpacity",STYLE_TEXT_OPACITY:"textOpacity",STYLE_TEXT_DIRECTION:"textDirection",+STYLE_OVERFLOW:"overflow",STYLE_BLOCK_SPACING:"blockSpacing",STYLE_ORTHOGONAL:"orthogonal",STYLE_EXIT_X:"exitX",STYLE_EXIT_Y:"exitY",STYLE_EXIT_DX:"exitDx",STYLE_EXIT_DY:"exitDy",STYLE_EXIT_PERIMETER:"exitPerimeter",STYLE_ENTRY_X:"entryX",STYLE_ENTRY_Y:"entryY",STYLE_ENTRY_DX:"entryDx",STYLE_ENTRY_DY:"entryDy",STYLE_ENTRY_PERIMETER:"entryPerimeter",STYLE_WHITE_SPACE:"whiteSpace",STYLE_ROTATION:"rotation",STYLE_FILLCOLOR:"fillColor",STYLE_POINTER_EVENTS:"pointerEvents",STYLE_SWIMLANE_FILLCOLOR:"swimlaneFillColor",+STYLE_MARGIN:"margin",STYLE_GRADIENTCOLOR:"gradientColor",STYLE_GRADIENT_DIRECTION:"gradientDirection",STYLE_STROKECOLOR:"strokeColor",STYLE_SEPARATORCOLOR:"separatorColor",STYLE_STROKEWIDTH:"strokeWidth",STYLE_ALIGN:"align",STYLE_VERTICAL_ALIGN:"verticalAlign",STYLE_LABEL_WIDTH:"labelWidth",STYLE_LABEL_POSITION:"labelPosition",STYLE_VERTICAL_LABEL_POSITION:"verticalLabelPosition",STYLE_IMAGE_ASPECT:"imageAspect",STYLE_IMAGE_ALIGN:"imageAlign",STYLE_IMAGE_VERTICAL_ALIGN:"imageVerticalAlign",STYLE_GLASS:"glass",+STYLE_IMAGE:"image",STYLE_IMAGE_WIDTH:"imageWidth",STYLE_IMAGE_HEIGHT:"imageHeight",STYLE_IMAGE_BACKGROUND:"imageBackground",STYLE_IMAGE_BORDER:"imageBorder",STYLE_FLIPH:"flipH",STYLE_FLIPV:"flipV",STYLE_NOLABEL:"noLabel",STYLE_NOEDGESTYLE:"noEdgeStyle",STYLE_LABEL_BACKGROUNDCOLOR:"labelBackgroundColor",STYLE_LABEL_BORDERCOLOR:"labelBorderColor",STYLE_LABEL_PADDING:"labelPadding",STYLE_INDICATOR_SHAPE:"indicatorShape",STYLE_INDICATOR_IMAGE:"indicatorImage",STYLE_INDICATOR_COLOR:"indicatorColor",STYLE_INDICATOR_STROKECOLOR:"indicatorStrokeColor",+STYLE_INDICATOR_GRADIENTCOLOR:"indicatorGradientColor",STYLE_INDICATOR_SPACING:"indicatorSpacing",STYLE_INDICATOR_WIDTH:"indicatorWidth",STYLE_INDICATOR_HEIGHT:"indicatorHeight",STYLE_INDICATOR_DIRECTION:"indicatorDirection",STYLE_SHADOW:"shadow",STYLE_TEXT_SHADOW:"textShadow",STYLE_SHADOW_OFFSET_X:"shadowOffsetX",STYLE_SHADOW_OFFSET_Y:"shadowOffsetY",STYLE_SHADOW_BLUR:"shadowBlur",STYLE_SHADOWCOLOR:"shadowColor",STYLE_SHADOW_OPACITY:"shadowOpacity",STYLE_SEGMENT:"segment",STYLE_ENDARROW:"endArrow",+STYLE_STARTARROW:"startArrow",STYLE_ENDSIZE:"endSize",STYLE_STARTSIZE:"startSize",STYLE_SWIMLANE_LINE:"swimlaneLine",STYLE_SWIMLANE_HEAD:"swimlaneHead",STYLE_SWIMLANE_BODY:"swimlaneBody",STYLE_ENDFILL:"endFill",STYLE_ENDFILLCOLOR:"endFillColor",STYLE_STARTFILL:"startFill",STYLE_STARTFILLCOLOR:"startFillColor",STYLE_DASHED:"dashed",STYLE_DASH_PATTERN:"dashPattern",STYLE_FIX_DASH:"fixDash",STYLE_ROUNDED:"rounded",STYLE_CURVED:"curved",STYLE_ARCSIZE:"arcSize",STYLE_ABSOLUTE_ARCSIZE:"absoluteArcSize",+STYLE_SOURCE_PERIMETER_SPACING:"sourcePerimeterSpacing",STYLE_TARGET_PERIMETER_SPACING:"targetPerimeterSpacing",STYLE_PERIMETER_SPACING:"perimeterSpacing",STYLE_SPACING:"spacing",STYLE_SPACING_TOP:"spacingTop",STYLE_SPACING_LEFT:"spacingLeft",STYLE_SPACING_BOTTOM:"spacingBottom",STYLE_SPACING_RIGHT:"spacingRight",STYLE_HORIZONTAL:"horizontal",STYLE_DIRECTION:"direction",STYLE_ANCHOR_POINT_DIRECTION:"anchorPointDirection",STYLE_ELBOW:"elbow",STYLE_FONTCOLOR:"fontColor",STYLE_FONTFAMILY:"fontFamily",+STYLE_FONTSIZE:"fontSize",STYLE_FONTSTYLE:"fontStyle",STYLE_ASPECT:"aspect",STYLE_AUTOSIZE:"autosize",STYLE_AUTOSIZE_GRID:"autosizeGrid",STYLE_FIXED_WIDTH:"fixedWidth",STYLE_FOLDABLE:"foldable",STYLE_EDITABLE:"editable",STYLE_BACKGROUND_OUTLINE:"backgroundOutline",STYLE_BENDABLE:"bendable",STYLE_MOVABLE:"movable",STYLE_RESIZABLE:"resizable",STYLE_RESIZE_WIDTH:"resizeWidth",STYLE_RESIZE_HEIGHT:"resizeHeight",STYLE_ROTATABLE:"rotatable",STYLE_CLONEABLE:"cloneable",STYLE_DELETABLE:"deletable",STYLE_SHAPE:"shape",+STYLE_EDGE:"edgeStyle",STYLE_JETTY_SIZE:"jettySize",STYLE_SOURCE_JETTY_SIZE:"sourceJettySize",STYLE_TARGET_JETTY_SIZE:"targetJettySize",STYLE_LOOP:"loopStyle",STYLE_ORTHOGONAL_LOOP:"orthogonalLoop",STYLE_ROUTING_CENTER_X:"routingCenterX",STYLE_ROUTING_CENTER_Y:"routingCenterY",STYLE_CLIP_PATH:"clipPath",FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_STRIKETHROUGH:8,SHAPE_RECTANGLE:"rectangle",SHAPE_ELLIPSE:"ellipse",SHAPE_DOUBLE_ELLIPSE:"doubleEllipse",SHAPE_RHOMBUS:"rhombus",SHAPE_LINE:"line",SHAPE_IMAGE:"image",+SHAPE_ARROW:"arrow",SHAPE_ARROW_CONNECTOR:"arrowConnector",SHAPE_LABEL:"label",SHAPE_CYLINDER:"cylinder",SHAPE_SWIMLANE:"swimlane",SHAPE_CONNECTOR:"connector",SHAPE_ACTOR:"actor",SHAPE_CLOUD:"cloud",SHAPE_TRIANGLE:"triangle",SHAPE_HEXAGON:"hexagon",ARROW_CLASSIC:"classic",ARROW_CLASSIC_THIN:"classicThin",ARROW_BLOCK:"block",ARROW_BLOCK_THIN:"blockThin",ARROW_OPEN:"open",ARROW_OPEN_THIN:"openThin",ARROW_OVAL:"oval",ARROW_DIAMOND:"diamond",ARROW_DIAMOND_THIN:"diamondThin",ALIGN_LEFT:"left",ALIGN_CENTER:"center",+ALIGN_RIGHT:"right",ALIGN_TOP:"top",ALIGN_MIDDLE:"middle",ALIGN_BOTTOM:"bottom",DIRECTION_NORTH:"north",DIRECTION_SOUTH:"south",DIRECTION_EAST:"east",DIRECTION_WEST:"west",DIRECTION_RADIAL:"radial",TEXT_DIRECTION_DEFAULT:"",TEXT_DIRECTION_AUTO:"auto",TEXT_DIRECTION_LTR:"ltr",TEXT_DIRECTION_RTL:"rtl",TEXT_DIRECTION_VERTICAL_LR:"vertical-lr",TEXT_DIRECTION_VERTICAL_RL:"vertical-rl",DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,+ELBOW_VERTICAL:"vertical",ELBOW_HORIZONTAL:"horizontal",EDGESTYLE_ELBOW:"elbowEdgeStyle",EDGESTYLE_ENTITY_RELATION:"entityRelationEdgeStyle",EDGESTYLE_LOOP:"loopEdgeStyle",EDGESTYLE_SIDETOSIDE:"sideToSideEdgeStyle",EDGESTYLE_TOPTOBOTTOM:"topToBottomEdgeStyle",EDGESTYLE_ORTHOGONAL:"orthogonalEdgeStyle",EDGESTYLE_SEGMENT:"segmentEdgeStyle",PERIMETER_ELLIPSE:"ellipsePerimeter",PERIMETER_RECTANGLE:"rectanglePerimeter",PERIMETER_RHOMBUS:"rhombusPerimeter",PERIMETER_HEXAGON:"hexagonPerimeter",PERIMETER_TRIANGLE:"trianglePerimeter"};function mxEventObject(a){this.name=a;this.properties=[];for(var b=1;b<arguments.length;b+=2)null!=arguments[b+1]&&(this.properties[arguments[b]]=arguments[b+1])}mxEventObject.prototype.name=null;mxEventObject.prototype.properties=null;mxEventObject.prototype.consumed=!1;mxEventObject.prototype.getName=function(){return this.name};mxEventObject.prototype.getProperties=function(){return this.properties};mxEventObject.prototype.getProperty=function(a){return this.properties[a]};mxEventObject.prototype.isConsumed=function(){return this.consumed};mxEventObject.prototype.consume=function(){this.consumed=!0};function mxMouseEvent(a,b){this.evt=a;this.sourceState=this.state=b}mxMouseEvent.prototype.consumed=!1;mxMouseEvent.prototype.evt=null;mxMouseEvent.prototype.graphX=null;mxMouseEvent.prototype.graphY=null;mxMouseEvent.prototype.state=null;mxMouseEvent.prototype.sourceState=null;mxMouseEvent.prototype.getEvent=function(){return this.evt};mxMouseEvent.prototype.getSource=function(){return mxEvent.getSource(this.evt)};mxMouseEvent.prototype.isSource=function(a){return null!=a?mxUtils.isAncestorNode(a.node,this.getSource()):!1};mxMouseEvent.prototype.getX=function(){return mxEvent.getClientX(this.getEvent())};mxMouseEvent.prototype.getY=function(){return mxEvent.getClientY(this.getEvent())};mxMouseEvent.prototype.getGraphX=function(){return this.graphX};mxMouseEvent.prototype.getGraphY=function(){return this.graphY};@@ -439,8 +439,8 @@ mxSvgCanvas2D.prototype.addForeignObject=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t)d,e,f,g,k,l,m,n,p),null!=a&&(v.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),b=this.createElement("switch"),b.appendChild(v),b.appendChild(a),u.appendChild(b)));t.appendChild(u)};mxSvgCanvas2D.prototype.updateTextNodes=function(a,b,c,d,e,f,g,k,l,m,n,p){var q=this.state.scale,r="",t="";null!=n&&"vertical-"==n.substring(0,9)?(r="-rl"==n.substring(n.length-3),t=e==mxConstants.ALIGN_LEFT?r?"flex-end":"flex-start":e==mxConstants.ALIGN_RIGHT?r?"flex-start":"flex-end":"center",r=f==mxConstants.ALIGN_TOP?"flex-start":f==mxConstants.ALIGN_BOTTOM?"flex-end":"center"):(t=f==mxConstants.ALIGN_TOP?"flex-start":f==mxConstants.ALIGN_BOTTOM?"flex-end":"center",r=e==mxConstants.ALIGN_LEFT?"flex-start":e==mxConstants.ALIGN_RIGHT?"flex-end":"center");var u=null!=this.state.fontBackgroundColor?this.getLightDarkColor(this.state.fontBackgroundColor):null,v=null!=this.state.fontBorderColor?this.getLightDarkColor(this.state.fontBorderColor):null;mxSvgCanvas2D.createCss(c+this.foreignObjectPadding,d,e,f,g,k,l,n,null!=u?u.cssText:null,null!=v?v.cssText:null,"display: flex; align-items: unsafe "+t+"; justify-content: unsafe "+r+"; "+(null!=n&&"vertical-"==n.substring(0,9)?"writing-mode: "+n+-";":""),this.getTextCss(),q,mxUtils.bind(this,function(y,A,z,C,B){a+=this.state.dx;b+=this.state.dy;var x=p.firstChild;"title"==x.nodeName&&(x=x.nextSibling);C+="color: "+this.getLightDarkColor(this.state.fontColor).light+"; ";C+=null!=u?"background-color: "+u.light+"; ":"";C+=null!=v?"border-color: "+v.light+"; ":"";var D=x.firstChild,E=D.firstChild,I=(this.rotateHtml?this.state.rotation:0)+(null!=m?m:0),F=(0!=this.foOffset?"translate("+this.foOffset+" "+this.foOffset+")":"")+(1!=q?"scale("+q+")":-"");this.setCssText(E.firstChild,B);this.setCssText(E,C);x.setAttribute("width",Math.ceil(1/Math.min(1,q)*100)+"%");x.setAttribute("height",Math.ceil(1/Math.min(1,q)*100)+"%");A=Math.round(b+A);0>A?(x.setAttribute("y",A),z+="padding-top: 0; "):(x.removeAttribute("y"),z+="padding-top: "+A+"px; ");this.setCssText(D,z+"margin-left: "+Math.round(a+y)+"px;");F+=0!=I?"rotate("+I+" "+a+" "+b+")":"";""!=F?p.setAttribute("transform",F):p.removeAttribute("transform");1!=this.state.alpha?p.setAttribute("opacity",+";":""),this.getTextCss(),q,mxUtils.bind(this,function(y,A,z,x,B){a+=this.state.dx;b+=this.state.dy;var C=p.firstChild;"title"==C.nodeName&&(C=C.nextSibling);x+="color: "+this.getLightDarkColor(this.state.fontColor).light+"; ";x+=null!=u?"background-color: "+u.light+"; ":"";x+=null!=v?"border-color: "+v.light+"; ":"";var E=C.firstChild,D=E.firstChild,I=(this.rotateHtml?this.state.rotation:0)+(null!=m?m:0),F=(0!=this.foOffset?"translate("+this.foOffset+" "+this.foOffset+")":"")+(1!=q?"scale("+q+")":+"");this.setCssText(D.firstChild,B);this.setCssText(D,x);C.setAttribute("width",Math.ceil(1/Math.min(1,q)*100)+"%");C.setAttribute("height",Math.ceil(1/Math.min(1,q)*100)+"%");A=Math.round(b+A);0>A?(C.setAttribute("y",A),z+="padding-top: 0; "):(C.removeAttribute("y"),z+="padding-top: "+A+"px; ");this.setCssText(E,z+"margin-left: "+Math.round(a+y)+"px;");F+=0!=I?"rotate("+I+" "+a+" "+b+")":"";""!=F?p.setAttribute("transform",F):p.removeAttribute("transform");1!=this.state.alpha?p.setAttribute("opacity",this.state.alpha):p.removeAttribute("opacity")}))};mxSvgCanvas2D.createCss=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r){k=null!=k&&"vertical-"==k.substring(0,9);q="box-sizing: border-box; font-size: 0; ";q=k?q+("text-align: "+(d==mxConstants.ALIGN_TOP?"left":d==mxConstants.ALIGN_BOTTOM?"right":"center")+"; "):q+("text-align: "+(c==mxConstants.ALIGN_LEFT?"left":c==mxConstants.ALIGN_RIGHT?"right":"center")+"; ");var t=mxUtils.getAlignmentAsPoint(c,d);c="overflow: hidden; ";var u="width: 1px; ",v="height: 1px; ",y=t.x*a;t=t.y*b;g?(u="width: "+Math.round(a)+"px; ",q+="max-height: "+Math.round(b)+"px; ",t=0):"fill"==f?(u="width: "+Math.round(a)+"px; ",v="height: "+Math.round(b)+"px; ",p+="width: 100%; height: 100%; ",q+="width: "+Math.round(a-2)+"px; "+v):"width"==f?(u="width: "+Math.round(a-2)+"px; ",p+="width: 100%; ",q+=u,t=0,0<b&&(q+="max-height: "+Math.round(b)+"px; ")):"block"==f?(u="width: "+Math.round(a-2)+"px; ",p+="width: 100%; ",c="",t=0,q+=u,"middle"==d&&(q+="max-height: "+Math.round(b)+"px; ")):(c="",k?y=0:t=0);d="";null!=l&&(d+="background-color: "+@@ -476,9 +476,9 @@ m.scale,e*m.scale,(f+1)*m.scale);null!=n&&(b=this.createElement("rect"),c=null!=2)),b.setAttribute("height",Math.ceil(n.height)),null!=c&&(b.style.fill=c.cssText),d&&(b.style.stroke=d.cssText),m=null!=m.fontBorderColor?Math.max(1,this.format(m.scale)):0,b.setAttribute("stroke-width",m),this.root.ownerDocument==document&&1==mxUtils.mod(m,2)&&b.setAttribute("transform","translate(0.5, 0.5)"),a.insertBefore(b,a.firstChild))}};mxSvgCanvas2D.prototype.stroke=function(){this.addNode(!1,!0)};mxSvgCanvas2D.prototype.fill=function(){this.addNode(!0,!1)};mxSvgCanvas2D.prototype.fillAndStroke=function(){this.addNode(!0,!0)};function mxGuide(a,b){this.graph=a;this.setStates(b)}mxGuide.prototype.graph=null;mxGuide.prototype.states=null;mxGuide.prototype.horizontal=!0;mxGuide.prototype.vertical=!0;mxGuide.prototype.guideX=null;mxGuide.prototype.guideY=null;mxGuide.prototype.rounded=!1;mxGuide.prototype.tolerance=2;mxGuide.prototype.setStates=function(a){this.states=a};mxGuide.prototype.isEnabledForEvent=function(a){return!0};mxGuide.prototype.getGuideTolerance=function(a){return a&&this.graph.gridEnabled?this.graph.gridSize/2:this.tolerance};mxGuide.prototype.createGuideShape=function(a){a=new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH);a.isDashed=!0;return a};mxGuide.prototype.isStateIgnored=function(a){return!1};-mxGuide.prototype.move=function(a,b,c,d){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){d=function(B,x,D){var E=!1;D&&Math.abs(B-C)<t?(b.y=B-a.getCenterY(),t=Math.abs(B-C),E=!0):D||(Math.abs(B-A)<t?(b.y=B-a.y,t=Math.abs(B-A),E=!0):Math.abs(B-z)<t&&(b.y=B-a.y-a.height,t=Math.abs(B-z),E=!0));E&&(p=x,q=B,null==this.guideY&&(this.guideY=this.createGuideShape(!1),this.guideY.dialect=mxConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverlayPane())));-n=n||E};var e=function(B,x,D){var E=!1;D&&Math.abs(B-y)<r?(b.x=B-a.getCenterX(),r=Math.abs(B-y),E=!0):D||(Math.abs(B-u)<r?(b.x=B-a.x,r=Math.abs(B-u),E=!0):Math.abs(B-v)<r&&(b.x=B-a.x-a.width,r=Math.abs(B-v),E=!0));E&&(l=x,m=B,null==this.guideX&&(this.guideX=this.createGuideShape(!0),this.guideX.dialect=mxConstants.DIALECT_SVG,this.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||E},f=this.graph.getView().scale;f*=this.getGuideTolerance(c);var g=a.clone();g.x+=-b.x;g.y+=b.y;var k=!1,l=null,m=null,n=!1,p=null,q=null,r=f,t=f,u=g.x,v=g.x+g.width,y=g.getCenterX(),A=g.y,z=g.y+g.height,C=g.getCenterY();for(f=0;f<this.states.length;f++)g=this.states[f],null==g||this.isStateIgnored(g)||(this.horizontal&&(e.call(this,g.getCenterX(),g,!0),e.call(this,g.x,g,!1),e.call(this,g.x+g.width,g,!1),null==g.cell&&e.call(this,g.getCenterX(),g,!1)),this.vertical&&(d.call(this,g.getCenterY(),g,!0),d.call(this,g.y,g,!1),d.call(this,g.y+g.height,g,!1),null==g.cell&&d.call(this,+mxGuide.prototype.move=function(a,b,c,d){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){d=function(B,C,E){var D=!1;E&&Math.abs(B-x)<t?(b.y=B-a.getCenterY(),t=Math.abs(B-x),D=!0):E||(Math.abs(B-A)<t?(b.y=B-a.y,t=Math.abs(B-A),D=!0):Math.abs(B-z)<t&&(b.y=B-a.y-a.height,t=Math.abs(B-z),D=!0));D&&(p=C,q=B,null==this.guideY&&(this.guideY=this.createGuideShape(!1),this.guideY.dialect=mxConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverlayPane())));+n=n||D};var e=function(B,C,E){var D=!1;E&&Math.abs(B-y)<r?(b.x=B-a.getCenterX(),r=Math.abs(B-y),D=!0):E||(Math.abs(B-u)<r?(b.x=B-a.x,r=Math.abs(B-u),D=!0):Math.abs(B-v)<r&&(b.x=B-a.x-a.width,r=Math.abs(B-v),D=!0));D&&(l=C,m=B,null==this.guideX&&(this.guideX=this.createGuideShape(!0),this.guideX.dialect=mxConstants.DIALECT_SVG,this.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||D},f=this.graph.getView().scale;f*=this.getGuideTolerance(c);var g=a.clone();g.x+=+b.x;g.y+=b.y;var k=!1,l=null,m=null,n=!1,p=null,q=null,r=f,t=f,u=g.x,v=g.x+g.width,y=g.getCenterX(),A=g.y,z=g.y+g.height,x=g.getCenterY();for(f=0;f<this.states.length;f++)g=this.states[f],null==g||this.isStateIgnored(g)||(this.horizontal&&(e.call(this,g.getCenterX(),g,!0),e.call(this,g.x,g,!1),e.call(this,g.x+g.width,g,!1),null==g.cell&&e.call(this,g.getCenterX(),g,!1)),this.vertical&&(d.call(this,g.getCenterY(),g,!0),d.call(this,g.y,g,!1),d.call(this,g.y+g.height,g,!1),null==g.cell&&d.call(this,g.getCenterY(),g,!1)));this.graph.snapDelta(b,a,!c,k,n);b=this.getDelta(a,l,b.x,p,b.y);c=this.graph.container;k||null==this.guideX?null!=this.guideX&&(e=d=null,null!=l&&null!=a&&(d=Math.min(a.y+b.y-this.graph.panDy,l.y),e=Math.max(a.y+a.height+b.y-this.graph.panDy,l.y+l.height)),this.guideX.points=null!=d&&null!=e?[new mxPoint(m,d),new mxPoint(m,e)]:[new mxPoint(m,-this.graph.panDy),new mxPoint(m,c.scrollHeight-3-this.graph.panDy)],this.guideX.stroke=this.getGuideColor(l,!0),this.guideX.node.style.visibility="visible",this.guideX.redraw()):this.guideX.node.style.visibility="hidden";n||null==this.guideY?null!=this.guideY&&(e=d=null,null!=p&&null!=a&&(d=Math.min(a.x+b.x-this.graph.panDx,p.x),e=Math.max(a.x+a.width+b.x-this.graph.panDx,p.x+p.width)),this.guideY.points=null!=d&&null!=e?[new mxPoint(d,q),new mxPoint(e,q)]:[new mxPoint(-this.graph.panDx,q),new mxPoint(c.scrollWidth-3-this.graph.panDx,q)],this.guideY.stroke=this.getGuideColor(p,!1),this.guideY.node.style.visibility="visible",this.guideY.redraw()):this.guideY.node.style.visibility="hidden"}return b};mxGuide.prototype.getDelta=function(a,b,c,d,e){var f=this.graph.view.scale;if(this.rounded||null!=b&&null==b.cell)c=Math.round((a.x+c)/f)*f-a.x;if(this.rounded||null!=d&&null==d.cell)e=Math.round((a.y+e)/f)*f-a.y;return new mxPoint(c,e)};mxGuide.prototype.getGuideColor=function(a,b){return mxConstants.GUIDE_COLOR};mxGuide.prototype.hide=function(){this.setVisible(!1)};@@ -573,14 +573,14 @@ function mxArrowConnector(a,b,c,d,e,f,g){mxShape.call(this);this.points=a;this.fmxArrowConnector.prototype.resetStyles=function(){mxShape.prototype.resetStyles.apply(this,arguments);this.arrowSpacing=mxConstants.ARROW_SPACING};mxArrowConnector.prototype.apply=function(a){mxShape.prototype.apply.apply(this,arguments);null!=this.style&&(this.startSize=3*mxUtils.getNumber(this.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5),this.endSize=3*mxUtils.getNumber(this.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5))};mxArrowConnector.prototype.augmentBoundingBox=function(a){mxShape.prototype.augmentBoundingBox.apply(this,arguments);var b=this.getEdgeWidth();this.isMarkerStart()&&(b=Math.max(b,this.getStartArrowWidth()));this.isMarkerEnd()&&(b=Math.max(b,this.getEndArrowWidth()));a.grow((b/2+this.strokewidth)*this.scale)};mxArrowConnector.prototype.paintEdgeShape=function(a,b){var c=this.strokewidth;this.outline&&(c=Math.max(1,mxUtils.getNumber(this.style,mxConstants.STYLE_STROKEWIDTH,this.strokewidth)));var d=this.getStartArrowWidth()+c,e=this.getEndArrowWidth()+c,f=this.outline?this.getEdgeWidth()+c:this.getEdgeWidth(),g=this.isOpenEnded(),k=this.isMarkerStart(),l=this.isMarkerEnd(),m=g?0:this.arrowSpacing+c/2,n=this.startSize+c;c=this.endSize+c;var p=this.isArrowRounded(),q=b[b.length-1],r=b[1].x-b[0].x,t=b[1].y--b[0].y,u=Math.sqrt(r*r+t*t);if(0!=u){var v=r/u,y=v,A=t/u,z=A;u=f*A;var C=-f*v,B=[];p?a.setLineJoin("round"):2<b.length&&a.setMiterLimit(1.42);a.begin();r=v;t=A;if(k&&!g)this.paintMarker(a,b[0].x,b[0].y,v,A,n,d,f,m,!0);else{var x=b[0].x+u/2+m*v,D=b[0].y+C/2+m*A,E=b[0].x-u/2+m*v,I=b[0].y-C/2+m*A;g?(a.moveTo(x,D),B.push(function(){a.lineTo(E,I)})):(a.moveTo(E,I),a.lineTo(x,D))}var F=D=x=0;for(u=0;u<b.length-2;u++)if(C=mxUtils.relativeCcw(b[u].x,b[u].y,b[u+1].x,b[u+1].y,b[u+2].x,b[u+2].y),x=b[u+2].x--b[u+1].x,D=b[u+2].y-b[u+1].y,F=Math.sqrt(x*x+D*D),0!=F){y=x/F;z=D/F;F=Math.max(Math.sqrt((v*y+A*z+1)/2),.04);x=v+y;D=A+z;var H=Math.sqrt(x*x+D*D);if(0!=H){x/=H;D/=H;H=Math.max(F,Math.min(this.strokewidth/200+.04,.35));F=0!=C&&p?Math.max(.1,H):Math.max(F,.06);var K=b[u+1].x+D*f/2/F,G=b[u+1].y-x*f/2/F;D=b[u+1].x-D*f/2/F;x=b[u+1].y+x*f/2/F;0!=C&&p?-1==C?(C=D+z*f,F=x-y*f,a.lineTo(D+A*f,x-v*f),a.quadTo(K,G,C,F),function(L,M){B.push(function(){a.lineTo(L,M)})}(D,x)):(a.lineTo(K,G),function(L,M){var O=K--A*f,P=G+v*f,Q=K-z*f,R=G+y*f;B.push(function(){a.quadTo(L,M,O,P)});B.push(function(){a.lineTo(Q,R)})}(D,x)):(a.lineTo(K,G),function(L,M){B.push(function(){a.lineTo(L,M)})}(D,x));v=y;A=z}}u=f*z;C=-f*y;if(l&&!g)this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!1);else{a.lineTo(q.x-m*y+u/2,q.y-m*z+C/2);var J=q.x-m*y-u/2,N=q.y-m*z-C/2;g?(a.moveTo(J,N),B.splice(0,0,function(){a.moveTo(J,N)})):a.lineTo(J,N)}for(u=B.length-1;0<=u;u--)B[u]();g?(a.end(),a.stroke()):(a.close(),a.fillAndStroke());a.setShadow(!1);a.setMiterLimit(4);+b[0].y,u=Math.sqrt(r*r+t*t);if(0!=u){var v=r/u,y=v,A=t/u,z=A;u=f*A;var x=-f*v,B=[];p?a.setLineJoin("round"):2<b.length&&a.setMiterLimit(1.42);a.begin();r=v;t=A;if(k&&!g)this.paintMarker(a,b[0].x,b[0].y,v,A,n,d,f,m,!0);else{var C=b[0].x+u/2+m*v,E=b[0].y+x/2+m*A,D=b[0].x-u/2+m*v,I=b[0].y-x/2+m*A;g?(a.moveTo(C,E),B.push(function(){a.lineTo(D,I)})):(a.moveTo(D,I),a.lineTo(C,E))}var F=E=C=0;for(u=0;u<b.length-2;u++)if(x=mxUtils.relativeCcw(b[u].x,b[u].y,b[u+1].x,b[u+1].y,b[u+2].x,b[u+2].y),C=b[u+2].x-+b[u+1].x,E=b[u+2].y-b[u+1].y,F=Math.sqrt(C*C+E*E),0!=F){y=C/F;z=E/F;F=Math.max(Math.sqrt((v*y+A*z+1)/2),.04);C=v+y;E=A+z;var H=Math.sqrt(C*C+E*E);if(0!=H){C/=H;E/=H;H=Math.max(F,Math.min(this.strokewidth/200+.04,.35));F=0!=x&&p?Math.max(.1,H):Math.max(F,.06);var K=b[u+1].x+E*f/2/F,G=b[u+1].y-C*f/2/F;E=b[u+1].x-E*f/2/F;C=b[u+1].y+C*f/2/F;0!=x&&p?-1==x?(x=E+z*f,F=C-y*f,a.lineTo(E+A*f,C-v*f),a.quadTo(K,G,x,F),function(L,M){B.push(function(){a.lineTo(L,M)})}(E,C)):(a.lineTo(K,G),function(L,M){var O=K-+A*f,P=G+v*f,Q=K-z*f,R=G+y*f;B.push(function(){a.quadTo(L,M,O,P)});B.push(function(){a.lineTo(Q,R)})}(E,C)):(a.lineTo(K,G),function(L,M){B.push(function(){a.lineTo(L,M)})}(E,C));v=y;A=z}}u=f*z;x=-f*y;if(l&&!g)this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!1);else{a.lineTo(q.x-m*y+u/2,q.y-m*z+x/2);var J=q.x-m*y-u/2,N=q.y-m*z-x/2;g?(a.moveTo(J,N),B.splice(0,0,function(){a.moveTo(J,N)})):a.lineTo(J,N)}for(u=B.length-1;0<=u;u--)B[u]();g?(a.end(),a.stroke()):(a.close(),a.fillAndStroke());a.setShadow(!1);a.setMiterLimit(4);p&&a.setLineJoin("flat");2<b.length&&(a.setMiterLimit(4),k&&!g&&(a.begin(),this.paintMarker(a,b[0].x,b[0].y,r,t,n,d,f,m,!0),a.stroke(),a.end()),l&&!g&&(a.begin(),this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!0),a.stroke(),a.end()))}};mxArrowConnector.prototype.paintMarker=function(a,b,c,d,e,f,g,k,l,m){g=k/g;var n=k*e/2;k=-k*d/2;var p=(l+f)*d;f=(l+f)*e;m?a.moveTo(b-n+p,c-k+f):a.lineTo(b-n+p,c-k+f);a.lineTo(b-n/g+p,c-k/g+f);a.lineTo(b+l*d,c+l*e);a.lineTo(b+n/g+p,c+k/g+f);a.lineTo(b+n+p,c+k+f)};mxArrowConnector.prototype.isArrowRounded=function(){return this.isRounded};mxArrowConnector.prototype.getStartArrowWidth=function(){return mxConstants.ARROW_WIDTH};mxArrowConnector.prototype.getEndArrowWidth=function(){return mxConstants.ARROW_WIDTH};mxArrowConnector.prototype.getEdgeWidth=function(){return mxConstants.ARROW_WIDTH/3};mxArrowConnector.prototype.isOpenEnded=function(){return!1};mxArrowConnector.prototype.isMarkerStart=function(){return mxUtils.getValue(this.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE};mxArrowConnector.prototype.isMarkerEnd=function(){return mxUtils.getValue(this.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE};-function mxText(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t,u,v,y,A,z,C){mxShape.call(this);this.value=a;this.bounds=b;this.color=null!=e?e:"black";this.align=null!=c?c:mxConstants.ALIGN_CENTER;this.valign=null!=d?d:mxConstants.ALIGN_MIDDLE;this.family=null!=f?f:mxConstants.DEFAULT_FONTFAMILY;this.size=null!=g?g:mxConstants.DEFAULT_FONTSIZE;this.fontStyle=null!=k?k:mxConstants.DEFAULT_FONTSTYLE;this.spacing=parseInt(l||2);this.spacingTop=this.spacing+parseInt(m||0);this.spacingRight=this.spacing+parseInt(n||0);-this.spacingBottom=this.spacing+parseInt(p||0);this.spacingLeft=this.spacing+parseInt(q||0);this.horizontal=null!=r?r:!0;this.background=t;this.border=u;this.wrap=null!=v?v:!1;this.clipped=null!=y?y:!1;this.overflow=null!=A?A:"visible";this.labelPadding=null!=z?z:0;this.textDirection=C;this.rotation=0;this.updateMargin()}mxUtils.extend(mxText,mxShape);mxText.prototype.baseSpacingTop=0;mxText.prototype.baseSpacingBottom=0;mxText.prototype.baseSpacingLeft=0;mxText.prototype.baseSpacingRight=0;+function mxText(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t,u,v,y,A,z,x){mxShape.call(this);this.value=a;this.bounds=b;this.color=null!=e?e:"black";this.align=null!=c?c:mxConstants.ALIGN_CENTER;this.valign=null!=d?d:mxConstants.ALIGN_MIDDLE;this.family=null!=f?f:mxConstants.DEFAULT_FONTFAMILY;this.size=null!=g?g:mxConstants.DEFAULT_FONTSIZE;this.fontStyle=null!=k?k:mxConstants.DEFAULT_FONTSTYLE;this.spacing=parseInt(l||2);this.spacingTop=this.spacing+parseInt(m||0);this.spacingRight=this.spacing+parseInt(n||0);+this.spacingBottom=this.spacing+parseInt(p||0);this.spacingLeft=this.spacing+parseInt(q||0);this.horizontal=null!=r?r:!0;this.background=t;this.border=u;this.wrap=null!=v?v:!1;this.clipped=null!=y?y:!1;this.overflow=null!=A?A:"visible";this.labelPadding=null!=z?z:0;this.textDirection=x;this.rotation=0;this.updateMargin()}mxUtils.extend(mxText,mxShape);mxText.prototype.baseSpacingTop=0;mxText.prototype.baseSpacingBottom=0;mxText.prototype.baseSpacingLeft=0;mxText.prototype.baseSpacingRight=0;mxText.prototype.replaceLinefeeds=!0;mxText.prototype.verticalTextRotation=-90;mxText.prototype.ignoreClippedStringSize=!0;mxText.prototype.ignoreStringSize=!1;mxText.prototype.textWidthPadding=8!=document.documentMode||mxClient.IS_EM?3:4;mxText.prototype.lastValue=null;mxText.prototype.cacheEnabled=!0;mxText.prototype.isHtmlAllowed=function(){return 8!=document.documentMode||mxClient.IS_EM};mxText.prototype.getSvgScreenOffset=function(){return 0};mxText.prototype.checkBounds=function(){return!isNaN(this.scale)&&isFinite(this.scale)&&0<this.scale&&null!=this.bounds&&!isNaN(this.bounds.x)&&!isNaN(this.bounds.y)&&!isNaN(this.bounds.width)&&!isNaN(this.bounds.height)};mxText.prototype.configurePointerEvents=function(a){};mxText.prototype.getActualTextDirection=function(){var a=this.textDirection;a==mxConstants.TEXT_DIRECTION_AUTO&&(a=this.getAutoDirection());a!=mxConstants.TEXT_DIRECTION_LTR&&a!=mxConstants.TEXT_DIRECTION_RTL&&a!=mxConstants.TEXT_DIRECTION_VERTICAL_LR&&a!=mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(a=null);return a};@@ -792,7 +792,7 @@ k}else for(c++,e=0;e<this.nestedBestRanks.length;e++)for(f=a.ranks[e],g=0;g<f.lemxMedianHybridCrossingReduction.prototype.calculateRankCrossing=function(a,b){var c=0,d=b.ranks[a],e=b.ranks[a-1],f=[];for(b=0;b<d.length;b++){var g=d[b],k=g.getGeneralPurposeVariable(a);g=g.getPreviousLayerConnectedCells(a);for(var l=[],m=0;m<g.length;m++){var n=g[m].getGeneralPurposeVariable(a-1);l.push(n)}l.sort(function(p,q){return p-q});f[k]=l}a=[];for(b=0;b<f.length;b++)a=a.concat(f[b]);for(d=1;d<e.length;)d<<=1;f=2*d-1;--d;e=[];for(b=0;b<f;++b)e[b]=0;for(b=0;b<a.length;b++)for(f=a[b]+d,++e[f];0<f;)f%2&&(c+=e[f+1]),f=f-1>>1,++e[f];return c};mxMedianHybridCrossingReduction.prototype.transpose=function(a,b){for(var c=!0,d=0;c&&10>d++;){var e=1==a%2&&1==d%2;c=!1;for(var f=0;f<b.ranks.length;f++){for(var g=b.ranks[f],k=[],l=0;l<g.length;l++){var m=g[l],n=m.getGeneralPurposeVariable(f);0>n&&(n=l);k[n]=m}var p=null,q=null,r=null,t=null,u=null;for(l=0;l<g.length-1;l++){if(0==l){var v=k[l];m=v.getNextLayerConnectedCells(f);n=v.getPreviousLayerConnectedCells(f);for(var y=[],A=[],z=0;z<m.length;z++)y[z]=m[z].getGeneralPurposeVariable(f+1);for(z=-0;z<n.length;z++)A[z]=n[z].getGeneralPurposeVariable(f-1)}else m=p,n=q,y=r,A=t,v=u;u=k[l+1];p=u.getNextLayerConnectedCells(f);q=u.getPreviousLayerConnectedCells(f);r=[];t=[];for(z=0;z<p.length;z++)r[z]=p[z].getGeneralPurposeVariable(f+1);for(z=0;z<q.length;z++)t[z]=q[z].getGeneralPurposeVariable(f-1);var C=0,B=0;for(z=0;z<y.length;z++)for(var x=0;x<r.length;x++)y[z]>r[x]&&C++,y[z]<r[x]&&B++;for(z=0;z<A.length;z++)for(x=0;x<t.length;x++)A[z]>t[x]&&C++,A[z]<t[x]&&B++;if(B<C||B==C&&e)p=v.getGeneralPurposeVariable(f),+0;z<n.length;z++)A[z]=n[z].getGeneralPurposeVariable(f-1)}else m=p,n=q,y=r,A=t,v=u;u=k[l+1];p=u.getNextLayerConnectedCells(f);q=u.getPreviousLayerConnectedCells(f);r=[];t=[];for(z=0;z<p.length;z++)r[z]=p[z].getGeneralPurposeVariable(f+1);for(z=0;z<q.length;z++)t[z]=q[z].getGeneralPurposeVariable(f-1);var x=0,B=0;for(z=0;z<y.length;z++)for(var C=0;C<r.length;C++)y[z]>r[C]&&x++,y[z]<r[C]&&B++;for(z=0;z<A.length;z++)for(C=0;C<t.length;C++)A[z]>t[C]&&x++,A[z]<t[C]&&B++;if(B<x||B==x&&e)p=v.getGeneralPurposeVariable(f),v.setGeneralPurposeVariable(f,u.getGeneralPurposeVariable(f)),u.setGeneralPurposeVariable(f,p),p=m,q=n,r=y,t=A,u=v,e||(c=!0)}}}};mxMedianHybridCrossingReduction.prototype.weightedMedian=function(a,b){if(a=0==a%2)for(var c=b.maxRank-1;0<=c;c--)this.medianRank(c,a);else for(c=1;c<b.maxRank;c++)this.medianRank(c,a)};mxMedianHybridCrossingReduction.prototype.medianRank=function(a,b){for(var c=this.nestedBestRanks[a].length,d=[],e=[],f=0;f<c;f++){var g=this.nestedBestRanks[a][f],k=new MedianCellSorter;k.cell=g;var l=b?g.getNextLayerConnectedCells(a):g.getPreviousLayerConnectedCells(a),m=b?a+1:a-1;null!=l&&0!=l.length?(k.medianValue=this.medianValue(l,m),d.push(k)):e[g.getGeneralPurposeVariable(a)]=!0}d.sort(MedianCellSorter.prototype.compare);for(f=0;f<c;f++)null==e[f]&&(g=d.shift().cell,g.setGeneralPurposeVariable(a,f))};mxMedianHybridCrossingReduction.prototype.medianValue=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var f=a[e];c[d++]=f.getGeneralPurposeVariable(b)}c.sort(function(g,k){return g-k});if(1==d%2)return c[Math.floor(d/2)];if(2==d)return(c[0]+c[1])/2;a=d/2;b=c[a-1]-c[0];d=c[d-1]-c[a];return(c[a-1]*d+c[a]*b)/(b+d)};function MedianCellSorter(){}MedianCellSorter.prototype.medianValue=0;MedianCellSorter.prototype.cell=!1;@@ -828,7 +828,7 @@ if(r.isVertex())for(var t=0==k?e.connectsAsSource:e.connectsAsTarget,u=0;u<t.lenthis.prefVertEdgeOff:m>f/2&&(p-=this.prefVertEdgeOff),t=0;t<q;t++)r[4*t+2*k]=n,n+=l,r[4*t+2*k+1]=p}f=e.getNextLayerConnectedCells(b);g=b+1}}};mxCoordinateAssignment.prototype.setEdgePosition=function(a){var b=0;if(101207!=a.temp[0]){var c=a.maxRank,d=a.minRank;c==d&&(c=a.source.maxRank,d=a.target.minRank);for(var e=0,f=this.jettyPositions[a.ids[0]],g=a.isReversed?a.target.cell:a.source.cell,k=this.layout.graph,l=this.orientation==mxConstants.DIRECTION_EAST||this.orientation==mxConstants.DIRECTION_SOUTH,m=0;m<a.edges.length;m++){var n=a.edges[m],p=this.layout.getVisibleTerminal(n,!0),q=[],r=a.isReversed;p!=g&&(r=!r);if(null!=f){var t=r?2:0,u=r?l?this.rankBottomY[d]:this.rankTopY[d]:l?this.rankTopY[c]:this.rankBottomY[c],v=f[4*e+1+t];r!=l&&(v=-v);u+=v;t=f[4*e+t];var y=k.model.getTerminal(n,!0);this.layout.isPort(y)&&k.model.getParent(y)==p&&(t=k.view.getState(y),t=null!=t?t.x:p.geometry.x+a.source.width*y.geometry.x);this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(t,u)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(t,u+v))):(q.push(new mxPoint(u,-t)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u+v,t)))}t=a.x.length-1;u=v=-1;p=a.maxRank-1;for(r&&(t=0,v=a.x.length,u=1,p=a.minRank+1);a.maxRank!=a.minRank&&t!=v;t+=u){y=a.x[t]+b;var A=(this.rankTopY[p]+this.rankBottomY[p+1])/2,z=(this.rankTopY[p-1]+this.rankBottomY[p])/2;if(r){var C=A;A=z;z=C}this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(y,A)),q.push(new mxPoint(y,z))):(q.push(new mxPoint(A,y)),q.push(new mxPoint(z,+t)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u+v,t)))}t=a.x.length-1;u=v=-1;p=a.maxRank-1;for(r&&(t=0,v=a.x.length,u=1,p=a.minRank+1);a.maxRank!=a.minRank&&t!=v;t+=u){y=a.x[t]+b;var A=(this.rankTopY[p]+this.rankBottomY[p+1])/2,z=(this.rankTopY[p-1]+this.rankBottomY[p])/2;if(r){var x=A;A=z;z=x}this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(y,A)),q.push(new mxPoint(y,z))):(q.push(new mxPoint(A,y)),q.push(new mxPoint(z,y)));this.limitX=Math.max(this.limitX,y);p+=u}null!=f&&(t=r?2:0,u=r?l?this.rankTopY[c]:this.rankBottomY[c]:l?this.rankBottomY[d]:this.rankTopY[d],v=f[4*e+3-t],r!=l&&(v=-v),u-=v,t=f[4*e+2-t],r=k.model.getTerminal(n,!1),p=this.layout.getVisibleTerminal(n,!1),this.layout.isPort(r)&&k.model.getParent(r)==p&&(t=k.view.getState(r),t=null!=t?t.x:p.geometry.x+a.target.width*r.geometry.x),this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(t,u-v)),q.push(new mxPoint(t,u))):(this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u-v,t)),q.push(new mxPoint(u,t))));a.isReversed&&this.processReversedEdge(a,n);this.layout.setEdgePoints(n,q);this.layout.resetEdgeLabels&&null!=n.geometry&&(geometry=n.geometry.clone(),geometry.relative=!0,geometry.x=0,geometry.y=0,k.model.setGeometry(n,geometry));b=0==b?this.parallelEdgeSpacing:0<b?-b:-b+this.parallelEdgeSpacing;e++}a.temp[0]=101207}};mxCoordinateAssignment.prototype.setVertexLocation=function(a){var b=a.cell,c=a.x[0]-a.width/2,d=a.y[0]-a.height/2;this.rankTopY[a.minRank]=Math.min(this.rankTopY[a.minRank],d);this.rankBottomY[a.minRank]=Math.max(this.rankBottomY[a.minRank],d+a.height);this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?this.layout.setVertexLocation(b,c,d):this.layout.setVertexLocation(b,d,c);this.limitX=Math.max(this.limitX,c+a.width)};@@ -955,18 +955,18 @@ mxPrintPreview.prototype.getPageClassCss=function(a,b){var c=this.pageMargin,d=tmxUtils.htmlEntities((c/d).toFixed(2))+"in;\n}\n");return b};mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1;this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(G,J){J.init(G.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(G,J,N,L){J.dialect=G.view.graph.dialect;J.init(G.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&(b=!0,this.wnd=window.open());var p=this.wnd.document;if(b){var q=this.getDoctype();null!=q&&0<q.length&&p.writeln(q);"CSS1Compat"===document.compatMode&&p.writeln("<!DOCTYPE html>");p.writeln("<html>");p.writeln("<head>");this.writeHead(p,a);p.writeln("</head>");p.writeln("<body>")}var r=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),t=this.graph.getView().getScale(),u=t/this.scale,v=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=v.x*this.scale,-this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),C=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*C;var B=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),B=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[B]&&-(this.pageFormatClass[B]=!0,this.pendingCss+=this.getPageClassCss(B,f)));var x=mxUtils.bind(this,function(G){null!=this.borderColor&&(G.style.borderColor=this.borderColor,G.style.borderStyle="solid",G.style.borderWidth="1px");G.style.background=this.backgroundColor;null!=B?G.classList.add(B):(G.style.width=f.width+"px",G.style.height=f.height+"px");p.body.appendChild(G)}),D=this.getCoverPages(m,n);if(null!=D)for(var E=0;E<D.length;E++)x(D[E],!0);var I=this.getAppendices(m,n);for(E=0;E<C;E++){var F=-E*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-E;for(a=0;a<z;a++){if(null==this.wnd)return null;var H=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=E*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var K=new mxRectangle(H,F,y,A);this.addGraphFragment(-H,-F,this.scale,g,c,K);null!=e&&0==E&&0==a&&c.setAttribute("id",e);x(c,!0)}}if(null!=I)for(E=0;E<I.length;E++)x(I[E],E<I.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(G){null!=+this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),x=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*x;var B=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),B=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[B]&&+(this.pageFormatClass[B]=!0,this.pendingCss+=this.getPageClassCss(B,f)));var C=mxUtils.bind(this,function(G){null!=this.borderColor&&(G.style.borderColor=this.borderColor,G.style.borderStyle="solid",G.style.borderWidth="1px");G.style.background=this.backgroundColor;null!=B?G.classList.add(B):(G.style.width=f.width+"px",G.style.height=f.height+"px");p.body.appendChild(G)}),E=this.getCoverPages(m,n);if(null!=E)for(var D=0;D<E.length;D++)C(E[D],!0);var I=this.getAppendices(m,n);for(D=0;D<x;D++){var F=+D*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-D;for(a=0;a<z;a++){if(null==this.wnd)return null;var H=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=D*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var K=new mxRectangle(H,F,y,A);this.addGraphFragment(-H,-F,this.scale,g,c,K);null!=e&&0==D&&0==a&&c.setAttribute("id",e);C(c,!0)}}if(null!=I)for(D=0;D<I.length;D++)C(I[D],D<I.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(G){null!=c&&null!=c.parentNode&&c.parentNode.removeChild(c),null!=window.console&&console.error(G)}finally{this.graph.cellRenderer.initializeOverlay=k}return this.wnd};mxPrintPreview.prototype.addPendingCss=function(a){if(null!=this.pendingCss){var b=a.createElement("style");b.setAttribute("type","text/css");b.appendChild(a.createTextNode(this.pendingCss));a.getElementsByTagName("head")[0].appendChild(b);this.pendingCss=null}};mxPrintPreview.prototype.closeDocument=function(){try{if(null!=this.wnd&&null!=this.wnd.document){var a=this.wnd.document;this.writePostfix(a);a.writeln("</body>");a.writeln("</html>");a.close();this.addPendingCss(a);mxEvent.release(a.body)}}catch(b){}};mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");mxClient.link("stylesheet",mxClient.basePath+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);var c=this.pageFormat;this.addPageCss&&null!=c&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),a.writeln(" margin: "+mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(mxUtils.htmlEntities(b,!1,!1,!1));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};mxPrintPreview.prototype.addGraphFragment=function(a,b,c,d,e,f){var g=this.graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroundPane(),m=g.getDrawPane(),n=g.getOverlayPane(),p=c;if(this.graph.dialect==mxConstants.DIALECT_SVG){if(g.createSvg(),this.useCssTransforms()){var q=g.getDrawPane().parentNode;q.setAttribute("transformOrigin","0 0");q.setAttribute("transform","scale("+c+","+c+")translate("+a+","+b+")");c=1;b=a=0}}else g.createHtml();q=g.isEventsEnabled();-g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var C=this.getBackgroundImage();null!=C&&(z=new mxRectangle(Math.round(a*A+C.x),Math.round(b*A+C.y),C.width-1,C.height-1),z=new mxImageShape(z,C.src),z.dialect=this.graph.dialect)}if(this.clipping){var B=-new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),x=this;this.graph.cellRenderer.redraw=function(E,I,F){if(null!=E){var H=y.get(E.cell);if(null!=H&&(H=g.getBoundingBox(H,!1),null!=H&&0<H.width&&0<H.height&&!mxUtils.intersects(B,H))||!x.isCellVisible(E.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(B,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),-this.drawBackgroundImage(z));a=null;try{var D=[this.getRoot()];a=new mxTemporaryCellStates(g,c,D,null,mxUtils.bind(this,function(E){return this.getLinkForCellState(E)}))}finally{for(c=e.firstChild;null!=c;)e=c.nextSibling,"svg"==c.nodeName.toLowerCase()?(c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.display="",c.style.maxWidth="100%",c.style.maxHeight="100%",c.style.overflow=mxClient.IS_SF?"hidden":"clip",c.style.overflowClipMargin=this.overflowClipMargin,c.setAttribute("viewBox",+g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var x=this.getBackgroundImage();null!=x&&(z=new mxRectangle(Math.round(a*A+x.x),Math.round(b*A+x.y),x.width-1,x.height-1),z=new mxImageShape(z,x.src),z.dialect=this.graph.dialect)}if(this.clipping){var B=+new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),C=this;this.graph.cellRenderer.redraw=function(D,I,F){if(null!=D){var H=y.get(D.cell);if(null!=H&&(H=g.getBoundingBox(H,!1),null!=H&&0<H.width&&0<H.height&&!mxUtils.intersects(B,H))||!C.isCellVisible(D.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(B,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),+this.drawBackgroundImage(z));a=null;try{var E=[this.getRoot()];a=new mxTemporaryCellStates(g,c,E,null,mxUtils.bind(this,function(D){return this.getLinkForCellState(D)}))}finally{for(c=e.firstChild;null!=c;)e=c.nextSibling,"svg"==c.nodeName.toLowerCase()?(c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.display="",c.style.maxWidth="100%",c.style.maxHeight="100%",c.style.overflow=mxClient.IS_SF?"hidden":"clip",c.style.overflowClipMargin=this.overflowClipMargin,c.setAttribute("viewBox","0 0 "+(mxClient.IS_SF?f.width+1+" "+(f.height+1):f.width-1+" "+(f.height-1))),this.addGrid(c,f),mxClient.IS_SF&&(f.width>f.height?c.style.height="100%":c.style.width="100%")):this.isTextLabel(c)||c.parentNode.removeChild(c),c=e;g.overlayPane.parentNode.removeChild(g.overlayPane);this.graph.setEnabled(r);this.graph.container=d;this.graph.cellRenderer.redraw=v;this.graph.selectionCellsHandler.updateHandler=u;g.canvas=k;g.backgroundPane=l;g.drawPane=m;g.overlayPane=n;g.translate=t;a.destroy();g.setEventsEnabled(q)}};mxPrintPreview.prototype.addGrid=function(a,b){0<this.gridSize&&0<this.gridSteps&&null!=this.gridColor&&(b=this.createSvgGrid(a,b),a=mxUtils.getSvgDefs(a),null!=a.nextSibling?a.parentNode.insertBefore(b,a.nextSibling):a.parentNode.appendChild(b))};mxPrintPreview.prototype.createSvgGrid=function(a,b){var c=this.gridSize;a=a.ownerDocument;var d=null!=a.createElementNS?a.createElementNS(mxConstants.NS_SVG,"g"):a.createElement("g"),e=mxUtils.mod(Math.ceil(Math.round(b.x)/c),this.gridSteps),f=mxUtils.mod(c-mxUtils.mod(Math.round(b.x),c),c),g=mxUtils.mod(Math.ceil(Math.round(b.y)/c),this.gridSteps),k=mxUtils.mod(c-mxUtils.mod(Math.round(b.y),c),c);f*=this.scale;k*=this.scale;c*=this.scale;for(var l=Math.ceil(b.height/c),m=0;m<l;m++){var n=null!=@@ -1091,31 +1091,31 @@ d[0]:null;var g=a.absolutePoints,k=g[0];g=g[g.length-1];null!=d&&(d=f.transformCk)),mxUtils.contains(c,a,f)||mxUtils.contains(b,a,f)||e.push(new mxPoint(a,f)),1==e.length&&(null!=d?mxUtils.contains(c,a,d.y)||mxUtils.contains(b,a,d.y)||e.push(new mxPoint(a,d.y)):(f=Math.max(b.y,c.y),e.push(new mxPoint(a,f+(Math.min(b.y+b.height,c.y+c.height)-f)/2)))))},TopToBottom:function(a,b,c,d,e){var f=a.view;d=null!=d&&0<d.length?d[0]:null;var g=a.absolutePoints,k=g[0];g=g[g.length-1];null!=d&&(d=f.transformControlPoint(a,d));null!=k&&(b=new mxCellState,b.x=k.x,b.y=k.y);null!=g&&(c=new mxCellState,c.x=g.x,c.y=g.y);null!=b&&null!=c&&(k=Math.max(b.y,c.y),g=Math.min(b.y+b.height,c.y+c.height),a=f.getRoutingCenterX(b),null!=d&&d.x>=b.x&&d.x<=b.x+b.width&&(a=d.x),k=null!=d?d.y:Math.round(g+(k-g)/2),mxUtils.contains(c,a,k)||mxUtils.contains(b,a,k)||e.push(new mxPoint(a,k)),a=null!=d&&d.x>=c.x&&d.x<=c.x+c.width?d.x:f.getRoutingCenterX(c),mxUtils.contains(c,a,k)||mxUtils.contains(b,a,k)||e.push(new mxPoint(a,k)),1==e.length&&(null!=d&&1==e.length?mxUtils.contains(c,d.x,k)||mxUtils.contains(b,d.x,k)||e.push(new mxPoint(d.x,k)):(f=Math.max(b.x,c.x),e.push(new mxPoint(f+(Math.min(b.x+b.width,c.x+c.width)-f)/2,k)))))},SegmentConnector:function(a,b,c,d,e){var f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale);b=mxEdgeStyle.scaleCellState(b,a.view.scale);var g=mxEdgeStyle.scaleCellState(c,a.view.scale);c=[];var k=0<e.length?e[0]:null,l=!0,m=f[0];null==m&&null!=b?m=new mxPoint(a.view.getRoutingCenterX(b),a.view.getRoutingCenterY(b)):null!=m&&(m=m.clone());var n=f.length-1;if(null!=d&&0<d.length){for(var p=-[],q=0;q<d.length;q++){var r=a.view.transformControlPoint(a,d[q],!0);null!=r&&p.push(r)}if(0==p.length)return;null!=m&&null!=p[0]&&(1>Math.abs(p[0].x-m.x)&&(p[0].x=m.x),1>Math.abs(p[0].y-m.y)&&(p[0].y=m.y));r=f[n];null!=r&&null!=p[p.length-1]&&(1>Math.abs(p[p.length-1].x-r.x)&&(p[p.length-1].x=r.x),1>Math.abs(p[p.length-1].y-r.y)&&(p[p.length-1].y=r.y));d=p[0];var t=b,u=f[0],v=d;null!=u&&(t=null);for(q=0;2>q;q++){var y=null!=u&&u.x==v.x,A=null!=u&&u.y==v.y,z=null!=t&&v.y>=t.y&&v.y<=t.y+t.height,C=-null!=t&&v.x>=t.x&&v.x<=t.x+t.width;t=A||null==u&&z;v=y||null==u&&C;if(0!=q||!(t&&v||y&&A)){if(null!=u&&!A&&!y&&(z||C)){l=z?!1:!0;break}if(v||t){l=t;1==q&&(l=0==p.length%2?t:v);break}}t=g;u=f[n];null!=u&&(t=null);v=p[p.length-1];y&&A&&(p=p.slice(1))}l&&(null!=f[0]&&f[0].y!=d.y||null==f[0]&&null!=b&&(d.y<b.y||d.y>b.y+b.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[0]&&f[0].x!=d.x||null==f[0]&&null!=b&&(d.x<b.x||d.x>b.x+b.width))&&c.push(new mxPoint(d.x,m.y));l?m.y=d.y:m.x=d.x;for(q=0;q<p.length;q++)l=+[],q=0;q<d.length;q++){var r=a.view.transformControlPoint(a,d[q],!0);null!=r&&p.push(r)}if(0==p.length)return;null!=m&&null!=p[0]&&(1>Math.abs(p[0].x-m.x)&&(p[0].x=m.x),1>Math.abs(p[0].y-m.y)&&(p[0].y=m.y));r=f[n];null!=r&&null!=p[p.length-1]&&(1>Math.abs(p[p.length-1].x-r.x)&&(p[p.length-1].x=r.x),1>Math.abs(p[p.length-1].y-r.y)&&(p[p.length-1].y=r.y));d=p[0];var t=b,u=f[0],v=d;null!=u&&(t=null);for(q=0;2>q;q++){var y=null!=u&&u.x==v.x,A=null!=u&&u.y==v.y,z=null!=t&&v.y>=t.y&&v.y<=t.y+t.height,x=+null!=t&&v.x>=t.x&&v.x<=t.x+t.width;t=A||null==u&&z;v=y||null==u&&x;if(0!=q||!(t&&v||y&&A)){if(null!=u&&!A&&!y&&(z||x)){l=z?!1:!0;break}if(v||t){l=t;1==q&&(l=0==p.length%2?t:v);break}}t=g;u=f[n];null!=u&&(t=null);v=p[p.length-1];y&&A&&(p=p.slice(1))}l&&(null!=f[0]&&f[0].y!=d.y||null==f[0]&&null!=b&&(d.y<b.y||d.y>b.y+b.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[0]&&f[0].x!=d.x||null==f[0]&&null!=b&&(d.x<b.x||d.x>b.x+b.width))&&c.push(new mxPoint(d.x,m.y));l?m.y=d.y:m.x=d.x;for(q=0;q<p.length;q++)l=!l,d=p[q],l?m.y=d.y:m.x=d.x,c.push(m.clone())}else d=m,l=!0;m=f[n];null==m&&null!=g&&(m=new mxPoint(a.view.getRoutingCenterX(g),a.view.getRoutingCenterY(g)));null!=m&&null!=d&&(l&&(null!=f[n]&&f[n].y!=d.y||null==f[n]&&null!=g&&(d.y<g.y||d.y>g.y+g.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[n]&&f[n].x!=d.x||null==f[n]&&null!=g&&(d.x<g.x||d.x>g.x+g.width))&&c.push(new mxPoint(d.x,m.y)));if(null==f[0]&&null!=b)for(;0<c.length&&null!=c[0]&&mxUtils.contains(b,c[0].x,c[0].y);)c.splice(0,1);if(null==f[n]&&null!=g)for(;0<c.length&&null!=c[c.length-1]&&mxUtils.contains(g,c[c.length-1].x,c[c.length-1].y);)c.splice(c.length-1,1);for(q=0;q<c.length;q++)if(f=c[q],f.x=Math.round(f.x*a.view.scale*10)/10,f.y=Math.round(f.y*a.view.scale*10)/10,null==k||1<=Math.abs(k.x-f.x)||Math.abs(k.y-f.y)>=Math.max(1,a.view.scale))e.push(f),k=f;null!=r&&null!=e[e.length-1]&&1>=Math.abs(r.x-e[e.length-1].x)&&1>=Math.abs(r.y-e[e.length-1].y)&&(e.splice(e.length-1,1),null!=e[e.length-1]&&(1>Math.abs(e[e.length-1].x-r.x)&&(e[e.length-1].x=r.x),1>Math.abs(e[e.length-1].y-r.y)&&(e[e.length-1].y=r.y)))},orthBuffer:10,orthPointsFallback:!0,dirVectors:[[-1,0],[0,-1],[1,0],[0,1],[-1,0],[0,-1],[1,0]],wayPoints1:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],routePatterns:[[[513,2308,2081,2562],[513,1090,514,2184,2114,2561],[513,1090,514,2564,2184,2562],[513,2308,2561,1090,514,2568,2308]],[[514,1057,513,2308,2081,2562],[514,2184,2114,2561],[514,2184,2562,1057,513,2564,2184],[514,1057,513,2568,2308,2561]],[[1090,514,1057,513,2308,2081,2562],[2114,2561],[1090,2562,1057,513,2564,2184],[1090,514,1057,513,2308,2561,2568]],[[2081,2562],[1057,513,1090,514,2184,2114,2561],[1057,513,1090,514,2184,2562,2564],[1057,2561,1090,514,2568,2308]]],inlineRoutePatterns:[[null,[2114,2568],null,null],[null,[514,2081,2114,2568],null,null],[null,[2114,2561],null,null],[[2081,2562],[1057,2114,2568],[2184,2562],null]],vertexSeperations:[],limits:[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]],LEFT_MASK:32,TOP_MASK:64,RIGHT_MASK:128,BOTTOM_MASK:256,LEFT:1,TOP:2,RIGHT:4,BOTTOM:8,SIDE_MASK:480,CENTER_MASK:512,SOURCE_MASK:1024,TARGET_MASK:2048,VERTEX_MASK:3072,getJettySize:function(a,b){var c=mxUtils.getValue(a.style,b?mxConstants.STYLE_SOURCE_JETTY_SIZE:mxConstants.STYLE_TARGET_JETTY_SIZE,mxUtils.getValue(a.style,mxConstants.STYLE_JETTY_SIZE,mxEdgeStyle.orthBuffer));"auto"==c&&(mxUtils.getValue(a.style,b?mxConstants.STYLE_STARTARROW:mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE?(a=mxUtils.getNumber(a.style,b?mxConstants.STYLE_STARTSIZE:mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE),c=Math.max(2,Math.ceil((a+mxEdgeStyle.orthBuffer)/mxEdgeStyle.orthBuffer))*mxEdgeStyle.orthBuffer):c=2*mxEdgeStyle.orthBuffer);return c},scalePointArray:function(a,b){var c=[];if(null!=a)for(var d=0;d<a.length;d++)if(null!=a[d]){var e=new mxPoint(Math.round(a[d].x/b*10)/10,Math.round(a[d].y/b*10)/10);c[d]=e}else c[d]=null;else c=null;return c},scaleCellState:function(a,b){if(null!=a){var c=a.clone();c.setRect(Math.round(a.x/b*10)/10,Math.round(a.y/-b*10)/10,Math.round(a.width/b*10)/10,Math.round(a.height/b*10)/10)}else c=null;return c},OrthConnector:function(a,b,c,d,e){var f=a.view.graph,g=null==l?!1:f.getModel().isEdge(l.cell),k=null==m?!1:f.getModel().isEdge(m.cell);f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale);var l=mxEdgeStyle.scaleCellState(b,a.view.scale),m=mxEdgeStyle.scaleCellState(c,a.view.scale),n=f[0],p=f[f.length-1],q=null!=l?l.x:n.x,r=null!=l?l.y:n.y,t=null!=l?l.width:1,u=null!=l?l.height:1,v=null!=m?m.x:p.x,y=null!=-m?m.y:p.y,A=null!=m?m.width:1,z=null!=m?m.height:1;f=mxEdgeStyle.getJettySize(a,!0);var C=mxEdgeStyle.getJettySize(a,!1);null!=l&&m==l&&(f=C=Math.max(f,C));var B=C+f,x=!1;if(null!=n&&null!=p){x=p.x-n.x;var D=p.y-n.y;x=x*x+D*D<B*B}if(x||mxEdgeStyle.orthPointsFallback&&null!=d&&0<d.length||g||k)mxEdgeStyle.SegmentConnector(a,b,c,d,e);else if(c=[mxConstants.DIRECTION_MASK_ALL,mxConstants.DIRECTION_MASK_ALL],null!=l&&(c[0]=mxUtils.getPortConstraints(l,a,!0,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(l.style,-mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(q,r,t,u),b),q=b.x,r=b.y,t=b.width,u=b.height)),null!=m&&(c[1]=mxUtils.getPortConstraints(m,a,!1,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(m.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(v,y,A,z),b),v=b.x,y=b.y,A=b.width,z=b.height)),0!=t&&0!=u&&0!=A&&0!=z){b=[0,0];q=[[q,r,t,u],[v,y,A,z]];C=[f,C];for(x=0;2>x;x++)mxEdgeStyle.limits[x][1]=q[x][0]-C[x],mxEdgeStyle.limits[x][2]=-q[x][1]-C[x],mxEdgeStyle.limits[x][4]=q[x][0]+q[x][2]+C[x],mxEdgeStyle.limits[x][8]=q[x][1]+q[x][3]+C[x];C=q[0][1]+q[0][3]/2;r=q[1][1]+q[1][3]/2;x=q[0][0]+q[0][2]/2-(q[1][0]+q[1][2]/2);D=C-r;C=0;0>x?C=0>D?2:1:0>=D&&(C=3,0==x&&(C=2));r=null;null!=l&&(r=n);l=[[.5,.5],[.5,.5]];for(x=0;2>x;x++)null!=r&&(l[x][0]=(r.x-q[x][0])/q[x][2],1>=Math.abs(r.x-q[x][0])?b[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(r.x-q[x][0]-q[x][2])&&(b[x]=mxConstants.DIRECTION_MASK_EAST),l[x][1]=(r.y-q[x][1])/q[x][3],1>=Math.abs(r.y--q[x][1])?b[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(r.y-q[x][1]-q[x][3])&&(b[x]=mxConstants.DIRECTION_MASK_SOUTH)),r=null,null!=m&&(r=p);x=q[0][1]-(q[1][1]+q[1][3]);p=q[0][0]-(q[1][0]+q[1][2]);r=q[1][1]-(q[0][1]+q[0][3]);t=q[1][0]-(q[0][0]+q[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(p-B,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-B,0);mxEdgeStyle.vertexSeperations[4]=Math.max(r-B,0);mxEdgeStyle.vertexSeperations[3]=Math.max(t-B,0);B=[];m=[];n=[];m[0]=p>=t?mxConstants.DIRECTION_MASK_WEST:-mxConstants.DIRECTION_MASK_EAST;n[0]=x>=r?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;m[1]=mxUtils.reversePortConstraints(m[0]);n[1]=mxUtils.reversePortConstraints(n[0]);p=p>=t?p:t;r=x>=r?x:r;t=[[0,0],[0,0]];u=!1;for(x=0;2>x;x++)0==b[x]&&(0==(m[x]&c[x])&&(m[x]=mxUtils.reversePortConstraints(m[x])),0==(n[x]&c[x])&&(n[x]=mxUtils.reversePortConstraints(n[x])),t[x][0]=n[x],t[x][1]=m[x]);0<r&&0<p&&(0<(m[0]&c[0])&&0<(n[1]&c[1])?(t[0][0]=m[0],t[0][1]=n[0],t[1][0]=n[1],t[1][1]=m[1],-u=!0):0<(n[0]&c[0])&&0<(m[1]&c[1])&&(t[0][0]=n[0],t[0][1]=m[0],t[1][0]=m[1],t[1][1]=n[1],u=!0));0<r&&!u&&(t[0][0]=n[0],t[0][1]=m[0],t[1][0]=n[1],t[1][1]=m[1],u=!0);0<p&&!u&&(t[0][0]=m[0],t[0][1]=n[0],t[1][0]=m[1],t[1][1]=n[1]);for(x=0;2>x;x++)0==b[x]&&(0==(t[x][0]&c[x])&&(t[x][0]=t[x][1]),B[x]=t[x][0]&c[x],B[x]|=(t[x][1]&c[x])<<8,B[x]|=(t[1-x][x]&c[x])<<16,B[x]|=(t[1-x][1-x]&c[x])<<24,0==(B[x]&15)&&(B[x]<<=8),0==(B[x]&3840)&&(B[x]=B[x]&15|B[x]>>8),0==(B[x]&983040)&&(B[x]=B[x]&65535|(B[x]&251658240)>>-8),b[x]=B[x]&15,c[x]==mxConstants.DIRECTION_MASK_WEST||c[x]==mxConstants.DIRECTION_MASK_NORTH||c[x]==mxConstants.DIRECTION_MASK_EAST||c[x]==mxConstants.DIRECTION_MASK_SOUTH)&&(b[x]=c[x]);c=b[0]==mxConstants.DIRECTION_MASK_EAST?3:b[0];B=b[1]==mxConstants.DIRECTION_MASK_EAST?3:b[1];c-=C;B-=C;1>c&&(c+=4);1>B&&(B+=4);c=mxEdgeStyle.routePatterns[c-1][B-1];mxEdgeStyle.wayPoints1[0][0]=q[0][0];mxEdgeStyle.wayPoints1[0][1]=q[0][1];switch(b[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-=-f;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*q[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*q[0][2];mxEdgeStyle.wayPoints1[0][1]+=q[0][3]+f;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=q[0][2]+f;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*q[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*q[0][2],mxEdgeStyle.wayPoints1[0][1]-=f}f=0;m=B=0<(b[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?-0:1;for(x=0;x<c.length;x++)n=c[x]&15,u=n==mxConstants.DIRECTION_MASK_EAST?3:n,u+=C,4<u&&(u-=4),p=mxEdgeStyle.dirVectors[u-1],n=0<u%2?0:1,n!=B&&(f++,mxEdgeStyle.wayPoints1[f][0]=mxEdgeStyle.wayPoints1[f-1][0],mxEdgeStyle.wayPoints1[f][1]=mxEdgeStyle.wayPoints1[f-1][1]),v=0<(c[x]&mxEdgeStyle.TARGET_MASK),y=0<(c[x]&mxEdgeStyle.SOURCE_MASK),r=(c[x]&mxEdgeStyle.SIDE_MASK)>>5,r<<=C,15<r&&(r>>=4),t=0<(c[x]&mxEdgeStyle.CENTER_MASK),(y||v)&&9>r?(u=y?0:1,r=t&&0==n?q[u][0]+l[u][0]*q[u][2]:t?q[u][1]+l[u][1]*-q[u][3]:mxEdgeStyle.limits[u][r],0==n?(r=(r-mxEdgeStyle.wayPoints1[f][0])*p[0],0<r&&(mxEdgeStyle.wayPoints1[f][0]+=p[0]*r)):(r=(r-mxEdgeStyle.wayPoints1[f][1])*p[1],0<r&&(mxEdgeStyle.wayPoints1[f][1]+=p[1]*r))):t&&(mxEdgeStyle.wayPoints1[f][0]+=p[0]*Math.abs(mxEdgeStyle.vertexSeperations[u]/2),mxEdgeStyle.wayPoints1[f][1]+=p[1]*Math.abs(mxEdgeStyle.vertexSeperations[u]/2)),0<f&&mxEdgeStyle.wayPoints1[f][n]==mxEdgeStyle.wayPoints1[f-1][n]?f--:B=n;for(x=0;x<=f&&(x!=f||((0<(b[1]&(mxConstants.DIRECTION_MASK_EAST|-mxConstants.DIRECTION_MASK_WEST))?0:1)==m?0:1)==(f+1)%2);x++)e.push(new mxPoint(Math.round(mxEdgeStyle.wayPoints1[x][0]*a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[x][1]*a.view.scale*10)/10));for(a=1;a<e.length;)null==e[a-1]||null==e[a]||e[a-1].x!=e[a].x||e[a-1].y!=e[a].y?a++:e.splice(a,1)}},getRoutePattern:function(a,b,c,d){var e=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];a=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];e-=b;a-=b;1>e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];0!=c&&-0!=d||null==inlineRoutePatterns[e-1][a-1]||(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);-mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);-mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource;-mxGraphView.prototype.constructor=mxGraphView;mxGraphView.prototype.EMPTY_POINT=new mxPoint;mxGraphView.prototype.doneResource="none"!=mxClient.language?"done":"";mxGraphView.prototype.updatingDocumentResource="none"!=mxClient.language?"updatingDocument":"";mxGraphView.prototype.allowEval=!1;mxGraphView.prototype.captureDocumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.prototype.currentRoot=null;mxGraphView.prototype.graphBounds=null;-mxGraphView.prototype.scale=1;mxGraphView.prototype.translate=null;mxGraphView.prototype.states=null;mxGraphView.prototype.updateStyle=!1;mxGraphView.prototype.lastNode=null;mxGraphView.prototype.lastHtmlNode=null;mxGraphView.prototype.lastForegroundNode=null;mxGraphView.prototype.lastForegroundHtmlNode=null;mxGraphView.prototype.getGraphBounds=function(){return this.graphBounds};mxGraphView.prototype.setGraphBounds=function(a){this.graphBounds=a};+b*10)/10,Math.round(a.width/b*10)/10,Math.round(a.height/b*10)/10)}else c=null;return c},OrthConnector:function(a,b,c,d,e){var f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale),g=mxEdgeStyle.scaleCellState(b,a.view.scale),k=mxEdgeStyle.scaleCellState(c,a.view.scale),l=f[0],m=f[f.length-1];f=null!=g?g.x:l.x;var n=null!=g?g.y:l.y,p=null!=g?g.width:1,q=null!=g?g.height:1,r=null!=k?k.x:m.x,t=null!=k?k.y:m.y,u=null!=k?k.width:1,v=null!=k?k.height:1,y=mxEdgeStyle.getJettySize(a,!0),A=mxEdgeStyle.getJettySize(a,+!1);null!=g&&k==g&&(y=A=Math.max(y,A));var z=A+y,x=!1;if(null!=l&&null!=m){x=m.x-l.x;var B=m.y-l.y;x=x*x+B*B<z*z}if(x||mxEdgeStyle.orthPointsFallback&&null!=d&&0<d.length)mxEdgeStyle.SegmentConnector(a,b,c,d,e);else if(c=[mxConstants.DIRECTION_MASK_ALL,mxConstants.DIRECTION_MASK_ALL],null!=g&&(c[0]=mxUtils.getPortConstraints(g,a,!0,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(g.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(f,n,p,q),b),f=b.x,n=b.y,p=b.width,+q=b.height)),null!=k&&(c[1]=mxUtils.getPortConstraints(k,a,!1,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(k.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(r,t,u,v),b),r=b.x,t=b.y,u=b.width,v=b.height)),0!=p&&0!=q&&0!=u&&0!=v){b=[0,0];f=[[f,n,p,q],[r,t,u,v]];A=[y,A];for(x=0;2>x;x++)mxEdgeStyle.limits[x][1]=f[x][0]-A[x],mxEdgeStyle.limits[x][2]=f[x][1]-A[x],mxEdgeStyle.limits[x][4]=f[x][0]+f[x][2]+A[x],mxEdgeStyle.limits[x][8]=f[x][1]+f[x][3]+A[x];A=f[0][1]++f[0][3]/2;n=f[1][1]+f[1][3]/2;x=f[0][0]+f[0][2]/2-(f[1][0]+f[1][2]/2);B=A-n;A=0;0>x?A=0>B?2:1:0>=B&&(A=3,0==x&&(A=2));n=null;null!=g&&(n=l);l=[[.5,.5],[.5,.5]];g||(l[0]=[0,0]);k||(l[1]=[0,0]);for(x=0;2>x;x++)null!=n&&(l[x][0]=(n.x-f[x][0])/f[x][2],1>=Math.abs(n.x-f[x][0])?b[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(n.x-f[x][0]-f[x][2])&&(b[x]=mxConstants.DIRECTION_MASK_EAST),l[x][1]=(n.y-f[x][1])/f[x][3],1>=Math.abs(n.y-f[x][1])?b[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(n.y-f[x][1]-f[x][3])&&+(b[x]=mxConstants.DIRECTION_MASK_SOUTH)),n=null,null!=k&&(n=m);x=f[0][1]-(f[1][1]+f[1][3]);m=f[0][0]-(f[1][0]+f[1][2]);n=f[1][1]-(f[0][1]+f[0][3]);p=f[1][0]-(f[0][0]+f[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(m-z,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-z,0);mxEdgeStyle.vertexSeperations[4]=Math.max(n-z,0);mxEdgeStyle.vertexSeperations[3]=Math.max(p-z,0);z=[];g=[];k=[];g[0]=m>=p?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;k[0]=x>=n?mxConstants.DIRECTION_MASK_NORTH:+mxConstants.DIRECTION_MASK_SOUTH;g[1]=mxUtils.reversePortConstraints(g[0]);k[1]=mxUtils.reversePortConstraints(k[0]);m=m>=p?m:p;n=x>=n?x:n;p=[[0,0],[0,0]];q=!1;for(x=0;2>x;x++)0==b[x]&&(0==(g[x]&c[x])&&(g[x]=mxUtils.reversePortConstraints(g[x])),0==(k[x]&c[x])&&(k[x]=mxUtils.reversePortConstraints(k[x])),p[x][0]=k[x],p[x][1]=g[x]);0<n&&0<m&&(0<(g[0]&c[0])&&0<(k[1]&c[1])?(p[0][0]=g[0],p[0][1]=k[0],p[1][0]=k[1],p[1][1]=g[1],q=!0):0<(k[0]&c[0])&&0<(g[1]&c[1])&&(p[0][0]=k[0],p[0][1]=g[0],p[1][0]=g[1],+p[1][1]=k[1],q=!0));0<n&&!q&&(p[0][0]=k[0],p[0][1]=g[0],p[1][0]=k[1],p[1][1]=g[1],q=!0);0<m&&!q&&(p[0][0]=g[0],p[0][1]=k[0],p[1][0]=g[1],p[1][1]=k[1]);for(x=0;2>x;x++)0==b[x]&&(0==(p[x][0]&c[x])&&(p[x][0]=p[x][1]),z[x]=p[x][0]&c[x],z[x]|=(p[x][1]&c[x])<<8,z[x]|=(p[1-x][x]&c[x])<<16,z[x]|=(p[1-x][1-x]&c[x])<<24,0==(z[x]&15)&&(z[x]<<=8),0==(z[x]&3840)&&(z[x]=z[x]&15|z[x]>>8),0==(z[x]&983040)&&(z[x]=z[x]&65535|(z[x]&251658240)>>8),b[x]=z[x]&15,c[x]==mxConstants.DIRECTION_MASK_WEST||c[x]==mxConstants.DIRECTION_MASK_NORTH||+c[x]==mxConstants.DIRECTION_MASK_EAST||c[x]==mxConstants.DIRECTION_MASK_SOUTH)&&(b[x]=c[x]);c=b[0]==mxConstants.DIRECTION_MASK_EAST?3:b[0];z=b[1]==mxConstants.DIRECTION_MASK_EAST?3:b[1];c-=A;z-=A;1>c&&(c+=4);1>z&&(z+=4);c=mxEdgeStyle.routePatterns[c-1][z-1];mxEdgeStyle.wayPoints1[0][0]=f[0][0];mxEdgeStyle.wayPoints1[0][1]=f[0][1];switch(b[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-=y;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*f[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=+l[0][0]*f[0][2];mxEdgeStyle.wayPoints1[0][1]+=f[0][3]+y;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=f[0][2]+y;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*f[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*f[0][2],mxEdgeStyle.wayPoints1[0][1]-=y}y=0;g=z=0<(b[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?0:1;for(x=0;x<c.length;x++)k=c[x]&15,q=k==mxConstants.DIRECTION_MASK_EAST?3:k,q+=A,4<q&&(q-=4),m=mxEdgeStyle.dirVectors[q-+1],k=0<q%2?0:1,k!=z&&(y++,mxEdgeStyle.wayPoints1[y][0]=mxEdgeStyle.wayPoints1[y-1][0],mxEdgeStyle.wayPoints1[y][1]=mxEdgeStyle.wayPoints1[y-1][1]),r=0<(c[x]&mxEdgeStyle.TARGET_MASK),t=0<(c[x]&mxEdgeStyle.SOURCE_MASK),n=(c[x]&mxEdgeStyle.SIDE_MASK)>>5,n<<=A,15<n&&(n>>=4),p=0<(c[x]&mxEdgeStyle.CENTER_MASK),(t||r)&&9>n?(q=t?0:1,n=p&&0==k?f[q][0]+l[q][0]*f[q][2]:p?f[q][1]+l[q][1]*f[q][3]:mxEdgeStyle.limits[q][n],0==k?(n=(n-mxEdgeStyle.wayPoints1[y][0])*m[0],0<n&&(mxEdgeStyle.wayPoints1[y][0]+=m[0]*n)):+(n=(n-mxEdgeStyle.wayPoints1[y][1])*m[1],0<n&&(mxEdgeStyle.wayPoints1[y][1]+=m[1]*n))):p&&(mxEdgeStyle.wayPoints1[y][0]+=m[0]*Math.abs(mxEdgeStyle.vertexSeperations[q]/2),mxEdgeStyle.wayPoints1[y][1]+=m[1]*Math.abs(mxEdgeStyle.vertexSeperations[q]/2)),0<y&&mxEdgeStyle.wayPoints1[y][k]==mxEdgeStyle.wayPoints1[y-1][k]?y--:z=k;for(x=0;x<=y&&(x!=y||((0<(b[1]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?0:1)==g?0:1)==(y+1)%2);x++)e.push(new mxPoint(Math.round(mxEdgeStyle.wayPoints1[x][0]*+a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[x][1]*a.view.scale*10)/10));for(a=1;a<e.length;)null==e[a-1]||null==e[a]||e[a-1].x!=e[a].x||e[a-1].y!=e[a].y?a++:e.splice(a,1)}},getRoutePattern:function(a,b,c,d){var e=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];a=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];e-=b;a-=b;1>e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];0!=c&&0!=d||null==inlineRoutePatterns[e-1][a-1]||(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,+b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);+mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);+mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource;mxGraphView.prototype.constructor=mxGraphView;mxGraphView.prototype.EMPTY_POINT=new mxPoint;mxGraphView.prototype.doneResource="none"!=mxClient.language?"done":"";+mxGraphView.prototype.updatingDocumentResource="none"!=mxClient.language?"updatingDocument":"";mxGraphView.prototype.allowEval=!1;mxGraphView.prototype.captureDocumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.prototype.currentRoot=null;mxGraphView.prototype.graphBounds=null;mxGraphView.prototype.scale=1;mxGraphView.prototype.translate=null;mxGraphView.prototype.states=null;mxGraphView.prototype.updateStyle=!1;mxGraphView.prototype.lastNode=null;+mxGraphView.prototype.lastHtmlNode=null;mxGraphView.prototype.lastForegroundNode=null;mxGraphView.prototype.lastForegroundHtmlNode=null;mxGraphView.prototype.getGraphBounds=function(){return this.graphBounds};mxGraphView.prototype.setGraphBounds=function(a){this.graphBounds=a};mxGraphView.prototype.getBounds=function(a){var b=null;if(null!=a&&0<a.length)for(var c=this.graph.getModel(),d=0;d<a.length;d++)if(c.isVertex(a[d])||c.isEdge(a[d])){var e=this.getState(a[d]);null!=e&&(null==b?b=mxRectangle.fromRectangle(e):b.add(e))}return b};mxGraphView.prototype.setCurrentRoot=function(a){if(this.currentRoot!=a){var b=new mxCurrentRootChange(this,a);b.execute();var c=new mxUndoableEdit(this,!0);c.add(b);this.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",c));this.graph.sizeDidChange()}return a};mxGraphView.prototype.scaleAndTranslate=function(a,b,c){var d=this.scale,e=new mxPoint(this.translate.x,this.translate.y);if(this.scale!=a||this.translate.x!=b||this.translate.y!=c)this.scale=a,this.translate.x=b,this.translate.y=c,this.isEventsEnabled()&&this.viewStateChanged();this.fireEvent(new mxEventObject(mxEvent.SCALE_AND_TRANSLATE,"scale",a,"previousScale",d,"translate",this.translate,"previousTranslate",e))};mxGraphView.prototype.getScale=function(){return this.scale};mxGraphView.prototype.setScale=function(a){var b=this.scale;this.scale!=a&&(this.scale=a,this.isEventsEnabled()&&this.viewStateChanged());this.fireEvent(new mxEventObject(mxEvent.SCALE,"scale",a,"previousScale",b))};mxGraphView.prototype.getTranslate=function(){return this.translate};@@ -2032,67 +2032,67 @@ Dialog.prototype.close=function(a,b){if(null!=this.onDialogClose){if(0==this.onDthis.container.parentNode.removeChild(this.container)};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 B=mxUtils.button(e,function(){p&&a.hideDialog();null!=g&&g()});B.className="geBtn";f.appendChild(B);null!=h&&(e=mxUtils.button(h,function(){p&&a.hideDialog();null!=m&&m()}),e.className="geBtn gePrimaryBtn",f.appendChild(e));this.init=function(){B.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(B){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();B&&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(B){h.checked=!h.checked;k.checked=!h.checked;mxEvent.consume(B)});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(B){k.checked=!k.checked;h.checked=!k.checked;mxEvent.consume(B)});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",+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 E=h.checked||k.checked,D=parseInt(w.value)/100;isNaN(D)&&(D=1,w.value="100%");mxClient.IS_SF&&(D*=.75);var G=f.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT,I=1/f.pageScale;if(E){var M=h.checked?1:parseInt(u.value);isNaN(M)||(I=mxUtils.getScaleForPageCount(M,f,G))}var N=M=0;G=mxRectangle.fromRectangle(G);G.width=Math.ceil(G.width*D);G.height=Math.ceil(G.height*D);I*=D;!E&&f.pageVisible?(D=f.getPageLayout(),M-=D.x*G.width,N-=D.y*G.height):+E=!0;E=PrintDialog.createPrintPreview(f,I,G,0,M,N,E);E.open();C&&PrintDialog.printPreview(E)}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 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?(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 PageSetupDialog=function(a){function b(){var D=w;null!=D&&null!=D.originalSrc&&(D=a.createImageForPageLink(D.originalSrc,null));null!=D&&null!=D.src?(u.style.backgroundImage="url("+D.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")+":");+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 D=parseInt(p.value);p.value=Math.max(1,isNaN(D)?f.getGridSize():D)});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 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,B=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,B=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!=B&&-(E.shadowVisible=B);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};+u.style.width="64px";u.style.cursor="pointer";u.style.padding="4px";var w=f.backgroundImage,y=f.background,C=f.shadowVisible,E=function(D){a.showBackgroundImageDialog(function(G,I,M,N){I||(null!=G&&null!=G.src&&Graph.isPageLink(G.src)&&(G={originalSrc:G.src}),w=G,C=N);y=M;b()},w,y,!0);mxEvent.consume(D)};mxEvent.addListener(k,"click",E);mxEvent.addListener(u,"click",E);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);E=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var D=parseInt(p.value);isNaN(D)||f.gridSize===D||f.setGridSize(D);D=new ChangePageSetup(a,y,w,m.get());D.ignoreColor=f.background==y;D.ignoreImage=(null!=f.backgroundImage?f.backgroundImage.src:null)===(null!=w?w.src:null);null!=C&&+(D.shadowVisible=C);f.pageFormat.width==D.previousFormat.width&&f.pageFormat.height==D.previousFormat.height&&D.ignoreColor&&D.ignoreImage&&D.shadowVisible==f.shadowVisible||f.model.execute(D)});E.className="geBtn gePrimaryBtn";h.appendChild(E);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 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 B=[{label:mxResources.get("points"),unit:mxConstants.POINTS},{label:mxResources.get("inches"),unit:mxConstants.INCHES},{label:mxResources.get("millimeters"),unit:mxConstants.MILLIMETERS}],D=0;D<B.length;D++){var E=document.createElement("option");E.setAttribute("value",B[D].unit);mxUtils.write(E,B[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++)B=J[D],G[B.key]=B,E=document.createElement("option"),E.setAttribute("value",B.key),mxUtils.write(E,B.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?(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}};+"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}],E=0;E<C.length;E++){var D=document.createElement("option");D.setAttribute("value",C[E].unit);mxUtils.write(D,C[E].label);y.appendChild(D)}y.value=Editor.pageSizeUnit;k.appendChild(y);+m.style.display="none";k.style.display="none";var G={},I=PageSetupDialog.getFormats();for(E=0;E<I.length;E++)C=I[E],G[C.key]=C,D=document.createElement("option"),D.setAttribute("value",C.key),mxUtils.write(D,C.title),h.appendChild(D);var M=function(){h.value="custom";for(var L=0;L<I.length;L++){var V=I[L];null!=V.format&&("a4"==V.key?826==f.width?(f=mxRectangle.fromRectangle(f),f.width=827):826==f.height&&(f=mxRectangle.fromRectangle(f),f.height=827):"a5"==V.key&&(584==f.width?(f=mxRectangle.fromRectangle(f),+f.width=583):584==f.height&&(f=mxRectangle.fromRectangle(f),f.height=583)),f.width==V.format.width&&f.height==V.format.height?(h.value=V.key,g.setAttribute("checked","checked"),g.defaultChecked=!0,g.checked=!0,d.removeAttribute("checked"),d.defaultChecked=!1,d.checked=!1,detected=!0):f.width==V.format.height&&f.height==V.format.width&&(h.value=V.key,g.removeAttribute("checked"),g.defaultChecked=!1,g.checked=!1,d.setAttribute("checked","checked"),d.defaultChecked=!0,detected=d.checked=!0))}"custom"==+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 N=function(L,V){L=G[h.value];null!=L.format?(u.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(u.value);if(isNaN(L)||0>=L)u.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(u.value),y.value)),Math.floor(Editor.fromUnit(parseFloat(w.value),y.value)));V||L.width==f.width&&L.height==f.height||(f=L,null!=e&&e(f))};mxEvent.addListener(b,"click",function(L){g.checked=!0;N(L);mxEvent.consume(L)});+mxEvent.addListener(p,"click",function(L){d.checked=!0;N(L);mxEvent.consume(L)});mxEvent.addListener(u,"blur",N);mxEvent.addListener(u,"click",N);mxEvent.addListener(w,"blur",N);mxEvent.addListener(w,"click",N);mxEvent.addListener(d,"change",N);mxEvent.addListener(g,"change",N);mxEvent.addListener(h,"change",function(L){N(L,"custom"==h.value);mxEvent.consume(L)});mxEvent.addListener(y,"change",function(L){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;N(L,!0);mxEvent.consume(L)});N(null,!0);return{set:function(L){f=L;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,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 B=document.createElement("div");B.style.display="inline-flex";B.style.alignItems="center";B.style.justifyContent="flex-end";B.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"))+":");B.appendChild(D);y.appendChild(B);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!=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()}))}}};B=document.createElement("div");B.style.display="inline-flex";B.style.alignItems="center";B.style.gap="4px";B.style.whiteSpace="nowrap";B.appendChild(E);y.appendChild(B);-null==g&&null!=h||null==u||null==a.editor.diagramFileTypes||(B=document.createElement("div"),B.style.display="inline-flex",B.style.alignItems="center",B.style.textOverflow="ellipsis",B.style.justifyContent="flex-end",B.style.fontSize="10pt",mxUtils.write(B,mxResources.get("type")+":"),y.appendChild(B),B=document.createElement("div"),B.style.display="inline-flex",B.style.alignItems="center",B.style.whiteSpace="nowrap",y.appendChild(B),b=FilenameDialog.createFileTypes(a,E,a.editor.diagramFileTypes),-b.style.width="100%",B.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");B=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog();null!=k&&k()});B.className="geBtn";null==m||a.isOffline()||row.appendChild(a.createHelpIcon(m));-a.editor.cancelFirst&&row.appendChild(B);mxEvent.addListener(E,"keypress",function(J){13==J.keyCode&&G.click()});row.appendChild(G);a.editor.cancelFirst||row.appendChild(B);y.appendChild(row);w.appendChild(y);this.container=w};FilenameDialog.filenameHelpLink=null;+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 E=document.createElement("div");E.style.display="inline-block";+E.style.textOverflow="ellipsis";E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.fontSize="10pt";E.style.padding="2px 0";E.setAttribute("title",g||mxResources.get("filename"));mxUtils.write(E,(g||mxResources.get("filename"))+":");C.appendChild(E);y.appendChild(C);var D=document.createElement("input");D.setAttribute("value",b||"");D.style.flexGrow="1";var G=mxUtils.button(f,function(){if(null==d||d(D.value))p&&a.hideDialog(),e(D.value)});G.className="geBtn gePrimaryBtn";this.init=function(){if(null!=+g||null==h)if(null!=u?Editor.selectFilename(D):(D.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)),Graph.fileSupport){var I=y.parentNode;if(null!=I){var M=null;mxEvent.addListener(I,"dragleave",function(N){null!=M&&(M.style.backgroundColor="",M=null);N.stopPropagation();N.preventDefault()});mxEvent.addListener(I,"dragover",mxUtils.bind(this,function(N){null==M&&(!mxClient.IS_IE||10<document.documentMode)&&(M=D,M.style.backgroundColor=+"#ebf2f9");N.stopPropagation();N.preventDefault()}));mxEvent.addListener(I,"drop",mxUtils.bind(this,function(N){null!=M&&(M.style.backgroundColor="",M=null);0<=mxUtils.indexOf(N.dataTransfer.types,"text/uri-list")&&(D.value=decodeURIComponent(N.dataTransfer.getData("text/uri-list")),G.click());N.stopPropagation();N.preventDefault()}))}}};C=document.createElement("div");C.style.display="inline-flex";C.style.alignItems="center";C.style.gap="4px";C.style.whiteSpace="nowrap";C.appendChild(D);y.appendChild(C);+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,D,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(D,"keypress",function(I){13==I.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};var WrapperWindow=function(a,b,f,e,g,d,h,m){m=null!=m?m:document.createElement("div");this.window=new mxWindow(b,m,f,e,g,d,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);a.installResizeHandler(this,!0);h(m)};(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 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",B="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?(B=unescape(encodeURIComponent(this.createSvgGrid(y,h))),B=window.btoa?btoa(B):Base64.encode(B,!0),B="url(data:image/svg+xml;base64,"+B+")",D=k.gridSize*this.scale*this.gridSteps*h):B="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=B,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=B,"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,+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",E="";"simple"==k.getAdaptiveColors()&&k.background!=mxConstants.NONE&&null!=k.background&&(u=k.background);if(k.isGridEnabled()||k.gridVisible){E=+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+")",E=k.gridSize*this.scale*this.gridSteps*h):C="url("+this.gridImage+")";var D=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,I=m%G;G=p%G;null!=k.view.backgroundPageShape&&(D=this.getBackgroundPageBounds(),y=1+D.x,D=1+D.y);E=-Math.round(E-mxUtils.mod(this.translate.x*+this.scale-y+m,E)+I*h)+"px "+-Math.round(E-mxUtils.mod(this.translate.y*this.scale-D+p,E)+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=E,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=E,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,u=this.view.translate,w=this.pageFormat,y=k*this.pageScale,B=this.view.getBackgroundPageBounds();-m=B.width;p=B.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=B.x+m,M=B.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(B.x),-Math.round(B.y+(W+1)*D.height)),new mxPoint(Math.round(J),Math.round(B.y+(W+1)*D.height))]:[new mxPoint(Math.round(B.x+(W+1)*D.width),Math.round(B.y)),new mxPoint(Math.round(B.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);+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 E=new mxRectangle(k*u.x,k*u.y,w.width*y,w.height*y),D=(h=h&&Math.min(E.width,E.height)>this.minPageBreakDist)?Math.ceil(p/E.height)-1:0,G=h?Math.ceil(m/E.width)-1:0,I=C.x+m,M=C.y+p;null==this.horizontalPageBreaks&&0<D&&(this.horizontalPageBreaks=[]);null==this.verticalPageBreaks&&0<G&&(this.verticalPageBreaks=[]);h=mxUtils.bind(this,function(N){if(null!=N){for(var L=N==this.horizontalPageBreaks?D:G,V=0;V<=L;V++){var X=N==this.horizontalPageBreaks?[new mxPoint(Math.round(C.x),+Math.round(C.y+(V+1)*E.height)),new mxPoint(Math.round(I),Math.round(C.y+(V+1)*E.height))]:[new mxPoint(Math.round(C.x+(V+1)*E.width),Math.round(C.y)),new mxPoint(Math.round(C.x+(V+1)*E.width),Math.round(M))];null!=N[V]?(N[V].points=X,N[V].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(),N[V]=X)}for(V=L;V<N.length;V++)null!=N[V]&&N[V].destroy();N.splice(L,N.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 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,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(B){mxEvent.consume(B)});return y};var d=mxGraphHandler.prototype.isPropagateSelectionCell;mxGraphHandler.prototype.isPropagateSelectionCell=+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 fa=this.view.translate,la=this.view.scale;H=mxRectangle.fromRectangle(H);H.add(new mxRectangle((fa.x+S.x)*la,(fa.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),fa=[],la=[],O;for(O in S)fa.push(S[O]),la.push(O);g.getModel().isEdge(H)?g.currentEdgeStyle={}:g.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",fa,"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=+p=g.pasteEdgeStyle=!1:m=!1;var S=g.getCellStyle(H,!1),fa=[],la=[],P;for(P in S)fa.push(S[P]),la.push(P);g.getModel().isEdge(H)?g.currentEdgeStyle={}:g.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",la,"values",fa,"cells",[H],"force",!0));g.getModel().isEdge(H)?p=g.pasteEdgeStyle=!0:m=!0}catch(W){this.handleError(W)}};this.clearDefaultStyle=function(){g.currentEdgeStyle=mxUtils.clone(g.defaultEdgeStyle);g.currentVertexStyle=mxUtils.clone(g.defaultVertexStyle);m=p=g.pasteEdgeStyle=!1;this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};g.addListener("cellsInserted",function(H,S){g.pasteCellStyles(g.includeDescendants(S.getProperty("cells")))});g.addListener("textInserted",function(H,S){g.pasteCellStyles(S.getProperty("cells"))});this.createDivs();this.createUi();this.refresh();var k=mxUtils.bind(this,function(H){null==H&&(H=window.event);return g.isEditing()||null!=H&&this.isSelectionAllowed(H)});this.container!=document.body||this.editor.chromeless&&!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(fa){}}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,@@ -2100,12 +2100,12 @@ navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);try{H=[parseInt(S[1],10),pa(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 B=g.cellEditor.isStopEditingEvent;g.cellEditor.isStopEditingEvent=function(H){return B.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 fa=S.getAttribute("data-min-width");null!=fa&&parseInt(fa)>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 fa=H.nextSibling;H.parentNode.removeChild(H);-S.push(H);H=fa}H=this.toolbar.fontMenu;fa=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=fa;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 fa=g.getSelectedEditingElement();null!=fa&&(fa=mxUtils.getCurrentStyle(fa),null!=fa&&null!=e.toolbar&&(e.toolbar.setFontName(mxUtils.getCssFontFamily(fa.fontFamily)),e.toolbar.setFontSize(parseInt(fa.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(fa){e.handleError(fa)}};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,fa){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,fa,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,fa){this.menus.createPopupMenu(H,S,fa)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(H){g.popupMenuHandler.hideMenu()}));+(!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 E=g.isZoomWheelEvent;g.isZoomWheelEvent=function(){return e.isSpaceDown()||E.apply(this,arguments)};var D=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 fa=S.getAttribute("data-min-width");null!=fa&&parseInt(fa)>H?S.style.display="none":S.style.display="";S=S.nextSibling}}),G=!1,I=null,M=null,N=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 fa=H.nextSibling;H.parentNode.removeChild(H);+S.push(H);H=fa}H=this.toolbar.fontMenu;fa=this.toolbar.sizeMenu;if(null==N)this.toolbar.createTextToolbar();else{for(var la=0;la<N.length;la++)this.toolbar.container.appendChild(N[la]);this.toolbar.fontMenu=I;this.toolbar.sizeMenu=M}G=g.cellEditor.isContentEditing();I=H;M=fa;N=S;D()}});this.addListener("languageChanged",mxUtils.bind(this,function(){this.destroyWindows(!0);this.descriptorChanged();this.updateStatusAgain();L()}));this.addListener("currentThemeChanged",D);mxEvent.addListener(window,+"resize",D);D();g.isTouchPopupMenuEnabled=function(){return null==e.dialog};var V=g.cellEditor.startEditing;g.cellEditor.startEditing=function(){V.apply(this,arguments);L();if(g.cellEditor.isContentEditing()){var H=!1,S=function(){H||(H=!0,window.setTimeout(function(){var fa=g.getSelectedEditingElement();null!=fa&&(fa=mxUtils.getCurrentStyle(fa),null!=fa&&null!=e.toolbar&&(e.toolbar.setFontName(mxUtils.getCssFontFamily(fa.fontFamily)),e.toolbar.setFontSize(parseInt(fa.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(fa){e.handleError(fa)}};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,fa){try{H==mxEvent.MOUSE_DOWN&&this.container.focus(),T.apply(this,arguments)}catch(la){e.handleError(la)}};var O=g.foldCells;g.foldCells=function(H,S,fa,la,P){try{O.apply(this,arguments)}catch(W){e.handleError(W)}};g.popupMenuHandler.autoExpand=!0;null!=this.menus&&(g.popupMenuHandler.factoryMethod=mxUtils.bind(this,function(H,S,fa){this.menus.createPopupMenu(H,S,fa)}));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 fa=[S.getProperty("cell")];S.getProperty("terminalInserted")&&(fa.push(S.getProperty("terminal")),window.setTimeout(function(){null!=e.hoverIcons&&e.hoverIcons.update(g.view.getState(fa[fa.length-1]))},0));g.pasteCellStyles(fa)});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,Format.curvedImage.src):"straight"==g.currentEdgeStyle.edgeStyle||"none"==g.currentEdgeStyle.edgeStyle||null==g.currentEdgeStyle.edgeStyle?this.toolbar.setMenuIcon(this.toolbar.edgeStyleMenu,Format.straightImage.src):"entityRelationEdgeStyle"==g.currentEdgeStyle.edgeStyle?this.toolbar.setMenuIcon(this.toolbar.edgeStyleMenu,Format.entityImage.src):"elbowEdgeStyle"==g.currentEdgeStyle.edgeStyle?"vertical"==g.currentEdgeStyle.elbow?this.toolbar.setMenuIcon(this.toolbar.edgeStyleMenu,Format.verticalElbowImage.src):@@ -2127,29 +2127,29 @@ 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,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 B=this.editor.graph.view.getState(y);-if(y==f.getChildAt(e,d+p)&&null!=B&&1==mxUtils.getValue(B.style,"colspan",1)&&1==mxUtils.getValue(B.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.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 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,B,D){return mxUtils.isLightDarkColor(D)?(D=mxUtils.getLightDarkColor(D),y.style.setProperty(B,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};+"0"!=mxUtils.getValue(m,"html","0")&&(d.innerHTML=Graph.sanitizeHtml(e.getLabel(a[h])),Graph.addLightDarkColors(d,null,null,function(y,C,E){return mxUtils.isLightDarkColor(E)?(E=mxUtils.getLightDarkColor(E),y.style.setProperty(C,E.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 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,B,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 B=mxUtils.getOffset(a.container),D=a.container.scrollLeft+u.x-B.x;B=a.container.scrollTop+u.y-B.y;var E=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(D,B,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,B,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)}))}};+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,E){var D=a.getCompositeParent(p.cell);y=a.getCellGeometry(D);for(u.consume();null!=D&&a.model.isVertex(D)&&null!=y&&y.relative;)cell=+D,D=a.model.getParent(cell),y=a.getCellGeometry(D);window.setTimeout(mxUtils.bind(this,function(){b.showShapePicker(u.getGraphX(),u.getGraphY(),D,mxUtils.bind(this,function(G){E(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),E=a.container.scrollLeft+u.x-C.x;C=a.container.scrollTop+u.y-C.y;var D=a.getCompositeParent(null!=this.hoverIcons.currentState?this.hoverIcons.currentState.cell:null),G=b.showShapePicker(E,C,D,mxUtils.bind(this,function(I){null!=I&&a.connectVertex(D,w,a.defaultEdgeLength,y,!0,!1,function(M,N,L){L(I);null!=b.hoverIcons&&b.hoverIcons.update(a.view.getState(I))},+function(M){a.selectCellsForConnectVertex(M)},y,this.hoverIcons)}),w,!0);null!=G&&(this.centerShapePicker(G,u,E,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,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 B=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 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!=B.hoverIcons&&B.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.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(D){D=D[0];var G=0,I=0,M=D.geometry;null!=M&&(w.model.isEdge(D)&&(D=M.getTerminalPoint(!1),M=new mxRectangle(0,0,D.x,D.y)),G=M.width/2,I=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-I))};if(null!=h&&0<h.length){var C=this;w=this.editor.graph;y=document.createElement("div");+g=w.view.getState(f);var E=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(D){var G=document.createElement("a");y.appendChild(G);null!=E&&"1"!=urlParams.sketch?+this.sidebar.graph.pasteStyle(E,[D]):this.sidebar.graph.pasteCellStyles([D],w.currentVertexStyle,w.currentEdgeStyle);var I=D.geometry;w.model.isEdge(D)&&(I=I.getTerminalPoint(!1),I=new mxRectangle(0,0,I.x,I.y));null!=I&&(I=this.sidebar.createVertexTemplateFromCells([D],I.width,I.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 N=w.cloneCell(D);if(null!=e)e(N);else{var L=p([N]);w.model.isEdge(N)?+N.geometry.translate(L.x,L.y):(N.geometry.x=L.x,N.geometry.y=L.y);w.model.beginUpdate();try{w.addCell(N),w.model.isVertex(N)&&w.isAutoSizeCell(N)&&w.updateCellSize(N)}finally{w.model.endUpdate()}w.setSelectionCell(N);w.scrollCellToVisible(N);u&&w.startEditing(N);null!=C.hoverIcons&&C.hoverIcons.update(w.view.getState(N))}}else N=w.getEditableCells(null!=f?[f]:w.getSelectionCells()),w.updateShapes(D,N);null!=d&&d(M);mxEvent.consume(M)}}),25,25,null,null,f),I.style.display="flex",I.style.alignItems=+"center",I.style.justifyContent="center",G.appendChild(I))});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;",80,80),g("rounded=1;whiteSpace=wrap;html=1;"),g("shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;"),g("shape=trapezoid;perimeter=trapezoidPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,60),g("shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;",120,80),g("shape=step;perimeter=stepPerimeter;whiteSpace=wrap;html=1;fixedSize=1;",120,80),g("shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;"),g("triangle;whiteSpace=wrap;html=1;",@@ -2166,46 +2166,46 @@ a?"1"!=b?Format.doubleBlockMarkerImage.src:Format.doubleBlockFilledMarkerImage.s"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),u=new mxGraphModel,w=u.getChildAt(u.getRoot(),-0),y=0;y<k.length;y++){u.add(w,k[y]);var B=d.view.getState(h[y]);if(null!=B){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=B.x/B.view.scale-B.view.translate.x,D.y=B.y/B.view.scale-B.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=+0),y=0;y<k.length;y++){u.add(w,k[y]);var C=d.view.getState(h[y]);if(null!=C){var E=d.getCellGeometry(k[y]);null!=E&&E.relative&&!u.isEdge(h[y])&&null==p[mxObjectIdentity.get(u.getParent(h[y]))]&&(E.offset=null,E.relative=!1,E.x=C.x/C.view.scale-C.view.translate.x,E.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*-P.width,this.scale*aa.height*P.height)};a.getPreferredPageSize=function(aa,P,ba){aa=this.getPageLayout();P=this.getPageSize();return new mxRectangle(0,0,aa.width*P.width,aa.height*P.height)};var b=null,f=this;if(this.editor.isChromelessView()){this.chromelessResize=b=mxUtils.bind(this,function(aa,P,ba,ma){if(null!=a.container&&!a.isViewer()){ba=null!=ba?ba:0;ma=null!=ma?ma:0;var La=a.pageVisible?a.view.getBackgroundPageBounds():a.getGraphBounds(),na=mxUtils.hasScrollbars(a.container),za=a.view.translate,-Aa=a.view.scale,Ma=mxRectangle.fromRectangle(La);Ma.x=Ma.x/Aa-za.x;Ma.y=Ma.y/Aa-za.y;Ma.width/=Aa;Ma.height/=Aa;za=a.container.scrollTop;var Qa=a.container.scrollLeft,Ja=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ja+=3;var Ia=a.container.offsetWidth-Ja;Ja=a.container.offsetHeight-Ja;aa=aa?Math.max(.3,Math.min(P||1,Ia/Ma.width)):Aa;P=(Ia-aa*Ma.width)/2/aa;var ra=0==this.lightboxVerticalDivider?0:(Ja-aa*Ma.height)/this.lightboxVerticalDivider/aa;na&&(P=Math.max(P,-0),ra=Math.max(ra,0));if(na||La.width<Ia||La.height<Ja)a.view.scaleAndTranslate(aa,Math.floor(P-Ma.x),Math.floor(ra-Ma.y)),a.container.scrollTop=za*aa/Aa,a.container.scrollLeft=Qa*aa/Aa;else if(0!=ba||0!=ma)La=a.view.translate,a.view.setTranslate(Math.floor(La.x+ba/Aa),Math.floor(La.y+ma/Aa))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var e=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",e);this.destroyFunctions.push(function(){mxEvent.removeListener(window,+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(),Q=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+aa.x*Q.width),this.scale*(this.translate.y+aa.y*Q.height),this.scale*aa.width*+Q.width,this.scale*aa.height*Q.height)};a.getPreferredPageSize=function(aa,Q,ba){aa=this.getPageLayout();Q=this.getPageSize();return new mxRectangle(0,0,aa.width*Q.width,aa.height*Q.height)};var b=null,f=this;if(this.editor.isChromelessView()){this.chromelessResize=b=mxUtils.bind(this,function(aa,Q,ba,ma){if(null!=a.container&&!a.isViewer()){ba=null!=ba?ba:0;ma=null!=ma?ma:0;var Na=a.pageVisible?a.view.getBackgroundPageBounds():a.getGraphBounds(),oa=mxUtils.hasScrollbars(a.container),za=a.view.translate,+Aa=a.view.scale,La=mxRectangle.fromRectangle(Na);La.x=La.x/Aa-za.x;La.y=La.y/Aa-za.y;La.width/=Aa;La.height/=Aa;za=a.container.scrollTop;var Qa=a.container.scrollLeft,Ja=8<=document.documentMode?20:14;if(8==document.documentMode||9==document.documentMode)Ja+=3;var Ia=a.container.offsetWidth-Ja;Ja=a.container.offsetHeight-Ja;aa=aa?Math.max(.3,Math.min(Q||1,Ia/La.width)):Aa;Q=(Ia-aa*La.width)/2/aa;var ra=0==this.lightboxVerticalDivider?0:(Ja-aa*La.height)/this.lightboxVerticalDivider/aa;oa&&(Q=Math.max(Q,+0),ra=Math.max(ra,0));if(oa||Na.width<Ia||Na.height<Ja)a.view.scaleAndTranslate(aa,Math.floor(Q-La.x),Math.floor(ra-La.y)),a.container.scrollTop=za*aa/Aa,a.container.scrollLeft=Qa*aa/Aa;else if(0!=ba||0!=ma)Na=a.view.translate,a.view.setTranslate(Math.floor(Na.x+ba/Aa),Math.floor(Na.y+ma/Aa))}});this.chromelessWindowResize=mxUtils.bind(this,function(){this.chromelessResize(!1)});var e=mxUtils.bind(this,function(){this.chromelessWindowResize(!1)});mxEvent.addListener(window,"resize",e);this.destroyFunctions.push(function(){mxEvent.removeListener(window,"resize",e)});this.editor.addListener("resetGraphView",mxUtils.bind(this,function(){this.chromelessResize(!0)}));this.actions.get("zoomIn").funct=mxUtils.bind(this,function(aa){a.zoomIn();this.chromelessResize(!1)});this.actions.get("zoomOut").funct=mxUtils.bind(this,function(aa){a.zoomOut();this.chromelessResize(!1)});if("0"!=urlParams.toolbar){var g=JSON.parse(decodeURIComponent(urlParams["toolbar-config"]||"{}"));this.chromelessToolbar=document.createElement("div");this.chromelessToolbar.style.position="fixed";this.chromelessToolbar.style.overflow="hidden";this.chromelessToolbar.style.boxSizing="border-box";this.chromelessToolbar.style.whiteSpace="nowrap";this.chromelessToolbar.style.padding="10px 10px 8px 10px";this.chromelessToolbar.style.left=a.isViewer()?"0":"50%";mxClient.IS_IE||mxClient.IS_IE11?(this.chromelessToolbar.style.backgroundColor="#ffffff",this.chromelessToolbar.style.border="3px solid black"):this.chromelessToolbar.style.backgroundColor="#000000";mxUtils.setPrefixedStyle(this.chromelessToolbar.style,-"borderRadius","16px");mxUtils.setPrefixedStyle(this.chromelessToolbar.style,"transition","opacity 600ms ease-in-out");var 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=+"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,Q,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",Q);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 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 B=this.menus.get("pages");null!=B&&mxEvent.addListener(k,"click",mxUtils.bind(this,function(aa){var P=new mxPopupMenu(B.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 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||+"",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 Q=new mxPopupMenu(C.funct);Q.smartSeparators=!0;Q.showDisabled=!0;Q.autoExpand=!0;Q.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(Q,arguments);Q.destroy()});var ba=mxUtils.getOffset(k);Q.popup(ba.x,ba.y+k.offsetHeight,null,aa);mxEvent.addListener(Q.div,+"mouseleave",mxUtils.bind(this,function(){Q.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 E=null,D=null,G=mxUtils.bind(this,function(aa){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=null);E=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(this.chromelessToolbar,0);E=null;D=window.setTimeout(mxUtils.bind(this,function(){this.chromelessToolbar.style.display="none";D=null}),+600)}),aa||200)}),I=mxUtils.bind(this,function(aa){null!=E&&(window.clearTimeout(E),E=null);null!=D&&(window.clearTimeout(D),D=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 Q=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=+Q.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));Q=mxUtils.getCurrentStyle(this.editor.graph.container);this.layersDialog.style.zIndex=+Q.zIndex;document.body.appendChild(this.layersDialog);this.editor.fireEvent(new mxEventObject("layersDialogShown"))}mxEvent.consume(aa)}),Editor.layersImage,mxResources.get("layers")),N=a.getModel();N.addListener(mxEvent.CHANGE,function(){M.style.display=1<N.getChildCount(N.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 Q=null!=this.currentPage?this.currentPage.getId():null;this.editor.editAsNew(this.getEditBlankXml(),null,null,Q)}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 V=null==g.refreshBtn.url?null:Graph.sanitizeLink(g.refreshBtn.url);+d(mxUtils.bind(this,function(aa){null!=V?window.location.href=V: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)?-G():J(100);mxEvent.consume(aa)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(aa){mxEvent.isTouchEvent(aa)||J(30)}));var X=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(aa,P){this.startX=P.getGraphX();this.startY=P.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(aa,P){},mouseUp:function(aa,P){mxEvent.isTouchEvent(P.getEvent())&&Math.abs(this.scrollLeft--a.container.scrollLeft)<X&&Math.abs(this.scrollTop-a.container.scrollTop)<X&&Math.abs(this.startX-P.getGraphX())<X&&Math.abs(this.startY-P.getGraphY())<X&&(0<parseFloat(f.chromelessToolbar.style.opacity||0)?G():J(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var T=a.view.validate,N=new mxPoint,ca=!1,H=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=f.currentPage&&H!=f.currentPage){H=f.currentPage;-ca=!0;var aa=a.getBoundingBoxFromGeometry(a.model.getCells(),!0,null,!0);null==aa&&(aa=new mxRectangle(a.view.translate.x*a.view.scale,a.view.translate.y*a.view.scale));aa=a.getPageLayout(aa,N,1);var P=a.getDefaultTranslate(aa);this.x0=aa.x;this.y0=aa.y;if(P.x!=this.translate.x||P.y!=this.translate.y)this.invalidate(),this.translate.x=P.x,this.translate.y=P.y}P=a.getPagePadding();var ba=a.getPageSize();aa=P.x-(this.x0||0)*ba.width;P=P.y-(this.y0||0)*ba.height;if(this.translate.x!=aa||this.translate.y!=-P)this.invalidate(),this.translate.x=aa,this.translate.y=P}T.apply(this,arguments)};if(!a.isViewer()){var S=a.sizeDidChange;a.sizeDidChange=function(){var aa=ca;ca=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var P=this.getPageLayout(),ba=this.getDefaultTranslate(P),ma=this.view.translate.x,La=this.view.translate.y;if(ba.x!=ma||ba.y!=La){this.view.x0=P.x;this.view.y0=P.y;this.autoTranslate=!0;this.view.setTranslate(ba.x,ba.y);-this.autoTranslate=!1;aa||(this.container.scrollLeft+=Math.round((ba.x-ma)*this.view.scale),this.container.scrollTop+=Math.round((ba.y-La)*this.view.scale));return}}S.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var fa=a.view.getBackgroundPane(),la=a.view.getDrawPane();a.cumulativeZoomFactor=1;var O=null,V=null,Y=null,ha=null,ia=null,ta=function(aa){null!=O&&window.clearTimeout(O);0<=aa&&window.setTimeout(function(){if(!a.isMouseDown||-ha)O=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&(null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform",null)),la.style.transformOrigin="",fa.style.transformOrigin="",mxClient.IS_SF?(la.style.transform="scale(1)",fa.style.transform="scale(1)",window.setTimeout(function(){la.style.transform="";-fa.style.transform=""},0)):(la.style.transform="",fa.style.transform=""),a.view.getDecoratorPane().style.opacity="",a.view.getOverlayPane().style.opacity="");var P=new mxPoint(a.container.scrollLeft,a.container.scrollTop),ba=mxUtils.getOffset(a.container),ma=a.view.scale,La=0,na=0;null!=V&&(La=a.container.offsetWidth/2-V.x+ba.x,na=a.container.offsetHeight/2-V.y+ba.y);a.zoom(a.cumulativeZoomFactor,null,a.isFastZoomEnabled()?20:null);a.view.scale!=ma&&(null!=Y&&(La+=P.x-Y.x,na+=P.y-Y.y),null!=b&&f.chromelessResize(!1,-null,La*(a.cumulativeZoomFactor-1),na*(a.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(a.container)||0==La&&0==na||(a.container.scrollLeft-=La*(a.cumulativeZoomFactor-1),a.container.scrollTop-=na*(a.cumulativeZoomFactor-1)));null!=ia&&la.setAttribute("filter",ia);a.cumulativeZoomFactor=1;ia=ha=V=Y=O=null}),null!=aa?aa:a.isFastZoomEnabled()?f.wheelZoomDelay:f.lazyZoomDelay)},0)};a.lazyZoom=function(aa,P,ba,ma){ma=null!=ma?ma:this.zoomFactor;(P=P||!a.scrollbars)&&(V=new mxPoint(a.container.offsetLeft++"mousemove",mxUtils.bind(this,function(aa){mxEvent.isTouchEvent(aa)||(mxEvent.isShiftDown(aa)||I(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():I(100)}));mxEvent.addListener(this.chromelessToolbar,"mousemove",mxUtils.bind(this,function(aa){mxEvent.isShiftDown(aa)?+G():I(100);mxEvent.consume(aa)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(aa){mxEvent.isTouchEvent(aa)||I(30)}));var X=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(aa,Q){this.startX=Q.getGraphX();this.startY=Q.getGraphY();this.scrollLeft=a.container.scrollLeft;this.scrollTop=a.container.scrollTop},mouseMove:function(aa,Q){},mouseUp:function(aa,Q){mxEvent.isTouchEvent(Q.getEvent())&&Math.abs(this.scrollLeft-+a.container.scrollLeft)<X&&Math.abs(this.scrollTop-a.container.scrollTop)<X&&Math.abs(this.startX-Q.getGraphX())<X&&Math.abs(this.startY-Q.getGraphY())<X&&(0<parseFloat(f.chromelessToolbar.style.opacity||0)?G():I(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var T=a.view.validate,O=new mxPoint,ca=!1,H=null;a.view.validate=function(){if(null!=a.container&&mxUtils.hasScrollbars(a.container)){if(null!=f.currentPage&&H!=f.currentPage){H=f.currentPage;+ca=!0;var aa=a.getBoundingBoxFromGeometry(a.model.getCells(),!0,null,!0);null==aa&&(aa=new mxRectangle(a.view.translate.x*a.view.scale,a.view.translate.y*a.view.scale));aa=a.getPageLayout(aa,O,1);var Q=a.getDefaultTranslate(aa);this.x0=aa.x;this.y0=aa.y;if(Q.x!=this.translate.x||Q.y!=this.translate.y)this.invalidate(),this.translate.x=Q.x,this.translate.y=Q.y}Q=a.getPagePadding();var ba=a.getPageSize();aa=Q.x-(this.x0||0)*ba.width;Q=Q.y-(this.y0||0)*ba.height;if(this.translate.x!=aa||this.translate.y!=+Q)this.invalidate(),this.translate.x=aa,this.translate.y=Q}T.apply(this,arguments)};if(!a.isViewer()){var S=a.sizeDidChange;a.sizeDidChange=function(){var aa=ca;ca=!1;if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var Q=this.getPageLayout(),ba=this.getDefaultTranslate(Q),ma=this.view.translate.x,Na=this.view.translate.y;if(ba.x!=ma||ba.y!=Na){this.view.x0=Q.x;this.view.y0=Q.y;this.autoTranslate=!0;this.view.setTranslate(ba.x,ba.y);+this.autoTranslate=!1;aa||(this.container.scrollLeft+=Math.round((ba.x-ma)*this.view.scale),this.container.scrollTop+=Math.round((ba.y-Na)*this.view.scale));return}}S.apply(this,arguments)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var fa=a.view.getBackgroundPane(),la=a.view.getDrawPane();a.cumulativeZoomFactor=1;var P=null,W=null,Y=null,ha=null,ia=null,ta=function(aa){null!=P&&window.clearTimeout(P);0<=aa&&window.setTimeout(function(){if(!a.isMouseDown||+ha)P=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&(null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform",null)),la.style.transformOrigin="",fa.style.transformOrigin="",mxClient.IS_SF?(la.style.transform="scale(1)",fa.style.transform="scale(1)",window.setTimeout(function(){la.style.transform="";+fa.style.transform=""},0)):(la.style.transform="",fa.style.transform=""),a.view.getDecoratorPane().style.opacity="",a.view.getOverlayPane().style.opacity="");var Q=new mxPoint(a.container.scrollLeft,a.container.scrollTop),ba=mxUtils.getOffset(a.container),ma=a.view.scale,Na=0,oa=0;null!=W&&(Na=a.container.offsetWidth/2-W.x+ba.x,oa=a.container.offsetHeight/2-W.y+ba.y);a.zoom(a.cumulativeZoomFactor,null,a.isFastZoomEnabled()?20:null);a.view.scale!=ma&&(null!=Y&&(Na+=Q.x-Y.x,oa+=Q.y-Y.y),null!=b&&f.chromelessResize(!1,+null,Na*(a.cumulativeZoomFactor-1),oa*(a.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(a.container)||0==Na&&0==oa||(a.container.scrollLeft-=Na*(a.cumulativeZoomFactor-1),a.container.scrollTop-=oa*(a.cumulativeZoomFactor-1)));null!=ia&&la.setAttribute("filter",ia);a.cumulativeZoomFactor=1;ia=ha=W=Y=P=null}),null!=aa?aa:a.isFastZoomEnabled()?f.wheelZoomDelay:f.lazyZoomDelay)},0)};a.lazyZoom=function(aa,Q,ba,ma){ma=null!=ma?ma:this.zoomFactor;(Q=Q||!a.scrollbars)&&(W=new mxPoint(a.container.offsetLeft+a.container.clientWidth/2,a.container.offsetTop+a.container.clientHeight/2));aa?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale+.05)/this.view.scale:(this.cumulativeZoomFactor*=ma,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this.view.scale-.05)/this.view.scale:(this.cumulativeZoomFactor/=ma,this.cumulativeZoomFactor=Math.round(this.view.scale*-this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;if(a.isFastZoomEnabled()){null==ia&&""!=la.getAttribute("filter")&&(ia=la.getAttribute("filter"),la.removeAttribute("filter"));Y=new mxPoint(a.container.scrollLeft,a.container.scrollTop);aa=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);ma=P||null==V?a.container.scrollLeft+a.container.clientWidth/-2:V.x+a.container.scrollLeft-a.container.offsetLeft;var La=P||null==V?a.container.scrollTop+a.container.clientHeight/2:V.y+a.container.scrollTop-a.container.offsetTop;la.style.transformOrigin=ma+"px "+La+"px";la.style.transform="scale("+aa+")";fa.style.transformOrigin=ma+"px "+La+"px";fa.style.transform="scale("+aa+")";null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node?(ma=a.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(ma.style,"transform-origin",(P||null==V?a.container.clientWidth/-2+a.container.scrollLeft-ma.offsetLeft+"px":V.x+a.container.scrollLeft-ma.offsetLeft-a.container.offsetLeft+"px")+" "+(P||null==V?a.container.clientHeight/2+a.container.scrollTop-ma.offsetTop+"px":V.y+a.container.scrollTop-ma.offsetTop-a.container.offsetTop+"px")),mxUtils.setPrefixedStyle(ma.style,"transform","scale("+aa+")")):a.view.validateBackgroundStyles(aa,ma,La);a.view.getDecoratorPane().style.opacity="0";a.view.getOverlayPane().style.opacity="0";null!=f.hoverIcons&&f.hoverIcons.reset();a.fireEvent(new mxEventObject("zoomPreview",-"factor",aa))}ta(a.isFastZoomEnabled()?ba:0)};mxEvent.addGestureListeners(a.container,function(aa){null!=O&&window.clearTimeout(O)},null,function(aa){1!=a.cumulativeZoomFactor&&ta(0)});mxEvent.addListener(a.container,"scroll",function(aa){null==O||a.isMouseDown||1==a.cumulativeZoomFactor||ta(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(aa,P,ba,ma,La){a.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!a.scrollbars&&!ba&&a.isScrollWheelEvent(aa))ba=-a.view.getTranslate(),ma=40/a.view.scale,mxEvent.isShiftDown(aa)?a.view.setTranslate(ba.x+(P?-ma:ma),ba.y):a.view.setTranslate(ba.x,ba.y+(P?ma:-ma));else if(ba||a.isZoomWheelEvent(aa))for(var na=mxEvent.getSource(aa);null!=na;){if(na==a.container)return a.tooltipHandler.hideTooltip(),V=null!=ma&&null!=La?new mxPoint(ma,La):new mxPoint(mxEvent.getClientX(aa),mxEvent.getClientY(aa)),ha=ba,ba=a.zoomFactor,ma=null,aa.ctrlKey&&null!=aa.deltaY&&40>Math.abs(aa.deltaY)&&Math.round(aa.deltaY)!=aa.deltaY?ba=-1+Math.abs(aa.deltaY)/20*(ba-1):null!=aa.movementY&&"pointermove"==aa.type&&(ba=1+Math.max(1,Math.abs(aa.movementY))/20*(ba-1),ma=-1),a.lazyZoom(P,null,ma,ba),mxEvent.consume(aa),!1;na=na.parentNode}}),a.container);a.panningHandler.zoomGraph=function(aa){a.cumulativeZoomFactor=aa.scale;a.lazyZoom(0<aa.scale,!0);mxEvent.consume(aa)}};EditorUi.prototype.addChromelessToolbarItems=function(a){a(mxUtils.bind(this,function(b){this.actions.get("print").funct();mxEvent.consume(b)}),Editor.printImage,mxResources.get("print"))};+this.cumulativeZoomFactor*100)/100/this.view.scale);this.cumulativeZoomFactor=Math.max(.05,Math.min(this.view.scale*this.cumulativeZoomFactor,160))/this.view.scale;if(a.isFastZoomEnabled()){null==ia&&""!=la.getAttribute("filter")&&(ia=la.getAttribute("filter"),la.removeAttribute("filter"));Y=new mxPoint(a.container.scrollLeft,a.container.scrollTop);aa=Math.round(Math.round(this.view.scale*this.cumulativeZoomFactor*100)/100*20)/(20*this.view.scale);ma=Q||null==W?a.container.scrollLeft+a.container.clientWidth/+2:W.x+a.container.scrollLeft-a.container.offsetLeft;var Na=Q||null==W?a.container.scrollTop+a.container.clientHeight/2:W.y+a.container.scrollTop-a.container.offsetTop;la.style.transformOrigin=ma+"px "+Na+"px";la.style.transform="scale("+aa+")";fa.style.transformOrigin=ma+"px "+Na+"px";fa.style.transform="scale("+aa+")";null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node?(ma=a.view.backgroundPageShape.node,mxUtils.setPrefixedStyle(ma.style,"transform-origin",(Q||null==W?a.container.clientWidth/+2+a.container.scrollLeft-ma.offsetLeft+"px":W.x+a.container.scrollLeft-ma.offsetLeft-a.container.offsetLeft+"px")+" "+(Q||null==W?a.container.clientHeight/2+a.container.scrollTop-ma.offsetTop+"px":W.y+a.container.scrollTop-ma.offsetTop-a.container.offsetTop+"px")),mxUtils.setPrefixedStyle(ma.style,"transform","scale("+aa+")")):a.view.validateBackgroundStyles(aa,ma,Na);a.view.getDecoratorPane().style.opacity="0";a.view.getOverlayPane().style.opacity="0";null!=f.hoverIcons&&f.hoverIcons.reset();a.fireEvent(new mxEventObject("zoomPreview",+"factor",aa))}ta(a.isFastZoomEnabled()?ba:0)};mxEvent.addGestureListeners(a.container,function(aa){null!=P&&window.clearTimeout(P)},null,function(aa){1!=a.cumulativeZoomFactor&&ta(0)});mxEvent.addListener(a.container,"scroll",function(aa){null==P||a.isMouseDown||1==a.cumulativeZoomFactor||ta(0)});mxEvent.addMouseWheelListener(mxUtils.bind(this,function(aa,Q,ba,ma,Na){a.fireEvent(new mxEventObject("wheel"));if(null==this.dialogs||0==this.dialogs.length)if(!a.scrollbars&&!ba&&a.isScrollWheelEvent(aa))ba=+a.view.getTranslate(),ma=40/a.view.scale,mxEvent.isShiftDown(aa)?a.view.setTranslate(ba.x+(Q?-ma:ma),ba.y):a.view.setTranslate(ba.x,ba.y+(Q?ma:-ma));else if(ba||a.isZoomWheelEvent(aa))for(var oa=mxEvent.getSource(aa);null!=oa;){if(oa==a.container)return a.tooltipHandler.hideTooltip(),W=null!=ma&&null!=Na?new mxPoint(ma,Na):new mxPoint(mxEvent.getClientX(aa),mxEvent.getClientY(aa)),ha=ba,ba=a.zoomFactor,ma=null,aa.ctrlKey&&null!=aa.deltaY&&40>Math.abs(aa.deltaY)&&Math.round(aa.deltaY)!=aa.deltaY?ba=+1+Math.abs(aa.deltaY)/20*(ba-1):null!=aa.movementY&&"pointermove"==aa.type&&(ba=1+Math.max(1,Math.abs(aa.movementY))/20*(ba-1),ma=-1),a.lazyZoom(Q,null,ma,ba),mxEvent.consume(aa),!1;oa=oa.parentNode}}),a.container);a.panningHandler.zoomGraph=function(aa){a.cumulativeZoomFactor=aa.scale;a.lazyZoom(0<aa.scale,!0);mxEvent.consume(aa)}};EditorUi.prototype.addChromelessToolbarItems=function(a){a(mxUtils.bind(this,function(b){this.actions.get("print").funct();mxEvent.consume(b)}),Editor.printImage,mxResources.get("print"))};EditorUi.prototype.isPagesEnabled=function(){return this.editor.editable||"1"!=urlParams["hide-pages"]};EditorUi.prototype.createTemporaryGraph=function(a){return Graph.createOffscreenGraph(a)};EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0<a.length&&(a="#"+a);this.editor.graph.addClickHandler(a)};EditorUi.prototype.toggleFormatPanel=function(a){a=null!=a?a:0==this.formatWidth;if(null!=this.format){var b=Editor.transitionDelay;mxUtils.setPrefixedStyle(this.formatContainer.style,"transition","width "+b+"s ease-in-out");window.setTimeout(mxUtils.bind(this,function(){this.formatWidth=a?240:0;this.hsplitPosition=Math.min(this.container.clientWidth-this.hsplit.clientWidth-this.formatWidth,this.hsplitPosition);this.refresh();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.formatContainer.style,"transition",null);this.refresh(!0);this.fireEvent(new mxEventObject("formatWidthChanged"))}),1E3*b)},0))}};EditorUi.prototype.isFormatPanelVisible=function(){return 0<this.formatWidth};EditorUi.prototype.lightboxFit=function(a){if(this.isDiagramEmpty())this.editor.graph.view.setScale(1);else{var b=urlParams.border,f=60;null!=b&&(f=parseInt(b));this.editor.graph.maxFitScale=this.lightboxMaxFitScale;this.editor.graph.fit(f,null,null,null,null,null,a);this.editor.graph.maxFitScale=null}};@@ -2278,14 +2278,14 @@ EditorUi.prototype.showDataDialog=function(a){null!=a&&"undefined"!==typeof windEditorUi.prototype.showBackgroundImageDialog=function(a,b){a=null!=a?a:mxUtils.bind(this,function(e){e=new ChangePageSetup(this,null,e);e.ignoreColor=!0;this.editor.graph.model.execute(e)});var f=mxUtils.prompt(mxResources.get("backgroundImage"),null!=b?b.src:"");null!=f&&0<f.length?(b=new Image,b.onload=function(){a(new mxImage(f,b.width,b.height),!1)},b.onerror=function(){a(null,!0);mxUtils.alert(mxResources.get("fileNotFound"))},b.src=f):a(null)};EditorUi.prototype.setBackgroundImage=function(a){this.editor.graph.setBackgroundImage(a);this.editor.graph.view.validateBackgroundImage();this.fireEvent(new mxEventObject("backgroundImageChanged"))};EditorUi.prototype.confirm=function(a,b,f){mxUtils.confirm(a)?null!=b&&b():null!=f&&f()};EditorUi.prototype.createOutline=function(a){var b=new mxOutline(this.editor.graph);mxEvent.addListener(window,"resize",function(){b.update(!1)});return b};EditorUi.prototype.altShiftActions={65:"connectionArrows",82:"clearWaypoints",76:"editLink",79:"connectionPoints",81:"editConnectionPoints",84:"editTooltip",86:"pasteSize",70:"copySize",66:"copyData",69:"pasteData"};EditorUi.prototype.ctrlAltShiftActions={70:"bringForward",66:"sendBackward",88:"copyAsSvg"};EditorUi.prototype.ctrlAltActions={88:"copyAsImage"};-EditorUi.prototype.createKeyHandler=function(a){function b(w,y,B){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(B){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;B=null;1==e.getSelectionCount()&&e.model.isVertex(E)&&null!=e.layoutManager&&!e.isCellLocked(E)&&(B=e.layoutManager.getLayout(G));if(null!=B&&B.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),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)||+EditorUi.prototype.createKeyHandler=function(a){function b(w,y,C){if(!e.isSelectionEmpty()&&e.isEnabled()){y=null!=y?y:1;var E=e.getCompositeParents(e.getSelectionCells()),D=0<E.length?E[0]:null;if(null!=D)if(C){e.getModel().beginUpdate();try{for(D=0;D<E.length;D++)if(e.getModel().isVertex(E[D])&&e.isCellResizable(E[D])){var G=e.getCellGeometry(E[D]);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(E[D],+G))}}finally{e.getModel().endUpdate()}}else{G=e.model.getParent(D);var I=e.getView().scale;C=null;1==e.getSelectionCount()&&e.model.isVertex(D)&&null!=e.layoutManager&&!e.isCellLocked(D)&&(C=e.layoutManager.getLayout(G));if(null!=C&&C.constructor==mxStackLayout)y=G.getIndex(D),37==w||38==w?e.model.add(G,D,Math.max(0,y-1)):(39==w||40==w)&&e.model.add(G,D,Math.min(e.model.getChildCount(G),y+1));else{var M=e.graphHandler;null!=M&&(null==M.first&&M.start(D,0,0,e.getMovableCells(E)),null!=M.first&&(D=+E=0,37==w?E=-y:38==w?D=-y:39==w?E=y:40==w&&(D=y),M.currentDx+=E*I,M.currentDy+=D*I,M.checkPreview(),M.updatePreview()),null!=h&&window.clearTimeout(h),h=window.setTimeout(function(){if(null!=M.first){var N=M.roundLength(M.currentDx/I),L=M.roundLength(M.currentDy/I);M.moveCells(M.cells,N,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)||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 B=document.getElementById("geOmniSearch");null!=B&&30<B.clientWidth&&B.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 B=-e.connectVertex(e.getSelectionCell(),m[w.keyCode],e.defaultEdgeLength,w,!0);null!=B&&0<B.length&&(1==B.length&&e.model.isEdge(B[0])?e.setSelectionCell(e.model.getTerminal(B[0],!1)):e.setSelectionCell(B[B.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,B,D){var E=this.actions.get(B);null!=E&&(B=function(){E.isEnabled()&&E.funct.apply(this,arguments)},y?D?g.bindControlShiftKey(w,B):g.bindControlKey(w,B):D?g.bindShiftKey(w,B):g.bindKey(w,B))});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()});+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,E){var D=this.actions.get(C);null!=D&&(C=function(){D.isEnabled()&&D.funct.apply(this,arguments)},y?E?g.bindControlShiftKey(w,C):g.bindControlKey(w,C):E?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,@@ -2340,23 +2340,23 @@ Sidebar.prototype.getLibsForStyle=function(a){return null!=this.styleToLibs?thisSidebar.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 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 B=w[y];if(0==p==(null==a.get(B))&&null==u.get(B)&&(u.put(B,B),!this.isEntryIgnored(B,-d)&&(m.push(B),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=+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){D=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="";O()}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 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}),B="about deleteAll showBoundingBox createSidebarEntry downloadDesktop toggleGoogleFonts".split(" "),D=mxUtils.bind(this,function(H){var S=null,fa;for(fa in e.actions.actions){var la=0>B.indexOf(fa)&&"test"!=fa.substring(0,4)?e.actions.get(fa):null;if(null!=la&&la.isEnabled()&&la.visible){if(fa.toLowerCase()==H)return la;for(var O=H.toLowerCase().split(" "),V=0,Y=0;Y<O.length;Y++)0==O[Y].length?V++:(0<=fa.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 fa(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;fa(V);for(O=0;O<w.length;O++)w[O]!=V&&fa(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,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,fa,la,O){if(this.currentSearch==H){S=null!=S?S:[];Q=!1;W++;this.insertSearchHint(h,M,T,W,S,fa,la,O);0==S.length&&1==W&&(M="");null!=G.parentNode&&G.parentNode.removeChild(G);for(fa=0;fa<S.length;fa++)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[fa]);la?(J.removeAttribute("disabled"),J.innerHTML="",mxUtils.write(J,mxResources.get("moreResults"))):-(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,+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(" "),E=mxUtils.bind(this,function(H){var S=null,fa;for(fa in e.actions.actions){var la=0>C.indexOf(fa)&&"test"!=fa.substring(0,4)?e.actions.get(fa):null;if(null!=la&&la.isEnabled()&&la.visible){if(fa.toLowerCase()==H)return la;for(var P=H.toLowerCase().split(" "),W=0,Y=0;Y<P.length;Y++)0==P[Y].length?W++:(0<=fa.toLowerCase().indexOf(P[Y])||+0<=la.getTitle().toLowerCase().indexOf(P[Y]))&&W++;W==P.length&&(0>w.indexOf(S)||null!=S&&!S.isEnabled())&&(S=la)}}return S}),D=null;e.addMenuHandler(p,mxUtils.bind(this,function(H,S){function fa(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!=D||!ia.isEnabled()||0!=p.value.length&&W!=ia||b(ta,function(){y(ia,arguments);g.container.focus()})}}var la=+p.value.toLowerCase();D=null;var P=H.addItem(mxResources.get("searchShapes"),null,mxUtils.bind(this,function(){ca()}),S);b(P,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 W=0<p.value.length?E(la):null;fa(W);for(P=0;P<w.length;P++)w[P]!=W&&fa(w[P]);if(0<la.length&&null!=e.pages)for(H.addSeparator(),P=0;P<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==D&&b(aa,ta);return!0}return!1}(e.pages[P]);P++);if(0<la.length&&null!=e.sidebar&&null!=e.sidebar.entries)for(H.addSeparator(),P=0;P<e.sidebar.entries.length;P++)for(var Y=e.sidebar.entries[P].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 Q=+e.sidebar.showPalettes(ta.prefix||"",ta.libs||[ta.id],!0);p.value="";null!=Q&&1<Q.length&&(null==Q[1].firstChild||null!=Q[1].firstChild.firstChild&&"none"!=Q[1].firstChild.style.display||Q[0].click(),Q[0].scrollIntoView({behavior:"smooth"}))},ia=H.addItem(ia.title+" ("+mxResources.get("openLibrary")+")",null,aa,S),null==D&&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 I=mxUtils.button(mxResources.get("moreResults"),function(){ca()});I.setAttribute("title",mxResources.get("moreResults"));I.className="geBtn gePrimaryBtn";I.style.borderRadius="16px";I.style.padding="8px 12px";G.appendChild(I);h.appendChild(G);var M="",N=!1,L=!1,V=0,X={},T=12,O=mxUtils.bind(this,function(){N=!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&&(O(),M=p.value,X={},L=!1,V=0),!N&&!L)){I.setAttribute("disabled","true");G.style.display="flex";I.style.cursor="wait";I.innerHTML="";mxUtils.write(I,mxResources.get("loading")+"...");N=!0;var H={};this.currentSearch=H;try{this.searchEntries(M,T,V,mxUtils.bind(this,+function(S,fa,la,P){if(this.currentSearch==H){S=null!=S?S:[];N=!1;V++;this.insertSearchHint(h,M,T,V,S,fa,la,P);0==S.length&&1==V&&(M="");null!=G.parentNode&&G.parentNode.removeChild(G);for(fa=0;fa<S.length;fa++)mxUtils.bind(this,function(W){try{var Y=W();null!=this.closedLibraryOpacity&&this.searchClosedLibraries&&this.isEntryIgnored(W,!1)&&(Y.style.opacity=this.closedLibraryOpacity);null==X[Y.innerHTML]?(X[Y.innerHTML]=null!=W.parentLibraries?W.parentLibraries.slice():[],h.appendChild(Y)):null!=+W.parentLibraries&&(X[Y.innerHTML]=X[Y.innerHTML].concat(W.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[fa]);la?(I.removeAttribute("disabled"),I.innerHTML="",mxUtils.write(I,mxResources.get("moreResults"))):+(I.innerHTML=mxResources.get("reset"),G.style.display="none",L=!0);I.style.cursor="";h.appendChild(G)}}),mxUtils.bind(this,function(){I.style.cursor=""}),this.searchClosedLibraries)}catch(S){e.handleError(S)}}}else O(),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!=D?(D(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):N||(G.style.display=L?"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;"+@@ -2468,17 +2468,17 @@ a.width,(f-2*this.thumbBorder)/a.height))/100,this.graph.view.scaleAndTranslate(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,u,w,y,B){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,B),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,B),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.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 E=document.createElement("a"),D=2*this.thumbBorder;E.style.width=k+D+"px";E.style.height=u+D+"px";mxEvent.addListener(E,"click",function(I){mxEvent.consume(I)});var G=new mxRectangle(0,0,g,d);null!=a&&0<a.length?(D=a,a=this.graph.cloneCells(a),this.graph.pasteCellStyles(this.graph.includeDescendants(D),this.initialDefaultVertexStyle,this.initialDefaultEdgeStyle),+null!=w?(E.className="geButton",E.style.backgroundImage="url("+w+")",E.style.backgroundRepeat="no-repeat",E.style.backgroundPosition="center",E.style.backgroundSize="24px 24px"):(E.className="geItem",this.createThumb(D,k,u,E,b,f,e,g,d)),1<a.length||a[0].vertex?(e=this.createDragSource(E,this.createDropHandler(a,!0,h,G,y,C),this.createDragPreview(g,d),a,G,y),this.addClickHandler(E,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(E,this.createDropHandler(a,!1,h,G,y,C),this.createDragPreview(g,d),a,G,y),this.addClickHandler(E,e,a,p)),!mxClient.IS_IOS&&m&&mxEvent.addGestureListeners(E,null,mxUtils.bind(this,function(I){mxEvent.isMouseEvent(I)&&this.showTooltip(E,a,G.width,G.height,b,f)}))):(E.style.backgroundImage="url("+Editor.svgBrokenImage.src+")",E.setAttribute("title",b));return E};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 B=h.view.scale,D=h.view.translate,E=(k+D.x)*B,G=(u+D.y)*B,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){B=h.view.scale;D=h.view.translate;E=(k+D.x)*B;G=(u+D.y)*B;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.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,E=h.view.translate,D=(k+E.x)*C,G=(u+E.y)*C,I=h.cloneCells(a);h.splitEdge(p,I,null,k-e.width/2,u-e.height/2,D,G);y=I}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 N=h.layoutManager.getLayout(p);if(null!=N){C=h.view.scale;E=h.view.translate;D=(k+E.x)*C;G=(u+E.y)*C;for(var L=0;L<y.length;L++)N.moveCell(y[L],D,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(V){this.editorUi.handleError(V)}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 u=null;m.model.beginUpdate();try{var w=m.getCellGeometry(a),y=m.getCellGeometry(b[e]),B=m.model.getParent(a),D=!0;if(null!=m.layoutManager){var E=m.layoutManager.getLayout(B);null!=E&&E.constructor==mxStackLayout&&(D=!1)}k=m.model.isEdge(a)?null:m.view.getState(B);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!=B)k=m.view.getState(Q),null!=k&&(J=k.origin,B=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?B: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(B)){var N=m.view.getState(B);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,+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),E=!0;if(null!=m.layoutManager){var D=m.layoutManager.getLayout(C);null!=D&&D.constructor==mxStackLayout&&(E=!1)}k=m.model.isEdge(a)?null:m.view.getState(C);var G=D=0;if(null!=k){var I=k.origin;D=I.x;+G=I.y}var M=!m.isTableRow(a)&&!m.isTableCell(a)&&(m.model.isEdge(a)||null!=w&&!w.relative&&E),N=m.getCellAt((p.x+D+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!=N&&N!=C)k=m.view.getState(N),null!=k&&(I=k.origin,C=N,M=!0,m.model.isEdge(a)||(p.x-=I.x-D,p.y-=I.y-G));else if(!E||m.isTableRow(a)||m.isTableCell(a))p.x+=D,p.y+=G;D=y.x;G=y.y;m.model.isEdge(b[e])&&(G=D=0);k=b=m.importCells(b,p.x-(M?D: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]),V=null!=L?L.getTerminalPoint(!0):null;L.points=null;if(null!=V)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==V.x&&T.y==V.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 O=m.view.getState(C);I=O.cell!=m.view.currentRoot?O.origin:new mxPoint(0,0);m.cellsMoved(b,I.x,I.y,null,null,!0)}}else null!=d&&(y=m.getCellGeometry(b[d]),D=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,D,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+@@ -2486,36 +2486,36 @@ e.width,e.y),!1)):f==mxConstants.DIRECTION_SOUTH?(e.height=d,e.y=p.y+p.height,e.e.width/2+d:f==mxConstants.DIRECTION_SOUTH?e.y=e.y+p.height/2+e.height/2+d:f==mxConstants.DIRECTION_WEST&&(e.x=e.x-p.width/2-e.width/2-d),g.model.isEdge(b)&&null!=e.getTerminalPoint(!0)&&null!=b.getTerminal(!1)&&(p=g.getCellGeometry(b.getTerminal(!1)),null!=p&&(f==mxConstants.DIRECTION_NORTH?(e.x-=p.getCenterX(),e.y-=p.getCenterY()+p.height/2):f==mxConstants.DIRECTION_EAST?(e.x-=p.getCenterX()-p.width/2,e.y-=p.getCenterY()):f==mxConstants.DIRECTION_SOUTH?(e.x-=p.getCenterX(),e.y-=p.getCenterY()-p.height/2):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,za){var Aa=mxUtils.createImage(na.src);Aa.style.width=na.width+"px";Aa.style.height=na.height+"px";null!=za&&Aa.setAttribute("title",za);mxUtils.setOpacity(Aa,na==this.refreshTarget?30:20);Aa.style.position="absolute";Aa.style.cursor="crosshair";return Aa}function m(na,za,Aa,Ma){null!=Ma.parentNode&&(mxUtils.contains(Aa,na,za)?(mxUtils.setOpacity(Ma,100),V=Ma):mxUtils.setOpacity(Ma,Ma==H?30:20));return Aa}var p=this.editorUi,k=-p.editor.graph,u=null,w=null,y=this;d=0;for(var B=this.livePreview,D=0;D<e.length&&B;D++)d+=k.model.getDescendants(e[D]).length,B=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,za,Aa,Ma,Qa){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=e&&null!=-K&&V==H){var Ja=na.isCellSelected(K.cell)?na.getSelectionCells():[K.cell];na.updateShapes(na.model.isEdge(K.cell)?e[0]:e[w],Ja,!0);na.setSelectionCells(Ja)}else null!=e&&null!=V&&null!=M&&V!=H?(Ja=na.model.isEdge(M.cell)||null==u?w:u,na.setSelectionCells(this.dropAndConnect(M.cell,e,O,Ja,za,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);B&&(G.createDragElement=mxUtils.bind(this,function(){return G.createPreviewElement(this.graph)}),-G.createPreviewElement=mxUtils.bind(this,function(na){var za=document.createElement("a");za.className="geItem";za.style.overflow="visible";na=na.view.scale;za.style.width=na*Math.max(1,g.width)+"px";za.style.height=na*Math.max(1,g.height)+"px";mxUtils.setOpacity(za,50);var Aa=k.cloneCells(e);this.graph.pasteCellStyles(k.includeDescendants(Aa),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);y.createThumb(Aa,na*Math.max(1,g.width),na*Math.max(1,g.height),za,null,null,null,null,null,k.shapeBackgroundColor,-0,na);return za}));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,fa=h(this.roundDrop),-la=h(this.roundDrop),O=mxConstants.DIRECTION_NORTH,V=null,Y=G.createPreviewElement;G.createPreviewElement=function(na){var za=Y.apply(this,arguments);this.previewElementWidth=za.style.width;this.previewElementHeight=za.style.height;za.style.pointerEvents="none";return za};var ha=G.dragEnter;G.dragEnter=function(na,za){null!=p.hoverIcons&&p.hoverIcons.setDisplay("none");ha.apply(this,arguments)};var ia=G.dragExit;G.dragExit=function(na,za){null!=p.hoverIcons&&p.hoverIcons.setDisplay("");ia.apply(this,-arguments)};G.dragOver=function(na,za){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=V&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var Aa=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 Ma=na.model.isEdge(M.cell)||null!=w?w:u,Qa=y.getDropAndConnectGeometry(M.cell,e[Ma],O,e),Ja=na.model.isEdge(M.cell)?-null:na.getCellGeometry(M.cell),Ia=na.getCellGeometry(e[Ma]),ra=na.model.getParent(M.cell),Da=Aa.translate.x*Aa.scale,Va=Aa.translate.y*Aa.scale;null!=Ja&&!Ja.relative&&na.model.isVertex(ra)&&ra!=Aa.currentRoot&&(Va=Aa.getState(ra),Da=Va.x,Va=Va.y);Ja=Ia.x;Ia=Ia.y;na.model.isEdge(e[Ma])&&(Ia=Ja=0);this.previewElement.style.left=(Qa.x-Ja)*Aa.scale+Da+"px";this.previewElement.style.top=(Qa.y-Ia)*Aa.scale+Va+"px";1==e.length&&(this.previewElement.style.width=Qa.width*Aa.scale+"px",this.previewElement.style.height=-Qa.height*Aa.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*Aa.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)--g.height*Aa.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,za,Aa,Ma){var Qa=mxEvent.isAltDown(Ma)||-null==e?null:na.getCellAt(za,Aa,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 Ja=this.graph.getModel().getParent(Qa);this.graph.getModel().isVertex(Ja)&&this.graph.isCellConnectable(Ja)&&(Qa=Ja)}na.isCellLocked(Qa)&&(Qa=null);var Ia=na.view.getState(Qa);Ja=V=null;P!=Ia?(ta=(new Date).getTime(),aa=0,P=Ia,null!=this.updateThread&&window.clearTimeout(this.updateThread),-null!=Ia&&(this.updateThread=window.setTimeout(function(){null==V&&(P=Ia,G.getDropTarget(na,za,Aa,Ma))},this.dropTargetDelay+10))):aa=(new Date).getTime()-ta;if(E&&2500>aa&&null!=Ia&&!mxEvent.isShiftDown(Ma)&&(mxUtils.getValue(Ia.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)&&(mxUtils.getValue(Ia.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ia.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ia.style,-mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)||1500<aa||na.model.isEdge(Ia.cell))&&aa>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ia)&&(na.model.isVertex(Ia.cell)&&null!=w||na.model.isEdge(Ia.cell)&&na.model.isEdge(e[0]))){if(na.isCellEditable(Ia.cell)){K=Ia;var ra=na.model.isEdge(Ia.cell)?na.view.getPoint(Ia):new mxPoint(Ia.getCenterX(),Ia.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(za,Aa,ra,H)}}else null==K||!mxUtils.contains(K,za,Aa)||1500<aa&&!mxEvent.isShiftDown(Ma)?(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(za,Aa,ra,H));if(W&&null!=M&&!mxEvent.isAltDown(Ma)&&null==V){Ja=mxRectangle.fromRectangle(M);if(na.model.isEdge(M.cell)){var Da=M.absolutePoints;null!=fa.parentNode&&(ra=Da[0],Ja.add(m(za,Aa,new mxRectangle(ra.x-this.roundDrop.width/2,ra.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),fa)));null!=la.parentNode&&(Da=Da[Da.length-1],Ja.add(m(za,Aa,new mxRectangle(Da.x-this.roundDrop.width/2,Da.y-this.roundDrop.height/2,this.roundDrop.width,+Sidebar.prototype.createDragSource=function(a,b,f,e,g,d){function h(oa,za){var Aa=mxUtils.createImage(oa.src);Aa.style.width=oa.width+"px";Aa.style.height=oa.height+"px";null!=za&&Aa.setAttribute("title",za);mxUtils.setOpacity(Aa,oa==this.refreshTarget?30:20);Aa.style.position="absolute";Aa.style.cursor="crosshair";return Aa}function m(oa,za,Aa,La){null!=La.parentNode&&(mxUtils.contains(Aa,oa,za)?(mxUtils.setOpacity(La,100),W=La):mxUtils.setOpacity(La,La==H?30:20));return Aa}var p=this.editorUi,k=+p.editor.graph,u=null,w=null,y=this;d=0;for(var C=this.livePreview,E=0;E<e.length&&C;E++)d+=k.model.getDescendants(e[E]).length,C=d<k.graphHandler.maxLivePreview;for(E=0;E<e.length&&(null==w&&k.model.isVertex(e[E])?w=E:null==u&&k.model.isEdge(e[E])&&null==k.model.getTerminal(e[E],!0)&&(u=E),null==w||null==u);E++);var D=this.isDropStyleEnabled(e,w),G=mxUtils.makeDraggable(a,k,mxUtils.bind(this,function(oa,za,Aa,La,Qa){null!=this.updateThread&&window.clearTimeout(this.updateThread);if(null!=e&&null!=+L&&W==H){var Ja=oa.isCellSelected(L.cell)?oa.getSelectionCells():[L.cell];oa.updateShapes(oa.model.isEdge(L.cell)?e[0]:e[w],Ja,!0);oa.setSelectionCells(Ja)}else null!=e&&null!=W&&null!=M&&W!=H?(Ja=oa.model.isEdge(M.cell)||null==u?w:u,oa.setSelectionCells(this.dropAndConnect(M.cell,e,P,Ja,za,w,u))):b.apply(this,arguments);null!=this.editorUi.hoverIcons&&this.editorUi.hoverIcons.update(oa.view.getState(oa.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(oa){var za=document.createElement("a");za.className="geItem";za.style.overflow="visible";oa=oa.view.scale;za.style.width=oa*Math.max(1,g.width)+"px";za.style.height=oa*Math.max(1,g.height)+"px";mxUtils.setOpacity(za,50);var Aa=k.cloneCells(e);this.graph.pasteCellStyles(k.includeDescendants(Aa),k.currentVertexStyle,k.currentEdgeStyle,null,k.pasteEdgeStyle);y.createThumb(Aa,oa*Math.max(1,g.width),oa*Math.max(1,g.height),za,null,null,null,null,null,k.shapeBackgroundColor,+0,oa);return za}));var I=G.mouseDown;G.mouseDown=function(oa){mxEvent.isPopupTrigger(oa)||mxEvent.isMultiTouchEvent(oa)||k.isCellLocked(k.getDefaultParent())||(k.stopEditing(),I.apply(this,arguments))};var M=null,N=null,L=null,V=!1,X=h(this.triangleUp,mxResources.get("connect")),T=h(this.triangleRight,mxResources.get("connect")),O=h(this.triangleDown,mxResources.get("connect")),ca=h(this.triangleLeft,mxResources.get("connect")),H=h(this.refreshTarget,mxResources.get("replace")),S=null,fa=h(this.roundDrop),+la=h(this.roundDrop),P=mxConstants.DIRECTION_NORTH,W=null,Y=G.createPreviewElement;G.createPreviewElement=function(oa){var za=Y.apply(this,arguments);this.previewElementWidth=za.style.width;this.previewElementHeight=za.style.height;za.style.pointerEvents="none";return za};var ha=G.dragEnter;G.dragEnter=function(oa,za){null!=p.hoverIcons&&p.hoverIcons.setDisplay("none");ha.apply(this,arguments)};var ia=G.dragExit;G.dragExit=function(oa,za){null!=p.hoverIcons&&p.hoverIcons.setDisplay("");ia.apply(this,+arguments)};G.dragOver=function(oa,za){mxDragSource.prototype.dragOver.apply(this,arguments);null!=this.currentGuide&&null!=W&&this.currentGuide.hide();if(null!=this.previewElement){p.hideShapePicker();var Aa=oa.view;if(null!=L&&W==H)this.previewElement.style.display="none";else if(null!=M&&null!=W){null!=G.currentHighlight&&null!=G.currentHighlight.state&&G.currentHighlight.hide();var La=oa.model.isEdge(M.cell)||null!=w?w:u,Qa=y.getDropAndConnectGeometry(M.cell,e[La],P,e),Ja=oa.model.isEdge(M.cell)?+null:oa.getCellGeometry(M.cell),Ia=oa.getCellGeometry(e[La]),ra=oa.model.getParent(M.cell),Da=Aa.translate.x*Aa.scale,Va=Aa.translate.y*Aa.scale;null!=Ja&&!Ja.relative&&oa.model.isVertex(ra)&&ra!=Aa.currentRoot&&(Va=Aa.getState(ra),Da=Va.x,Va=Va.y);Ja=Ia.x;Ia=Ia.y;oa.model.isEdge(e[La])&&(Ia=Ja=0);this.previewElement.style.left=(Qa.x-Ja)*Aa.scale+Da+"px";this.previewElement.style.top=(Qa.y-Ia)*Aa.scale+Va+"px";1==e.length&&(this.previewElement.style.width=Qa.width*Aa.scale+"px",this.previewElement.style.height=+Qa.height*Aa.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&&oa.model.isEdge(G.currentHighlight.state.cell)?(this.previewElement.style.left=Math.round(parseInt(this.previewElement.style.left)-g.width*Aa.scale/2)+"px",this.previewElement.style.top=Math.round(parseInt(this.previewElement.style.top)-+g.height*Aa.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,Q=null,ba=this.editorUi.editor.graph.getCellStyle(e[0]);G.getDropTarget=mxUtils.bind(this,function(oa,za,Aa,La){var Qa=mxEvent.isAltDown(La)||+null==e?null:oa.getCellAt(za,Aa,null,null,null,function(Va,Wa,$a){return oa.isContainer(Va.cell)&&"0"!=mxUtils.getValue(Va.style,"dropTarget","1")});if(null!=Qa&&!this.graph.isCellConnectable(Qa)&&!this.graph.model.isEdge(Qa)){var Ja=this.graph.getModel().getParent(Qa);this.graph.getModel().isVertex(Ja)&&this.graph.isCellConnectable(Ja)&&(Qa=Ja)}oa.isCellLocked(Qa)&&(Qa=null);var Ia=oa.view.getState(Qa);Ja=W=null;Q!=Ia?(ta=(new Date).getTime(),aa=0,Q=Ia,null!=this.updateThread&&window.clearTimeout(this.updateThread),+null!=Ia&&(this.updateThread=window.setTimeout(function(){null==W&&(Q=Ia,G.getDropTarget(oa,za,Aa,La))},this.dropTargetDelay+10))):aa=(new Date).getTime()-ta;if(D&&2500>aa&&null!=Ia&&!mxEvent.isShiftDown(La)&&(mxUtils.getValue(Ia.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)&&(mxUtils.getValue(Ia.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ia.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE)!=mxConstants.NONE||mxUtils.getValue(Ia.style,+mxConstants.STYLE_GRADIENTCOLOR,mxConstants.NONE)!=mxConstants.NONE)||"image"==mxUtils.getValue(ba,mxConstants.STYLE_SHAPE)||1500<aa||oa.model.isEdge(Ia.cell))&&aa>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(Ia)&&(oa.model.isVertex(Ia.cell)&&null!=w||oa.model.isEdge(Ia.cell)&&oa.model.isEdge(e[0]))){if(oa.isCellEditable(Ia.cell)){L=Ia;var ra=oa.model.isEdge(Ia.cell)?oa.view.getPoint(Ia):new mxPoint(Ia.getCenterX(),Ia.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&&(oa.container.appendChild(H),S=H.parentNode);m(za,Aa,ra,H)}}else null==L||!mxUtils.contains(L,za,Aa)||1500<aa&&!mxEvent.isShiftDown(La)?(L=null,null!=S&&(H.parentNode.removeChild(H),S=null)):null!=L&&null!=S&&(ra=oa.model.isEdge(L.cell)?oa.view.getPoint(L):new mxPoint(L.getCenterX(),L.getCenterY()),ra=new mxRectangle(ra.x-this.refreshTarget.width/2,ra.y-this.refreshTarget.height/+2,this.refreshTarget.width,this.refreshTarget.height),m(za,Aa,ra,H));if(V&&null!=M&&!mxEvent.isAltDown(La)&&null==W){Ja=mxRectangle.fromRectangle(M);if(oa.model.isEdge(M.cell)){var Da=M.absolutePoints;null!=fa.parentNode&&(ra=Da[0],Ja.add(m(za,Aa,new mxRectangle(ra.x-this.roundDrop.width/2,ra.y-this.roundDrop.height/2,this.roundDrop.width,this.roundDrop.height),fa)));null!=la.parentNode&&(Da=Da[Da.length-1],Ja.add(m(za,Aa,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)),Ja.add(m(za,Aa,new mxRectangle(M.getCenterX()-this.triangleUp.width/2,ra.y-this.triangleUp.height,this.triangleUp.width,this.triangleUp.height),X)),Ja.add(m(za,Aa,new mxRectangle(ra.x+ra.width,M.getCenterY()-this.triangleRight.height/2,this.triangleRight.width,this.triangleRight.height),T)),Ja.add(m(za,Aa,new mxRectangle(M.getCenterX()-this.triangleDown.width/2,ra.y+ra.height,this.triangleDown.width,-this.triangleDown.height),N)),Ja.add(m(za,Aa,new mxRectangle(ra.x-this.triangleLeft.width,M.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),ca));null!=Ja&&Ja.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&&(Ia=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!=Ia&&(null==Ja||!mxUtils.contains(Ja,za,Aa)||500<aa&&null==V&&ra))if(W=!1,M=5E3>aa&&aa>this.dropTargetDelay||na.model.isEdge(Qa)?Ia:null,null!=M&&ra){Ja=[fa,la,X,T,N,ca];for(ra=0;ra<Ja.length;ra++)null!=Ja[ra].parentNode&&Ja[ra].parentNode.removeChild(Ja[ra]);na.model.isEdge(Qa)?(Da=Ia.absolutePoints,null!=Da&&(ra=Da[0],Da=Da[Da.length-1],fa.style.left=Math.floor(ra.x-this.roundDrop.width/2)+"px",fa.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(fa),null==na.model.getTerminal(Qa,!1)&&na.container.appendChild(la))):(ra=mxRectangle.fromRectangle(Ia),null!=Ia.shape&&null!=Ia.shape.boundingBox&&(ra=mxRectangle.fromRectangle(Ia.shape.boundingBox)),ra.grow(this.graph.tolerance),ra.grow(HoverIcons.prototype.arrowSpacing),Da=this.graph.selectionCellsHandler.getHandler(Ia.cell),null!=Da&&(ra.x-=Da.horizontalOffset/+this.triangleDown.height),O)),Ja.add(m(za,Aa,new mxRectangle(ra.x-this.triangleLeft.width,M.getCenterY()-this.triangleLeft.height/2,this.triangleLeft.width,this.triangleLeft.height),ca));null!=Ja&&Ja.grow(10)}P=mxConstants.DIRECTION_NORTH;W==T?P=mxConstants.DIRECTION_EAST:W==O||W==la?P=mxConstants.DIRECTION_SOUTH:W==ca&&(P=mxConstants.DIRECTION_WEST);null!=L&&W==H&&(Ia=L);ra=(null==w||oa.isCellConnectable(e[w]))&&(oa.model.isEdge(Qa)&&null!=w||oa.model.isVertex(Qa)&&oa.isCellConnectable(Qa));if(null!=+M&&5E3<=aa||M!=Ia&&(null==Ja||!mxUtils.contains(Ja,za,Aa)||500<aa&&null==W&&ra))if(V=!1,M=5E3>aa&&aa>this.dropTargetDelay||oa.model.isEdge(Qa)?Ia:null,null!=M&&ra){Ja=[fa,la,X,T,O,ca];for(ra=0;ra<Ja.length;ra++)null!=Ja[ra].parentNode&&Ja[ra].parentNode.removeChild(Ja[ra]);oa.model.isEdge(Qa)?(Da=Ia.absolutePoints,null!=Da&&(ra=Da[0],Da=Da[Da.length-1],fa.style.left=Math.floor(ra.x-this.roundDrop.width/2)+"px",fa.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==oa.model.getTerminal(Qa,!0)&&oa.container.appendChild(fa),null==oa.model.getTerminal(Qa,!1)&&oa.container.appendChild(la))):(ra=mxRectangle.fromRectangle(Ia),null!=Ia.shape&&null!=Ia.shape.boundingBox&&(ra=mxRectangle.fromRectangle(Ia.shape.boundingBox)),ra.grow(this.graph.tolerance),ra.grow(HoverIcons.prototype.arrowSpacing),Da=this.graph.selectionCellsHandler.getHandler(Ia.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(Ia.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(Ia.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"!=Ia.style.portConstraint&&(na.container.appendChild(X),na.container.appendChild(N)),na.container.appendChild(T),na.container.appendChild(ca));null!=Ia&&(Q=na.selectionCellsHandler.getHandler(Ia.cell),null!=Q&&null!=Q.setHandlesVisible&&Q.setHandlesVisible(!1));W=!0}else for(Ja=[fa,la,X,T,N,ca],ra=0;ra<-Ja.length;ra++)null!=Ja[ra].parentNode&&Ja[ra].parentNode.removeChild(Ja[ra]);W||null==Q||Q.setHandlesVisible(!0);Qa=mxEvent.isAltDown(Ma)&&!mxEvent.isShiftDown(Ma)||null!=K&&V==H?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Qa||null==V&&na.isSplitTarget(Qa,e,Ma)||(Qa=na.getDropTarget(e,Ma,Qa,!0));return Qa});var ma=G.startDrag;G.startDrag=function(na){y.activeDragSource=this;ma.apply(this,arguments)};var La=G.stopDrag;G.stopDrag=function(){La.apply(this,arguments);for(var na=-[fa,la,H,X,T,N,ca],za=0;za<na.length;za++)null!=na[za].parentNode&&na[za].parentNode.removeChild(na[za]);null!=M&&null!=Q&&Q.reset();V=S=K=M=Q=y.activeDragSource=null};return G};+this.triangleRight.height/2)+"px",O.style.left=X.style.left,O.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"!=Ia.style.portConstraint&&(oa.container.appendChild(X),oa.container.appendChild(O)),oa.container.appendChild(T),oa.container.appendChild(ca));null!=Ia&&(N=oa.selectionCellsHandler.getHandler(Ia.cell),null!=N&&null!=N.setHandlesVisible&&N.setHandlesVisible(!1));V=!0}else for(Ja=[fa,la,X,T,O,ca],ra=0;ra<+Ja.length;ra++)null!=Ja[ra].parentNode&&Ja[ra].parentNode.removeChild(Ja[ra]);V||null==N||N.setHandlesVisible(!0);Qa=mxEvent.isAltDown(La)&&!mxEvent.isShiftDown(La)||null!=L&&W==H?null:mxDragSource.prototype.getDropTarget.apply(this,arguments);null==Qa||null==W&&oa.isSplitTarget(Qa,e,La)||(Qa=oa.getDropTarget(e,La,Qa,!0));return Qa});var ma=G.startDrag;G.startDrag=function(oa){y.activeDragSource=this;ma.apply(this,arguments)};var Na=G.stopDrag;G.stopDrag=function(){Na.apply(this,arguments);for(var oa=+[fa,la,H,X,T,O,ca],za=0;za<oa.length;za++)null!=oa[za].parentNode&&oa[za].parentNode.removeChild(oa[za]);null!=M&&null!=N&&N.reset();W=S=L=M=N=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,u=null,w=this,y=null;b.getGraphForEvent=function(B){return k?g.apply(this,arguments):null};b.mouseDown=function(B){d.apply(this,arguments);u=new mxPoint(mxEvent.getClientX(B),mxEvent.getClientY(B));y=a.style.opacity;k=!1;""==y&&(y="1");null!=this.dragElement&&(this.dragElement.style.display="none")};b.mouseMove=function(B){(k=null!=u&&(Math.abs(u.x--mxEvent.getClientX(B))>p||Math.abs(u.y-mxEvent.getClientY(B))>p))&&null!=this.dragElement&&"none"==this.dragElement.style.display&&(this.dragElement.style.display="");h.apply(this,arguments)};b.mouseUp=function(B){try{mxEvent.isPopupTrigger(B)||null!=this.currentGraph||null==this.dragElement||"none"!=this.dragElement.style.display||(null!=e&&e(B),mxEvent.isConsumed(B)||w.itemClicked(f,b,B,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,B){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,B)};-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,B){return this.createItem(a,e,g,d,b,f,h,m,p,k,u,w,y,B)};+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(E){b.reset(),w.editorUi.handleError(E)}}};+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,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))}))};@@ -2526,8 +2526,8 @@ Sidebar.prototype.setContentVisible=function(a,b){var f=Editor.transitionDelay;m(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,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 u=[];if(null!=p)for(k=0;k<p.length;k++)u.push(p[k]);mxStencilRegistry.loadStencilSet(f,mxUtils.bind(this,function(w,y,B,D,E){if(null==g||0>mxUtils.indexOf(g,y)){B=this.getTagsForStencil(w,y);var G=null!=m?m[y]:null;null!=G&&B.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(B.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(B,D,E,G,J){(null==g||0>mxUtils.indexOf(g,D))&&w.appendChild(this.createVertexTemplate("shape="+B+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,E,D){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(E*h),Math.round(D*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,E,D,G,I){(null==g||0>mxUtils.indexOf(g,E))&&w.appendChild(this.createVertexTemplate("shape="+C+E.toLowerCase()+e,Math.round(G*h),Math.round(I*h),"",E.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)}})();@@ -2539,37 +2539,37 @@ mxGraphView.prototype.gridSteps=4;mxGraphView.prototype.minGridSize=4;mxGraphViemxShape.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 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,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()),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;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());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)||-this.isTableRow(V.cell)||this.isTable(V.cell));)this.isSwimlane(V.cell)&&this.isCellMovable(V.cell)&&(ha=this.getActualStartSize(V.cell),ta=this.view.scale,(0<ha.x||0<ha.width)&&mxUtils.intersects(O,new mxRectangle(V.x+(ha.x-ha.width-1)*ta+(0==ha.x?V.width*ta:0),V.y,1,V.height))?ia="col-resize":(0<ha.y||0<ha.height)&&mxUtils.intersects(O,new mxRectangle(V.x,V.y+(ha.y-ha.height-1)*ta+(0==ha.y?V.height:0),V.width,1))&&(ia="row-resize")),V=this.view.getState(this.model.getParent(V.cell))}null!=ia&&Y.setCursor(ia)}}}),-mouseUp:mxUtils.bind(this,function(O,V){k=h=m=p=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var y=document.createElement("div");this.cellRenderer.getLabelValue=function(O){var V=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);O.view.graph.isHtmlLabel(O.cell)&&("0"==mxUtils.getValue(O.style,"html","0")?V=mxUtils.htmlEntities(V,!1):(O.lastLabelValue!=V&&(O.lastLabelValue=V,O.lastSanitizedLabelValue=Graph.sanitizeHtml(V),y.innerHTML=O.lastSanitizedLabelValue,Graph.addLightDarkColors(y,-null,"simple"==O.view.graph.getAdaptiveColors())&&(O.lastSanitizedLabelValue=y.innerHTML)),V=O.lastSanitizedLabelValue));return V};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);-this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(O,V){return!1};this.alternateEdgeStyle="vertical";null==e&&this.loadStylesheet();var B=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var O=B.apply(this,arguments);if(this.graph.pageVisible){var V=[],Y=this.graph.pageFormat,ha=this.graph.pageScale,ia=Y.width*ha;Y=Y.height*ha;ha=this.graph.view.translate;for(var ta=this.graph.view.scale,aa=this.graph.getPageLayout(),P=0;P<aa.width;P++)V.push(new mxRectangle(((aa.x+-P)*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 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,-arguments)};this.selectRegion=function(O,V){var Y=mxEvent.isAltDown(V)?O:null;O=this.getCells(O.x,O.y,O.width,O.height,null,null,Y,null,!0);if(this.isToggleEvent(V))for(Y=0;Y<O.length;Y++)this.selectCellForEvent(O[Y],V);else this.selectCellsForEvent(O,V);return O};var H=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(O,V,Y){return this.graph.isCellSelected(O)?!1:H.apply(this,arguments)};var S=this.updateMouseEvent;this.updateMouseEvent=function(O){O=-S.apply(this,arguments);null!=O.state&&this.isCellLocked(this.getLayerForCell(O.getCell()))&&(null==this.getLinkForCell(O.getCell())?O.state=this.view.getState(this.getCellAt(O.getGraphX(),O.getGraphY(),null,null,null,mxUtils.bind(this,function(V,Y,ha){return O.state==V||this.isCellLocked(this.getLayerForCell(V.cell))&&null==this.getLinkForCell(V.cell)}))):O.state=null);return O};var fa=this.isCellSelectable;this.isCellSelectable=function(O){return fa.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(O))};-this.isCellLocked=function(O){for(;null!=O;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(O),"locked","0"))return!0;O=this.model.getParent(O)}return!1};var la=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(O,V){"mouseDown"==V.getProperty("eventName")&&(O=V.getProperty("event").getState(),la=null==O||this.isSelectionEmpty()||this.isCellSelected(O.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(O,V){if(!mxEvent.isMultiTouchEvent(V)){O=-V.getProperty("event");var Y=V.getProperty("cell");null==Y?(O=mxUtils.convertPoint(this.container,mxEvent.getClientX(O),mxEvent.getClientY(O)),G.start(O.x,O.y)):null!=la?this.addSelectionCells(la):1<this.getSelectionCount()&&this.isCellSelected(Y)&&this.removeSelectionCell(Y);la=null;V.consume()}}));this.connectionHandler.selectCells=function(O,V){this.graph.setSelectionCell(V||O)};this.connectionHandler.constraintHandler.isStateIgnored=function(O,V){var Y=O.view.graph;return V&&(Y.isCellSelected(O.cell)||-Y.isTableRow(O.cell)&&Y.selectionCellsHandler.isHandled(Y.model.getParent(O.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var O=this.connectionHandler.constraintHandler;null!=O.currentFocus&&O.isStateIgnored(O.currentFocus,!0)&&(O.currentFocus=null,O.constraints=null,O.destroyIcons());O.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch()}this.currentTranslate=new mxPoint(0,0)};+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(P){P=this.getCurrentCellStyle(P);+return null!=P?"1"==P.html||"wrap"==P[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(P,W){if("mouseDown"==W.getProperty("eventName")&&this.isEnabled()){P=W.getProperty("event");var Y=P.getState();W=this.view.scale;if(!mxEvent.isAltDown(P.getEvent())&&null!=Y&&(w=this.isCellSelected(Y.cell),!this.panningHandler.isActive()&&!mxEvent.isControlDown(P.getEvent()))){var ha=this.selectionCellsHandler.getHandler(Y.cell);+if(null==ha||null==ha.getHandleForEvent(P)){var ia=new mxRectangle(P.getGraphX()-1,P.getGraphY()-1),ta=mxEvent.isTouchEvent(P.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,P.getGraphX()-ha,P.getGraphY()-ha)&&mxUtils.contains(Y,P.getGraphX()-ha,P.getGraphY()+ha)&&mxUtils.contains(Y,P.getGraphX()+ha,P.getGraphY()+ha)&&mxUtils.contains(Y,+P.getGraphX()+ha,P.getGraphY()-ha))){var aa=this.model.getParent(Y.cell);ha=this.model.getParent(aa);if(!this.isCellSelected(ha)){ta*=W;var Q=2*ta;if(this.model.getChildAt(ha,0)!=aa&&mxUtils.intersects(ia,new mxRectangle(Y.x,Y.y-ta,Y.width,Q))||this.model.getChildAt(aa,0)!=Y.cell&&mxUtils.intersects(ia,new mxRectangle(Y.x-ta,Y.y,Q,Y.height))||mxUtils.intersects(ia,new mxRectangle(Y.x,Y.y+Y.height-ta,Y.width,Q))||mxUtils.intersects(ia,new mxRectangle(Y.x+Y.width-ta,Y.y,Q,Y.height)))aa=this.selectionCellsHandler.isHandled(ha),+this.selectCellForEvent(ha,P.getEvent()),ha=this.selectionCellsHandler.getHandler(ha),null!=ha&&(ta=ha.getHandleForEvent(P),null!=ta&&(ha.start(P.getGraphX(),P.getGraphY(),ta),ha.blockDelayedSelection=!aa,P.consume()))}}for(;!P.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)*W+(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)*W+(0==ha.y?Y.height:0),Y.width,1)))&&(this.selectCellForEvent(Y.cell,P.getEvent()),ha=this.selectionCellsHandler.getHandler(Y.cell),null!=ha&&null!=ha.customHandles&&(ta=mxEvent.CUSTOM_HANDLE-ha.customHandles.length+1,ha.start(P.getGraphX(),P.getGraphY(),ta),P.consume())),Y=this.view.getState(this.model.getParent(Y.cell))}}}}));this.addListener(mxEvent.CONSUME_MOUSE_EVENT,mxUtils.bind(this,+function(P,W){if("mouseDown"==W.getProperty("eventName")&&this.isEnabled()){P=W.getProperty("event");var Y=P.getState();mxEvent.isAltDown(P.getEvent())||mxEvent.isControlDown(W)||mxEvent.isShiftDown(W)||w||null==Y||!this.model.isEdge(Y.cell)||(h=new mxPoint(P.getGraphX(),P.getGraphY()),u=this.isCellSelected(Y.cell),p=Y,m=P,null!=Y.text&&null!=Y.text.boundingBox&&mxUtils.contains(Y.text.boundingBox,P.getGraphX(),P.getGraphY())?k=mxEvent.LABEL_HANDLE:(W=this.selectionCellsHandler.getHandler(Y.cell),+null!=W&&null!=W.bends&&0<W.bends.length&&(k=W.getHandleForEvent(P))))}}));this.addMouseListener({mouseDown:function(P,W){},mouseMove:mxUtils.bind(this,function(P,W){P=this.selectionCellsHandler.handlers.map;for(var Y in P)if(null!=P[Y].index)return;if(this.isEnabled()&&!this.panningHandler.isActive()&&!mxEvent.isAltDown(W.getEvent())){var ha=this.tolerance;if(null!=h&&null!=p&&null!=m){if(Y=p,null!=k||Math.abs(h.x-W.getGraphX())>ha||Math.abs(h.y-W.getGraphY())>ha){var ia=null;mxEvent.isShiftDown(W.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),Q=aa==mxEdgeStyle.EntityRelation;ha=Y.absolutePoints;u||(ta=k);ta!=mxEvent.LABEL_HANDLE&&null!=ha&&(ta=k,null==ta&&(P=new mxRectangle(h.x,h.y),P.grow(mxEdgeHandler.prototype.handleImage.width/2),mxUtils.contains(P,ha[0].x,ha[0].y)?ta=0:mxUtils.contains(P,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));P=ta==mxEvent.LABEL_HANDLE||0==ta||ta==ia.bends.length-1;if(!Q&&(null!=Y.visibleSourceState||null!=Y.visibleTargetState)||+P)ia.start(W.getGraphX(),W.getGraphX(),ta),W.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,W.getEvent())):this.isCellSelected(Y.cell)||ia.destroy());u=!1;h=m=p=k=null}}else if(Y=W.getState(),null!=Y&&this.isCellEditable(Y.cell)){P=this.model.getParent(Y.cell);ia=null;if(this.model.isEdge(Y.cell)&&!this.isCellSelected(Y.cell)&&!mxEvent.isAltDown(W.getEvent())&&+!mxEvent.isShiftDown(W.getEvent())&&!this.isAncestorSelected(Y.cell)&&(this.isSwimlane(P)||this.model.isLayer(P)||this.getCurrentRoot()==P)){if(P=new mxRectangle(W.getGraphX(),W.getGraphY()),P.grow(mxEdgeHandler.prototype.handleImage.width/2),ha=Y.absolutePoints,null!=ha)null!=Y.text&&null!=Y.text.boundingBox&&mxUtils.contains(Y.text.boundingBox,W.getGraphX(),W.getGraphY())?ia="move":mxUtils.contains(P,ha[0].x,ha[0].y)||mxUtils.contains(P,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))||(W=mxUtils.findNearestSegment(Y,W.getGraphX(),W.getGraphY()),W<ha.length-1&&0<=W&&(ia=0==Math.round(ha[W].x-ha[W+1].x)?"col-resize":"row-resize"))}else if(!mxEvent.isControlDown(W.getEvent())){ha=mxShape.prototype.svgStrokeTolerance/2;P=new mxRectangle(W.getGraphX(),W.getGraphY());P.grow(ha);if(this.isTableCell(Y.cell)&&this.isCellMovable(Y.cell)&&+(W=this.model.getParent(Y.cell),ha=this.model.getParent(W),!this.isCellSelected(ha)))if(mxUtils.intersects(P,new mxRectangle(Y.x,Y.y-2,Y.width,4))&&this.model.getChildAt(ha,0)!=W||mxUtils.intersects(P,new mxRectangle(Y.x,Y.y+Y.height-2,Y.width,4)))ia="row-resize";else if(mxUtils.intersects(P,new mxRectangle(Y.x-2,Y.y,4,Y.height))&&this.model.getChildAt(W,0)!=Y.cell||mxUtils.intersects(P,new mxRectangle(Y.x+Y.width-2,Y.y,4,Y.height)))ia="col-resize";for(W=Y;null==ia&&null!=W&&(this.isTableCell(W.cell)||+this.isTableRow(W.cell)||this.isTable(W.cell));)this.isSwimlane(W.cell)&&this.isCellMovable(W.cell)&&(ha=this.getActualStartSize(W.cell),ta=this.view.scale,(0<ha.x||0<ha.width)&&mxUtils.intersects(P,new mxRectangle(W.x+(ha.x-ha.width-1)*ta+(0==ha.x?W.width*ta:0),W.y,1,W.height))?ia="col-resize":(0<ha.y||0<ha.height)&&mxUtils.intersects(P,new mxRectangle(W.x,W.y+(ha.y-ha.height-1)*ta+(0==ha.y?W.height:0),W.width,1))&&(ia="row-resize")),W=this.view.getState(this.model.getParent(W.cell))}null!=ia&&Y.setCursor(ia)}}}),+mouseUp:mxUtils.bind(this,function(P,W){k=h=m=p=null})})}this.cellRenderer.minSvgStrokeWidth=.1;var y=document.createElement("div");this.cellRenderer.getLabelValue=function(P){var W=mxCellRenderer.prototype.getLabelValue.apply(this,arguments);P.view.graph.isHtmlLabel(P.cell)&&("0"==mxUtils.getValue(P.style,"html","0")?W=mxUtils.htmlEntities(W,!1):(P.lastLabelValue!=W&&(P.lastLabelValue=W,P.lastSanitizedLabelValue=Graph.sanitizeHtml(W),y.innerHTML=P.lastSanitizedLabelValue,Graph.addLightDarkColors(y,+null,"simple"==P.view.graph.getAdaptiveColors())&&(P.lastSanitizedLabelValue=y.innerHTML)),W=P.lastSanitizedLabelValue));return W};if("undefined"!==typeof mxVertexHandler){this.setConnectable(!0);this.setDropEnabled(!0);this.setPanning(!0);this.setTooltips(!0);this.setAllowLoops(!0);this.allowAutoPanning=!0;this.constrainChildren=this.resetEdgesOnConnect=!1;this.constrainRelativeChildren=!0;this.graphHandler.scrollOnMove=!1;this.graphHandler.scaleGrid=!0;this.connectionHandler.setCreateTarget(!1);+this.connectionHandler.insertBeforeSource=!0;this.connectionHandler.isValidSource=function(P,W){return!1};this.alternateEdgeStyle="vertical";null==e&&this.loadStylesheet();var C=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var P=C.apply(this,arguments);if(this.graph.pageVisible){var W=[],Y=this.graph.pageFormat,ha=this.graph.pageScale,ia=Y.width*ha;Y=Y.height*ha;ha=this.graph.view.translate;for(var ta=this.graph.view.scale,aa=this.graph.getPageLayout(),Q=0;Q<aa.width;Q++)W.push(new mxRectangle(((aa.x++Q)*ia+ha.x)*ta,(aa.y*Y+ha.y)*ta,ia*ta,Y*ta));for(Q=1;Q<aa.height;Q++)W.push(new mxRectangle((aa.x*ia+ha.x)*ta,((aa.y+Q)*Y+ha.y)*ta,ia*ta,Y*ta));P=W.concat(P)}return P};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(P,W){return null==P.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(P){this.previewColor="#000000"==this.graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.createPreviewShape.apply(this,+arguments)};var E=this.graphHandler.getCells;this.graphHandler.getCells=function(P){for(var W=E.apply(this,arguments),Y=new mxDictionary,ha=[],ia=0;ia<W.length;ia++){var ta=this.graph.isTableCell(P)&&this.graph.isTableCell(W[ia])&&this.graph.isCellSelected(W[ia])?this.graph.model.getParent(W[ia]):this.graph.isTableRow(P)&&this.graph.isTableRow(W[ia])&&this.graph.isCellSelected(W[ia])?W[ia]:this.graph.getCompositeParent(W[ia]);null==ta||Y.get(ta)||(Y.put(ta,!0),ha.push(ta))}return ha};var D=this.graphHandler.start;+this.graphHandler.start=function(P,W,Y,ha){var ia=!1;this.graph.isTableCell(P)&&(this.graph.isCellSelected(P)?ia=!0:P=this.graph.model.getParent(P));ia||this.graph.isTableRow(P)&&this.graph.isCellSelected(P)||(P=this.graph.getCompositeParent(P));D.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(P,W){W=this.graph.getCompositeParent(W);return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};this.connectionHandler.insertEdge=function(P,W,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 I=(new Date).getTime(),M=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var P=this.currentState;N.apply(this,arguments);P!=this.currentState?(I=(new Date).getTime(),M=0):M=(new Date).getTime()-I};var L=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=+function(P){return mxEvent.isShiftDown(P.getEvent())&&mxEvent.isAltDown(P.getEvent())?!1:null!=this.currentState&&P.getState()==this.currentState&&2E3<M||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&L.apply(this,arguments)};var V=this.isToggleEvent;this.isToggleEvent=function(P){return V.apply(this,arguments)||mxEvent.isShiftDown(P)};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(P){return mxEvent.isMouseEvent(P.getEvent())};var T=this.click;this.click=function(P){var W=null==P.state&&null!=P.sourceState&&this.isCellLocked(this.getLayerForCell(P.sourceState.cell));if(this.isEnabled()&&!W||P.isConsumed())return T.apply(this,arguments);+var Y=W?P.sourceState.cell:P.getCell();if(null!=Y){var ha=this.getClickableLinkForCell(Y);null!=ha?this.isCustomLink(ha)?this.customLinkClicked(ha,Y):this.openLink(ha):W&&this.clearSelection()}};this.tooltipHandler.getStateForEvent=function(P){return P.sourceState};var O=this.tooltipHandler.show;this.tooltipHandler.show=function(){O.apply(this,arguments);if(null!=this.div)for(var P=this.div.getElementsByTagName("a"),W=0;W<P.length;W++)null!=P[W].getAttribute("href")&&null==P[W].getAttribute("target")&&+P[W].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(P){return P.sourceState};this.getCursorForMouseEvent=function(P){var W=null==P.state&&null!=P.sourceState&&this.isCellLocked(P.sourceState.cell);return this.getCursorForCell(W?P.sourceState.cell:P.getCell())};var ca=this.getCursorForCell;this.getCursorForCell=function(P){if(!this.isEnabled()||this.isCellLocked(P)){if(null!=this.getClickableLinkForCell(P))return"pointer";if(this.isCellLocked(P))return"default"}return ca.apply(this,+arguments)};this.selectRegion=function(P,W){var Y=mxEvent.isAltDown(W)?P:null;P=this.getCells(P.x,P.y,P.width,P.height,null,null,Y,null,!0);if(this.isToggleEvent(W))for(Y=0;Y<P.length;Y++)this.selectCellForEvent(P[Y],W);else this.selectCellsForEvent(P,W);return P};var H=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(P,W,Y){return this.graph.isCellSelected(P)?!1:H.apply(this,arguments)};var S=this.updateMouseEvent;this.updateMouseEvent=function(P){P=+S.apply(this,arguments);null!=P.state&&this.isCellLocked(this.getLayerForCell(P.getCell()))&&(null==this.getLinkForCell(P.getCell())?P.state=this.view.getState(this.getCellAt(P.getGraphX(),P.getGraphY(),null,null,null,mxUtils.bind(this,function(W,Y,ha){return P.state==W||this.isCellLocked(this.getLayerForCell(W.cell))&&null==this.getLinkForCell(W.cell)}))):P.state=null);return P};var fa=this.isCellSelectable;this.isCellSelectable=function(P){return fa.apply(this,arguments)&&!this.isCellLocked(this.getLayerForCell(P))};+this.isCellLocked=function(P){for(;null!=P;){if("1"==mxUtils.getValue(this.getCurrentCellStyle(P),"locked","0"))return!0;P=this.model.getParent(P)}return!1};var la=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(P,W){"mouseDown"==W.getProperty("eventName")&&(P=W.getProperty("event").getState(),la=null==P||this.isSelectionEmpty()||this.isCellSelected(P.cell)?null:this.getSelectionCells())}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(P,W){if(!mxEvent.isMultiTouchEvent(W)){P=+W.getProperty("event");var Y=W.getProperty("cell");null==Y?(P=mxUtils.convertPoint(this.container,mxEvent.getClientX(P),mxEvent.getClientY(P)),G.start(P.x,P.y)):null!=la?this.addSelectionCells(la):1<this.getSelectionCount()&&this.isCellSelected(Y)&&this.removeSelectionCell(Y);la=null;W.consume()}}));this.connectionHandler.selectCells=function(P,W){this.graph.setSelectionCell(W||P)};this.connectionHandler.constraintHandler.isStateIgnored=function(P,W){var Y=P.view.graph;return W&&(Y.isCellSelected(P.cell)||+Y.isTableRow(P.cell)&&Y.selectionCellsHandler.isHandled(Y.model.getParent(P.cell)))};this.selectionModel.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var P=this.connectionHandler.constraintHandler;null!=P.currentFocus&&P.isStateIgnored(P.currentFocus,!0)&&(P.currentFocus=null,P.constraints=null,P.destroyIcons());P.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch()}this.currentTranslate=new mxPoint(0,0)};Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints||null==window.urlParams||"1"==urlParams.touch;Graph.fileSupport=null!=window.File&&null!=window.FileReader&&null!=window.FileList&&(null==window.urlParams||"0"!=urlParams.filesupport);Graph.translateDiagram="1"==urlParams["translate-diagram"];Graph.diagramLanguage=null!=urlParams["diagram-language"]?urlParams["diagram-language"]:mxClient.language;Graph.lineJumpsEnabled=!0;Graph.defaultJumpSize=6;Graph.zoomWheel=!1;Graph.selectParentLayer=!1;Graph.minTableColumnWidth=20;Graph.minTableRowHeight=20;Graph.foreignObjectWarningText="Text is not SVG - cannot display";Graph.foreignObjectWarningLink="https://www.drawio.com/doc/faq/svg-export-text-problems";Graph.xmlDeclaration='<?xml version="1.0" encoding="UTF-8"?>';Graph.svgDoctype='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';Graph.svgFileComment="\x3c!-- Do not edit this file with editors other than draw.io --\x3e";Graph.colorStyles=[mxConstants.STYLE_FONTCOLOR,mxConstants.STYLE_FILLCOLOR,mxConstants.STYLE_GRADIENTCOLOR,mxConstants.STYLE_STROKECOLOR,mxConstants.STYLE_IMAGE_BORDER,mxConstants.STYLE_IMAGE_BACKGROUND,mxConstants.STYLE_LABEL_BORDERCOLOR,mxConstants.STYLE_SWIMLANE_FILLCOLOR,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR];Graph.textStyles="fontFamily fontSource fontSize fontColor fontStyle textOpacity labelBorderColor labelBackgroundColor autosize resizable horizontal textDirection".split(" ");@@ -2584,7 +2584,7 @@ Graph.createSvgNode=function(a,b,f,e,g){var d=mxUtils.createXmlDocument(),h=nullf+"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(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,B,D){return null!=e?e(y,B,D):mxUtils.isValidColor(D)?(null==h&&null!=b&&(h={}),null!=h&&(h[B]=y.style.getPropertyValue(B)),D=mxUtils.getLightDarkColor(D,null,null,f),y.style.setProperty(B,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&&+Graph.addLightDarkColors=function(a,b,f,e){function g(y,C,E){return null!=e?e(y,C,E):mxUtils.isValidColor(E)?(null==h&&null!=b&&(h={}),null!=h&&(h[C]=y.style.getPropertyValue(C)),E=mxUtils.getLightDarkColor(E,null,null,f),y.style.setProperty(C,E.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]=@@ -2595,17 +2595,17 @@ Graph.arrayBufferToString=function(a){var b="";a=new Uint8Array(a);for(var f=a.bGraph.arrayBufferIndexOfString=function(a,b,f){var e=b.charCodeAt(0),g=1,d=-1;for(f=f||0;f<a.byteLength;f++)if(a[f]==e){d=f;break}for(f=d+1;-1<d&&f<a.byteLength&&f<d+b.length-1;f++){if(a[f]!=b.charCodeAt(g))return Graph.arrayBufferIndexOfString(a,b,d+1);g++}return g==b.length-1?d:-1};Graph.compress=function(a,b){if(null==a||0==a.length||"undefined"===typeof pako)return a;a=b?pako.deflate(encodeURIComponent(a)):pako.deflateRaw(encodeURIComponent(a));return btoa(Graph.arrayBufferToString(new Uint8Array(a)))};Graph.decompress=function(a,b,f){if(null==a||0==a.length||"undefined"===typeof pako)return a;a=Graph.stringToArrayBuffer(atob(a));b=decodeURIComponent(b?pako.inflate(a,{to:"string"}):pako.inflateRaw(a,{to:"string"}));return f?b:Graph.zapGremlins(b)};Graph.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,B){null!=B.shape&&w.model.isEdge(w.model.getParent(B.cell))?B.shape.node.parentNode.appendChild(B.shape.node):null!=B.text&&w.model.isEdge(B.cell)&&B.text.node.parentNode.appendChild(B.text.node)})}function h(w,y){if(w.getModel().isVertex(y)){var B=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 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=B-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=B-S.width/2,S.y=D-S.height/2));var fa=y.length,la=2*Math.PI/fa,O=Math.max(minSize,Math.min(w.container.offsetWidth/-2-40,w.container.offsetHeight/2-80));for(B=0;B<fa;B++)S=w.getModel().getGeometry(y[B]),null!=S&&(S=S.clone(),S.x+=O*Math.sin(B*la),S.y+=O*Math.cos(B*la),w.getModel().setGeometry(y[B],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?+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,E=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 D=y.referenceCell||y,G=e.model.getCell(D.sourceCellId),I=e.getEdges(G,null,!0,!0,!1,!0),M=[],N=0;N<I.length;N++)null!=I[N].getTerminal(!0)&&null!=I[N].getTerminal(!1)&&e.isCellVisible(I[N])&&!e.isEdgeIgnored(I[N])&&e.isCellVisible(I[N].getTerminal(!0))&&e.isCellVisible(I[N].getTerminal(!1))&&e.isCellVisible(e.getLayerForCell(I[N]))&&+M.push(I[N]);M=I=M;if(null!=y.startIndex||0<pageSize&&I.length>pageSize){var L=y.startIndex||0;M=I.slice(Math.max(0,L),Math.min(I.length,L+pageSize))}M=e.getOpposites(M,G).concat(M);var V=w.cloneCells(M);for(N=0;N<M.length;N++)if(V[N].sourceCellId=M[N].id,w.model.isEdge(V[N]))for(V[N].geometry.x=0,V[N].geometry.y=0,V[N].geometry.points=null,V[N].setStyle(V[N].getStyle()+";curved=1;noEdgeStyle=1;entryX=none;entryY=none;exitX=none;exitY=none;labelBackgroundColor=#ffffffe0;textOpacity=100;"),V[N].setTerminal(D,+null==V[N].getTerminal(!0)),G=0;G<V[N].getChildCount();G++){var X=V[N].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(I.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");+T.referenceCell=D;T.startIndex=Math.max(0,(y.startIndex||0)-pageSize);V.splice(0,0,T)}if(I.length>(y.startIndex||0)+pageSize){var O=w.createVertex(null,null,mxResources.get("nextPage")+" ("+(Math.ceil((y.startIndex||0)/pageSize)+2)+"/"+Math.ceil(I.length/pageSize)+")",0,0,120,30,"fillColor=green;fontColor=white;strokeColor=green;rounded=1;");O.referenceCell=D;O.startIndex=(y.startIndex||0)+pageSize;V.splice(0,0,O)}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(V);var S=w.getModel().getGeometry(w.rootCell);null!=S&&(S=S.clone(),S.x=C-S.width/2,S.y=E-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=E-S.height/2));var fa=y.length,la=2*Math.PI/fa,P=Math.max(minSize,Math.min(w.container.offsetWidth/+2-40,w.container.offsetHeight/2-80));for(C=0;C<fa;C++)S=w.getModel().getGeometry(y[C]),null!=S&&(S=S.clone(),S.x+=P*Math.sin(C*la),S.y+=P*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 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 B=function(){mxEvent.removeListener(document,"keydown",u);w.parentNode.removeChild(w);e.scrollCellToVisible(g)};mxEvent.addListener(p,"click",B);mxEvent.addListener(k,-"click",B);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)};B=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=B-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]};+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 E=y.click;y.click=function(M){var N=M.getCell(),L=null!=N?null!=N.referenceCell?N.referenceCell:N:null;null!=N&&0<y.getEdges(L).length?h(y,N):E.apply(this,arguments)};C=y.container.offsetWidth/2;var D=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=D-G.geometry.height/2;y.model.endUpdate();var I=!1;y.getModel().addListener(mxEvent.CHANGE,function(M,N){I||(M=N.getProperty("edit").changes,+mxText.prototype.enableBoundingBox=!1,y.labelsVisible=!1,I=!0,mxEffects.animateChanges(y,M,function(){var L=new mxParallelEdgeLayout(y);L.spacing=60;var V=L.layout;L.layout=function(X){L.spacing=Math.min(60,Math.max(30,60-5*X.length));V.apply(this,arguments)};L.execute(y.getDefaultParent());mxText.prototype.enableBoundingBox=!0;y.labelsVisible=!0;y.tooltipHandler.hide();y.refresh();d(y);I=!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)};@@ -2631,14 +2631,14 @@ h.shape?h.shape.isRoundable():0<=mxUtils.indexOf(this.roundableShapes,mxUtils.gemxUtils.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 B=!1,D=!1;if(0<h.length)for(var E=0;E<h.length&&(B=this.getModel().isVertex(h[E])||B,!(D=this.getModel().isEdge(h[E])||-D)||!B);E++);else D=B=!0;B=B&&!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]&&(B||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],B=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!=B?B.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))&&(B=mxUtils.setStyle(B,K,H),"fontFamily"==K&&null==D.fontSource&&(B=mxUtils.setStyle(B,"fontSource",null)),ca&&"rounded"==K&&"1"==H&&null==D.curved&&(B=mxUtils.setStyle(B,-"curved",null)))}Editor.simpleLabels&&(B=mxUtils.setStyle(mxUtils.setStyle(B,"html",null),"whiteSpace",null));this.model.setStyle(y,B)}}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(B in h){var y=h[B];if(k[B]!=y){if(B==mxConstants.STYLE_SHAPE&&"umlLifeline"==k[B]&&"umlLifeline"!=-y){w=!0;var B="participant"}this.setCellStyles(B,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 B=this.model.getChildAt(p,y),D=this.getScaledCellAt(h,m,B,k,u,w);if(null!=D)return D;if(this.isCellVisible(B)&&-(u&&this.model.isEdge(B)||k&&this.model.isVertex(B))&&(D=this.view.getState(B),null!=D&&(null==w||!w(D,h,m))&&this.intersects(D,h,m)))return B}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&&+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,E=!1;if(0<h.length)for(var D=0;D<h.length&&(C=this.getModel().isVertex(h[D])||C,!(E=this.getModel().isEdge(h[D])||+E)||!C);D++);else E=C=!0;C=C&&!w;E=E&&!y;for(D=0;D<m.length;D++)if(h=0<=mxUtils.indexOf(Graph.textStyles,m[D]),"strokeColor"!=m[D]||null!=p[D]&&"none"!=p[D])if(0<=mxUtils.indexOf(Graph.cellStyles,m[D])||"shape"==m[D])if("shape"!=m[D]&&(C||h)&&(null==p[D]?delete k[m[D]]:k[m[D]]=p[D]),E||h)null==p[D]?delete u[m[D]]:u[m[D]]=p[D]};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),E=!1;null!=y.style&&(pairs=y.style.split(";"),E=E||0<=mxUtils.indexOf(pairs,"text"));if(E)var D=Graph.textStyles;else if(D=Graph.cellStyles.slice(),!k)for(var G=null!=C?C.split(";"):[],I=0;I<G.length;I++){var M=G[I],N=M.indexOf("=");if(0<=N){var L=M.substring(0,N),V=mxUtils.indexOf(D,L);0<=V&&D.splice(V,+1);for(E=0;E<Graph.cellStyleGroups.length;E++){var X=Graph.cellStyleGroups[E];if(0<=mxUtils.indexOf(X,L))for(var T=0;T<X.length;T++){var O=mxUtils.indexOf(D,X[T]);0<=O&&D.splice(O,1)}}}}var ca=this.model.isEdge(y);E=ca?p:m;for(I=0;I<D.length;I++){L=D[I];var H=E[L];null!=H&&("edgeStyle"!=L||u)&&(ca||!ca&&0>mxUtils.indexOf(Graph.edgeStyles,L))&&(C=mxUtils.setStyle(C,L,H),"fontFamily"==L&&null==E.fontSource&&(C=mxUtils.setStyle(C,"fontSource",null)),ca&&"rounded"==L&&"1"==H&&null==E.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),E=this.getScaledCellAt(h,m,C,k,u,w);if(null!=E)return E;if(this.isCellVisible(C)&&+(u&&this.model.isEdge(C)||k&&this.model.isVertex(C))&&(E=this.view.getState(C),null!=E&&(null==w||!w(E,h,m))&&this.intersects(E,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=@@ -2675,10 +2675,10 @@ Graph.prototype.isSplitTarget=function(a,b,f){return!this.model.isEdge(b[0])&&!mGraph.prototype.isLabelMovable=function(a){var b=this.getCurrentCellStyle(a);return!this.isCellLocked(a)&&(this.model.isEdge(a)&&this.edgeLabelsMovable||this.model.isVertex(a)&&(this.vertexLabelsMovable||"1"==mxUtils.getValue(b,"labelMovable","0")))};Graph.prototype.setGridSize=function(a){this.gridSize=a;this.fireEvent(new mxEventObject("gridSizeChanged"))};Graph.prototype.setDefaultParent=function(a){this.defaultParent=a;this.fireEvent(new mxEventObject("defaultParentChanged"))};Graph.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"](),u=a[m+"Month"](),w=a[m+"FullYear"](),y=a[m+"Hours"](),B=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:B,MM:h(B),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};+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(I,M){I=String(I);for(M=M||2;I.length<M;)I="0"+I;return I};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"](),u=a[m+"Month"](),w=a[m+"FullYear"](),y=a[m+"Hours"](),C=a[m+"Minutes"](),E=a[m+"Seconds"]();m=a[m+"Milliseconds"]();var D=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:E,ss:h(E),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<D?"-":"+")+h(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%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(I){return I in G?G[I]:I.slice(1,+I.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)?(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};@@ -2696,11 +2696,11 @@ Graph.prototype.selectCellsForConnectVertex=function(a,b,f){2==a.length&&this.moGraph.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),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 B=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==B||d[E]==this.model.getParent(a)))B=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?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=B;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!=B?(this.addCells([Q],B,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)};+this.getCells(0,0,0,0,null,null,d,null,!0):null;w=this.view.getState(a);var C=null,E=null;if(null!=d){d=d.reverse();for(var D=0;D<d.length;D++)if(!this.isCellLocked(d[D])&&!this.model.isEdge(d[D])&&d[D]!=a)if(!this.model.isAncestor(a,d[D])&&this.isContainer(d[D])&&(null==C||d[D]==this.model.getParent(a)))C=d[D];else if(null==E&&this.isCellConnectable(d[D])&&!this.model.isAncestor(d[D],a)&&!this.isSwimlane(d[D])){var G=this.view.getState(d[D]);null==w||null==G||mxUtils.intersects(w,G)||(E=d[D])}}var I=+!mxEvent.isShiftDown(e)||mxEvent.isControlDown(e)||g;I&&("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=[],N=E;E=C;g=mxUtils.bind(this,function(L){if(null==h||null!=L||null==E&&p){this.model.beginUpdate();try{if(null==N&&I){var V=this.getAbsoluteParent(null!=L?L:a);V=p?a:this.getCompositeParent(V);N=null!=L?L:this.duplicateCells([V],+!1)[0];null!=L&&this.addCells([N],this.model.getParent(a),null,null,null,!0);var X=this.getCellGeometry(N);null!=X&&(null!=L&&"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([N],C,null,null,null,!0),E=null):I&&!p&&this.addCells([N],this.getDefaultParent(),null,null,null,!0)}var T=mxEvent.isControlDown(e)&&+mxEvent.isShiftDown(e)&&I||null==E&&p?null:this.insertEdge(this.model.getParent(a),null,"",a,N,this.createCurrentEdgeStyle());null!=T&&(M.push(T),this.applyNewEdgeStyle(a,[T],b),this.connectionHandler.insertBeforeSource&&this.insertEdgeBeforeCell(T,a));if(null==E&&null!=N&&null!=a.parent&&p&&b==mxConstants.DIRECTION_WEST){var O=a.parent.getIndex(a);this.model.add(a.parent,N,O)}null==E&&null!=N&&M.push(N);null==N&&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!=N||!I||null==E&&p)return g(N);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};@@ -2786,25 +2786,25 @@ TableLayout.prototype.getRowLayout=function(a,b){var f=this.graph.model.getChildTableLayout.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,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 B=this.graph.getCellGeometry(u[u.length-1]);null!=B&&(B=B.clone(),B.height=p-y+B.height,h.setGeometry(u[u.length-1],B))}var D=d?null:this.getRowLayout(u[0],k),E=[],G=b.y;for(w=0;w<u.length;w++)B=this.graph.getCellGeometry(u[w]),null!=B&&(B=B.clone(),B.x=b.x,B.width=k,B.y=Math.round(G),G=g||e?G+B.height:G+B.height/y*p,B.height=Math.round(G)-B.y,h.setGeometry(u[w],B)),m=Math.max(m,this.layoutRow(u[w],D,B.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],+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 E=d?null:this.getRowLayout(u[0],k),D=[],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],E,C.height,k,D));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(I){h.setVisible(I.cell,I.actual.cell==I.cell);if(I.actual.cell!=I.cell){if(I.actual.row==I.row){var M=null!=I.geo.alternateBounds?I.geo.alternateBounds:I.geo;I.actual.geo.width+=M.width}I.actual.col==I.col&&(M=null!=I.geo.alternateBounds?I.geo.alternateBounds:I.geo,I.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 B=this.getState(w);null!=B&&y&&this.graph.model.isEdge(B.cell)&&null!=B.style&&1!=B.style[mxConstants.STYLE_CURVED]&&!B.invalid&&this.updateLineJumps(B)&&this.graph.cellRenderer.redraw(B,!1,this.isRendering());B=b.apply(this,-arguments);null!=B&&y&&this.graph.model.isEdge(B.cell)&&null!=B.style&&1!=B.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(B);return B};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 B=null,D=0;D<y.length;D++)if("hidden"!=y[D].getAttribute("visibility")){if(!(null!=B&&B!=y[D].getAttribute("d")||null!=w&&0!=--w))return y[D]}else null==B&&(B=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,+(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,E=0;E<y.length;E++)if("hidden"!=y[E].getAttribute("visibility")){if(!(null!=C&&C!=y[E].getAttribute("d")||null!=w&&0!=--w))return y[E]}else null==C&&(C=y[E].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 B=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;B=!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];B=E(0,Q.x,Q.y)||B;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 fa=mxUtils.intersection(Q.x,Q.y,M.x,M.y,S.x,S.y,H.x,H.y);if(null!=fa&&(Math.abs(fa.x-Q.x)>G||Math.abs(fa.y-Q.y)>G)&&(Math.abs(fa.x-M.x)>G||Math.abs(fa.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=-fa.x-Q.x;ca=fa.y-Q.y;fa={distSq:W*W+ca*ca,x:fa.x,y:fa.y};for(W=0;W<K.length;W++)if(K[W].distSq>fa.distSq){K.splice(W,0,fa);fa=null;break}null==fa||0!=K.length&&K[K.length-1].x===fa.x&&K[K.length-1].y===fa.y||K.push(fa)}ca=S}}}for(T=0;T<K.length;T++)B=E(1,K[T].x,K[T].y)||B}fa=y[y.length-1];B=E(0,fa.x,fa.y)||B}w.routedPoints=D;return B}return!1};var h=mxConnector.prototype.paintLine;mxConnector.prototype.paintLine=function(w,y,B){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,B,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,B,D,!1,null,J);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;-mxGraphView.prototype.getFixedTerminalPoint=function(w,y,B,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,B,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,B,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),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,B,D,E),D)}};mxGraphView.prototype.snapToAnchorPoint=function(w,y,B,D,E){if(null!=y&&null!=w){w=this.graph.getAllConnectionConstraints(y);D=B=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)B=J,D=M}}null!=B&&(E=B)}return E};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,y,B){var D=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&-null!=B.state&&(D=B.state.view.graph.replacePlaceholders(B.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 B=y.substring(8,y.length-1),D=mxUtils.parseXml(Graph.decompress(B));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};+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,E=null;if(null!=y&&null!=this.validEdges&&"none"!==mxUtils.getValue(w.style,"jumpStyle","none")){var D=function(la,P,W){var Y=new mxPoint(P,W);Y.type=la;E.push(Y);+Y=null!=w.routedPoints?w.routedPoints[E.length-1]:null;return null==Y||Y.type!=la||Y.x!=P||Y.y!=W},G=.5*this.scale;C=!1;E=[];for(var I=0;I<y.length-1;I++){for(var M=y[I+1],N=y[I],L=[],V=y[I+2];I<y.length-2&&mxUtils.ptSegDistSq(N.x,N.y,V.x,V.y,M.x,M.y)<1*this.scale*this.scale;)M=V,I++,V=y[I+2];C=D(0,N.x,N.y)||C;for(var X=0;X<this.validEdges.length;X++){var T=this.validEdges[X],O=T.absolutePoints;if(null!=O&&mxUtils.intersects(w,T)&&"1"!=T.style.noJump){var ca=null;for(T=0;T<O.length-1;T++){var H=O[T++1],S=O[T];for(V=O[T+2];T<O.length-2&&mxUtils.ptSegDistSq(S.x,S.y,V.x,V.y,H.x,H.y)<1*this.scale*this.scale;)H=V,T++,V=O[T+2];var fa=mxUtils.intersection(N.x,N.y,M.x,M.y,S.x,S.y,H.x,H.y);if(null!=fa&&(Math.abs(fa.x-N.x)>G||Math.abs(fa.y-N.y)>G)&&(Math.abs(fa.x-M.x)>G||Math.abs(fa.y-M.y)>G)&&(null==ca||mxUtils.ptLineDist(N.x,N.y,M.x,M.y,ca.x,ca.y)>G||mxUtils.ptLineDist(N.x,N.y,M.x,M.y,S.x,S.y)>G)&&(null==V||mxUtils.ptLineDist(N.x,N.y,M.x,M.y,V.x,V.y)>G||mxUtils.ptLineDist(N.x,N.y,M.x,M.y,H.x,H.y)>G)){V=+fa.x-N.x;ca=fa.y-N.y;fa={distSq:V*V+ca*ca,x:fa.x,y:fa.y};for(V=0;V<L.length;V++)if(L[V].distSq>fa.distSq){L.splice(V,0,fa);fa=null;break}null==fa||0!=L.length&&L[L.length-1].x===fa.x&&L[L.length-1].y===fa.y||L.push(fa)}ca=S}}}for(T=0;T<L.length;T++)C=D(1,L[T].x,L[T].y)||C}fa=y[y.length-1];C=D(0,fa.x,fa.y)||C}w.routedPoints=E;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 E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2,D=(parseInt(mxUtils.getValue(this.style,"jumpSize",Graph.defaultJumpSize))-2)/2+this.strokewidth,G=mxUtils.getValue(this.style,"jumpStyle","none"),I=!0,M=null,N=null,L=[],V=null;w.begin();for(var X=0;X<this.state.routedPoints.length;X++){var T=this.state.routedPoints[X],O=new mxPoint(T.x/+this.scale,T.y/this.scale);0==X?O=y[0]:X==this.state.routedPoints.length-1&&(O=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-O.x;H=H.y/this.scale-O.y;T=T*T+H*H;null==V&&(V=new mxPoint(O.x-M.x,O.y-M.y),N=Math.sqrt(V.x*V.x+V.y*V.y),0<N?(V.x=V.x*D/N,V.y=V.y*D/N):V=null);T>D*D&&0<N&&(T=M.x-O.x,H=M.y-O.y,T=T*T+H*H,T>D*D&&(ca=new mxPoint(O.x-V.x,O.y-V.y),T=new mxPoint(O.x+V.x,O.y+V.y),L.push(ca),this.addPoints(w,L,C,E,!1,null,I),L=0>Math.round(V.x)||+0==Math.round(V.x)&&0>=Math.round(V.y)?1:-1,I=!1,"sharp"==G?(w.lineTo(ca.x-V.y*L,ca.y+V.x*L),w.lineTo(T.x-V.y*L,T.y+V.x*L),w.lineTo(T.x,T.y)):"line"==G?(w.moveTo(ca.x+V.y*L,ca.y-V.x*L),w.lineTo(ca.x-V.y*L,ca.y+V.x*L),w.moveTo(T.x-V.y*L,T.y+V.x*L),w.lineTo(T.x+V.y*L,T.y-V.x*L),w.moveTo(T.x,T.y)):"arc"==G?(L*=1.3,w.curveTo(ca.x-V.y*L,ca.y+V.x*L,T.x-V.y*L,T.y+V.x*L,T.x,T.y)):(w.moveTo(T.x,T.y),I=!0),L=[T],ca=!0))}else V=null;ca||(L.push(O),M=O)}this.addPoints(w,L,C,E,!1,null,I);w.stroke()}};var m=mxGraphView.prototype.getFixedTerminalPoint;+mxGraphView.prototype.getFixedTerminalPoint=function(w,y,C,E){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,E){if(null==y||null==w||"1"!=y.style.snapToPoint&&"1"!=w.style.snapToPoint)p.apply(this,arguments);else{y=this.getTerminalPort(w,y,E);var D=this.getNextPoint(w,C,E),G=this.graph.isOrthogonal(w),+I=mxUtils.toRadians(Number(y.style[mxConstants.STYLE_ROTATION]||"0")),M=new mxPoint(y.getCenterX(),y.getCenterY());if(0!=I){var N=Math.cos(-I),L=Math.sin(-I);D=mxUtils.getRotatedPoint(D,N,L,M)}N=parseFloat(w.style[mxConstants.STYLE_PERIMETER_SPACING]||0);N+=parseFloat(w.style[E?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);D=this.getPerimeterPoint(y,D,0==I&&G,N);0!=I&&(N=Math.cos(I),L=Math.sin(I),D=mxUtils.getRotatedPoint(D,N,L,M));w.setAbsoluteTerminalPoint(this.snapToAnchorPoint(w,+y,C,E,D),E)}};mxGraphView.prototype.snapToAnchorPoint=function(w,y,C,E,D){if(null!=y&&null!=w){w=this.graph.getAllConnectionConstraints(y);E=C=null;if(null!=w)for(var G=0;G<w.length;G++){var I=this.graph.getConnectionPoint(y,w[G]);if(null!=I){var M=(I.x-D.x)*(I.x-D.x)+(I.y-D.y)*(I.y-D.y);if(null==E||M<E)C=I,E=M}}null!=C&&(D=C)}return D};var k=mxStencil.prototype.evaluateTextAttribute;mxStencil.prototype.evaluateTextAttribute=function(w,y,C){var E=k.apply(this,arguments);"1"==w.getAttribute("placeholders")&&+null!=C.state&&(E=C.state.view.graph.replacePlaceholders(C.state.cell,E));return E};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),E=mxUtils.parseXml(Graph.decompress(C));return new mxShape(new mxStencil(E.documentElement))}catch(D){null!=window.console&&+console.log("Error in shape: "+D)}}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};@@ -2817,152 +2817,152 @@ 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 C=this.previous.style.newEdgeStyle;if(null!=C)try{var F=JSON.parse(C);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(C){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(" "),C=0;C<A.length;C++)null!=-this.currentEdgeStyle[A[C]]&&(q+=A[C]+"="+this.currentEdgeStyle[A[C]]+";");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++"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};+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 C=0;C<q.length;C++){var F=q[C];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,C){C=null!=C?C:{};for(var F in q){var L=A[F];null==C[L]&&(C[L]=q[F].getId()||"")}return C};Graph.prototype.importGraphModel=function(q,A,-C,F){A=null!=A?A:0;C=null!=C?C: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 ea=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,C,!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,C,!1,this.getDefaultParent()),Z[R.getChildAt(R.root,0).getId()]=this.getDefaultParent().getId())}if(null!=q&&(this.createCellMapping(L,ea,Z),this.updateCustomLinks(Z,q),F)){this.isGridEnabled()&&(A=this.snap(A),C=this.snap(C));var xa=this.getBoundingBoxFromGeometry(q,!0);null!=xa&&this.moveCells(q,A-xa.x,C-xa.y)}}finally{this.model.endUpdate()}}return q};Graph.prototype.encodeCells=function(q){for(var A={},C=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<C.length;L++){Z.add(ja,C[L]);var ea=this.view.getState(q[L]);if(null!=ea){var ka=this.getCellGeometry(C[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=ea.x/ea.view.scale-ea.view.translate.x,ka.y=ea.y/ea.view.scale-ea.view.translate.y)}}this.updateCustomLinks(this.createCellMapping(A,this.createCellLookup(q)),C);return R.encode(Z)};Graph.prototype.isSwimlane=-function(q,A){var C=null;null==q||this.model.isEdge(q)||this.model.getParent(q)==this.model.getRoot()||(C=this.getCurrentCellStyle(q,A)[mxConstants.STYLE_SHAPE]);return C==mxConstants.SHAPE_SWIMLANE||"table"==C||"tableRow"==C};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 C=this.getCurrentCellStyle(A);if(null!=C.expand)return"0"!=C.expand}return k.apply(this,arguments)&&(null==A||!this.isTable(A))};var u=Graph.prototype.splitEdge;Graph.prototype.splitEdge=function(q,A,C,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));C=null;this.model.beginUpdate();try{var ea=this.getCellGeometry(q);if(null!=ea&&null!=ea.points&&0<ea.points.length&&1==A.length&&this.model.isVertex(A[0])){var ka=this.getCellGeometry(A[0]);if(null!=ka&&!ka.relative){var xa=new mxRectangle(ka.x+F,ka.y+L,ka.width,ka.height),Ka=ea.points;ka=[];for(var Ha=0;Ha<Ka.length;Ha++)xa.intersectsPoint(Ka[Ha].x,Ka[Ha].y)||ka.push(Ka[Ha]);ka.length<Ka.length&&(ea=ea.clone(),ea.points=-ka,this.model.setGeometry(q,ea))}}C=u.apply(this,[q,A,C,F,L,R,Z,ja]);this.model.setValue(C,"");var ya=this.getChildCells(C,!0);for(Ha=0;Ha<ya.length;Ha++)ea=this.getCellGeometry(ya[Ha]),null!=ea&&ea.relative&&0<ea.x&&this.model.remove(ya[Ha]);var Fa=this.getChildCells(q,!0);for(Ha=0;Ha<Fa.length;Ha++)ea=this.getCellGeometry(Fa[Ha]),null!=ea&&ea.relative&&0>=ea.x&&this.model.remove(Fa[Ha]);var va=this.model.getTerminal(C,!1);if(null!=va){var ua=this.getCurrentCellStyle(va);null!=ua&&"1"==ua.snapToPoint&&-(this.setCellStyles(mxConstants.STYLE_EXIT_X,null,[q]),this.setCellStyles(mxConstants.STYLE_EXIT_Y,null,[q]),this.setCellStyles(mxConstants.STYLE_ENTRY_X,null,[C]),this.setCellStyles(mxConstants.STYLE_ENTRY_Y,null,[C]))}}finally{this.model.endUpdate()}return C};var w=Graph.prototype.selectCell;Graph.prototype.selectCell=function(q,A,C){if(A||C)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 ea=0;ea<this.model.getChildCount(ja);ea++)Z(this.model.getChildAt(ja,ea))});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 C=this.getCellGeometry(q),F=this.getCellGeometry(A);-if(null!=C&&null!=F){var L=C.clone(),R=F.clone();this.model.beginUpdate();try{L.x=F.getCenterX()-C.width/2,L.y=F.getCenterY()-C.height/2,R.x=C.getCenterX()-F.width/2,R.y=C.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,C,F,L,R,Z){Z=null!=Z?Z:{};if(this.isTable(L)){for(var ja=[],ea=0;ea<q.length;ea++)this.isTable(q[ea])?ja=ja.concat(this.model.getChildCells(q[ea],-!0).reverse()):ja.push(q[ea]);q=ja}this.model.beginUpdate();try{ja=[];for(ea=0;ea<q.length;ea++)if(null!=L&&this.isTableRow(q[ea])){var ka=this.model.getParent(q[ea]),xa=this.getCellGeometry(q[ea]);this.isTable(ka)&&ja.push(ka);if(null!=ka&&null!=xa&&this.isTable(ka)&&this.isTable(L)&&(F||ka!=L)){if(!F){var Ka=this.getCellGeometry(ka);null!=Ka&&(Ka=Ka.clone(),Ka.height-=xa.height,this.model.setGeometry(ka,Ka))}Ka=this.getCellGeometry(L);null!=Ka&&(Ka=Ka.clone(),Ka.height+=xa.height,this.model.setGeometry(L,-Ka));var Ha=this.model.getChildCells(L,!0);if(0<Ha.length){q[ea]=F?this.cloneCell(q[ea]):q[ea];var ya=this.model.getChildCells(q[ea],!0),Fa=this.model.getChildCells(Ha[0],!0),va=Fa.length-ya.length;if(0<va)for(var ua=0;ua<va;ua++){var Ta=this.cloneCell(ya[ya.length-1]);null!=Ta&&(Ta.value="",this.model.add(q[ea],Ta))}else if(0>va)for(ua=0;ua>va;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(q[ea],!0);for(ua=0;ua<Fa.length;ua++){var Ra=this.getCellGeometry(Fa[ua]),Oa=this.getCellGeometry(ya[ua]);-null!=Ra&&null!=Oa&&(Oa=Oa.clone(),Oa.width=Ra.width,this.model.setGeometry(ya[ua],Oa))}}}}var Sa=y.apply(this,arguments);for(ea=0;ea<ja.length;ea++)!F&&this.model.contains(ja[ea])&&0==this.model.getChildCount(ja[ea])&&this.model.remove(ja[ea]);F&&this.updateCustomLinks(this.createCellMapping(Z,this.createCellLookup(q)),Sa)}finally{this.model.endUpdate()}return Sa};var B=Graph.prototype.removeCells;Graph.prototype.removeCells=function(q,A){var C=[];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(C,R)&&C.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(C,R))){for(var Z=this.model.getChildCells(R,!0),ja=0,ea=0;ea<Z.length;ea++)0<=mxUtils.indexOf(q,Z[ea])&&ja++;ja==Z.length&&C.push(R)}C.push(q[F])}C=B.apply(this,[C,A])}finally{this.model.endUpdate()}return C};-Graph.prototype.updateCustomLinks=function(q,A,C){C=null!=C?C:new Graph;for(var F=0;F<A.length;F++)null!=A[F]&&C.updateCustomLinksForCell(q,A[F],C)};Graph.prototype.updateCustomLinksForCell=function(q,A){this.doUpdateCustomLinksForCell(q,A);for(var C=this.model.getChildCount(A),F=0;F<C;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 C=JSON.parse(A);for(A=0;A<C.length;A++){var F=C[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;C=A.width/L;A=A.height/L;if(F==mxConstants.DIRECTION_NORTH||F==mxConstants.DIRECTION_SOUTH)F=C,C=A,A=F;A=q.shape.getConstraints(q.style,C,A);if(null!=A)return A;if(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 ea=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,ea,Z),this.updateCustomLinks(Z,q),F)){this.isGridEnabled()&&(A=this.snap(A),B=this.snap(B));var xa=this.getBoundingBoxFromGeometry(q,!0);null!=xa&&this.moveCells(q,A-xa.x,B-xa.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 ea=this.view.getState(q[K]);if(null!=ea){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=ea.x/ea.view.scale-ea.view.translate.x,ka.y=ea.y/ea.view.scale-ea.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 u=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{var ea=this.getCellGeometry(q);if(null!=ea&&null!=ea.points&&0<ea.points.length&&1==A.length&&this.model.isVertex(A[0])){var ka=this.getCellGeometry(A[0]);if(null!=ka&&!ka.relative){var xa=new mxRectangle(ka.x+F,ka.y+K,ka.width,ka.height),Ka=ea.points;ka=[];for(var Ha=0;Ha<Ka.length;Ha++)xa.intersectsPoint(Ka[Ha].x,Ka[Ha].y)||ka.push(Ka[Ha]);ka.length<Ka.length&&(ea=ea.clone(),ea.points=+ka,this.model.setGeometry(q,ea))}}B=u.apply(this,[q,A,B,F,K,R,Z,ja]);this.model.setValue(B,"");var ya=this.getChildCells(B,!0);for(Ha=0;Ha<ya.length;Ha++)ea=this.getCellGeometry(ya[Ha]),null!=ea&&ea.relative&&0<ea.x&&this.model.remove(ya[Ha]);var Fa=this.getChildCells(q,!0);for(Ha=0;Ha<Fa.length;Ha++)ea=this.getCellGeometry(Fa[Ha]),null!=ea&&ea.relative&&0>=ea.x&&this.model.remove(Fa[Ha]);var va=this.model.getTerminal(B,!1);if(null!=va){var ua=this.getCurrentCellStyle(va);null!=ua&&"1"==ua.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 ea=0;ea<this.model.getChildCount(ja);ea++)Z(this.model.getChildAt(ja,ea))});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=[],ea=0;ea<q.length;ea++)this.isTable(q[ea])?ja=ja.concat(this.model.getChildCells(q[ea],+!0).reverse()):ja.push(q[ea]);q=ja}this.model.beginUpdate();try{ja=[];for(ea=0;ea<q.length;ea++)if(null!=K&&this.isTableRow(q[ea])){var ka=this.model.getParent(q[ea]),xa=this.getCellGeometry(q[ea]);this.isTable(ka)&&ja.push(ka);if(null!=ka&&null!=xa&&this.isTable(ka)&&this.isTable(K)&&(F||ka!=K)){if(!F){var Ka=this.getCellGeometry(ka);null!=Ka&&(Ka=Ka.clone(),Ka.height-=xa.height,this.model.setGeometry(ka,Ka))}Ka=this.getCellGeometry(K);null!=Ka&&(Ka=Ka.clone(),Ka.height+=xa.height,this.model.setGeometry(K,+Ka));var Ha=this.model.getChildCells(K,!0);if(0<Ha.length){q[ea]=F?this.cloneCell(q[ea]):q[ea];var ya=this.model.getChildCells(q[ea],!0),Fa=this.model.getChildCells(Ha[0],!0),va=Fa.length-ya.length;if(0<va)for(var ua=0;ua<va;ua++){var Ta=this.cloneCell(ya[ya.length-1]);null!=Ta&&(Ta.value="",this.model.add(q[ea],Ta))}else if(0>va)for(ua=0;ua>va;ua--)this.model.remove(ya[ya.length+ua-1]);ya=this.model.getChildCells(q[ea],!0);for(ua=0;ua<Fa.length;ua++){var Ra=this.getCellGeometry(Fa[ua]),Oa=this.getCellGeometry(ya[ua]);+null!=Ra&&null!=Oa&&(Oa=Oa.clone(),Oa.width=Ra.width,this.model.setGeometry(ya[ua],Oa))}}}}var Sa=y.apply(this,arguments);for(ea=0;ea<ja.length;ea++)!F&&this.model.contains(ja[ea])&&0==this.model.getChildCount(ja[ea])&&this.model.remove(ja[ea]);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,ea=0;ea<Z.length;ea++)0<=mxUtils.indexOf(q,Z[ea])&&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||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),C=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||C++)}return 0<C||this.isContainer(q)};Graph.prototype.isValidDropTarget=function(q,A,C){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,C)||("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 C=this.model.getParent(q);null!=C&&(C=this.layoutManager.getLayout(C),-null!=C&&C.constructor==mxStackLayout&&(A=!1))}return A};Graph.prototype.getPreferredSizeForCell=function(q,A,C){C=null!=C?C:this.gridEnabled;var F=mxGraph.prototype.getPreferredSizeForCell.apply(this,arguments);null!=F&&(F.width+=10,F.height+=4,C&&(F.width=this.snap(F.width),F.height=this.snap(F.height)));return F};Graph.prototype.turnShapes=function(q,A){var C=this.getModel(),F=[];C.beginUpdate();try{for(var L=0;L<q.length;L++){var R=q[L];if(C.isEdge(R)){var Z=C.getTerminal(R,!0),ja=C.getTerminal(R,-!1);C.setTerminal(R,ja,!0);C.setTerminal(R,Z,!1);var ea=C.getGeometry(R);if(null!=ea){ea=ea.clone();null!=ea.points&&ea.points.reverse();var ka=ea.getTerminalPoint(!0),xa=ea.getTerminalPoint(!1);ea.setTerminalPoint(ka,!1);ea.setTerminalPoint(xa,!0);C.setGeometry(R,ea);var Ka=this.view.getState(R),Ha=this.view.getState(Z),ya=this.view.getState(ja);if(null!=Ka){var Fa=null!=Ha?this.getConnectionConstraint(Ka,Ha,!0):null,va=null!=ya?this.getConnectionConstraint(Ka,ya,!1):null;this.setConnectionConstraint(R,-Z,!0,va);this.setConnectionConstraint(R,ja,!1,Fa);var ua=mxUtils.getValue(Ka.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ka.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(C.isVertex(R)&&(ea=this.getCellGeometry(R),null!=ea)){if(!(this.isTable(R)||this.isTableRow(R)||this.isTableCell(R)||this.isSwimlane(R))){ea=ea.clone();-ea.x+=ea.width/2-ea.height/2;ea.y+=ea.height/2-ea.width/2;var Ta=ea.width;ea.width=ea.height;ea.height=Ta;C.setGeometry(R,ea)}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{C.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 C=this.view.getState(A);null!=C&&null!=C.shape&&(this.view.invalidate(A),C.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 C=this.view.getState(q[A]);null!=C&&null!=C.shape&&-null!=C.shape.stencil&&this.stencilHasPlaceholders(C.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 C=Array.prototype.slice.call(q.attributes);attr=C.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 C=0;C<q.length;C++)null!=q[C]&&A(q[C])}};Graph.prototype.updateLabelElements=function(q,A,C){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!=C?C:"*"),ja=0;ja<Z.length;ja++)A(Z[ja]);F.innerHTML!=R&&this.cellLabelChanged(q[L],F.innerHTML)}}};Graph.prototype.cellLabelChanged=-function(q,A,C){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,C=0;C<q.length;C++)A.put(q[C],!0);var F=[];for(C=0;C<q.length;C++){var L=this.model.getParent(q[C]);null==L||A.get(L)||(A.put(L,!0),F.push(L))}for(C=0;C<F.length;C++)if(L=this.view.getState(F[C]),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=[],C=0;C<q.length;C++)this.isCellDeletable(q[C])&&this.isTransparentState(this.view.getState(q[C]))&&A.push(q[C]);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 C="tooltip";Graph.translateDiagram&&null!=Graph.diagramLanguage&&mxUtils.isNode(q.value)&&q.value.hasAttribute("tooltip_"+Graph.diagramLanguage)&&(C="tooltip_"+Graph.diagramLanguage);this.setAttributeForCell(q,C,A)};Graph.prototype.getAttributeForCell=function(q,A,C){q=null!=q.value&&"object"===typeof q.value?q.value.getAttribute(A):null;return null!=q?q:C};Graph.prototype.setAttributeForCell=function(q,-A,C){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!=C?F.setAttribute(A,C):F.removeAttribute(A);this.model.setValue(q,F)};Graph.prototype.isTargetShape=function(q,A,C){q=mxUtils.getValue(this.getCurrentCellStyle(q),mxConstants.STYLE_SHAPE,"");for(C=0;C<A.length;C++){var F=mxUtils.getValue(this.getCurrentCellStyle(A[C]),"targetShapes","").split(",");if(0<=mxUtils.indexOf(F,-q))return!0}return!1};var E=Graph.prototype.getDropTarget;Graph.prototype.getDropTarget=function(q,A,C,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 C=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,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,C.x,C.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(C.x,C.y))),A=this.addText(C.x,C.y,F))}return A};Graph.prototype.getInsertPoint=-function(){var q=this.getGridSize(),A=this.container.scrollLeft/this.view.scale-this.view.translate.x,C=this.container.scrollTop/this.view.scale-this.view.translate.y;if(this.pageVisible){var F=this.getPageLayout(),L=this.getPageSize();A=Math.max(A,F.x*L.width);C=Math.max(C,F.y*L.height)}return new mxPoint(this.snap(A+q),this.snap(C+q))};Graph.prototype.getFreeInsertPoint=function(){var q=this.view,A=this.getGraphBounds(),C=this.getInsertPoint(),F=this.snap(Math.round(Math.max(C.x,A.x/q.scale-q.translate.x+-(0==A.width?2*this.gridSize:0))));q=this.snap(Math.round(Math.max(C.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,C){var F=-new mxCell;F.value="Text";F.geometry=new mxGeometry(0,0,0,0);F.vertex=!0;if(null!=C&&this.model.isEdge(C.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(C,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(C,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!=C?C.origin.x:0),F.geometry.y=Math.round(A/this.view.scale)-L.y-(null!=C?C.origin.y:0),F.style+="autosize=1;";this.getModel().beginUpdate();try{this.addCells([F],null!=C?C.cell:null),this.fireEvent(new mxEventObject("textInserted",-"cells",[F])),this.autoSizeCell(F)}finally{this.getModel().endUpdate()}return F};Graph.prototype.addClickHandler=function(q,A,C){var F=mxUtils.bind(this,function(){var ea=this.container.getElementsByTagName("a");if(null!=ea)for(var ka=0;ka<ea.length;ka++){var xa=this.getAbsoluteUrl(ea[ka].getAttribute("href"));null!=xa&&(ea[ka].setAttribute("rel",this.linkRelation),ea[ka].setAttribute("href",xa),null!=A&&mxEvent.addGestureListeners(ea[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(ea){var ka=ea.sourceState;if(null==ka||null==Z.getLinkForCell(ka.cell))ea=Z.getCellAt(ea.getGraphX(),ea.getGraphY(),null,null,null,function(xa,Ka,Ha){return null==Z.getLinkForCell(xa.cell)}),ka=null==ka||Z.model.isAncestor(ea,ka.cell)?+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!=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 ea=B.getGeometry(R);if(null!=ea){ea=ea.clone();null!=ea.points&&ea.points.reverse();var ka=ea.getTerminalPoint(!0),xa=ea.getTerminalPoint(!1);ea.setTerminalPoint(ka,!1);ea.setTerminalPoint(xa,!0);B.setGeometry(R,ea);var Ka=this.view.getState(R),Ha=this.view.getState(Z),ya=this.view.getState(ja);if(null!=Ka){var Fa=null!=Ha?this.getConnectionConstraint(Ka,Ha,!0):null,va=null!=ya?this.getConnectionConstraint(Ka,ya,!1):null;this.setConnectionConstraint(R,+Z,!0,va);this.setConnectionConstraint(R,ja,!1,Fa);var ua=mxUtils.getValue(Ka.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING);this.setCellStyles(mxConstants.STYLE_SOURCE_PERIMETER_SPACING,mxUtils.getValue(Ka.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING),[R]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,ua,[R])}F.push(R)}}else if(B.isVertex(R)&&(ea=this.getCellGeometry(R),null!=ea)){if(!(this.isTable(R)||this.isTableRow(R)||this.isTableCell(R)||this.isSwimlane(R))){ea=ea.clone();+ea.x+=ea.width/2-ea.height/2;ea.y+=ea.height/2-ea.width/2;var Ta=ea.width;ea.width=ea.height;ea.height=Ta;B.setGeometry(R,ea)}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 E=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)}E.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]))&&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 D=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=D.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=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=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+="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 ea=this.container.getElementsByTagName("a");if(null!=ea)for(var ka=0;ka<ea.length;ka++){var xa=this.getAbsoluteUrl(ea[ka].getAttribute("href"));null!=xa&&(ea[ka].setAttribute("rel",this.linkRelation),ea[ka].setAttribute("href",xa),null!=A&&mxEvent.addGestureListeners(ea[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(ea){var ka=ea.sourceState;if(null==ka||null==Z.getLinkForCell(ka.cell))ea=Z.getCellAt(ea.getGraphX(),ea.getGraphY(),null,null,null,function(xa,Ka,Ha){return null==Z.getLinkForCell(xa.cell)}),ka=null==ka||Z.model.isAncestor(ea,ka.cell)?Z.view.getState(ea):null;ka!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=ka,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(ea,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(ea,ka){if(Z.isMouseDown)null!=this.currentLink&&(ea=Math.abs(this.startX-ka.getGraphX()),ka=Math.abs(this.startY-ka.getGraphY()),(ea>R||ka>R)&&this.clear());else{for(ea=ka.getSource();null!=ea&&"a"!=ea.nodeName.toLowerCase();)ea=ea.parentNode;null!=ea?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(ea,ka){var xa=ka.getSource();for(ea=ka.getEvent();null!=xa&&"a"!=xa.nodeName.toLowerCase();)xa=xa.parentNode;null==xa&&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(ea)||mxEvent.isMiddleMouseButton(ea))&&!mxEvent.isPopupTrigger(ea)||mxEvent.isTouchEvent(ea))&&(null!=this.currentLink?(xa=Z.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,-5)&&xa||null==A||A(ea,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(ea)||(ea=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(ea)?"_blank":xa?Z.linkTarget:"_top",Z.openLink(this.currentLink,ea),ka.consume())):null!=C&&!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&&C(ka.getEvent()));-this.clear()},activate:function(ea){this.currentLink=Z.getAbsoluteUrl(Z.getLinkForCell(ea.cell));null!=this.currentLink&&(this.currentTarget=Z.getLinkTargetForCell(ea.cell),Z.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(ea))},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(ea){};-Z.addMouseListener(ja);mxEvent.addListener(document,"mouseleave",function(ea){ja.clear()})};Graph.prototype.duplicateCells=function(q,A){q=null!=q?q:this.getSelectionCells();A=null!=A?A:!0;for(var C=0;C<q.length;C++)this.isTableCell(q[C])&&(q[C]=this.model.getParent(q[C]));q=this.model.getTopmostCells(q);var F=this.getModel(),L=this.gridSize,R=[];F.beginUpdate();try{var Z={},ja=this.createCellLookup(q),ea=this.cloneCells(q,!1,Z,!0);for(C=0;C<q.length;C++){var ka=F.getParent(q[C]);if(null!=ka){var xa=-this.moveCells([ea[C]],L,L,!1)[0];R.push(xa);if(A)F.add(ka,ea[C]);else{var Ka=ka.getIndex(q[C]);F.add(ka,ea[C],Ka+1)}if(this.isTable(ka)){var Ha=this.getCellGeometry(ea[C]),ya=this.getCellGeometry(ka);null!=Ha&&null!=ya&&(ya=ya.clone(),ya.height+=Ha.height,F.setGeometry(ka,ya))}}else R.push(ea[C])}this.updateCustomLinks(this.createCellMapping(Z,ja),ea,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",ea))}finally{F.endUpdate()}return R};Graph.prototype.insertImage=function(q,A,C){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",C);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"),C=[],F=0;F<A.length;F++)C.push(A[F]);document.execCommand("createlink",!1,mxUtils.trim(q));A=this.cellEditor.textarea.getElementsByTagName("a");if(A.length==C.length+1)for(F=A.length-1;0<=F;F--)if(A[F]!=C[F-1]){for(A=A[F].getElementsByTagName("a");0<A.length;){for(C=A[0].parentNode;null!=A[0].firstChild;)C.insertBefore(A[0].firstChild,A[0]);C.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),C=this.getCurrentCellStyle(q);return!this.isTableCell(q)&&!this.isTableRow(q)&&(A||"0"!=mxUtils.getValue(C,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==C[mxConstants.STYLE_WHITE_SPACE])};Graph.prototype.distributeCells=function(q,A,C){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 ea=this.view.getState(A[ja]);if(null!=ea){var ka=-q?ea.getCenterX():ea.getCenterY();L=null!=L?Math.max(L,ka):ka;R=null!=R?Math.min(R,ka):ka;C&&(Z+=q?ea.width:ea.height);F.push(ea)}}if(2<F.length){F.sort(function(Fa,va){return q?Fa.x-va.x:Fa.y-va.y});C&&(Z-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);ea=this.view.translate;ka=this.view.scale;R=R/ka-(q?ea.x:ea.y);L=L/ka-(q?ea.x:ea.y);this.getModel().beginUpdate();try{var xa=(L-R-Z)/(F.length-1),Ka=R+(C?q?F[0].width/2:F[0].height/2:0);for(ja=1;ja<F.length-1;ja++){var Ha=-this.view.getState(this.model.getParent(F[ja].cell)),ya=this.getCellGeometry(F[ja].cell);Ka+=xa;null!=ya&&null!=Ha&&(ya=ya.clone(),q?ya.x=Math.round(Ka-(C?0:ya.width/2))-Ha.origin.x:ya.y=Math.round(Ka-(C?0:ya.height/2))-Ha.origin.y,this.getModel().setGeometry(F[ja].cell,ya));C&&(Ka+=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(C,F,L){F.setAttribute("data-cell-id",C.id);if(L)if(mxUtils.isNode(C.value))for(L=0;L<C.value.attributes.length;L++){var R=C.value.attributes[L];F.setAttribute("data-cell-"+R.name,R.value)}else if("object"===typeof C.value)for(R in C.value)F.setAttribute("data-cell-"+R,C.value[R]);else null!=C.value&&F.setAttribute("data-cell-value",C.value);return F};var A=q.visitStatesRecursive;q.visitStatesRecursive=function(C,F,L){if(null!=C){var R=F.root,-Z=F.root.ownerDocument;F.root=this.addCellData(C.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(C,F){return this.getLinkForCell(C.cell)});q.getTitleForCellState=mxUtils.bind(this,function(C,F){return Editor.convertHtmlToText(this.convertValueToTooltip(C.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,C,F,L,R,Z,ja,ea,ka,xa,Ka,Ha,ya,Fa,va){var ua=null;if(null!=ya)for(ua=new mxDictionary,xa=0;xa<ya.length;xa++)ua.put(ya[xa],!0);ya=this.useCssTransforms;var Ta=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(this.useCssTransforms=!1,this.view.revalidate(),this.sizeDidChange());try{A=null!=A?A:1;C=null!=-C?C:0;L=null!=L?L:!0;R=null!=R?R:!0;Z=null!=Z?Z:!0;ka=null!=ka?ka:!1;var Ra="page"==Ha?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Ha?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Oa=this.backgroundImage,Sa=this.view.translate,Xa=this.view.scale;"diagram"==Ha&&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*C)+(ka&&0==C?5:0),tb=Math.max(1,Math.ceil(Ra.height*F)+2*C)+(ka&&0==C?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(C/A-Ra.x/Xa),Math.floor(C/A-Ra.y/Xa));cb.idPrefix="drawio-svg-"+Editor.guid();var vb=document.createElement("div"),wb=cb.getAlternateText;cb.getAlternateText=function(Na,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 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(Na,ob){var ab=Na.view.graph.getAbsoluteUrl(yb.apply(this,arguments));return null==ab||Na.view.graph.isCustomLink(ab)?null:ab};ja.getLinkTargetForCellState=function(Na,ob){return Na.view.graph.getLinkTargetForCell(Na.cell)};var sb=ja.drawCellState,qb=null,rb=mxUtils.bind(this,function(){if(null==qb){qb="ge-flow-animation-"+Editor.guid();var Na=null!=mb.createElementNS?-mb.createElementNS(mxConstants.NS_SVG,"style"):mb.createElement("style");Na.innerHTML=this.createFlowAnimationCss(qb);mb.getElementsByTagName("defs")[0].appendChild(Na)}return qb});ja.drawCellState=function(Na,ob){for(var ab=Na.view.graph,jb=null!=ua?ua.get(Na.cell):ab.isCellSelected(Na.cell),hb=ab.model.getParent(Na.cell);!(R&&null==ua||jb)&&null!=hb;)jb=null!=ua?ua.get(hb):ab.isCellSelected(hb),hb=ab.model.getParent(hb);if(null!=Na.shape)try{var Ya=Na.shape.isFlowAnimationEnabled,xb=Na.shape.addFlowAnimationToShape;-Na.shape.isFlowAnimationEnabled=function(){return Ta&&ab.model.isEdge(Na.cell)&&"1"==mxUtils.getValue(Na.style,"flowAnimation","0")};Na.shape.addFlowAnimationToShape=function(){ab.addFlowAnimationToNode(this.getFlowAnimationPath(),Na.style,A,rb())};if(R&&null==ua||jb)ab.view.redrawEnumerationState(Na),sb.apply(this,arguments),this.doDrawShape(Na.secondLabel,ob)}finally{Na.shape.isFlowAnimationEnabled=Ya,Na.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);va?this.disableSvgLinks(lb):this.updateSvgLinks(lb,ea,!0);return lb}finally{this.enableFlowAnimation=Ta,ya&&(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 C=q.createElement("switch"),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);C.appendChild(F);L.appendChild(q);C.appendChild(L);A.appendChild(C)}};Graph.prototype.disableSvgLinks=function(q,A){q=q.getElementsByTagName("a");for(var C=0;C<q.length;C++){var F=q[C].getAttribute("href");null==F&&(F=q[C].getAttribute("xlink:href"));null!=F&&(q[C].style.pointerEvents="none",q[C].setAttribute("href",""));A&&A(q[C])}};Graph.prototype.updateSvgLinks=-function(q,A,C){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):C&&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=+5)&&xa||null==A||A(ea,this.currentLink,null!=this.currentState?this.currentState.cell:null),mxEvent.isConsumed(ea)||(ea=null!=this.currentTarget?this.currentTarget:mxEvent.isMiddleMouseButton(ea)?"_blank":xa?Z.linkTarget:"_top",Z.openLink(this.currentLink,ea),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(ea){this.currentLink=Z.getAbsoluteUrl(Z.getLinkForCell(ea.cell));null!=this.currentLink&&(this.currentTarget=Z.getLinkTargetForCell(ea.cell),Z.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(ea))},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(ea){};+Z.addMouseListener(ja);mxEvent.addListener(document,"mouseleave",function(ea){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),ea=this.cloneCells(q,!1,Z,!0);for(B=0;B<q.length;B++){var ka=F.getParent(q[B]);if(null!=ka){var xa=+this.moveCells([ea[B]],K,K,!1)[0];R.push(xa);if(A)F.add(ka,ea[B]);else{var Ka=ka.getIndex(q[B]);F.add(ka,ea[B],Ka+1)}if(this.isTable(ka)){var Ha=this.getCellGeometry(ea[B]),ya=this.getCellGeometry(ka);null!=Ha&&null!=ya&&(ya=ya.clone(),ya.height+=Ha.height,F.setGeometry(ka,ya))}}else R.push(ea[B])}this.updateCustomLinks(this.createCellMapping(Z,ja),ea,this);this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",ea))}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!=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 ea=this.view.getState(A[ja]);if(null!=ea){var ka=+q?ea.getCenterX():ea.getCenterY();K=null!=K?Math.max(K,ka):ka;R=null!=R?Math.min(R,ka):ka;B&&(Z+=q?ea.width:ea.height);F.push(ea)}}if(2<F.length){F.sort(function(Fa,va){return q?Fa.x-va.x:Fa.y-va.y});B&&(Z-=q?F[0].width/2+F[F.length-1].width/2:F[0].height/2+F[F.length-1].height/2);ea=this.view.translate;ka=this.view.scale;R=R/ka-(q?ea.x:ea.y);K=K/ka-(q?ea.x:ea.y);this.getModel().beginUpdate();try{var xa=(K-R-Z)/(F.length-1),Ka=R+(B?q?F[0].width/2:F[0].height/2:0);for(ja=1;ja<F.length-1;ja++){var Ha=+this.view.getState(this.model.getParent(F[ja].cell)),ya=this.getCellGeometry(F[ja].cell);Ka+=xa;null!=ya&&null!=Ha&&(ya=ya.clone(),q?ya.x=Math.round(Ka-(B?0:ya.width/2))-Ha.origin.x:ya.y=Math.round(Ka-(B?0:ya.height/2))-Ha.origin.y,this.getModel().setGeometry(F[ja].cell,ya));B&&(Ka+=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,ea,ka,xa,Ka,Ha,ya,Fa,va){var ua=null;if(null!=ya)for(ua=new mxDictionary,xa=0;xa<ya.length;xa++)ua.put(ya[xa],!0);ya=this.useCssTransforms;var Ta=this.enableFlowAnimation;this.enableFlowAnimation=!1;ya&&(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"==Ha?this.view.getBackgroundPageBounds():R&&null==ua||F||"diagram"==Ha?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells()),Oa=this.backgroundImage,Sa=this.view.translate,Xa=this.view.scale;"diagram"==Ha&&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","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(Ma,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 v=Math.ceil(2*jb/this.state.fontSize),x=[],J=0,z=+0;(0==v||J<v)&&z<Ya.length;){var da=Ya.charCodeAt(z);if(10==da||13==da){if(0<J)break}else x.push(Ya.charAt(z)),255>da&&J++;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+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(Ma,ob){var ab=Ma.view.graph.getAbsoluteUrl(yb.apply(this,arguments));return null==ab||Ma.view.graph.isCustomLink(ab)?null:ab};ja.getLinkTargetForCellState=function(Ma,ob){return Ma.view.graph.getLinkTargetForCell(Ma.cell)};var sb=ja.drawCellState,qb=null,rb=mxUtils.bind(this,function(){if(null==qb){qb="ge-flow-animation-"+Editor.guid();var Ma=null!=mb.createElementNS?+mb.createElementNS(mxConstants.NS_SVG,"style"):mb.createElement("style");Ma.innerHTML=this.createFlowAnimationCss(qb);mb.getElementsByTagName("defs")[0].appendChild(Ma)}return qb});ja.drawCellState=function(Ma,ob){for(var ab=Ma.view.graph,jb=null!=ua?ua.get(Ma.cell):ab.isCellSelected(Ma.cell),hb=ab.model.getParent(Ma.cell);!(R&&null==ua||jb)&&null!=hb;)jb=null!=ua?ua.get(hb):ab.isCellSelected(hb),hb=ab.model.getParent(hb);if(null!=Ma.shape)try{var Ya=Ma.shape.isFlowAnimationEnabled,xb=Ma.shape.addFlowAnimationToShape;+Ma.shape.isFlowAnimationEnabled=function(){return Ta&&ab.model.isEdge(Ma.cell)&&"1"==mxUtils.getValue(Ma.style,"flowAnimation","0")};Ma.shape.addFlowAnimationToShape=function(){ab.addFlowAnimationToNode(this.getFlowAnimationPath(),Ma.style,A,rb())};if(R&&null==ua||jb)ab.view.redrawEnumerationState(Ma),sb.apply(this,arguments),this.doDrawShape(Ma.secondLabel,ob)}finally{Ma.shape.isFlowAnimationEnabled=Ya,Ma.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);va?this.disableSvgLinks(lb):this.updateSvgLinks(lb,ea,!0);return lb}finally{this.enableFlowAnimation=Ta,ya&&(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;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,C){for(;null!=q&&q.nodeName!=A;){if(q==C)return null;q=q.parentNode}return q};Graph.prototype.getParentByNames=function(q,A,C){for(;null!=q&&!(0<=mxUtils.indexOf(A,q.nodeName));){if(q==C)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 C=document.createRange();C.selectNode(q);A.removeAllRanges();A.addRange(C)}}else(A=document.selection)&&"Control"!=A.type&&(q=A.createRange(),-q.collapse(!0),C=A.createRange(),C.setEndPoint("StartToStart",q),C.select())};Graph.prototype.flipEdgePoints=function(q,A,C){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=C+(C-F.points[L].x):F.points[L].y=C+(C-F.points[L].y);L=function(R){null!=R&&(A?R.x=C+(C-R.x):R.y=C+(C-R.y))};L(F.getTerminalPoint(!0));L(F.getTerminalPoint(!1));this.model.setGeometry(q,F)}};Graph.prototype.flipChildren=function(q,A,C){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,C);else{var Z=this.getCellGeometry(R);null!=Z&&(Z=Z.clone(),A?Z.x=C+(C-Z.x-Z.width):Z.y=C+(C-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 C=[],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);C.push(q[F])}this.toggleCellStyles(A?mxConstants.STYLE_FLIPH:mxConstants.STYLE_FLIPV,!1,C)}finally{this.model.endUpdate()}};Graph.prototype.deleteCells=function(q,A){var C=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(C=[],F=0;F<ja.length;F++)this.model.contains(ja[F])&&(this.model.isVertex(ja[F])||this.model.isEdge(ja[F]))&&C.push(ja[F])}return C};Graph.prototype.insertTableColumn=-function(q,A){var C=this.getModel();C.beginUpdate();try{var F=q,L=0;if(this.isTableCell(q)){var R=C.getParent(q);F=C.getParent(R);L=mxUtils.indexOf(C.getChildCells(R,!0),q)}else this.isTableRow(q)?F=C.getParent(q):q=C.getChildCells(F,!0)[0],A||(L=C.getChildCells(q,!0).length-1);var Z=C.getChildCells(F,!0),ja=Graph.minTableColumnWidth;for(q=0;q<Z.length;q++){var ea=C.getChildCells(Z[q],!0)[L],ka=C.cloneCell(ea,!1);null==ka&&(ka=this.createVertex());var xa=this.getCellGeometry(ka);ka.value=null;ka.style=-mxUtils.setStyle(mxUtils.setStyle(ka.style,"rowspan",null),"colspan",null);if(null!=xa){null!=xa.alternateBounds&&(xa.width=xa.alternateBounds.width,xa.height=xa.alternateBounds.height,xa.alternateBounds=null);ja=xa.width;var Ka=this.getCellGeometry(Z[q]);null!=Ka&&(xa.height=Ka.height)}C.add(Z[q],ka,L+(A?0:1))}var Ha=this.getCellGeometry(F);null!=Ha&&(Ha=Ha.clone(),Ha.width+=ja,C.setGeometry(F,Ha))}finally{C.endUpdate()}};Graph.prototype.deleteLane=function(q){var A=this.getModel();A.beginUpdate();-try{var C=null;C="stackLayout"==this.getCurrentCellStyle(q).childLayout?q:A.getParent(q);var F=A.getChildCells(C,!0);0==F.length?A.remove(C):(C==q&&(q=F[F.length-1]),A.remove(q))}finally{A.endUpdate()}};Graph.prototype.insertLane=function(q,A){var C=this.getModel();C.beginUpdate();try{var F=null;if("stackLayout"==this.getCurrentCellStyle(q).childLayout){F=q;var L=C.getChildCells(F,!0);q=L[A?0:L.length-1]}else F=C.getParent(q);var R=F.getIndex(q);q=C.cloneCell(q,!1);q.value=null;C.add(F,q,R+(A?0:1))}finally{C.endUpdate()}};-Graph.prototype.insertTableRow=function(q,A){var C=this.getModel();C.beginUpdate();try{var F=q,L=q;if(this.isTableCell(q))L=C.getParent(q),F=C.getParent(L);else if(this.isTableRow(q))F=C.getParent(q);else{var R=C.getChildCells(F,!0);L=R[A?0:R.length-1]}var Z=C.getChildCells(L,!0),ja=F.getIndex(L);L=C.cloneCell(L,!1);L.value=null;var ea=this.getCellGeometry(L);if(null!=ea){for(R=0;R<Z.length;R++){q=C.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=ea.height);L.insert(q)}C.add(F,L,ja+(A?0:1));var xa=this.getCellGeometry(F);null!=xa&&(xa=xa.clone(),xa.height+=ea.height,C.setGeometry(F,xa))}}finally{C.endUpdate()}};Graph.prototype.deleteTableColumn=function(q){var A=this.getModel();A.beginUpdate();try{var C=q,F=q;this.isTableCell(q)&&(F=A.getParent(q));this.isTableRow(F)&&-(C=A.getParent(F));var L=A.getChildCells(C,!0);if(0==L.length)A.remove(C);else{this.isTableRow(F)||(F=L[0]);var R=A.getChildCells(F,!0);if(1>=R.length)A.remove(C);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 ea=this.getCellGeometry(ja);null!=ea&&(q=Math.max(q,ea.width))}var ka=this.getCellGeometry(C);null!=ka&&(ka=ka.clone(),ka.width-=q,A.setGeometry(C,ka))}}}finally{A.endUpdate()}};Graph.prototype.deleteTableRow=-function(q){var A=this.getModel();A.beginUpdate();try{var C=q,F=q;this.isTableCell(q)&&(q=F=A.getParent(q));this.isTableRow(q)&&(C=A.getParent(F));var L=A.getChildCells(C,!0);if(1>=L.length)A.remove(C);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(C);null!=Z&&(Z=Z.clone(),Z.height-=q,A.setGeometry(C,Z))}}finally{A.endUpdate()}};Graph.prototype.insertRow=function(q,A){for(var C=q.tBodies[0],F=C.rows[0].cells,-L=q=0;L<F.length;L++){var R=F[L].getAttribute("colspan");q+=null!=R?parseInt(R):1}A=C.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 C=q.tHead;if(null!=C)for(var F=0;F<C.rows.length;F++){var L=document.createElement("th");C.rows[F].appendChild(L);mxUtils.br(L)}q=q.tBodies[0];for(C=0;C<q.rows.length;C++)F=q.rows[C].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 C=0;C<q.length;C++)q[C].cells.length>A&&q[C].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 C=document.createElement("div");C.innerHTML=q;q=document.createDocumentFragment();for(var F;F=C.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,C){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,C);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,C=!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()),C=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&&(C&&null==Z.getCell()&&this.isSelectionEmpty()||A&&this.isCellSelected(Z.getCell())));ja=!A||ja?null:mxUtils.bind(this,function(ea){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,ea,Z.getEvent())}}),300)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[R,Z,ja])}})};Graph.prototype.isTouchPopupMenuEnabled=function(){return!0};+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 ea=B.getChildCells(Z[q],!0)[K],ka=B.cloneCell(ea,!1);null==ka&&(ka=this.createVertex());var xa=this.getCellGeometry(ka);ka.value=null;ka.style=+mxUtils.setStyle(mxUtils.setStyle(ka.style,"rowspan",null),"colspan",null);if(null!=xa){null!=xa.alternateBounds&&(xa.width=xa.alternateBounds.width,xa.height=xa.alternateBounds.height,xa.alternateBounds=null);ja=xa.width;var Ka=this.getCellGeometry(Z[q]);null!=Ka&&(xa.height=Ka.height)}B.add(Z[q],ka,K+(A?0:1))}var Ha=this.getCellGeometry(F);null!=Ha&&(Ha=Ha.clone(),Ha.width+=ja,B.setGeometry(F,Ha))}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 ea=this.getCellGeometry(K);if(null!=ea){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=ea.height);K.insert(q)}B.add(F,K,ja+(A?0:1));var xa=this.getCellGeometry(F);null!=xa&&(xa=xa.clone(),xa.height+=ea.height,B.setGeometry(F,xa))}}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 ea=this.getCellGeometry(ja);null!=ea&&(q=Math.max(q,ea.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<=+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||+!F&&!ja&&(B&&null==Z.getCell()&&this.isSelectionEmpty()||A&&this.isCellSelected(Z.getCell())));ja=!A||ja?null:mxUtils.bind(this,function(ea){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,ea,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(),C=A.getRangeAt(0);q=Graph.createTabNode(q);C.insertNode(q);C.setStartAfter(q);C.setEndAfter(q);A.removeAllRanges();A.addRange(C)};mxCellEditor.prototype.alignText=function(q,A){var C=this.graph.getView().getState(this.editingCell);if(null!=C){C=mxUtils.getValue(C.style,mxConstants.STYLE_TEXT_DIRECTION,mxConstants.DEFAULT_TEXT_DIRECTION);var F=null!=C&&"vertical-"==C.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=-[],C=0,F=q.rangeCount;C<F;++C)A.push(q.getRangeAt(C));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,C=q.length;A<C;++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 C=this.graph.view.getState(q);this.textarea.className=null!=C&&1==C.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"),C=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";ea=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),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(ea*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ea)+"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=+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=+[],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 I=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(q,A){this.isKeepFocusEvent(q)||!mxEvent.isAltDown(q.getEvent())?I.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";ea=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(ea*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ea)+"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=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 ea=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(ea*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ea)+"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=-C;this.resize()}};var Q=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(q,A){if(null!=this.textarea)if(q=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=q){var C=q.view.scale;this.bounds=mxRectangle.fromRectangle(q);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*C;this.bounds.height=60*C;var F=null!=q.text?q.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),-mxUtils.getValue(q.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/C)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/C)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/C)+(this.textarea.offsetHeight-this.textarea.clientHeight)+-"px",this.bounds.height=parseInt(this.textarea.style.height)*C);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/C)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*C);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+C+","+C+")")}else this.textarea.style.height=-"",this.textarea.style.overflow="",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 C=this.graph.getEditingValue(q.cell,A);"1"==mxUtils.getValue(q.style,"nl2Br","1")&&(C=C.replace(/\n/g,"<br/>"));return Graph.sanitizeHtml(C,!0)};mxCellEditorSetEditingValue=mxCellEditor.prototype.setEditingValue;mxCellEditor.prototype.setEditingValue=+B;this.resize()}};var N=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(q,A){if(null!=this.textarea)if(q=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=q){var B=q.view.scale;this.bounds=mxRectangle.fromRectangle(q);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*B;this.bounds.height=60*B;var F=null!=q.text?q.text.margin:null;null==F&&(F=mxUtils.getAlignmentAsPoint(mxUtils.getValue(q.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),+mxUtils.getValue(q.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=F.x*this.bounds.width;this.bounds.y+=F.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/B)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/B)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/B)+(this.textarea.offsetHeight-this.textarea.clientHeight)++"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="",N.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 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=+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()};+mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(q){}};var V=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(q,A){this.graph.getModel().beginUpdate();try{V.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,C=this.graph.view.scale;q=this.roundLength((this.bounds.x+this.currentDx)/C-A.x);A=this.roundLength((this.bounds.y+-this.currentDy)/C-A.y);C=this.graph.view.unit;this.hint.innerHTML=b(q,C)+", "+b(A,C);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 C=this.graph.getCellStyle(q);if(null==C.childLayout){var F=this.graph.model.getParent(q),L=null!=F?this.graph.getCellGeometry(F):null;if(null!=L&&(C=this.graph.getCellStyle(F),"stackLayout"==C.childLayout)){var R=parseFloat(mxUtils.getValue(C,"stackBorder",mxStackLayout.prototype.border));C="1"==mxUtils.getValue(C,"horizontalStack","1");var Z=this.graph.getActualStartSize(F);L=L.clone();C?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){C.get(ja)||(C.put(ja,!0),L.push(ja))}for(var A=T.apply(this,arguments),C=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,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 O=mxConnectionHandler.prototype.isStartEvent;mxConnectionHandler.prototype.isStartEvent=+function(q){return O.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 fa=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return fa.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(Fa,va,ua){for(var Ta=[],Ra=0;Ra<Fa.length;Ra++){var Oa=Fa[Ra];Ta.push(null==Oa?null:new mxPoint((ea+Oa.x+va)*R,(ka+Oa.y+ua)*-R))}return Ta},C=this,F=this.graph,L=F.model,R=F.view.scale,Z=this.state,ja=this.selectionBorder,ea=this.state.origin.x+F.view.translate.x,ka=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var xa=F.view.getCellStates(L.getChildCells(this.state.cell,!0));if(0<xa.length){var Ka=L.getChildCells(xa[0].cell,!0),Ha=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(L=0;L<xa.length;L++)mxUtils.bind(this,function(Fa){var va=xa[Fa],ua=null;if(F.isCellMovable(va.cell)){ua=+var P=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(q){return q.tableHandle||P.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 W=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=+function(){return W.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(Fa,va,ua){for(var Ta=[],Ra=0;Ra<Fa.length;Ra++){var Oa=Fa[Ra];Ta.push(null==Oa?null:new mxPoint((ea+Oa.x+va)*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,ea=this.state.origin.x+F.view.translate.x,ka=this.state.origin.y+F.view.translate.y;null==q&&(q=[]);var xa=F.view.getCellStates(K.getChildCells(this.state.cell,!0));if(0<xa.length){var Ka=K.getChildCells(xa[0].cell,!0),Ha=F.getTableLines(this.state.cell,!1,!0),ya=F.getTableLines(this.state.cell,!0,!1);for(K=0;K<xa.length;K++)mxUtils.bind(this,function(Fa){var va=xa[Fa],ua=null;if(F.isCellMovable(va.cell)){ua=Fa<xa.length-1?xa[Fa+1]:null;ua=null!=ua?F.getCellGeometry(ua.cell):null;var Ta=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=ya[Fa]?new Y(ya[Fa],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!1);ua.isDashed=ja.isDashed;ua.svgStrokeTolerance++;ua=new mxHandle(va,"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(ya[Fa],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+(Fa==xa.length-1?0:Sa.x*R);this.shape.bounds.width=Z.width-(Fa==xa.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(!C.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<Ka.length;L++)mxUtils.bind(this,function(Fa){var va=F.view.getState(Ka[Fa]),ua=F.getCellGeometry(Ka[Fa]),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)})(K);for(K=0;K<Ka.length;K++)mxUtils.bind(this,function(Fa){var va=F.view.getState(Ka[Fa]),ua=F.getCellGeometry(Ka[Fa]),Ta=null!=ua.alternateBounds?ua.alternateBounds:ua;null==va&&(va=new mxCellState(F.view,Ka[Fa],F.getCellStyle(Ka[Fa])),va.x=Z.x+ua.x*R,va.y=Z.y+ua.y*R,va.width=Ta.width*R,va.height=Ta.height*R,va.updateCachedBounds());ua=Fa<Ka.length-1?Ka[Fa+1]:null;ua=null!=ua?F.getCellGeometry(ua):null;var Ra=null!=ua&&null!=ua.alternateBounds?ua.alternateBounds:ua;ua=null!=Ha[Fa]?new Y(Ha[Fa],mxConstants.NONE,1):new mxLine(new mxRectangle,mxConstants.NONE,1,!0);ua.isDashed=ja.isDashed;ua.svgStrokeTolerance++;va=new mxHandle(va,"col-resize",null,ua);va.tableHandle=!0;var Oa=0;va.shape.node.parentNode.insertBefore(va.shape.node,va.shape.node.parentNode.firstChild);va.redraw=function(){if(null!=this.shape){this.shape.stroke=0==Oa?mxConstants.NONE:ja.stroke;if(this.shape.constructor==Y)this.shape.line=A(Ha[Fa],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+(Fa==Ka.length-1?0:Xa.y*R);this.shape.bounds.height=-Z.height-(Fa==Ka.length-1?0:(Xa.height+Xa.y)*R)}this.shape.redraw()}};var Sa=!1;va.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))};va.execute=function(Xa){if(0!=Oa)F.setTableColumnWidth(this.state.cell,Oa,Sa);else if(!C.blockDelayedSelection){var kb=F.getCellAt(Xa.getGraphX(),Xa.getGraphY())||Z.cell;F.graphHandler.selectCellForEvent(kb,Xa)}Oa=-0};va.positionChanged=function(){};va.reset=function(){Oa=0};q.push(va)})(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=+Z.height-(Fa==Ka.length-1?0:(Xa.height+Xa.y)*R)}this.shape.redraw()}};var Sa=!1;va.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))};va.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};va.positionChanged=function(){};va.reset=function(){Oa=0};q.push(va)})(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=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,C=[],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))}));C.push(R)}else C.push(null)})(this.graph.view.getState(A.getChildAt(this.state.cell,F)));return C};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(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.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,C=this.state.style.shape;null==mxCellRenderer.defaultShapes[C]&&mxStencilRegistry.getStencil(C);C=this.graph.isTable(this.state.cell)||-this.graph.cellEditor.getEditingCell()==this.state.cell;if(!C&&null!=this.customHandles)for(var 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){C=-!0;break}}C&&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;+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=+!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,C){null==this.hint&&(this.hint=a(),this.state.view.graph.container.appendChild(this.hint));var F=this.graph.view.translate,-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!=C&&(C.view.updateEdgeBounds(C),this.hint.innerHTML+=" ("+(Z==mxConstants.POINTS?Math.round(C.length/L):b(C.length/L,Z))+")");if(this.isSource||this.isTarget)null!=this.constraintHandler&&null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus?(C=this.constraintHandler.currentConstraint.point,-this.hint.innerHTML="["+Math.round(100*C.x)+"%, "+Math.round(100*C.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"/>');+function(){mxGraphHandler.prototype.removeHint.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.display="")};var Q=mxEdgeHandler.prototype.refresh;mxEdgeHandler.prototype.refresh=function(){Q.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,+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"/>');HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="#01bd22"/><path d="m 8 8 L 14 14M 8 14 L 14 8" stroke="#fff"/>');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="6" stroke="#fff" fill="'+HoverIcons.prototype.arrowFill+'"/><circle cx="11" cy="11" r="3" stroke="#fff" fill="transparent"/>');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'<circle cx="11" cy="11" r="7" stroke="#fff" fill="'+@@ -2974,33 +2974,33 @@ HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.prot30;mxConnectionHandler.prototype.outlineConnect=!0;mxCellHighlight.prototype.keepOnTop=!0;mxVertexHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.parentHighlightEnabled=!0;mxEdgeHandler.prototype.dblClickRemoveEnabled=!0;mxEdgeHandler.prototype.straightRemoveEnabled=!0;mxEdgeHandler.prototype.virtualBendsEnabled=!0;mxEdgeHandler.prototype.mergeRemoveEnabled=!0;mxEdgeHandler.prototype.manageLabelHandle=!0;mxEdgeHandler.prototype.outlineConnect=!0;mxEdgeHandler.prototype.isAddVirtualBendEvent=function(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 C=-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(C){if(this.isSpaceEvent(A)){this.graph.model.beginUpdate();-try{var Z=this.graph.getCellsBeyond(F,L,this.graph.getDefaultParent(),!0,!0);for(C=0;C<Z.length;C++)if(this.graph.isCellMovable(Z[C])){var ja=this.graph.view.getState(Z[C]),ea=this.graph.getCellGeometry(Z[C]);null!=ja&&null!=ea&&(ea=ea.clone(),ea.translate(q,R),this.graph.model.setGeometry(Z[C],ea))}}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 C=mxUtils.getScrollOrigin(this.graph.container);q=mxUtils.getOffset(this.graph.container);C.x-=q.x;C.y-=q.y;q=A.getX()+C.x;C=A.getY()+C.y;var F=this.first.x-q,L=this.first.y-C,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,C),this.isSpaceEvent(A)?(q=this.x+this.width,C=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=C-this.height)),this.div.style.borderStyle="dashed",this.div.style.backgroundColor="white",this.div.style.left=this.x+"px",this.div.style.top=this.y+"px",this.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHeight++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]),ea=this.graph.getCellGeometry(Z[B]);null!=ja&&null!=ea&&(ea=ea.clone(),ea.translate(q,R),this.graph.model.setGeometry(Z[B],ea))}}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/+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 La=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);La.apply(this,arguments)};var na=(new Date).getTime(),za=0,Aa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(q,-A,C,F){Aa.apply(this,arguments);C!=this.currentTerminalState?(na=(new Date).getTime(),za=0):za=(new Date).getTime()-na;this.currentTerminalState=C};var Ma=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(q){return mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())?!1:null!=this.currentTerminalState&&q.getState()==this.currentTerminalState&&2E3<za||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,-"outlineConnect","1"))&&Ma.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(q,A,C){A=null!=q&&0==q;var F=this.state.getVisibleTerminalState(A);q=null!=q&&null!=this.state.absolutePoints&&(0==q||q>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==q)?this.graph.getConnectionConstraint(this.state,F,A):null;C=null!=(null!=q?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),q):null)?C?this.endFixedHandleImage:this.fixedHandleImage:-null!=q&&null!=F?C?this.endTerminalHandleImage:this.terminalHandleImage:C?this.endHandleImage:this.handleImage;if(null!=C)return C=new mxImageShape(new mxRectangle(0,0,C.width,C.height),C.src),C.preserveImageAspect=!1,C;C=mxConstants.HANDLE_SIZE;this.preferHtml&&--C;return new mxRectangleShape(new mxRectangle(0,0,C,C),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var Qa=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(q,A,C,F){F=A==mxEvent.ROTATION_HANDLE?-HoverIcons.prototype.rotationHandle:A==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:F;return Qa.apply(this,arguments)};var Ja=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(q){if(null!=q&&1==q.length){var A=this.graph.getModel(),C=A.getParent(q[0]),F=this.graph.getCellGeometry(q[0]);if(A.isEdge(C)&&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 Ja.apply(this,-arguments)};var Ia=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var q=Ia.apply(this,arguments),A=[],C=0;C<q.length;C++)"1"!=mxUtils.getValue(q[C].style,"part","0")&&A.push(q[C]);return A};var ra=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(q){var A=this.graph.getModel(),C=A.getParent(q.cell),F=this.graph.getCellGeometry(q.cell);return A.isEdge(C)&&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 C=this.graph.getModel(),F=C.getParent(this.state.cell),L=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(A)==mxEvent.ROTATION_HANDLE||!C.isEdge(F)||null==L||!L.relative||null==this.state||+"",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),A.consume()}};var Na=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);Na.apply(this,arguments)};var oa=(new Date).getTime(),za=0,Aa=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(q,+A,B,F){Aa.apply(this,arguments);B!=this.currentTerminalState?(oa=(new Date).getTime(),za=0):za=(new Date).getTime()-oa;this.currentTerminalState=B};var La=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(q){return mxEvent.isShiftDown(q.getEvent())&&mxEvent.isAltDown(q.getEvent())?!1:null!=this.currentTerminalState&&q.getState()==this.currentTerminalState&&2E3<za||(null==this.currentTerminalState||"0"!=mxUtils.getValue(this.currentTerminalState.style,+"outlineConnect","1"))&&La.apply(this,arguments)};mxEdgeHandler.prototype.createHandleShape=function(q,A,B){A=null!=q&&0==q;var F=this.state.getVisibleTerminalState(A);q=null!=q&&null!=this.state.absolutePoints&&(0==q||q>=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==q)?this.graph.getConnectionConstraint(this.state,F,A):null;B=null!=(null!=q?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(A),q):null)?B?this.endFixedHandleImage:this.fixedHandleImage:+null!=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 Ja=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 Ja.apply(this,+arguments)};var Ia=mxGraphHandler.prototype.getGuideStates;mxGraphHandler.prototype.getGuideStates=function(){for(var q=Ia.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||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 C=document.createElement("img");C.className="geAdaptiveAsset";C.setAttribute("src",Editor.editImage);C.setAttribute("title",mxResources.get("editLink"));C.setAttribute("width","14");C.setAttribute("height","14");C.style.paddingLeft="8px";C.style.marginLeft="auto";C.style.marginBottom="-1px";C.style.cursor="pointer";var F=C.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 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=C.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,ea){var ka=document.createElement("div");ka.style.display="flex";ka.style.alignItems="center";ka.style.marginTop=null!=q||0<ea?"6px":"0px";ka.appendChild(this.graph.createLinkForHint(ja.getAttribute("href"),mxUtils.getTextContent(ja),this.state.cell));var xa=C.cloneNode(!0);ka.appendChild(xa);var Ka=mxUtils.bind(this,function(Ha){var ya=+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,ea){var ka=document.createElement("div");ka.style.display="flex";ka.style.alignItems="center";ka.style.marginTop=null!=q||0<ea?"6px":"0px";ka.appendChild(this.graph.createLinkForHint(ja.getAttribute("href"),mxUtils.getTextContent(ja),this.state.cell));var xa=B.cloneNode(!0);ka.appendChild(xa);var Ka=mxUtils.bind(this,function(Ha){var ya=document.createElement("div");ya.innerHTML=Graph.sanitizeHtml(this.graph.getLabel(this.state.cell));var Fa=ya.getElementsByTagName("a")[ea];if(null!=Fa){if(null==Ha||""==Ha){for(Ha=Fa.cloneNode(!0).firstChild;null!=Ha;)Fa.parentNode.insertBefore(Ha.cloneNode(!0),Fa),Ha=Ha.nextSibling;Fa.parentNode.removeChild(Fa)}else Fa.setAttribute("href",Ha);this.graph.labelChanged(this.state.cell,ya.innerHTML)}});mxEvent.addListener(xa,"click",mxUtils.bind(this,function(Ha){this.graph.showLinkDialog(ja.getAttribute("href")||-"",mxResources.get("ok"),Ka);mxEvent.consume(Ha)}));xa=F.cloneNode(!0);ka.appendChild(xa);mxEvent.addListener(xa,"click",mxUtils.bind(this,function(Ha){Ka();mxEvent.consume(Ha)}));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,+"",mxResources.get("ok"),Ka);mxEvent.consume(Ha)}));xa=F.cloneNode(!0);ka.appendChild(xa);mxEvent.addListener(xa,"click",mxUtils.bind(this,function(Ha){Ka();mxEvent.consume(Ha)}));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,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,C=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-C+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",-mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(q=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),C=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",q),q=null!=C?mxUtils.getBoundingBox(this.state,-this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==C&&(C=this.state),C=C.y+C.height,null!=A&&(C=Math.max(C,A.y+A.height)),this.linkHint.style.left=q.x+q.width/2+"px",this.linkHint.style.top=Math.round(C+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var eb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){eb.apply(this,arguments);+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",+mxResources.get("rotateTooltip")),this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount()||null!=this.index&&this.index!=mxEvent.ROTATION_HANDLE?"none":"");pb.apply(this);null!=this.state&&null!=this.linkHint&&(q=new mxPoint(this.state.getCenterX(),this.state.getCenterY()),A=new mxRectangle(this.state.x,this.state.y-22,this.state.width+24,this.state.height+22),B=mxUtils.getBoundingBox(A,this.state.style[mxConstants.STYLE_ROTATION]||"0",q),q=null!=B?mxUtils.getBoundingBox(this.state,+this.state.style[mxConstants.STYLE_ROTATION]||"0"):this.state,A=null!=this.state.text?this.state.text.boundingBox:null,null==B&&(B=this.state),B=B.y+B.height,null!=A&&(B=Math.max(B,A.y+A.height)),this.linkHint.style.left=q.x+q.width/2+"px",this.linkHint.style.top=Math.round(B+this.verticalOffset/2+Editor.hintOffset)+"px",this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":"")};var eb=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(){eb.apply(this,arguments);this.destroyMoveHandles();this.destroyCornerHandles();null!=this.linkHint&&(null!=this.linkHint.parentNode&&this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null);null!=this.editingHandler&&(this.graph.removeListener(this.editingHandler),this.editingHandler=null)};var Za=mxEdgeHandler.prototype.redrawHandles;mxEdgeHandler.prototype.redrawHandles=function(){if(null!=this.marker&&(Za.apply(this),null!=this.state&&null!=this.linkHint)){var q=this.state;null!=this.state.text&&null!=this.state.text.bounds&&(q=new mxRectangle(q.x,q.y,q.width,q.height),q.add(this.state.text.bounds));this.linkHint.style.left=q.x+q.width/2+"px";this.linkHint.style.top=Math.round(q.y+q.height+Editor.hintOffset)+"px";this.linkHint.style.display=1<this.graph.getSelectionCount()?"none":""}};var gb=mxEdgeHandler.prototype.reset;mxEdgeHandler.prototype.reset=function(){gb.apply(this,arguments);null!=this.linkHint&&(this.linkHint.style.visibility="")};var bb=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){bb.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.graph.getSelectionModel().removeListener(this.changeHandler),this.changeHandler=null)}}();Format=function(a,b){this.editorUi=a;this.container=b};Format.noMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);Format.classicFilledMarkerImage=Graph.createSvgImage(20,22,'<path transform="translate(4,2)" stroke-width="2.5" d="M 0 8 L 10 2 L 5 8 L 10 14 Z M 0 8 L 24 8" stroke="black" fill="black"/>',32,20);@@ -3025,7 +3025,7 @@ Format.linkEdgeImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)Format.filledEdgeImage=Graph.createSvgImage(20,22,'<path transform="translate(4,0)" stroke-width="8.5" d="M 0 10 L 34 10" stroke="black" fill="black"/><path transform="translate(4,0)" stroke-width="4.5" d="M 0 10 L 34 10" stroke="white" fill="black"/>',42,20);Format.wireEdgeImage=Graph.createSvgImage(20,22,'<path transform="translate(4,0)" stroke-dasharray="8 8" stroke-width="3.5" d="M 0 10 L 34 10" stroke="red" fill="black"/><path transform="translate(4,0)" stroke-dashoffset="8" stroke-dasharray="8 8" stroke-width="3.5" d="M 0 10 L 34 10" stroke="green" fill="black"/>',42,20);Format.arrowImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2.5" d="M 0 6 L 24 6 L 24 2 L 32 8 L 24 14 L 24 10 L 0 10 Z" stroke="black" fill="none"/>',42,20);Format.simpleArrowImage=Graph.createSvgImage(20,22,'<path transform="translate(4,3)" stroke-width="2.5" d="M 0 6 L 4 6 L 4 10 L 0 10 Z M 7 6 L 18 6 L 18 2 L 25 8 L 18 14 L 18 10 L 7 10 Z M 28 6 L 28 6 L 32 6 L 32 10 L 28 10 Z" stroke="black" fill="none"/>',42,20);-Format.straightImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="4.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);Format.orthogonalImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);+Format.straightImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);Format.orthogonalImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);Format.horizontalElbowImage=Graph.createSvgImage(16,18,'<path transform="translate(3,3)rotate(270,0,0)scale(-1,1)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z M 14 11 L 14 5 M 14 3 L 16 5 L 12 5 Z M 14 17 L 14 23 M 14 25 L 16 23 L 12 23 Z" stroke="black" fill="none"/>',36,36);Format.verticalElbowImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 2 26 L 2 14 L 28 14 L 28 4 M 26 0 L 30 0 L 30 4 L 26 4 Z M 14 11 L 14 5 M 14 3 L 16 5 L 12 5 Z M 14 17 L 14 23 M 14 25 L 16 23 L 12 23 Z" stroke="black" fill="none"/>',36,36);Format.horizontalIsometricImage=Graph.createSvgImage(16,18,'<path transform="translate(3,4)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 19 17 L 10 12 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);Format.verticalIsometricImage=Graph.createSvgImage(16,18,'<path transform="translate(32,4)scale(-1,1)" stroke-width="2.5" d="M 0 26 L 4 26 L 4 30 L 0 30 Z M 4 26 L 19 17 L 10 12 L 26 4 M 26 0 L 30 0 L 30 4 L 26 4 Z" stroke="black" fill="none"/>',36,36);@@ -3034,32 +3034,32 @@ 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(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);+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(E,D,G,I){var M=mxUtils.bind(this,function(L,V){h!=E&&(V||(d?this.labelIndex=G:b.isSelectionEmpty()?this.diagramIndex=G:this.currentIndex=+G),null!=h&&h.classList.remove("geActiveFormatTitle"),h=E,h.classList.add("geActiveFormatTitle"),m!=D&&(null!=m&&(m.style.display="none"),m=D,m.style.display=""))});mxEvent.addListener(E,"click",M);var N=d?this.labelIndex:b.isSelectionEmpty()?this.diagramIndex:this.currentIndex;(I&&null==h||G==N)&&M(null,I&&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 B=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"));B.appendChild(u);B.setAttribute("title",mxResources.get("arrange"));-f.appendChild(B);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(B,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,u=k.editor.graph;e=null!=e?e:1;g=null!=g?g:999;var w=null,y=!1,B=null,D=mxUtils.bind(this,function(E){var G=m?parseFloat(a.value):parseInt(a.value);p&&(G=this.fromUnit(G));if(G!=B){B=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};+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,u=k.editor.graph;e=null!=e?e:1;g=null!=g?g:999;var w=null,y=!1,C=null,E=mxUtils.bind(this,function(D){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 I=k.getSelectionState().cells;u.setCellStyles(b,G,I);b==mxConstants.STYLE_FONTSIZE&&u.updateLabelElements(I,function(N){N.removeAttribute("size");N.style.fontSize="";""==N.getAttribute("style")&&N.removeAttribute("style")});for(var M=0;M<I.length;M++)0==u.model.getChildCount(I[M])&&u.autoSizeCell(I[M],!1);k.fireEvent(new mxEventObject("styleChanged",+"keys",[b],"values",[G],"cells",I))}finally{u.getModel().endUpdate()}}a.value=(p?this.inUnit(G):G)+d}mxEvent.consume(D)});h&&u.cellEditor.isContentEditing()&&mxEvent.addGestureListeners(a,mxUtils.bind(this,function(D){document.activeElement==u.cellEditor.textarea&&(w=u.cellEditor.saveSelection())}));mxEvent.addListener(a,"change",E);mxEvent.addListener(a,"blur",E);return E};BaseFormatPanel.prototype.createPanel=function(){var a=document.createElement("div");a.className="geFormatSection";return a};BaseFormatPanel.prototype.createTitle=function(a){var b=document.createElement("div");b.className="geFormatSectionTitle";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){function m(y,B,D){""==a.value&&(a.value=null!=d?d:B);B=h?parseFloat(a.value):parseInt(a.value);isNaN(B)||(a.value=B+y,null!=b&&b(D))}f=null!=f?f:1;var p=10*f;e=document.createElement("div");e.className="geBtnStepper";e.style.position="absolute";e.style.left="200px";var k=document.createElement("div");k.style.height="9px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";e.appendChild(k);var u=k.cloneNode(!1);-u.style.backgroundImage="url("+Editor.arrowDownImage+")";e.appendChild(u);mxEvent.addGestureListeners(k,function(y){mxEvent.consume(y)},null,function(y){m(mxEvent.isShiftDown(y)?p:f,"0",y);mxEvent.consume(y)});mxEvent.addGestureListeners(u,function(y){mxEvent.consume(y)},null,function(y){m(-(mxEvent.isShiftDown(y)?p:f),"2",y);mxEvent.consume(y)});if(g){var w=null;mxEvent.addGestureListeners(e,function(y){mxEvent.consume(y)},null,function(y){if(null!=w){try{w.select()}catch(B){}w=null;mxEvent.consume(y)}})}else mxEvent.addListener(e,+BaseFormatPanel.prototype.createStepper=function(a,b,f,e,g,d,h){function m(y,C,E){""==a.value&&(a.value=null!=d?d:C);C=h?parseFloat(a.value):parseInt(a.value);isNaN(C)||(a.value=C+y,null!=b&&b(E))}f=null!=f?f:1;var p=10*f;e=document.createElement("div");e.className="geBtnStepper";e.style.position="absolute";e.style.left="200px";var k=document.createElement("div");k.style.height="9px";k.style.backgroundImage="url("+Editor.arrowUpImage+")";k.style.width="10px";e.appendChild(k);var u=k.cloneNode(!1);+u.style.backgroundImage="url("+Editor.arrowDownImage+")";e.appendChild(u);mxEvent.addGestureListeners(k,function(y){mxEvent.consume(y)},null,function(y){m(mxEvent.isShiftDown(y)?p:f,"0",y);mxEvent.consume(y)});mxEvent.addGestureListeners(u,function(y){mxEvent.consume(y)},null,function(y){m(-(mxEvent.isShiftDown(y)?p:f),"2",y);mxEvent.consume(y)});if(g){var w=null;mxEvent.addGestureListeners(e,function(y){mxEvent.consume(y)},null,function(y){if(null!=w){try{w.select()}catch(C){}w=null;mxEvent.consume(y)}})}else mxEvent.addListener(e,"click",function(y){mxEvent.consume(y)});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 B=null!=p?p:k.getSelectionState().cells;y=y?e:g;u.setCellStyles(b,y,B);null!=d&&d(B,y);k.fireEvent(new mxEventObject("styleChanged",-"keys",[b],"values",[y],"cells",B))}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,B=document.createElement("div");B.className="geFormatEntry";var D=document.createElement("input");D.setAttribute("type","checkbox");h||B.appendChild(D);var E=document.createElement("span");mxUtils.write(E,a);B.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)};B.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";B.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(B,"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(B,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 B};+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,O){"default"!=T||O||(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 E=document.createElement("input");E.setAttribute("type","checkbox");h||C.appendChild(E);var D=document.createElement("span");mxUtils.write(D,a);C.appendChild(D);var G=+b(),I=!1,M=null,N=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=u(G);L.click();mxEvent.consume(T)}));var V=null,X=function(T,O){I||+(I=!0,null!=d&&d(T),O||(null!=V&&(y.cellEditor.restoreSelection(V),V=null),f(T)),G=b(),T=mxUtils.getLightDarkColor("default"!=G?G:m),O=document.createElement("div"),O.style.width="21px",O.style.height="12px",O.style.margin="2px 18px 2px 3px",O.style.borderWidth="1px",O.style.borderStyle="solid",O.style.backgroundColor=T.cssText,N.innerText="",N.appendChild(O),!p&&mxUtils.isLightDarkColor(G)&&T.light!=T.dark?O.style.background="linear-gradient(to right bottom, "+T.cssText+" 50%, "+mxUtils.invertLightDarkColor(T).cssText++" 50.3%)":p&&w&&(O.style.backgroundColor=k()?T.dark:T.light),null!=M?(O.style.width="21px",O.style.margin="2px 18px 2px 3px",O.appendChild(M)):(O.style.width="36px",O.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?N.setAttribute("title",T):"default"==G?N.setAttribute("title",mxResources.get("useBlackAndWhite")):N.setAttribute("title",G)),y.isSpecialColor(G)?E.style.display=+"none":(E.style.display="",null!=G&&G!=mxConstants.NONE?(E.setAttribute("checked","checked"),E.defaultChecked=!0,E.checked=!0):(E.removeAttribute("checked"),E.defaultChecked=!1,E.checked=!1)),N.style.display=E.checked||h?"":"none",I=!1)};C.appendChild(L);mxEvent.addListener(L,"change",function(){var T=L.value;if(!p){var O=mxUtils.getLightDarkColor(G);k()?O.dark=T:O.light=T;T="light-dark("+O.light+", "+O.dark+")"}X(T)});N=mxUtils.button("",mxUtils.bind(this,function(T){var O=m;p&&k()&&mxUtils.isLightDarkColor(O)&&+(O=mxUtils.getLightDarkColor(m).dark);this.editorUi.pickColor(u(G,!0),function(ca){X(ca)},"default"==e?"default":null,O,p);mxEvent.consume(T)}));N.className="geColorBtn";N.style.display=E.checked||h?"":"none";C.appendChild(N);a=null!=G&&"string"===typeof G&&"#"==G.charAt(0)?G.substring(1).toUpperCase():G;a=ColorDialog.prototype.colorNames[a];null!=a&&N.setAttribute("title",a);h||(mxEvent.addListener(C,"click",function(T){T=mxEvent.getSource(T);if(T==E||"INPUT"!=T.nodeName)T!=E&&(E.checked=!E.checked),+E.checked||null==G||G==mxConstants.NONE||e==mxConstants.NONE||(e=u(G)),X(E.checked?e:mxConstants.NONE)}),mxEvent.addGestureListeners(E,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(V=y.cellEditor.saveSelection())})),mxEvent.addGestureListeners(C,mxUtils.bind(this,function(T){document.activeElement==y.cellEditor.textarea&&(V=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};@@ -3095,174 +3095,175 @@ ArrangePanel.prototype.addAngle=function(a){var b=this.editorUi,f=b.editor.graphBaseFormatPanel.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(){B.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=+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(){E.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 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 B=this.addGeometryHandler(p,function(H,S,fa){S=Math.max(1,b.fromUnit(S));if(e.isTableCell(fa))return e.setTableColumnWidth(fa,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,fa){S=Math.max(1,b.fromUnit(S));e.isTableCell(fa)&&(fa=g.getParent(fa));if(e.isTableRow(fa))return e.setTableRowHeight(fa,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);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,fa){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(fa||document.activeElement!=p)p.value=this.inUnit(d.width)+-" "+this.getUnit();if(fa||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(fa||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(fa||document.activeElement!=J)J.value=this.inUnit(d.y)+" "+this.getUnit();null!=H&&H.relative&&(null==M||!fa&&document.activeElement==M||(M.value=Math.round(1E3*H.x)/10+" %"),null==-Q||!fa&&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]))&&(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,+this.addKeyHandler(p,X);this.addKeyHandler(k,X);var C=this.addGeometryHandler(p,function(H,S,fa){S=Math.max(1,b.fromUnit(S));if(e.isTableCell(fa))return e.setTableColumnWidth(fa,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 E=this.addGeometryHandler(k,function(H,S,fa){S=Math.max(1,b.fromUnit(S));e.isTableCell(fa)&&(fa=g.getParent(fa));if(e.isTableRow(fa))return e.setTableRowHeight(fa,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 D=this.createPanel();D.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"));D.appendChild(m);var G=this.addUnitInput(D,this.getUnit(),87,52,function(){T.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),I=this.addUnitInput(D,this.getUnit(),16,+52,function(){O.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit());mxUtils.br(D);u=!0;var M=null,N=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(D);m=document.createElement("div");m.style.position="absolute";m.style.width="70px";m.style.marginTop="0px";mxUtils.write(m,mxResources.get("relative"));D.appendChild(m);M=this.addGenericInput(D," %",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]))){u=!1;var V=null;N=this.addUnitInput(D,this.getUnit(),16,52,function(){V.apply(this,arguments)});V=this.addGeometryHandler(N,function(H,S){H.y=b.fromUnit(S)})}else N=this.addGenericInput(D," %",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(D)}}a.appendChild(D)}this.addLabel(D,mxResources.get(u?"left":"line"),87,64);this.addLabel(D,mxResources.get(u?"top":"orthogonal"),16,64);var X=mxUtils.bind(this,function(H,S,fa){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(fa||document.activeElement!=p)p.value=this.inUnit(d.width)++" "+this.getUnit();if(fa||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]);D.style.display="";if(fa||document.activeElement!=G)G.value=this.inUnit(d.x)+" "+this.getUnit();if(fa||document.activeElement!=I)I.value=this.inUnit(d.y)+" "+this.getUnit();null!=H&&H.relative&&(null==M||!fa&&document.activeElement==M||(M.value=Math.round(1E3*H.x)/10+" %"),null==+N||!fa&&document.activeElement==N||(g.isEdge(g.getParent(d.vertices[0]))?N.value=this.inUnit(H.y)+" "+this.getUnit():N.value=Math.round(1E3*H.y)/10+" %"))}else D.style.display="none"});this.listeners.push({destroy:function(){g.removeListener(X)}});g.addListener(mxEvent.CHANGE,X);this.addKeyHandler(G,X);this.addKeyHandler(I,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 O=this.addGeometryHandler(I,+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,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{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)}};+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(D);mxUtils.br(D);D.appendChild(ca)}a.appendChild(D)}};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 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(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 B=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(B,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)?(B.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(B,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 C=mxUtils.getCurrentStyle(q);parseFloat(C.fontSize)*A/100!=parseFloat(C.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=+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,D);var p=mxUtils.bind(this,function(L){var V=parseInt(m.value);+V=Math.min(999,Math.max(1,isNaN(V)?1:V));if(V!=mxUtils.getValue(g.style,"width",mxCellRenderer.defaultShapes.flexArrow.prototype.defaultWidth)){var X=f.getSelectionState().cells;e.setCellStyles("width",V,X);f.fireEvent(new mxEventObject("styleChanged","keys",["width"],"values",[V],"cells",X))}m.value=V+" 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 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(){I.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,D);this.addKeyHandler(w,D);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()),E=this.addUnitInput(y,this.getUnit(),16,52,function(){N.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,D);this.addKeyHandler(E,D);var D=mxUtils.bind(this,function(L,V,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)?(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(L,!1)?(C.value=this.inUnit(X.targetPoint.x)+" "+this.getUnit(),E.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(L,V){null!=L.sourcePoint&&(L.sourcePoint.x=b.fromUnit(V))});var I=this.addEdgeGeometryHandler(w,function(L,V){null!=L.sourcePoint&&(L.sourcePoint.y=b.fromUnit(V))});var M=this.addEdgeGeometryHandler(C,function(L,V){null!=L.targetPoint&&(L.targetPoint.x=b.fromUnit(V))});var N=this.addEdgeGeometryHandler(E,function(L,V){null!=L.targetPoint&&(L.targetPoint.y=b.fromUnit(V))});e.getModel().addListener(mxEvent.CHANGE,D);this.listeners.push({destroy:function(){e.getModel().removeListener(D)}});+D()};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 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 B=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])),B),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])),-B),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])),B);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])),B),Q=g.addButton(Editor.alignMiddleImage,mxResources.get("middle"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_MIDDLE])),B),K=g.addButton(Editor.alignBottomImage,mxResources.get("bottom"),D(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),-B);a.appendChild(B);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)},B);ca.style.marginRight="9px";var H=g.addButton(Editor.subscriptImage,mxResources.get("subscript")+" ("+Editor.ctrlKey+"+,)",function(){document.execCommand("subscript",!1,null)},B);H.style.marginLeft="10px";var S=g.addButton(Editor.superscriptImage,-mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)",function(){document.execCommand("superscript",!1,null)},B);H.style.marginLeft="10px";D=B.cloneNode(!1);D.style.paddingTop="4px";B=[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)];B[B.length-2].style.marginLeft="10px";a.appendChild(D)}else w[2].style.marginRight="12px",J.style.marginRight=-"12px";B=m.cloneNode(!1);mxUtils.write(B,mxResources.get("position"));var fa=document.createElement("select");fa.style.left="114px";fa.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,+")");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),E=function(q){return function(){return q()}},D=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))}:E(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))}:E(g.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_CENTER])),+C),I=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))}:E(g.menus.createStyleChangeFunction([mxConstants.STYLE_ALIGN],[mxConstants.ALIGN_RIGHT])),C);d.cellEditor.isContentEditing()&&(V=g.addButton(Editor.strikethroughImage,mxResources.get("strikethrough"),function(){document.execCommand("strikeThrough",+!1,null)},k));var M=g.addButton(Editor.alignTopImage,mxResources.get("top"),E(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_TOP])),C),N=g.addButton(Editor.alignMiddleImage,mxResources.get("middle"),E(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_MIDDLE])),C),L=g.addButton(Editor.alignBottomImage,mxResources.get("bottom"),E(g.menus.createStyleChangeFunction([mxConstants.STYLE_VERTICAL_ALIGN],[mxConstants.ALIGN_BOTTOM])),+C);a.appendChild(C);var V,X,T,O;if(d.cellEditor.isContentEditing()){M.style.display="none";N.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,+mxResources.get("superscript")+" ("+Editor.ctrlKey+"+.)",function(){document.execCommand("superscript",!1,null)},C);H.style.marginLeft="10px";E=C.cloneNode(!1);E.style.paddingTop="4px";C=[g.addButton(Editor.orderedListImage,mxResources.get("numberedList"),function(){document.execCommand("insertorderedlist",!1,null)},E),g.addButton(Editor.unorderedListImage,mxResources.get("bulletedList"),function(){document.execCommand("insertunorderedlist",!1,null)},E),g.addButton(Editor.indentImage,mxResources.get("increaseIndent"),+function(){document.execCommand("indent",!1,null)},E),g.addButton(Editor.outdentImage,mxResources.get("decreaseIndent"),function(){document.execCommand("outdent",!1,null)},E),g.addButton(Editor.removeFormatImage,mxResources.get("removeFormat"),function(){document.execCommand("removeformat",!1,null)},E),g.addButton(Editor.codeImage,mxResources.get("html"),function(){d.cellEditor.toggleViewMode()},E)];C[C.length-2].style.marginLeft="10px";a.appendChild(E)}else w[2].style.marginRight="12px",I.style.marginRight=+"12px";C=m.cloneNode(!1);mxUtils.write(C,mxResources.get("position"));var fa=document.createElement("select");fa.style.left="114px";fa.style.width="98px";var la="topLeft top topRight left center right bottomLeft bottom bottomRight".split(" "),P={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,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM],left:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE],center:[mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE],right:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE],bottomLeft:[mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_TOP],bottom:[mxConstants.ALIGN_CENTER,-mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP],bottomRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP]};for(D=0;D<la.length;D++){var V=document.createElement("option");V.setAttribute("value",la[D]);mxUtils.write(V,mxResources.get(la[D]));fa.appendChild(V)}B.appendChild(fa);la=B.cloneNode(!1);mxUtils.write(la,mxResources.get("writingDirection"));var Y=fa.cloneNode(!1);V=["automatic","leftToRight","rightToLeft"];h.html&&(V.push("vertical-leftToRight"),-V.push("vertical-rightToLeft"));var ha={automatic:null,leftToRight:mxConstants.TEXT_DIRECTION_LTR,rightToLeft:mxConstants.TEXT_DIRECTION_RTL,"vertical-leftToRight":mxConstants.TEXT_DIRECTION_VERTICAL_LR,"vertical-rightToLeft":mxConstants.TEXT_DIRECTION_VERTICAL_RL};for(D=0;D<V.length;D++){var ia=document.createElement("option");ia.setAttribute("value",V[D]);"vertical-"==V[D].substring(0,9)?mxUtils.write(ia,mxResources.get("vertical")+" ("+mxResources.get(V[D].substring(9))+")"):mxUtils.write(ia,mxResources.get(V[D]));-Y.appendChild(ia)}la.appendChild(Y);d.isEditing()||(a.appendChild(B),mxEvent.addListener(fa,"change",function(q){d.getModel().beginUpdate();try{var A=O[fa.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],h.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],h.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],h.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],h.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(q)}),a.appendChild(la),mxEvent.addListener(Y,-"change",function(q){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ha[Y.value],h.cells);mxEvent.consume(q)}));var ta=document.createElement("input");ta.style.position="absolute";ta.style.left="146px";ta.style.width="52px";k.appendChild(ta);B=this.installInputHandler(ta,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(q){if(null!=d.getSelectedEditingElement()){ta.value=q+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),-C=0;C<A.length;C++)if("1"==A[C].getAttribute("size")){A[C].removeAttribute("size");A[C].style.fontSize="";var F=mxUtils.getCurrentStyle(A[C]);q!=b(F)?A[C].style.fontSize=q+"px":""==A[C].getAttribute("style")&&A[C].removeAttribute("style")}}},!0);B=this.createStepper(ta,B,1,!0,Menus.prototype.defaultFontSize);B.style.display=ta.style.display;B.style.left="198px";"inherit"==h.style[mxConstants.STYLE_FONTSIZE]&&(ta.style.display="none",B.style.display="none");k.appendChild(B);var aa=null,P=d.shapeBackgroundColor,-ba=null,ma=d.shapeForegroundColor;k=mxUtils.getLightDarkColor(d.shapeBackgroundColor);var La="light-dark("+mxUtils.hex2rgb(k.light)+", "+mxUtils.hex2rgb(k.dark)+")",na=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("backgroundColor"),function(){return P==d.shapeBackgroundColor||P==La?"default":P},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,q,!1),g.fireEvent(new mxEventObject("styleChanged","keys",-[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[q],"cells",h.cells)))},"default",{install:function(q){aa=q},destroy:function(){aa=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,"default",null,function(q){d.updateLabelElements(h.cells,function(A){A.style.backgroundColor=null})},d.shapeBackgroundColor);na.style.fontWeight="bold";var za=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,+mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_TOP],bottomRight:[mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_BOTTOM,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP]};for(E=0;E<la.length;E++){var W=document.createElement("option");W.setAttribute("value",la[E]);mxUtils.write(W,mxResources.get(la[E]));fa.appendChild(W)}C.appendChild(fa);la=C.cloneNode(!1);mxUtils.write(la,mxResources.get("writingDirection"));var Y=fa.cloneNode(!1);W=["automatic","leftToRight","rightToLeft"];h.html&&(W.push("vertical-leftToRight"),+W.push("vertical-rightToLeft"));var ha={automatic:null,leftToRight:mxConstants.TEXT_DIRECTION_LTR,rightToLeft:mxConstants.TEXT_DIRECTION_RTL,"vertical-leftToRight":mxConstants.TEXT_DIRECTION_VERTICAL_LR,"vertical-rightToLeft":mxConstants.TEXT_DIRECTION_VERTICAL_RL};for(E=0;E<W.length;E++){var ia=document.createElement("option");ia.setAttribute("value",W[E]);"vertical-"==W[E].substring(0,9)?mxUtils.write(ia,mxResources.get("vertical")+" ("+mxResources.get(W[E].substring(9))+")"):mxUtils.write(ia,mxResources.get(W[E]));+Y.appendChild(ia)}la.appendChild(Y);d.isEditing()||(a.appendChild(C),mxEvent.addListener(fa,"change",function(q){d.getModel().beginUpdate();try{var A=P[fa.value];null!=A&&(d.setCellStyles(mxConstants.STYLE_LABEL_POSITION,A[0],h.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_LABEL_POSITION,A[1],h.cells),d.setCellStyles(mxConstants.STYLE_ALIGN,A[2],h.cells),d.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,A[3],h.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(q)}),a.appendChild(la),mxEvent.addListener(Y,+"change",function(q){d.setCellStyles(mxConstants.STYLE_TEXT_DIRECTION,ha[Y.value],h.cells);mxEvent.consume(q)}));var ta=document.createElement("input");ta.style.position="absolute";ta.style.left="146px";ta.style.width="52px";k.appendChild(ta);C=this.installInputHandler(ta,mxConstants.STYLE_FONTSIZE,Menus.prototype.defaultFontSize,1,999," "+Editor.fontSizeUnit,function(q){if(null!=d.getSelectedEditingElement()){ta.value=q+" "+Editor.fontSizeUnit;document.execCommand("fontSize",!1,"1");for(var A=d.cellEditor.textarea.getElementsByTagName("font"),+B=0;B<A.length;B++)if("1"==A[B].getAttribute("size")){A[B].removeAttribute("size");A[B].style.fontSize="";var F=mxUtils.getCurrentStyle(A[B]);q!=b(F)?A[B].style.fontSize=q+"px":""==A[B].getAttribute("style")&&A[B].removeAttribute("style")}}},!0);C=this.createStepper(ta,C,1,!0,Menus.prototype.defaultFontSize);C.style.display=ta.style.display;C.style.left="198px";"inherit"==h.style[mxConstants.STYLE_FONTSIZE]&&(ta.style.display="none",C.style.display="none");k.appendChild(C);var aa=null,Q=d.shapeBackgroundColor,+ba=null,ma=d.shapeForegroundColor;k=mxUtils.getLightDarkColor(d.shapeBackgroundColor);var Na="light-dark("+mxUtils.hex2rgb(k.light)+", "+mxUtils.hex2rgb(k.dark)+")",oa=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("backgroundColor"),function(){return Q==d.shapeBackgroundColor||Q==Na?"default":Q},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=d.shapeBackgroundColor),Graph.setTextColor(d.cellEditor.textarea,q,!1),g.fireEvent(new mxEventObject("styleChanged","keys",+[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR],"values",[q],"cells",h.cells)))},"default",{install:function(q){aa=q},destroy:function(){aa=null}},null,null,d.shapeBackgroundColor):this.createCellColorOption(mxResources.get("backgroundColor"),mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,"default",null,function(q){d.updateLabelElements(h.cells,function(A){A.style.backgroundColor=null})},d.shapeBackgroundColor);oa.style.fontWeight="bold";var za=this.createCellColorOption(mxResources.get("borderColor"),mxConstants.STYLE_LABEL_BORDERCOLOR,"default",null,null,d.shapeForegroundColor);za.style.fontWeight="bold";k=1<=h.vertices.length?d.stylesheet.getDefaultVertexStyle():d.stylesheet.getDefaultEdgeStyle();k=d.cellEditor.isContentEditing()?this.createColorOption(mxResources.get("fontColor"),function(){return ma},function(q){null!=d.cellEditor.textarea&&("default"==q&&(q=mxConstants.NONE),Graph.setTextColor(d.cellEditor.textarea,q,!0),g.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTCOLOR],"values",[q],"cells",-h.cells)))},"default",{install:function(q){ba=q},destroy:function(){ba=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),mxConstants.STYLE_FONTCOLOR,"default",function(q){na.style.display=q==mxConstants.NONE?"none":"";za.style.display=na.style.display},function(q){q==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",h.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,-null,h.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,q,h.cells);d.updateLabelElements(h.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);"inherit"==h.style[mxConstants.STYLE_FONTCOLOR]&&(k.style.display="none");k.style.fontWeight="bold";p.appendChild(k);p.appendChild(na);k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled",-"disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(p.appendChild(za),p.appendChild(k));a.appendChild(p);p=this.createPanel();p.style.paddingTop="2px";p.style.paddingBottom="4px";B=d.filterSelectionCells(mxUtils.bind(this,function(q){var A=d.view.getState(q);return null==A||d.getModel().isEdge(q)||d.isAutoSizeState(A)}));k=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,B);k.style.fontWeight="bold";0<B.length&&p.appendChild(k);-B=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,g.actions.get("formattedText"));B.style.fontWeight="bold";p.appendChild(B);B=d.view.getState(d.getSelectionCell());if(1<d.getSelectionCount()&&"1"==h.style.convertToSvg||1==d.getSelectionCount()&&null!=B&&null!=B.text&&null!=B.text.node&&0==B.text.node.getElementsByTagName("foreignObject").length)k.style.opacity="0.5",k.getElementsByTagName("input")[0].setAttribute("disabled","disabled");k=this.createCellOption(mxResources.get("lblToSvg"),-"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";B=document.createElement("div");B.style.position="absolute";B.style.width="70px";B.style.marginTop="0px";B.style.fontWeight="bold";mxUtils.write(B,mxResources.get("spacing"));k.appendChild(B);-var Aa=this.addUnitInput(k,this.getUnit(),87,52,function(){db.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ma=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(),+h.cells)))},"default",{install:function(q){ba=q},destroy:function(){ba=null}},null,!0,null!=k[mxConstants.STYLE_FONTCOLOR]&&"default"!=k[mxConstants.STYLE_FONTCOLOR]?k[mxConstants.STYLE_FONTCOLOR]:d.shapeForegroundColor):this.createCellColorOption(mxResources.get("fontColor"),mxConstants.STYLE_FONTCOLOR,"default",function(q){oa.style.display=q==mxConstants.NONE?"none":"";za.style.display=oa.style.display},function(q){q==mxConstants.NONE?d.setCellStyles(mxConstants.STYLE_NOLABEL,"1",h.cells):d.setCellStyles(mxConstants.STYLE_NOLABEL,+null,h.cells);d.setCellStyles(mxConstants.STYLE_FONTCOLOR,q,h.cells);d.updateLabelElements(h.cells,function(A){A.removeAttribute("color");A.style.color=null})},d.shapeForegroundColor);"inherit"==h.style[mxConstants.STYLE_FONTCOLOR]&&(k.style.display="none");k.style.fontWeight="bold";p.appendChild(k);p.appendChild(oa);k=this.createCellOption(mxResources.get("shadow"),mxConstants.STYLE_TEXT_SHADOW,0);k.style.width="100%";k.style.fontWeight="bold";Editor.enableShadowOption||(k.getElementsByTagName("input")[0].setAttribute("disabled",+"disabled"),mxUtils.setOpacity(k,60));d.cellEditor.isContentEditing()||(p.appendChild(za),p.appendChild(k));a.appendChild(p);p=this.createPanel();p.style.paddingTop="2px";p.style.paddingBottom="4px";C=d.filterSelectionCells(mxUtils.bind(this,function(q){var A=d.view.getState(q);return null==A||d.getModel().isEdge(q)||d.isAutoSizeState(A)}));k=this.createCellOption(mxResources.get("wordWrap"),mxConstants.STYLE_WHITE_SPACE,null,"wrap","null",null,null,!0,C);k.style.fontWeight="bold";0<C.length&&p.appendChild(k);+C=this.createCellOption(mxResources.get("formattedText"),"html",0,null,null,null,g.actions.get("formattedText"));C.style.fontWeight="bold";p.appendChild(C);C=d.view.getState(d.getSelectionCell());if(1<d.getSelectionCount()&&"1"==h.style.convertToSvg||1==d.getSelectionCount()&&null!=C&&null!=C.text&&null!=C.text.node&&0==C.text.node.getElementsByTagName("foreignObject").length)k.style.opacity="0.5",k.getElementsByTagName("input")[0].setAttribute("disabled","disabled");k=this.createCellOption(mxResources.get("lblToSvg"),+"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 Aa=this.addUnitInput(k,this.getUnit(),87,52,function(){db.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),La=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()),Ja=this.addUnitInput(k,this.getUnit(),87,52,function(){eb.apply(this,arguments)},this.getUnitStep(),null,null,this.isFloatUnit()),Ia=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 C=d.getSelectedEditingElement();if(null!=d.cellEditor.textarea&&C==d.cellEditor.textarea){var F=window.getSelection();if(F.getRangeAt&&0<F.rangeCount){var L=F.getRangeAt(0);C=document.createElement("div");C.appendChild(L.extractContents());d.cellEditor.textarea.innerHTML=-"";d.cellEditor.textarea.appendChild(C);F.removeAllRanges();L=new Range;L.selectNodeContents(C);F.addRange(L)}}if(null!=C)for(C!=d.cellEditor.textarea&&f(C,A),C=C.getElementsByTagName("*"),F=window.getSelection(),L=0;L<C.length;L++)F.containsNode(C[L],!0)&&f(C[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]);B=[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);B=[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)];B[2].style.marginRight="10px";p=this.createPanel();p.appendChild(this.createTitle(mxResources.get("table")));p.appendChild(k);m=m.cloneNode(!1);B=[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(C,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(C){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(L){L.style.border=null});null==C||C==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+C,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(C,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(C){var F=null==T||null!=q&&mxEvent.isShiftDown(q)?X:T;d.processElements(F,function(L){L.style.backgroundColor=null});F.style.backgroundColor=null==C||C==mxConstants.NONE?-"":C})}}),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)];B[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,C){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(C||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);+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==+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!=O&&d.insertRow(X,O.sectionRowIndex)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.addRowBelowImage,mxResources.get("insertRowAfter"),mxUtils.bind(this,function(){try{null!=X&&null!=O&&d.insertRow(X,O.sectionRowIndex+1)}catch(q){g.handleError(q)}}),k),g.addButton(Editor.removeRowImage,+mxResources.get("deleteRow"),mxUtils.bind(this,function(){try{null!=X&&null!=O&&d.deleteRow(X,O.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?+"":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(E=0;3>E;E++)(function(q){mxEvent.addListener(w[q],"click",function(){e(w[q],""==w[q].style.backgroundImage)})})(E);+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(D,q==mxConstants.ALIGN_LEFT);e(G,q==mxConstants.ALIGN_CENTER);e(I,q==mxConstants.ALIGN_RIGHT);q=mxUtils.getValue(h.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE);e(M,q==mxConstants.ALIGN_TOP);e(N,q==mxConstants.ALIGN_MIDDLE);e(L,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);fa.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(C||document.activeElement!=Ma)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING,2)),Ma.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(C||document.activeElement!=Aa)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_TOP,0)),Aa.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(C||document.activeElement!=Ia)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ia.value=isNaN(q)?"":this.inUnit(q)+-" "+this.getUnit();if(C||document.activeElement!=Ja)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ja.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(C||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(Ma,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var db=this.installInputHandler(Aa,mxConstants.STYLE_SPACING_TOP,-0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var eb=this.installInputHandler(Ja,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(Ma,Wa);this.addKeyHandler(Aa,+(Y.value="vertical-rightToLeft"):Y.value="automatic";if(B||document.activeElement!=La)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING,2)),La.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Aa)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_TOP,0)),Aa.value=isNaN(q)?"":this.inUnit(q)+" "+this.getUnit();if(B||document.activeElement!=Ia)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_RIGHT,0)),Ia.value=isNaN(q)?"":this.inUnit(q)++" "+this.getUnit();if(B||document.activeElement!=Ja)q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_SPACING_BOTTOM,0)),Ja.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(La,mxConstants.STYLE_SPACING,2,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var db=this.installInputHandler(Aa,mxConstants.STYLE_SPACING_TOP,+0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var pb=this.installInputHandler(Ia,mxConstants.STYLE_SPACING_RIGHT,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var eb=this.installInputHandler(Ja,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(La,Wa);this.addKeyHandler(Aa,Wa);this.addKeyHandler(Ia,Wa);this.addKeyHandler(Ja,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(ya,Fa){if(null!=ya&&null!=Fa){if(ya==Fa)return!0;if(ya.length>-Fa.length+1)return ya.substring(ya.length-Fa.length-1,ya.length)=="-"+Fa}return!1},C=function(ya){if(null!=d.getParentByName(q,ya,d.cellEditor.textarea))return!0;for(var Fa=q;null!=Fa&&1==Fa.childNodes.length;)if(Fa=Fa.childNodes[0],Fa.nodeName==ya)return!0;return!1},F=function(ya){for(;null!=ya&&ya!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(ya).display)return ya;ya=ya.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("*"),ea=window.getSelection(),ka=0;ka<ja.length&&(!ea.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||C("B")||C("STRONG"));e(w[1],"italic"==L.fontStyle||C("I")||C("EM"));e(w[2],"underline"==L.textDecorationLine||C("U"));e(W,"line-through"==L.textDecorationLine||C("STRIKE"));e(S,C("SUP"));e(H,C("SUB"));var xa=F(q);if(null!=xa){C=function(ya,Fa){Ha.push({name:ya,dispName:Fa,type:"string",getValue:function(){return Ka[ya]},valueChanged:function(va,ua){var Ta=xa.style,Ra=va;parseInt(Ra)==Ra&&(Ra+="px",-null!=ua&&(ua.value=Ra));Ta[ya]=Ra;""==va&&null!=ua&&(ua.value=Ka[ya])}})};var Ka=mxUtils.getCurrentStyle(xa),Ha=[];C("paddingTop","Padding Top");C("paddingRight","Padding Right");C("paddingLeft","Padding Left");C("paddingBottom","Padding Bottom");C("marginTop","Margin Top");C("marginRight","Margin Right");C("marginLeft","Margin Left");C("marginBottom","Margin Bottom");C=this.createPanel();this.addProperties(C,Ha,h,!0);null!=gb?gb.parentNode.replaceChild(C,gb):a.appendChild(C);gb=C}d.cellEditor.isTableSelected()?-(e(ca,A(L.textAlign,"justify")),e(E,A(L.textAlign,"left")),e(G,A(L.textAlign,"center")),e(J,A(L.textAlign,"right"))):(C=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,C==mxConstants.ALIGN_LEFT),e(G,C==mxConstants.ALIGN_CENTER),e(J,C==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,+Fa.length+1)return ya.substring(ya.length-Fa.length-1,ya.length)=="-"+Fa}return!1},B=function(ya){if(null!=d.getParentByName(q,ya,d.cellEditor.textarea))return!0;for(var Fa=q;null!=Fa&&1==Fa.childNodes.length;)if(Fa=Fa.childNodes[0],Fa.nodeName==ya)return!0;return!1},F=function(ya){for(;null!=ya&&ya!=d.cellEditor.textarea;){if("block"==mxUtils.getCurrentStyle(ya).display)return ya;ya=ya.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("*"),ea=window.getSelection(),ka=0;ka<ja.length&&(!ea.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(V,"line-through"==K.textDecorationLine||B("STRIKE"));e(S,B("SUP"));e(H,B("SUB"));var xa=F(q);if(null!=xa){B=function(ya,Fa){Ha.push({name:ya,dispName:Fa,type:"string",getValue:function(){return Ka[ya]},valueChanged:function(va,ua){var Ta=xa.style,Ra=va;parseInt(Ra)==Ra&&(Ra+="px",+null!=ua&&(ua.value=Ra));Ta[ya]=Ra;""==va&&null!=ua&&(ua.value=Ka[ya])}})};var Ka=mxUtils.getCurrentStyle(xa),Ha=[];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,Ha,h,!0);null!=gb?gb.parentNode.replaceChild(B,gb):a.appendChild(B);gb=B}d.cellEditor.isTableSelected()?+(e(ca,A(K.textAlign,"justify")),e(D,A(K.textAlign,"left")),e(G,A(K.textAlign,"center")),e(I,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(D,!1),e(G,!1),e(I,!1)):(e(ca,!1),e(D,B==mxConstants.ALIGN_LEFT),e(G,B==mxConstants.ALIGN_CENTER),e(I,B==mxConstants.ALIGN_RIGHT)));X=d.getParentByName(q,"TABLE",d.cellEditor.textarea);O=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&&(Q=d.getTextColor(q,!1),aa(Q,!0));g.toolbar.setMenuText(u,mxUtils.getCssFontFamily(K.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 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,B,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(B+" "+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);+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,E){var D=mxUtils.trim(w.style.getPropertyValue(y));if(""!=D&&"url("!=D.substring(0,4)){var G=D;"transparent"==G?G=mxConstants.NONE:(D=mxUtils.isLightDarkColor(G))&&E?E=!1:D||E||(G="light-dark("+G+", "+G+")");w=this.createColorOption(C+" "+w.selectorText,function(){return G},mxUtils.bind(this,function(I){g[d].style.setProperty(y,I==mxConstants.NONE?+"transparent":mxUtils.getLightDarkColor(I).cssText);I="";p&&mxUtils.isLightDarkColor(g[d].style[y])&&(f.documentElement.style.colorScheme="light dark");for(var M=0;M<g.length;M++)I+=g[M].cssText+" ";e.textContent=I;I=mxUtils.getXml(f.documentElement);u.setCellStyles(mxConstants.STYLE_IMAGE,"data:image/svg+xml,"+(window.btoa?btoa(unescape(encodeURIComponent(I))):Base64.encode(I,!0)),k.getSelectionState().cells)}),"#ffffff",{install:function(I){},destroy:function(){}},null,null,null,E);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),mxEvent.addListener(f,"change",mxUtils.bind(this,function(k){"openLibrary"==f.value?(null!=g&&0==g.length&&(this.editorUi.sidebar.updateSearchIndex(),k=this.editorUi.sidebar.getKeyStyle(b.cells[0].style),g=this.editorUi.sidebar.getLibsForStyle(k)),null!=g&&0<g.length?this.editorUi.sidebar.openLibraries(g):this.editorUi.handleError({message:mxResources.get("objectNotFound")}),f.value="edit"):(k=this.editorUi.actions.get(f.value),f.value="edit",null!=k&&k.funct())})),b.image&&(e=this.editorUi.editor.graph,e=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="";B=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 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 B;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!=B){h.innerHTML="";B=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!=B&&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(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.addFill=function(a){function b(){h.innerHTML="";C=1;for(var D=0;D<Editor.fillStyles.length;D++){var G=document.createElement("option");G.setAttribute("value",Editor.fillStyles[D].val);mxUtils.write(G,Editor.fillStyles[D].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(D){mxEvent.consume(D)});+mxEvent.addListener(h,"click",function(D){mxEvent.consume(D)});var m=this.createCellColorOption(mxResources.get("gradient"),mxConstants.STYLE_GRADIENTCOLOR,"default",function(D){d.style.display=null==D||D==mxConstants.NONE?"none":""},function(D){e.updateCellStyles({gradientColor:D},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(D){e.setCellStyles(p,D,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 E=mxUtils.bind(this,function(){g=f.getSelectionState();var D=mxUtils.getValue(g.style,mxConstants.STYLE_GRADIENT_DIRECTION,mxConstants.DIRECTION_SOUTH),G=mxUtils.getValue(g.style,"fillStyle","auto");""==D&&(D=mxConstants.DIRECTION_SOUTH);d.value=D;a.style.display=+g.fill?"":"none";D=mxUtils.getValue(g.style,p,null);if(g.fill&&null!=D&&D!=mxConstants.NONE&&"filledEdge"!=g.style.shape){if("1"==g.style.sketch){if(2!=C){h.innerHTML="";C=2;for(D=0;D<Editor.roughFillStyles.length;D++){var I=document.createElement("option");I.setAttribute("value",Editor.roughFillStyles[D].val);mxUtils.write(I,Editor.roughFillStyles[D].dispName);h.appendChild(I)}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,E);this.listeners.push({destroy:function(){e.getModel().removeListener(E)}});E();mxEvent.addListener(d,"change",function(D){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(D)});mxEvent.addListener(h,"change",function(D){e.setCellStyles("fillStyle",h.value,g.cells);f.fireEvent(new mxEventObject("styleChanged","keys",["fillStyle"],"values",[h.value],"cells",g.cells));mxEvent.consume(D)});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(D,G,I){if(null!=D){D=D.split(",");+G=null!=G?G.split(","):null;for(var M=0;M<D.length;M++){var N=D[M].replace(/([a-z])([A-Z])/g,"$1 $2"),L=null!=G?G[mxUtils.mod(M,G.length)]:null,V=null!=L?L:"default";a.appendChild(this.createCellColorOption(N.charAt(0).toUpperCase()+N.substring(1),D[M],V,null,null,I,L))}}});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"],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 La=0;La<ba.length;La++)d.setCellStyles(ba[La],-ma[La],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 B=m.cloneNode(!1);B.style.position="relative";var D=mxUtils.bind(this,function(P,ba,ma,La,na){P=this.editorUi.menus.styleChange(P,"",La,na,"",null);La=document.createElement("div");na=ma.split(" ");2==na.length?(ma=parseInt(na[0])+parseInt(na[1]),-na=parseInt(na[0])/ma*100,La.style.borderBottomStyle="none",La.style.backgroundImage="linear-gradient(to right, black "+na+"%, transparent 0%)",La.style.backgroundSize=ma+"px 1px"):La.style.borderBottomStyle=ma;P.firstChild.firstChild.className="geStyleMenuItem";P.firstChild.firstChild.style.width=ba+"px";P.firstChild.firstChild.appendChild(La);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,B),G=B.cloneNode(!1),J=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){var ba=[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,-mxConstants.STYLE_DASHED,"width"];Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,[null,null,null,null,null],"",null,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line"));Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,["link",null,null,null,null],"",null,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link"));Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,["flexArrow",null,null,null,null],-"",null,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow"));Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,["arrow",null,null,null,null],"",null,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow"));Format.processMenuIcon(this.editorUi.menus.styleChange(P,"",ba,["filledEdge",null,null,null,null],"",null,null,null,!0,Format.filledEdgeImage.src)).setAttribute("title","Filled Edge");Format.processMenuIcon(this.editorUi.menus.styleChange(P,-"",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=B.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"));-B.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;B.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,-mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,null,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==h.style.shape&&Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,null,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),-Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation")))})),"",null,k),X=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){if("connector"==h.style.shape||"flexArrow"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src)),-Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,-null,!1,Format.blockThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],-[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK_THIN,0],null,null,!1,Format.blockThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],["async",0],null,null,!1,Format.asyncMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OVAL,0],null,null,!1,Format.ovalMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND,0],null,null,!1,Format.diamondMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["box",0],null,null,!1,Format.boxMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_STARTARROW,"startFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,-"startFill"],["circle",1],null,null,!1,Format.circleMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],-["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],-["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW,-"startFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src))):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_STARTARROW],[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src)).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),T=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(P){if("connector"==h.style.shape||-"flexArrow"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,-"endFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src),"scaleX(-1)"),-Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,-1],null,null,!1,Format.blockFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,null,!1,Format.blockThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src),-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],-[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,0],null,null,!1,Format.blockThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",0],null,null,!1,Format.asyncMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,-"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,0],null,null,!1,Format.ovalMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,0],null,null,!1,Format.diamondMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src),-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["box",0],null,null,!1,Format.boxMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src),-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circle",0],null,null,!1,Format.circleMarkerImage.src),-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src),-"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(P,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToOne",0],null,null,-!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(u);a.appendChild(G);a.appendChild(B);u=B.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 fa=this.addUnitInput(u,+StyleFormatPanel.prototype.addDashPattern=function(a,b){var f=b.split(" ");if(2<=f.length){for(var e=0,g=0;g<f.length;g++)e+=parseInt(f[g]);b=Graph.createSvgImage(e,1,'<line transform="translate(0,1)" x1="0" y1="0" x2="'+e+'" y2="0" stroke-dasharray="'+b+'" stroke-width="2" stroke="black"/>',e,1);a.style.backgroundImage="url("+b.src+")";a.style.backgroundSize=e+"px 1px";a.style.backgroundRepeat="repeat-x"}else a.style.borderBottomStyle=b};+StyleFormatPanel.prototype.addStroke=function(a){function b(Q){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(Q)}function f(Q){var ba=e.fromUnit(parseFloat(N.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)));N.value=e.inUnit(ba)+" "+e.getUnit();mxEvent.consume(Q)}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"],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(Q){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 Na=0;Na<ba.length;Na++)d.setCellStyles(ba[Na],+ma[Na],h.cells);g.fireEvent(new mxEventObject("styleChanged","keys",ba,"values",ma,"cells",h.cells))}finally{d.getModel().endUpdate()}mxEvent.consume(Q)});mxEvent.addListener(p,"click",function(Q){mxEvent.consume(Q)});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(Q){d.setCellStyles(y,Q,h.cells);if(null==Q||+Q==mxConstants.NONE){Q=[];for(var ba=0;ba<h.cells.length;ba++)(d.isTableCell(h.cells[ba])||d.isTableRow(h.cells[ba]))&&Q.push(h.cells[ba]);0<Q.length&&d.setCellStyles(y,"inherit",Q)}}),d.shapeForegroundColor);u.style.fontWeight="bold";u.appendChild(p);var C=m.cloneNode(!1);C.style.position="relative";var E=mxUtils.bind(this,function(Q,ba,ma,Na,oa){Q=this.editorUi.menus.styleChange(Q,"",Na,oa,"",null);Na=document.createElement("div");this.addDashPattern(Na,ma);Q.firstChild.firstChild.className="geStyleMenuItem";+Q.firstChild.firstChild.style.width=ba+"px";Q.firstChild.firstChild.appendChild(Na);return Q}),D=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(Q){E(Q,110,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(Q,110,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")+" (1)");E(Q,110,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],+["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");E(Q,110,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");E(Q,110,"8 4 1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 4 1 4"]).setAttribute("title",mxResources.get("dashed")+" (4)");E(Q,110,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");+E(Q,110,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(Q,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),I=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(Q){var ba=[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,mxConstants.STYLE_DASHED,"width"];Format.processMenuIcon(this.editorUi.menus.styleChange(Q,+"",ba,[null,null,null,null,null],"",null,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line"));Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",ba,["link",null,null,null,null],"",null,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link"));Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",ba,["flexArrow",null,null,null,null],"",null,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow"));+Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",ba,["arrow",null,null,null,null],"",null,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow"));Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",ba,["filledEdge",null,null,null,null],"",null,null,null,!0,Format.filledEdgeImage.src)).setAttribute("title","Filled Edge");Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",ba,["pipe",null,null,null,null],"",null,null,null,!0,Format.pipeEdgeImage.src)).setAttribute("title",+"Pipe");Format.processMenuIcon(this.editorUi.menus.styleChange(Q,"",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(Q){E(Q,40,"solid",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],[null,null]).setAttribute("title",mxResources.get("solid"));E(Q,40,"dashed",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1",null]).setAttribute("title",mxResources.get("dashed")++" (1)");E(Q,40,"8 8",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 8"]).setAttribute("title",mxResources.get("dashed")+" (2)");E(Q,40,"12 12",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","12 12"]).setAttribute("title",mxResources.get("dashed")+" (3)");E(Q,40,"8 4 1 4",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","8 4 1 4"]).setAttribute("title",mxResources.get("dashed")+" (4)");E(Q,40,"dotted",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],+["1","1 1"]).setAttribute("title",mxResources.get("dotted")+" (1)");E(Q,40,"1 2",[mxConstants.STYLE_DASHED,mxConstants.STYLE_DASH_PATTERN],["1","1 2"]).setAttribute("title",mxResources.get("dotted")+" (2)");E(Q,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 N=M.cloneNode(!0);N.style.width="56px";N.style.left="144px";G.appendChild(N);var L=this.createStepper(M,b,this.getUnitStep(),null,null,this.isFloatUnit());L.style.display=M.style.display;C.appendChild(L);L=this.createStepper(N,f,this.getUnitStep(),null,null,this.isFloatUnit());L.style.display=N.style.display;G.appendChild(L);mxEvent.addListener(M,"blur",b);mxEvent.addListener(M,"change",b);mxEvent.addListener(N,"blur",f);mxEvent.addListener(N,"change",+f);var V=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(Q){"arrow"!=h.style.shape&&(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[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(Q,"",[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(Q,"",[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(Q,"",[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(Q,"",[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(Q,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,null,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==h.style.shape&&Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",+"1",null],null,null,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation")))})),"",null,k),X=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(Q){if("connector"==h.style.shape||"flexArrow"==h.style.shape||+"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,+1],null,null,!1,Format.classicFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,+"startFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,null,!1,Format.blockThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src)),+Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK_THIN,+0],null,null,!1,Format.blockThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["async",0],null,null,!1,Format.asyncMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OVAL,0],null,null,!1,Format.ovalMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND,+0],null,null,!1,Format.diamondMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["box",0],null,null,!1,Format.boxMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],+["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circlePlus",+0],null,null,!1,Format.circlePlusMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circle",1],null,null,!1,Format.circleMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERone",0],+null,null,!1,Format.EROneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERoneToMany",0],+null,null,!1,Format.ERoneToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],+["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src)),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW,"startFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src))):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_STARTARROW],[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src)).setAttribute("title",mxResources.get("block")),Q.div.style.width="40px",window.setTimeout(mxUtils.bind(this,+function(){null!=Q.div&&mxUtils.fit(Q.div)}),0)})),"",null,k),T=g.toolbar.addMenu(new Menu(mxUtils.bind(this,function(Q){if("connector"==h.style.shape||"flexArrow"==h.style.shape||"filledEdge"==h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape)Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.NONE,0],null,null,!1,Format.noMarkerImage.src)).setAttribute("title",mxResources.get("none")),"connector"==h.style.shape||"filledEdge"==+h.style.shape||"wire"==h.style.shape||"pipe"==h.style.shape?(Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,1],null,null,!1,Format.classicFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,1],null,null,!1,Format.classicThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN,0],null,null,!1,Format.openFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN_THIN,0],null,null,!1,Format.openThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["openAsync",0],null,null,!1,Format.openAsyncFilledMarkerImage.src),+"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,1],null,null,!1,Format.blockFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,1],null,null,!1,Format.blockThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,+"endFill"],["async",1],null,null,!1,Format.asyncFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,1],null,null,!1,Format.ovalFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,1],null,null,!1,Format.diamondFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND_THIN,1],null,null,!1,Format.diamondThinFilledMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,0],null,null,!1,Format.classicMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,0],null,null,!1,Format.classicThinMarkerImage.src),+"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK,0],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,0],null,null,!1,Format.blockThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",+0],null,null,!1,Format.asyncMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,0],null,null,!1,Format.ovalMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_DIAMOND,0],null,null,!1,Format.diamondMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,+"endFill"],[mxConstants.ARROW_DIAMOND_THIN,0],null,null,!1,Format.diamondThinMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["box",0],null,null,!1,Format.boxMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["halfCircle",0],null,null,!1,Format.halfCircleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],["dash",0],null,null,!1,Format.dashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["cross",0],null,null,!1,Format.crossMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circlePlus",0],null,null,!1,Format.circlePlusMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],["circle",0],null,null,!1,Format.circleMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["baseDash",0],null,null,!1,Format.baseDashMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERone",0],null,null,!1,Format.EROneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmandOne",0],null,null,!1,Format.ERmandOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmany",0],null,null,!1,Format.ERmanyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERoneToMany",0],null,null,!1,Format.ERoneToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToOne",0],null,null,!1,Format.ERzeroToOneMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToMany",0],null,null,!1,Format.ERzeroToManyMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",0],null,null,!1,Format.doubleBlockMarkerImage.src),"scaleX(-1)"),Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,+"",[mxConstants.STYLE_ENDARROW,"endFill"],["doubleBlock",1],null,null,!1,Format.doubleBlockFilledMarkerImage.src),"scaleX(-1)")):Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(Q,"",[mxConstants.STYLE_ENDARROW],[mxConstants.ARROW_BLOCK],null,null,!1,Format.blockMarkerImage.src),"scaleX(-1)").setAttribute("title",mxResources.get("block")),Q.div.style.width="40px",window.setTimeout(mxUtils.bind(this,function(){null!=Q.div&&mxUtils.fit(Q.div)}),0)})),"",null,k);I.style.width="67px";I.style.marginRight=+"2px";w.style.width="67px";w.style.marginRight="2px";V.style.width="67px";V.style.marginRight="2px";X.style.width="67px";X.style.marginRight="2px";T.style.width="67px";T.style.marginRight="2px";this.addArrow(I).appendChild(document.createElement("div"));this.addArrow(V).appendChild(document.createElement("div"));this.addArrow(X);this.addArrow(T);D.style.width="142px";D=this.addArrow(D);w=this.addArrow(w);var O=document.createElement("div");O.className="gePatternPreview";O.style.width="100px";O.style.borderBottomStyle=+"solid";D.appendChild(O);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);D=document.createElement("div");D.style.height="8px";u.appendChild(D);w=w.cloneNode(!1);mxUtils.write(w,mxResources.get("spacing"));u.appendChild(w);var fa=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 La(na,za,Aa,Ma){Aa=Aa.getElementsByTagName("div")[0];null!=Aa&&g.updateCssForMarker(Aa,Ma,h.style.shape,na,za);return Aa}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,-mxConstants.STYLE_NOEDGESTYLE,null)&&(ba=null),"orthogonalEdgeStyle"==ba&&"1"==mxUtils.getValue(h.style,mxConstants.STYLE_CURVED,null)?P.style.backgroundImage="url("+Format.curvedImage.src+")":"straight"==ba||"none"==ba||null==ba?P.style.backgroundImage="url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==ba?P.style.backgroundImage="url("+Format.entityImage.src+")":"elbowEdgeStyle"==ba?"vertical"==mxUtils.getValue(h.style,mxConstants.STYLE_ELBOW,null)?P.style.backgroundImage="url("+Format.verticalElbowImage.src+-")":P.style.backgroundImage="url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==ba?"vertical"==mxUtils.getValue(h.style,mxConstants.STYLE_ELBOW,null)?P.style.backgroundImage="url("+Format.verticalIsometricImage.src+")":P.style.backgroundImage="url("+Format.horizontalIsometricImage.src+")":P.style.backgroundImage="url("+Format.orthogonalImage.src+")");P=J.getElementsByTagName("div")[1];null!=P&&(P.style.backgroundImage="link"==h.style.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==-h.style.shape?"url("+Format.arrowImage.src+")":"arrow"==h.style.shape?"url("+Format.simpleArrowImage.src+")":"filledEdge"==h.style.shape?"url("+Format.filledEdgeImage.src+")":"pipe"==h.style.shape?"url("+Format.pipeEdgeImage.src+")":"wire"==h.style.shape?"url("+Format.wireEdgeImage.src+")":"url("+Format.connectionImage.src+")");h.edges.length==h.cells.length?(G.style.display="",B.style.display="none"):(G.style.display="none",B.style.display="");Graph.lineJumpsEnabled&&0<h.edges.length&&0==h.vertices.length&&-h.lineJumps&&(a.style.borderBottomStyle="none");La(mxUtils.getValue(h.style,mxConstants.STYLE_STARTARROW,null),mxUtils.getValue(h.style,"startFill","1"),X,"start");La(mxUtils.getValue(h.style,mxConstants.STYLE_ENDARROW,null),mxUtils.getValue(h.style,"endFill","1"),T,"end");mxUtils.setOpacity(W,"arrow"==h.style.shape?30:100);"connector"!=h.style.shape&&"flexArrow"!=h.style.shape&&"filledEdge"!=h.style.shape&&"wire"!=h.style.shape&&"pipe"!=h.style.shape&&(mxUtils.setOpacity(X,30),mxUtils.setOpacity(T,-30));if(ma||document.activeElement!=H)P=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE)),H.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit();if(ma||document.activeElement!=fa)P=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),fa.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit();if(ma||document.activeElement!=S)P=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE)),S.value=isNaN(P)?-"":this.inUnit(P)+" "+this.getUnit();if(ma||document.activeElement!=fa)P=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)),la.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit();if(ma||document.activeElement!=O)P=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_PERIMETER_SPACING,0)),O.value=isNaN(P)?"":this.inUnit(P)+" "+this.getUnit()});var Y=this.installInputHandler(H,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),-!0);var ha=this.installInputHandler(fa,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ia=this.installInputHandler(S,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ta=this.installInputHandler(la,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var aa=this.installInputHandler(O,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),-null,this.isFloatUnit(),!0);this.addKeyHandler(M,V);this.addKeyHandler(H,V);this.addKeyHandler(fa,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 u=mxUtils.bind(this,function(w,y,B){e=b.getSelectionState();d.value=mxUtils.getValue(e.style,"jumpStyle","none");if(B||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};+mxResources.get("perimeter"));m.appendChild(w);var P=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 W=mxUtils.bind(this,function(Q,ba,ma){function Na(oa,za,Aa,La){Aa=Aa.getElementsByTagName("div")[0];null!=Aa&&g.updateCssForMarker(Aa,La,h.style.shape,oa,za);return Aa}h=g.getSelectionState();if(ma||+document.activeElement!=M)Q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)),M.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit();if(ma||document.activeElement!=N)Q=parseFloat(mxUtils.getValue(h.style,mxConstants.STYLE_STROKEWIDTH,1)),N.value=isNaN(Q)?"":this.inUnit(Q)+" "+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");O.style.borderBottom="1px solid black";"1"==mxUtils.getValue(h.style,mxConstants.STYLE_DASHED,null)&&(Q=mxUtils.getValue(h.style,mxConstants.STYLE_DASH_PATTERN,""),2<=String(Q).split(" ").length?(O.style.borderBottom="1px solid transparent",this.addDashPattern(O,Q)):O.style.borderBottom="1px dashed black");ca.style.backgroundImage=O.style.backgroundImage;ca.style.backgroundPosition=O.style.backgroundPosition;+ca.style.backgroundSize=O.style.backgroundSize;ca.style.backgroundRepeat=O.style.backgroundRepeat;ca.style.borderBottom=O.style.borderBottom;Q=V.getElementsByTagName("div")[1];null!=Q&&(ba=mxUtils.getValue(h.style,mxConstants.STYLE_EDGE,null),"1"==mxUtils.getValue(h.style,mxConstants.STYLE_NOEDGESTYLE,null)&&(ba=null),"orthogonalEdgeStyle"==ba&&"1"==mxUtils.getValue(h.style,mxConstants.STYLE_CURVED,null)?Q.style.backgroundImage="url("+Format.curvedImage.src+")":"straight"==ba||"none"==ba||null==ba?+Q.style.backgroundImage="url("+Format.straightImage.src+")":"entityRelationEdgeStyle"==ba?Q.style.backgroundImage="url("+Format.entityImage.src+")":"elbowEdgeStyle"==ba?"vertical"==mxUtils.getValue(h.style,mxConstants.STYLE_ELBOW,null)?Q.style.backgroundImage="url("+Format.verticalElbowImage.src+")":Q.style.backgroundImage="url("+Format.horizontalElbowImage.src+")":"isometricEdgeStyle"==ba?"vertical"==mxUtils.getValue(h.style,mxConstants.STYLE_ELBOW,null)?Q.style.backgroundImage="url("+Format.verticalIsometricImage.src++")":Q.style.backgroundImage="url("+Format.horizontalIsometricImage.src+")":Q.style.backgroundImage="url("+Format.orthogonalImage.src+")");Q=I.getElementsByTagName("div")[1];null!=Q&&(Q.style.backgroundImage="link"==h.style.shape?"url("+Format.linkEdgeImage.src+")":"flexArrow"==h.style.shape?"url("+Format.arrowImage.src+")":"arrow"==h.style.shape?"url("+Format.simpleArrowImage.src+")":"filledEdge"==h.style.shape?"url("+Format.filledEdgeImage.src+")":"pipe"==h.style.shape?"url("+Format.pipeEdgeImage.src++")":"wire"==h.style.shape?"url("+Format.wireEdgeImage.src+")":"url("+Format.connectionImage.src+")");h.edges.length==h.cells.length?(G.style.display="",C.style.display="none"):(G.style.display="none",C.style.display="");Graph.lineJumpsEnabled&&0<h.edges.length&&0==h.vertices.length&&h.lineJumps&&(a.style.borderBottomStyle="none");Na(mxUtils.getValue(h.style,mxConstants.STYLE_STARTARROW,null),mxUtils.getValue(h.style,"startFill","1"),X,"start");Na(mxUtils.getValue(h.style,mxConstants.STYLE_ENDARROW,+null),mxUtils.getValue(h.style,"endFill","1"),T,"end");mxUtils.setOpacity(V,"arrow"==h.style.shape?30:100);"connector"!=h.style.shape&&"flexArrow"!=h.style.shape&&"filledEdge"!=h.style.shape&&"wire"!=h.style.shape&&"pipe"!=h.style.shape&&(mxUtils.setOpacity(X,30),mxUtils.setOpacity(T,30));if(ma||document.activeElement!=H)Q=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE)),H.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit();if(ma||document.activeElement!=+fa)Q=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),fa.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit();if(ma||document.activeElement!=S)Q=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE)),S.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit();if(ma||document.activeElement!=fa)Q=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)),la.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit();if(ma||+document.activeElement!=P)Q=parseInt(mxUtils.getValue(h.style,mxConstants.STYLE_PERIMETER_SPACING,0)),P.value=isNaN(Q)?"":this.inUnit(Q)+" "+this.getUnit()});var Y=this.installInputHandler(H,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ha=this.installInputHandler(fa,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ia=this.installInputHandler(S,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,+0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var ta=this.installInputHandler(la,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0,-999,999,this.getUnit(" "),null,this.isFloatUnit(),!0);var aa=this.installInputHandler(P,mxConstants.STYLE_PERIMETER_SPACING,0,0,999,this.getUnit(" "),null,this.isFloatUnit(),!0);this.addKeyHandler(M,W);this.addKeyHandler(H,W);this.addKeyHandler(fa,W);this.addKeyHandler(S,W);this.addKeyHandler(la,W);this.addKeyHandler(P,W);d.getModel().addListener(mxEvent.CHANGE,W);this.listeners.push({destroy:function(){d.getModel().removeListener(W)}});+W();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 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,u=mxUtils.bind(this,function(y,B,D,E){y=this.createCellOption(y,B,D,null,null,E);y.style.alignItems="top";k.appendChild(y);k=k==m?p:m;return y}),w=mxUtils.bind(this,function(y,B,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);+d.appendChild(h);g.appendChild(d);a.appendChild(g);var k=m,u=mxUtils.bind(this,function(y,C,E,D){y=this.createCellOption(y,C,E,null,null,D);y.style.alignItems="top";k.appendChild(y);k=k==m?p:m;return y}),w=mxUtils.bind(this,function(y,C,E){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,I){f.updateCellStyles({sketch:I?+"1":null,curveFitting:I?Editor.sketchDefaultCurveFitting:null,jiggle:I?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 D in e.customProperties)y=+e.customProperties[D],null!=y&&"bool"==y.type&&y.primary&&u(y.dispName,D,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);@@ -3271,21 +3272,21 @@ DiagramStylePanel.prototype.addView=function(a){var b=this.editorUi,f=b.editor.g"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 B=new ChangePageSetup(b);B.ignoreColor=!0;B.ignoreImage=!0;B.adaptiveColors=w.value;f.model.execute(B)});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);+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]),fa=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],fa[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]}}),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 fa=S.insertVertex(S.getDefaultParent(),null,"Shape",2,2,+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(V,X){var T=f.getVerticesAndEdges();e.beginUpdate();try{for(var O=0;O<T.length;O++){var ca=f.getCellStyle(T[O]);p||null==ca.labelBackgroundColor?p&&f.updateCellStyles({labelBackgroundColor:mxConstants.NONE},[T[O]]):f.updateCellStyles({labelBackgroundColor:null!=+X?X.background:null},[T[O]]);for(var H=e.isEdge(T[O]),S=e.getStyle(T[O]),fa=H?f.currentEdgeStyle:f.currentVertexStyle,la=0;la<V.length;la++)if(null!=ca[V[la]]&&ca[V[la]]!=mxConstants.NONE||V[la]!=mxConstants.STYLE_FILLCOLOR&&V[la]!=mxConstants.STYLE_STROKECOLOR)S=p&&H&&V[la]==mxConstants.STYLE_FONTCOLOR?mxUtils.setStyle(S,V[la],"default"):mxUtils.setStyle(S,V[la],fa[V[la]]);e.setStyle(T[O],S)}}finally{e.endUpdate()}}),m=mxUtils.bind(this,function(V,X,T){if(null!=V)for(var O=0;O<X.length;O++)if(null!=+V[X[O]]&&V[X[O]]!=mxConstants.NONE||X[O]!=mxConstants.STYLE_FILLCOLOR&&X[O]!=mxConstants.STYLE_STROKECOLOR)V[X[O]]=T[X[O]]}),p=!0,k=mxUtils.bind(this,function(V,X,T,O,ca){if(null!=V){null!=T&&(p||null==X.labelBackgroundColor?p&&(X.labelBackgroundColor=mxConstants.NONE):(O=null!=O?O.background:null,ca=null!=ca?ca:f,null==O&&(O=ca.background),null==O&&(O=ca.defaultPageBackgroundColor),X.labelBackgroundColor=O));for(var H in V)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]=V[H]}}),u=mxUtils.bind(this,function(V,X,T,O,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(P,W){W=null!=W?W:!0;var Y=mxUtils.clone(f.getCellStyle.apply(this,arguments)),ha=f.stylesheet.getDefaultVertexStyle(),ia=X;e.isEdge(P)&&(ha=f.stylesheet.getDefaultEdgeStyle(),ia=T);m(Y,d,ha);k(V,Y,P,O,S);k(ia,Y,P,O,S);W&&(Y=f.postProcessCellStyle(P,Y));return Y};S.model.beginUpdate();try{var fa=S.insertVertex(S.getDefaultParent(),null,"Shape",2,2,56,30,"strokeWidth=2;"),la=S.insertEdge(S.getDefaultParent(),null,"Connector",fa,fa,"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),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 fa=d.slice(),la;for(la in W)fa.push(la);h(fa,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 fa=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(fa.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=fa;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)}),B=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<B&&(D[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=W,E())});if(1<B){var J=document.createElement("div");J.className="geSwitcher";J.style.width="200px";for(var M=0;M<B;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>B&&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,B))}));mxEvent.addListener(K,"click",mxUtils.bind(this,function(){G(mxUtils.mod(this.format.currentStylePage+1,B))}))}}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;+w=document.createElement("div");w.style.whiteSpace="normal";a.appendChild(w);null==this.format.cachedStyleEntries&&(this.format.cachedStyleEntries=[]);var y=mxUtils.bind(this,function(V,X,T,O,ca){var H=this.format.cachedStyleEntries[ca];null==H&&(H=document.createElement("div"),H.className="geGraphStylePreview",p||null==O||null==O.background||(H.style.backgroundColor=O.background),u(V,X,T,O,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(V,f.currentVertexStyle);k(V,f.currentEdgeStyle);k(X,f.currentVertexStyle);k(T,f.currentEdgeStyle);e.beginUpdate();try{var fa=d.slice(),la;for(la in V)fa.push(la);h(fa,O);if(!p){var P=new ChangePageSetup(b,null!=O?O.background:null);P.ignoreImage=!0;e.execute(P);e.execute(new ChangeGridColor(b,null!=O&&null!=O.gridColor?O.gridColor:g))}}finally{e.endUpdate()}})),+mxClient.IS_TOUCH||(mxEvent.addListener(H,"mouseenter",mxUtils.bind(this,function(S){var fa=f.getCellStyle;S=f.background;var la=f.view.gridColor;p||(f.background=null!=O?O.background:null,f.view.gridColor=null!=O&&null!=O.gridColor?O.gridColor:g);f.getCellStyle=function(P,W){W=null!=W?W:!0;var Y=mxUtils.clone(fa.apply(this,arguments)),ha=f.stylesheet.getDefaultVertexStyle(),ia=X;e.isEdge(P)&&(ha=f.stylesheet.getDefaultEdgeStyle(),ia=T);m(Y,d,ha);k(V,Y,P,O);k(ia,Y,P,O);W&&(Y=this.postProcessCellStyle(P,+Y));return Y};f.refresh();f.getCellStyle=fa;f.background=S;f.view.gridColor=la})),mxEvent.addListener(H,"mouseleave",mxUtils.bind(this,function(S){f.refresh()}))),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 E=[],D=mxUtils.bind(this,function(){0<E.length&&(E[this.format.currentStylePage].style.background="#84d7ff");for(var V=10*this.format.currentStylePage;V<+Math.min(10*(this.format.currentStylePage+1),Editor.styles.length);V++){var X=Editor.styles[V];y(X.commonStyle,X.vertexStyle,X.edgeStyle,X.graph,V)}}),G=mxUtils.bind(this,function(V){0<=V&&V<C&&(E[this.format.currentStylePage].style.background="transparent",w.innerText="",this.format.currentStylePage=V,D())});if(1<C){var I=document.createElement("div");I.className="geSwitcher";I.style.width="200px";for(var M=0;M<C;M++){var N=document.createElement("div");N.className="geSwitcherDot";mxUtils.bind(this,+function(V,X){mxEvent.addListener(N,"click",mxUtils.bind(this,function(){G(V)}))})(M,N);I.appendChild(N);E.push(N)}a.appendChild(I);D();if(15>C&&0<E.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+")";I.insertBefore(M,E[0]);I.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 D();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?@@ -3303,20 +3304,20 @@ DiagramFormatPanel.prototype.addDocumentProperties=function(a){a.appendChild(thiDiagramFormatPanel.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 u(){mxCylinder.call(this)}function w(){mxShape.call(this)}-function y(){mxShape.call(this)}function B(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 fa(){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 La(){mxShape.call(this)}function na(){mxShape.call(this)}function za(){mxShape.call(this)}function Aa(){mxShape.call(this)}function Ma(){mxCylinder.call(this)}function Qa(){mxCylinder.call(this)}function Ja(){mxRectangleShape.call(this)}function Ia(){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 C(){mxActor.call(this)}function F(){mxActor.call(this)}function L(){mxEllipse.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 E(){mxActor.call(this)}function D(){mxCylinder.call(this)}function G(){mxCylinder.call(this)}function I(){mxActor.call(this)}function M(){mxActor.call(this)}function N(){mxActor.call(this)}function L(){mxActor.call(this)}function V(){mxActor.call(this)}function X(){mxActor.call(this)}function T(){mxActor.call(this)}function O(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,O.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,O.prototype.moveTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,O.prototype.close);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,O.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,+O.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,O.prototype.arcTo)}function ca(){mxRectangleShape.call(this)}function H(){mxRectangleShape.call(this)}function S(){mxActor.call(this)}function fa(){mxActor.call(this)}function la(){mxActor.call(this)}function P(){mxRectangleShape.call(this)}function W(){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 Q(){mxShape.call(this)}function ba(){mxRectangleShape.call(this)}function ma(){mxShape.call(this)}function Na(){mxShape.call(this)}function oa(){mxShape.call(this)}function za(){mxShape.call(this)}function Aa(){mxShape.call(this)}function La(){mxCylinder.call(this)}function Qa(){mxCylinder.call(this)}function Ja(){mxRectangleShape.call(this)}function Ia(){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)}function R(){mxEllipse.call(this)}function Z(){mxEllipse.call(this)}function ja(){mxRhombus.call(this)}function ea(){mxEllipse.call(this)}function ka(){mxEllipse.call(this)}function xa(){mxEllipse.call(this)}function Ka(){mxEllipse.call(this)}function Ha(){mxActor.call(this)}function ya(){mxActor.call(this)}function Fa(){mxActor.call(this)}function va(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,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,+!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,J,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?xa.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(),+!1,x=this.isHorizontal(),J=this.getTitleSize();0==J||this.outline?xa.prototype.paintVertexShape.apply(this,arguments):(mxSwimlane.prototype.paintVertexShape.apply(this,arguments),c.translate(-l,-t));v||this.outline||!(x&&J<r||!x&&J<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 J=v;v=x;x=J}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",+parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity)))),J=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!=J&&(c.setFillAlpha(Math.abs(J)),c.setFillColor(0>J?"#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 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*@@ -3326,75 +3327,75 @@ l),c.curveTo(0,2*l,n,2*l,n,l),v||(c.stroke(),c.begin()),c.translate(0,l/2),c.movc.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(B,mxCylinder);B.prototype.size=15;B.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",B);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",+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(E,mxActor);E.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",E);mxUtils.extend(D,+mxCylinder);D.prototype.tabWidth=60;D.prototype.tabHeight=20;D.prototype.tabPosition="right";D.prototype.arcSize=.1;D.prototype.isRoundable=function(){return!0};D.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),J=mxUtils.getValue(this.style,"absoluteArcSize",!1),z=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));J||(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",D);D.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};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,+G);mxUtils.extend(I,mxActor);I.prototype.size=30;I.prototype.isRoundable=function(){return!0};I.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",I);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};B.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),v=parseFloat(mxUtils.getValue(this.style,"arcSize",this.arcSize));+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(N,mxActor);N.prototype.size=.3;N.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};N.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",N);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};D.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,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);+"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(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(V,mxActor);V.prototype.size=.2;V.prototype.fixedSize=+20;V.prototype.isRoundable=function(){return!0};V.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",V);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);O.prototype.moveTo=function(c,l){this.originalMoveTo.apply(this.canvas,arguments);this.lastX=c;this.lastY=l;this.firstX=c;this.firstY=l};O.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)};O.prototype.quadTo=function(c,l,t,n){this.originalQuadTo.apply(this.canvas,arguments);this.lastX=t;this.lastY=n};O.prototype.curveTo=function(c,l,t,n,r,v){this.originalCurveTo.apply(this.canvas,arguments);this.lastX=r;this.lastY=v};O.prototype.arcTo=function(c,l,t,n,r,v,x){this.originalArcTo.apply(this.canvas,arguments);this.lastX=v;this.lastY=+x};O.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),J=this.defaultVariation;5>x&&(x=5,J/=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)*J;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};O.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 O(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!=O)lb.apply(this,arguments);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 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 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(fa,+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)))),J=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+J),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(fa,mxActor);fa.prototype.size=.2;fa.prototype.fixedSize=20;fa.prototype.isRoundable=function(){return!0};fa.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",fa);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 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"],Ga=this.style["symbol"+v+"Spacing"]||0,Ua=this.style["symbol"+v+"VSpacing"]||Ga,Pa=this.style["symbol"+v+"ArcSpacing"];null!=Pa&&(Pa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Ga+=Pa,Ua+=Pa);Pa=l;var oa=t;Pa=I==mxConstants.ALIGN_CENTER?Pa+(n-da)/2:I==mxConstants.ALIGN_RIGHT?Pa+(n-da-Ga):Pa+Ga;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=+"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(P,mxRectangleShape);P.prototype.isHtmlAllowed=function(){return!1};P.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",P);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(W,mxRectangleShape);W.prototype.isHtmlAllowed=function(){return!1};W.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};W.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 J=this.style["symbol"+v+"Align"],+z=this.style["symbol"+v+"VerticalAlign"],da=this.style["symbol"+v+"Width"],U=this.style["symbol"+v+"Height"],Ga=this.style["symbol"+v+"Spacing"]||0,Ua=this.style["symbol"+v+"VSpacing"]||Ga,Pa=this.style["symbol"+v+"ArcSpacing"];null!=Pa&&(Pa*=this.getArcSize(n+this.strokewidth,r+this.strokewidth),Ga+=Pa,Ua+=Pa);Pa=l;var na=t;Pa=J==mxConstants.ALIGN_CENTER?Pa+(n-da)/2:J==mxConstants.ALIGN_RIGHT?Pa+(n-da-Ga):Pa+Ga;na=z==mxConstants.ALIGN_MIDDLE?na+(r-U)/2:z==mxConstants.ALIGN_BOTTOM?na+(r-U-Ua):na++Ua;c.save();J=new x;J.style=this.style;x.prototype.paintVertexShape.call(J,c,Pa,na,da,U);c.restore()}v++}while(null!=x)}mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("ext",W);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 v=Math.max(0,Math.min(r,+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(Q,mxShape);Q.prototype.getLabelBounds=function(c){return new mxRectangle(c.x,c.y+c.height/8,c.width,7*c.height/8)};Q.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()};Q.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",Q);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=+this.width)))),J=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,J-1.5*v));c.lineTo(l+Math.max(0,x-v),t+J);c.lineTo(l,t+J);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+J);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"),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?fa.prototype.fixedSize:fa.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(La,mxShape);La.prototype.size=10;La.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",La);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(za,mxShape);za.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",za);mxUtils.extend(Aa,mxShape);Aa.prototype.inset=2;Aa.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",Aa);mxUtils.extend(Ma,mxCylinder);Ma.prototype.jettyWidth=20;Ma.prototype.jettyHeight=10;Ma.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",Ma);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(Ja,mxRectangleShape);Ja.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",Ja);mxUtils.extend(Ia,mxDoubleEllipse);Ia.prototype.outerStroke=+l,t,n){var r="0"!=mxUtils.getValue(l.style,"fixedSize","0"),v=r?L.prototype.fixedSize:L.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,J=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)),J=[new mxPoint(x,J),new mxPoint(x+z,J+r),new mxPoint(x++z,J+da),new mxPoint(x,J+da-r),new mxPoint(x,J)]):(r=r?Math.max(0,Math.min(.5*z,v)):z*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+z,J),new mxPoint(x+z-r,J+da),new mxPoint(x,J+da),new mxPoint(x+r,J)]);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(J,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?V.prototype.fixedSize:V.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,J=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)),J=[new mxPoint(x+r,J),new mxPoint(x+z-r,J),new mxPoint(x+z,J+da),new mxPoint(x,J+da),new mxPoint(x+r,J)]):l==mxConstants.DIRECTION_WEST?+(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+z,J),new mxPoint(x+z-r,J+da),new mxPoint(x+r,J+da),new mxPoint(x,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J+r),new mxPoint(x+z,J),new mxPoint(x+z,J+da),new mxPoint(x,J+da-r),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(x+z,J+r),new mxPoint(x+z,J+da-r),new mxPoint(x,+J+da),new mxPoint(x,J)]);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(J,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?fa.prototype.fixedSize:fa.prototype.size;null!=l&&(v=mxUtils.getValue(l.style,"size",v));r&&(v*=l.view.scale);var x=c.x,J=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)),J=[new mxPoint(x,J),new mxPoint(x+z-r,J),new mxPoint(x+z,c),new mxPoint(x+z-r,J+da),new mxPoint(x,J+da),new mxPoint(x+r,c),new mxPoint(x,J)]):l==mxConstants.DIRECTION_WEST?(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+z,J),new mxPoint(x++z-r,c),new mxPoint(x+z,J+da),new mxPoint(x+r,J+da),new mxPoint(x,c),new mxPoint(x+r,J)]):l==mxConstants.DIRECTION_NORTH?(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J+r),new mxPoint(U,J),new mxPoint(x+z,J+r),new mxPoint(x+z,J+da),new mxPoint(U,J+da-r),new mxPoint(x,J+da),new mxPoint(x,J+r)]):(r=r?Math.max(0,Math.min(da,v)):da*Math.max(0,Math.min(1,v)),J=[new mxPoint(x,J),new mxPoint(U,J+r),new mxPoint(x+z,J),new mxPoint(x+z,J+da-r),new mxPoint(U,J+da),new mxPoint(x,+J+da-r),new mxPoint(x,J)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(J,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,J=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)),J=[new mxPoint(U,J),new mxPoint(x+z,J+r),new mxPoint(x+z,J+da-r),new mxPoint(U,J+da),new mxPoint(x,J+da-r),new mxPoint(x,J+r),new mxPoint(U,J)]):(r=r?Math.max(0,Math.min(z,v)):z*Math.max(0,Math.min(1,v)),J=[new mxPoint(x+r,J),new mxPoint(x+z-r,J),new mxPoint(x+z,c),new mxPoint(x+z-r,J+da),new mxPoint(x++r,J+da),new mxPoint(x,c),new mxPoint(x+r,J)]);U=new mxPoint(U,c);n&&(t.x<x||t.x>x+z?U.y=t.y:U.x=t.x);return mxUtils.getPerimeterPoint(J,U,t)};mxStyleRegistry.putValue("hexagonPerimeter2",mxPerimeter.HexagonPerimeter2);mxUtils.extend(Na,mxShape);Na.prototype.size=10;Na.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",Na);mxUtils.extend(oa,mxShape);oa.prototype.size=10;oa.prototype.inset=2;oa.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",oa);mxUtils.extend(za,mxShape);za.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",za);mxUtils.extend(Aa,mxShape);Aa.prototype.inset=2;Aa.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",Aa);mxUtils.extend(La,mxCylinder);La.prototype.jettyWidth=20;La.prototype.jettyHeight=10;La.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 J=Math.min(l,r-l),z=Math.min(J+2*l,r-l);v?(c.moveTo(t,J),+c.lineTo(x,J),c.lineTo(x,J+l),c.lineTo(t,J+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,J+l),c.lineTo(0,J+l),c.lineTo(0,J),c.lineTo(t,J),c.close());c.end()};mxCellRenderer.registerShape("module",La);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 J=.3*r-l/2,z=.7*r-l/2;v?(c.moveTo(t,J),c.lineTo(x,J),c.lineTo(x,J+l),c.lineTo(t,J+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,J+l),c.lineTo(0,J+l),c.lineTo(0,J),c.lineTo(t,J),c.close());c.end()};mxCellRenderer.registerShape("component",+Qa);mxUtils.extend(Ja,mxRectangleShape);Ja.prototype.paintForeground=function(c,l,t,n,r){var v=n/2,x=r/2,J=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,J,!0);c.stroke();mxRectangleShape.prototype.paintForeground.apply(this,arguments)};mxCellRenderer.registerShape("associativeEntity",Ja);mxUtils.extend(Ia,mxDoubleEllipse);Ia.prototype.outerStroke=!0;Ia.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",Ia);mxUtils.extend(ra,Ia);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,@@ -3407,14 +3408,14 @@ function(){return!0};Za.prototype.redrawPath=function(c,l,t,n,r){var v=r*Math.mav)],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(C,mxActor);C.prototype.size=20;C.prototype.isRoundable=function(){return!0};C.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",C);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(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);+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);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(ea,mxEllipse);ea.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",ea);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(xa,mxEllipse);xa.prototype.drawHidden=!0;xa.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)}};+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",ea);mxUtils.extend(ka,mxEllipse);ka.prototype.paintVertexShape=function(c,l,t,n,r){var v=c.state.strokeWidth/2,x=10+2*v,J=t+r-x/2;c.begin();c.moveTo(l,t);c.lineTo(l,t+r);c.moveTo(l+v,J);c.lineTo(l+v+x,J-x/2);c.moveTo(l+v,J);c.lineTo(l+v+x,J+x/2);c.moveTo(l+v,J);c.lineTo(l+n-v,J);c.moveTo(l+n,t);c.lineTo(l+n,t+r);c.moveTo(l+n-v,J);c.lineTo(l+n-x-v,J-x/2);c.moveTo(l+n-v,J);c.lineTo(l++n-x-v,J+x/2);c.end();c.stroke()};mxCellRenderer.registerShape("dimension",ka);mxUtils.extend(xa,mxEllipse);xa.prototype.drawHidden=!0;xa.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 J="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||J||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||J?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",xa);mxUtils.extend(Ka,mxEllipse);Ka.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",Ka);mxUtils.extend(Ha,mxActor);Ha.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",Ha);mxUtils.extend(ya,mxActor);ya.prototype.size=.2;ya.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",ya);mxUtils.extend(Fa,mxActor);Fa.prototype.size=.25;Fa.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",Fa);mxUtils.extend(va,mxActor);va.prototype.cst={RECT2:"mxgraph.basic.rect"};@@ -3423,104 +3424,104 @@ type:"enum",defVal:"single",enumList:[{val:"single",dispName:"Single"},{val:"doudispName:"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"}]}];va.prototype.paintVertexShape=function(c,l,t,n,r){c.translate(l,t);this.strictDrawShape(c,0,0,n,r)};va.prototype.strictDrawShape=-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)))),Ga=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),wa=v&&v.topLeftStyle?v.topLeftStyle:+function(c,l,t,n,r,v){var x=v&&v.rectStyle?v.rectStyle:mxUtils.getValue(this.style,"rectStyle",this.rectStyle),J=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)))),Ga=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)),na=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),wa=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=va.prototype;c.setDashed(Ga);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,wa,z,pa):c.moveTo(0,0),oa&&v.paintNW(c,l,t,n,r,x,wa,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,wa,z,oa),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Ga=I=Fb,"none"==zb&&(I=0),"none"==Bb&&(Ga=0),c.setGradient(zb,Bb,0,0,n,r,Eb,I,Ga),c.begin(),oa?v.moveNWInner(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),oa&&pa&&v.paintNWInner(c,l,t,n,r,x,wa,z,U),c.fill(),"none"==Cb&&(c.begin(),v.paintFolds(c,l,t,n,r,x,wa,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,wa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.lineNWInner(c,l,t,n,r,x,wa,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,wa,z,qa),v.paintLeft(c,-l,t,n,r,x,wa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,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,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,oa),v.lineNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.lineNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,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,wa,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,wa,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,wa,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,wa,z,oa),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,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,wa,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,wa,z,oa),v.paintNW(c,-l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,oa),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,oa),c.close(),c.fillAndStroke()):oa&&sa&&qa&&pa&&("frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintNW(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,pa),v.paintNW(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,oa),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,oa)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,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,wa,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,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,oa),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,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,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,oa),v.lineNWInner(c,l,t,n,r,x,wa,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,wa,Ba,Ca,Ea,z,oa,sa,qa,pa);c.stroke()};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.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)};va.prototype.paintFolds=function(c,l,t,n,r,v,x,I,z,da,U,Ga,Ua,Pa,oa){if("fold"==v||"fold"==x||"fold"==I||"fold"==z||"fold"==da)("fold"==x||"default"==x&&"fold"==v)&&Ga&&oa&&(c.moveTo(0,U),c.lineTo(U,U),c.lineTo(U,0)),("fold"==I||"default"==I&&"fold"==v)&&Ga&&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(va.prototype.cst.RECT2,va);va.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),+c.setDashPattern(Ua);c.setStrokeWidth(Db);z=Math.min(.5*r,.5*n,z);J||(z=Gb*Math.min(n,r)/100);z=Math.min(z,.5*Math.min(n,r));J||(U=Math.min(Pa*Math.min(n,r)/100));U=Math.min(U,.5*Math.min(n,r)-z);(na||sa||qa||pa)&&"frame"!=da&&(c.begin(),na?v.moveNW(c,l,t,n,r,x,wa,z,pa):c.moveTo(0,0),na&&v.paintNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),sa&&v.paintNE(c,l,t,n,r,x,Ba,z,na),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,wa,z,na),c.close(),c.fill(),c.setShadow(!1),c.setFillColor(zb),Ga=J=Fb,"none"==zb&&(J=0),"none"==Bb&&(Ga=0),c.setGradient(zb,Bb,0,0,n,r,Eb,J,Ga),c.begin(),na?v.moveNWInner(c,l,t,n,r,x,wa,z,U,na,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,na,sa),sa&&na&&v.paintNEInner(c,+l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),na&&pa&&v.paintNWInner(c,l,t,n,r,x,wa,z,U),c.fill(),"none"==Cb&&(c.begin(),v.paintFolds(c,l,t,n,r,x,wa,Ba,Ca,Ea,z,na,sa,qa,pa),c.stroke()));na||sa||qa||!pa?na||sa||!qa||pa?!na&&!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,wa,z,na),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,z,U,na,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,wa,z,na),v.lineNWInner(c,l,t,n,r,x,wa,z,U,na,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()):na||!sa||qa||pa?!na&&sa&&!qa&&pa?"frame"!=da?(c.begin(),v.moveSW(c,l,t,n,r,x,wa,z,qa),v.paintLeft(c,+l,t,n,r,x,wa,z,na),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,z,U,na,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,na),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,na,sa)),c.stroke()):(c.begin(),v.moveSW(c,l,t,n,r,x,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,na),v.lineNWInner(c,l,t,n,r,x,wa,z,U,na,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,na),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,na,sa),c.close(),c.fillAndStroke()):!na&&sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,na,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),c.close(),c.fillAndStroke()):!na&&sa&&qa&&pa?"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,wa,z,na),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,z,U,na,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,na,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,wa,z,na),v.lineNWInner(c,l,t,n,r,x,wa,z,U,na,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,na,sa),c.close(),c.fillAndStroke()):!na||sa||qa||pa?na&&!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,wa,z,na),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,na),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):+na&&!sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na)),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,wa,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,wa,z,U,pa,na),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()):na&&!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,wa,z,na),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,na),v.paintNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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()):na&&sa&&!qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,+x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),c.close(),c.fillAndStroke()):na&&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,wa,z,na),v.paintNW(c,+l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,na),v.paintNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,+n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,z,U),v.paintLeftInner(c,l,t,n,r,x,Ea,z,U,qa,pa),c.close(),c.fillAndStroke()):na&&sa&&qa&&!pa?"frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),c.close(),c.fillAndStroke()):na&&sa&&qa&&pa&&("frame"!=da?(c.begin(),v.moveNW(c,l,t,n,r,x,wa,z,pa),v.paintNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,wa,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,z,pa),v.paintNW(c,l,t,n,r,x,wa,z,pa),v.paintTop(c,l,t,n,r,x,Ba,z,sa),v.paintNE(c,l,t,n,r,x,Ba,z,na),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,wa,z,na),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,na,sa),v.paintNEInner(c,l,t,n,r,x,Ba,z,U),v.paintTopInner(c,l,t,n,r,x,wa,z,U,pa,na),v.paintNWInner(c,l,t,n,r,x,wa,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,wa,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,wa,z,U,pa,na)),c.stroke()):(c.begin(),v.moveNW(c,l,t,n,r,x,wa,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,wa,z,U,pa,na),c.close(),c.fillAndStroke()):"frame"!=da?(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,na,sa)),c.stroke()):(c.begin(),v.moveNE(c,l,t,n,r,x,Ba,z,na),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,na,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,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,na),"double"==da&&(v.moveNWInner(c,l,t,n,r,x,wa,z,U,na,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,wa,z,qa),v.paintLeft(c,l,t,n,r,x,wa,z,na),v.lineNWInner(c,l,t,n,r,x,wa,z,U,na,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,wa,Ba,Ca,Ea,z,na,sa,qa,pa);c.stroke()};va.prototype.moveNW=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(0,0):c.moveTo(0,J)};va.prototype.moveNE=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==+v||!z?c.moveTo(n,0):c.moveTo(n-J,0)};va.prototype.moveSE=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(n,r):c.moveTo(n,r-J)};va.prototype.moveSW=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.moveTo(0,r):c.moveTo(J,r)};va.prototype.paintNW=function(c,l,t,n,r,v,x,J,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(J,J,0,0,l,J,0)}else("snip"==+x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(J,0);else c.lineTo(0,0)};va.prototype.paintTop=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(n,0):c.lineTo(n-J,0)};va.prototype.paintNE=function(c,l,t,n,r,v,x,J,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(J,J,0,0,l,n,J)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==+x&&"fold"==v)&&c.lineTo(n,J);else c.lineTo(n,0)};va.prototype.paintRight=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(n,r):c.lineTo(n,r-J)};va.prototype.paintLeft=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(0,0):c.lineTo(0,J)};va.prototype.paintSE=function(c,l,t,n,r,v,x,J,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(J,+J,0,0,l,n-J,r)}else("snip"==x||"default"==x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-J,r);else c.lineTo(n,r)};va.prototype.paintBottom=function(c,l,t,n,r,v,x,J,z){"square"==x||"default"==x&&"square"==v||!z?c.lineTo(0,r):c.lineTo(J,r)};va.prototype.paintSW=function(c,l,t,n,r,v,x,J,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(J,J,0,0,l,0,r-J)}else("snip"==x||"default"==+x&&"snip"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(0,r-J);else c.lineTo(0,r)};va.prototype.paintNWInner=function(c,l,t,n,r,v,x,J,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*z,J-.5*z,0,0,0,z,.5*z+J);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+z,J+z,0,0,1,z,z+J);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(z,.5*z+J);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(z+J,z+J),c.lineTo(z,z+J)};va.prototype.paintTopInner=function(c,l,t,n,r,v,x,J,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(J+.5*z,z):c.lineTo(J+z,z):c.lineTo(0,z):c.lineTo(0,0)};va.prototype.paintNEInner=function(c,l,t,n,r,v,x,J,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*z,J-.5*z,0,0,0,n-J-.5*z,z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+z,J+z,0,0,1,n-J-z,z);else if("snip"==x||"default"==x&&"snip"==+v)c.lineTo(n-J-.5*z,z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-J-z,J+z),c.lineTo(n-J-z,z)};va.prototype.paintRightInner=function(c,l,t,n,r,v,x,J,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,J+.5*z):c.lineTo(n-z,J+z):c.lineTo(n-z,0):c.lineTo(n,0)};va.prototype.paintLeftInner=function(c,l,t,n,r,v,x,J,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-J-.5*z):c.lineTo(z,r-J-z):c.lineTo(z,r):c.lineTo(0,r)};va.prototype.paintSEInner=function(c,l,t,n,r,v,x,J,z){if("rounded"==x||"default"==x&&"rounded"==v)c.arcTo(J-.5*z,J-.5*z,0,0,0,n-z,r-J-.5*z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+z,J+z,0,0,1,n-z,r-J-z);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(n-+z,r-J-.5*z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(n-J-z,r-J-z),c.lineTo(n-z,r-J-z)};va.prototype.paintBottomInner=function(c,l,t,n,r,v,x,J,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-J-.5*z,r-z):c.lineTo(n-J-z,r-z):c.lineTo(n,r)};va.prototype.paintSWInner=function(c,l,t,n,r,v,x,J,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(J-.5*z,J-.5*z,0,0,0,J+.5*z,r-z);else if("invRound"==x||"default"==x&&"invRound"==v)c.arcTo(J+z,J+z,0,0,1,J+z,r-z);else if("snip"==x||"default"==x&&"snip"==v)c.lineTo(J+.5*z,r-z);else if("fold"==x||"default"==x&&"fold"==v)c.lineTo(z+J,r-J-z),c.lineTo(z+J,r-z)};va.prototype.moveSWInner=function(c,l,t,n,r,v,x,J,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-J-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(z,r-J-z):c.moveTo(0,r-z)};va.prototype.lineSWInner=function(c,l,t,n,r,v,x,J,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-J-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(z,r-J-z):+c.lineTo(0,r-z)};va.prototype.moveSEInner=function(c,l,t,n,r,v,x,J,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-J-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-z,r-J-z):c.moveTo(n-z,r)};va.prototype.lineSEInner=function(c,l,t,n,r,v,x,J,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-J-.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-z,r-J-z):c.lineTo(n-z,r)};va.prototype.moveNEInner=function(c,l,t,n,r,v,x,J,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,J+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(n-z,J+z):c.moveTo(n,+z)};va.prototype.lineNEInner=function(c,l,t,n,r,v,x,J,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,J+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.lineTo(n-z,J+z):c.lineTo(n,z)};va.prototype.moveNWInner=function(c,l,t,n,r,v,x,J,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,J+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==x||"default"==x&&"fold"==v)&&c.moveTo(z,J+z):c.moveTo(0,0)};va.prototype.lineNWInner=function(c,l,t,n,r,v,x,J,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,J+.5*z):("invRound"==x||"default"==x&&"invRound"==v||"fold"==+x||"default"==x&&"fold"==v)&&c.lineTo(z,J+z):c.lineTo(0,0)};va.prototype.paintFolds=function(c,l,t,n,r,v,x,J,z,da,U,Ga,Ua,Pa,na){if("fold"==v||"fold"==x||"fold"==J||"fold"==z||"fold"==da)("fold"==x||"default"==x&&"fold"==v)&&Ga&&na&&(c.moveTo(0,U),c.lineTo(U,U),c.lineTo(U,0)),("fold"==J||"default"==J&&"fold"==v)&&Ga&&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&&na&&(c.moveTo(0,r-U),c.lineTo(U,r-U),c.lineTo(U,r))};mxCellRenderer.registerShape(va.prototype.cst.RECT2,va);va.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,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),Ga=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Ga/2,n.y-Ga/2+U/2);c.lineTo(n.x+Ga/2-3*U/2,n.y-3*Ga/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),Ga=v*(x+z+1),Ua=n.x+U/2,Pa=n.y+Ga/2;n.x-=U;n.y-=Ga;return function(){c.begin();c.moveTo(Ua-U/2-Ga/2,Pa-Ga/2+U/2);c.lineTo(Ua-U/2+Ga/2,Pa-Ga/2-U/2);c.lineTo(Ua+Ga/2-3*U/2,Pa-3*Ga/2-U/2);c.lineTo(Ua-Ga/2-3*U/2,Pa-3*Ga/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),Ga=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Ga/2,n.y-Ga/2+U/-2);c.lineTo(n.x+Ga/2-3*U/2,n.y-3*Ga/2-U/2);c.moveTo(n.x-U/2+Ga/2,n.y-Ga/2-U/2);c.lineTo(n.x-Ga/2-3*U/2,n.y-3*Ga/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(),Ga=Ra.apply(this,arguments),Ua=r*(x+2*z),Pa=v*(x+2*z);return function(){Ga.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),Ga=v*(x+z+1),Ua=n.clone();n.x-=U;n.y-=Ga;return function(){c.begin();c.moveTo(Ua.x-Ga,Ua.y+U);c.quadTo(n.x-Ga,n.y+U,n.x,n.y);c.quadTo(n.x+Ga,n.y-U,Ua.x+Ga,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 Ga=r.clone();return function(){l.begin();l.moveTo(Ga.x,Ga.y);z?l.lineTo(Ga.x-v-x/c,Ga.y-x+v/c):l.lineTo(Ga.x+x/c-v,Ga.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 Na(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,Ga=Math.sqrt(I*I+U*U);da=n.call(this,Ga,I/Ga,U/Ga,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,Ga=t?z[0]:z[da];z=t?z[1]:z[da-1];da=z.x-Ga.x;var Ua=z.y-Ga.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,Ga,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[Na(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[Na(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=[Na(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=[Na(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=[Na(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 Na(c,+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,J,z,da){var U=r*(x+z+1),Ga=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Ga/2,n.y-Ga/2+U/2);c.lineTo(n.x+Ga/2-3*U/2,n.y-3*Ga/2-U/2);+c.stroke()}});mxMarker.addMarker("box",function(c,l,t,n,r,v,x,J,z,da){var U=r*(x+z+1),Ga=v*(x+z+1),Ua=n.x+U/2,Pa=n.y+Ga/2;n.x-=U;n.y-=Ga;return function(){c.begin();c.moveTo(Ua-U/2-Ga/2,Pa-Ga/2+U/2);c.lineTo(Ua-U/2+Ga/2,Pa-Ga/2-U/2);c.lineTo(Ua+Ga/2-3*U/2,Pa-3*Ga/2-U/2);c.lineTo(Ua-Ga/2-3*U/2,Pa-3*Ga/2+U/2);c.close();da?c.fillAndStroke():c.stroke()}});mxMarker.addMarker("cross",function(c,l,t,n,r,v,x,J,z,da){var U=r*(x+z+1),Ga=v*(x+z+1);return function(){c.begin();c.moveTo(n.x-U/2-Ga/2,n.y-Ga/2+U/+2);c.lineTo(n.x+Ga/2-3*U/2,n.y-3*Ga/2-U/2);c.moveTo(n.x-U/2+Ga/2,n.y-Ga/2-U/2);c.lineTo(n.x-Ga/2-3*U/2,n.y-3*Ga/2+U/2);c.stroke()}});mxMarker.addMarker("circle",Ra);mxMarker.addMarker("circlePlus",function(c,l,t,n,r,v,x,J,z,da){var U=n.clone(),Ga=Ra.apply(this,arguments),Ua=r*(x+2*z),Pa=v*(x+2*z);return function(){Ga.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,J,z,da){var U=r*(x+z+1),Ga=v*(x+z+1),Ua=n.clone();n.x-=U;n.y-=Ga;return function(){c.begin();c.moveTo(Ua.x-Ga,Ua.y+U);c.quadTo(n.x-Ga,n.y+U,n.x,n.y);c.quadTo(n.x+Ga,n.y-U,Ua.x+Ga,Ua.y-U);c.stroke()}});mxMarker.addMarker("async",function(c,l,t,n,r,v,x,J,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);J?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,J,z,da,U){v*=J+da;x*=J+da;var Ga=r.clone();return function(){l.begin();l.moveTo(Ga.x,Ga.y);z?l.lineTo(Ga.x-v-x/c,Ga.y-x+v/c):l.lineTo(Ga.x+x/c-v,Ga.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,J){J=c.shape.getEdgeWidth()*c.view.scale+t;return new mxPoint(x.x++r*n/4+v*J/2,x.y+v*n/4-r*J/2)},function(n,r,v,x,J,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,z.x,z.y));c.style.width=Math.round(2*n)/c.view.scale-t})},nb=function(c,l,t,n,r){return Ma(c,l,function(v){var x=c.absolutePoints;if(null!=x&&0<x.length){var J=x.length-1;v=c.view.translate;var z=c.view.scale,da=t?x[0]:x[J];x=t?x[1]:x[J-1];J=x.x-da.x;var U=x.y-da.y,Ga=Math.sqrt(J*J+U*U);da=n.call(this,Ga,J/Ga,U/Ga,da,x);return new mxPoint(da.x/z-v.x,da.y/z-v.y)}return null},function(v,x,J){var z=c.absolutePoints,+da=z.length-1;v=c.view.translate;var U=c.view.scale,Ga=t?z[0]:z[da];z=t?z[1]:z[da-1];da=z.x-Ga.x;var Ua=z.y-Ga.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,Ga,z,x,J)})},cb=function(c,l){return function(t){return[nb(t,["startWidth"],!0,function(n,r,v,x,J){J=mxUtils.getNumber(t.style,"startWidth",c)*t.view.scale+l;return new mxPoint(x.x+r*n/4+v*J/2,x.y+v*n/4-r*J/2)},function(n,r,v,x,J,z){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.y,z.x,z.y));t.style.startWidth=+Math.round(2*n)/t.view.scale-l})]}},vb=function(c){return function(l){return[Ma(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[Ma(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=[Ma(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=[Ma(v,["size"],function(J){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(J.x+Math.max(0,Math.min(.5*J.width,+da*(z?1:J.width))),J.getCenterY())},function(J,z,da){J=null!=r&&"0"!=mxUtils.getValue(this.state.style,"fixedSize","0")?z.x-J.x:Math.max(0,Math.min(t,(z.x-J.x)/J.width));this.state.style.size=J},!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=[Ma(n,["size"],function(v){var x=null!=t?"0"!=mxUtils.getValue(this.state.style,"fixedSize","0"):null,J=Math.max(0,parseFloat(mxUtils.getValue(this.state.style,+"size",x?t:l)));return new mxPoint(v.x+Math.min(.75*v.width*c,J*(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 Ma(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))))})},Na=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),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))))})},Ma=function(c,l,t,n,r,v,x){var J=new mxHandle(c,null,mxVertexHandler.prototype.secondaryHandleImage);J.execute=function(da){for(var U=0;U<l.length;U++)this.copyStyle(l[U]);+x&&x(da)};J.getPosition=t;J.setPosition=n;J.ignoreGrid=null!=r?r:!0;if(v){var z=J.positionChanged;J.positionChanged=function(){z.apply(this,arguments);c.view.invalidate(this.state.cell);c.view.validate()}}return J},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,J){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,J,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.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,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]=+mxConstants.STYLE_ENDSIZE],!0,function(n,r,v,x,J){n=(c.shape.getStartArrowWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x+r*(J+c.shape.strokewidth*c.view.scale)+v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)-r*n/2)},function(n,r,v,x,J,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.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,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]),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,J){n=(c.shape.getEdgeWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x++r*(J+c.shape.strokewidth*c.view.scale)-v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,J,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.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,J){n=(c.shape.getEndArrowWidth()-c.shape.strokewidth)*c.view.scale;J=3*mxUtils.getNumber(c.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*c.view.scale;return new mxPoint(x.x++r*(J+c.shape.strokewidth*c.view.scale)-v*n/2,x.y+v*(J+c.shape.strokewidth*c.view.scale)+r*n/2)},function(n,r,v,x,J,z,da){n=Math.sqrt(mxUtils.ptSegDistSq(x.x,x.y,J.x,J.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(Na(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 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[Na(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[Na(c,+parseFloat(mxUtils.getValue(c.style,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE));l.push(ib(c,t/2))}l.push(Ma(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 v=r.model.getParent(c.cell);v=r.model.getChildCells(v,!0);for(var x=[],J=0;J<v.length;J++)v[J]!=c.cell&&r.isSwimlane(v[J])&&r.getSwimlaneDirection(r.getCurrentCellStyle(v[J]))==+n&&x.push(v[J]);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[Ma(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[Ma(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=[Na(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[Na(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",ya.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[Na(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[Na(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=[Na(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[Na(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=-[Na(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),Na(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),Na(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,+!1)]},process:function(c){var l=[Ma(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[Ma(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",ya.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[Ma(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[Ma(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=[Ma(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[Ma(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=+[Ma(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),Ma(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),Ma(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))),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=-[Na(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[Na(c,-["jettyWidth","jettyHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"jettyWidth",Ma.prototype.jettyWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"jettyHeight",Ma.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[Na(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[Na(c,["dx","dy"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,+[Ma(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[Ma(c,+["jettyWidth","jettyHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"jettyWidth",La.prototype.jettyWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"jettyHeight",La.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[Ma(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[Ma(c,["dx","dy"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"dx",eb.prototype.dx))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"dy",eb.prototype.dy)));return new mxPoint(l.x+(l.width+t)/2,l.y+n)},function(l,t){this.state.style.dx=Math.round(Math.max(0,2*Math.min(l.width/2,t.x-l.x-l.width/2)));this.state.style.dy=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},singleArrow:vb(1),doubleArrow:vb(.5),"mxgraph.arrows2.wedgeArrow":cb(20,20),"mxgraph.arrows2.wedgeArrowDashed":cb(20,20),"mxgraph.arrows2.wedgeArrowDashed2":cb(20,20),-folder:function(c){return[Na(c,["tabWidth","tabHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"tabWidth",E.prototype.tabWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"tabHeight",E.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",E.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(t=l.width-t);return new mxPoint(l.x+t,l.y+n)},function(l,t){var n=Math.max(0,Math.min(l.width,t.x-l.x));mxUtils.getValue(this.state.style,-"tabPosition",E.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(n=l.width-n);this.state.style.tabWidth=Math.round(n);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},document:function(c){return[Na(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",Q.prototype.size))));return new mxPoint(l.x+3*l.width/4,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)]},tape:function(c){return[Na(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[Na(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(B.prototype.size),offPageConnector:function(c){return[Na(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=+folder:function(c){return[Ma(c,["tabWidth","tabHeight"],function(l){var t=Math.max(0,Math.min(l.width,mxUtils.getValue(this.state.style,"tabWidth",D.prototype.tabWidth))),n=Math.max(0,Math.min(l.height,mxUtils.getValue(this.state.style,"tabHeight",D.prototype.tabHeight)));mxUtils.getValue(this.state.style,"tabPosition",D.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(t=l.width-t);return new mxPoint(l.x+t,l.y+n)},function(l,t){var n=Math.max(0,Math.min(l.width,t.x-l.x));mxUtils.getValue(this.state.style,+"tabPosition",D.prototype.tabPosition)==mxConstants.ALIGN_RIGHT&&(n=l.width-n);this.state.style.tabWidth=Math.round(n);this.state.style.tabHeight=Math.round(Math.max(0,Math.min(l.height,t.y-l.y)))},!1)]},document:function(c){return[Ma(c,["size"],function(l){var t=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"size",N.prototype.size))));return new mxPoint(l.x+3*l.width/4,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)]},tape:function(c){return[Ma(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[Ma(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[Ma(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(fa.prototype.size,!0,null,!0,fa.prototype.fixedSize),hexagon:sb(la.prototype.size,!0,.5,!0,la.prototype.fixedSize),curlyBracket:sb(X.prototype.size,!1),display:sb(Fa.prototype.size,!1),cube:yb(1,e.prototype.size,!1),card:yb(.5,J.prototype.size,!0),loopLimit:yb(.5,C.prototype.size,!0),trapezoid:qb(.5,W.prototype.size,W.prototype.fixedSize),parallelogram:qb(1,K.prototype.size,-K.prototype.fixedSize)};Graph.createHandle=Na;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(fa.prototype.size,!0,null,!0,fa.prototype.fixedSize),hexagon:sb(la.prototype.size,!0,.5,!0,la.prototype.fixedSize),curlyBracket:sb(X.prototype.size,!1),display:sb(Fa.prototype.size,!1),cube:yb(1,e.prototype.size,!1),card:yb(.5,I.prototype.size,!0),loopLimit:yb(.5,B.prototype.size,!0),trapezoid:qb(.5,V.prototype.size,V.prototype.fixedSize),parallelogram:qb(1,L.prototype.size,+L.prototype.fixedSize)};Graph.createHandle=Ma;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 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,Ga=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=(Ga*oa-U*pa)/(z*Ga-da*U);oa=(da*oa-z*pa)/(da*U-z*Ga);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+Ga*oa)):(qa&&(Pa=new mxPoint(Pa.x+U*oa,Pa.y+Ga*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",+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,J=x[0];x=x[x.length-1];null!=n&&(n=v.transformControlPoint(c,n));null==J&&null!=l&&(J=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,Ga=hb.y,Ua="horizontal"==+mxUtils.getValue(c.style,"elbow","horizontal");if(null!=x&&null!=J){c=function(na,sa,qa){na-=Pa.x;var pa=sa-Pa.y;sa=(Ga*na-U*pa)/(z*Ga-da*U);na=(da*na-z*pa)/(da*U-z*Ga);Ua?(qa&&(Pa=new mxPoint(Pa.x+z*sa,Pa.y+da*sa),r.push(Pa)),Pa=new mxPoint(Pa.x+U*na,Pa.y+Ga*na)):(qa&&(Pa=new mxPoint(Pa.x+U*na,Pa.y+Ga*na),r.push(Pa)),Pa=new mxPoint(Pa.x+z*sa,Pa.y+da*sa));r.push(Pa)};var Pa=J;null==n&&(n=new mxPoint(J.x+(x.x-J.x)/2,J.y+(x.y-J.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*Math.tan(n),.5*t);c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));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,t-n));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,@@ -3529,34 +3530,34 @@ Math.tan(n),.5*t);c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.pust-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-n)));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};mxRectangleShape.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0)];mxEllipse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5))];xa.prototype.constraints=mxRectangleShape.prototype.constraints;mxImageShape.prototype.constraints=mxRectangleShape.prototype.constraints;mxSwimlane.prototype.constraints=-mxRectangleShape.prototype.constraints;O.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;k.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,+mxRectangleShape.prototype.constraints;P.prototype.constraints=mxRectangleShape.prototype.constraints;mxLabel.prototype.constraints=mxRectangleShape.prototype.constraints;k.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-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-.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,-0),!1));return c};J.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,+0),!1));return c};I.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l+n),0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,n,0));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));l>=2*n&&c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));return c};e.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size)))));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*(l-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-.5*n,.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,l,.5*(t+n)));c.push(new mxConnectionConstraint(new mxPoint(1,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,n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-n)));return c};B.prototype.getConstraints=function(c,l,t){c=[];l=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,+0),!1,null,n,t));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.5*n,t-.5*n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-n));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(t-n)));return c};C.prototype.getConstraints=function(c,l,t){c=[];l=Math.max(0,Math.min(t,parseFloat(mxUtils.getValue(this.style,"size",this.size))));c.push(new mxConnectionConstraint(new mxPoint(.5,0),!1));c.push(new mxConnectionConstraint(new mxPoint(0,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(.5,1),!1));c.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,l));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,l));c.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,0,-l));c.push(new mxConnectionConstraint(new mxPoint(0,1),!1,null,0,-l));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,l+.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,l+.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(1,-0),!1,null,0,t-l-.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-l-.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(.145,0),!1,null,0,.29*l));c.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*l));c.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-l));c.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-l));return c};E.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(this.style,+0),!1,null,0,t-l-.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,t-l-.5*(.5*t-l)));c.push(new mxConnectionConstraint(new mxPoint(.145,0),!1,null,0,.29*l));c.push(new mxConnectionConstraint(new mxPoint(.855,0),!1,null,0,.29*l));c.push(new mxConnectionConstraint(new mxPoint(.855,1),!1,null,0,.29*-l));c.push(new mxConnectionConstraint(new mxPoint(.145,1),!1,null,0,.29*-l));return c};D.prototype.getConstraints=function(c,l,t){c=[];var n=Math.max(0,Math.min(l,parseFloat(mxUtils.getValue(this.style,"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;L.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;Z.prototype.constraints=mxEllipse.prototype.constraints;Ka.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;K.prototype.constraints=mxEllipse.prototype.constraints;R.prototype.constraints=mxEllipse.prototype.constraints;Z.prototype.constraints=mxEllipse.prototype.constraints;Ka.prototype.constraints=mxEllipse.prototype.constraints;Wa.prototype.constraints=mxRectangleShape.prototype.constraints;Ha.prototype.constraints=mxRectangleShape.prototype.constraints;Fa.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};Ma.prototype.getConstraints=function(c,l,t){l=parseFloat(mxUtils.getValue(c,"jettyWidth",Ma.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,-"jettyHeight",Ma.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,+.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};La.prototype.getConstraints=function(c,l,t){l=parseFloat(mxUtils.getValue(c,"jettyWidth",La.prototype.jettyWidth))/2;c=parseFloat(mxUtils.getValue(c,+"jettyHeight",La.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,l),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(t-.5*c,1.5*c)),new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,Math.min(t-.5*c,3.5*c))];t>5*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.75),!1,null,l));t>8*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,l));t>-15*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,l));return n};C.prototype.constraints=mxRectangleShape.prototype.constraints;F.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,+15*c&&n.push(new mxConnectionConstraint(new mxPoint(0,.25),!1,null,l));return n};B.prototype.constraints=mxRectangleShape.prototype.constraints;F.prototype.constraints=mxRectangleShape.prototype.constraints;mxCylinder.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,.05),!1),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.85,.05),!1),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.3),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.7),!0),new mxConnectionConstraint(new mxPoint(.15,.95),!1),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.85,.95),!1)];ha.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.1),!1),new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.75,.1),!1),new mxConnectionConstraint(new mxPoint(0,1/3),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(1,1/3),!1),new mxConnectionConstraint(new mxPoint(1,1),!1),new mxConnectionConstraint(new mxPoint(.5,.5),!1)];Qa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.3),!0),new mxConnectionConstraint(new mxPoint(0,.7),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];mxActor.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.25,.2),!1),new mxConnectionConstraint(new mxPoint(.1,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.75,-.25),!1),new mxConnectionConstraint(new mxPoint(.9,.5),!1),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];D.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(.5,.25),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,+.25),!1),new mxConnectionConstraint(new mxPoint(.9,.5),!1),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];E.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!1),new mxConnectionConstraint(new mxPoint(.5,.25),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(.5,.75),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];M.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.35),!1),new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(0,.65),!1),new mxConnectionConstraint(new mxPoint(1,.35),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1),new mxConnectionConstraint(new mxPoint(1,.65),!1),new mxConnectionConstraint(new mxPoint(.25,1),!1),new mxConnectionConstraint(new mxPoint(.75,0),!1)];fa.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,-.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxLine.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];La.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.5,+.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)];mxLine.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];Na.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.5,1),!1)];mxDoubleEllipse.prototype.constraints=mxEllipse.prototype.constraints;mxRhombus.prototype.constraints=mxEllipse.prototype.constraints;mxTriangle.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0)];mxHexagon.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.375,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.625,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.375,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.625,1),!0)];mxCloud.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.25),!1),new mxConnectionConstraint(new mxPoint(.4,.1),!1),new mxConnectionConstraint(new mxPoint(.16,.55),!1),new mxConnectionConstraint(new mxPoint(.07,.4),!1),new mxConnectionConstraint(new mxPoint(.31,.8),!1),new mxConnectionConstraint(new mxPoint(.13,.77),!1),new mxConnectionConstraint(new mxPoint(.8,.8),!1),new mxConnectionConstraint(new mxPoint(.55,-.95),!1),new mxConnectionConstraint(new mxPoint(.875,.5),!1),new mxConnectionConstraint(new mxPoint(.96,.7),!1),new mxConnectionConstraint(new mxPoint(.625,.2),!1),new mxConnectionConstraint(new mxPoint(.88,.25),!1)];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,+.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;V.prototype.constraints=mxRectangleShape.prototype.constraints;N.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,@@ -3572,17 +3573,17 @@ function(c,l,t){c=[];var n=Math.min(t,l),r=Math.max(0,Math.min(n,n*parseFloat(mx0),!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)];za.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!1),new mxConnectionConstraint(new mxPoint(1,.5),!1)];Aa.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(),u=0;u<k.length;u++)d.cellLabelChanged(k[u],"")}finally{d.getModel().endUpdate()}}}function f(k,u,w,y,B){B.getModel().beginUpdate();try{var D=B.getCellGeometry(k);null!=D&&w&&y&&(w/=y,D=D.clone(),1<w?D.height=D.width/w:D.width=D.height*w,B.getModel().setGeometry(k,-D));B.setCellStyles(mxConstants.STYLE_CLIP_PATH,u,[k]);B.setCellStyles(mxConstants.STYLE_ASPECT,"fixed",[k])}finally{B.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,B=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&&B==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()?+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 E=C.getCellGeometry(k);null!=E&&w&&y&&(w/=y,E=E.clone(),1<w?E.height=E.width/w:E.width=E.height*w,C.getModel().setGeometry(k,+E));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(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 B=d.getEditableCells(d.getSelectionCells());if(0==B.length)w(y.getRoot(),e.copiedValue);else for(u=0;u<B.length;u++)w(B[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)||+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(E,D){var G=y.getValue(E);D=E.cloneValue(D);D.removeAttribute("placeholders");null==G||isNaN(G.nodeType)||D.setAttribute("placeholders",G.getAttribute("placeholders"));null!=k&&mxEvent.isShiftDown(k)||+D.setAttribute("label",d.convertValueToString(E));y.setValue(E,D)}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,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()},@@ -3593,14 +3594,14 @@ null,null,Editor.ctrlKey+"+"+Editor.shiftKey+"+F");this.addAction("toBack",functd.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,B){d.getModel().beginUpdate();try{d.setLinkForCell(k,-0<w.length?w:null),d.setAttributeForCell(k,"linkTarget",B)}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,u,w){k=mxUtils.trim(k);if(0<k.length){var y=null,B=d.getLinkTitle(k);null!=u&&0<u.length&&(y=u[0].iconUrl,B=u[0].name||u[0].type,B=B.charAt(0).toUpperCase()+B.substring(1),30<B.length&&(B=B.substring(0,30)+"..."));u=new mxCell(B,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],+":",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,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"),B=0;B<y.length&&null==u;B++)y[B].textContent==k.textContent&&(u=y[B]);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():+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 E=d.cellEditor.saveSelection();e.showLinkDialog(w,mxResources.get("ok"),mxUtils.bind(this,function(D){d.cellEditor.restoreSelection(E);null!=D&&d.insertLink(D)}))}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 B=mxUtils.htmlEntities(d.convertValueToString(state.cell),!1);"0"!=-mxUtils.getValue(state.style,"nl2Br","1")&&(B=B.replace(/\n/g,"<br/>"));d.cellLabelChanged(state.cell,Graph.sanitizeHtml(B));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,+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()),@@ -3611,8 +3612,8 @@ e.fireEvent(new mxEventObject("tooltipsEnabledChanged"))});m.setToggleAction(!0)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,u,w,y){return this.addAction(k,function(){if(null!=w&&d.cellEditor.isContentEditing())w();else{d.stopEditing(!1);d.getModel().beginUpdate();try{var B=d.getEditableCells(d.getSelectionCells());d.toggleCellStyleFlags(mxConstants.STYLE_FONTSTYLE,u,B);(u&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD?d.updateLabelElements(B,function(E){E.style.fontWeight=null;"B"==E.nodeName&&d.replaceElement(E)}):(u&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(B,-function(E){E.style.fontStyle=null;"I"==E.nodeName&&d.replaceElement(E)}):(u&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(B,function(E){E.style.textDecoration=null;"U"==E.nodeName&&d.replaceElement(E)});for(var D=0;D<B.length;D++)0==d.model.getChildCount(B[D])&&d.autoSizeCell(B[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(D){D.style.fontWeight=null;"B"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC?d.updateLabelElements(C,+function(D){D.style.fontStyle=null;"I"==D.nodeName&&d.replaceElement(D)}):(u&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&d.updateLabelElements(C,function(D){D.style.textDecoration=null;"U"==D.nodeName&&d.replaceElement(D)});for(var E=0;E<C.length;E++)0==d.model.getChildCount(C[E])&&d.autoSizeCell(C[E],!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(),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,@@ -3623,15 +3624,15 @@ function(){d.getModel().beginUpdate();try{d.setCellStyles(mxConstants.STYLE_ROUN"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()),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 B=d.getCellGeometry(k);d.getModel().isVertex(k)&&null!=B;)w+=B.x,y+=B.y,k=d.getModel().getParent(k),B=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");+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")+"):",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 B=d.cellEditor.saveSelection();e.showImageDialog(k,w,function(D,E,G,J,M,Q){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(B),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(B,D,E){f(k,B,D,E,d)}),e.showDialog(u.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(E,D,G,I,M,N){if(d.cellEditor.isContentEditing())d.cellEditor.restoreSelection(C),d.insertImage(E,D,G);else{var L=d.getSelectionCells();if(null!=E&&(0<E.length||0<L.length)){var V=null;+d.getModel().beginUpdate();try{if(0==L.length){L=[d.insertVertex(d.getDefaultParent(),null,"",0,0,D,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!=I&&f(L[0],I,M,N,d);V=L;d.fireEvent(new mxEventObject("cellsInserted","cells",V))}d.setCellStyles(mxConstants.STYLE_IMAGE,0<E.length?E: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==E.length&&d.setCellStyles(mxConstants.STYLE_SHAPE,null,L);null==I&&d.setCellStyles(mxConstants.STYLE_CLIP_PATH,null,L);if(null!=D&&null!=G)for(E=0;E<L.length;E++){var O=L[E];if("0"!=d.getCurrentCellStyle(O).expand){var ca=d.getModel().getGeometry(O);null!=ca&&(ca=ca.clone(),ca.width=D,ca.height=G,d.getModel().setGeometry(O,ca))}null!=I&&f(O,I,M,N,d)}}finally{d.getModel().endUpdate()}null!=V&&(d.setSelectionCells(V),+d.scrollCellToVisible(V[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,E,D){f(k,C,E,D,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+@@ -3643,58 +3644,58 @@ Menus.prototype.init=function(){var a=this.editorUi,b=a.editor.graph,f=mxUtils.bFormat.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["link",null,null,null,null],null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["flexArrow",null,null,null,null],null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["arrow",null,null,null,null],null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["filledEdge",null,null,null,null],null,null,!0,Format.filledEdgeImage.src)).setAttribute("title","Filled Edge");Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["pipe",null,null,null,null],null,null,!0,Format.pipeEdgeImage.src)).setAttribute("title","Pipe");Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",g,["wire",null,null,"1",null],null,null,!0,Format.wireEdgeImage.src)).setAttribute("title","Wire")})));this.put("edgeStyle",new Menu(mxUtils.bind(this,function(e){Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[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(e,"",[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(e,"",[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("simple"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[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("simple"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[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(e,-"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,null,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,null,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved"));-Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(e,g){for(var d=mxUtils.bind(this,function(m){this.styleChange(e,m,[mxConstants.STYLE_FONTFAMILY],[m],null,g,function(){document.execCommand("fontname",!1,m);a.fireEvent(new mxEventObject("styleChanged",-"keys",[mxConstants.STYLE_FONTFAMILY],"values",[m],"cells",[b.cellEditor.getEditingCell()]))},function(){b.updateLabelElements(b.getSelectionCells(),function(p){p.removeAttribute("face");p.style.fontFamily=null;"PRE"==p.nodeName&&b.replaceElement(p,"div")})}).firstChild.nextSibling.style.fontFamily=m}),h=0;h<this.defaultFonts.length;h++)d(this.defaultFonts[h]);e.addSeparator(g);if(0<this.customFonts.length){for(h=0;h<this.customFonts.length;h++)d(this.customFonts[h]);e.addSeparator(g);e.addItem(mxResources.get("reset"),-null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),g);e.addSeparator(g)}this.promptChange(e,mxResources.get("custom")+"...","",mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,g,!0,mxUtils.bind(this,function(m){0>mxUtils.indexOf(this.customFonts,m)&&(this.customFonts.push(m),this.editorUi.fireEvent(new mxEventObject("customFontsChanged")))}))})));this.put("formatBlock",new Menu(mxUtils.bind(this,function(e,g){function d(h,-m){return e.addItem(h,null,mxUtils.bind(this,function(){null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),document.execCommand("formatBlock",!1,"<"+m+">"))}),g)}d(mxResources.get("normal"),"p");d("","h1").firstChild.nextSibling.innerHTML='<h1 style="margin:0px;">'+mxResources.get("heading")+" 1</h1>";d("","h2").firstChild.nextSibling.innerHTML='<h2 style="margin:0px;">'+mxResources.get("heading")+" 2</h2>";d("","h3").firstChild.nextSibling.innerHTML='<h3 style="margin:0px;">'+mxResources.get("heading")+-" 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"),B=0;B<y.length;B++)if("3"==y[B].getAttribute("size")){y[B].removeAttribute("size");-y[B].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 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,-null,!0)},g);e.addItem(mxResources.get("vertical"),null,function(){b.distributeCells(!1,null,!0)},g)})));this.put("line",new Menu(mxUtils.bind(this,function(e,g){var d=b.view.getState(b.getSelectionCell());null!=d&&(d=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE),"arrow"!=d&&(Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],[null,null,null],null,g,!0,Format.straightImage.src)).setAttribute("title",mxResources.get("straight")),-Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],null,g,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle",null,null,null],null,g,!0,Format.horizontalElbowImage.src)).setAttribute("title",-mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,g,!0,Format.verticalElbowImage.src)).setAttribute("title",mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],-null,g,!0,Format.horizontalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,g,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==d&&Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,-mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,g,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,g,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))),e.addSeparator(g),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,-mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],null,g,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line")),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],null,g,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link")),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,-"width"],["flexArrow",null,null,null],null,g,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow")),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],null,g,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow")))})));this.put("layout",new Menu(mxUtils.bind(this,function(e,g){var d=mxUtils.bind(this,function(m,p){this.editorUi.prompt(mxResources.get("spacing"),-m,p)}),h=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var p=b.getSelectionCell(),k=null;null==p||0==b.getModel().getChildCount(p)?0==b.getModel().getEdgeCount(p)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(p);null!=k&&0<k.length&&(p=k[0]);null!=p&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),p);b.isSelectionEmpty()||(p=b.getModel().getParent(p),b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0))},!0)}))});-e.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),g);e.addItem(mxResources.get("verticalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);-this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),g);e.addSeparator(g);e.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,h(m))}))}),g);e.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,-!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,h(m))}))}),g);e.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,h(m))}))}),g);e.addSeparator(g);e.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,-mxUtils.bind(this,function(p){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=p;this.editorUi.executeLayout(function(){var k=b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),g);e.addItem(mxResources.get("circle"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var p=-b.getSelectionCell();if(null==p||0==b.getModel().getChildCount(p))p=b.getDefaultParent();m.execute(p);b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0)},!0)}))}),g)})));this.put("navigation",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),g)})));this.put("arrange",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["toFront","toBack","bringForward","sendBackward","-"],g);this.addSubmenu("direction",-e,g);this.addMenuItems(e,["turn","-"],g);this.addSubmenu("align",e,g);this.addSubmenu("distribute",e,g);e.addSeparator(g);this.addSubmenu("navigation",e,g);this.addSubmenu("insert",e,g);this.addSubmenu("layout",e,g);this.addMenuItems(e,"- group ungroup removeFromGroup - clearWaypoints autosize".split(" "),g)}))).isEnabled=f;this.put("insert",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["insertLink","insertImage"],g)})));this.put("view",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,-(null!=this.editorUi.format?["format"]:[]).concat("outline layers - pageView pageScale - tooltips grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),g))})));this.put("viewPanels",new Menu(mxUtils.bind(this,function(e,g){null!=this.editorUi.format&&this.addMenuItems(e,["format"],g);this.addMenuItems(e,["outline","layers"],g)})));this.put("viewZoom",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["smartFit","-"],g);for(var d=[.25,.5,.75,1,1.25,1.5,2,-3,4],h=0;h<d.length;h++)(function(m){e.addItem(100*m+"%",null,function(){b.zoomTo(m)},g)})(d[h]);this.addMenuItems(e,"- fitWindow fitPageWidth fitPage fitTwoPages - customZoom".split(" "),g)})));this.put("file",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"new open - save saveAs - import export - pageSetup print".split(" "),g)})));this.put("edit",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"undo redo - cut copy paste delete - duplicate - editData editTooltip - editStyle - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));-this.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)};+null,null,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[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(e,"",[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(e,"",[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(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,null,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,null,!0,+Format.curvedImage.src)).setAttribute("title",mxResources.get("curved"));Format.processMenuIcon(this.editorUi.menus.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,null,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(e,g){for(var d=mxUtils.bind(this,function(m){this.styleChange(e,m,[mxConstants.STYLE_FONTFAMILY],+[m],null,g,function(){document.execCommand("fontname",!1,m);a.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY],"values",[m],"cells",[b.cellEditor.getEditingCell()]))},function(){b.updateLabelElements(b.getSelectionCells(),function(p){p.removeAttribute("face");p.style.fontFamily=null;"PRE"==p.nodeName&&b.replaceElement(p,"div")})}).firstChild.nextSibling.style.fontFamily=m}),h=0;h<this.defaultFonts.length;h++)d(this.defaultFonts[h]);e.addSeparator(g);if(0<this.customFonts.length){for(h=+0;h<this.customFonts.length;h++)d(this.customFonts[h]);e.addSeparator(g);e.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];this.editorUi.fireEvent(new mxEventObject("customFontsChanged"))}),g);e.addSeparator(g)}this.promptChange(e,mxResources.get("custom")+"...","",mxConstants.DEFAULT_FONTFAMILY,mxConstants.STYLE_FONTFAMILY,g,!0,mxUtils.bind(this,function(m){0>mxUtils.indexOf(this.customFonts,m)&&(this.customFonts.push(m),this.editorUi.fireEvent(new mxEventObject("customFontsChanged")))}))})));+this.put("formatBlock",new Menu(mxUtils.bind(this,function(e,g){function d(h,m){return e.addItem(h,null,mxUtils.bind(this,function(){null!=b.cellEditor.textarea&&(b.cellEditor.textarea.focus(),document.execCommand("formatBlock",!1,"<"+m+">"))}),g)}d(mxResources.get("normal"),"p");d("","h1").firstChild.nextSibling.innerHTML='<h1 style="margin:0px;">'+mxResources.get("heading")+" 1</h1>";d("","h2").firstChild.nextSibling.innerHTML='<h2 style="margin:0px;">'+mxResources.get("heading")+" 2</h2>";d("",+"h3").firstChild.nextSibling.innerHTML='<h3 style="margin:0px;">'+mxResources.get("heading")+" 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 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,null,!0)},g);e.addItem(mxResources.get("vertical"),null,function(){b.distributeCells(!1,null,!0)},g)})));this.put("line",new Menu(mxUtils.bind(this,function(e,g){var d=b.view.getState(b.getSelectionCell());null!=d&&(d=mxUtils.getValue(d.style,mxConstants.STYLE_SHAPE),"arrow"!=d&&(Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],+[null,null,null],null,g,!0,Format.straightImage.src)).setAttribute("title",mxResources.get("straight")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle",null,null],null,g,!0,Format.orthogonalImage.src)).setAttribute("title",mxResources.get("orthogonal")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],+["elbowEdgeStyle",null,null,null],null,g,!0,Format.horizontalElbowImage.src)).setAttribute("title",mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["elbowEdgeStyle","vertical",null,null],null,g,!0,Format.verticalElbowImage.src)).setAttribute("title",mxResources.get("simple")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,+mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle",null,null,null],null,g,!0,Format.horizontalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_ELBOW,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["isometricEdgeStyle","vertical",null,null],null,g,!0,Format.verticalIsometricImage.src)).setAttribute("title",mxResources.get("isometric")),"connector"==d&&+Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["orthogonalEdgeStyle","1",null],null,g,!0,Format.curvedImage.src)).setAttribute("title",mxResources.get("curved")),Format.processMenuIcon(this.edgeStyleChange(e,"",[mxConstants.STYLE_EDGE,mxConstants.STYLE_CURVED,mxConstants.STYLE_NOEDGESTYLE],["entityRelationEdgeStyle",null,null],null,g,!0,Format.entityImage.src)).setAttribute("title",mxResources.get("entityRelation"))),+e.addSeparator(g),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],[null,null,null,null],null,g,null,null,!0,Format.connectionImage.src)).setAttribute("title",mxResources.get("line")),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["link",null,null,null],null,g,null,null,!0,Format.linkEdgeImage.src)).setAttribute("title",mxResources.get("link")),+Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["flexArrow",null,null,null],null,g,null,null,!0,Format.arrowImage.src)).setAttribute("title",mxResources.get("arrow")),Format.processMenuIcon(this.styleChange(e,"",[mxConstants.STYLE_SHAPE,mxConstants.STYLE_STARTSIZE,mxConstants.STYLE_ENDSIZE,"width"],["arrow",null,null,null],null,g,null,null,!0,Format.simpleArrowImage.src)).setAttribute("title",mxResources.get("simpleArrow")))})));+this.put("layout",new Menu(mxUtils.bind(this,function(e,g){var d=mxUtils.bind(this,function(m,p){this.editorUi.prompt(mxResources.get("spacing"),m,p)}),h=mxUtils.bind(this,function(m){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var p=b.getSelectionCell(),k=null;null==p||0==b.getModel().getChildCount(p)?0==b.getModel().getEdgeCount(p)&&(k=b.findTreeRoots(b.getDefaultParent())):k=b.findTreeRoots(p);null!=k&&0<k.length&&(p=k[0]);null!=p&&this.editorUi.executeLayout(function(){m.execute(b.getDefaultParent(),+p);b.isSelectionEmpty()||(p=b.getModel().getParent(p),b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0))},!0)}))});e.addItem(mxResources.get("horizontalFlow"),null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_WEST);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),g);e.addItem(mxResources.get("verticalFlow"),null,+mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxHierarchicalLayout(b,mxConstants.DIRECTION_NORTH);this.editorUi.executeLayout(function(){var p=b.getSelectionCells();m.execute(b.getDefaultParent(),0==p.length?null:p)},!0)}))}),g);e.addSeparator(g);e.addItem(mxResources.get("horizontalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!0);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||+(m.levelDistance=p,h(m))}))}),g);e.addItem(mxResources.get("verticalTree"),null,mxUtils.bind(this,function(){var m=new mxCompactTreeLayout(b,!1);m.edgeRouting=!1;m.levelDistance=30;m.sortEdges=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=p,h(m))}))}),g);e.addItem(mxResources.get("radialTree"),null,mxUtils.bind(this,function(){var m=new mxRadialTreeLayout(b);m.levelDistance=80;m.autoRadius=!0;d(m.levelDistance,mxUtils.bind(this,function(p){isNaN(p)||(m.levelDistance=+p,h(m))}))}),g);e.addSeparator(g);e.addItem(mxResources.get("organic"),null,mxUtils.bind(this,function(){var m=new mxFastOrganicLayout(b);d(m.forceConstant,mxUtils.bind(this,function(p){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){m.forceConstant=p;this.editorUi.executeLayout(function(){var k=b.getSelectionCell();if(null==k||0==b.getModel().getChildCount(k))k=b.getDefaultParent();m.execute(k);b.getModel().isVertex(k)&&b.updateGroupBounds([k],2*b.gridSize,!0)},!0)}))}))}),g);e.addItem(mxResources.get("circle"),+null,mxUtils.bind(this,function(){this.editorUi.tryAndHandle(mxUtils.bind(this,function(){var m=new mxCircleLayout(b);this.editorUi.executeLayout(function(){var p=b.getSelectionCell();if(null==p||0==b.getModel().getChildCount(p))p=b.getDefaultParent();m.execute(p);b.getModel().isVertex(p)&&b.updateGroupBounds([p],2*b.gridSize,!0)},!0)}))}),g)})));this.put("navigation",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"home - exitGroup enterGroup - expand collapse - collapsible".split(" "),+g)})));this.put("arrange",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["toFront","toBack","bringForward","sendBackward","-"],g);this.addSubmenu("direction",e,g);this.addMenuItems(e,["turn","-"],g);this.addSubmenu("align",e,g);this.addSubmenu("distribute",e,g);e.addSeparator(g);this.addSubmenu("navigation",e,g);this.addSubmenu("insert",e,g);this.addSubmenu("layout",e,g);this.addMenuItems(e,"- group ungroup removeFromGroup - clearWaypoints autosize".split(" "),g)}))).isEnabled=f;this.put("insert",+new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["insertLink","insertImage"],g)})));this.put("view",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,(null!=this.editorUi.format?["format"]:[]).concat("outline layers - pageView pageScale - tooltips grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),g))})));this.put("viewPanels",new Menu(mxUtils.bind(this,function(e,g){null!=this.editorUi.format&&this.addMenuItems(e,["format"],g);this.addMenuItems(e,+["outline","layers"],g)})));this.put("viewZoom",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,["smartFit","-"],g);for(var d=[.25,.5,.75,1,1.25,1.5,2,3,4],h=0;h<d.length;h++)(function(m){e.addItem(100*m+"%",null,function(){b.zoomTo(m)},g)})(d[h]);this.addMenuItems(e,"- fitWindow fitPageWidth fitPage fitTwoPages - customZoom".split(" "),g)})));this.put("file",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"new open - save saveAs - import export - pageSetup print".split(" "),+g)})));this.put("edit",new Menu(mxUtils.bind(this,function(e,g){this.addMenuItems(e,"undo redo - cut copy paste delete - duplicate - editData editTooltip - editStyle - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));this.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,-u,w,y,B){u=B||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!=+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(B){y=d.getParentByName(mxEvent.getSource(B),"TD");var D=!1;if(null!=y){w=d.getParentByName(y,"TR");var E=mxEvent.isMouseEvent(B)?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(B);return D}e=null!=e?e:!0;var d=this.editorUi.editor.graph;b=null!=b?b:mxUtils.bind(this,function(B,D,E){if(null!=d.getParentByName(mxEvent.getSource(B),"TD")&&null!=d.cellEditor.textarea){var G=d.cellEditor.textarea.getElementsByTagName("table");-B=[];for(var J=0;J<G.length;J++)B.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==B.length+1)for(J=D.length-1;0<=J;J--)if(0==J||D[J]!=B[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,+Menus.prototype.addInsertTableItem=function(a,b,f,e){function g(C){y=d.getParentByName(mxEvent.getSource(C),"TD");var E=!1;if(null!=y){w=d.getParentByName(y,"TR");var D=mxEvent.isMouseEvent(C)?2:4,G=k,I=Math.min(20,w.sectionRowIndex+D);D=Math.min(20,y.cellIndex+D);for(var M=G.rows.length;M<I;M++)for(var N=G.insertRow(M),L=0;L<G.rows[0].cells.length;L++)N.insertCell(-1);for(M=0;M<G.rows.length;M++)for(N=G.rows[M],L=N.cells.length;L<D;L++)N.insertCell(-1);u.innerHTML=y.cellIndex+1+"x"+(w.sectionRowIndex++1);for(G=0;G<k.rows.length;G++)for(I=k.rows[G],D=0;D<I.cells.length;D++)M=I.cells[D],G==w.sectionRowIndex&&D==y.cellIndex&&(E="blue"==M.style.backgroundColor),M.style.backgroundColor=G<=w.sectionRowIndex&&D<=y.cellIndex?"blue":"transparent"}mxEvent.consume(C);return E}e=null!=e?e:!0;var d=this.editorUi.editor.graph;b=null!=b?b:mxUtils.bind(this,function(C,E,D){if(null!=d.getParentByName(mxEvent.getSource(C),"TD")&&null!=d.cellEditor.textarea){var G=d.cellEditor.textarea.getElementsByTagName("table");+C=[];for(var I=0;I<G.length;I++)C.push(G[I]);d.container.focus();I=d;G=I.pasteHtmlAtCaret;for(var M=["<table>"],N=0;N<E;N++){M.push("<tr>");for(var L=0;L<D;L++)M.push("<td><br></td>");M.push("</tr>")}M.push("</table>");E=M.join("");G.call(I,E);E=d.cellEditor.textarea.getElementsByTagName("table");if(E.length==C.length+1)for(I=E.length-1;0<=I;I--)if(0==I||E[I]!=C[I-1]){d.selectNode(E[I].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(B){mxEvent.consume(B)}));mxEvent.addGestureListeners(h,null,null,mxUtils.bind(this,function(B){mxEvent.consume(B)}));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(B){mxEvent.consume(B)}));mxEvent.addGestureListeners(m,null,null,mxUtils.bind(this,function(B){mxEvent.consume(B)}));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(B,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<B;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(B){var D=g(B);null!=y&&null!=w&&D&&(b(B,w.sectionRowIndex+1,y.cellIndex+1,h.checked,m.checked),+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,E){var D=document.createElement("table");D.className="geInsertTablePicker";D.setAttribute("border","1");D.style.borderCollapse="collapse";D.style.borderStyle="solid";D.style.marginBottom="4px";+D.style.marginTop="8px";D.setAttribute("cellPadding","8");for(var G=0;G<C;G++)for(var I=D.insertRow(G),M=0;M<E;M++)I.insertCell(-1);return D}(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 E=g(C);null!=y&&null!=w&&E&&(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(),u=[],w=0;w<k.length;w++){var y=k[w];if(p.getModel().isEdge(y)){if(h){var B=p.getCellGeometry(y);null!=B&&(B=B.clone(),B.points=null,p.getModel().setGeometry(y,B))}for(var D=0;D<f.length;D++)p.setCellStyles(f[D],e[D],[y]);u.push(y)}}this.editorUi.fireEvent(new mxEventObject("styleChanged",+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 E=0;E<f.length;E++)p.setCellStyles(f[E],e[E],[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 u=this.editorUi.editor.graph,w=e,y=u.getView().getState(u.getSelectionCell());null!=y&&(w=y.style[g]||w);var B=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(B){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(g,D)}finally{u.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(E){if(null!=E&&0<E.length){if(C){u.getModel().beginUpdate();try{u.stopEditing(!1),u.setCellStyles(g,E)}finally{u.getModel().endUpdate()}}null!=m&&m(E)}}),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)}}))};@@ -3733,53 +3734,53 @@ function(k){b.cellEditor.alignText(mxConstants.ALIGN_LEFT,k);a.fireEvent(new mxEp.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(),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(B){this.editorUi.handleError(B)}}));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(B){this.editorUi.handleError(B)}}));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(B){this.editorUi.handleError(B)}}));-k.setAttribute("title",mxResources.get("deleteColumn"));k=p.addItem("",Editor.addRowAboveImage,mxUtils.bind(this,function(){try{b.selectNode(b.insertRow(y,w.sectionRowIndex))}catch(B){this.editorUi.handleError(B)}}));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(B){this.editorUi.handleError(B)}}));k.setAttribute("title",mxResources.get("insertRowAfter"));k=p.addItem("",-Editor.removeRowImage,mxUtils.bind(this,function(){try{b.deleteRow(y,w.sectionRowIndex)}catch(B){this.editorUi.handleError(B)}}));k.setAttribute("title",mxResources.get("deleteRow"));k=p.addItem("",Editor.strokeColorImage,mxUtils.bind(this,function(){var B=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(B,-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 B=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)+-("0"+Number(J).toString(16)).substr(-2)});this.editorUi.pickColor(B,function(D){y.style.backgroundColor=null==D||D==mxConstants.NONE?"":D})}));k.setAttribute("title",mxResources.get("backgroundColor"));k=p.addItem("",Editor.spacingImage,mxUtils.bind(this,function(){var B=y.getAttribute("cellPadding")||0;B=new FilenameDialog(this.editorUi,B,mxResources.get("apply"),mxUtils.bind(this,function(D){null!=D&&0<D.length?y.setAttribute("cellPadding",D):y.removeAttribute("cellPadding")}),mxResources.get("spacing"));-this.editorUi.showDialog(B.container,300,80,!0,!0);B.init()}));k.setAttribute("title",mxResources.get("spacing"));k=p.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(){y.setAttribute("align","left")}));k.setAttribute("title",mxResources.get("left"));k=p.addItem("",Editor.alignCenterImage,mxUtils.bind(this,function(){y.setAttribute("align","center")}));k.setAttribute("title",mxResources.get("center"));k=p.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(){y.setAttribute("align",+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(E,D,G,I){return"#"+("0"+Number(D).toString(16)).substr(-2)+("0"+Number(G).toString(16)).substr(-2)+("0"+Number(I).toString(16)).substr(-2)});this.editorUi.pickColor(C,+function(E){null==E||E==mxConstants.NONE?(y.removeAttribute("border"),y.style.border="",y.style.borderCollapse=""):(y.setAttribute("border","1"),y.style.border="1px solid "+E,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(E,D,G,I){return"#"+("0"+Number(D).toString(16)).substr(-2)+("0"+Number(G).toString(16)).substr(-2)++("0"+Number(I).toString(16)).substr(-2)});this.editorUi.pickColor(C,function(E){y.style.backgroundColor=null==E||E==mxConstants.NONE?"":E})}));k.setAttribute("title",mxResources.get("backgroundColor"));k=p.addItem("",Editor.spacingImage,mxUtils.bind(this,function(){var C=y.getAttribute("cellPadding")||0;C=new FilenameDialog(this.editorUi,C,mxResources.get("apply"),mxUtils.bind(this,function(E){null!=E&&0<E.length?y.setAttribute("cellPadding",E):y.removeAttribute("cellPadding")}),mxResources.get("spacing"));+this.editorUi.showDialog(C.container,300,80,!0,!0);C.init()}));k.setAttribute("title",mxResources.get("spacing"));k=p.addItem("",Editor.alignLeftImage,mxUtils.bind(this,function(){y.setAttribute("align","left")}));k.setAttribute("title",mxResources.get("left"));k=p.addItem("",Editor.alignCenterImage,mxUtils.bind(this,function(){y.setAttribute("align","center")}));k.setAttribute("title",mxResources.get("center"));k=p.addItem("",Editor.alignRightImage,mxUtils.bind(this,function(){y.setAttribute("align","right")}));k.setAttribute("title",mxResources.get("right"))}})),null,Editor.tableImage);m.setAttribute("data-min-width",740);this.editorUi.dependsOnLanguage(mxUtils.bind(this,function(){f.innerText=mxResources.get("style");d.setAttribute("title",mxResources.get("format"));f.setAttribute("title",mxResources.get("style"));e.setAttribute("title",mxResources.get("fontFamily"));g.setAttribute("title",mxResources.get("fontSize"));h.setAttribute("title",mxResources.get("insert"));m.setAttribute("title",mxResources.get("table"))}))};Toolbar.prototype.hideMenu=function(){this.editorUi.hideCurrentMenu()};Toolbar.prototype.setMenuText=function(a,b){a.getElementsByTagName("span")[0].innerText=b};Toolbar.prototype.setMenuIcon=function(a,b){a.style.backgroundImage="url("+b+")"};Toolbar.prototype.addMenu=function(a,b,f,e){var g=this.editorUi.createMenuElement("",a.funct);this.editorUi.menus.menuCreated(a,g,"geButton");null!=f?g.style.backgroundImage="url("+f+")":null!=b&&(a=document.createElement("span"),mxUtils.write(a,b),g.appendChild(a));e=null!=e?e:this.container;e.appendChild(g);return g};Toolbar.prototype.addSeparator=function(a,b){a=null!=a?a:this.container;var f=document.createElement("div");f.className="geSeparator";a.appendChild(f);null!=b&&f.setAttribute("data-min-width",b);return f};Toolbar.prototype.addItems=function(a,b,f,e,g){for(var d=[],h=0;h<a.length;h++){var m=a[h];"-"==m?d.push(this.addSeparator(b,g)):(m=this.addItem(null!=e?e[h]:null,m,b,f),d.push(m),null!=g&&m.setAttribute("data-min-width",g))}return d};Toolbar.prototype.addItem=function(a,b,f){var e=this.editorUi.actions.get(b),g=null;null!=e&&(g=this.editorUi.addButton(a,"",e.funct,null!=f?f:this.container),this.editorUi.dependsOnLanguage(mxUtils.bind(this,function(){var d=e.getTitle();null!=e.shortcut&&(d+=" ("+e.shortcut+")");g.setAttribute("title",d)})),a=mxUtils.bind(this,function(){e.enabled?g.removeAttribute("disabled"):g.setAttribute("disabled","disabled")}),e.addListener("stateChanged",a),a());return g};-Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(D,E,G){if(null==D)return[G,G,G];var J=Math.floor(D),-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 1:return[D,G,M];case 2:return[M,G,D];case 3:return[M,D,G];case 4:return[D,M,G];case 5:return[G,M,D]}}mxEventSource.call(this);var b=document.createElement("div");b.style.overflow="visible";b.style.position="relative";b.style.top="0px";b.style.left="0px";b.style.width="230px";b.style.height="114px";var f=document.createElement("div");f.style.border="1px solid light-dark(black, white)";f.style.backgroundImage="url("+this.hsImage+-")";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+")";B.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)}),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 B=document.createElement("div");B.style.background="url("+this.arrowImage+")";B.style.position="absolute";B.style.pointerEvents="none";B.style.width="7px";B.style.height="11px";B.style.left="2px";B.style.top="-3px";sliderBox.appendChild(B);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=";+Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)};var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.style.maxWidth="100%";a.frameBorder="0";a.setAttribute("width",(Editor.useLocalStorage?640:320)+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorPicker=function(){function a(D,G,I){if(null==D)return[I,I,I];var M=Math.floor(D),+N=I*(1-G);D=I*(1-G*(M%2?D-M:1-(D-M)));switch(M){case 6:case 0:return[I,D,N];case 1:return[D,I,N];case 2:return[N,I,D];case 3:return[N,D,I];case 4:return[D,N,I];case 5:return[I,N,D]}}mxEventSource.call(this);var b=document.createElement("div");b.style.overflow="visible";b.style.position="relative";b.style.top="0px";b.style.left="0px";b.style.width="230px";b.style.height="114px";var f=document.createElement("div");f.style.border="1px solid light-dark(black, white)";f.style.backgroundImage="url("+this.hsImage++")";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],d=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 h=document.createElement("div");h.style.border="1px solid light-dark(black, white)";h.style.pointerEvents="none";h.style.overflow="hidden";h.style.position="absolute";h.style.width="16px";h.style.height="101px";h.style.left="9px";h.style.top="0px";var m=!1,p=!1,k=mxUtils.bind(this,function(D){var G=Math.round(100*(1-g[1]));e.style.left=+Math.round(g[0]/6*180)-8+"px";e.style.top=G-8+"px";G=h.childNodes;var I=a(g[0],g[1],1);if(null!=I){for(var M=0;M<G.length;M++)G[M].style.backgroundColor="rgb("+I[0]*(1-M/G.length)*255+", "+I[1]*(1-M/G.length)*255+", "+I[2]*(1-M/G.length)*255+")";E.style.top=Math.round(100*(1-g[2]))-4+"px";G=a(g[0],g[1],g[2]);G="#"+("0"+Math.round(255*G[0]).toString(16)).slice(-2)+("0"+Math.round(255*G[1]).toString(16)).slice(-2)+("0"+Math.round(255*G[2]).toString(16)).slice(-2)+(1>d?("0"+Math.round(255*d).toString(16)).slice(-2):+"");1!=D&&this.fireEvent(new mxEventObject("change","color",mxUtils.rgba2hex(G)))}}),u=mxUtils.bind(this,function(D){0==g[2]&&(g[2]=1);m=!0;y(D)}),w=mxUtils.bind(this,function(D){p=!0;y(D)}),y=mxUtils.bind(this,function(D){if(m){var G=f.getBoundingClientRect(),I=mxEvent.getClientX(D)-G.left;D=mxEvent.getClientY(D)-G.top;e.style.left=I-8+"px";e.style.top=D-8+"px";I*=6/180;D=1-D/100;G=void 0;0>I&&(I=0);6<I&&(I=6);0>D&&(D=0);1<D&&(D=1);0>G&&(G=0);1<G&&(G=1);I=a(null==I?g[0]:g[0]=I,null==D?g[1]:g[1]=+D,null==G?g[2]:g[2]=G);this.fromString("#"+("0"+Math.floor(255*I[0]).toString(16)).slice(-2)+("0"+Math.floor(255*I[1]).toString(16)).slice(-2)+("0"+Math.floor(255*I[2]).toString(16)).slice(-2)+(1>d?("0"+Math.round(255*d).toString(16)).slice(-2):""))}else p&&(G=sliderBox.getBoundingClientRect(),D=mxEvent.getClientY(D)-G.top,g[2]=Math.max(Math.min(1,1-D/100),0),k())}),C=mxUtils.bind(this,function(){m=p=!1});mxEvent.addGestureListeners(f,u);mxEvent.addGestureListeners(sliderBox,w);mxEvent.addGestureListeners(b,+null,y,C);mxEvent.addListener(b,"mouseleave",C);for(u=0;101>u;u+=4)w=document.createElement("div"),w.style.height="4px",w.style.pointerEvents="none",h.appendChild(w);b.appendChild(h);var E=document.createElement("div");E.style.background="url("+this.arrowImage+")";E.style.position="absolute";E.style.pointerEvents="none";E.style.width="7px";E.style.height="11px";E.style.left="2px";E.style.top="-3px";sliderBox.appendChild(E);sliderBox.appendChild(h);b.appendChild(sliderBox);this.fromString=function(D,+G){G=null!=G?G:!1;if(null==D||""==D||mxUtils.isVarColor(D)||D==mxConstants.NONE)D="#ffffff",G=!0;D=mxUtils.parseColor(D);var I=D.r/255,M=D.g/255,N=D.b/255,L=Math.min(Math.min(I,M),N);var V=Math.max(Math.max(I,M),N);var X=V-L;0===X?V=[null,0,V]:(I=I===L?3+(N-M)/X:M===L?5+(I-N)/X:1+(M-I)/X,V=[6===I?0:I,X/V,V]);null!=V[0]&&(g[0]=V[0]);0!=V[2]&&(g[1]=V[1]);g[2]=V[2];d=D.a;k(G)};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(){fa.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 B(ba){"#"==ba.value.charAt(0)&&(ba.value=ba.value.substring(1));var ma=ba.value,La=ma.toLowerCase();null==g||""!=ma&&"automatic"!=La&&"default"!=La&&La!=mxResources.get("default").toLowerCase()&&La!=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&&(B(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 fa=document.createElement("img");-fa.setAttribute("title",mxResources.get("dark"));fa.className="geAdaptiveAsset";fa.style.marginLeft="-2px";H.appendChild(fa);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(),B(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(){B(X)});mxEvent.addListener(N,-"change",function(){B(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,B(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,La,na){ma=null!=ma?ma:12;var za=document.createElement("table");za.style.borderCollapse="collapse";za.setAttribute("cellspacing","0");za.style.marginBottom="20px";za.style.cellSpacing="0px";-za.style.marginLeft="1px";var Aa=document.createElement("tbody");za.appendChild(Aa);for(var Ma=ba.length/ma,Qa=0;Qa<Ma;Qa++){for(var Ja=document.createElement("tr"),Ia=0;Ia<ma;Ia++)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=La);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)}Ja.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";B(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();B(X);B(N);ia==X?ha.fromString(Wa.light):ha.fromString(Wa.dark)}else ha.fromString("#"+ra)}),mxEvent.addListener(Da,"dblclick",D))})(ba[Qa*ma+Ia]);Aa.appendChild(Ja)}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",Ja.appendChild(ba),mxEvent.addListener(ba,"click",function(){ColorDialog.resetRecentColors();za.parentNode.replaceChild(J(),-za)}));ta.appendChild(za);return za});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(" ");+var ColorDialog=function(a,b,f,e,g,d,h){function m(ba){return mxUtils.color2hex("#"+ba).substring(1).toUpperCase()}function p(){fa.src="none"==S.style.display?Editor.arrowRightImage:Editor.arrowDownImage}function k(ba){ba||"none"==S.style.display?(S.style.display="flex",O.focus()):S.style.display="none";p()}function u(ba){""==ba.value&&null!=N&&V?ba.style.background=ba==O?N.dark:N.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(O)}function y(ba){ba?h&&null!=N?(X.value=N.light.substring(1).toUpperCase(),ba=!1):(X.value="",O.value="",ca.value="automatic",X.setAttribute("placeholder",mxResources.get("useBlackAndWhite")),O.setAttribute("title",mxResources.get("useBlackAndWhite")),X.setAttribute("title",mxResources.get("useBlackAndWhite"))):(""==X.value&&+null!=N&&(X.value=N.light.substring(1).toUpperCase()),X.removeAttribute("placeholder"),X.removeAttribute("title"),""==O.value&&null!=N&&(O.value=N.dark.substring(1).toUpperCase()),O.removeAttribute("placeholder"),O.removeAttribute("title"),ba=!1);V=ba}function C(ba){"#"==ba.value.charAt(0)&&(ba.value=ba.value.substring(1));var ma=ba.value,Na=ma.toLowerCase();null==g||""!=ma&&"automatic"!=Na&&"default"!=Na&&Na!=mxResources.get("default").toLowerCase()&&Na!=mxResources.get("automatic").toLowerCase()||+null==N?(ba.value==mxConstants.NONE||mxUtils.isVarColor(ba.value)||(ba.value=m(ba.value),ha.fromString("#"+ba.value)),y(!1),ba!=O||X.value==mxConstants.NONE&&O.value==mxConstants.NONE||(ca.value="custom"),ba==X&&"automatic"==ca.value&&(X.value==mxConstants.NONE?O.value=mxConstants.NONE:mxUtils.isVarColor(X.value)?O.value=X.value:O.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+ba.value)).substring(1).toUpperCase()),w()):W.click()}function E(){var ba=X.value,ma=O.value;if(V&&null!=N||(/(^#?[a-zA-Z0-9]*$)/.test(ba)||+mxUtils.isVarColor(ba))&&(/(^#?[a-zA-Z0-9]*$)/.test(ma)||mxUtils.isVarColor(ma))){if(V)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 D(){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 I(){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)),E())}var N=null!=d?mxUtils.getLightDarkColor(d,null,null,h):null,L=a.editor.graph;this.editorUi=a;var V=!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 O=document.createElement("input");O.style.textOverflow="ellipsis";O.style.margin="0 4px";O.style.maxWidth=+"70px";O.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(){O.focus()});S.appendChild(O);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 fa=document.createElement("img");+fa.setAttribute("title",mxResources.get("dark"));fa.className="geAdaptiveAsset";fa.style.marginLeft="-2px";H.appendChild(fa);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=O.value;+O.value=ma;w();mxEvent.consume(ba)});H.appendChild(la);var P=document.createElement("img");P.setAttribute("title",mxResources.get("copy"));P.className="geAdaptiveAsset";P.style.marginLeft="4px";P.style.width="16px";P.style.height="16px";P.style.cursor="pointer";P.src=Editor.doubleArrowUpImage;mxEvent.addListener(P,"click",function(ba){ia==O?X.value=O.value:O.value=X.value;k(!0);ca.value="custom";w();mxEvent.consume(ba)});H.appendChild(P);p();mxEvent.addListener(H,"click",function(){k();p();ColorDialog.collapsed=+"none"==S.style.display});var W=mxUtils.button("",function(){y(!0);w();ia.focus();""==ia.value&&null!=N&&V&&ha.fromString(ia==O?N.dark:N.light,!0)});mxEvent.addListener(ca,"change",function(){"automatic"==ca.value?(X.focus(),C(X)):(y(!1),mxUtils.isVarColor(O.value)||(O.value=V&&null!=N?N.dark.substring(1).toUpperCase():O.value=mxUtils.rgba2hex(mxUtils.getInverseColor("#"+X.value)).substring(1).toUpperCase()),O.focus(),D());w()});mxEvent.addListener(X,"change",function(){C(X)});mxEvent.addListener(O,+"change",function(){C(O)});var Y=null!=f?f:this.createApplyFunction();this.init=function(){D()};var ha=new ColorPicker,ia=Editor.isDarkMode()&&("auto"==L.getAdaptiveColors()||"simple"==L.getAdaptiveColors()&&"custom"==ca.value)&&!h?O:X;mxEvent.addListener(X,"focus",function(){ia=X;G();P.src=Editor.doubleArrowDownImage});mxEvent.addListener(O,"focus",function(){ia=O;G();P.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,Na,oa){ma=null!=ma?ma:12;var za=document.createElement("table");za.style.borderCollapse="collapse";za.setAttribute("cellspacing","0");za.style.marginBottom="20px";za.style.cellSpacing="0px";+za.style.marginLeft="1px";var Aa=document.createElement("tbody");za.appendChild(Aa);for(var La=ba.length/ma,Qa=0;Qa<La;Qa++){for(var Ja=document.createElement("tr"),Ia=0;Ia<ma;Ia++)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=Na);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)}Ja.appendChild(Da);null!=ra&&(Da.style.cursor="pointer",mxEvent.addListener(Da,"click",function(){if(ra==mxConstants.NONE){ia==O&&O.value==mxConstants.NONE?X.value=mxConstants.NONE:+ia.value=mxConstants.NONE;if(ia==X||ia==O&&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();O.value=Wa.dark.substring(1).toUpperCase();C(X);C(O);ia==X?ha.fromString(Wa.light):ha.fromString(Wa.dark)}else ha.fromString("#"+ra)}),mxEvent.addListener(Da,"dblclick",E))})(ba[Qa*ma+Ia]);Aa.appendChild(Ja)}oa&&(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",Ja.appendChild(ba),mxEvent.addListener(ba,"click",function(){ColorDialog.resetRecentColors();za.parentNode.replaceChild(I(),+za)}));ta.appendChild(za);return za});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!=N&&(W.setAttribute("title",mxResources.get(h?"default":"useBlackAndWhite")),+W.style.cursor="pointer",W.style.position="relative",W.style.marginLeft="4px",W.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=N.light:L.style.backgroundImage="linear-gradient(to right bottom, "+N.cssText+" 50%, "+mxUtils.invertLightDarkColor(N).cssText+" 50.3%)",W.appendChild(L),T.appendChild(W),+mxEvent.addListener(W,"dblclick",E));var Q=document.createElement("input");Q.setAttribute("type","color");Q.style.position="relative";Q.style.visibility="hidden";Q.style.top="10px";Q.style.width="0px";Q.style.height="0px";Q.style.border="none";f.style.whiteSpace="nowrap";T.appendChild(Q);L=mxUtils.button("",function(){document.activeElement==Q?X.focus():(Q.value="#"+X.value,Q.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(Q,"change",function(){ha.fromString(Q.value)});h||f.appendChild(S);I();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"),E);L.className="geBtn gePrimaryBtn";d.appendChild(L);a.editor.cancelFirst||d.appendChild(T);null!=b&&("default"==b?W.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?O.value=mxConstants.NONE:mxUtils.isVarColor(T.dark)?O.value=T.dark:(mxUtils.isRgbColor(T.dark)?T.dark=mxUtils.rgba2hex(T.dark):mxUtils.isHexColor(T.dark)||(T.dark="#"+m(T.dark)),O.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(O,"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(" ");ColorDialog.prototype.createApplyFunction=function(){return ColorDialog.createApplyFunction(this.editorUi,this.currentColorKey)};ColorDialog.createApplyFunction=function(a,b){return function(f){var e=a.editor.graph;e.getModel().beginUpdate();try{e.setCellStyles(b,f),a.fireEvent(new mxEventObject("styleChanged","keys",[b],"values",[f],"cells",e.getSelectionCells()))}finally{e.getModel().endUpdate()}}};ColorDialog.recentColors=[];ColorDialog.addRecentColor=function(a,b){null!=a&&(mxUtils.remove(a,ColorDialog.recentColors),ColorDialog.recentColors.splice(0,0,a),ColorDialog.recentColors.length>=b&&ColorDialog.recentColors.pop())};ColorDialog.resetRecentColors=function(){ColorDialog.recentColors=[]};ColorDialog.collapsed=!0;@@ -3787,75 +3788,75 @@ var AboutDialog=function(a){var b=document.createElement("div");b.setAttribute(""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,e,g){var d=document.createElement("div"),h=document.createElement("textarea");h.style.position="absolute";h.style.left="30px";h.style.right="30px";h.style.top="30px";h.style.bottom="100px";h.style.resize="none";h.setAttribute("wrap","off");h.setAttribute("spellcheck","false");h.setAttribute("autocorrect","off");h.setAttribute("autocomplete","off");h.setAttribute("autocapitalize","off");h.value=null!=b?b:"";d.appendChild(h);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";null==g||a.isOffline()||b.appendChild(a.createHelpIcon(g));g=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});g.setAttribute("title","Escape");g.className="geBtn";a.editor.cancelFirst&&b.appendChild(g);var m=mxUtils.button(null!=e?e:mxResources.get("apply"),function(){a.hideDialog();f(h.value)});m.setAttribute("title","Ctrl+Enter");m.className="geBtn gePrimaryBtn";b.appendChild(m);mxEvent.addListener(h,"keydown",function(p){13==p.keyCode&&mxEvent.isControlDown(p)&&m.click()});a.editor.cancelFirst||b.appendChild(g);this.init=function(){h.focus();h.scrollTop=0};d.appendChild(b);-this.container=d},TextareaDialog=function(a,b,f,e,g,d,h,m,p,k,u,w,y,B,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");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!=B)for(b=0;b<B.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)})(B[b][0],-B[b][1],B[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||+this.container=d},TextareaDialog=function(a,b,f,e,g,d,h,m,p,k,u,w,y,C,E){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 D=m.cloneNode(!1),G=m.cloneNode(!1);m.style.top="0px";m.style.height="20px";D.style.top="20px";D.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(D);h.appendChild(G);null!=E&&m.appendChild(E);var I=document.createElement("textarea");u?I.setAttribute("wrap","off"):I.style.wordBreak="break-all";I.setAttribute("spellcheck","false");I.setAttribute("autocorrect","off");I.setAttribute("autocomplete","off");I.setAttribute("autocapitalize",+"off");mxUtils.write(I,f||"");I.style.resize="none";I.style.outline="none";I.style.position="absolute";I.style.boxSizing="border-box";I.style.top="0px";I.style.left="0px";I.style.height="100%";I.style.width="100%";this.textarea=I;this.init=function(){I.focus();I.scrollTop=0};D.appendChild(I);null==y||a.isOffline()||G.appendChild(a.createHelpIcon(y));if(null!=C)for(b=0;b<C.length;b++)(function(N,L,V){N=mxUtils.button(N,function(X){L(X,I)});null!=V&&N.setAttribute("title",V);N.className="geBtn";G.appendChild(N)})(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,I);if(null!=e){var M=mxUtils.button(w||mxResources.get("apply"),function(){k||a.hideDialog();e(I.value)});M.setAttribute("title","Ctrl+Enter");M.className="geBtn gePrimaryBtn";G.appendChild(M);mxEvent.addListener(I,"keydown",function(N){13==N.keyCode&&mxEvent.isControlDown(N)&&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,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 B=y.getChildren(y.getChildAt(y.getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(B));-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=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"),B.setAttribute("disabled","true"),D.setAttribute("disabled","true"),K.setAttribute("disabled","true")):(y.removeAttribute("disabled"),B.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(){B.style.backgroundColor=B.value*D.value>MAX_AREA||0>=B.value?"red":"";D.style.backgroundColor=B.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/+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(E){p=E}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(E){p=E}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=u.value,O=T.lastIndexOf(".");u.value=0<O?T.substring(0,O+1)+w.value:T+"."+w.value;"xml"===w.value?(y.setAttribute("disabled","true"),C.setAttribute("disabled","true"),E.setAttribute("disabled","true"),L.setAttribute("disabled","true")):(y.removeAttribute("disabled"),C.removeAttribute("disabled"),E.removeAttribute("disabled"),L.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?N.removeAttribute("disabled"):N.setAttribute("disabled","disabled");"png"===w.value?(D.removeAttribute("disabled"),G.removeAttribute("disabled")):(D.setAttribute("disabled","disabled"),G.setAttribute("disabled","disabled"))}function f(){C.style.backgroundColor=C.value*E.value>MAX_AREA||0>=C.value?"red":"";E.style.backgroundColor=C.value*E.value>MAX_AREA||0>=E.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 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 B=document.createElement("input");-B.setAttribute("value",h);B.style.width="180px";k=document.createElement("td");k.appendChild(B);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("height")+":");g.appendChild(k);var D=document.createElement("input");D.setAttribute("value",m);D.style.width="180px";k=document.createElement("td");k.appendChild(D);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");-k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("dpi")+":");g.appendChild(k);var E=document.createElement("select");E.style.width="180px";k=document.createElement("option");k.setAttribute("value","100");mxUtils.write(k,"100dpi");E.appendChild(k);k=document.createElement("option");k.setAttribute("value","200");mxUtils.write(k,"200dpi");E.appendChild(k);k=document.createElement("option");k.setAttribute("value","300");mxUtils.write(k,"300dpi");E.appendChild(k);k=document.createElement("option");-k.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 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?(B.value=Math.floor(h*T),D.value=Math.floor(m*T)):(y.value="100",B.value=h,D.value=m);f()});mxEvent.addListener(B,"change",function(){var T=parseInt(B.value)/h;0<T?(y.value=parseFloat((100*T).toFixed(2)),D.value=Math.floor(m*T)):(y.value="100",B.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)),B.value=Math.floor(h*-T)):(y.value="100",B.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,fa=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,fa,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;+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");+C.setAttribute("value",h);C.style.width="180px";k=document.createElement("td");k.appendChild(C);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("height")+":");g.appendChild(k);var E=document.createElement("input");E.setAttribute("value",m);E.style.width="180px";k=document.createElement("td");k.appendChild(E);g.appendChild(k);p.appendChild(g);g=document.createElement("tr");k=document.createElement("td");+k.style.fontSize="10pt";mxUtils.write(k,mxResources.get("dpi")+":");g.appendChild(k);var D=document.createElement("select");D.style.width="180px";k=document.createElement("option");k.setAttribute("value","100");mxUtils.write(k,"100dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","200");mxUtils.write(k,"200dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","300");mxUtils.write(k,"300dpi");D.appendChild(k);k=document.createElement("option");+k.setAttribute("value","400");mxUtils.write(k,"400dpi");D.appendChild(k);k=document.createElement("option");k.setAttribute("value","custom");mxUtils.write(k,mxResources.get("custom"));D.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 I=!1;mxEvent.addListener(D,"change",function(){"custom"==this.value?(this.style.display="none",G.style.display=+"",G.focus()):(G.value=this.value,I||(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="",I||(y.value=T))});k=document.createElement("td");k.appendChild(D);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 N=document.createElement("input");N.setAttribute("type","checkbox");N.checked=!1;k=document.createElement("td");k.appendChild(N);+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",+function(){I=!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),E.value=Math.floor(m*T)):(y.value="100",C.value=h,E.value=m);f()});mxEvent.addListener(C,"change",function(){var T=parseInt(C.value)/h;0<T?(y.value=parseFloat((100*T).toFixed(2)),E.value=Math.floor(m*T)):(y.value="100",C.value=h,E.value=m);f()});mxEvent.addListener(E,"change",function(){var T=parseInt(E.value)/m;0<T?(y.value=parseFloat((100*T).toFixed(2)),C.value=Math.floor(h*+T)):(y.value="100",C.value=h,E.value=m);f()});g=document.createElement("tr");k=document.createElement("td");k.setAttribute("align","right");k.style.paddingTop="22px";k.colSpan=2;var V=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(y.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var T=u.value,O=w.value,ca=Math.max(0,parseFloat(y.value)||100)/100,H=Math.max(0,parseInt(L.value)),S=e.background,fa=Math.max(1,parseInt(G.value));if(("svg"==O||"png"==O||+"pdf"==O)&&M.checked)S=null;else if(null==S||S==mxConstants.NONE)S="#ffffff";ExportDialog.lastBorderValue=H;ExportDialog.exportFile(a,T,O,S,ca,H,fa,N.checked)}}));V.className="geBtn gePrimaryBtn";var X=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});X.className="geBtn";a.editor.cancelFirst?(k.appendChild(X),k.appendChild(V)):(k.appendChild(V),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(),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<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=[],B=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(fa){return function(){for(var la=0,O=0;O<w.length;O++){if(w[O]==fa){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[B]+-":",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(B,p[M].name,p[M].value),B++;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 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(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)),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};+var EditDataDialog=function(a,b){function f(){0<L.value.length?V.removeAttribute("disabled"):V.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,E=null!=EditDataDialog.getDisplayIdForCell?EditDataDialog.getDisplayIdForCell(a,b):null,D=function(T,O){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);O=function(fa){return function(){for(var la=0,P=0;P<w.length;P++){if(w[P]==fa){y[P]=null;k.table.deleteRow(la+(null!=E?1:0));break}null!=y[P]&&la++}}}(O);mxEvent.addListener(H,"click",O);O=T.parentNode;ca.appendChild(T);ca.appendChild(H);O.appendChild(ca)};h=function(T,O,ca){w[T]=O;y[T]=k.addTextarea(w[C]++":",ca,2);y[T].style.width="100%";0<ca.indexOf("\n")&&y[T].setAttribute("rows","2");D(y[T],O);null!=m[O]&&0==m[O].editable&&y[T].setAttribute("disabled","disabled")};p=[];for(var G=g.getModel().getParent(b)==g.getModel().getRoot(),I=g.getCellStyle(b),M=0;M<u.length;M++)("label"!=u[M].nodeName||"1"==I.metaEdit||Graph.translateDiagram||G)&&"placeholders"!=u[M].nodeName&&p.push({name:u[M].nodeName,value:u[M].nodeValue});p.sort(function(T,O){return"label"==T.name?1:"label"==O.name?-1:T.name<O.name?-1:+T.name>O.name?1:0});if(null!=E){u=document.createElement("div");u.style.width="100%";u.style.fontSize="11px";u.style.textAlign="center";mxUtils.write(u,E);var N=k.addField(mxResources.get("id")+":",u);mxEvent.addListener(u,"dblclick",function(T){T=new FilenameDialog(a,E,mxResources.get("apply"),mxUtils.bind(this,function(O){if(null!=O&&0<O.length&&O!=E)if(g.model.isRoot(b)){var ca=a.getPageById(E);if(null!=ca)if(null==a.getPageById(O)){var H=a.getPageIndex(ca);0<=H&&(a.removePage(ca),ca.node.setAttribute("id",+O),E=O,N.innerHTML=mxUtils.htmlEntities(O),a.insertPage(ca,H))}else a.handleError({message:mxResources.get("alreadyExst",[mxResources.get("page")])})}else null==g.getModel().getCell(O)?(g.getModel().cellRemoved(b),b.setId(O),E=O,N.innerHTML=mxUtils.htmlEntities(O),g.getModel().cellAdded(b)):a.handleError({message:mxResources.get("alreadyExst",[O])})}),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 V=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 O=mxUtils.indexOf(w,T);if(0<=O&&null!=y[O])y[O].focus();else{d.cloneNode(!1).setAttribute(T,+"");0<=O&&(w.splice(O,1),y.splice(O,1));w.push(T);var ca=k.addTextarea(T+":","",2);ca.style.width="100%";y.push(ca);D(ca,T);ca.focus()}V.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&&V.click()});this.init=function(){0<y.length?y[0].focus():L.focus()};V.setAttribute("title",mxResources.get("addProperty"));V.setAttribute("disabled","disabled");V.style.textOverflow=+"ellipsis";V.style.position="absolute";V.style.overflow="hidden";V.style.width="144px";V.style.right="0px";V.className="geBtn";h.appendChild(V);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 O=g.getDataForCells([b],!0);T=new EmbedDialog(a,JSON.stringify(O,null,2),null,null,function(){console.log(O);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,O=0;O<w.length;O++)null==y[O]?d.removeAttribute(w[O]):(d.setAttribute(w[O],y[O].value),T=T||"placeholder"==w[O]&&"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);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",I=document.createElement("input"),I.setAttribute("type","checkbox"),I.style.marginRight="6px","1"==d.getAttribute("placeholders")&&(I.setAttribute("checked","checked"),I.defaultChecked=!0),mxEvent.addListener(I,"click",function(){"1"==d.getAttribute("placeholders")?d.removeAttribute("placeholders"):+d.setAttribute("placeholders","1")}),G.appendChild(I),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 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,fa,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",fa+" ("+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!=+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 O=L.get(p.getLayerForCells(p.getSelectionCells()));+null!=O?O.appendChild(T):null!=T.parentNode&&T.parentNode.removeChild(T)}function h(){function O(S,fa,la,P){var W=document.createElement("div");W.className="geToolbarContainer";L.put(la,W);W.style.overflow="hidden";W.style.position="relative";W.style.padding="4px";W.style.height="30px";W.style.display="flex";W.style.alignItems="center";W.style.borderWidth="0px 0px 1px 0px";W.style.borderStyle="solid";W.style.whiteSpace="nowrap";W.setAttribute("title",fa+" ("+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(W,"dragover",function(aa){aa.dataTransfer.dropEffect="move";y=S;aa.stopPropagation();aa.preventDefault()});mxEvent.addListener(W,"dragstart",function(aa){"true"!=ha.contentEditable&&(w=W,mxClient.IS_FF&&aa.dataTransfer.setData("Text","<layer/>"))});mxEvent.addListener(W,"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",-mxResources.get("lockUnlock"));var ta=p.getCurrentCellStyle(la);"1"==mxUtils.getValue(ta,"locked","0")?(ia.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(ia,90),V.style.color="red"):(ia.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(ia,40));p.isEnabled()&&(ia.style.cursor="pointer");mxEvent.addListener(ia,"click",function(aa){if(p.isEnabled()){var P=null;p.getModel().beginUpdate();try{P="1"==mxUtils.getValue(ta,"locked","0")?null:"1",p.setCellStyles("locked",P,[la])}finally{p.getModel().endUpdate()}"1"==-P&&p.removeSelectionCells(p.getModel().getDescendants(la));mxEvent.consume(aa)}});Y.appendChild(ia);mxUtils.write(ha,fa);ha.style.display="block";ha.style.whiteSpace="nowrap";ha.style.overflow="hidden";ha.style.textOverflow="ellipsis";ha.style.position="absolute";ha.style.padding="2px";ha.style.left="52px";ha.style.right="8px";Y.appendChild(ha);V.appendChild(Y);if(p.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)fa=document.createElement("div"),fa.style.display=+mxUtils.setOpacity(W,90)):(ia.setAttribute("src",Editor.hiddenImage),mxUtils.setOpacity(W,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",+mxResources.get("lockUnlock"));var ta=p.getCurrentCellStyle(la);"1"==mxUtils.getValue(ta,"locked","0")?(ia.setAttribute("src",Editor.lockedImage),mxUtils.setOpacity(ia,90),W.style.color="red"):(ia.setAttribute("src",Editor.unlockedImage),mxUtils.setOpacity(ia,40));p.isEnabled()&&(ia.style.cursor="pointer");mxEvent.addListener(ia,"click",function(aa){if(p.isEnabled()){var Q=null;p.getModel().beginUpdate();try{Q="1"==mxUtils.getValue(ta,"locked","0")?null:"1",p.setCellStyles("locked",Q,[la])}finally{p.getModel().endUpdate()}"1"==+Q&&p.removeSelectionCells(p.getModel().getDescendants(la));mxEvent.consume(aa)}});Y.appendChild(ia);mxUtils.write(ha,fa);ha.style.display="block";ha.style.whiteSpace="nowrap";ha.style.overflow="hidden";ha.style.textOverflow="ellipsis";ha.style.position="absolute";ha.style.padding="2px";ha.style.left="52px";ha.style.right="8px";Y.appendChild(ha);W.appendChild(Y);if(p.isEnabled()){if(mxClient.IS_TOUCH||mxClient.IS_POINTER||mxClient.IS_IE&&10>document.documentMode)fa=document.createElement("div"),fa.style.display="block",fa.style.textAlign="right",fa.style.whiteSpace="nowrap",fa.style.position="absolute",fa.style.right="16px",fa.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",fa.appendChild(Y),mxEvent.addListener(Y,"click",function(aa){p.isEnabled()&&p.addCell(la,p.model.root,-S-1);mxEvent.consume(aa)})),0<=S&&S<B-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",fa.appendChild(Y),mxEvent.addListener(Y,"click",function(aa){p.isEnabled()&&p.addCell(la,p.model.root,S+1);mxEvent.consume(aa)})),V.appendChild(fa);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))});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"));B=p.model.getChildCount(p.model.root);u.innerText="";K.clear();for(var ca=B-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],fa=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!=fa?(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 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 B=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 fa=p.getLayerForCells(p.getSelectionCells()),la=B-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==fa&&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 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",+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",fa.appendChild(Y),mxEvent.addListener(Y,"click",function(aa){p.isEnabled()&&p.addCell(la,p.model.root,S+1);mxEvent.consume(aa)})),W.appendChild(fa);mxClient.IS_SVG&&(!mxClient.IS_IE||10<=document.documentMode)&&+(W.setAttribute("draggable","true"),W.style.cursor="move")}mxEvent.addListener(W,"dblclick",function(aa){var Q=mxEvent.getSource(aa).nodeName;"INPUT"!=Q&&"IMG"!=Q&&"true"!=ha.contentEditable&&(m(la),mxEvent.consume(aa))});p.getDefaultParent()==la&&(W.classList.add("geActivePage"),W.style.fontWeight=p.isEnabled()?"bold":"",E=la);mxEvent.addListener(W,"click",function(aa){p.isEnabled()&&"true"!=ha.contentEditable&&(p.setDefaultParent(P),p.view.setCurrentRoot(null),mxEvent.isShiftDown(aa)&&p.setSelectionCells(la.children),+mxEvent.consume(aa))});u.appendChild(W)}p.isEnabled()?(X.classList.remove("mxDisabled"),N.classList.remove("mxDisabled"),V.classList.remove("mxDisabled"),I.classList.remove("mxDisabled")):(X.classList.add("mxDisabled"),N.classList.add("mxDisabled"),V.classList.add("mxDisabled"),I.classList.add("mxDisabled"));C=p.model.getChildCount(p.model.root);u.innerText="";L.clear();for(var ca=C-1;0<=ca;ca--)mxUtils.bind(this,function(S){O(ca,p.convertValueToString(S)||mxResources.get("background"),S,S)})(p.model.getChildAt(p.model.root,+ca));var H=p.convertValueToString(E)||mxResources.get("background");X.setAttribute("title",mxResources.get("removeIt",[H]));V.setAttribute("title",mxResources.get("duplicateIt",[H]));p.isSelectionEmpty()&&M.classList.add("mxDisabled");d()}function m(O){if(p.isEnabled()&&null!=O){var ca=L.get(O);if(null!=ca){var H=ca.getElementsByTagName("span");if(null!=H&&0<H.length){var S=H[0],fa=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(P){if("true"==S.contentEditable){S.contentEditable="false";var W=mxUtils.getTextContent(S);P&&W!=fa?(W=mxUtils.getTextContent(S),0<W.length?p.cellLabelChanged(O,W):p.cellLabelChanged(O,mxResources.get("untitledLayer"))):h()}};mxEvent.addListener(S,"keydown",function(P){if(13==P.keyCode||27==P.keyCode)la(13==P.keyCode),mxEvent.consume(P)});mxEvent.addListener(S,"blur",function(P){la(!0);mxEvent.consume(P)})}}}}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 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(O){O.dataTransfer.dropEffect="move";y=0;O.stopPropagation();O.preventDefault()});mxEvent.addListener(k,"drop",function(O){O.stopPropagation();+O.preventDefault()});var C=null,E=null,D=document.createElement("div");D.className="geToolbarContainer geDialogToolbar";var G=document.createElement("a");G.className="geButton";var I=G.cloneNode(!1);I.style.backgroundImage="url("+Editor.plusImage+")";I.setAttribute("title",mxResources.get("addLayer"));mxEvent.addListener(I,"click",function(O){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(O)});+p.isEnabled()||I.classList.add("mxDisabled");D.appendChild(I);var M=G.cloneNode();M.style.backgroundImage="url("+Editor.layersImage+")";M.setAttribute("title",mxUtils.trim(mxResources.get("moveSelectionTo",["..."])));mxEvent.addListener(M,"click",function(O){if(p.isEnabled()&&!p.isSelectionEmpty()){var ca=mxUtils.getOffset(M);a.showPopupMenu(mxUtils.bind(this,function(H,S){for(var fa=p.getLayerForCells(p.getSelectionCells()),la=C-1;0<=la;la--)mxUtils.bind(this,function(P){var W="1"==mxUtils.getValue(p.getCurrentCellStyle(P),+"locked","0"),Y=H.addItem(p.convertValueToString(P)||mxResources.get("background"),null,mxUtils.bind(this,function(){W||p.moveCells(p.getSelectionCells(),0,0,!1,P)}),S,null,null,!W);W?H.addCheckmark(Y,Editor.lockedImage):P==fa&&H.addCheckmark(Y,Editor.checkmarkImage)})(p.model.getChildAt(p.model.root,la))}),ca.x,ca.y+M.offsetHeight,O)}});D.appendChild(M);var N=G.cloneNode(!1);N.style.backgroundImage="url("+Editor.editImage+")";N.setAttribute("title",mxResources.get("editData"));mxEvent.addListener(N,+"click",function(O){p.isEnabled()&&a.showDataDialog(E);mxEvent.consume(O)});p.isEnabled()||N.classList.add("mxDisabled");D.appendChild(N);var L=new mxDictionary,V=G.cloneNode(!1);V.style.backgroundImage="url("+Editor.duplicateImage+")";V.setAttribute("title",mxResources.get("duplicate"));mxEvent.addListener(V,"click",function(O){if(p.isEnabled()){O=null;p.model.beginUpdate();try{O=p.cloneCell(E),p.cellLabelChanged(O,mxResources.get("untitledLayer")),O.setVisible(!0),O=p.addCell(O,p.model.root),p.setDefaultParent(O)}finally{p.model.endUpdate()}null==+O||p.isCellLocked(O)||p.selectAll(O)}});p.isEnabled()||V.classList.add("mxDisabled");D.appendChild(V);var X=G.cloneNode(!1);X.style.backgroundImage="url("+Editor.trashImage+")";X.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(X,"click",function(O){if(p.isEnabled()){p.model.beginUpdate();try{var ca=p.model.root.getIndex(E);p.removeCells([E],!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(O)});p.isEnabled()||X.classList.add("mxDisabled");D.appendChild(X);k.appendChild(D);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(){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";@@ -12794,7 +12795,7 @@ R.appendChild(Q);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(Q);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.2.3";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.2.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&&"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:{useWidth:1E3,useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',@@ -13484,8 +13485,7 @@ DrawioFileSync.prototype.stop=function(){null!=this.pusher?(null!=this.pusher.cothis.polling=null);this.updateOnlineState();this.updateStatus()};DrawioFileSync.prototype.destroy=function(){if(null!=this.channelId){var b=this.file.getCurrentUser(),k={a:"leave"};null!=b&&(k.name=encodeURIComponent(b.displayName),k.uid=b.id);this.notify(this.createMessage(k))}this.stop();null!=this.onlineListener&&(mxEvent.removeListener(window,"offline",this.onlineListener),mxEvent.removeListener(window,"online",this.onlineListener),this.onlineListener=null);null!=this.autosaveListener&&(this.ui.editor.removeListener(this.autosaveListener),this.autosaveListener=null);null!=this.visibleListener&&(mxEvent.removeListener(document,"visibilitychange",this.visibleListener),this.visibleListener=null);null!=this.activityListener&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.activityListener),mxEvent.removeListener(document,"keypress",this.activityListener),mxEvent.removeListener(window,"focus",this.activityListener),!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&(mxEvent.removeListener(document,"touchstart",this.activityListener),-mxEvent.removeListener(document,"touchmove",this.activityListener)),this.activityListener=null);null!=this.p2pCollab&&this.p2pCollab.destroy()};App=function(b,k,n){EditorUi.call(this,b,k,null!=n?n:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var d=this.getCurrentFile();null!=d&&d.isModified()&&(d.getHash(),d.savingFile&&null!=d.savingFileTime&&(Date.now(),d.savingFileTime.getTime()),null!=d.ageStart&&(Date.now(),d.ageStart.getTime()),d.isAutosave(),null!=d.opened&&(Date.now(),d.opened.getTime()),null!=d.lastSaved&&(Date.now(),d.lastSaved.getTime()),-null!=d.lastChanged&&(Date.now(),d.lastChanged.getTime()),Date.now(),App.startTime.getTime(),d.constructor==DriveFile&&null!=d.desc&&null!=this.drive&&d.getSize())}));this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var d=this.getCurrentFile();null!=d&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+d.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave?"on":"off")})}));mxClient.IS_SVG?mxGraph.prototype.warningImage.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE7SURBVHjaYvz//z8DJQAggBjwGXDuHMP/tWuD/uPTCxBAOA0AaQRK/f/+XeJ/cbHlf1wGAAQQTgPu3QNLgfHSpZo4DQAIIKwGwGyH4e/fFbG6AiQJEEAs2Ew2NFzH8OOHBMO6dT/A/KCg7wxGRh+wuhQggDBcALMdFIAcHBxgDGJjcwVIIUAAYbhAUXEdVos4OO4DXcGBIQ4QQCguQPY7sgtgAYruCpAgQACx4LJdU1OCwctLEcyWlLwPJF+AXQE0EMUBAAEEdwF6yMOiD4RRY0QT7gqQAEAAseDzu6XldYYPH9DD4joQa8L5AAEENgWb7SBcXa0JDQMBrK4AcQACiAlfyOMCEFdAnAYQQEz4FLa0XGf4/v0H0IIPONUABBAjyBmMjIwMS5cK/L927QORbtBkaG29DtYLEGAAH6f7oq3Zc+kAAAAASUVORK5CYII=":+mxEvent.removeListener(document,"touchmove",this.activityListener)),this.activityListener=null);null!=this.p2pCollab&&this.p2pCollab.destroy()};App=function(b,k,n){EditorUi.call(this,b,k,null!=n?n:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var d=this.getCurrentFile();null!=d&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+d.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave?"on":"off")})}));mxClient.IS_SVG?mxGraph.prototype.warningImage.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE7SURBVHjaYvz//z8DJQAggBjwGXDuHMP/tWuD/uPTCxBAOA0AaQRK/f/+XeJ/cbHlf1wGAAQQTgPu3QNLgfHSpZo4DQAIIKwGwGyH4e/fFbG6AiQJEEAs2Ew2NFzH8OOHBMO6dT/A/KCg7wxGRh+wuhQggDBcALMdFIAcHBxgDGJjcwVIIUAAYbhAUXEdVos4OO4DXcGBIQ4QQCguQPY7sgtgAYruCpAgQACx4LJdU1OCwctLEcyWlLwPJF+AXQE0EMUBAAEEdwF6yMOiD4RRY0QT7gqQAEAAseDzu6XldYYPH9DD4joQa8L5AAEENgWb7SBcXa0JDQMBrK4AcQACiAlfyOMCEFdAnAYQQEz4FLa0XGf4/v0H0IIPONUABBAjyBmMjIwMS5cK/L927QORbtBkaG29DtYLEGAAH6f7oq3Zc+kAAAAASUVORK5CYII=":(new Image).src=mxGraph.prototype.warningImage.src;window.geOpenWindow=mxUtils.bind(this,function(d,x,z){if("1"==urlParams.openInSameWin||navigator.standalone)null!=z&&z();else{var y=null;try{y=window.open(d)}catch(F){}null==y||void 0===y?this.showDialog((new PopupDialog(this,d,x,z)).container,340,140,!0,!0):null!=x&&x()}});this.updateDocumentTitle();this.updateUi();window.showOpenAlert=mxUtils.bind(this,function(d){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(d)});this.editor.chromeless&&!this.editor.editable||this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(b=0;b<App.DrawPlugins.length;b++)try{App.DrawPlugins[b](this)}catch(d){null!=window.console&&console.log("Plugin Error:",d,App.DrawPlugins[b])}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}window.Draw.loadPlugin=mxUtils.bind(this,function(d){try{d(this)}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}});setTimeout(mxUtils.bind(this,function(){0<App.embedModePluginsCount&&(App.embedModePluginsCount=0,this.initializeEmbedMode())}),5E3)}this.load()};App.ERROR_TIMEOUT="timeout";App.ERROR_BUSY="busy";App.ERROR_UNKNOWN="unknown";App.MODE_GOOGLE="google";App.MODE_DROPBOX="dropbox";App.MODE_ONEDRIVE="onedrive";App.MODE_GITHUB="github";App.MODE_GITLAB="gitlab";App.MODE_DEVICE="device";App.MODE_BROWSER="browser";App.MODE_TRELLO="trello";App.MODE_EMBED="embed";App.MODE_ATLAS="atlas";App.DROPBOX_APPKEY=window.DRAWIO_DROPBOX_ID;App.DROPBOX_URL="js/dropbox/Dropbox-sdk.min.js";App.DROPINS_URL="https://www.dropbox.com/static/api/2/dropins.js";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.jsdeleted file mode 100644index e8380dd8a..000000000--- a/src/main/webapp/js/serviceworker/service-worker-ac-draw-io.js+++ /dev/null@@ -1,2 +0,0 @@-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:"7536229d93d7ba2ef1620b8a14fc32a5"},{url:"js/main.js",revision:"a8d40469d3d72ab4b11059362f3dd825"},{url:"js/app.min.js",revision:"8570138b465673952368f1406dd5a4de"},{url:"js/extensions.min.js",revision:"65998885ad5af2f6a14315f3cd9e4d4c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"2932a9b572ced97336764408a2266f79"},{url:"js/shapes-14-6-5.min.js",revision:"04c8d9b709f15514592b337ad33aad74"},{url:"js/math-print.js",revision:"2906865fa4f7824eab9b648a6888db80"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"styles/grapheditor.css",revision:"23cbac10c03279392888893b3f694007"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"e863f5e6833892f22492211663e3efe9"},{url:"js/viewer-static.min.js",revision:"dfcebfbe5a5478e2052d1fd421d4f396"},{url:"plugins/cConf-comments.js",revision:"e4a4b5a0fb22393693d3b62968c50644"},{url:"plugins/cConf-1-4-8.js",revision:"9b5e217aed7dd67a665ea42311b4b0c3"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"f504cd3dc65149ee534eca2519545a26"},{url:"connect/new_common/cac.js",revision:"443fb416a407b8a183d0c8f4ecf68808"},{url:"connect/gdrive_common/gac.js",revision:"ac3a28fa16c3e6a36af854fcfc018a81"},{url:"connect/onedrive_common/ac.js",revision:"37c626698573f4419ab9f7ecd7b4bb01"},{url:"connect/confluence/viewer-init.js",revision:"17d1e02ebb74569f2daa7cf18fed0b02"},{url:"connect/confluence/viewer.js",revision:"f25b33ded1392fbb5fcf11b7001f90cd"},{url:"connect/confluence/viewer-1-4-42.html",revision:"69c1bca25fd4889bf832e8441c972268"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"4ad77ae3f08c19eddac932b2fa8c7068"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"489bc44e46d6481277c3f2a5d81a2db6"},{url:"connect/confluence/includeDiagram.html",revision:"01b04b3f54f1e2e63fcf1df033d24519"},{url:"connect/confluence/macro-editor.js",revision:"87e040c6d8cd60105ec027eae13ddf37"},{url:"resources/dia.txt",revision:"66fe818e43b096f060797233ac192e69"},{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.mapdeleted file mode 100644index f1e2da3af..000000000--- a/src/main/webapp/js/serviceworker/service-worker-ac-draw-io.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"service-worker-ac-draw-io.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/1a42b8e77800efd5f85938c494571a0d/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\": \"7536229d93d7ba2ef1620b8a14fc32a5\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"a8d40469d3d72ab4b11059362f3dd825\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"8570138b465673952368f1406dd5a4de\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"65998885ad5af2f6a14315f3cd9e4d4c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"2932a9b572ced97336764408a2266f79\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"04c8d9b709f15514592b337ad33aad74\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"2906865fa4f7824eab9b648a6888db80\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"23cbac10c03279392888893b3f694007\"\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\": \"e863f5e6833892f22492211663e3efe9\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"dfcebfbe5a5478e2052d1fd421d4f396\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"e4a4b5a0fb22393693d3b62968c50644\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"9b5e217aed7dd67a665ea42311b4b0c3\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"f504cd3dc65149ee534eca2519545a26\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"443fb416a407b8a183d0c8f4ecf68808\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"ac3a28fa16c3e6a36af854fcfc018a81\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"37c626698573f4419ab9f7ecd7b4bb01\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"17d1e02ebb74569f2daa7cf18fed0b02\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"f25b33ded1392fbb5fcf11b7001f90cd\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"69c1bca25fd4889bf832e8441c972268\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"4ad77ae3f08c19eddac932b2fa8c7068\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"489bc44e46d6481277c3f2a5d81a2db6\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"01b04b3f54f1e2e63fcf1df033d24519\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"87e040c6d8cd60105ec027eae13ddf37\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"66fe818e43b096f060797233ac192e69\"\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.jsdeleted file mode 100644index c49359088..000000000--- a/src/main/webapp/js/serviceworker/service-worker-aj-draw-io.js+++ /dev/null@@ -1,2 +0,0 @@-if(!self.define){let e,i={};const r=(r,n)=>(r=new URL(r+".js",n).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=(n,s)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(i[c])return;let a={};const o=e=>r(e,c),d={module:{uri:c},exports:a,require:o};i[c]=Promise.all(n.map((e=>d[e]||o(e)))).then((e=>(s(...e),a)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"7536229d93d7ba2ef1620b8a14fc32a5"},{url:"js/main.js",revision:"a8d40469d3d72ab4b11059362f3dd825"},{url:"js/app.min.js",revision:"8570138b465673952368f1406dd5a4de"},{url:"js/extensions.min.js",revision:"65998885ad5af2f6a14315f3cd9e4d4c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"2932a9b572ced97336764408a2266f79"},{url:"js/shapes-14-6-5.min.js",revision:"04c8d9b709f15514592b337ad33aad74"},{url:"js/math-print.js",revision:"2906865fa4f7824eab9b648a6888db80"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"styles/grapheditor.css",revision:"23cbac10c03279392888893b3f694007"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"e863f5e6833892f22492211663e3efe9"},{url:"js/viewer-static.min.js",revision:"dfcebfbe5a5478e2052d1fd421d4f396"},{url:"connect/jira/editor-1-3-3.html",revision:"41dc8af9576b47f359cff19fff7a41c2"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"4836f5e4308abe57830e441518364f23"},{url:"connect/jira/viewerPanel2.html",revision:"0dd1ee1343a46b5c03aedbc587450b84"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"abed474e47c0c41a5ad2366b4828f77a"},{url:"connect/jira/viewerPanel.js",revision:"85011efa68d638da560871ee2ab3a6fe"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"3dc56c6566abaa7af151a8359e5bb556"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"8f4741834f5ea4698a6737bf35c6bf90"},{url:"connect/jira/fullscreen-viewer.js",revision:"a6be96b8ddc5a25196925713cf34d571"},{url:"plugins/connectJira.js",revision:"db54dba28f9f2510a00411a410c837a0"},{url:"connect/new_common/cac.js",revision:"443fb416a407b8a183d0c8f4ecf68808"},{url:"connect/gdrive_common/gac.js",revision:"ac3a28fa16c3e6a36af854fcfc018a81"},{url:"connect/onedrive_common/ac.js",revision:"37c626698573f4419ab9f7ecd7b4bb01"},{url:"resources/dia.txt",revision:"66fe818e43b096f060797233ac192e69"},{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.mapdeleted file mode 100644index 0d86dff5b..000000000--- a/src/main/webapp/js/serviceworker/service-worker-aj-draw-io.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"service-worker-aj-draw-io.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/bf4f2656a5e13841f197f5291ed31483/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\": \"7536229d93d7ba2ef1620b8a14fc32a5\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"a8d40469d3d72ab4b11059362f3dd825\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"8570138b465673952368f1406dd5a4de\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"65998885ad5af2f6a14315f3cd9e4d4c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"2932a9b572ced97336764408a2266f79\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"04c8d9b709f15514592b337ad33aad74\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"2906865fa4f7824eab9b648a6888db80\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"23cbac10c03279392888893b3f694007\"\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\": \"e863f5e6833892f22492211663e3efe9\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"dfcebfbe5a5478e2052d1fd421d4f396\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"41dc8af9576b47f359cff19fff7a41c2\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"4836f5e4308abe57830e441518364f23\"\n },\n {\n \"url\": \"connect/jira/viewerPanel2.html\",\n \"revision\": \"0dd1ee1343a46b5c03aedbc587450b84\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"abed474e47c0c41a5ad2366b4828f77a\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"85011efa68d638da560871ee2ab3a6fe\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"3dc56c6566abaa7af151a8359e5bb556\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"8f4741834f5ea4698a6737bf35c6bf90\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"a6be96b8ddc5a25196925713cf34d571\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"db54dba28f9f2510a00411a410c837a0\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"443fb416a407b8a183d0c8f4ecf68808\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"ac3a28fa16c3e6a36af854fcfc018a81\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"37c626698573f4419ab9f7ecd7b4bb01\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"66fe818e43b096f060797233ac192e69\"\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.jsdeleted file mode 100644index bb4b8c26c..000000000--- a/src/main/webapp/js/serviceworker/service-worker-app-diagrams-net.js+++ /dev/null@@ -1,2 +0,0 @@-if(!self.define){let e,i={};const s=(s,a)=>(s=new URL(s+".js",a).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(a,r)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(i[c])return;let o={};const d=e=>s(e,c),f={module:{uri:c},exports:o,require:d};i[c]=Promise.all(a.map((e=>f[e]||d(e)))).then((e=>(r(...e),o)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"7536229d93d7ba2ef1620b8a14fc32a5"},{url:"js/main.js",revision:"a8d40469d3d72ab4b11059362f3dd825"},{url:"js/app.min.js",revision:"8570138b465673952368f1406dd5a4de"},{url:"js/extensions.min.js",revision:"65998885ad5af2f6a14315f3cd9e4d4c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"2932a9b572ced97336764408a2266f79"},{url:"js/shapes-14-6-5.min.js",revision:"04c8d9b709f15514592b337ad33aad74"},{url:"js/math-print.js",revision:"2906865fa4f7824eab9b648a6888db80"},{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:"23cbac10c03279392888893b3f694007"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"e863f5e6833892f22492211663e3efe9"},{url:"connect/new_common/cac.js",revision:"443fb416a407b8a183d0c8f4ecf68808"},{url:"connect/gdrive_common/gac.js",revision:"ac3a28fa16c3e6a36af854fcfc018a81"},{url:"connect/onedrive_common/ac.js",revision:"37c626698573f4419ab9f7ecd7b4bb01"},{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:"66fe818e43b096f060797233ac192e69"},{url:"resources/dia_da.txt",revision:"2a4b2ad28cadf4590d62d490f88016eb"},{url:"resources/dia_de.txt",revision:"1388b25f6ecde6e330bf323017062c70"},{url:"resources/dia_es.txt",revision:"68daba33593d4fb5a1004ab3b6ac984d"},{url:"resources/dia_fr.txt",revision:"8641024bf63230b2786879723aaf0f0a"},{url:"resources/dia_id.txt",revision:"d571f949ace55bb011ab43c91f833b8e"},{url:"resources/dia_it.txt",revision:"7ff410073cee5c90d87df5dd7afd9a52"},{url:"resources/dia_ja.txt",revision:"6d704659a921836bac933bbc8e2cf935"},{url:"resources/dia_ko.txt",revision:"96c2009c94ce23da09702e42de356231"},{url:"resources/dia_nl.txt",revision:"cc83861bad1c0ee6407033e11dcf2a6e"},{url:"resources/dia_pl.txt",revision:"4576ed4793b8b1b6cea9e42e43563ff8"},{url:"resources/dia_pt.txt",revision:"4edd5e515438c38e3f1dc740a9004fd1"},{url:"resources/dia_ru.txt",revision:"40a32183dfcd22b3f1cbef39010193a4"},{url:"resources/dia_vi.txt",revision:"847c74fd08d2a5a5a0432a6a82ed2660"},{url:"resources/dia_zh.txt",revision:"e1b3588ff3149ec2123d1dd5c1f2e77a"},{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.mapdeleted file mode 100644index 70cc883e1..000000000--- a/src/main/webapp/js/serviceworker/service-worker-app-diagrams-net.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"service-worker-app-diagrams-net.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/b13f2000e570f091a65ac57357494b2d/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\": \"7536229d93d7ba2ef1620b8a14fc32a5\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"a8d40469d3d72ab4b11059362f3dd825\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"8570138b465673952368f1406dd5a4de\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"65998885ad5af2f6a14315f3cd9e4d4c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"2932a9b572ced97336764408a2266f79\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"04c8d9b709f15514592b337ad33aad74\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"2906865fa4f7824eab9b648a6888db80\"\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\": \"23cbac10c03279392888893b3f694007\"\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\": \"e863f5e6833892f22492211663e3efe9\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"443fb416a407b8a183d0c8f4ecf68808\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"ac3a28fa16c3e6a36af854fcfc018a81\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"37c626698573f4419ab9f7ecd7b4bb01\"\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\": \"66fe818e43b096f060797233ac192e69\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"2a4b2ad28cadf4590d62d490f88016eb\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"1388b25f6ecde6e330bf323017062c70\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"68daba33593d4fb5a1004ab3b6ac984d\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"8641024bf63230b2786879723aaf0f0a\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"d571f949ace55bb011ab43c91f833b8e\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"7ff410073cee5c90d87df5dd7afd9a52\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"6d704659a921836bac933bbc8e2cf935\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"96c2009c94ce23da09702e42de356231\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"cc83861bad1c0ee6407033e11dcf2a6e\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"4576ed4793b8b1b6cea9e42e43563ff8\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"4edd5e515438c38e3f1dc740a9004fd1\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"40a32183dfcd22b3f1cbef39010193a4\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"847c74fd08d2a5a5a0432a6a82ed2660\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"e1b3588ff3149ec2123d1dd5c1f2e77a\"\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.jsdeleted file mode 100644index 2ef1048ec..000000000--- a/src/main/webapp/js/serviceworker/service-worker-embed-viewer-diagrams-net.js+++ /dev/null@@ -1,2 +0,0 @@-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,n)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let d={};const c=e=>i(e,o),a={module:{uri:o},exports:d,require:c};s[o]=Promise.all(r.map((e=>a[e]||c(e)))).then((e=>(n(...e),d)))}}define(["./workbox-72a83b64"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"7536229d93d7ba2ef1620b8a14fc32a5"},{url:"js/main.js",revision:"a8d40469d3d72ab4b11059362f3dd825"},{url:"js/app.min.js",revision:"8570138b465673952368f1406dd5a4de"},{url:"js/extensions.min.js",revision:"65998885ad5af2f6a14315f3cd9e4d4c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"2932a9b572ced97336764408a2266f79"},{url:"js/shapes-14-6-5.min.js",revision:"04c8d9b709f15514592b337ad33aad74"},{url:"js/math-print.js",revision:"2906865fa4f7824eab9b648a6888db80"},{url:"index.html",revision:"9de11c65ec13b24c73ace7042bc529cc"},{url:"styles/grapheditor.css",revision:"23cbac10c03279392888893b3f694007"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"e863f5e6833892f22492211663e3efe9"},{url:"js/viewer-static.min.js",revision:"dfcebfbe5a5478e2052d1fd421d4f396"},{url:"resources/dia.txt",revision:"66fe818e43b096f060797233ac192e69"},{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.mapdeleted file mode 100644index 3b67f608d..000000000--- a/src/main/webapp/js/serviceworker/service-worker-embed-viewer-diagrams-net.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"service-worker-embed-viewer-diagrams-net.js","sources":["../../../../../../private/var/folders/5p/vxfp3wpj4slfjt2m12dxyp9c0000gn/T/736074a167854ead7f3bc5c8f806d850/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\": \"7536229d93d7ba2ef1620b8a14fc32a5\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"a8d40469d3d72ab4b11059362f3dd825\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"8570138b465673952368f1406dd5a4de\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"65998885ad5af2f6a14315f3cd9e4d4c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"2932a9b572ced97336764408a2266f79\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"04c8d9b709f15514592b337ad33aad74\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"2906865fa4f7824eab9b648a6888db80\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"9de11c65ec13b24c73ace7042bc529cc\"\n },\n {\n \"url\": \"styles/grapheditor.css\",\n \"revision\": \"23cbac10c03279392888893b3f694007\"\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\": \"e863f5e6833892f22492211663e3efe9\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"dfcebfbe5a5478e2052d1fd421d4f396\"\n },\n {\n \"url\": \"resources/dia.txt\",\n \"revision\": \"66fe818e43b096f060797233ac192e69\"\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/serviceworker/workbox-05b6c01b.js.map b/src/main/webapp/js/serviceworker/workbox-05b6c01b.js.mapdeleted file mode 100644index 7de7875d4..000000000--- a/src/main/webapp/js/serviceworker/workbox-05b6c01b.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"workbox-05b6c01b.js","sources":["../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_version.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/logger.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/models/messages/messageGenerator.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/WorkboxError.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-routing/_version.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/constants.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/normalizeHandler.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-routing/Route.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-routing/RegExpRoute.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-routing/Router.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/getOrCreateDefaultRouter.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/cacheNames.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/waitUntil.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/_version.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/createCacheKey.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/PrecacheInstallReportPlugin.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/PrecacheCacheKeyPlugin.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/canConstructResponseFromBodyStream.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/copyResponse.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/cacheMatchIgnoreParams.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/Deferred.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/models/quotaErrorCallbacks.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-strategies/_version.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-strategies/StrategyHandler.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/timeout.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/getFriendlyURL.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/executeQuotaErrorCallbacks.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-strategies/Strategy.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheStrategy.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheController.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/getOrCreatePrecacheController.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheRoute.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/generateURLVariations.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/removeIgnoredSearchParams.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/addRoute.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-routing/registerRoute.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.js","../../../../../usr/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precache.js"],"sourcesContent":["\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:core:7.2.0'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst logger = (process.env.NODE_ENV === 'production'\n ? null\n : (() => {\n // Don't overwrite this value if it's already set.\n // See https://github.com/GoogleChrome/workbox/pull/2284#issuecomment-560470923\n if (!('__WB_DISABLE_DEV_LOGS' in globalThis)) {\n self.__WB_DISABLE_DEV_LOGS = false;\n }\n let inGroup = false;\n const methodToColorMap = {\n debug: `#7f8c8d`,\n log: `#2ecc71`,\n warn: `#f39c12`,\n error: `#c0392b`,\n groupCollapsed: `#3498db`,\n groupEnd: null, // No colored prefix on groupEnd\n };\n const print = function (method, args) {\n if (self.__WB_DISABLE_DEV_LOGS) {\n return;\n }\n if (method === 'groupCollapsed') {\n // Safari doesn't print all console.groupCollapsed() arguments:\n // https://bugs.webkit.org/show_bug.cgi?id=182754\n if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n console[method](...args);\n return;\n }\n }\n const styles = [\n `background: ${methodToColorMap[method]}`,\n `border-radius: 0.5em`,\n `color: white`,\n `font-weight: bold`,\n `padding: 2px 0.5em`,\n ];\n // When in a group, the workbox prefix is not displayed.\n const logPrefix = inGroup ? [] : ['%cworkbox', styles.join(';')];\n console[method](...logPrefix, ...args);\n if (method === 'groupCollapsed') {\n inGroup = true;\n }\n if (method === 'groupEnd') {\n inGroup = false;\n }\n };\n // eslint-disable-next-line @typescript-eslint/ban-types\n const api = {};\n const loggerMethods = Object.keys(methodToColorMap);\n for (const key of loggerMethods) {\n const method = key;\n api[method] = (...args) => {\n print(method, args);\n };\n }\n return api;\n })());\nexport { logger };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { messages } from './messages.js';\nimport '../../_version.js';\nconst fallback = (code, ...args) => {\n let msg = code;\n if (args.length > 0) {\n msg += ` :: ${JSON.stringify(args)}`;\n }\n return msg;\n};\nconst generatorFunction = (code, details = {}) => {\n const message = messages[code];\n if (!message) {\n throw new Error(`Unable to find message for code '${code}'.`);\n }\n return message(details);\n};\nexport const messageGenerator = process.env.NODE_ENV === 'production' ? fallback : generatorFunction;\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { messageGenerator } from '../models/messages/messageGenerator.js';\nimport '../_version.js';\n/**\n * Workbox errors should be thrown with this class.\n * This allows use to ensure the type easily in tests,\n * helps developers identify errors from workbox\n * easily and allows use to optimise error\n * messages correctly.\n *\n * @private\n */\nclass WorkboxError extends Error {\n /**\n *\n * @param {string} errorCode The error code that\n * identifies this particular error.\n * @param {Object=} details Any relevant arguments\n * that will help developers identify issues should\n * be added as a key on the context object.\n */\n constructor(errorCode, details) {\n const message = messageGenerator(errorCode, details);\n super(message);\n this.name = errorCode;\n this.details = details;\n }\n}\nexport { WorkboxError };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:routing:7.2.0'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * The default HTTP method, 'GET', used when there's no specific method\n * configured for a route.\n *\n * @type {string}\n *\n * @private\n */\nexport const defaultMethod = 'GET';\n/**\n * The list of valid HTTP methods associated with requests that could be routed.\n *\n * @type {Array<string>}\n *\n * @private\n */\nexport const validMethods = [\n 'DELETE',\n 'GET',\n 'HEAD',\n 'PATCH',\n 'POST',\n 'PUT',\n];\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport '../_version.js';\n/**\n * @param {function()|Object} handler Either a function, or an object with a\n * 'handle' method.\n * @return {Object} An object with a handle method.\n *\n * @private\n */\nexport const normalizeHandler = (handler) => {\n if (handler && typeof handler === 'object') {\n if (process.env.NODE_ENV !== 'production') {\n assert.hasMethod(handler, 'handle', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'handler',\n });\n }\n return handler;\n }\n else {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(handler, 'function', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'handler',\n });\n }\n return { handle: handler };\n }\n};\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { defaultMethod, validMethods } from './utils/constants.js';\nimport { normalizeHandler } from './utils/normalizeHandler.js';\nimport './_version.js';\n/**\n * A `Route` consists of a pair of callback functions, \"match\" and \"handler\".\n * The \"match\" callback determine if a route should be used to \"handle\" a\n * request by returning a non-falsy value if it can. The \"handler\" callback\n * is called when there is a match and should return a Promise that resolves\n * to a `Response`.\n *\n * @memberof workbox-routing\n */\nclass Route {\n /**\n * Constructor for Route class.\n *\n * @param {workbox-routing~matchCallback} match\n * A callback function that determines whether the route matches a given\n * `fetch` event by returning a non-falsy value.\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resolving to a Response.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n */\n constructor(match, handler, method = defaultMethod) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(match, 'function', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'match',\n });\n if (method) {\n assert.isOneOf(method, validMethods, { paramName: 'method' });\n }\n }\n // These values are referenced directly by Router so cannot be\n // altered by minificaton.\n this.handler = normalizeHandler(handler);\n this.match = match;\n this.method = method;\n }\n /**\n *\n * @param {workbox-routing-handlerCallback} handler A callback\n * function that returns a Promise resolving to a Response\n */\n setCatchHandler(handler) {\n this.catchHandler = normalizeHandler(handler);\n }\n}\nexport { Route };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { Route } from './Route.js';\nimport './_version.js';\n/**\n * RegExpRoute makes it easy to create a regular expression based\n * {@link workbox-routing.Route}.\n *\n * For same-origin requests the RegExp only needs to match part of the URL. For\n * requests against third-party servers, you must define a RegExp that matches\n * the start of the URL.\n *\n * @memberof workbox-routing\n * @extends workbox-routing.Route\n */\nclass RegExpRoute extends Route {\n /**\n * If the regular expression contains\n * [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references},\n * the captured values will be passed to the\n * {@link workbox-routing~handlerCallback} `params`\n * argument.\n *\n * @param {RegExp} regExp The regular expression to match against URLs.\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n */\n constructor(regExp, handler, method) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(regExp, RegExp, {\n moduleName: 'workbox-routing',\n className: 'RegExpRoute',\n funcName: 'constructor',\n paramName: 'pattern',\n });\n }\n const match = ({ url }) => {\n const result = regExp.exec(url.href);\n // Return immediately if there's no match.\n if (!result) {\n return;\n }\n // Require that the match start at the first character in the URL string\n // if it's a cross-origin request.\n // See https://github.com/GoogleChrome/workbox/issues/281 for the context\n // behind this behavior.\n if (url.origin !== location.origin && result.index !== 0) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`The regular expression '${regExp.toString()}' only partially matched ` +\n `against the cross-origin URL '${url.toString()}'. RegExpRoute's will only ` +\n `handle cross-origin requests if they match the entire URL.`);\n }\n return;\n }\n // If the route matches, but there aren't any capture groups defined, then\n // this will return [], which is truthy and therefore sufficient to\n // indicate a match.\n // If there are capture groups, then it will return their values.\n return result.slice(1);\n };\n super(match, handler, method);\n }\n}\nexport { RegExpRoute };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { defaultMethod } from './utils/constants.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { normalizeHandler } from './utils/normalizeHandler.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport './_version.js';\n/**\n * The Router can be used to process a `FetchEvent` using one or more\n * {@link workbox-routing.Route}, responding with a `Response` if\n * a matching route exists.\n *\n * If no route matches a given a request, the Router will use a \"default\"\n * handler if one is defined.\n *\n * Should the matching Route throw an error, the Router will use a \"catch\"\n * handler if one is defined to gracefully deal with issues and respond with a\n * Request.\n *\n * If a request matches multiple routes, the **earliest** registered route will\n * be used to respond to the request.\n *\n * @memberof workbox-routing\n */\nclass Router {\n /**\n * Initializes a new Router.\n */\n constructor() {\n this._routes = new Map();\n this._defaultHandlerMap = new Map();\n }\n /**\n * @return {Map<string, Array<workbox-routing.Route>>} routes A `Map` of HTTP\n * method name ('GET', etc.) to an array of all the corresponding `Route`\n * instances that are registered.\n */\n get routes() {\n return this._routes;\n }\n /**\n * Adds a fetch event listener to respond to events when a route matches\n * the event's request.\n */\n addFetchListener() {\n // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705\n self.addEventListener('fetch', ((event) => {\n const { request } = event;\n const responsePromise = this.handleRequest({ request, event });\n if (responsePromise) {\n event.respondWith(responsePromise);\n }\n }));\n }\n /**\n * Adds a message event listener for URLs to cache from the window.\n * This is useful to cache resources loaded on the page prior to when the\n * service worker started controlling it.\n *\n * The format of the message data sent from the window should be as follows.\n * Where the `urlsToCache` array may consist of URL strings or an array of\n * URL string + `requestInit` object (the same as you'd pass to `fetch()`).\n *\n * ```\n * {\n * type: 'CACHE_URLS',\n * payload: {\n * urlsToCache: [\n * './script1.js',\n * './script2.js',\n * ['./script3.js', {mode: 'no-cors'}],\n * ],\n * },\n * }\n * ```\n */\n addCacheListener() {\n // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705\n self.addEventListener('message', ((event) => {\n // event.data is type 'any'\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (event.data && event.data.type === 'CACHE_URLS') {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const { payload } = event.data;\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Caching URLs from the window`, payload.urlsToCache);\n }\n const requestPromises = Promise.all(payload.urlsToCache.map((entry) => {\n if (typeof entry === 'string') {\n entry = [entry];\n }\n const request = new Request(...entry);\n return this.handleRequest({ request, event });\n // TODO(philipwalton): TypeScript errors without this typecast for\n // some reason (probably a bug). The real type here should work but\n // doesn't: `Array<Promise<Response> | undefined>`.\n })); // TypeScript\n event.waitUntil(requestPromises);\n // If a MessageChannel was used, reply to the message on success.\n if (event.ports && event.ports[0]) {\n void requestPromises.then(() => event.ports[0].postMessage(true));\n }\n }\n }));\n }\n /**\n * Apply the routing rules to a FetchEvent object to get a Response from an\n * appropriate Route's handler.\n *\n * @param {Object} options\n * @param {Request} options.request The request to handle.\n * @param {ExtendableEvent} options.event The event that triggered the\n * request.\n * @return {Promise<Response>|undefined} A promise is returned if a\n * registered route can handle the request. If there is no matching\n * route and there's no `defaultHandler`, `undefined` is returned.\n */\n handleRequest({ request, event, }) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(request, Request, {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'handleRequest',\n paramName: 'options.request',\n });\n }\n const url = new URL(request.url, location.href);\n if (!url.protocol.startsWith('http')) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Workbox Router only supports URLs that start with 'http'.`);\n }\n return;\n }\n const sameOrigin = url.origin === location.origin;\n const { params, route } = this.findMatchingRoute({\n event,\n request,\n sameOrigin,\n url,\n });\n let handler = route && route.handler;\n const debugMessages = [];\n if (process.env.NODE_ENV !== 'production') {\n if (handler) {\n debugMessages.push([`Found a route to handle this request:`, route]);\n if (params) {\n debugMessages.push([\n `Passing the following params to the route's handler:`,\n params,\n ]);\n }\n }\n }\n // If we don't have a handler because there was no matching route, then\n // fall back to defaultHandler if that's defined.\n const method = request.method;\n if (!handler && this._defaultHandlerMap.has(method)) {\n if (process.env.NODE_ENV !== 'production') {\n debugMessages.push(`Failed to find a matching route. Falling ` +\n `back to the default handler for ${method}.`);\n }\n handler = this._defaultHandlerMap.get(method);\n }\n if (!handler) {\n if (process.env.NODE_ENV !== 'production') {\n // No handler so Workbox will do nothing. If logs is set of debug\n // i.e. verbose, we should print out this information.\n logger.debug(`No route found for: ${getFriendlyURL(url)}`);\n }\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // We have a handler, meaning Workbox is going to handle the route.\n // print the routing details to the console.\n logger.groupCollapsed(`Router is responding to: ${getFriendlyURL(url)}`);\n debugMessages.forEach((msg) => {\n if (Array.isArray(msg)) {\n logger.log(...msg);\n }\n else {\n logger.log(msg);\n }\n });\n logger.groupEnd();\n }\n // Wrap in try and catch in case the handle method throws a synchronous\n // error. It should still callback to the catch handler.\n let responsePromise;\n try {\n responsePromise = handler.handle({ url, request, event, params });\n }\n catch (err) {\n responsePromise = Promise.reject(err);\n }\n // Get route's catch handler, if it exists\n const catchHandler = route && route.catchHandler;\n if (responsePromise instanceof Promise &&\n (this._catchHandler || catchHandler)) {\n responsePromise = responsePromise.catch(async (err) => {\n // If there's a route catch handler, process that first\n if (catchHandler) {\n if (process.env.NODE_ENV !== 'production') {\n // Still include URL here as it will be async from the console group\n // and may not make sense without the URL\n logger.groupCollapsed(`Error thrown when responding to: ` +\n ` ${getFriendlyURL(url)}. Falling back to route's Catch Handler.`);\n logger.error(`Error thrown by:`, route);\n logger.error(err);\n logger.groupEnd();\n }\n try {\n return await catchHandler.handle({ url, request, event, params });\n }\n catch (catchErr) {\n if (catchErr instanceof Error) {\n err = catchErr;\n }\n }\n }\n if (this._catchHandler) {\n if (process.env.NODE_ENV !== 'production') {\n // Still include URL here as it will be async from the console group\n // and may not make sense without the URL\n logger.groupCollapsed(`Error thrown when responding to: ` +\n ` ${getFriendlyURL(url)}. Falling back to global Catch Handler.`);\n logger.error(`Error thrown by:`, route);\n logger.error(err);\n logger.groupEnd();\n }\n return this._catchHandler.handle({ url, request, event });\n }\n throw err;\n });\n }\n return responsePromise;\n }\n /**\n * Checks a request and URL (and optionally an event) against the list of\n * registered routes, and if there's a match, returns the corresponding\n * route along with any params generated by the match.\n *\n * @param {Object} options\n * @param {URL} options.url\n * @param {boolean} options.sameOrigin The result of comparing `url.origin`\n * against the current origin.\n * @param {Request} options.request The request to match.\n * @param {Event} options.event The corresponding event.\n * @return {Object} An object with `route` and `params` properties.\n * They are populated if a matching route was found or `undefined`\n * otherwise.\n */\n findMatchingRoute({ url, sameOrigin, request, event, }) {\n const routes = this._routes.get(request.method) || [];\n for (const route of routes) {\n let params;\n // route.match returns type any, not possible to change right now.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const matchResult = route.match({ url, sameOrigin, request, event });\n if (matchResult) {\n if (process.env.NODE_ENV !== 'production') {\n // Warn developers that using an async matchCallback is almost always\n // not the right thing to do.\n if (matchResult instanceof Promise) {\n logger.warn(`While routing ${getFriendlyURL(url)}, an async ` +\n `matchCallback function was used. Please convert the ` +\n `following route to use a synchronous matchCallback function:`, route);\n }\n }\n // See https://github.com/GoogleChrome/workbox/issues/2079\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n params = matchResult;\n if (Array.isArray(params) && params.length === 0) {\n // Instead of passing an empty array in as params, use undefined.\n params = undefined;\n }\n else if (matchResult.constructor === Object && // eslint-disable-line\n Object.keys(matchResult).length === 0) {\n // Instead of passing an empty object in as params, use undefined.\n params = undefined;\n }\n else if (typeof matchResult === 'boolean') {\n // For the boolean value true (rather than just something truth-y),\n // don't set params.\n // See https://github.com/GoogleChrome/workbox/pull/2134#issuecomment-513924353\n params = undefined;\n }\n // Return early if have a match.\n return { route, params };\n }\n }\n // If no match was found above, return and empty object.\n return {};\n }\n /**\n * Define a default `handler` that's called when no routes explicitly\n * match the incoming request.\n *\n * Each HTTP method ('GET', 'POST', etc.) gets its own default handler.\n *\n * Without a default handler, unmatched requests will go against the\n * network as if there were no service worker present.\n *\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n * @param {string} [method='GET'] The HTTP method to associate with this\n * default handler. Each method has its own default.\n */\n setDefaultHandler(handler, method = defaultMethod) {\n this._defaultHandlerMap.set(method, normalizeHandler(handler));\n }\n /**\n * If a Route throws an error while handling a request, this `handler`\n * will be called and given a chance to provide a response.\n *\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n */\n setCatchHandler(handler) {\n this._catchHandler = normalizeHandler(handler);\n }\n /**\n * Registers a route with the router.\n *\n * @param {workbox-routing.Route} route The route to register.\n */\n registerRoute(route) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(route, 'object', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.hasMethod(route, 'match', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.isType(route.handler, 'object', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.hasMethod(route.handler, 'handle', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route.handler',\n });\n assert.isType(route.method, 'string', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route.method',\n });\n }\n if (!this._routes.has(route.method)) {\n this._routes.set(route.method, []);\n }\n // Give precedence to all of the earlier routes by adding this additional\n // route to the end of the array.\n this._routes.get(route.method).push(route);\n }\n /**\n * Unregisters a route with the router.\n *\n * @param {workbox-routing.Route} route The route to unregister.\n */\n unregisterRoute(route) {\n if (!this._routes.has(route.method)) {\n throw new WorkboxError('unregister-route-but-not-found-with-method', {\n method: route.method,\n });\n }\n const routeIndex = this._routes.get(route.method).indexOf(route);\n if (routeIndex > -1) {\n this._routes.get(route.method).splice(routeIndex, 1);\n }\n else {\n throw new WorkboxError('unregister-route-route-not-registered');\n }\n }\n}\nexport { Router };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { Router } from '../Router.js';\nimport '../_version.js';\nlet defaultRouter;\n/**\n * Creates a new, singleton Router instance if one does not exist. If one\n * does already exist, that instance is returned.\n *\n * @private\n * @return {Router}\n */\nexport const getOrCreateDefaultRouter = () => {\n if (!defaultRouter) {\n defaultRouter = new Router();\n // The helpers that use the default Router assume these listeners exist.\n defaultRouter.addFetchListener();\n defaultRouter.addCacheListener();\n }\n return defaultRouter;\n};\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst _cacheNameDetails = {\n googleAnalytics: 'googleAnalytics',\n precache: 'precache-v2',\n prefix: 'workbox',\n runtime: 'runtime',\n suffix: typeof registration !== 'undefined' ? registration.scope : '',\n};\nconst _createCacheName = (cacheName) => {\n return [_cacheNameDetails.prefix, cacheName, _cacheNameDetails.suffix]\n .filter((value) => value && value.length > 0)\n .join('-');\n};\nconst eachCacheNameDetail = (fn) => {\n for (const key of Object.keys(_cacheNameDetails)) {\n fn(key);\n }\n};\nexport const cacheNames = {\n updateDetails: (details) => {\n eachCacheNameDetail((key) => {\n if (typeof details[key] === 'string') {\n _cacheNameDetails[key] = details[key];\n }\n });\n },\n getGoogleAnalyticsName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.googleAnalytics);\n },\n getPrecacheName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.precache);\n },\n getPrefix: () => {\n return _cacheNameDetails.prefix;\n },\n getRuntimeName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.runtime);\n },\n getSuffix: () => {\n return _cacheNameDetails.suffix;\n },\n};\n","/*\n Copyright 2020 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A utility method that makes it easier to use `event.waitUntil` with\n * async functions and return the result.\n *\n * @param {ExtendableEvent} event\n * @param {Function} asyncFn\n * @return {Function}\n * @private\n */\nfunction waitUntil(event, asyncFn) {\n const returnPromise = asyncFn();\n event.waitUntil(returnPromise);\n return returnPromise;\n}\nexport { waitUntil };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:precaching:7.2.0'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport '../_version.js';\n// Name of the search parameter used to store revision info.\nconst REVISION_SEARCH_PARAM = '__WB_REVISION__';\n/**\n * Converts a manifest entry into a versioned URL suitable for precaching.\n *\n * @param {Object|string} entry\n * @return {string} A URL with versioning info.\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function createCacheKey(entry) {\n if (!entry) {\n throw new WorkboxError('add-to-cache-list-unexpected-type', { entry });\n }\n // If a precache manifest entry is a string, it's assumed to be a versioned\n // URL, like '/app.abcd1234.js'. Return as-is.\n if (typeof entry === 'string') {\n const urlObject = new URL(entry, location.href);\n return {\n cacheKey: urlObject.href,\n url: urlObject.href,\n };\n }\n const { revision, url } = entry;\n if (!url) {\n throw new WorkboxError('add-to-cache-list-unexpected-type', { entry });\n }\n // If there's just a URL and no revision, then it's also assumed to be a\n // versioned URL.\n if (!revision) {\n const urlObject = new URL(url, location.href);\n return {\n cacheKey: urlObject.href,\n url: urlObject.href,\n };\n }\n // Otherwise, construct a properly versioned URL using the custom Workbox\n // search parameter along with the revision info.\n const cacheKeyURL = new URL(url, location.href);\n const originalURL = new URL(url, location.href);\n cacheKeyURL.searchParams.set(REVISION_SEARCH_PARAM, revision);\n return {\n cacheKey: cacheKeyURL.href,\n url: originalURL.href,\n };\n}\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A plugin, designed to be used with PrecacheController, to determine the\n * of assets that were updated (or not updated) during the install event.\n *\n * @private\n */\nclass PrecacheInstallReportPlugin {\n constructor() {\n this.updatedURLs = [];\n this.notUpdatedURLs = [];\n this.handlerWillStart = async ({ request, state, }) => {\n // TODO: `state` should never be undefined...\n if (state) {\n state.originalRequest = request;\n }\n };\n this.cachedResponseWillBeUsed = async ({ event, state, cachedResponse, }) => {\n if (event.type === 'install') {\n if (state &&\n state.originalRequest &&\n state.originalRequest instanceof Request) {\n // TODO: `state` should never be undefined...\n const url = state.originalRequest.url;\n if (cachedResponse) {\n this.notUpdatedURLs.push(url);\n }\n else {\n this.updatedURLs.push(url);\n }\n }\n }\n return cachedResponse;\n };\n }\n}\nexport { PrecacheInstallReportPlugin };\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A plugin, designed to be used with PrecacheController, to translate URLs into\n * the corresponding cache key, based on the current revision info.\n *\n * @private\n */\nclass PrecacheCacheKeyPlugin {\n constructor({ precacheController }) {\n this.cacheKeyWillBeUsed = async ({ request, params, }) => {\n // Params is type any, can't change right now.\n /* eslint-disable */\n const cacheKey = (params === null || params === void 0 ? void 0 : params.cacheKey) ||\n this._precacheController.getCacheKeyForURL(request.url);\n /* eslint-enable */\n return cacheKey\n ? new Request(cacheKey, { headers: request.headers })\n : request;\n };\n this._precacheController = precacheController;\n }\n}\nexport { PrecacheCacheKeyPlugin };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nlet supportStatus;\n/**\n * A utility function that determines whether the current browser supports\n * constructing a new `Response` from a `response.body` stream.\n *\n * @return {boolean} `true`, if the current browser can successfully\n * construct a `Response` from a `response.body` stream, `false` otherwise.\n *\n * @private\n */\nfunction canConstructResponseFromBodyStream() {\n if (supportStatus === undefined) {\n const testResponse = new Response('');\n if ('body' in testResponse) {\n try {\n new Response(testResponse.body);\n supportStatus = true;\n }\n catch (error) {\n supportStatus = false;\n }\n }\n supportStatus = false;\n }\n return supportStatus;\n}\nexport { canConstructResponseFromBodyStream };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { canConstructResponseFromBodyStream } from './_private/canConstructResponseFromBodyStream.js';\nimport { WorkboxError } from './_private/WorkboxError.js';\nimport './_version.js';\n/**\n * Allows developers to copy a response and modify its `headers`, `status`,\n * or `statusText` values (the values settable via a\n * [`ResponseInit`]{@link https://developer.mozilla.org/en-US/docs/Web/API/Response/Response#Syntax}\n * object in the constructor).\n * To modify these values, pass a function as the second argument. That\n * function will be invoked with a single object with the response properties\n * `{headers, status, statusText}`. The return value of this function will\n * be used as the `ResponseInit` for the new `Response`. To change the values\n * either modify the passed parameter(s) and return it, or return a totally\n * new object.\n *\n * This method is intentionally limited to same-origin responses, regardless of\n * whether CORS was used or not.\n *\n * @param {Response} response\n * @param {Function} modifier\n * @memberof workbox-core\n */\nasync function copyResponse(response, modifier) {\n let origin = null;\n // If response.url isn't set, assume it's cross-origin and keep origin null.\n if (response.url) {\n const responseURL = new URL(response.url);\n origin = responseURL.origin;\n }\n if (origin !== self.location.origin) {\n throw new WorkboxError('cross-origin-copy-response', { origin });\n }\n const clonedResponse = response.clone();\n // Create a fresh `ResponseInit` object by cloning the headers.\n const responseInit = {\n headers: new Headers(clonedResponse.headers),\n status: clonedResponse.status,\n statusText: clonedResponse.statusText,\n };\n // Apply any user modifications.\n const modifiedResponseInit = modifier ? modifier(responseInit) : responseInit;\n // Create the new response from the body stream and `ResponseInit`\n // modifications. Note: not all browsers support the Response.body stream,\n // so fall back to reading the entire body into memory as a blob.\n const body = canConstructResponseFromBodyStream()\n ? clonedResponse.body\n : await clonedResponse.blob();\n return new Response(body, modifiedResponseInit);\n}\nexport { copyResponse };\n","/*\n Copyright 2020 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nfunction stripParams(fullURL, ignoreParams) {\n const strippedURL = new URL(fullURL);\n for (const param of ignoreParams) {\n strippedURL.searchParams.delete(param);\n }\n return strippedURL.href;\n}\n/**\n * Matches an item in the cache, ignoring specific URL params. This is similar\n * to the `ignoreSearch` option, but it allows you to ignore just specific\n * params (while continuing to match on the others).\n *\n * @private\n * @param {Cache} cache\n * @param {Request} request\n * @param {Object} matchOptions\n * @param {Array<string>} ignoreParams\n * @return {Promise<Response|undefined>}\n */\nasync function cacheMatchIgnoreParams(cache, request, ignoreParams, matchOptions) {\n const strippedRequestURL = stripParams(request.url, ignoreParams);\n // If the request doesn't include any ignored params, match as normal.\n if (request.url === strippedRequestURL) {\n return cache.match(request, matchOptions);\n }\n // Otherwise, match by comparing keys\n const keysOptions = Object.assign(Object.assign({}, matchOptions), { ignoreSearch: true });\n const cacheKeys = await cache.keys(request, keysOptions);\n for (const cacheKey of cacheKeys) {\n const strippedCacheKeyURL = stripParams(cacheKey.url, ignoreParams);\n if (strippedRequestURL === strippedCacheKeyURL) {\n return cache.match(cacheKey, matchOptions);\n }\n }\n return;\n}\nexport { cacheMatchIgnoreParams };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * The Deferred class composes Promises in a way that allows for them to be\n * resolved or rejected from outside the constructor. In most cases promises\n * should be used directly, but Deferreds can be necessary when the logic to\n * resolve a promise must be separate.\n *\n * @private\n */\nclass Deferred {\n /**\n * Creates a promise and exposes its resolve and reject functions as methods.\n */\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n }\n}\nexport { Deferred };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n// Callbacks to be executed whenever there's a quota error.\n// Can't change Function type right now.\n// eslint-disable-next-line @typescript-eslint/ban-types\nconst quotaErrorCallbacks = new Set();\nexport { quotaErrorCallbacks };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:strategies:7.2.0'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { cacheMatchIgnoreParams } from 'workbox-core/_private/cacheMatchIgnoreParams.js';\nimport { Deferred } from 'workbox-core/_private/Deferred.js';\nimport { executeQuotaErrorCallbacks } from 'workbox-core/_private/executeQuotaErrorCallbacks.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { timeout } from 'workbox-core/_private/timeout.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport './_version.js';\nfunction toRequest(input) {\n return typeof input === 'string' ? new Request(input) : input;\n}\n/**\n * A class created every time a Strategy instance instance calls\n * {@link workbox-strategies.Strategy~handle} or\n * {@link workbox-strategies.Strategy~handleAll} that wraps all fetch and\n * cache actions around plugin callbacks and keeps track of when the strategy\n * is \"done\" (i.e. all added `event.waitUntil()` promises have resolved).\n *\n * @memberof workbox-strategies\n */\nclass StrategyHandler {\n /**\n * Creates a new instance associated with the passed strategy and event\n * that's handling the request.\n *\n * The constructor also initializes the state that will be passed to each of\n * the plugins handling this request.\n *\n * @param {workbox-strategies.Strategy} strategy\n * @param {Object} options\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params] The return value from the\n * {@link workbox-routing~matchCallback} (if applicable).\n */\n constructor(strategy, options) {\n this._cacheKeys = {};\n /**\n * The request the strategy is performing (passed to the strategy's\n * `handle()` or `handleAll()` method).\n * @name request\n * @instance\n * @type {Request}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * The event associated with this request.\n * @name event\n * @instance\n * @type {ExtendableEvent}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * A `URL` instance of `request.url` (if passed to the strategy's\n * `handle()` or `handleAll()` method).\n * Note: the `url` param will be present if the strategy was invoked\n * from a workbox `Route` object.\n * @name url\n * @instance\n * @type {URL|undefined}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * A `param` value (if passed to the strategy's\n * `handle()` or `handleAll()` method).\n * Note: the `param` param will be present if the strategy was invoked\n * from a workbox `Route` object and the\n * {@link workbox-routing~matchCallback} returned\n * a truthy value (it will be that value).\n * @name params\n * @instance\n * @type {*|undefined}\n * @memberof workbox-strategies.StrategyHandler\n */\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(options.event, ExtendableEvent, {\n moduleName: 'workbox-strategies',\n className: 'StrategyHandler',\n funcName: 'constructor',\n paramName: 'options.event',\n });\n }\n Object.assign(this, options);\n this.event = options.event;\n this._strategy = strategy;\n this._handlerDeferred = new Deferred();\n this._extendLifetimePromises = [];\n // Copy the plugins list (since it's mutable on the strategy),\n // so any mutations don't affect this handler instance.\n this._plugins = [...strategy.plugins];\n this._pluginStateMap = new Map();\n for (const plugin of this._plugins) {\n this._pluginStateMap.set(plugin, {});\n }\n this.event.waitUntil(this._handlerDeferred.promise);\n }\n /**\n * Fetches a given request (and invokes any applicable plugin callback\n * methods) using the `fetchOptions` (for non-navigation requests) and\n * `plugins` defined on the `Strategy` object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - `requestWillFetch()`\n * - `fetchDidSucceed()`\n * - `fetchDidFail()`\n *\n * @param {Request|string} input The URL or request to fetch.\n * @return {Promise<Response>}\n */\n async fetch(input) {\n const { event } = this;\n let request = toRequest(input);\n if (request.mode === 'navigate' &&\n event instanceof FetchEvent &&\n event.preloadResponse) {\n const possiblePreloadResponse = (await event.preloadResponse);\n if (possiblePreloadResponse) {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`Using a preloaded navigation response for ` +\n `'${getFriendlyURL(request.url)}'`);\n }\n return possiblePreloadResponse;\n }\n }\n // If there is a fetchDidFail plugin, we need to save a clone of the\n // original request before it's either modified by a requestWillFetch\n // plugin or before the original request's body is consumed via fetch().\n const originalRequest = this.hasCallback('fetchDidFail')\n ? request.clone()\n : null;\n try {\n for (const cb of this.iterateCallbacks('requestWillFetch')) {\n request = await cb({ request: request.clone(), event });\n }\n }\n catch (err) {\n if (err instanceof Error) {\n throw new WorkboxError('plugin-error-request-will-fetch', {\n thrownErrorMessage: err.message,\n });\n }\n }\n // The request can be altered by plugins with `requestWillFetch` making\n // the original request (most likely from a `fetch` event) different\n // from the Request we make. Pass both to `fetchDidFail` to aid debugging.\n const pluginFilteredRequest = request.clone();\n try {\n let fetchResponse;\n // See https://github.com/GoogleChrome/workbox/issues/1796\n fetchResponse = await fetch(request, request.mode === 'navigate' ? undefined : this._strategy.fetchOptions);\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Network request for ` +\n `'${getFriendlyURL(request.url)}' returned a response with ` +\n `status '${fetchResponse.status}'.`);\n }\n for (const callback of this.iterateCallbacks('fetchDidSucceed')) {\n fetchResponse = await callback({\n event,\n request: pluginFilteredRequest,\n response: fetchResponse,\n });\n }\n return fetchResponse;\n }\n catch (error) {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`Network request for ` +\n `'${getFriendlyURL(request.url)}' threw an error.`, error);\n }\n // `originalRequest` will only exist if a `fetchDidFail` callback\n // is being used (see above).\n if (originalRequest) {\n await this.runCallbacks('fetchDidFail', {\n error: error,\n event,\n originalRequest: originalRequest.clone(),\n request: pluginFilteredRequest.clone(),\n });\n }\n throw error;\n }\n }\n /**\n * Calls `this.fetch()` and (in the background) runs `this.cachePut()` on\n * the response generated by `this.fetch()`.\n *\n * The call to `this.cachePut()` automatically invokes `this.waitUntil()`,\n * so you do not have to manually call `waitUntil()` on the event.\n *\n * @param {Request|string} input The request or URL to fetch and cache.\n * @return {Promise<Response>}\n */\n async fetchAndCachePut(input) {\n const response = await this.fetch(input);\n const responseClone = response.clone();\n void this.waitUntil(this.cachePut(input, responseClone));\n return response;\n }\n /**\n * Matches a request from the cache (and invokes any applicable plugin\n * callback methods) using the `cacheName`, `matchOptions`, and `plugins`\n * defined on the strategy object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - cacheKeyWillBeUsed()\n * - cachedResponseWillBeUsed()\n *\n * @param {Request|string} key The Request or URL to use as the cache key.\n * @return {Promise<Response|undefined>} A matching response, if found.\n */\n async cacheMatch(key) {\n const request = toRequest(key);\n let cachedResponse;\n const { cacheName, matchOptions } = this._strategy;\n const effectiveRequest = await this.getCacheKey(request, 'read');\n const multiMatchOptions = Object.assign(Object.assign({}, matchOptions), { cacheName });\n cachedResponse = await caches.match(effectiveRequest, multiMatchOptions);\n if (process.env.NODE_ENV !== 'production') {\n if (cachedResponse) {\n logger.debug(`Found a cached response in '${cacheName}'.`);\n }\n else {\n logger.debug(`No cached response found in '${cacheName}'.`);\n }\n }\n for (const callback of this.iterateCallbacks('cachedResponseWillBeUsed')) {\n cachedResponse =\n (await callback({\n cacheName,\n matchOptions,\n cachedResponse,\n request: effectiveRequest,\n event: this.event,\n })) || undefined;\n }\n return cachedResponse;\n }\n /**\n * Puts a request/response pair in the cache (and invokes any applicable\n * plugin callback methods) using the `cacheName` and `plugins` defined on\n * the strategy object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - cacheKeyWillBeUsed()\n * - cacheWillUpdate()\n * - cacheDidUpdate()\n *\n * @param {Request|string} key The request or URL to use as the cache key.\n * @param {Response} response The response to cache.\n * @return {Promise<boolean>} `false` if a cacheWillUpdate caused the response\n * not be cached, and `true` otherwise.\n */\n async cachePut(key, response) {\n const request = toRequest(key);\n // Run in the next task to avoid blocking other cache reads.\n // https://github.com/w3c/ServiceWorker/issues/1397\n await timeout(0);\n const effectiveRequest = await this.getCacheKey(request, 'write');\n if (process.env.NODE_ENV !== 'production') {\n if (effectiveRequest.method && effectiveRequest.method !== 'GET') {\n throw new WorkboxError('attempt-to-cache-non-get-request', {\n url: getFriendlyURL(effectiveRequest.url),\n method: effectiveRequest.method,\n });\n }\n // See https://github.com/GoogleChrome/workbox/issues/2818\n const vary = response.headers.get('Vary');\n if (vary) {\n logger.debug(`The response for ${getFriendlyURL(effectiveRequest.url)} ` +\n `has a 'Vary: ${vary}' header. ` +\n `Consider setting the {ignoreVary: true} option on your strategy ` +\n `to ensure cache matching and deletion works as expected.`);\n }\n }\n if (!response) {\n if (process.env.NODE_ENV !== 'production') {\n logger.error(`Cannot cache non-existent response for ` +\n `'${getFriendlyURL(effectiveRequest.url)}'.`);\n }\n throw new WorkboxError('cache-put-with-no-response', {\n url: getFriendlyURL(effectiveRequest.url),\n });\n }\n const responseToCache = await this._ensureResponseSafeToCache(response);\n if (!responseToCache) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Response '${getFriendlyURL(effectiveRequest.url)}' ` +\n `will not be cached.`, responseToCache);\n }\n return false;\n }\n const { cacheName, matchOptions } = this._strategy;\n const cache = await self.caches.open(cacheName);\n const hasCacheUpdateCallback = this.hasCallback('cacheDidUpdate');\n const oldResponse = hasCacheUpdateCallback\n ? await cacheMatchIgnoreParams(\n // TODO(philipwalton): the `__WB_REVISION__` param is a precaching\n // feature. Consider into ways to only add this behavior if using\n // precaching.\n cache, effectiveRequest.clone(), ['__WB_REVISION__'], matchOptions)\n : null;\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Updating the '${cacheName}' cache with a new Response ` +\n `for ${getFriendlyURL(effectiveRequest.url)}.`);\n }\n try {\n await cache.put(effectiveRequest, hasCacheUpdateCallback ? responseToCache.clone() : responseToCache);\n }\n catch (error) {\n if (error instanceof Error) {\n // See https://developer.mozilla.org/en-US/docs/Web/API/DOMException#exception-QuotaExceededError\n if (error.name === 'QuotaExceededError') {\n await executeQuotaErrorCallbacks();\n }\n throw error;\n }\n }\n for (const callback of this.iterateCallbacks('cacheDidUpdate')) {\n await callback({\n cacheName,\n oldResponse,\n newResponse: responseToCache.clone(),\n request: effectiveRequest,\n event: this.event,\n });\n }\n return true;\n }\n /**\n * Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and\n * executes any of those callbacks found in sequence. The final `Request`\n * object returned by the last plugin is treated as the cache key for cache\n * reads and/or writes. If no `cacheKeyWillBeUsed` plugin callbacks have\n * been registered, the passed request is returned unmodified\n *\n * @param {Request} request\n * @param {string} mode\n * @return {Promise<Request>}\n */\n async getCacheKey(request, mode) {\n const key = `${request.url} | ${mode}`;\n if (!this._cacheKeys[key]) {\n let effectiveRequest = request;\n for (const callback of this.iterateCallbacks('cacheKeyWillBeUsed')) {\n effectiveRequest = toRequest(await callback({\n mode,\n request: effectiveRequest,\n event: this.event,\n // params has a type any can't change right now.\n params: this.params, // eslint-disable-line\n }));\n }\n this._cacheKeys[key] = effectiveRequest;\n }\n return this._cacheKeys[key];\n }\n /**\n * Returns true if the strategy has at least one plugin with the given\n * callback.\n *\n * @param {string} name The name of the callback to check for.\n * @return {boolean}\n */\n hasCallback(name) {\n for (const plugin of this._strategy.plugins) {\n if (name in plugin) {\n return true;\n }\n }\n return false;\n }\n /**\n * Runs all plugin callbacks matching the given name, in order, passing the\n * given param object (merged ith the current plugin state) as the only\n * argument.\n *\n * Note: since this method runs all plugins, it's not suitable for cases\n * where the return value of a callback needs to be applied prior to calling\n * the next callback. See\n * {@link workbox-strategies.StrategyHandler#iterateCallbacks}\n * below for how to handle that case.\n *\n * @param {string} name The name of the callback to run within each plugin.\n * @param {Object} param The object to pass as the first (and only) param\n * when executing each callback. This object will be merged with the\n * current plugin state prior to callback execution.\n */\n async runCallbacks(name, param) {\n for (const callback of this.iterateCallbacks(name)) {\n // TODO(philipwalton): not sure why `any` is needed. It seems like\n // this should work with `as WorkboxPluginCallbackParam[C]`.\n await callback(param);\n }\n }\n /**\n * Accepts a callback and returns an iterable of matching plugin callbacks,\n * where each callback is wrapped with the current handler state (i.e. when\n * you call each callback, whatever object parameter you pass it will\n * be merged with the plugin's current state).\n *\n * @param {string} name The name fo the callback to run\n * @return {Array<Function>}\n */\n *iterateCallbacks(name) {\n for (const plugin of this._strategy.plugins) {\n if (typeof plugin[name] === 'function') {\n const state = this._pluginStateMap.get(plugin);\n const statefulCallback = (param) => {\n const statefulParam = Object.assign(Object.assign({}, param), { state });\n // TODO(philipwalton): not sure why `any` is needed. It seems like\n // this should work with `as WorkboxPluginCallbackParam[C]`.\n return plugin[name](statefulParam);\n };\n yield statefulCallback;\n }\n }\n }\n /**\n * Adds a promise to the\n * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises}\n * of the event event associated with the request being handled (usually a\n * `FetchEvent`).\n *\n * Note: you can await\n * {@link workbox-strategies.StrategyHandler~doneWaiting}\n * to know when all added promises have settled.\n *\n * @param {Promise} promise A promise to add to the extend lifetime promises\n * of the event that triggered the request.\n */\n waitUntil(promise) {\n this._extendLifetimePromises.push(promise);\n return promise;\n }\n /**\n * Returns a promise that resolves once all promises passed to\n * {@link workbox-strategies.StrategyHandler~waitUntil}\n * have settled.\n *\n * Note: any work done after `doneWaiting()` settles should be manually\n * passed to an event's `waitUntil()` method (not this handler's\n * `waitUntil()` method), otherwise the service worker thread my be killed\n * prior to your work completing.\n */\n async doneWaiting() {\n let promise;\n while ((promise = this._extendLifetimePromises.shift())) {\n await promise;\n }\n }\n /**\n * Stops running the strategy and immediately resolves any pending\n * `waitUntil()` promises.\n */\n destroy() {\n this._handlerDeferred.resolve(null);\n }\n /**\n * This method will call cacheWillUpdate on the available plugins (or use\n * status === 200) to determine if the Response is safe and valid to cache.\n *\n * @param {Request} options.request\n * @param {Response} options.response\n * @return {Promise<Response|undefined>}\n *\n * @private\n */\n async _ensureResponseSafeToCache(response) {\n let responseToCache = response;\n let pluginsUsed = false;\n for (const callback of this.iterateCallbacks('cacheWillUpdate')) {\n responseToCache =\n (await callback({\n request: this.request,\n response: responseToCache,\n event: this.event,\n })) || undefined;\n pluginsUsed = true;\n if (!responseToCache) {\n break;\n }\n }\n if (!pluginsUsed) {\n if (responseToCache && responseToCache.status !== 200) {\n responseToCache = undefined;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (responseToCache) {\n if (responseToCache.status !== 200) {\n if (responseToCache.status === 0) {\n logger.warn(`The response for '${this.request.url}' ` +\n `is an opaque response. The caching strategy that you're ` +\n `using will not cache opaque responses by default.`);\n }\n else {\n logger.debug(`The response for '${this.request.url}' ` +\n `returned a status code of '${response.status}' and won't ` +\n `be cached as a result.`);\n }\n }\n }\n }\n }\n return responseToCache;\n }\n}\nexport { StrategyHandler };\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * Returns a promise that resolves and the passed number of milliseconds.\n * This utility is an async/await-friendly version of `setTimeout`.\n *\n * @param {number} ms\n * @return {Promise}\n * @private\n */\nexport function timeout(ms) {\n return new Promise((resolve) => setTimeout(resolve, ms));\n}\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst getFriendlyURL = (url) => {\n const urlObj = new URL(String(url), location.href);\n // See https://github.com/GoogleChrome/workbox/issues/2323\n // We want to include everything, except for the origin if it's same-origin.\n return urlObj.href.replace(new RegExp(`^${location.origin}`), '');\n};\nexport { getFriendlyURL };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from '../_private/logger.js';\nimport { quotaErrorCallbacks } from '../models/quotaErrorCallbacks.js';\nimport '../_version.js';\n/**\n * Runs all of the callback functions, one at a time sequentially, in the order\n * in which they were registered.\n *\n * @memberof workbox-core\n * @private\n */\nasync function executeQuotaErrorCallbacks() {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`About to run ${quotaErrorCallbacks.size} ` +\n `callbacks to clean up caches.`);\n }\n for (const callback of quotaErrorCallbacks) {\n await callback();\n if (process.env.NODE_ENV !== 'production') {\n logger.log(callback, 'is complete.');\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n logger.log('Finished running callbacks.');\n }\n}\nexport { executeQuotaErrorCallbacks };\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { StrategyHandler } from './StrategyHandler.js';\nimport './_version.js';\n/**\n * An abstract base class that all other strategy classes must extend from:\n *\n * @memberof workbox-strategies\n */\nclass Strategy {\n /**\n * Creates a new instance of the strategy and sets all documented option\n * properties as public instance properties.\n *\n * Note: if a custom strategy class extends the base Strategy class and does\n * not need more than these properties, it does not need to define its own\n * constructor.\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins}\n * to use in conjunction with this caching strategy.\n * @param {Object} [options.fetchOptions] Values passed along to the\n * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters)\n * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796)\n * `fetch()` requests made by this strategy.\n * @param {Object} [options.matchOptions] The\n * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n */\n constructor(options = {}) {\n /**\n * Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n *\n * @type {string}\n */\n this.cacheName = cacheNames.getRuntimeName(options.cacheName);\n /**\n * The list\n * [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins}\n * used by this strategy.\n *\n * @type {Array<Object>}\n */\n this.plugins = options.plugins || [];\n /**\n * Values passed along to the\n * [`init`]{@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters}\n * of all fetch() requests made by this strategy.\n *\n * @type {Object}\n */\n this.fetchOptions = options.fetchOptions;\n /**\n * The\n * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n *\n * @type {Object}\n */\n this.matchOptions = options.matchOptions;\n }\n /**\n * Perform a request strategy and returns a `Promise` that will resolve with\n * a `Response`, invoking all relevant plugin callbacks.\n *\n * When a strategy instance is registered with a Workbox\n * {@link workbox-routing.Route}, this method is automatically\n * called when the route matches.\n *\n * Alternatively, this method can be used in a standalone `FetchEvent`\n * listener by passing it to `event.respondWith()`.\n *\n * @param {FetchEvent|Object} options A `FetchEvent` or an object with the\n * properties listed below.\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params]\n */\n handle(options) {\n const [responseDone] = this.handleAll(options);\n return responseDone;\n }\n /**\n * Similar to {@link workbox-strategies.Strategy~handle}, but\n * instead of just returning a `Promise` that resolves to a `Response` it\n * it will return an tuple of `[response, done]` promises, where the former\n * (`response`) is equivalent to what `handle()` returns, and the latter is a\n * Promise that will resolve once any promises that were added to\n * `event.waitUntil()` as part of performing the strategy have completed.\n *\n * You can await the `done` promise to ensure any extra work performed by\n * the strategy (usually caching responses) completes successfully.\n *\n * @param {FetchEvent|Object} options A `FetchEvent` or an object with the\n * properties listed below.\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params]\n * @return {Array<Promise>} A tuple of [response, done]\n * promises that can be used to determine when the response resolves as\n * well as when the handler has completed all its work.\n */\n handleAll(options) {\n // Allow for flexible options to be passed.\n if (options instanceof FetchEvent) {\n options = {\n event: options,\n request: options.request,\n };\n }\n const event = options.event;\n const request = typeof options.request === 'string'\n ? new Request(options.request)\n : options.request;\n const params = 'params' in options ? options.params : undefined;\n const handler = new StrategyHandler(this, { event, request, params });\n const responseDone = this._getResponse(handler, request, event);\n const handlerDone = this._awaitComplete(responseDone, handler, request, event);\n // Return an array of promises, suitable for use with Promise.all().\n return [responseDone, handlerDone];\n }\n async _getResponse(handler, request, event) {\n await handler.runCallbacks('handlerWillStart', { event, request });\n let response = undefined;\n try {\n response = await this._handle(request, handler);\n // The \"official\" Strategy subclasses all throw this error automatically,\n // but in case a third-party Strategy doesn't, ensure that we have a\n // consistent failure when there's no response or an error response.\n if (!response || response.type === 'error') {\n throw new WorkboxError('no-response', { url: request.url });\n }\n }\n catch (error) {\n if (error instanceof Error) {\n for (const callback of handler.iterateCallbacks('handlerDidError')) {\n response = await callback({ error, event, request });\n if (response) {\n break;\n }\n }\n }\n if (!response) {\n throw error;\n }\n else if (process.env.NODE_ENV !== 'production') {\n logger.log(`While responding to '${getFriendlyURL(request.url)}', ` +\n `an ${error instanceof Error ? error.toString() : ''} error occurred. Using a fallback response provided by ` +\n `a handlerDidError plugin.`);\n }\n }\n for (const callback of handler.iterateCallbacks('handlerWillRespond')) {\n response = await callback({ event, request, response });\n }\n return response;\n }\n async _awaitComplete(responseDone, handler, request, event) {\n let response;\n let error;\n try {\n response = await responseDone;\n }\n catch (error) {\n // Ignore errors, as response errors should be caught via the `response`\n // promise above. The `done` promise will only throw for errors in\n // promises passed to `handler.waitUntil()`.\n }\n try {\n await handler.runCallbacks('handlerDidRespond', {\n event,\n request,\n response,\n });\n await handler.doneWaiting();\n }\n catch (waitUntilError) {\n if (waitUntilError instanceof Error) {\n error = waitUntilError;\n }\n }\n await handler.runCallbacks('handlerDidComplete', {\n event,\n request,\n response,\n error: error,\n });\n handler.destroy();\n if (error) {\n throw error;\n }\n }\n}\nexport { Strategy };\n/**\n * Classes extending the `Strategy` based class should implement this method,\n * and leverage the {@link workbox-strategies.StrategyHandler}\n * arg to perform all fetching and cache logic, which will ensure all relevant\n * cache, cache options, fetch options and plugins are used (per the current\n * strategy instance).\n *\n * @name _handle\n * @instance\n * @abstract\n * @function\n * @param {Request} request\n * @param {workbox-strategies.StrategyHandler} handler\n * @return {Promise<Response>}\n *\n * @memberof workbox-strategies.Strategy\n */\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { copyResponse } from 'workbox-core/copyResponse.js';\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { Strategy } from 'workbox-strategies/Strategy.js';\nimport './_version.js';\n/**\n * A {@link workbox-strategies.Strategy} implementation\n * specifically designed to work with\n * {@link workbox-precaching.PrecacheController}\n * to both cache and fetch precached assets.\n *\n * Note: an instance of this class is created automatically when creating a\n * `PrecacheController`; it's generally not necessary to create this yourself.\n *\n * @extends workbox-strategies.Strategy\n * @memberof workbox-precaching\n */\nclass PrecacheStrategy extends Strategy {\n /**\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n * @param {Array<Object>} [options.plugins] {@link https://developers.google.com/web/tools/workbox/guides/using-plugins|Plugins}\n * to use in conjunction with this caching strategy.\n * @param {Object} [options.fetchOptions] Values passed along to the\n * {@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters|init}\n * of all fetch() requests made by this strategy.\n * @param {Object} [options.matchOptions] The\n * {@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions|CacheQueryOptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to\n * get the response from the network if there's a precache miss.\n */\n constructor(options = {}) {\n options.cacheName = cacheNames.getPrecacheName(options.cacheName);\n super(options);\n this._fallbackToNetwork =\n options.fallbackToNetwork === false ? false : true;\n // Redirected responses cannot be used to satisfy a navigation request, so\n // any redirected response must be \"copied\" rather than cloned, so the new\n // response doesn't contain the `redirected` flag. See:\n // https://bugs.chromium.org/p/chromium/issues/detail?id=669363&desc=2#c1\n this.plugins.push(PrecacheStrategy.copyRedirectedCacheableResponsesPlugin);\n }\n /**\n * @private\n * @param {Request|string} request A request to run this strategy for.\n * @param {workbox-strategies.StrategyHandler} handler The event that\n * triggered the request.\n * @return {Promise<Response>}\n */\n async _handle(request, handler) {\n const response = await handler.cacheMatch(request);\n if (response) {\n return response;\n }\n // If this is an `install` event for an entry that isn't already cached,\n // then populate the cache.\n if (handler.event && handler.event.type === 'install') {\n return await this._handleInstall(request, handler);\n }\n // Getting here means something went wrong. An entry that should have been\n // precached wasn't found in the cache.\n return await this._handleFetch(request, handler);\n }\n async _handleFetch(request, handler) {\n let response;\n const params = (handler.params || {});\n // Fall back to the network if we're configured to do so.\n if (this._fallbackToNetwork) {\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(`The precached response for ` +\n `${getFriendlyURL(request.url)} in ${this.cacheName} was not ` +\n `found. Falling back to the network.`);\n }\n const integrityInManifest = params.integrity;\n const integrityInRequest = request.integrity;\n const noIntegrityConflict = !integrityInRequest || integrityInRequest === integrityInManifest;\n // Do not add integrity if the original request is no-cors\n // See https://github.com/GoogleChrome/workbox/issues/3096\n response = await handler.fetch(new Request(request, {\n integrity: request.mode !== 'no-cors'\n ? integrityInRequest || integrityInManifest\n : undefined,\n }));\n // It's only \"safe\" to repair the cache if we're using SRI to guarantee\n // that the response matches the precache manifest's expectations,\n // and there's either a) no integrity property in the incoming request\n // or b) there is an integrity, and it matches the precache manifest.\n // See https://github.com/GoogleChrome/workbox/issues/2858\n // Also if the original request users no-cors we don't use integrity.\n // See https://github.com/GoogleChrome/workbox/issues/3096\n if (integrityInManifest &&\n noIntegrityConflict &&\n request.mode !== 'no-cors') {\n this._useDefaultCacheabilityPluginIfNeeded();\n const wasCached = await handler.cachePut(request, response.clone());\n if (process.env.NODE_ENV !== 'production') {\n if (wasCached) {\n logger.log(`A response for ${getFriendlyURL(request.url)} ` +\n `was used to \"repair\" the precache.`);\n }\n }\n }\n }\n else {\n // This shouldn't normally happen, but there are edge cases:\n // https://github.com/GoogleChrome/workbox/issues/1441\n throw new WorkboxError('missing-precache-entry', {\n cacheName: this.cacheName,\n url: request.url,\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n const cacheKey = params.cacheKey || (await handler.getCacheKey(request, 'read'));\n // Workbox is going to handle the route.\n // print the routing details to the console.\n logger.groupCollapsed(`Precaching is responding to: ` + getFriendlyURL(request.url));\n logger.log(`Serving the precached url: ${getFriendlyURL(cacheKey instanceof Request ? cacheKey.url : cacheKey)}`);\n logger.groupCollapsed(`View request details here.`);\n logger.log(request);\n logger.groupEnd();\n logger.groupCollapsed(`View response details here.`);\n logger.log(response);\n logger.groupEnd();\n logger.groupEnd();\n }\n return response;\n }\n async _handleInstall(request, handler) {\n this._useDefaultCacheabilityPluginIfNeeded();\n const response = await handler.fetch(request);\n // Make sure we defer cachePut() until after we know the response\n // should be cached; see https://github.com/GoogleChrome/workbox/issues/2737\n const wasCached = await handler.cachePut(request, response.clone());\n if (!wasCached) {\n // Throwing here will lead to the `install` handler failing, which\n // we want to do if *any* of the responses aren't safe to cache.\n throw new WorkboxError('bad-precaching-response', {\n url: request.url,\n status: response.status,\n });\n }\n return response;\n }\n /**\n * This method is complex, as there a number of things to account for:\n *\n * The `plugins` array can be set at construction, and/or it might be added to\n * to at any time before the strategy is used.\n *\n * At the time the strategy is used (i.e. during an `install` event), there\n * needs to be at least one plugin that implements `cacheWillUpdate` in the\n * array, other than `copyRedirectedCacheableResponsesPlugin`.\n *\n * - If this method is called and there are no suitable `cacheWillUpdate`\n * plugins, we need to add `defaultPrecacheCacheabilityPlugin`.\n *\n * - If this method is called and there is exactly one `cacheWillUpdate`, then\n * we don't have to do anything (this might be a previously added\n * `defaultPrecacheCacheabilityPlugin`, or it might be a custom plugin).\n *\n * - If this method is called and there is more than one `cacheWillUpdate`,\n * then we need to check if one is `defaultPrecacheCacheabilityPlugin`. If so,\n * we need to remove it. (This situation is unlikely, but it could happen if\n * the strategy is used multiple times, the first without a `cacheWillUpdate`,\n * and then later on after manually adding a custom `cacheWillUpdate`.)\n *\n * See https://github.com/GoogleChrome/workbox/issues/2737 for more context.\n *\n * @private\n */\n _useDefaultCacheabilityPluginIfNeeded() {\n let defaultPluginIndex = null;\n let cacheWillUpdatePluginCount = 0;\n for (const [index, plugin] of this.plugins.entries()) {\n // Ignore the copy redirected plugin when determining what to do.\n if (plugin === PrecacheStrategy.copyRedirectedCacheableResponsesPlugin) {\n continue;\n }\n // Save the default plugin's index, in case it needs to be removed.\n if (plugin === PrecacheStrategy.defaultPrecacheCacheabilityPlugin) {\n defaultPluginIndex = index;\n }\n if (plugin.cacheWillUpdate) {\n cacheWillUpdatePluginCount++;\n }\n }\n if (cacheWillUpdatePluginCount === 0) {\n this.plugins.push(PrecacheStrategy.defaultPrecacheCacheabilityPlugin);\n }\n else if (cacheWillUpdatePluginCount > 1 && defaultPluginIndex !== null) {\n // Only remove the default plugin; multiple custom plugins are allowed.\n this.plugins.splice(defaultPluginIndex, 1);\n }\n // Nothing needs to be done if cacheWillUpdatePluginCount is 1\n }\n}\nPrecacheStrategy.defaultPrecacheCacheabilityPlugin = {\n async cacheWillUpdate({ response }) {\n if (!response || response.status >= 400) {\n return null;\n }\n return response;\n },\n};\nPrecacheStrategy.copyRedirectedCacheableResponsesPlugin = {\n async cacheWillUpdate({ response }) {\n return response.redirected ? await copyResponse(response) : response;\n },\n};\nexport { PrecacheStrategy };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { waitUntil } from 'workbox-core/_private/waitUntil.js';\nimport { createCacheKey } from './utils/createCacheKey.js';\nimport { PrecacheInstallReportPlugin } from './utils/PrecacheInstallReportPlugin.js';\nimport { PrecacheCacheKeyPlugin } from './utils/PrecacheCacheKeyPlugin.js';\nimport { printCleanupDetails } from './utils/printCleanupDetails.js';\nimport { printInstallDetails } from './utils/printInstallDetails.js';\nimport { PrecacheStrategy } from './PrecacheStrategy.js';\nimport './_version.js';\n/**\n * Performs efficient precaching of assets.\n *\n * @memberof workbox-precaching\n */\nclass PrecacheController {\n /**\n * Create a new PrecacheController.\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] The cache to use for precaching.\n * @param {string} [options.plugins] Plugins to use when precaching as well\n * as responding to fetch events for precached assets.\n * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to\n * get the response from the network if there's a precache miss.\n */\n constructor({ cacheName, plugins = [], fallbackToNetwork = true, } = {}) {\n this._urlsToCacheKeys = new Map();\n this._urlsToCacheModes = new Map();\n this._cacheKeysToIntegrities = new Map();\n this._strategy = new PrecacheStrategy({\n cacheName: cacheNames.getPrecacheName(cacheName),\n plugins: [\n ...plugins,\n new PrecacheCacheKeyPlugin({ precacheController: this }),\n ],\n fallbackToNetwork,\n });\n // Bind the install and activate methods to the instance.\n this.install = this.install.bind(this);\n this.activate = this.activate.bind(this);\n }\n /**\n * @type {workbox-precaching.PrecacheStrategy} The strategy created by this controller and\n * used to cache assets and respond to fetch events.\n */\n get strategy() {\n return this._strategy;\n }\n /**\n * Adds items to the precache list, removing any duplicates and\n * stores the files in the\n * {@link workbox-core.cacheNames|\"precache cache\"} when the service\n * worker installs.\n *\n * This method can be called multiple times.\n *\n * @param {Array<Object|string>} [entries=[]] Array of entries to precache.\n */\n precache(entries) {\n this.addToCacheList(entries);\n if (!this._installAndActiveListenersAdded) {\n self.addEventListener('install', this.install);\n self.addEventListener('activate', this.activate);\n this._installAndActiveListenersAdded = true;\n }\n }\n /**\n * This method will add items to the precache list, removing duplicates\n * and ensuring the information is valid.\n *\n * @param {Array<workbox-precaching.PrecacheController.PrecacheEntry|string>} entries\n * Array of entries to precache.\n */\n addToCacheList(entries) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isArray(entries, {\n moduleName: 'workbox-precaching',\n className: 'PrecacheController',\n funcName: 'addToCacheList',\n paramName: 'entries',\n });\n }\n const urlsToWarnAbout = [];\n for (const entry of entries) {\n // See https://github.com/GoogleChrome/workbox/issues/2259\n if (typeof entry === 'string') {\n urlsToWarnAbout.push(entry);\n }\n else if (entry && entry.revision === undefined) {\n urlsToWarnAbout.push(entry.url);\n }\n const { cacheKey, url } = createCacheKey(entry);\n const cacheMode = typeof entry !== 'string' && entry.revision ? 'reload' : 'default';\n if (this._urlsToCacheKeys.has(url) &&\n this._urlsToCacheKeys.get(url) !== cacheKey) {\n throw new WorkboxError('add-to-cache-list-conflicting-entries', {\n firstEntry: this._urlsToCacheKeys.get(url),\n secondEntry: cacheKey,\n });\n }\n if (typeof entry !== 'string' && entry.integrity) {\n if (this._cacheKeysToIntegrities.has(cacheKey) &&\n this._cacheKeysToIntegrities.get(cacheKey) !== entry.integrity) {\n throw new WorkboxError('add-to-cache-list-conflicting-integrities', {\n url,\n });\n }\n this._cacheKeysToIntegrities.set(cacheKey, entry.integrity);\n }\n this._urlsToCacheKeys.set(url, cacheKey);\n this._urlsToCacheModes.set(url, cacheMode);\n if (urlsToWarnAbout.length > 0) {\n const warningMessage = `Workbox is precaching URLs without revision ` +\n `info: ${urlsToWarnAbout.join(', ')}\\nThis is generally NOT safe. ` +\n `Learn more at https://bit.ly/wb-precache`;\n if (process.env.NODE_ENV === 'production') {\n // Use console directly to display this warning without bloating\n // bundle sizes by pulling in all of the logger codebase in prod.\n console.warn(warningMessage);\n }\n else {\n logger.warn(warningMessage);\n }\n }\n }\n }\n /**\n * Precaches new and updated assets. Call this method from the service worker\n * install event.\n *\n * Note: this method calls `event.waitUntil()` for you, so you do not need\n * to call it yourself in your event handlers.\n *\n * @param {ExtendableEvent} event\n * @return {Promise<workbox-precaching.InstallResult>}\n */\n install(event) {\n // waitUntil returns Promise<any>\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return waitUntil(event, async () => {\n const installReportPlugin = new PrecacheInstallReportPlugin();\n this.strategy.plugins.push(installReportPlugin);\n // Cache entries one at a time.\n // See https://github.com/GoogleChrome/workbox/issues/2528\n for (const [url, cacheKey] of this._urlsToCacheKeys) {\n const integrity = this._cacheKeysToIntegrities.get(cacheKey);\n const cacheMode = this._urlsToCacheModes.get(url);\n const request = new Request(url, {\n integrity,\n cache: cacheMode,\n credentials: 'same-origin',\n });\n await Promise.all(this.strategy.handleAll({\n params: { cacheKey },\n request,\n event,\n }));\n }\n const { updatedURLs, notUpdatedURLs } = installReportPlugin;\n if (process.env.NODE_ENV !== 'production') {\n printInstallDetails(updatedURLs, notUpdatedURLs);\n }\n return { updatedURLs, notUpdatedURLs };\n });\n }\n /**\n * Deletes assets that are no longer present in the current precache manifest.\n * Call this method from the service worker activate event.\n *\n * Note: this method calls `event.waitUntil()` for you, so you do not need\n * to call it yourself in your event handlers.\n *\n * @param {ExtendableEvent} event\n * @return {Promise<workbox-precaching.CleanupResult>}\n */\n activate(event) {\n // waitUntil returns Promise<any>\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return waitUntil(event, async () => {\n const cache = await self.caches.open(this.strategy.cacheName);\n const currentlyCachedRequests = await cache.keys();\n const expectedCacheKeys = new Set(this._urlsToCacheKeys.values());\n const deletedURLs = [];\n for (const request of currentlyCachedRequests) {\n if (!expectedCacheKeys.has(request.url)) {\n await cache.delete(request);\n deletedURLs.push(request.url);\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n printCleanupDetails(deletedURLs);\n }\n return { deletedURLs };\n });\n }\n /**\n * Returns a mapping of a precached URL to the corresponding cache key, taking\n * into account the revision information for the URL.\n *\n * @return {Map<string, string>} A URL to cache key mapping.\n */\n getURLsToCacheKeys() {\n return this._urlsToCacheKeys;\n }\n /**\n * Returns a list of all the URLs that have been precached by the current\n * service worker.\n *\n * @return {Array<string>} The precached URLs.\n */\n getCachedURLs() {\n return [...this._urlsToCacheKeys.keys()];\n }\n /**\n * Returns the cache key used for storing a given URL. If that URL is\n * unversioned, like `/index.html', then the cache key will be the original\n * URL with a search parameter appended to it.\n *\n * @param {string} url A URL whose cache key you want to look up.\n * @return {string} The versioned URL that corresponds to a cache key\n * for the original URL, or undefined if that URL isn't precached.\n */\n getCacheKeyForURL(url) {\n const urlObject = new URL(url, location.href);\n return this._urlsToCacheKeys.get(urlObject.href);\n }\n /**\n * @param {string} url A cache key whose SRI you want to look up.\n * @return {string} The subresource integrity associated with the cache key,\n * or undefined if it's not set.\n */\n getIntegrityForCacheKey(cacheKey) {\n return this._cacheKeysToIntegrities.get(cacheKey);\n }\n /**\n * This acts as a drop-in replacement for\n * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)\n * with the following differences:\n *\n * - It knows what the name of the precache is, and only checks in that cache.\n * - It allows you to pass in an \"original\" URL without versioning parameters,\n * and it will automatically look up the correct cache key for the currently\n * active revision of that URL.\n *\n * E.g., `matchPrecache('index.html')` will find the correct precached\n * response for the currently active service worker, even if the actual cache\n * key is `'/index.html?__WB_REVISION__=1234abcd'`.\n *\n * @param {string|Request} request The key (without revisioning parameters)\n * to look up in the precache.\n * @return {Promise<Response|undefined>}\n */\n async matchPrecache(request) {\n const url = request instanceof Request ? request.url : request;\n const cacheKey = this.getCacheKeyForURL(url);\n if (cacheKey) {\n const cache = await self.caches.open(this.strategy.cacheName);\n return cache.match(cacheKey);\n }\n return undefined;\n }\n /**\n * Returns a function that looks up `url` in the precache (taking into\n * account revision information), and returns the corresponding `Response`.\n *\n * @param {string} url The precached URL which will be used to lookup the\n * `Response`.\n * @return {workbox-routing~handlerCallback}\n */\n createHandlerBoundToURL(url) {\n const cacheKey = this.getCacheKeyForURL(url);\n if (!cacheKey) {\n throw new WorkboxError('non-precached-url', { url });\n }\n return (options) => {\n options.request = new Request(url);\n options.params = Object.assign({ cacheKey }, options.params);\n return this.strategy.handle(options);\n };\n }\n}\nexport { PrecacheController };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { PrecacheController } from '../PrecacheController.js';\nimport '../_version.js';\nlet precacheController;\n/**\n * @return {PrecacheController}\n * @private\n */\nexport const getOrCreatePrecacheController = () => {\n if (!precacheController) {\n precacheController = new PrecacheController();\n }\n return precacheController;\n};\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { Route } from 'workbox-routing/Route.js';\nimport { generateURLVariations } from './utils/generateURLVariations.js';\nimport './_version.js';\n/**\n * A subclass of {@link workbox-routing.Route} that takes a\n * {@link workbox-precaching.PrecacheController}\n * instance and uses it to match incoming requests and handle fetching\n * responses from the precache.\n *\n * @memberof workbox-precaching\n * @extends workbox-routing.Route\n */\nclass PrecacheRoute extends Route {\n /**\n * @param {PrecacheController} precacheController A `PrecacheController`\n * instance used to both match requests and respond to fetch events.\n * @param {Object} [options] Options to control how requests are matched\n * against the list of precached URLs.\n * @param {string} [options.directoryIndex=index.html] The `directoryIndex` will\n * check cache entries for a URLs ending with '/' to see if there is a hit when\n * appending the `directoryIndex` value.\n * @param {Array<RegExp>} [options.ignoreURLParametersMatching=[/^utm_/, /^fbclid$/]] An\n * array of regex's to remove search params when looking for a cache match.\n * @param {boolean} [options.cleanURLs=true] The `cleanURLs` option will\n * check the cache for the URL with a `.html` added to the end of the end.\n * @param {workbox-precaching~urlManipulation} [options.urlManipulation]\n * This is a function that should take a URL and return an array of\n * alternative URLs that should be checked for precache matches.\n */\n constructor(precacheController, options) {\n const match = ({ request, }) => {\n const urlsToCacheKeys = precacheController.getURLsToCacheKeys();\n for (const possibleURL of generateURLVariations(request.url, options)) {\n const cacheKey = urlsToCacheKeys.get(possibleURL);\n if (cacheKey) {\n const integrity = precacheController.getIntegrityForCacheKey(cacheKey);\n return { cacheKey, integrity };\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Precaching did not find a match for ` + getFriendlyURL(request.url));\n }\n return;\n };\n super(match, precacheController.strategy);\n }\n}\nexport { PrecacheRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { removeIgnoredSearchParams } from './removeIgnoredSearchParams.js';\nimport '../_version.js';\n/**\n * Generator function that yields possible variations on the original URL to\n * check, one at a time.\n *\n * @param {string} url\n * @param {Object} options\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function* generateURLVariations(url, { ignoreURLParametersMatching = [/^utm_/, /^fbclid$/], directoryIndex = 'index.html', cleanURLs = true, urlManipulation, } = {}) {\n const urlObject = new URL(url, location.href);\n urlObject.hash = '';\n yield urlObject.href;\n const urlWithoutIgnoredParams = removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching);\n yield urlWithoutIgnoredParams.href;\n if (directoryIndex && urlWithoutIgnoredParams.pathname.endsWith('/')) {\n const directoryURL = new URL(urlWithoutIgnoredParams.href);\n directoryURL.pathname += directoryIndex;\n yield directoryURL.href;\n }\n if (cleanURLs) {\n const cleanURL = new URL(urlWithoutIgnoredParams.href);\n cleanURL.pathname += '.html';\n yield cleanURL.href;\n }\n if (urlManipulation) {\n const additionalURLs = urlManipulation({ url: urlObject });\n for (const urlToAttempt of additionalURLs) {\n yield urlToAttempt.href;\n }\n }\n}\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * Removes any URL search parameters that should be ignored.\n *\n * @param {URL} urlObject The original URL.\n * @param {Array<RegExp>} ignoreURLParametersMatching RegExps to test against\n * each search parameter name. Matches mean that the search parameter should be\n * ignored.\n * @return {URL} The URL with any ignored search parameters removed.\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching = []) {\n // Convert the iterable into an array at the start of the loop to make sure\n // deletion doesn't mess up iteration.\n for (const paramName of [...urlObject.searchParams.keys()]) {\n if (ignoreURLParametersMatching.some((regExp) => regExp.test(paramName))) {\n urlObject.searchParams.delete(paramName);\n }\n }\n return urlObject;\n}\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { registerRoute } from 'workbox-routing/registerRoute.js';\nimport { getOrCreatePrecacheController } from './utils/getOrCreatePrecacheController.js';\nimport { PrecacheRoute } from './PrecacheRoute.js';\nimport './_version.js';\n/**\n * Add a `fetch` listener to the service worker that will\n * respond to\n * [network requests]{@link https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Custom_responses_to_requests}\n * with precached assets.\n *\n * Requests for assets that aren't precached, the `FetchEvent` will not be\n * responded to, allowing the event to fall through to other `fetch` event\n * listeners.\n *\n * @param {Object} [options] See the {@link workbox-precaching.PrecacheRoute}\n * options.\n *\n * @memberof workbox-precaching\n */\nfunction addRoute(options) {\n const precacheController = getOrCreatePrecacheController();\n const precacheRoute = new PrecacheRoute(precacheController, options);\n registerRoute(precacheRoute);\n}\nexport { addRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { Route } from './Route.js';\nimport { RegExpRoute } from './RegExpRoute.js';\nimport { getOrCreateDefaultRouter } from './utils/getOrCreateDefaultRouter.js';\nimport './_version.js';\n/**\n * Easily register a RegExp, string, or function with a caching\n * strategy to a singleton Router instance.\n *\n * This method will generate a Route for you if needed and\n * call {@link workbox-routing.Router#registerRoute}.\n *\n * @param {RegExp|string|workbox-routing.Route~matchCallback|workbox-routing.Route} capture\n * If the capture param is a `Route`, all other arguments will be ignored.\n * @param {workbox-routing~handlerCallback} [handler] A callback\n * function that returns a Promise resulting in a Response. This parameter\n * is required if `capture` is not a `Route` object.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n * @return {workbox-routing.Route} The generated `Route`.\n *\n * @memberof workbox-routing\n */\nfunction registerRoute(capture, handler, method) {\n let route;\n if (typeof capture === 'string') {\n const captureUrl = new URL(capture, location.href);\n if (process.env.NODE_ENV !== 'production') {\n if (!(capture.startsWith('/') || capture.startsWith('http'))) {\n throw new WorkboxError('invalid-string', {\n moduleName: 'workbox-routing',\n funcName: 'registerRoute',\n paramName: 'capture',\n });\n }\n // We want to check if Express-style wildcards are in the pathname only.\n // TODO: Remove this log message in v4.\n const valueToCheck = capture.startsWith('http')\n ? captureUrl.pathname\n : capture;\n // See https://github.com/pillarjs/path-to-regexp#parameters\n const wildcards = '[*:?+]';\n if (new RegExp(`${wildcards}`).exec(valueToCheck)) {\n logger.debug(`The '$capture' parameter contains an Express-style wildcard ` +\n `character (${wildcards}). Strings are now always interpreted as ` +\n `exact matches; use a RegExp for partial or wildcard matches.`);\n }\n }\n const matchCallback = ({ url }) => {\n if (process.env.NODE_ENV !== 'production') {\n if (url.pathname === captureUrl.pathname &&\n url.origin !== captureUrl.origin) {\n logger.debug(`${capture} only partially matches the cross-origin URL ` +\n `${url.toString()}. This route will only handle cross-origin requests ` +\n `if they match the entire URL.`);\n }\n }\n return url.href === captureUrl.href;\n };\n // If `capture` is a string then `handler` and `method` must be present.\n route = new Route(matchCallback, handler, method);\n }\n else if (capture instanceof RegExp) {\n // If `capture` is a `RegExp` then `handler` and `method` must be present.\n route = new RegExpRoute(capture, handler, method);\n }\n else if (typeof capture === 'function') {\n // If `capture` is a function then `handler` and `method` must be present.\n route = new Route(capture, handler, method);\n }\n else if (capture instanceof Route) {\n route = capture;\n }\n else {\n throw new WorkboxError('unsupported-route-type', {\n moduleName: 'workbox-routing',\n funcName: 'registerRoute',\n paramName: 'capture',\n });\n }\n const defaultRouter = getOrCreateDefaultRouter();\n defaultRouter.registerRoute(route);\n return route;\n}\nexport { registerRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { addRoute } from './addRoute.js';\nimport { precache } from './precache.js';\nimport './_version.js';\n/**\n * This method will add entries to the precache list and add a route to\n * respond to fetch events.\n *\n * This is a convenience method that will call\n * {@link workbox-precaching.precache} and\n * {@link workbox-precaching.addRoute} in a single call.\n *\n * @param {Array<Object|string>} entries Array of entries to precache.\n * @param {Object} [options] See the\n * {@link workbox-precaching.PrecacheRoute} options.\n *\n * @memberof workbox-precaching\n */\nfunction precacheAndRoute(entries, options) {\n precache(entries);\n addRoute(options);\n}\nexport { precacheAndRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { getOrCreatePrecacheController } from './utils/getOrCreatePrecacheController.js';\nimport './_version.js';\n/**\n * Adds items to the precache list, removing any duplicates and\n * stores the files in the\n * {@link workbox-core.cacheNames|\"precache cache\"} when the service\n * worker installs.\n *\n * This method can be called multiple times.\n *\n * Please note: This method **will not** serve any of the cached files for you.\n * It only precaches files. To respond to a network request you call\n * {@link workbox-precaching.addRoute}.\n *\n * If you have a single array of files to precache, you can just call\n * {@link workbox-precaching.precacheAndRoute}.\n *\n * @param {Array<Object|string>} [entries=[]] Array of entries to precache.\n *\n * @memberof workbox-precaching\n */\nfunction precache(entries) {\n const precacheController = getOrCreatePrecacheController();\n precacheController.precache(entries);\n}\nexport { precache };\n"],"names":["self","_","e","messageGenerator","fallback","code","args","msg","length","JSON","stringify","WorkboxError","Error","constructor","errorCode","details","super","this","name","normalizeHandler","handler","handle","Route","match","method","setCatchHandler","catchHandler","RegExpRoute","regExp","url","result","exec","href","origin","location","index","slice","Router","_routes","Map","_defaultHandlerMap","routes","addFetchListener","addEventListener","event","request","responsePromise","handleRequest","respondWith","addCacheListener","data","type","payload","requestPromises","Promise","all","urlsToCache","map","entry","Request","waitUntil","ports","then","postMessage","URL","protocol","startsWith","sameOrigin","params","route","findMatchingRoute","has","get","err","reject","_catchHandler","catch","async","catchErr","matchResult","Array","isArray","Object","keys","undefined","setDefaultHandler","set","registerRoute","push","unregisterRoute","routeIndex","indexOf","splice","defaultRouter","_cacheNameDetails","googleAnalytics","precache","prefix","runtime","suffix","registration","scope","_createCacheName","cacheName","filter","value","join","cacheNames","userCacheName","asyncFn","returnPromise","createCacheKey","urlObject","cacheKey","revision","cacheKeyURL","originalURL","searchParams","PrecacheInstallReportPlugin","updatedURLs","notUpdatedURLs","handlerWillStart","state","originalRequest","cachedResponseWillBeUsed","cachedResponse","PrecacheCacheKeyPlugin","precacheController","cacheKeyWillBeUsed","_precacheController","getCacheKeyForURL","headers","supportStatus","copyResponse","response","modifier","clonedResponse","clone","responseInit","Headers","status","statusText","modifiedResponseInit","body","testResponse","Response","error","canConstructResponseFromBodyStream","blob","stripParams","fullURL","ignoreParams","strippedURL","param","delete","Deferred","promise","resolve","quotaErrorCallbacks","Set","toRequest","input","StrategyHandler","strategy","options","_cacheKeys","assign","_strategy","_handlerDeferred","_extendLifetimePromises","_plugins","plugins","_pluginStateMap","plugin","fetch","mode","FetchEvent","preloadResponse","possiblePreloadResponse","hasCallback","cb","iterateCallbacks","thrownErrorMessage","message","pluginFilteredRequest","fetchResponse","fetchOptions","callback","runCallbacks","fetchAndCachePut","responseClone","cachePut","cacheMatch","key","matchOptions","effectiveRequest","getCacheKey","multiMatchOptions","caches","ms","setTimeout","String","replace","RegExp","responseToCache","_ensureResponseSafeToCache","cache","open","hasCacheUpdateCallback","oldResponse","strippedRequestURL","keysOptions","ignoreSearch","cacheKeys","cacheMatchIgnoreParams","put","executeQuotaErrorCallbacks","newResponse","statefulCallback","statefulParam","doneWaiting","shift","destroy","pluginsUsed","Strategy","responseDone","handleAll","_getResponse","_awaitComplete","_handle","waitUntilError","PrecacheStrategy","_fallbackToNetwork","fallbackToNetwork","copyRedirectedCacheableResponsesPlugin","_handleInstall","_handleFetch","integrityInManifest","integrity","integrityInRequest","noIntegrityConflict","_useDefaultCacheabilityPluginIfNeeded","defaultPluginIndex","cacheWillUpdatePluginCount","entries","defaultPrecacheCacheabilityPlugin","cacheWillUpdate","redirected","PrecacheController","_urlsToCacheKeys","_urlsToCacheModes","_cacheKeysToIntegrities","install","bind","activate","addToCacheList","_installAndActiveListenersAdded","urlsToWarnAbout","cacheMode","firstEntry","secondEntry","warningMessage","console","warn","installReportPlugin","credentials","currentlyCachedRequests","expectedCacheKeys","values","deletedURLs","getURLsToCacheKeys","getCachedURLs","getIntegrityForCacheKey","matchPrecache","createHandlerBoundToURL","getOrCreatePrecacheController","PrecacheRoute","urlsToCacheKeys","possibleURL","ignoreURLParametersMatching","directoryIndex","cleanURLs","urlManipulation","hash","urlWithoutIgnoredParams","paramName","some","test","removeIgnoredSearchParams","pathname","endsWith","directoryURL","cleanURL","additionalURLs","urlToAttempt","generateURLVariations","addRoute","capture","captureUrl","matchCallback","moduleName","funcName"],"mappings":"6CAEA,IACIA,KAAK,uBAAyBC,GAClC,CACA,MAAOC,GAAG,CCEV,MCgBaC,EAdIC,CAACC,KAASC,KACvB,IAAIC,EAAMF,EAIV,OAHIC,EAAKE,OAAS,IACdD,GAAO,OAAOE,KAAKC,UAAUJ,MAE1BC,CAAG,ECId,MAAMI,UAAqBC,MASvBC,WAAAA,CAAYC,EAAWC,GAEnBC,MADgBb,EAAiBW,EAAWC,IAE5CE,KAAKC,KAAOJ,EACZG,KAAKF,QAAUA,CACnB,EC9BJ,IACIf,KAAK,0BAA4BC,GACrC,CACA,MAAOC,GAAG,CCWH,MCAMiB,EAAoBC,GACzBA,GAA8B,iBAAZA,EASXA,EAWA,CAAEC,OAAQD,GCjBzB,MAAME,EAYFT,WAAAA,CAAYU,EAAOH,EAASI,EFhBH,OE8BrBP,KAAKG,QAAUD,EAAiBC,GAChCH,KAAKM,MAAQA,EACbN,KAAKO,OAASA,CAClB,CAMAC,eAAAA,CAAgBL,GACZH,KAAKS,aAAeP,EAAiBC,EACzC,ECnCJ,MAAMO,UAAoBL,EActBT,WAAAA,CAAYe,EAAQR,EAASI,GAiCzBR,OAxBcO,EAAGM,UACb,MAAMC,EAASF,EAAOG,KAAKF,EAAIG,MAE/B,GAAKF,IAODD,EAAII,SAAWC,SAASD,QAA2B,IAAjBH,EAAOK,OAY7C,OAAOL,EAAOM,MAAM,EAAE,GAEbhB,EAASI,EAC1B,ECvCJ,MAAMa,EAIFxB,WAAAA,GACII,KAAKqB,EAAU,IAAIC,IACnBtB,KAAKuB,EAAqB,IAAID,GAClC,CAMA,UAAIE,GACA,OAAOxB,KAAKqB,CAChB,CAKAI,gBAAAA,GAEI1C,KAAK2C,iBAAiB,SAAWC,IAC7B,MAAMC,QAAEA,GAAYD,EACdE,EAAkB7B,KAAK8B,cAAc,CAAEF,UAASD,UAClDE,GACAF,EAAMI,YAAYF,EACtB,GAER,CAuBAG,gBAAAA,GAEIjD,KAAK2C,iBAAiB,WAAaC,IAG/B,GAAIA,EAAMM,MAA4B,eAApBN,EAAMM,KAAKC,KAAuB,CAEhD,MAAMC,QAAEA,GAAYR,EAAMM,KAIpBG,EAAkBC,QAAQC,IAAIH,EAAQI,YAAYC,KAAKC,IACpC,iBAAVA,IACPA,EAAQ,CAACA,IAEb,MAAMb,EAAU,IAAIc,WAAWD,GAC/B,OAAOzC,KAAK8B,cAAc,CAAEF,UAASD,SAAQ,KAKjDA,EAAMgB,UAAUP,GAEZT,EAAMiB,OAASjB,EAAMiB,MAAM,IACtBR,EAAgBS,MAAK,IAAMlB,EAAMiB,MAAM,GAAGE,aAAY,IAEnE,IAER,CAaAhB,aAAAA,EAAcF,QAAEA,EAAOD,MAAEA,IASrB,MAAMf,EAAM,IAAImC,IAAInB,EAAQhB,IAAKK,SAASF,MAC1C,IAAKH,EAAIoC,SAASC,WAAW,QAIzB,OAEJ,MAAMC,EAAatC,EAAII,SAAWC,SAASD,QACrCmC,OAAEA,EAAMC,MAAEA,GAAUpD,KAAKqD,kBAAkB,CAC7C1B,QACAC,UACAsB,aACAtC,QAEJ,IAAIT,EAAUiD,GAASA,EAAMjD,QAe7B,MAAMI,EAASqB,EAAQrB,OAQvB,IAPKJ,GAAWH,KAAKuB,EAAmB+B,IAAI/C,KAKxCJ,EAAUH,KAAKuB,EAAmBgC,IAAIhD,KAErCJ,EAMD,OAkBJ,IAAI0B,EACJ,IACIA,EAAkB1B,EAAQC,OAAO,CAAEQ,MAAKgB,UAASD,QAAOwB,UAC3D,CACD,MAAOK,GACH3B,EAAkBQ,QAAQoB,OAAOD,EACrC,CAEA,MAAM/C,EAAe2C,GAASA,EAAM3C,aAuCpC,OAtCIoB,aAA2BQ,UAC1BrC,KAAK0D,GAAiBjD,KACvBoB,EAAkBA,EAAgB8B,OAAMC,UAEpC,GAAInD,EAUA,IACI,aAAaA,EAAaL,OAAO,CAAEQ,MAAKgB,UAASD,QAAOwB,UAC3D,CACD,MAAOU,GACCA,aAAoBlE,QACpB6D,EAAMK,EAEd,CAEJ,GAAI7D,KAAK0D,EAUL,OAAO1D,KAAK0D,EAActD,OAAO,CAAEQ,MAAKgB,UAASD,UAErD,MAAM6B,CAAG,KAGV3B,CACX,CAgBAwB,iBAAAA,EAAkBzC,IAAEA,EAAGsC,WAAEA,EAAUtB,QAAEA,EAAOD,MAAEA,IAC1C,MAAMH,EAASxB,KAAKqB,EAAQkC,IAAI3B,EAAQrB,SAAW,GACnD,IAAK,MAAM6C,KAAS5B,EAAQ,CACxB,IAAI2B,EAGJ,MAAMW,EAAcV,EAAM9C,MAAM,CAAEM,MAAKsC,aAAYtB,UAASD,UAC5D,GAAImC,EA6BA,OAjBAX,EAASW,GACLC,MAAMC,QAAQb,IAA6B,IAAlBA,EAAO5D,QAI3BuE,EAAYlE,cAAgBqE,QACG,IAApCA,OAAOC,KAAKJ,GAAavE,QAIG,kBAAhBuE,KAPZX,OAASgB,GAcN,CAAEf,QAAOD,SAExB,CAEA,MAAO,EACX,CAeAiB,iBAAAA,CAAkBjE,EAASI,EJ1SF,OI2SrBP,KAAKuB,EAAmB8C,IAAI9D,EAAQL,EAAiBC,GACzD,CAQAK,eAAAA,CAAgBL,GACZH,KAAK0D,EAAgBxD,EAAiBC,EAC1C,CAMAmE,aAAAA,CAAclB,GAiCLpD,KAAKqB,EAAQiC,IAAIF,EAAM7C,SACxBP,KAAKqB,EAAQgD,IAAIjB,EAAM7C,OAAQ,IAInCP,KAAKqB,EAAQkC,IAAIH,EAAM7C,QAAQgE,KAAKnB,EACxC,CAMAoB,eAAAA,CAAgBpB,GACZ,IAAKpD,KAAKqB,EAAQiC,IAAIF,EAAM7C,QACxB,MAAM,IAAIb,EAAa,6CAA8C,CACjEa,OAAQ6C,EAAM7C,SAGtB,MAAMkE,EAAazE,KAAKqB,EAAQkC,IAAIH,EAAM7C,QAAQmE,QAAQtB,GAC1D,KAAIqB,GAAc,GAId,MAAM,IAAI/E,EAAa,yCAHvBM,KAAKqB,EAAQkC,IAAIH,EAAM7C,QAAQoE,OAAOF,EAAY,EAK1D,EC7XJ,IAAIG,ECDJ,MAAMC,EAAoB,CACtBC,gBAAiB,kBACjBC,SAAU,cACVC,OAAQ,UACRC,QAAS,UACTC,OAAgC,oBAAjBC,aAA+BA,aAAaC,MAAQ,IAEjEC,EAAoBC,GACf,CAACT,EAAkBG,OAAQM,EAAWT,EAAkBK,QAC1DK,QAAQC,GAAUA,GAASA,EAAMjG,OAAS,IAC1CkG,KAAK,KAODC,EAWSC,GACPA,GAAiBN,EAAiBR,EAAkBE,UAZtDW,EAiBQC,GACNA,GAAiBN,EAAiBR,EAAkBI,SC3BnE,SAAStC,EAAUhB,EAAOiE,GACtB,MAAMC,EAAgBD,IAEtB,OADAjE,EAAMgB,UAAUkD,GACTA,CACX,CClBA,IACI9G,KAAK,6BAA+BC,GACxC,CACA,MAAOC,GAAG,CCeH,SAAS6G,EAAerD,GAC3B,IAAKA,EACD,MAAM,IAAI/C,EAAa,oCAAqC,CAAE+C,UAIlE,GAAqB,iBAAVA,EAAoB,CAC3B,MAAMsD,EAAY,IAAIhD,IAAIN,EAAOxB,SAASF,MAC1C,MAAO,CACHiF,SAAUD,EAAUhF,KACpBH,IAAKmF,EAAUhF,KAEvB,CACA,MAAMkF,SAAEA,EAAQrF,IAAEA,GAAQ6B,EAC1B,IAAK7B,EACD,MAAM,IAAIlB,EAAa,oCAAqC,CAAE+C,UAIlE,IAAKwD,EAAU,CACX,MAAMF,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACxC,MAAO,CACHiF,SAAUD,EAAUhF,KACpBH,IAAKmF,EAAUhF,KAEvB,CAGA,MAAMmF,EAAc,IAAInD,IAAInC,EAAKK,SAASF,MACpCoF,EAAc,IAAIpD,IAAInC,EAAKK,SAASF,MAE1C,OADAmF,EAAYE,aAAa/B,IAxCC,kBAwC0B4B,GAC7C,CACHD,SAAUE,EAAYnF,KACtBH,IAAKuF,EAAYpF,KAEzB,CCzCA,MAAMsF,EACFzG,WAAAA,GACII,KAAKsG,YAAc,GACnBtG,KAAKuG,eAAiB,GACtBvG,KAAKwG,iBAAmB5C,OAAShC,UAAS6E,YAElCA,IACAA,EAAMC,gBAAkB9E,EAC5B,EAEJ5B,KAAK2G,yBAA2B/C,OAASjC,QAAO8E,QAAOG,qBACnD,GAAmB,YAAfjF,EAAMO,MACFuE,GACAA,EAAMC,iBACND,EAAMC,2BAA2BhE,QAAS,CAE1C,MAAM9B,EAAM6F,EAAMC,gBAAgB9F,IAC9BgG,EACA5G,KAAKuG,eAAehC,KAAK3D,GAGzBZ,KAAKsG,YAAY/B,KAAK3D,EAE9B,CAEJ,OAAOgG,CAAc,CAE7B,EC3BJ,MAAMC,EACFjH,WAAAA,EAAYkH,mBAAEA,IACV9G,KAAK+G,mBAAqBnD,OAAShC,UAASuB,aAGxC,MAAM6C,GAAY7C,aAAuC,EAASA,EAAO6C,WACrEhG,KAAKgH,EAAoBC,kBAAkBrF,EAAQhB,KAEvD,OAAOoF,EACD,IAAItD,QAAQsD,EAAU,CAAEkB,QAAStF,EAAQsF,UACzCtF,CAAO,EAEjB5B,KAAKgH,EAAsBF,CAC/B,ECnBJ,IAAIK,ECqBJvD,eAAewD,EAAaC,EAAUC,GAClC,IAAItG,EAAS,KAEb,GAAIqG,EAASzG,IAAK,CAEdI,EADoB,IAAI+B,IAAIsE,EAASzG,KAChBI,MACzB,CACA,GAAIA,IAAWjC,KAAKkC,SAASD,OACzB,MAAM,IAAItB,EAAa,6BAA8B,CAAEsB,WAE3D,MAAMuG,EAAiBF,EAASG,QAE1BC,EAAe,CACjBP,QAAS,IAAIQ,QAAQH,EAAeL,SACpCS,OAAQJ,EAAeI,OACvBC,WAAYL,EAAeK,YAGzBC,EAAuBP,EAAWA,EAASG,GAAgBA,EAI3DK,EDjCV,WACI,QAAsB3D,IAAlBgD,EAA6B,CAC7B,MAAMY,EAAe,IAAIC,SAAS,IAClC,GAAI,SAAUD,EACV,IACI,IAAIC,SAASD,EAAaD,MAC1BX,GAAgB,CACnB,CACD,MAAOc,GACHd,GAAgB,CACpB,CAEJA,GAAgB,CACpB,CACA,OAAOA,CACX,CCkBiBe,GACPX,EAAeO,WACTP,EAAeY,OAC3B,OAAO,IAAIH,SAASF,EAAMD,EAC9B,CChDA,SAASO,EAAYC,EAASC,GAC1B,MAAMC,EAAc,IAAIxF,IAAIsF,GAC5B,IAAK,MAAMG,KAASF,EAChBC,EAAYnC,aAAaqC,OAAOD,GAEpC,OAAOD,EAAYxH,IACvB,CCGA,MAAM2H,EAIF9I,WAAAA,GACII,KAAK2I,QAAU,IAAItG,SAAQ,CAACuG,EAASnF,KACjCzD,KAAK4I,QAAUA,EACf5I,KAAKyD,OAASA,CAAM,GAE5B,ECdJ,MAAMoF,EAAsB,IAAIC,ICThC,IACI/J,KAAK,6BAA+BC,GACxC,CACA,MAAOC,GAAG,CCWV,SAAS8J,EAAUC,GACf,MAAwB,iBAAVA,EAAqB,IAAItG,QAAQsG,GAASA,CAC5D,CAUA,MAAMC,EAiBFrJ,WAAAA,CAAYsJ,EAAUC,GAClBnJ,KAAKoJ,EAAa,GA8ClBnF,OAAOoF,OAAOrJ,KAAMmJ,GACpBnJ,KAAK2B,MAAQwH,EAAQxH,MACrB3B,KAAKsJ,EAAYJ,EACjBlJ,KAAKuJ,EAAmB,IAAIb,EAC5B1I,KAAKwJ,EAA0B,GAG/BxJ,KAAKyJ,EAAW,IAAIP,EAASQ,SAC7B1J,KAAK2J,EAAkB,IAAIrI,IAC3B,IAAK,MAAMsI,KAAU5J,KAAKyJ,EACtBzJ,KAAK2J,EAAgBtF,IAAIuF,EAAQ,CAAE,GAEvC5J,KAAK2B,MAAMgB,UAAU3C,KAAKuJ,EAAiBZ,QAC/C,CAcA,WAAMkB,CAAMb,GACR,MAAMrH,MAAEA,GAAU3B,KAClB,IAAI4B,EAAUmH,EAAUC,GACxB,GAAqB,aAAjBpH,EAAQkI,MACRnI,aAAiBoI,YACjBpI,EAAMqI,gBAAiB,CACvB,MAAMC,QAAiCtI,EAAMqI,gBAC7C,GAAIC,EAKA,OAAOA,CAEf,CAIA,MAAMvD,EAAkB1G,KAAKkK,YAAY,gBACnCtI,EAAQ4F,QACR,KACN,IACI,IAAK,MAAM2C,KAAMnK,KAAKoK,iBAAiB,oBACnCxI,QAAgBuI,EAAG,CAAEvI,QAASA,EAAQ4F,QAAS7F,SAEtD,CACD,MAAO6B,GACH,GAAIA,aAAe7D,MACf,MAAM,IAAID,EAAa,kCAAmC,CACtD2K,mBAAoB7G,EAAI8G,SAGpC,CAIA,MAAMC,EAAwB3I,EAAQ4F,QACtC,IACI,IAAIgD,EAEJA,QAAsBX,MAAMjI,EAA0B,aAAjBA,EAAQkI,UAAsB3F,EAAYnE,KAAKsJ,EAAUmB,cAM9F,IAAK,MAAMC,KAAY1K,KAAKoK,iBAAiB,mBACzCI,QAAsBE,EAAS,CAC3B/I,QACAC,QAAS2I,EACTlD,SAAUmD,IAGlB,OAAOA,CACV,CACD,MAAOvC,GAeH,MARIvB,SACM1G,KAAK2K,aAAa,eAAgB,CACpC1C,MAAOA,EACPtG,QACA+E,gBAAiBA,EAAgBc,QACjC5F,QAAS2I,EAAsB/C,UAGjCS,CACV,CACJ,CAWA,sBAAM2C,CAAiB5B,GACnB,MAAM3B,QAAiBrH,KAAK6J,MAAMb,GAC5B6B,EAAgBxD,EAASG,QAE/B,OADKxH,KAAK2C,UAAU3C,KAAK8K,SAAS9B,EAAO6B,IAClCxD,CACX,CAaA,gBAAM0D,CAAWC,GACb,MAAMpJ,EAAUmH,EAAUiC,GAC1B,IAAIpE,EACJ,MAAMtB,UAAEA,EAAS2F,aAAEA,GAAiBjL,KAAKsJ,EACnC4B,QAAyBlL,KAAKmL,YAAYvJ,EAAS,QACnDwJ,EAAoBnH,OAAOoF,OAAOpF,OAAOoF,OAAO,CAAA,EAAI4B,GAAe,CAAE3F,cAC3EsB,QAAuByE,OAAO/K,MAAM4K,EAAkBE,GAStD,IAAK,MAAMV,KAAY1K,KAAKoK,iBAAiB,4BACzCxD,QACW8D,EAAS,CACZpF,YACA2F,eACArE,iBACAhF,QAASsJ,EACTvJ,MAAO3B,KAAK2B,cACTwC,EAEf,OAAOyC,CACX,CAgBA,cAAMkE,CAASE,EAAK3D,GAChB,MAAMzF,EAAUmH,EAAUiC,GCxP3B,IAAiBM,UD2PF,EC1PX,IAAIjJ,SAASuG,GAAY2C,WAAW3C,EAAS0C,MD2PhD,MAAMJ,QAAyBlL,KAAKmL,YAAYvJ,EAAS,SAiBzD,IAAKyF,EAKD,MAAM,IAAI3H,EAAa,6BAA8B,CACjDkB,KE1RQA,EF0RYsK,EAAiBtK,IEzRlC,IAAImC,IAAIyI,OAAO5K,GAAMK,SAASF,MAG/BA,KAAK0K,QAAQ,IAAIC,OAAO,IAAIzK,SAASD,UAAW,OAJ1CJ,MF6RhB,MAAM+K,QAAwB3L,KAAK4L,EAA2BvE,GAC9D,IAAKsE,EAKD,OAAO,EAEX,MAAMrG,UAAEA,EAAS2F,aAAEA,GAAiBjL,KAAKsJ,EACnCuC,QAAc9M,KAAKsM,OAAOS,KAAKxG,GAC/ByG,EAAyB/L,KAAKkK,YAAY,kBAC1C8B,EAAcD,QJtR5BnI,eAAsCiI,EAAOjK,EAAS0G,EAAc2C,GAChE,MAAMgB,EAAqB7D,EAAYxG,EAAQhB,IAAK0H,GAEpD,GAAI1G,EAAQhB,MAAQqL,EAChB,OAAOJ,EAAMvL,MAAMsB,EAASqJ,GAGhC,MAAMiB,EAAcjI,OAAOoF,OAAOpF,OAAOoF,OAAO,CAAA,EAAI4B,GAAe,CAAEkB,cAAc,IAC7EC,QAAkBP,EAAM3H,KAAKtC,EAASsK,GAC5C,IAAK,MAAMlG,KAAYoG,EAEnB,GAAIH,IADwB7D,EAAYpC,EAASpF,IAAK0H,GAElD,OAAOuD,EAAMvL,MAAM0F,EAAUiF,EAIzC,CIuQoBoB,CAIRR,EAAOX,EAAiB1D,QAAS,CAAC,mBAAoByD,GACpD,KAKN,UACUY,EAAMS,IAAIpB,EAAkBa,EAAyBJ,EAAgBnE,QAAUmE,EACxF,CACD,MAAO1D,GACH,GAAIA,aAAiBtI,MAKjB,KAHmB,uBAAfsI,EAAMhI,YGhT1B2D,iBAKI,IAAK,MAAM8G,KAAY7B,QACb6B,GAQd,CHmS0B6B,GAEJtE,CAEd,CACA,IAAK,MAAMyC,KAAY1K,KAAKoK,iBAAiB,wBACnCM,EAAS,CACXpF,YACA0G,cACAQ,YAAab,EAAgBnE,QAC7B5F,QAASsJ,EACTvJ,MAAO3B,KAAK2B,QAGpB,OAAO,CACX,CAYA,iBAAMwJ,CAAYvJ,EAASkI,GACvB,MAAMkB,EAAM,GAAGpJ,EAAQhB,SAASkJ,IAChC,IAAK9J,KAAKoJ,EAAW4B,GAAM,CACvB,IAAIE,EAAmBtJ,EACvB,IAAK,MAAM8I,KAAY1K,KAAKoK,iBAAiB,sBACzCc,EAAmBnC,QAAgB2B,EAAS,CACxCZ,OACAlI,QAASsJ,EACTvJ,MAAO3B,KAAK2B,MAEZwB,OAAQnD,KAAKmD,UAGrBnD,KAAKoJ,EAAW4B,GAAOE,CAC3B,CACA,OAAOlL,KAAKoJ,EAAW4B,EAC3B,CAQAd,WAAAA,CAAYjK,GACR,IAAK,MAAM2J,KAAU5J,KAAKsJ,EAAUI,QAChC,GAAIzJ,KAAQ2J,EACR,OAAO,EAGf,OAAO,CACX,CAiBA,kBAAMe,CAAa1K,EAAMuI,GACrB,IAAK,MAAMkC,KAAY1K,KAAKoK,iBAAiBnK,SAGnCyK,EAASlC,EAEvB,CAUA,iBAAC4B,CAAiBnK,GACd,IAAK,MAAM2J,KAAU5J,KAAKsJ,EAAUI,QAChC,GAA4B,mBAAjBE,EAAO3J,GAAsB,CACpC,MAAMwG,EAAQzG,KAAK2J,EAAgBpG,IAAIqG,GACjC6C,EAAoBjE,IACtB,MAAMkE,EAAgBzI,OAAOoF,OAAOpF,OAAOoF,OAAO,CAAA,EAAIb,GAAQ,CAAE/B,UAGhE,OAAOmD,EAAO3J,GAAMyM,EAAc,QAEhCD,CACV,CAER,CAcA9J,SAAAA,CAAUgG,GAEN,OADA3I,KAAKwJ,EAAwBjF,KAAKoE,GAC3BA,CACX,CAWA,iBAAMgE,GACF,IAAIhE,EACJ,KAAQA,EAAU3I,KAAKwJ,EAAwBoD,eACrCjE,CAEd,CAKAkE,OAAAA,GACI7M,KAAKuJ,EAAiBX,QAAQ,KAClC,CAWA,OAAMgD,CAA2BvE,GAC7B,IAAIsE,EAAkBtE,EAClByF,GAAc,EAClB,IAAK,MAAMpC,KAAY1K,KAAKoK,iBAAiB,mBAQzC,GAPAuB,QACWjB,EAAS,CACZ9I,QAAS5B,KAAK4B,QACdyF,SAAUsE,EACVhK,MAAO3B,KAAK2B,cACTwC,EACX2I,GAAc,GACTnB,EACD,MAwBR,OArBKmB,GACGnB,GAA8C,MAA3BA,EAAgBhE,SACnCgE,OAAkBxH,GAmBnBwH,CACX,EIhfJ,MAAMoB,EAuBFnN,WAAAA,CAAYuJ,EAAU,IAQlBnJ,KAAKsF,UAAYI,EAA0ByD,EAAQ7D,WAQnDtF,KAAK0J,QAAUP,EAAQO,SAAW,GAQlC1J,KAAKyK,aAAetB,EAAQsB,aAQ5BzK,KAAKiL,aAAe9B,EAAQ8B,YAChC,CAoBA7K,MAAAA,CAAO+I,GACH,MAAO6D,GAAgBhN,KAAKiN,UAAU9D,GACtC,OAAO6D,CACX,CAuBAC,SAAAA,CAAU9D,GAEFA,aAAmBY,aACnBZ,EAAU,CACNxH,MAAOwH,EACPvH,QAASuH,EAAQvH,UAGzB,MAAMD,EAAQwH,EAAQxH,MAChBC,EAAqC,iBAApBuH,EAAQvH,QACzB,IAAIc,QAAQyG,EAAQvH,SACpBuH,EAAQvH,QACRuB,EAAS,WAAYgG,EAAUA,EAAQhG,YAASgB,EAChDhE,EAAU,IAAI8I,EAAgBjJ,KAAM,CAAE2B,QAAOC,UAASuB,WACtD6J,EAAehN,KAAKkN,EAAa/M,EAASyB,EAASD,GAGzD,MAAO,CAACqL,EAFYhN,KAAKmN,EAAeH,EAAc7M,EAASyB,EAASD,GAG5E,CACA,OAAMuL,CAAa/M,EAASyB,EAASD,GAEjC,IAAI0F,QADElH,EAAQwK,aAAa,mBAAoB,CAAEhJ,QAAOC,YAExD,IAKI,GAJAyF,QAAiBrH,KAAKoN,EAAQxL,EAASzB,IAIlCkH,GAA8B,UAAlBA,EAASnF,KACtB,MAAM,IAAIxC,EAAa,cAAe,CAAEkB,IAAKgB,EAAQhB,KAE5D,CACD,MAAOqH,GACH,GAAIA,aAAiBtI,MACjB,IAAK,MAAM+K,KAAYvK,EAAQiK,iBAAiB,mBAE5C,GADA/C,QAAiBqD,EAAS,CAAEzC,QAAOtG,QAAOC,YACtCyF,EACA,MAIZ,IAAKA,EACD,MAAMY,CAOd,CACA,IAAK,MAAMyC,KAAYvK,EAAQiK,iBAAiB,sBAC5C/C,QAAiBqD,EAAS,CAAE/I,QAAOC,UAASyF,aAEhD,OAAOA,CACX,CACA,OAAM8F,CAAeH,EAAc7M,EAASyB,EAASD,GACjD,IAAI0F,EACAY,EACJ,IACIZ,QAAiB2F,CACpB,CACD,MAAO/E,GAGH,CAEJ,UACU9H,EAAQwK,aAAa,oBAAqB,CAC5ChJ,QACAC,UACAyF,mBAEElH,EAAQwM,aACjB,CACD,MAAOU,GACCA,aAA0B1N,QAC1BsI,EAAQoF,EAEhB,CAQA,SAPMlN,EAAQwK,aAAa,qBAAsB,CAC7ChJ,QACAC,UACAyF,WACAY,MAAOA,IAEX9H,EAAQ0M,UACJ5E,EACA,MAAMA,CAEd,ECtLJ,MAAMqF,UAAyBP,EAkB3BnN,WAAAA,CAAYuJ,EAAU,IAClBA,EAAQ7D,UAAYI,EAA2ByD,EAAQ7D,WACvDvF,MAAMoJ,GACNnJ,KAAKuN,GAC6B,IAA9BpE,EAAQqE,kBAKZxN,KAAK0J,QAAQnF,KAAK+I,EAAiBG,uCACvC,CAQA,OAAML,CAAQxL,EAASzB,GACnB,MAAMkH,QAAiBlH,EAAQ4K,WAAWnJ,GAC1C,OAAIyF,IAKAlH,EAAQwB,OAAgC,YAAvBxB,EAAQwB,MAAMO,WAClBlC,KAAK0N,EAAe9L,EAASzB,SAIjCH,KAAK2N,EAAa/L,EAASzB,GAC5C,CACA,OAAMwN,CAAa/L,EAASzB,GACxB,IAAIkH,EACJ,MAAMlE,EAAUhD,EAAQgD,QAAU,GAElC,IAAInD,KAAKuN,EAuCL,MAAM,IAAI7N,EAAa,yBAA0B,CAC7C4F,UAAWtF,KAAKsF,UAChB1E,IAAKgB,EAAQhB,MAzCQ,CAMzB,MAAMgN,EAAsBzK,EAAO0K,UAC7BC,EAAqBlM,EAAQiM,UAC7BE,GAAuBD,GAAsBA,IAAuBF,EAG1EvG,QAAiBlH,EAAQ0J,MAAM,IAAInH,QAAQd,EAAS,CAChDiM,UAA4B,YAAjBjM,EAAQkI,KACbgE,GAAsBF,OACtBzJ,KASNyJ,GACAG,GACiB,YAAjBnM,EAAQkI,OACR9J,KAAKgO,UACmB7N,EAAQ2K,SAASlJ,EAASyF,EAASG,SAQnE,CAuBA,OAAOH,CACX,CACA,OAAMqG,CAAe9L,EAASzB,GAC1BH,KAAKgO,IACL,MAAM3G,QAAiBlH,EAAQ0J,MAAMjI,GAIrC,UADwBzB,EAAQ2K,SAASlJ,EAASyF,EAASG,SAIvD,MAAM,IAAI9H,EAAa,0BAA2B,CAC9CkB,IAAKgB,EAAQhB,IACb+G,OAAQN,EAASM,SAGzB,OAAON,CACX,CA4BA2G,CAAAA,GACI,IAAIC,EAAqB,KACrBC,EAA6B,EACjC,IAAK,MAAOhN,EAAO0I,KAAW5J,KAAK0J,QAAQyE,UAEnCvE,IAAW0D,EAAiBG,yCAI5B7D,IAAW0D,EAAiBc,oCAC5BH,EAAqB/M,GAErB0I,EAAOyE,iBACPH,KAG2B,IAA/BA,EACAlO,KAAK0J,QAAQnF,KAAK+I,EAAiBc,mCAE9BF,EAA6B,GAA4B,OAAvBD,GAEvCjO,KAAK0J,QAAQ/E,OAAOsJ,EAAoB,EAGhD,EAEJX,EAAiBc,kCAAoC,CACjDxK,gBAAqByK,OAAChH,SAAEA,MACfA,GAAYA,EAASM,QAAU,IACzB,KAEJN,GAGfiG,EAAiBG,uCAAyC,CACtD7J,gBAAqByK,OAAChH,SAAEA,KACbA,EAASiH,iBAAmBlH,EAAaC,GAAYA,GCnMpE,MAAMkH,EAWF3O,WAAAA,EAAY0F,UAAEA,EAASoE,QAAEA,EAAU,GAAE8D,kBAAEA,GAAoB,GAAU,IACjExN,KAAKwO,EAAmB,IAAIlN,IAC5BtB,KAAKyO,EAAoB,IAAInN,IAC7BtB,KAAK0O,EAA0B,IAAIpN,IACnCtB,KAAKsJ,EAAY,IAAIgE,EAAiB,CAClChI,UAAWI,EAA2BJ,GACtCoE,QAAS,IACFA,EACH,IAAI7C,EAAuB,CAAEC,mBAAoB9G,QAErDwN,sBAGJxN,KAAK2O,QAAU3O,KAAK2O,QAAQC,KAAK5O,MACjCA,KAAK6O,SAAW7O,KAAK6O,SAASD,KAAK5O,KACvC,CAKA,YAAIkJ,GACA,OAAOlJ,KAAKsJ,CAChB,CAWAvE,QAAAA,CAASoJ,GACLnO,KAAK8O,eAAeX,GACfnO,KAAK+O,IACNhQ,KAAK2C,iBAAiB,UAAW1B,KAAK2O,SACtC5P,KAAK2C,iBAAiB,WAAY1B,KAAK6O,UACvC7O,KAAK+O,GAAkC,EAE/C,CAQAD,cAAAA,CAAeX,GASX,MAAMa,EAAkB,GACxB,IAAK,MAAMvM,KAAS0L,EAAS,CAEJ,iBAAV1L,EACPuM,EAAgBzK,KAAK9B,GAEhBA,QAA4B0B,IAAnB1B,EAAMwD,UACpB+I,EAAgBzK,KAAK9B,EAAM7B,KAE/B,MAAMoF,SAAEA,EAAQpF,IAAEA,GAAQkF,EAAerD,GACnCwM,EAA6B,iBAAVxM,GAAsBA,EAAMwD,SAAW,SAAW,UAC3E,GAAIjG,KAAKwO,EAAiBlL,IAAI1C,IAC1BZ,KAAKwO,EAAiBjL,IAAI3C,KAASoF,EACnC,MAAM,IAAItG,EAAa,wCAAyC,CAC5DwP,WAAYlP,KAAKwO,EAAiBjL,IAAI3C,GACtCuO,YAAanJ,IAGrB,GAAqB,iBAAVvD,GAAsBA,EAAMoL,UAAW,CAC9C,GAAI7N,KAAK0O,EAAwBpL,IAAI0C,IACjChG,KAAK0O,EAAwBnL,IAAIyC,KAAcvD,EAAMoL,UACrD,MAAM,IAAInO,EAAa,4CAA6C,CAChEkB,QAGRZ,KAAK0O,EAAwBrK,IAAI2B,EAAUvD,EAAMoL,UACrD,CAGA,GAFA7N,KAAKwO,EAAiBnK,IAAIzD,EAAKoF,GAC/BhG,KAAKyO,EAAkBpK,IAAIzD,EAAKqO,GAC5BD,EAAgBzP,OAAS,EAAG,CAC5B,MAAM6P,EACF,qDAASJ,EAAgBvJ,KAAK,8EAK9B4J,QAAQC,KAAKF,EAKrB,CACJ,CACJ,CAWAT,OAAAA,CAAQhN,GAGJ,OAAOgB,EAAUhB,GAAOiC,UACpB,MAAM2L,EAAsB,IAAIlJ,EAChCrG,KAAKkJ,SAASQ,QAAQnF,KAAKgL,GAG3B,IAAK,MAAO3O,EAAKoF,KAAahG,KAAKwO,EAAkB,CACjD,MAAMX,EAAY7N,KAAK0O,EAAwBnL,IAAIyC,GAC7CiJ,EAAYjP,KAAKyO,EAAkBlL,IAAI3C,GACvCgB,EAAU,IAAIc,QAAQ9B,EAAK,CAC7BiN,YACAhC,MAAOoD,EACPO,YAAa,sBAEXnN,QAAQC,IAAItC,KAAKkJ,SAAS+D,UAAU,CACtC9J,OAAQ,CAAE6C,YACVpE,UACAD,UAER,CACA,MAAM2E,YAAEA,EAAWC,eAAEA,GAAmBgJ,EAIxC,MAAO,CAAEjJ,cAAaC,iBAAgB,GAE9C,CAWAsI,QAAAA,CAASlN,GAGL,OAAOgB,EAAUhB,GAAOiC,UACpB,MAAMiI,QAAc9M,KAAKsM,OAAOS,KAAK9L,KAAKkJ,SAAS5D,WAC7CmK,QAAgC5D,EAAM3H,OACtCwL,EAAoB,IAAI5G,IAAI9I,KAAKwO,EAAiBmB,UAClDC,EAAc,GACpB,IAAK,MAAMhO,KAAW6N,EACbC,EAAkBpM,IAAI1B,EAAQhB,aACzBiL,EAAMpD,OAAO7G,GACnBgO,EAAYrL,KAAK3C,EAAQhB,MAMjC,MAAO,CAAEgP,cAAa,GAE9B,CAOAC,kBAAAA,GACI,OAAO7P,KAAKwO,CAChB,CAOAsB,aAAAA,GACI,MAAO,IAAI9P,KAAKwO,EAAiBtK,OACrC,CAUA+C,iBAAAA,CAAkBrG,GACd,MAAMmF,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACxC,OAAOf,KAAKwO,EAAiBjL,IAAIwC,EAAUhF,KAC/C,CAMAgP,uBAAAA,CAAwB/J,GACpB,OAAOhG,KAAK0O,EAAwBnL,IAAIyC,EAC5C,CAmBA,mBAAMgK,CAAcpO,GAChB,MAAMhB,EAAMgB,aAAmBc,QAAUd,EAAQhB,IAAMgB,EACjDoE,EAAWhG,KAAKiH,kBAAkBrG,GACxC,GAAIoF,EAAU,CAEV,aADoBjH,KAAKsM,OAAOS,KAAK9L,KAAKkJ,SAAS5D,YACtChF,MAAM0F,EACvB,CAEJ,CASAiK,uBAAAA,CAAwBrP,GACpB,MAAMoF,EAAWhG,KAAKiH,kBAAkBrG,GACxC,IAAKoF,EACD,MAAM,IAAItG,EAAa,oBAAqB,CAAEkB,QAElD,OAAQuI,IACJA,EAAQvH,QAAU,IAAIc,QAAQ9B,GAC9BuI,EAAQhG,OAASc,OAAOoF,OAAO,CAAErD,YAAYmD,EAAQhG,QAC9CnD,KAAKkJ,SAAS9I,OAAO+I,GAEpC,ECxRJ,IAAIrC,EAKG,MAAMoJ,EAAgCA,KACpCpJ,IACDA,EAAqB,IAAIyH,GAEtBzH,GCGX,MAAMqJ,UAAsB9P,EAiBxBT,WAAAA,CAAYkH,EAAoBqC,GAe5BpJ,OAdcO,EAAGsB,cACb,MAAMwO,EAAkBtJ,EAAmB+I,qBAC3C,IAAK,MAAMQ,KCtBhB,UAAgCzP,GAAK0P,4BAAEA,EAA8B,CAAC,QAAS,YAAWC,eAAEA,EAAiB,aAAYC,UAAEA,GAAY,EAAIC,gBAAEA,GAAqB,IACrK,MAAM1K,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACxCgF,EAAU2K,KAAO,SACX3K,EAAUhF,KAChB,MAAM4P,ECHH,SAAmC5K,EAAWuK,EAA8B,IAG/E,IAAK,MAAMM,IAAa,IAAI7K,EAAUK,aAAalC,QAC3CoM,EAA4BO,MAAMlQ,GAAWA,EAAOmQ,KAAKF,MACzD7K,EAAUK,aAAaqC,OAAOmI,GAGtC,OAAO7K,CACX,CDNoCgL,CAA0BhL,EAAWuK,GAErE,SADMK,EAAwB5P,KAC1BwP,GAAkBI,EAAwBK,SAASC,SAAS,KAAM,CAClE,MAAMC,EAAe,IAAInO,IAAI4N,EAAwB5P,MACrDmQ,EAAaF,UAAYT,QACnBW,EAAanQ,IACvB,CACA,GAAIyP,EAAW,CACX,MAAMW,EAAW,IAAIpO,IAAI4N,EAAwB5P,MACjDoQ,EAASH,UAAY,cACfG,EAASpQ,IACnB,CACA,GAAI0P,EAAiB,CACjB,MAAMW,EAAiBX,EAAgB,CAAE7P,IAAKmF,IAC9C,IAAK,MAAMsL,KAAgBD,QACjBC,EAAatQ,IAE3B,CACJ,CDAsCuQ,CAAsB1P,EAAQhB,IAAKuI,GAAU,CACnE,MAAMnD,EAAWoK,EAAgB7M,IAAI8M,GACrC,GAAIrK,EAAU,CAEV,MAAO,CAAEA,WAAU6H,UADD/G,EAAmBiJ,wBAAwB/J,GAEjE,CACJ,CAIA,GAESc,EAAmBoC,SACpC,EG7BJ,SAASqI,EAASpI,GACd,MAAMrC,EAAqBoJ,KCK/B,SAAuBsB,EAASrR,EAASI,GACrC,IAAI6C,EACJ,GAAuB,iBAAZoO,EAAsB,CAC7B,MAAMC,EAAa,IAAI1O,IAAIyO,EAASvQ,SAASF,MAkC7CqC,EAAQ,IAAI/C,GAZUqR,EAAG9Q,SASdA,EAAIG,OAAS0Q,EAAW1Q,MAGFZ,EAASI,EAC9C,MACK,GAAIiR,aAAmB9F,OAExBtI,EAAQ,IAAI1C,EAAY8Q,EAASrR,EAASI,QAEzC,GAAuB,mBAAZiR,EAEZpO,EAAQ,IAAI/C,EAAMmR,EAASrR,EAASI,OAEnC,MAAIiR,aAAmBnR,GAIxB,MAAM,IAAIX,EAAa,yBAA0B,CAC7CiS,WAAY,kBACZC,SAAU,gBACVhB,UAAW,YANfxN,EAAQoO,CAQZ,EzBrEK5M,IACDA,EAAgB,IAAIxD,EAEpBwD,EAAcnD,mBACdmD,EAAc5C,oBAEX4C,GyBiEON,cAAclB,EAEhC,CD/DIkB,CADsB,IAAI6L,EAAcrJ,EAAoBqC,GAEhE,oBELA,SAA0BgF,EAAShF,ICInC,SAAkBgF,GACa+B,IACRnL,SAASoJ,EAChC,CDNIpJ,CAASoJ,GACToD,EAASpI,EACb"}\ No newline at end of filediff --git a/src/main/webapp/js/serviceworker/workbox-72a83b64.js b/src/main/webapp/js/serviceworker/workbox-72a83b64.jsdeleted file mode 100644index 041626f23..000000000--- a/src/main/webapp/js/serviceworker/workbox-72a83b64.js+++ /dev/null@@ -1,2 +0,0 @@-define(["exports"],(function(t){"use strict";try{self["workbox:core:6.5.1"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:6.5.1"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class i{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class r extends i{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class o{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=r&&r.handler;const a=t.method;if(!o&&this.i.has(a)&&(o=this.i.get(a)),!o)return;let c;try{c=o.handle({url:s,request:t,event:e,params:i})}catch(t){c=Promise.reject(t)}const h=r&&r.catchHandler;return c instanceof Promise&&(this.o||h)&&(c=c.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),c}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const o=r.match({url:t,sameOrigin:e,request:s,event:n});if(o)return i=o,(Array.isArray(i)&&0===i.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let a;const c={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},h=t=>[c.prefix,t,c.suffix].filter((t=>t&&t.length>0)).join("-"),u=t=>t||h(c.precache),l=t=>t||h(c.runtime);function f(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:6.5.1"]&&_()}catch(t){}function w(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class d{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class p{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.h.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.h=t}}let y;async function g(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=e?e(r):r,a=function(){if(void 0===y){const t=new Response("");if("body"in t)try{new Response(t.body),y=!0}catch(t){y=!1}y=!1}return y}()?i.body:await i.blob();return new Response(a,o)}function R(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class m{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const v=new Set;try{self["workbox:strategies:6.5.1"]&&_()}catch(t){}function q(t){return"string"==typeof t?new Request(t):t}class U{constructor(t,e){this.u={},Object.assign(this,e),this.event=e.event,this.l=t,this.p=new m,this.g=[],this.R=[...t.plugins],this.m=new Map;for(const t of this.R)this.m.set(t,{});this.event.waitUntil(this.p.promise)}async fetch(t){const{event:e}=this;let n=q(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.l.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=q(t);let s;const{cacheName:n,matchOptions:i}=this.l,r=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=q(t);var i;await(i=0,new Promise((t=>setTimeout(t,i))));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=r.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const a=await this.v(e);if(!a)return!1;const{cacheName:c,matchOptions:h}=this.l,u=await self.caches.open(c),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=R(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,r);for(const e of o)if(i===R(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?a.clone():a)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of v)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:c,oldResponse:f,newResponse:a.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.u[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=q(await t({mode:e,request:n,event:this.event,params:this.params}));this.u[s]=n}return this.u[s]}hasCallback(t){for(const e of this.l.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.l.plugins)if("function"==typeof e[t]){const s=this.m.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.g.push(t),t}async doneWaiting(){let t;for(;t=this.g.shift();)await t}destroy(){this.p.resolve(null)}async v(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class L extends class{constructor(t={}){this.cacheName=l(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new U(this,{event:e,request:s,params:n}),r=this.q(i,s,e);return[r,this.U(r,i,s,e)]}async q(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this.L(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async U(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}{constructor(t={}){t.cacheName=u(t.cacheName),super(t),this._=!1!==t.fallbackToNetwork,this.plugins.push(L.copyRedirectedCacheableResponsesPlugin)}async L(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.C(t,e):await this.O(t,e))}async O(t,e){let n;const i=e.params||{};if(!this._)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,o=!r||r===s;n=await e.fetch(new Request(t,{integrity:r||s})),s&&o&&(this.N(),await e.cachePut(t,n.clone()))}return n}async C(t,e){this.N();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}N(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==L.copyRedirectedCacheableResponsesPlugin&&(n===L.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(L.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}L.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},L.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await g(t):t};class b{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.k=new Map,this.K=new Map,this.T=new Map,this.l=new L({cacheName:u(t),plugins:[...e,new p({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.l}precache(t){this.addToCacheList(t),this.W||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.W=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=w(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.k.has(i)&&this.k.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.k.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.T.has(t)&&this.T.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.T.set(t,n.integrity)}if(this.k.set(i,t),this.K.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return f(t,(async()=>{const e=new d;this.strategy.plugins.push(e);for(const[e,s]of this.k){const n=this.T.get(s),i=this.K.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return f(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.k.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.k}getCachedURLs(){return[...this.k.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.k.get(e.href)}getIntegrityForCacheKey(t){return this.T.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}let C;const E=()=>(C||(C=new b),C);class O extends i{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(r,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}function x(t){const e=E();!function(t,e,n){let c;if("string"==typeof t){const s=new URL(t,location.href);c=new i((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)c=new r(t,e,n);else if("function"==typeof t)c=new i(t,e,n);else{if(!(t instanceof i))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});c=t}(a||(a=new o,a.addFetchListener(),a.addCacheListener()),a).registerRoute(c)}(new O(e,t))}t.precacheAndRoute=function(t,e){!function(t){E().precache(t)}(t),x(e)}}));-//# sourceMappingURL=workbox-72a83b64.js.mapdiff --git a/src/main/webapp/js/serviceworker/workbox-72a83b64.js.map b/src/main/webapp/js/serviceworker/workbox-72a83b64.js.mapdeleted file mode 100644index 8a652dbbc..000000000--- a/src/main/webapp/js/serviceworker/workbox-72a83b64.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"workbox-72a83b64.js","sources":["../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_version.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/logger.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/models/messages/messageGenerator.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/WorkboxError.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/_version.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/constants.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/normalizeHandler.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/Route.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/RegExpRoute.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/Router.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/getOrCreateDefaultRouter.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/cacheNames.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/waitUntil.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/_version.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/createCacheKey.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/PrecacheInstallReportPlugin.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/PrecacheCacheKeyPlugin.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/canConstructResponseFromBodyStream.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/copyResponse.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/cacheMatchIgnoreParams.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/Deferred.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/models/quotaErrorCallbacks.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-strategies/_version.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-strategies/StrategyHandler.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/timeout.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/getFriendlyURL.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/executeQuotaErrorCallbacks.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheStrategy.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-strategies/Strategy.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheController.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/getOrCreatePrecacheController.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheRoute.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/generateURLVariations.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/removeIgnoredSearchParams.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/addRoute.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/registerRoute.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precache.js"],"sourcesContent":["\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:core:6.5.1'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst logger = (process.env.NODE_ENV === 'production'\n ? null\n : (() => {\n // Don't overwrite this value if it's already set.\n // See https://github.com/GoogleChrome/workbox/pull/2284#issuecomment-560470923\n if (!('__WB_DISABLE_DEV_LOGS' in self)) {\n self.__WB_DISABLE_DEV_LOGS = false;\n }\n let inGroup = false;\n const methodToColorMap = {\n debug: `#7f8c8d`,\n log: `#2ecc71`,\n warn: `#f39c12`,\n error: `#c0392b`,\n groupCollapsed: `#3498db`,\n groupEnd: null, // No colored prefix on groupEnd\n };\n const print = function (method, args) {\n if (self.__WB_DISABLE_DEV_LOGS) {\n return;\n }\n if (method === 'groupCollapsed') {\n // Safari doesn't print all console.groupCollapsed() arguments:\n // https://bugs.webkit.org/show_bug.cgi?id=182754\n if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n console[method](...args);\n return;\n }\n }\n const styles = [\n `background: ${methodToColorMap[method]}`,\n `border-radius: 0.5em`,\n `color: white`,\n `font-weight: bold`,\n `padding: 2px 0.5em`,\n ];\n // When in a group, the workbox prefix is not displayed.\n const logPrefix = inGroup ? [] : ['%cworkbox', styles.join(';')];\n console[method](...logPrefix, ...args);\n if (method === 'groupCollapsed') {\n inGroup = true;\n }\n if (method === 'groupEnd') {\n inGroup = false;\n }\n };\n // eslint-disable-next-line @typescript-eslint/ban-types\n const api = {};\n const loggerMethods = Object.keys(methodToColorMap);\n for (const key of loggerMethods) {\n const method = key;\n api[method] = (...args) => {\n print(method, args);\n };\n }\n return api;\n })());\nexport { logger };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { messages } from './messages.js';\nimport '../../_version.js';\nconst fallback = (code, ...args) => {\n let msg = code;\n if (args.length > 0) {\n msg += ` :: ${JSON.stringify(args)}`;\n }\n return msg;\n};\nconst generatorFunction = (code, details = {}) => {\n const message = messages[code];\n if (!message) {\n throw new Error(`Unable to find message for code '${code}'.`);\n }\n return message(details);\n};\nexport const messageGenerator = process.env.NODE_ENV === 'production' ? fallback : generatorFunction;\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { messageGenerator } from '../models/messages/messageGenerator.js';\nimport '../_version.js';\n/**\n * Workbox errors should be thrown with this class.\n * This allows use to ensure the type easily in tests,\n * helps developers identify errors from workbox\n * easily and allows use to optimise error\n * messages correctly.\n *\n * @private\n */\nclass WorkboxError extends Error {\n /**\n *\n * @param {string} errorCode The error code that\n * identifies this particular error.\n * @param {Object=} details Any relevant arguments\n * that will help developers identify issues should\n * be added as a key on the context object.\n */\n constructor(errorCode, details) {\n const message = messageGenerator(errorCode, details);\n super(message);\n this.name = errorCode;\n this.details = details;\n }\n}\nexport { WorkboxError };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:routing:6.5.1'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * The default HTTP method, 'GET', used when there's no specific method\n * configured for a route.\n *\n * @type {string}\n *\n * @private\n */\nexport const defaultMethod = 'GET';\n/**\n * The list of valid HTTP methods associated with requests that could be routed.\n *\n * @type {Array<string>}\n *\n * @private\n */\nexport const validMethods = [\n 'DELETE',\n 'GET',\n 'HEAD',\n 'PATCH',\n 'POST',\n 'PUT',\n];\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport '../_version.js';\n/**\n * @param {function()|Object} handler Either a function, or an object with a\n * 'handle' method.\n * @return {Object} An object with a handle method.\n *\n * @private\n */\nexport const normalizeHandler = (handler) => {\n if (handler && typeof handler === 'object') {\n if (process.env.NODE_ENV !== 'production') {\n assert.hasMethod(handler, 'handle', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'handler',\n });\n }\n return handler;\n }\n else {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(handler, 'function', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'handler',\n });\n }\n return { handle: handler };\n }\n};\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { defaultMethod, validMethods } from './utils/constants.js';\nimport { normalizeHandler } from './utils/normalizeHandler.js';\nimport './_version.js';\n/**\n * A `Route` consists of a pair of callback functions, \"match\" and \"handler\".\n * The \"match\" callback determine if a route should be used to \"handle\" a\n * request by returning a non-falsy value if it can. The \"handler\" callback\n * is called when there is a match and should return a Promise that resolves\n * to a `Response`.\n *\n * @memberof workbox-routing\n */\nclass Route {\n /**\n * Constructor for Route class.\n *\n * @param {workbox-routing~matchCallback} match\n * A callback function that determines whether the route matches a given\n * `fetch` event by returning a non-falsy value.\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resolving to a Response.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n */\n constructor(match, handler, method = defaultMethod) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(match, 'function', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'match',\n });\n if (method) {\n assert.isOneOf(method, validMethods, { paramName: 'method' });\n }\n }\n // These values are referenced directly by Router so cannot be\n // altered by minificaton.\n this.handler = normalizeHandler(handler);\n this.match = match;\n this.method = method;\n }\n /**\n *\n * @param {workbox-routing-handlerCallback} handler A callback\n * function that returns a Promise resolving to a Response\n */\n setCatchHandler(handler) {\n this.catchHandler = normalizeHandler(handler);\n }\n}\nexport { Route };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { Route } from './Route.js';\nimport './_version.js';\n/**\n * RegExpRoute makes it easy to create a regular expression based\n * {@link workbox-routing.Route}.\n *\n * For same-origin requests the RegExp only needs to match part of the URL. For\n * requests against third-party servers, you must define a RegExp that matches\n * the start of the URL.\n *\n * @memberof workbox-routing\n * @extends workbox-routing.Route\n */\nclass RegExpRoute extends Route {\n /**\n * If the regular expression contains\n * [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references},\n * the captured values will be passed to the\n * {@link workbox-routing~handlerCallback} `params`\n * argument.\n *\n * @param {RegExp} regExp The regular expression to match against URLs.\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n */\n constructor(regExp, handler, method) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(regExp, RegExp, {\n moduleName: 'workbox-routing',\n className: 'RegExpRoute',\n funcName: 'constructor',\n paramName: 'pattern',\n });\n }\n const match = ({ url }) => {\n const result = regExp.exec(url.href);\n // Return immediately if there's no match.\n if (!result) {\n return;\n }\n // Require that the match start at the first character in the URL string\n // if it's a cross-origin request.\n // See https://github.com/GoogleChrome/workbox/issues/281 for the context\n // behind this behavior.\n if (url.origin !== location.origin && result.index !== 0) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`The regular expression '${regExp.toString()}' only partially matched ` +\n `against the cross-origin URL '${url.toString()}'. RegExpRoute's will only ` +\n `handle cross-origin requests if they match the entire URL.`);\n }\n return;\n }\n // If the route matches, but there aren't any capture groups defined, then\n // this will return [], which is truthy and therefore sufficient to\n // indicate a match.\n // If there are capture groups, then it will return their values.\n return result.slice(1);\n };\n super(match, handler, method);\n }\n}\nexport { RegExpRoute };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { defaultMethod } from './utils/constants.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { normalizeHandler } from './utils/normalizeHandler.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport './_version.js';\n/**\n * The Router can be used to process a `FetchEvent` using one or more\n * {@link workbox-routing.Route}, responding with a `Response` if\n * a matching route exists.\n *\n * If no route matches a given a request, the Router will use a \"default\"\n * handler if one is defined.\n *\n * Should the matching Route throw an error, the Router will use a \"catch\"\n * handler if one is defined to gracefully deal with issues and respond with a\n * Request.\n *\n * If a request matches multiple routes, the **earliest** registered route will\n * be used to respond to the request.\n *\n * @memberof workbox-routing\n */\nclass Router {\n /**\n * Initializes a new Router.\n */\n constructor() {\n this._routes = new Map();\n this._defaultHandlerMap = new Map();\n }\n /**\n * @return {Map<string, Array<workbox-routing.Route>>} routes A `Map` of HTTP\n * method name ('GET', etc.) to an array of all the corresponding `Route`\n * instances that are registered.\n */\n get routes() {\n return this._routes;\n }\n /**\n * Adds a fetch event listener to respond to events when a route matches\n * the event's request.\n */\n addFetchListener() {\n // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705\n self.addEventListener('fetch', ((event) => {\n const { request } = event;\n const responsePromise = this.handleRequest({ request, event });\n if (responsePromise) {\n event.respondWith(responsePromise);\n }\n }));\n }\n /**\n * Adds a message event listener for URLs to cache from the window.\n * This is useful to cache resources loaded on the page prior to when the\n * service worker started controlling it.\n *\n * The format of the message data sent from the window should be as follows.\n * Where the `urlsToCache` array may consist of URL strings or an array of\n * URL string + `requestInit` object (the same as you'd pass to `fetch()`).\n *\n * ```\n * {\n * type: 'CACHE_URLS',\n * payload: {\n * urlsToCache: [\n * './script1.js',\n * './script2.js',\n * ['./script3.js', {mode: 'no-cors'}],\n * ],\n * },\n * }\n * ```\n */\n addCacheListener() {\n // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705\n self.addEventListener('message', ((event) => {\n // event.data is type 'any'\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (event.data && event.data.type === 'CACHE_URLS') {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const { payload } = event.data;\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Caching URLs from the window`, payload.urlsToCache);\n }\n const requestPromises = Promise.all(payload.urlsToCache.map((entry) => {\n if (typeof entry === 'string') {\n entry = [entry];\n }\n const request = new Request(...entry);\n return this.handleRequest({ request, event });\n // TODO(philipwalton): TypeScript errors without this typecast for\n // some reason (probably a bug). The real type here should work but\n // doesn't: `Array<Promise<Response> | undefined>`.\n })); // TypeScript\n event.waitUntil(requestPromises);\n // If a MessageChannel was used, reply to the message on success.\n if (event.ports && event.ports[0]) {\n void requestPromises.then(() => event.ports[0].postMessage(true));\n }\n }\n }));\n }\n /**\n * Apply the routing rules to a FetchEvent object to get a Response from an\n * appropriate Route's handler.\n *\n * @param {Object} options\n * @param {Request} options.request The request to handle.\n * @param {ExtendableEvent} options.event The event that triggered the\n * request.\n * @return {Promise<Response>|undefined} A promise is returned if a\n * registered route can handle the request. If there is no matching\n * route and there's no `defaultHandler`, `undefined` is returned.\n */\n handleRequest({ request, event, }) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(request, Request, {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'handleRequest',\n paramName: 'options.request',\n });\n }\n const url = new URL(request.url, location.href);\n if (!url.protocol.startsWith('http')) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Workbox Router only supports URLs that start with 'http'.`);\n }\n return;\n }\n const sameOrigin = url.origin === location.origin;\n const { params, route } = this.findMatchingRoute({\n event,\n request,\n sameOrigin,\n url,\n });\n let handler = route && route.handler;\n const debugMessages = [];\n if (process.env.NODE_ENV !== 'production') {\n if (handler) {\n debugMessages.push([`Found a route to handle this request:`, route]);\n if (params) {\n debugMessages.push([\n `Passing the following params to the route's handler:`,\n params,\n ]);\n }\n }\n }\n // If we don't have a handler because there was no matching route, then\n // fall back to defaultHandler if that's defined.\n const method = request.method;\n if (!handler && this._defaultHandlerMap.has(method)) {\n if (process.env.NODE_ENV !== 'production') {\n debugMessages.push(`Failed to find a matching route. Falling ` +\n `back to the default handler for ${method}.`);\n }\n handler = this._defaultHandlerMap.get(method);\n }\n if (!handler) {\n if (process.env.NODE_ENV !== 'production') {\n // No handler so Workbox will do nothing. If logs is set of debug\n // i.e. verbose, we should print out this information.\n logger.debug(`No route found for: ${getFriendlyURL(url)}`);\n }\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // We have a handler, meaning Workbox is going to handle the route.\n // print the routing details to the console.\n logger.groupCollapsed(`Router is responding to: ${getFriendlyURL(url)}`);\n debugMessages.forEach((msg) => {\n if (Array.isArray(msg)) {\n logger.log(...msg);\n }\n else {\n logger.log(msg);\n }\n });\n logger.groupEnd();\n }\n // Wrap in try and catch in case the handle method throws a synchronous\n // error. It should still callback to the catch handler.\n let responsePromise;\n try {\n responsePromise = handler.handle({ url, request, event, params });\n }\n catch (err) {\n responsePromise = Promise.reject(err);\n }\n // Get route's catch handler, if it exists\n const catchHandler = route && route.catchHandler;\n if (responsePromise instanceof Promise &&\n (this._catchHandler || catchHandler)) {\n responsePromise = responsePromise.catch(async (err) => {\n // If there's a route catch handler, process that first\n if (catchHandler) {\n if (process.env.NODE_ENV !== 'production') {\n // Still include URL here as it will be async from the console group\n // and may not make sense without the URL\n logger.groupCollapsed(`Error thrown when responding to: ` +\n ` ${getFriendlyURL(url)}. Falling back to route's Catch Handler.`);\n logger.error(`Error thrown by:`, route);\n logger.error(err);\n logger.groupEnd();\n }\n try {\n return await catchHandler.handle({ url, request, event, params });\n }\n catch (catchErr) {\n if (catchErr instanceof Error) {\n err = catchErr;\n }\n }\n }\n if (this._catchHandler) {\n if (process.env.NODE_ENV !== 'production') {\n // Still include URL here as it will be async from the console group\n // and may not make sense without the URL\n logger.groupCollapsed(`Error thrown when responding to: ` +\n ` ${getFriendlyURL(url)}. Falling back to global Catch Handler.`);\n logger.error(`Error thrown by:`, route);\n logger.error(err);\n logger.groupEnd();\n }\n return this._catchHandler.handle({ url, request, event });\n }\n throw err;\n });\n }\n return responsePromise;\n }\n /**\n * Checks a request and URL (and optionally an event) against the list of\n * registered routes, and if there's a match, returns the corresponding\n * route along with any params generated by the match.\n *\n * @param {Object} options\n * @param {URL} options.url\n * @param {boolean} options.sameOrigin The result of comparing `url.origin`\n * against the current origin.\n * @param {Request} options.request The request to match.\n * @param {Event} options.event The corresponding event.\n * @return {Object} An object with `route` and `params` properties.\n * They are populated if a matching route was found or `undefined`\n * otherwise.\n */\n findMatchingRoute({ url, sameOrigin, request, event, }) {\n const routes = this._routes.get(request.method) || [];\n for (const route of routes) {\n let params;\n // route.match returns type any, not possible to change right now.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const matchResult = route.match({ url, sameOrigin, request, event });\n if (matchResult) {\n if (process.env.NODE_ENV !== 'production') {\n // Warn developers that using an async matchCallback is almost always\n // not the right thing to do.\n if (matchResult instanceof Promise) {\n logger.warn(`While routing ${getFriendlyURL(url)}, an async ` +\n `matchCallback function was used. Please convert the ` +\n `following route to use a synchronous matchCallback function:`, route);\n }\n }\n // See https://github.com/GoogleChrome/workbox/issues/2079\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n params = matchResult;\n if (Array.isArray(params) && params.length === 0) {\n // Instead of passing an empty array in as params, use undefined.\n params = undefined;\n }\n else if (matchResult.constructor === Object && // eslint-disable-line\n Object.keys(matchResult).length === 0) {\n // Instead of passing an empty object in as params, use undefined.\n params = undefined;\n }\n else if (typeof matchResult === 'boolean') {\n // For the boolean value true (rather than just something truth-y),\n // don't set params.\n // See https://github.com/GoogleChrome/workbox/pull/2134#issuecomment-513924353\n params = undefined;\n }\n // Return early if have a match.\n return { route, params };\n }\n }\n // If no match was found above, return and empty object.\n return {};\n }\n /**\n * Define a default `handler` that's called when no routes explicitly\n * match the incoming request.\n *\n * Each HTTP method ('GET', 'POST', etc.) gets its own default handler.\n *\n * Without a default handler, unmatched requests will go against the\n * network as if there were no service worker present.\n *\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n * @param {string} [method='GET'] The HTTP method to associate with this\n * default handler. Each method has its own default.\n */\n setDefaultHandler(handler, method = defaultMethod) {\n this._defaultHandlerMap.set(method, normalizeHandler(handler));\n }\n /**\n * If a Route throws an error while handling a request, this `handler`\n * will be called and given a chance to provide a response.\n *\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n */\n setCatchHandler(handler) {\n this._catchHandler = normalizeHandler(handler);\n }\n /**\n * Registers a route with the router.\n *\n * @param {workbox-routing.Route} route The route to register.\n */\n registerRoute(route) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(route, 'object', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.hasMethod(route, 'match', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.isType(route.handler, 'object', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.hasMethod(route.handler, 'handle', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route.handler',\n });\n assert.isType(route.method, 'string', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route.method',\n });\n }\n if (!this._routes.has(route.method)) {\n this._routes.set(route.method, []);\n }\n // Give precedence to all of the earlier routes by adding this additional\n // route to the end of the array.\n this._routes.get(route.method).push(route);\n }\n /**\n * Unregisters a route with the router.\n *\n * @param {workbox-routing.Route} route The route to unregister.\n */\n unregisterRoute(route) {\n if (!this._routes.has(route.method)) {\n throw new WorkboxError('unregister-route-but-not-found-with-method', {\n method: route.method,\n });\n }\n const routeIndex = this._routes.get(route.method).indexOf(route);\n if (routeIndex > -1) {\n this._routes.get(route.method).splice(routeIndex, 1);\n }\n else {\n throw new WorkboxError('unregister-route-route-not-registered');\n }\n }\n}\nexport { Router };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { Router } from '../Router.js';\nimport '../_version.js';\nlet defaultRouter;\n/**\n * Creates a new, singleton Router instance if one does not exist. If one\n * does already exist, that instance is returned.\n *\n * @private\n * @return {Router}\n */\nexport const getOrCreateDefaultRouter = () => {\n if (!defaultRouter) {\n defaultRouter = new Router();\n // The helpers that use the default Router assume these listeners exist.\n defaultRouter.addFetchListener();\n defaultRouter.addCacheListener();\n }\n return defaultRouter;\n};\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst _cacheNameDetails = {\n googleAnalytics: 'googleAnalytics',\n precache: 'precache-v2',\n prefix: 'workbox',\n runtime: 'runtime',\n suffix: typeof registration !== 'undefined' ? registration.scope : '',\n};\nconst _createCacheName = (cacheName) => {\n return [_cacheNameDetails.prefix, cacheName, _cacheNameDetails.suffix]\n .filter((value) => value && value.length > 0)\n .join('-');\n};\nconst eachCacheNameDetail = (fn) => {\n for (const key of Object.keys(_cacheNameDetails)) {\n fn(key);\n }\n};\nexport const cacheNames = {\n updateDetails: (details) => {\n eachCacheNameDetail((key) => {\n if (typeof details[key] === 'string') {\n _cacheNameDetails[key] = details[key];\n }\n });\n },\n getGoogleAnalyticsName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.googleAnalytics);\n },\n getPrecacheName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.precache);\n },\n getPrefix: () => {\n return _cacheNameDetails.prefix;\n },\n getRuntimeName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.runtime);\n },\n getSuffix: () => {\n return _cacheNameDetails.suffix;\n },\n};\n","/*\n Copyright 2020 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A utility method that makes it easier to use `event.waitUntil` with\n * async functions and return the result.\n *\n * @param {ExtendableEvent} event\n * @param {Function} asyncFn\n * @return {Function}\n * @private\n */\nfunction waitUntil(event, asyncFn) {\n const returnPromise = asyncFn();\n event.waitUntil(returnPromise);\n return returnPromise;\n}\nexport { waitUntil };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:precaching:6.5.1'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport '../_version.js';\n// Name of the search parameter used to store revision info.\nconst REVISION_SEARCH_PARAM = '__WB_REVISION__';\n/**\n * Converts a manifest entry into a versioned URL suitable for precaching.\n *\n * @param {Object|string} entry\n * @return {string} A URL with versioning info.\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function createCacheKey(entry) {\n if (!entry) {\n throw new WorkboxError('add-to-cache-list-unexpected-type', { entry });\n }\n // If a precache manifest entry is a string, it's assumed to be a versioned\n // URL, like '/app.abcd1234.js'. Return as-is.\n if (typeof entry === 'string') {\n const urlObject = new URL(entry, location.href);\n return {\n cacheKey: urlObject.href,\n url: urlObject.href,\n };\n }\n const { revision, url } = entry;\n if (!url) {\n throw new WorkboxError('add-to-cache-list-unexpected-type', { entry });\n }\n // If there's just a URL and no revision, then it's also assumed to be a\n // versioned URL.\n if (!revision) {\n const urlObject = new URL(url, location.href);\n return {\n cacheKey: urlObject.href,\n url: urlObject.href,\n };\n }\n // Otherwise, construct a properly versioned URL using the custom Workbox\n // search parameter along with the revision info.\n const cacheKeyURL = new URL(url, location.href);\n const originalURL = new URL(url, location.href);\n cacheKeyURL.searchParams.set(REVISION_SEARCH_PARAM, revision);\n return {\n cacheKey: cacheKeyURL.href,\n url: originalURL.href,\n };\n}\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A plugin, designed to be used with PrecacheController, to determine the\n * of assets that were updated (or not updated) during the install event.\n *\n * @private\n */\nclass PrecacheInstallReportPlugin {\n constructor() {\n this.updatedURLs = [];\n this.notUpdatedURLs = [];\n this.handlerWillStart = async ({ request, state, }) => {\n // TODO: `state` should never be undefined...\n if (state) {\n state.originalRequest = request;\n }\n };\n this.cachedResponseWillBeUsed = async ({ event, state, cachedResponse, }) => {\n if (event.type === 'install') {\n if (state &&\n state.originalRequest &&\n state.originalRequest instanceof Request) {\n // TODO: `state` should never be undefined...\n const url = state.originalRequest.url;\n if (cachedResponse) {\n this.notUpdatedURLs.push(url);\n }\n else {\n this.updatedURLs.push(url);\n }\n }\n }\n return cachedResponse;\n };\n }\n}\nexport { PrecacheInstallReportPlugin };\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A plugin, designed to be used with PrecacheController, to translate URLs into\n * the corresponding cache key, based on the current revision info.\n *\n * @private\n */\nclass PrecacheCacheKeyPlugin {\n constructor({ precacheController }) {\n this.cacheKeyWillBeUsed = async ({ request, params, }) => {\n // Params is type any, can't change right now.\n /* eslint-disable */\n const cacheKey = (params === null || params === void 0 ? void 0 : params.cacheKey) ||\n this._precacheController.getCacheKeyForURL(request.url);\n /* eslint-enable */\n return cacheKey\n ? new Request(cacheKey, { headers: request.headers })\n : request;\n };\n this._precacheController = precacheController;\n }\n}\nexport { PrecacheCacheKeyPlugin };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nlet supportStatus;\n/**\n * A utility function that determines whether the current browser supports\n * constructing a new `Response` from a `response.body` stream.\n *\n * @return {boolean} `true`, if the current browser can successfully\n * construct a `Response` from a `response.body` stream, `false` otherwise.\n *\n * @private\n */\nfunction canConstructResponseFromBodyStream() {\n if (supportStatus === undefined) {\n const testResponse = new Response('');\n if ('body' in testResponse) {\n try {\n new Response(testResponse.body);\n supportStatus = true;\n }\n catch (error) {\n supportStatus = false;\n }\n }\n supportStatus = false;\n }\n return supportStatus;\n}\nexport { canConstructResponseFromBodyStream };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { canConstructResponseFromBodyStream } from './_private/canConstructResponseFromBodyStream.js';\nimport { WorkboxError } from './_private/WorkboxError.js';\nimport './_version.js';\n/**\n * Allows developers to copy a response and modify its `headers`, `status`,\n * or `statusText` values (the values settable via a\n * [`ResponseInit`]{@link https://developer.mozilla.org/en-US/docs/Web/API/Response/Response#Syntax}\n * object in the constructor).\n * To modify these values, pass a function as the second argument. That\n * function will be invoked with a single object with the response properties\n * `{headers, status, statusText}`. The return value of this function will\n * be used as the `ResponseInit` for the new `Response`. To change the values\n * either modify the passed parameter(s) and return it, or return a totally\n * new object.\n *\n * This method is intentionally limited to same-origin responses, regardless of\n * whether CORS was used or not.\n *\n * @param {Response} response\n * @param {Function} modifier\n * @memberof workbox-core\n */\nasync function copyResponse(response, modifier) {\n let origin = null;\n // If response.url isn't set, assume it's cross-origin and keep origin null.\n if (response.url) {\n const responseURL = new URL(response.url);\n origin = responseURL.origin;\n }\n if (origin !== self.location.origin) {\n throw new WorkboxError('cross-origin-copy-response', { origin });\n }\n const clonedResponse = response.clone();\n // Create a fresh `ResponseInit` object by cloning the headers.\n const responseInit = {\n headers: new Headers(clonedResponse.headers),\n status: clonedResponse.status,\n statusText: clonedResponse.statusText,\n };\n // Apply any user modifications.\n const modifiedResponseInit = modifier ? modifier(responseInit) : responseInit;\n // Create the new response from the body stream and `ResponseInit`\n // modifications. Note: not all browsers support the Response.body stream,\n // so fall back to reading the entire body into memory as a blob.\n const body = canConstructResponseFromBodyStream()\n ? clonedResponse.body\n : await clonedResponse.blob();\n return new Response(body, modifiedResponseInit);\n}\nexport { copyResponse };\n","/*\n Copyright 2020 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nfunction stripParams(fullURL, ignoreParams) {\n const strippedURL = new URL(fullURL);\n for (const param of ignoreParams) {\n strippedURL.searchParams.delete(param);\n }\n return strippedURL.href;\n}\n/**\n * Matches an item in the cache, ignoring specific URL params. This is similar\n * to the `ignoreSearch` option, but it allows you to ignore just specific\n * params (while continuing to match on the others).\n *\n * @private\n * @param {Cache} cache\n * @param {Request} request\n * @param {Object} matchOptions\n * @param {Array<string>} ignoreParams\n * @return {Promise<Response|undefined>}\n */\nasync function cacheMatchIgnoreParams(cache, request, ignoreParams, matchOptions) {\n const strippedRequestURL = stripParams(request.url, ignoreParams);\n // If the request doesn't include any ignored params, match as normal.\n if (request.url === strippedRequestURL) {\n return cache.match(request, matchOptions);\n }\n // Otherwise, match by comparing keys\n const keysOptions = Object.assign(Object.assign({}, matchOptions), { ignoreSearch: true });\n const cacheKeys = await cache.keys(request, keysOptions);\n for (const cacheKey of cacheKeys) {\n const strippedCacheKeyURL = stripParams(cacheKey.url, ignoreParams);\n if (strippedRequestURL === strippedCacheKeyURL) {\n return cache.match(cacheKey, matchOptions);\n }\n }\n return;\n}\nexport { cacheMatchIgnoreParams };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * The Deferred class composes Promises in a way that allows for them to be\n * resolved or rejected from outside the constructor. In most cases promises\n * should be used directly, but Deferreds can be necessary when the logic to\n * resolve a promise must be separate.\n *\n * @private\n */\nclass Deferred {\n /**\n * Creates a promise and exposes its resolve and reject functions as methods.\n */\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n }\n}\nexport { Deferred };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n// Callbacks to be executed whenever there's a quota error.\n// Can't change Function type right now.\n// eslint-disable-next-line @typescript-eslint/ban-types\nconst quotaErrorCallbacks = new Set();\nexport { quotaErrorCallbacks };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:strategies:6.5.1'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { cacheMatchIgnoreParams } from 'workbox-core/_private/cacheMatchIgnoreParams.js';\nimport { Deferred } from 'workbox-core/_private/Deferred.js';\nimport { executeQuotaErrorCallbacks } from 'workbox-core/_private/executeQuotaErrorCallbacks.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { timeout } from 'workbox-core/_private/timeout.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport './_version.js';\nfunction toRequest(input) {\n return typeof input === 'string' ? new Request(input) : input;\n}\n/**\n * A class created every time a Strategy instance instance calls\n * {@link workbox-strategies.Strategy~handle} or\n * {@link workbox-strategies.Strategy~handleAll} that wraps all fetch and\n * cache actions around plugin callbacks and keeps track of when the strategy\n * is \"done\" (i.e. all added `event.waitUntil()` promises have resolved).\n *\n * @memberof workbox-strategies\n */\nclass StrategyHandler {\n /**\n * Creates a new instance associated with the passed strategy and event\n * that's handling the request.\n *\n * The constructor also initializes the state that will be passed to each of\n * the plugins handling this request.\n *\n * @param {workbox-strategies.Strategy} strategy\n * @param {Object} options\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params] The return value from the\n * {@link workbox-routing~matchCallback} (if applicable).\n */\n constructor(strategy, options) {\n this._cacheKeys = {};\n /**\n * The request the strategy is performing (passed to the strategy's\n * `handle()` or `handleAll()` method).\n * @name request\n * @instance\n * @type {Request}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * The event associated with this request.\n * @name event\n * @instance\n * @type {ExtendableEvent}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * A `URL` instance of `request.url` (if passed to the strategy's\n * `handle()` or `handleAll()` method).\n * Note: the `url` param will be present if the strategy was invoked\n * from a workbox `Route` object.\n * @name url\n * @instance\n * @type {URL|undefined}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * A `param` value (if passed to the strategy's\n * `handle()` or `handleAll()` method).\n * Note: the `param` param will be present if the strategy was invoked\n * from a workbox `Route` object and the\n * {@link workbox-routing~matchCallback} returned\n * a truthy value (it will be that value).\n * @name params\n * @instance\n * @type {*|undefined}\n * @memberof workbox-strategies.StrategyHandler\n */\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(options.event, ExtendableEvent, {\n moduleName: 'workbox-strategies',\n className: 'StrategyHandler',\n funcName: 'constructor',\n paramName: 'options.event',\n });\n }\n Object.assign(this, options);\n this.event = options.event;\n this._strategy = strategy;\n this._handlerDeferred = new Deferred();\n this._extendLifetimePromises = [];\n // Copy the plugins list (since it's mutable on the strategy),\n // so any mutations don't affect this handler instance.\n this._plugins = [...strategy.plugins];\n this._pluginStateMap = new Map();\n for (const plugin of this._plugins) {\n this._pluginStateMap.set(plugin, {});\n }\n this.event.waitUntil(this._handlerDeferred.promise);\n }\n /**\n * Fetches a given request (and invokes any applicable plugin callback\n * methods) using the `fetchOptions` (for non-navigation requests) and\n * `plugins` defined on the `Strategy` object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - `requestWillFetch()`\n * - `fetchDidSucceed()`\n * - `fetchDidFail()`\n *\n * @param {Request|string} input The URL or request to fetch.\n * @return {Promise<Response>}\n */\n async fetch(input) {\n const { event } = this;\n let request = toRequest(input);\n if (request.mode === 'navigate' &&\n event instanceof FetchEvent &&\n event.preloadResponse) {\n const possiblePreloadResponse = (await event.preloadResponse);\n if (possiblePreloadResponse) {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`Using a preloaded navigation response for ` +\n `'${getFriendlyURL(request.url)}'`);\n }\n return possiblePreloadResponse;\n }\n }\n // If there is a fetchDidFail plugin, we need to save a clone of the\n // original request before it's either modified by a requestWillFetch\n // plugin or before the original request's body is consumed via fetch().\n const originalRequest = this.hasCallback('fetchDidFail')\n ? request.clone()\n : null;\n try {\n for (const cb of this.iterateCallbacks('requestWillFetch')) {\n request = await cb({ request: request.clone(), event });\n }\n }\n catch (err) {\n if (err instanceof Error) {\n throw new WorkboxError('plugin-error-request-will-fetch', {\n thrownErrorMessage: err.message,\n });\n }\n }\n // The request can be altered by plugins with `requestWillFetch` making\n // the original request (most likely from a `fetch` event) different\n // from the Request we make. Pass both to `fetchDidFail` to aid debugging.\n const pluginFilteredRequest = request.clone();\n try {\n let fetchResponse;\n // See https://github.com/GoogleChrome/workbox/issues/1796\n fetchResponse = await fetch(request, request.mode === 'navigate' ? undefined : this._strategy.fetchOptions);\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Network request for ` +\n `'${getFriendlyURL(request.url)}' returned a response with ` +\n `status '${fetchResponse.status}'.`);\n }\n for (const callback of this.iterateCallbacks('fetchDidSucceed')) {\n fetchResponse = await callback({\n event,\n request: pluginFilteredRequest,\n response: fetchResponse,\n });\n }\n return fetchResponse;\n }\n catch (error) {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`Network request for ` +\n `'${getFriendlyURL(request.url)}' threw an error.`, error);\n }\n // `originalRequest` will only exist if a `fetchDidFail` callback\n // is being used (see above).\n if (originalRequest) {\n await this.runCallbacks('fetchDidFail', {\n error: error,\n event,\n originalRequest: originalRequest.clone(),\n request: pluginFilteredRequest.clone(),\n });\n }\n throw error;\n }\n }\n /**\n * Calls `this.fetch()` and (in the background) runs `this.cachePut()` on\n * the response generated by `this.fetch()`.\n *\n * The call to `this.cachePut()` automatically invokes `this.waitUntil()`,\n * so you do not have to manually call `waitUntil()` on the event.\n *\n * @param {Request|string} input The request or URL to fetch and cache.\n * @return {Promise<Response>}\n */\n async fetchAndCachePut(input) {\n const response = await this.fetch(input);\n const responseClone = response.clone();\n void this.waitUntil(this.cachePut(input, responseClone));\n return response;\n }\n /**\n * Matches a request from the cache (and invokes any applicable plugin\n * callback methods) using the `cacheName`, `matchOptions`, and `plugins`\n * defined on the strategy object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - cacheKeyWillByUsed()\n * - cachedResponseWillByUsed()\n *\n * @param {Request|string} key The Request or URL to use as the cache key.\n * @return {Promise<Response|undefined>} A matching response, if found.\n */\n async cacheMatch(key) {\n const request = toRequest(key);\n let cachedResponse;\n const { cacheName, matchOptions } = this._strategy;\n const effectiveRequest = await this.getCacheKey(request, 'read');\n const multiMatchOptions = Object.assign(Object.assign({}, matchOptions), { cacheName });\n cachedResponse = await caches.match(effectiveRequest, multiMatchOptions);\n if (process.env.NODE_ENV !== 'production') {\n if (cachedResponse) {\n logger.debug(`Found a cached response in '${cacheName}'.`);\n }\n else {\n logger.debug(`No cached response found in '${cacheName}'.`);\n }\n }\n for (const callback of this.iterateCallbacks('cachedResponseWillBeUsed')) {\n cachedResponse =\n (await callback({\n cacheName,\n matchOptions,\n cachedResponse,\n request: effectiveRequest,\n event: this.event,\n })) || undefined;\n }\n return cachedResponse;\n }\n /**\n * Puts a request/response pair in the cache (and invokes any applicable\n * plugin callback methods) using the `cacheName` and `plugins` defined on\n * the strategy object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - cacheKeyWillByUsed()\n * - cacheWillUpdate()\n * - cacheDidUpdate()\n *\n * @param {Request|string} key The request or URL to use as the cache key.\n * @param {Response} response The response to cache.\n * @return {Promise<boolean>} `false` if a cacheWillUpdate caused the response\n * not be cached, and `true` otherwise.\n */\n async cachePut(key, response) {\n const request = toRequest(key);\n // Run in the next task to avoid blocking other cache reads.\n // https://github.com/w3c/ServiceWorker/issues/1397\n await timeout(0);\n const effectiveRequest = await this.getCacheKey(request, 'write');\n if (process.env.NODE_ENV !== 'production') {\n if (effectiveRequest.method && effectiveRequest.method !== 'GET') {\n throw new WorkboxError('attempt-to-cache-non-get-request', {\n url: getFriendlyURL(effectiveRequest.url),\n method: effectiveRequest.method,\n });\n }\n // See https://github.com/GoogleChrome/workbox/issues/2818\n const vary = response.headers.get('Vary');\n if (vary) {\n logger.debug(`The response for ${getFriendlyURL(effectiveRequest.url)} ` +\n `has a 'Vary: ${vary}' header. ` +\n `Consider setting the {ignoreVary: true} option on your strategy ` +\n `to ensure cache matching and deletion works as expected.`);\n }\n }\n if (!response) {\n if (process.env.NODE_ENV !== 'production') {\n logger.error(`Cannot cache non-existent response for ` +\n `'${getFriendlyURL(effectiveRequest.url)}'.`);\n }\n throw new WorkboxError('cache-put-with-no-response', {\n url: getFriendlyURL(effectiveRequest.url),\n });\n }\n const responseToCache = await this._ensureResponseSafeToCache(response);\n if (!responseToCache) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Response '${getFriendlyURL(effectiveRequest.url)}' ` +\n `will not be cached.`, responseToCache);\n }\n return false;\n }\n const { cacheName, matchOptions } = this._strategy;\n const cache = await self.caches.open(cacheName);\n const hasCacheUpdateCallback = this.hasCallback('cacheDidUpdate');\n const oldResponse = hasCacheUpdateCallback\n ? await cacheMatchIgnoreParams(\n // TODO(philipwalton): the `__WB_REVISION__` param is a precaching\n // feature. Consider into ways to only add this behavior if using\n // precaching.\n cache, effectiveRequest.clone(), ['__WB_REVISION__'], matchOptions)\n : null;\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Updating the '${cacheName}' cache with a new Response ` +\n `for ${getFriendlyURL(effectiveRequest.url)}.`);\n }\n try {\n await cache.put(effectiveRequest, hasCacheUpdateCallback ? responseToCache.clone() : responseToCache);\n }\n catch (error) {\n if (error instanceof Error) {\n // See https://developer.mozilla.org/en-US/docs/Web/API/DOMException#exception-QuotaExceededError\n if (error.name === 'QuotaExceededError') {\n await executeQuotaErrorCallbacks();\n }\n throw error;\n }\n }\n for (const callback of this.iterateCallbacks('cacheDidUpdate')) {\n await callback({\n cacheName,\n oldResponse,\n newResponse: responseToCache.clone(),\n request: effectiveRequest,\n event: this.event,\n });\n }\n return true;\n }\n /**\n * Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and\n * executes any of those callbacks found in sequence. The final `Request`\n * object returned by the last plugin is treated as the cache key for cache\n * reads and/or writes. If no `cacheKeyWillBeUsed` plugin callbacks have\n * been registered, the passed request is returned unmodified\n *\n * @param {Request} request\n * @param {string} mode\n * @return {Promise<Request>}\n */\n async getCacheKey(request, mode) {\n const key = `${request.url} | ${mode}`;\n if (!this._cacheKeys[key]) {\n let effectiveRequest = request;\n for (const callback of this.iterateCallbacks('cacheKeyWillBeUsed')) {\n effectiveRequest = toRequest(await callback({\n mode,\n request: effectiveRequest,\n event: this.event,\n // params has a type any can't change right now.\n params: this.params, // eslint-disable-line\n }));\n }\n this._cacheKeys[key] = effectiveRequest;\n }\n return this._cacheKeys[key];\n }\n /**\n * Returns true if the strategy has at least one plugin with the given\n * callback.\n *\n * @param {string} name The name of the callback to check for.\n * @return {boolean}\n */\n hasCallback(name) {\n for (const plugin of this._strategy.plugins) {\n if (name in plugin) {\n return true;\n }\n }\n return false;\n }\n /**\n * Runs all plugin callbacks matching the given name, in order, passing the\n * given param object (merged ith the current plugin state) as the only\n * argument.\n *\n * Note: since this method runs all plugins, it's not suitable for cases\n * where the return value of a callback needs to be applied prior to calling\n * the next callback. See\n * {@link workbox-strategies.StrategyHandler#iterateCallbacks}\n * below for how to handle that case.\n *\n * @param {string} name The name of the callback to run within each plugin.\n * @param {Object} param The object to pass as the first (and only) param\n * when executing each callback. This object will be merged with the\n * current plugin state prior to callback execution.\n */\n async runCallbacks(name, param) {\n for (const callback of this.iterateCallbacks(name)) {\n // TODO(philipwalton): not sure why `any` is needed. It seems like\n // this should work with `as WorkboxPluginCallbackParam[C]`.\n await callback(param);\n }\n }\n /**\n * Accepts a callback and returns an iterable of matching plugin callbacks,\n * where each callback is wrapped with the current handler state (i.e. when\n * you call each callback, whatever object parameter you pass it will\n * be merged with the plugin's current state).\n *\n * @param {string} name The name fo the callback to run\n * @return {Array<Function>}\n */\n *iterateCallbacks(name) {\n for (const plugin of this._strategy.plugins) {\n if (typeof plugin[name] === 'function') {\n const state = this._pluginStateMap.get(plugin);\n const statefulCallback = (param) => {\n const statefulParam = Object.assign(Object.assign({}, param), { state });\n // TODO(philipwalton): not sure why `any` is needed. It seems like\n // this should work with `as WorkboxPluginCallbackParam[C]`.\n return plugin[name](statefulParam);\n };\n yield statefulCallback;\n }\n }\n }\n /**\n * Adds a promise to the\n * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises}\n * of the event event associated with the request being handled (usually a\n * `FetchEvent`).\n *\n * Note: you can await\n * {@link workbox-strategies.StrategyHandler~doneWaiting}\n * to know when all added promises have settled.\n *\n * @param {Promise} promise A promise to add to the extend lifetime promises\n * of the event that triggered the request.\n */\n waitUntil(promise) {\n this._extendLifetimePromises.push(promise);\n return promise;\n }\n /**\n * Returns a promise that resolves once all promises passed to\n * {@link workbox-strategies.StrategyHandler~waitUntil}\n * have settled.\n *\n * Note: any work done after `doneWaiting()` settles should be manually\n * passed to an event's `waitUntil()` method (not this handler's\n * `waitUntil()` method), otherwise the service worker thread my be killed\n * prior to your work completing.\n */\n async doneWaiting() {\n let promise;\n while ((promise = this._extendLifetimePromises.shift())) {\n await promise;\n }\n }\n /**\n * Stops running the strategy and immediately resolves any pending\n * `waitUntil()` promises.\n */\n destroy() {\n this._handlerDeferred.resolve(null);\n }\n /**\n * This method will call cacheWillUpdate on the available plugins (or use\n * status === 200) to determine if the Response is safe and valid to cache.\n *\n * @param {Request} options.request\n * @param {Response} options.response\n * @return {Promise<Response|undefined>}\n *\n * @private\n */\n async _ensureResponseSafeToCache(response) {\n let responseToCache = response;\n let pluginsUsed = false;\n for (const callback of this.iterateCallbacks('cacheWillUpdate')) {\n responseToCache =\n (await callback({\n request: this.request,\n response: responseToCache,\n event: this.event,\n })) || undefined;\n pluginsUsed = true;\n if (!responseToCache) {\n break;\n }\n }\n if (!pluginsUsed) {\n if (responseToCache && responseToCache.status !== 200) {\n responseToCache = undefined;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (responseToCache) {\n if (responseToCache.status !== 200) {\n if (responseToCache.status === 0) {\n logger.warn(`The response for '${this.request.url}' ` +\n `is an opaque response. The caching strategy that you're ` +\n `using will not cache opaque responses by default.`);\n }\n else {\n logger.debug(`The response for '${this.request.url}' ` +\n `returned a status code of '${response.status}' and won't ` +\n `be cached as a result.`);\n }\n }\n }\n }\n }\n return responseToCache;\n }\n}\nexport { StrategyHandler };\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * Returns a promise that resolves and the passed number of milliseconds.\n * This utility is an async/await-friendly version of `setTimeout`.\n *\n * @param {number} ms\n * @return {Promise}\n * @private\n */\nexport function timeout(ms) {\n return new Promise((resolve) => setTimeout(resolve, ms));\n}\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst getFriendlyURL = (url) => {\n const urlObj = new URL(String(url), location.href);\n // See https://github.com/GoogleChrome/workbox/issues/2323\n // We want to include everything, except for the origin if it's same-origin.\n return urlObj.href.replace(new RegExp(`^${location.origin}`), '');\n};\nexport { getFriendlyURL };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from '../_private/logger.js';\nimport { quotaErrorCallbacks } from '../models/quotaErrorCallbacks.js';\nimport '../_version.js';\n/**\n * Runs all of the callback functions, one at a time sequentially, in the order\n * in which they were registered.\n *\n * @memberof workbox-core\n * @private\n */\nasync function executeQuotaErrorCallbacks() {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`About to run ${quotaErrorCallbacks.size} ` +\n `callbacks to clean up caches.`);\n }\n for (const callback of quotaErrorCallbacks) {\n await callback();\n if (process.env.NODE_ENV !== 'production') {\n logger.log(callback, 'is complete.');\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n logger.log('Finished running callbacks.');\n }\n}\nexport { executeQuotaErrorCallbacks };\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { copyResponse } from 'workbox-core/copyResponse.js';\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { Strategy } from 'workbox-strategies/Strategy.js';\nimport './_version.js';\n/**\n * A {@link workbox-strategies.Strategy} implementation\n * specifically designed to work with\n * {@link workbox-precaching.PrecacheController}\n * to both cache and fetch precached assets.\n *\n * Note: an instance of this class is created automatically when creating a\n * `PrecacheController`; it's generally not necessary to create this yourself.\n *\n * @extends workbox-strategies.Strategy\n * @memberof workbox-precaching\n */\nclass PrecacheStrategy extends Strategy {\n /**\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n * @param {Array<Object>} [options.plugins] {@link https://developers.google.com/web/tools/workbox/guides/using-plugins|Plugins}\n * to use in conjunction with this caching strategy.\n * @param {Object} [options.fetchOptions] Values passed along to the\n * {@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters|init}\n * of all fetch() requests made by this strategy.\n * @param {Object} [options.matchOptions] The\n * {@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions|CacheQueryOptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to\n * get the response from the network if there's a precache miss.\n */\n constructor(options = {}) {\n options.cacheName = cacheNames.getPrecacheName(options.cacheName);\n super(options);\n this._fallbackToNetwork =\n options.fallbackToNetwork === false ? false : true;\n // Redirected responses cannot be used to satisfy a navigation request, so\n // any redirected response must be \"copied\" rather than cloned, so the new\n // response doesn't contain the `redirected` flag. See:\n // https://bugs.chromium.org/p/chromium/issues/detail?id=669363&desc=2#c1\n this.plugins.push(PrecacheStrategy.copyRedirectedCacheableResponsesPlugin);\n }\n /**\n * @private\n * @param {Request|string} request A request to run this strategy for.\n * @param {workbox-strategies.StrategyHandler} handler The event that\n * triggered the request.\n * @return {Promise<Response>}\n */\n async _handle(request, handler) {\n const response = await handler.cacheMatch(request);\n if (response) {\n return response;\n }\n // If this is an `install` event for an entry that isn't already cached,\n // then populate the cache.\n if (handler.event && handler.event.type === 'install') {\n return await this._handleInstall(request, handler);\n }\n // Getting here means something went wrong. An entry that should have been\n // precached wasn't found in the cache.\n return await this._handleFetch(request, handler);\n }\n async _handleFetch(request, handler) {\n let response;\n const params = (handler.params || {});\n // Fall back to the network if we're configured to do so.\n if (this._fallbackToNetwork) {\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(`The precached response for ` +\n `${getFriendlyURL(request.url)} in ${this.cacheName} was not ` +\n `found. Falling back to the network.`);\n }\n const integrityInManifest = params.integrity;\n const integrityInRequest = request.integrity;\n const noIntegrityConflict = !integrityInRequest || integrityInRequest === integrityInManifest;\n response = await handler.fetch(new Request(request, {\n integrity: integrityInRequest || integrityInManifest,\n }));\n // It's only \"safe\" to repair the cache if we're using SRI to guarantee\n // that the response matches the precache manifest's expectations,\n // and there's either a) no integrity property in the incoming request\n // or b) there is an integrity, and it matches the precache manifest.\n // See https://github.com/GoogleChrome/workbox/issues/2858\n if (integrityInManifest && noIntegrityConflict) {\n this._useDefaultCacheabilityPluginIfNeeded();\n const wasCached = await handler.cachePut(request, response.clone());\n if (process.env.NODE_ENV !== 'production') {\n if (wasCached) {\n logger.log(`A response for ${getFriendlyURL(request.url)} ` +\n `was used to \"repair\" the precache.`);\n }\n }\n }\n }\n else {\n // This shouldn't normally happen, but there are edge cases:\n // https://github.com/GoogleChrome/workbox/issues/1441\n throw new WorkboxError('missing-precache-entry', {\n cacheName: this.cacheName,\n url: request.url,\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n const cacheKey = params.cacheKey || (await handler.getCacheKey(request, 'read'));\n // Workbox is going to handle the route.\n // print the routing details to the console.\n logger.groupCollapsed(`Precaching is responding to: ` + getFriendlyURL(request.url));\n logger.log(`Serving the precached url: ${getFriendlyURL(cacheKey instanceof Request ? cacheKey.url : cacheKey)}`);\n logger.groupCollapsed(`View request details here.`);\n logger.log(request);\n logger.groupEnd();\n logger.groupCollapsed(`View response details here.`);\n logger.log(response);\n logger.groupEnd();\n logger.groupEnd();\n }\n return response;\n }\n async _handleInstall(request, handler) {\n this._useDefaultCacheabilityPluginIfNeeded();\n const response = await handler.fetch(request);\n // Make sure we defer cachePut() until after we know the response\n // should be cached; see https://github.com/GoogleChrome/workbox/issues/2737\n const wasCached = await handler.cachePut(request, response.clone());\n if (!wasCached) {\n // Throwing here will lead to the `install` handler failing, which\n // we want to do if *any* of the responses aren't safe to cache.\n throw new WorkboxError('bad-precaching-response', {\n url: request.url,\n status: response.status,\n });\n }\n return response;\n }\n /**\n * This method is complex, as there a number of things to account for:\n *\n * The `plugins` array can be set at construction, and/or it might be added to\n * to at any time before the strategy is used.\n *\n * At the time the strategy is used (i.e. during an `install` event), there\n * needs to be at least one plugin that implements `cacheWillUpdate` in the\n * array, other than `copyRedirectedCacheableResponsesPlugin`.\n *\n * - If this method is called and there are no suitable `cacheWillUpdate`\n * plugins, we need to add `defaultPrecacheCacheabilityPlugin`.\n *\n * - If this method is called and there is exactly one `cacheWillUpdate`, then\n * we don't have to do anything (this might be a previously added\n * `defaultPrecacheCacheabilityPlugin`, or it might be a custom plugin).\n *\n * - If this method is called and there is more than one `cacheWillUpdate`,\n * then we need to check if one is `defaultPrecacheCacheabilityPlugin`. If so,\n * we need to remove it. (This situation is unlikely, but it could happen if\n * the strategy is used multiple times, the first without a `cacheWillUpdate`,\n * and then later on after manually adding a custom `cacheWillUpdate`.)\n *\n * See https://github.com/GoogleChrome/workbox/issues/2737 for more context.\n *\n * @private\n */\n _useDefaultCacheabilityPluginIfNeeded() {\n let defaultPluginIndex = null;\n let cacheWillUpdatePluginCount = 0;\n for (const [index, plugin] of this.plugins.entries()) {\n // Ignore the copy redirected plugin when determining what to do.\n if (plugin === PrecacheStrategy.copyRedirectedCacheableResponsesPlugin) {\n continue;\n }\n // Save the default plugin's index, in case it needs to be removed.\n if (plugin === PrecacheStrategy.defaultPrecacheCacheabilityPlugin) {\n defaultPluginIndex = index;\n }\n if (plugin.cacheWillUpdate) {\n cacheWillUpdatePluginCount++;\n }\n }\n if (cacheWillUpdatePluginCount === 0) {\n this.plugins.push(PrecacheStrategy.defaultPrecacheCacheabilityPlugin);\n }\n else if (cacheWillUpdatePluginCount > 1 && defaultPluginIndex !== null) {\n // Only remove the default plugin; multiple custom plugins are allowed.\n this.plugins.splice(defaultPluginIndex, 1);\n }\n // Nothing needs to be done if cacheWillUpdatePluginCount is 1\n }\n}\nPrecacheStrategy.defaultPrecacheCacheabilityPlugin = {\n async cacheWillUpdate({ response }) {\n if (!response || response.status >= 400) {\n return null;\n }\n return response;\n },\n};\nPrecacheStrategy.copyRedirectedCacheableResponsesPlugin = {\n async cacheWillUpdate({ response }) {\n return response.redirected ? await copyResponse(response) : response;\n },\n};\nexport { PrecacheStrategy };\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { StrategyHandler } from './StrategyHandler.js';\nimport './_version.js';\n/**\n * An abstract base class that all other strategy classes must extend from:\n *\n * @memberof workbox-strategies\n */\nclass Strategy {\n /**\n * Creates a new instance of the strategy and sets all documented option\n * properties as public instance properties.\n *\n * Note: if a custom strategy class extends the base Strategy class and does\n * not need more than these properties, it does not need to define its own\n * constructor.\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins}\n * to use in conjunction with this caching strategy.\n * @param {Object} [options.fetchOptions] Values passed along to the\n * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters)\n * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796)\n * `fetch()` requests made by this strategy.\n * @param {Object} [options.matchOptions] The\n * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n */\n constructor(options = {}) {\n /**\n * Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n *\n * @type {string}\n */\n this.cacheName = cacheNames.getRuntimeName(options.cacheName);\n /**\n * The list\n * [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins}\n * used by this strategy.\n *\n * @type {Array<Object>}\n */\n this.plugins = options.plugins || [];\n /**\n * Values passed along to the\n * [`init`]{@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters}\n * of all fetch() requests made by this strategy.\n *\n * @type {Object}\n */\n this.fetchOptions = options.fetchOptions;\n /**\n * The\n * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n *\n * @type {Object}\n */\n this.matchOptions = options.matchOptions;\n }\n /**\n * Perform a request strategy and returns a `Promise` that will resolve with\n * a `Response`, invoking all relevant plugin callbacks.\n *\n * When a strategy instance is registered with a Workbox\n * {@link workbox-routing.Route}, this method is automatically\n * called when the route matches.\n *\n * Alternatively, this method can be used in a standalone `FetchEvent`\n * listener by passing it to `event.respondWith()`.\n *\n * @param {FetchEvent|Object} options A `FetchEvent` or an object with the\n * properties listed below.\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params]\n */\n handle(options) {\n const [responseDone] = this.handleAll(options);\n return responseDone;\n }\n /**\n * Similar to {@link workbox-strategies.Strategy~handle}, but\n * instead of just returning a `Promise` that resolves to a `Response` it\n * it will return an tuple of `[response, done]` promises, where the former\n * (`response`) is equivalent to what `handle()` returns, and the latter is a\n * Promise that will resolve once any promises that were added to\n * `event.waitUntil()` as part of performing the strategy have completed.\n *\n * You can await the `done` promise to ensure any extra work performed by\n * the strategy (usually caching responses) completes successfully.\n *\n * @param {FetchEvent|Object} options A `FetchEvent` or an object with the\n * properties listed below.\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params]\n * @return {Array<Promise>} A tuple of [response, done]\n * promises that can be used to determine when the response resolves as\n * well as when the handler has completed all its work.\n */\n handleAll(options) {\n // Allow for flexible options to be passed.\n if (options instanceof FetchEvent) {\n options = {\n event: options,\n request: options.request,\n };\n }\n const event = options.event;\n const request = typeof options.request === 'string'\n ? new Request(options.request)\n : options.request;\n const params = 'params' in options ? options.params : undefined;\n const handler = new StrategyHandler(this, { event, request, params });\n const responseDone = this._getResponse(handler, request, event);\n const handlerDone = this._awaitComplete(responseDone, handler, request, event);\n // Return an array of promises, suitable for use with Promise.all().\n return [responseDone, handlerDone];\n }\n async _getResponse(handler, request, event) {\n await handler.runCallbacks('handlerWillStart', { event, request });\n let response = undefined;\n try {\n response = await this._handle(request, handler);\n // The \"official\" Strategy subclasses all throw this error automatically,\n // but in case a third-party Strategy doesn't, ensure that we have a\n // consistent failure when there's no response or an error response.\n if (!response || response.type === 'error') {\n throw new WorkboxError('no-response', { url: request.url });\n }\n }\n catch (error) {\n if (error instanceof Error) {\n for (const callback of handler.iterateCallbacks('handlerDidError')) {\n response = await callback({ error, event, request });\n if (response) {\n break;\n }\n }\n }\n if (!response) {\n throw error;\n }\n else if (process.env.NODE_ENV !== 'production') {\n logger.log(`While responding to '${getFriendlyURL(request.url)}', ` +\n `an ${error instanceof Error ? error.toString() : ''} error occurred. Using a fallback response provided by ` +\n `a handlerDidError plugin.`);\n }\n }\n for (const callback of handler.iterateCallbacks('handlerWillRespond')) {\n response = await callback({ event, request, response });\n }\n return response;\n }\n async _awaitComplete(responseDone, handler, request, event) {\n let response;\n let error;\n try {\n response = await responseDone;\n }\n catch (error) {\n // Ignore errors, as response errors should be caught via the `response`\n // promise above. The `done` promise will only throw for errors in\n // promises passed to `handler.waitUntil()`.\n }\n try {\n await handler.runCallbacks('handlerDidRespond', {\n event,\n request,\n response,\n });\n await handler.doneWaiting();\n }\n catch (waitUntilError) {\n if (waitUntilError instanceof Error) {\n error = waitUntilError;\n }\n }\n await handler.runCallbacks('handlerDidComplete', {\n event,\n request,\n response,\n error: error,\n });\n handler.destroy();\n if (error) {\n throw error;\n }\n }\n}\nexport { Strategy };\n/**\n * Classes extending the `Strategy` based class should implement this method,\n * and leverage the {@link workbox-strategies.StrategyHandler}\n * arg to perform all fetching and cache logic, which will ensure all relevant\n * cache, cache options, fetch options and plugins are used (per the current\n * strategy instance).\n *\n * @name _handle\n * @instance\n * @abstract\n * @function\n * @param {Request} request\n * @param {workbox-strategies.StrategyHandler} handler\n * @return {Promise<Response>}\n *\n * @memberof workbox-strategies.Strategy\n */\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { waitUntil } from 'workbox-core/_private/waitUntil.js';\nimport { createCacheKey } from './utils/createCacheKey.js';\nimport { PrecacheInstallReportPlugin } from './utils/PrecacheInstallReportPlugin.js';\nimport { PrecacheCacheKeyPlugin } from './utils/PrecacheCacheKeyPlugin.js';\nimport { printCleanupDetails } from './utils/printCleanupDetails.js';\nimport { printInstallDetails } from './utils/printInstallDetails.js';\nimport { PrecacheStrategy } from './PrecacheStrategy.js';\nimport './_version.js';\n/**\n * Performs efficient precaching of assets.\n *\n * @memberof workbox-precaching\n */\nclass PrecacheController {\n /**\n * Create a new PrecacheController.\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] The cache to use for precaching.\n * @param {string} [options.plugins] Plugins to use when precaching as well\n * as responding to fetch events for precached assets.\n * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to\n * get the response from the network if there's a precache miss.\n */\n constructor({ cacheName, plugins = [], fallbackToNetwork = true, } = {}) {\n this._urlsToCacheKeys = new Map();\n this._urlsToCacheModes = new Map();\n this._cacheKeysToIntegrities = new Map();\n this._strategy = new PrecacheStrategy({\n cacheName: cacheNames.getPrecacheName(cacheName),\n plugins: [\n ...plugins,\n new PrecacheCacheKeyPlugin({ precacheController: this }),\n ],\n fallbackToNetwork,\n });\n // Bind the install and activate methods to the instance.\n this.install = this.install.bind(this);\n this.activate = this.activate.bind(this);\n }\n /**\n * @type {workbox-precaching.PrecacheStrategy} The strategy created by this controller and\n * used to cache assets and respond to fetch events.\n */\n get strategy() {\n return this._strategy;\n }\n /**\n * Adds items to the precache list, removing any duplicates and\n * stores the files in the\n * {@link workbox-core.cacheNames|\"precache cache\"} when the service\n * worker installs.\n *\n * This method can be called multiple times.\n *\n * @param {Array<Object|string>} [entries=[]] Array of entries to precache.\n */\n precache(entries) {\n this.addToCacheList(entries);\n if (!this._installAndActiveListenersAdded) {\n self.addEventListener('install', this.install);\n self.addEventListener('activate', this.activate);\n this._installAndActiveListenersAdded = true;\n }\n }\n /**\n * This method will add items to the precache list, removing duplicates\n * and ensuring the information is valid.\n *\n * @param {Array<workbox-precaching.PrecacheController.PrecacheEntry|string>} entries\n * Array of entries to precache.\n */\n addToCacheList(entries) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isArray(entries, {\n moduleName: 'workbox-precaching',\n className: 'PrecacheController',\n funcName: 'addToCacheList',\n paramName: 'entries',\n });\n }\n const urlsToWarnAbout = [];\n for (const entry of entries) {\n // See https://github.com/GoogleChrome/workbox/issues/2259\n if (typeof entry === 'string') {\n urlsToWarnAbout.push(entry);\n }\n else if (entry && entry.revision === undefined) {\n urlsToWarnAbout.push(entry.url);\n }\n const { cacheKey, url } = createCacheKey(entry);\n const cacheMode = typeof entry !== 'string' && entry.revision ? 'reload' : 'default';\n if (this._urlsToCacheKeys.has(url) &&\n this._urlsToCacheKeys.get(url) !== cacheKey) {\n throw new WorkboxError('add-to-cache-list-conflicting-entries', {\n firstEntry: this._urlsToCacheKeys.get(url),\n secondEntry: cacheKey,\n });\n }\n if (typeof entry !== 'string' && entry.integrity) {\n if (this._cacheKeysToIntegrities.has(cacheKey) &&\n this._cacheKeysToIntegrities.get(cacheKey) !== entry.integrity) {\n throw new WorkboxError('add-to-cache-list-conflicting-integrities', {\n url,\n });\n }\n this._cacheKeysToIntegrities.set(cacheKey, entry.integrity);\n }\n this._urlsToCacheKeys.set(url, cacheKey);\n this._urlsToCacheModes.set(url, cacheMode);\n if (urlsToWarnAbout.length > 0) {\n const warningMessage = `Workbox is precaching URLs without revision ` +\n `info: ${urlsToWarnAbout.join(', ')}\\nThis is generally NOT safe. ` +\n `Learn more at https://bit.ly/wb-precache`;\n if (process.env.NODE_ENV === 'production') {\n // Use console directly to display this warning without bloating\n // bundle sizes by pulling in all of the logger codebase in prod.\n console.warn(warningMessage);\n }\n else {\n logger.warn(warningMessage);\n }\n }\n }\n }\n /**\n * Precaches new and updated assets. Call this method from the service worker\n * install event.\n *\n * Note: this method calls `event.waitUntil()` for you, so you do not need\n * to call it yourself in your event handlers.\n *\n * @param {ExtendableEvent} event\n * @return {Promise<workbox-precaching.InstallResult>}\n */\n install(event) {\n // waitUntil returns Promise<any>\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return waitUntil(event, async () => {\n const installReportPlugin = new PrecacheInstallReportPlugin();\n this.strategy.plugins.push(installReportPlugin);\n // Cache entries one at a time.\n // See https://github.com/GoogleChrome/workbox/issues/2528\n for (const [url, cacheKey] of this._urlsToCacheKeys) {\n const integrity = this._cacheKeysToIntegrities.get(cacheKey);\n const cacheMode = this._urlsToCacheModes.get(url);\n const request = new Request(url, {\n integrity,\n cache: cacheMode,\n credentials: 'same-origin',\n });\n await Promise.all(this.strategy.handleAll({\n params: { cacheKey },\n request,\n event,\n }));\n }\n const { updatedURLs, notUpdatedURLs } = installReportPlugin;\n if (process.env.NODE_ENV !== 'production') {\n printInstallDetails(updatedURLs, notUpdatedURLs);\n }\n return { updatedURLs, notUpdatedURLs };\n });\n }\n /**\n * Deletes assets that are no longer present in the current precache manifest.\n * Call this method from the service worker activate event.\n *\n * Note: this method calls `event.waitUntil()` for you, so you do not need\n * to call it yourself in your event handlers.\n *\n * @param {ExtendableEvent} event\n * @return {Promise<workbox-precaching.CleanupResult>}\n */\n activate(event) {\n // waitUntil returns Promise<any>\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return waitUntil(event, async () => {\n const cache = await self.caches.open(this.strategy.cacheName);\n const currentlyCachedRequests = await cache.keys();\n const expectedCacheKeys = new Set(this._urlsToCacheKeys.values());\n const deletedURLs = [];\n for (const request of currentlyCachedRequests) {\n if (!expectedCacheKeys.has(request.url)) {\n await cache.delete(request);\n deletedURLs.push(request.url);\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n printCleanupDetails(deletedURLs);\n }\n return { deletedURLs };\n });\n }\n /**\n * Returns a mapping of a precached URL to the corresponding cache key, taking\n * into account the revision information for the URL.\n *\n * @return {Map<string, string>} A URL to cache key mapping.\n */\n getURLsToCacheKeys() {\n return this._urlsToCacheKeys;\n }\n /**\n * Returns a list of all the URLs that have been precached by the current\n * service worker.\n *\n * @return {Array<string>} The precached URLs.\n */\n getCachedURLs() {\n return [...this._urlsToCacheKeys.keys()];\n }\n /**\n * Returns the cache key used for storing a given URL. If that URL is\n * unversioned, like `/index.html', then the cache key will be the original\n * URL with a search parameter appended to it.\n *\n * @param {string} url A URL whose cache key you want to look up.\n * @return {string} The versioned URL that corresponds to a cache key\n * for the original URL, or undefined if that URL isn't precached.\n */\n getCacheKeyForURL(url) {\n const urlObject = new URL(url, location.href);\n return this._urlsToCacheKeys.get(urlObject.href);\n }\n /**\n * @param {string} url A cache key whose SRI you want to look up.\n * @return {string} The subresource integrity associated with the cache key,\n * or undefined if it's not set.\n */\n getIntegrityForCacheKey(cacheKey) {\n return this._cacheKeysToIntegrities.get(cacheKey);\n }\n /**\n * This acts as a drop-in replacement for\n * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)\n * with the following differences:\n *\n * - It knows what the name of the precache is, and only checks in that cache.\n * - It allows you to pass in an \"original\" URL without versioning parameters,\n * and it will automatically look up the correct cache key for the currently\n * active revision of that URL.\n *\n * E.g., `matchPrecache('index.html')` will find the correct precached\n * response for the currently active service worker, even if the actual cache\n * key is `'/index.html?__WB_REVISION__=1234abcd'`.\n *\n * @param {string|Request} request The key (without revisioning parameters)\n * to look up in the precache.\n * @return {Promise<Response|undefined>}\n */\n async matchPrecache(request) {\n const url = request instanceof Request ? request.url : request;\n const cacheKey = this.getCacheKeyForURL(url);\n if (cacheKey) {\n const cache = await self.caches.open(this.strategy.cacheName);\n return cache.match(cacheKey);\n }\n return undefined;\n }\n /**\n * Returns a function that looks up `url` in the precache (taking into\n * account revision information), and returns the corresponding `Response`.\n *\n * @param {string} url The precached URL which will be used to lookup the\n * `Response`.\n * @return {workbox-routing~handlerCallback}\n */\n createHandlerBoundToURL(url) {\n const cacheKey = this.getCacheKeyForURL(url);\n if (!cacheKey) {\n throw new WorkboxError('non-precached-url', { url });\n }\n return (options) => {\n options.request = new Request(url);\n options.params = Object.assign({ cacheKey }, options.params);\n return this.strategy.handle(options);\n };\n }\n}\nexport { PrecacheController };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { PrecacheController } from '../PrecacheController.js';\nimport '../_version.js';\nlet precacheController;\n/**\n * @return {PrecacheController}\n * @private\n */\nexport const getOrCreatePrecacheController = () => {\n if (!precacheController) {\n precacheController = new PrecacheController();\n }\n return precacheController;\n};\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { Route } from 'workbox-routing/Route.js';\nimport { generateURLVariations } from './utils/generateURLVariations.js';\nimport './_version.js';\n/**\n * A subclass of {@link workbox-routing.Route} that takes a\n * {@link workbox-precaching.PrecacheController}\n * instance and uses it to match incoming requests and handle fetching\n * responses from the precache.\n *\n * @memberof workbox-precaching\n * @extends workbox-routing.Route\n */\nclass PrecacheRoute extends Route {\n /**\n * @param {PrecacheController} precacheController A `PrecacheController`\n * instance used to both match requests and respond to fetch events.\n * @param {Object} [options] Options to control how requests are matched\n * against the list of precached URLs.\n * @param {string} [options.directoryIndex=index.html] The `directoryIndex` will\n * check cache entries for a URLs ending with '/' to see if there is a hit when\n * appending the `directoryIndex` value.\n * @param {Array<RegExp>} [options.ignoreURLParametersMatching=[/^utm_/, /^fbclid$/]] An\n * array of regex's to remove search params when looking for a cache match.\n * @param {boolean} [options.cleanURLs=true] The `cleanURLs` option will\n * check the cache for the URL with a `.html` added to the end of the end.\n * @param {workbox-precaching~urlManipulation} [options.urlManipulation]\n * This is a function that should take a URL and return an array of\n * alternative URLs that should be checked for precache matches.\n */\n constructor(precacheController, options) {\n const match = ({ request, }) => {\n const urlsToCacheKeys = precacheController.getURLsToCacheKeys();\n for (const possibleURL of generateURLVariations(request.url, options)) {\n const cacheKey = urlsToCacheKeys.get(possibleURL);\n if (cacheKey) {\n const integrity = precacheController.getIntegrityForCacheKey(cacheKey);\n return { cacheKey, integrity };\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Precaching did not find a match for ` + getFriendlyURL(request.url));\n }\n return;\n };\n super(match, precacheController.strategy);\n }\n}\nexport { PrecacheRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { removeIgnoredSearchParams } from './removeIgnoredSearchParams.js';\nimport '../_version.js';\n/**\n * Generator function that yields possible variations on the original URL to\n * check, one at a time.\n *\n * @param {string} url\n * @param {Object} options\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function* generateURLVariations(url, { ignoreURLParametersMatching = [/^utm_/, /^fbclid$/], directoryIndex = 'index.html', cleanURLs = true, urlManipulation, } = {}) {\n const urlObject = new URL(url, location.href);\n urlObject.hash = '';\n yield urlObject.href;\n const urlWithoutIgnoredParams = removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching);\n yield urlWithoutIgnoredParams.href;\n if (directoryIndex && urlWithoutIgnoredParams.pathname.endsWith('/')) {\n const directoryURL = new URL(urlWithoutIgnoredParams.href);\n directoryURL.pathname += directoryIndex;\n yield directoryURL.href;\n }\n if (cleanURLs) {\n const cleanURL = new URL(urlWithoutIgnoredParams.href);\n cleanURL.pathname += '.html';\n yield cleanURL.href;\n }\n if (urlManipulation) {\n const additionalURLs = urlManipulation({ url: urlObject });\n for (const urlToAttempt of additionalURLs) {\n yield urlToAttempt.href;\n }\n }\n}\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * Removes any URL search parameters that should be ignored.\n *\n * @param {URL} urlObject The original URL.\n * @param {Array<RegExp>} ignoreURLParametersMatching RegExps to test against\n * each search parameter name. Matches mean that the search parameter should be\n * ignored.\n * @return {URL} The URL with any ignored search parameters removed.\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching = []) {\n // Convert the iterable into an array at the start of the loop to make sure\n // deletion doesn't mess up iteration.\n for (const paramName of [...urlObject.searchParams.keys()]) {\n if (ignoreURLParametersMatching.some((regExp) => regExp.test(paramName))) {\n urlObject.searchParams.delete(paramName);\n }\n }\n return urlObject;\n}\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { registerRoute } from 'workbox-routing/registerRoute.js';\nimport { getOrCreatePrecacheController } from './utils/getOrCreatePrecacheController.js';\nimport { PrecacheRoute } from './PrecacheRoute.js';\nimport './_version.js';\n/**\n * Add a `fetch` listener to the service worker that will\n * respond to\n * [network requests]{@link https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Custom_responses_to_requests}\n * with precached assets.\n *\n * Requests for assets that aren't precached, the `FetchEvent` will not be\n * responded to, allowing the event to fall through to other `fetch` event\n * listeners.\n *\n * @param {Object} [options] See the {@link workbox-precaching.PrecacheRoute}\n * options.\n *\n * @memberof workbox-precaching\n */\nfunction addRoute(options) {\n const precacheController = getOrCreatePrecacheController();\n const precacheRoute = new PrecacheRoute(precacheController, options);\n registerRoute(precacheRoute);\n}\nexport { addRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { Route } from './Route.js';\nimport { RegExpRoute } from './RegExpRoute.js';\nimport { getOrCreateDefaultRouter } from './utils/getOrCreateDefaultRouter.js';\nimport './_version.js';\n/**\n * Easily register a RegExp, string, or function with a caching\n * strategy to a singleton Router instance.\n *\n * This method will generate a Route for you if needed and\n * call {@link workbox-routing.Router#registerRoute}.\n *\n * @param {RegExp|string|workbox-routing.Route~matchCallback|workbox-routing.Route} capture\n * If the capture param is a `Route`, all other arguments will be ignored.\n * @param {workbox-routing~handlerCallback} [handler] A callback\n * function that returns a Promise resulting in a Response. This parameter\n * is required if `capture` is not a `Route` object.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n * @return {workbox-routing.Route} The generated `Route`.\n *\n * @memberof workbox-routing\n */\nfunction registerRoute(capture, handler, method) {\n let route;\n if (typeof capture === 'string') {\n const captureUrl = new URL(capture, location.href);\n if (process.env.NODE_ENV !== 'production') {\n if (!(capture.startsWith('/') || capture.startsWith('http'))) {\n throw new WorkboxError('invalid-string', {\n moduleName: 'workbox-routing',\n funcName: 'registerRoute',\n paramName: 'capture',\n });\n }\n // We want to check if Express-style wildcards are in the pathname only.\n // TODO: Remove this log message in v4.\n const valueToCheck = capture.startsWith('http')\n ? captureUrl.pathname\n : capture;\n // See https://github.com/pillarjs/path-to-regexp#parameters\n const wildcards = '[*:?+]';\n if (new RegExp(`${wildcards}`).exec(valueToCheck)) {\n logger.debug(`The '$capture' parameter contains an Express-style wildcard ` +\n `character (${wildcards}). Strings are now always interpreted as ` +\n `exact matches; use a RegExp for partial or wildcard matches.`);\n }\n }\n const matchCallback = ({ url }) => {\n if (process.env.NODE_ENV !== 'production') {\n if (url.pathname === captureUrl.pathname &&\n url.origin !== captureUrl.origin) {\n logger.debug(`${capture} only partially matches the cross-origin URL ` +\n `${url.toString()}. This route will only handle cross-origin requests ` +\n `if they match the entire URL.`);\n }\n }\n return url.href === captureUrl.href;\n };\n // If `capture` is a string then `handler` and `method` must be present.\n route = new Route(matchCallback, handler, method);\n }\n else if (capture instanceof RegExp) {\n // If `capture` is a `RegExp` then `handler` and `method` must be present.\n route = new RegExpRoute(capture, handler, method);\n }\n else if (typeof capture === 'function') {\n // If `capture` is a function then `handler` and `method` must be present.\n route = new Route(capture, handler, method);\n }\n else if (capture instanceof Route) {\n route = capture;\n }\n else {\n throw new WorkboxError('unsupported-route-type', {\n moduleName: 'workbox-routing',\n funcName: 'registerRoute',\n paramName: 'capture',\n });\n }\n const defaultRouter = getOrCreateDefaultRouter();\n defaultRouter.registerRoute(route);\n return route;\n}\nexport { registerRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { addRoute } from './addRoute.js';\nimport { precache } from './precache.js';\nimport './_version.js';\n/**\n * This method will add entries to the precache list and add a route to\n * respond to fetch events.\n *\n * This is a convenience method that will call\n * {@link workbox-precaching.precache} and\n * {@link workbox-precaching.addRoute} in a single call.\n *\n * @param {Array<Object|string>} entries Array of entries to precache.\n * @param {Object} [options] See the\n * {@link workbox-precaching.PrecacheRoute} options.\n *\n * @memberof workbox-precaching\n */\nfunction precacheAndRoute(entries, options) {\n precache(entries);\n addRoute(options);\n}\nexport { precacheAndRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { getOrCreatePrecacheController } from './utils/getOrCreatePrecacheController.js';\nimport './_version.js';\n/**\n * Adds items to the precache list, removing any duplicates and\n * stores the files in the\n * {@link workbox-core.cacheNames|\"precache cache\"} when the service\n * worker installs.\n *\n * This method can be called multiple times.\n *\n * Please note: This method **will not** serve any of the cached files for you.\n * It only precaches files. To respond to a network request you call\n * {@link workbox-precaching.addRoute}.\n *\n * If you have a single array of files to precache, you can just call\n * {@link workbox-precaching.precacheAndRoute}.\n *\n * @param {Array<Object|string>} [entries=[]] Array of entries to precache.\n *\n * @memberof workbox-precaching\n */\nfunction precache(entries) {\n const precacheController = getOrCreatePrecacheController();\n precacheController.precache(entries);\n}\nexport { precache };\n"],"names":["self","_","e","messageGenerator","code","args","msg","length","JSON","stringify","WorkboxError","Error","constructor","errorCode","details","super","name","normalizeHandler","handler","handle","Route","match","method","this","setCatchHandler","catchHandler","RegExpRoute","regExp","url","result","exec","href","origin","location","index","slice","Router","_routes","Map","_defaultHandlerMap","routes","addFetchListener","addEventListener","event","request","responsePromise","handleRequest","respondWith","addCacheListener","data","type","payload","requestPromises","Promise","all","urlsToCache","map","entry","Request","waitUntil","ports","then","postMessage","URL","protocol","startsWith","sameOrigin","params","route","findMatchingRoute","has","get","err","reject","_catchHandler","catch","async","catchErr","matchResult","Array","isArray","Object","keys","undefined","setDefaultHandler","set","registerRoute","push","unregisterRoute","routeIndex","indexOf","splice","defaultRouter","_cacheNameDetails","googleAnalytics","precache","prefix","runtime","suffix","registration","scope","_createCacheName","cacheName","filter","value","join","cacheNames","userCacheName","asyncFn","returnPromise","createCacheKey","urlObject","cacheKey","revision","cacheKeyURL","originalURL","searchParams","PrecacheInstallReportPlugin","updatedURLs","notUpdatedURLs","handlerWillStart","state","originalRequest","cachedResponseWillBeUsed","cachedResponse","PrecacheCacheKeyPlugin","precacheController","cacheKeyWillBeUsed","_precacheController","getCacheKeyForURL","headers","supportStatus","copyResponse","response","modifier","clonedResponse","clone","responseInit","Headers","status","statusText","modifiedResponseInit","body","testResponse","Response","error","canConstructResponseFromBodyStream","blob","stripParams","fullURL","ignoreParams","strippedURL","param","delete","Deferred","promise","resolve","quotaErrorCallbacks","Set","toRequest","input","StrategyHandler","strategy","options","_cacheKeys","assign","_strategy","_handlerDeferred","_extendLifetimePromises","_plugins","plugins","_pluginStateMap","plugin","fetch","mode","FetchEvent","preloadResponse","possiblePreloadResponse","hasCallback","cb","iterateCallbacks","thrownErrorMessage","message","pluginFilteredRequest","fetchResponse","fetchOptions","callback","runCallbacks","fetchAndCachePut","responseClone","cachePut","cacheMatch","key","matchOptions","effectiveRequest","getCacheKey","multiMatchOptions","caches","ms","setTimeout","String","replace","RegExp","responseToCache","_ensureResponseSafeToCache","cache","open","hasCacheUpdateCallback","oldResponse","strippedRequestURL","keysOptions","ignoreSearch","cacheKeys","cacheMatchIgnoreParams","put","executeQuotaErrorCallbacks","newResponse","statefulCallback","statefulParam","shift","destroy","pluginsUsed","PrecacheStrategy","responseDone","handleAll","_getResponse","_awaitComplete","_handle","doneWaiting","waitUntilError","_fallbackToNetwork","fallbackToNetwork","copyRedirectedCacheableResponsesPlugin","_handleInstall","_handleFetch","integrityInManifest","integrity","integrityInRequest","noIntegrityConflict","_useDefaultCacheabilityPluginIfNeeded","defaultPluginIndex","cacheWillUpdatePluginCount","entries","defaultPrecacheCacheabilityPlugin","cacheWillUpdate","redirected","PrecacheController","_urlsToCacheKeys","_urlsToCacheModes","_cacheKeysToIntegrities","install","bind","activate","addToCacheList","_installAndActiveListenersAdded","urlsToWarnAbout","cacheMode","firstEntry","secondEntry","warningMessage","console","warn","installReportPlugin","credentials","currentlyCachedRequests","expectedCacheKeys","values","deletedURLs","getURLsToCacheKeys","getCachedURLs","getIntegrityForCacheKey","matchPrecache","createHandlerBoundToURL","getOrCreatePrecacheController","PrecacheRoute","urlsToCacheKeys","possibleURL","ignoreURLParametersMatching","directoryIndex","cleanURLs","urlManipulation","hash","urlWithoutIgnoredParams","paramName","some","test","removeIgnoredSearchParams","pathname","endsWith","directoryURL","cleanURL","additionalURLs","urlToAttempt","generateURLVariations","addRoute","capture","captureUrl","moduleName","funcName"],"mappings":"6CAEA,IACIA,KAAK,uBAAyBC,IAElC,MAAOC,ICEP,MCgBaC,EAdI,CAACC,KAASC,KACnBC,IAAAA,EAAMF,EAIV,OAHIC,EAAKE,OAAS,IACdD,GAAQ,OAAME,KAAKC,UAAUJ,MAE1BC,GCIX,MAAMI,UAAqBC,MASvBC,YAAYC,EAAWC,GAEnBC,MADgBZ,EAAiBU,EAAWC,IAEvCE,KAAAA,KAAOH,EACPC,KAAAA,QAAUA,GC7BvB,IACId,KAAK,0BAA4BC,IAErC,MAAOC,ICWA,MCAMe,EAAoBC,GACzBA,GAA8B,iBAAZA,EASXA,EAWA,CAAEC,OAAQD,GCjBzB,MAAME,EAYFR,YAAYS,EAAOH,EAASI,EFhBH,OE8BrBC,KAAKL,QAAUD,EAAiBC,GAC3BG,KAAAA,MAAQA,EACRC,KAAAA,OAASA,EAOlBE,gBAAgBN,GACZK,KAAKE,aAAeR,EAAiBC,IClC7C,MAAMQ,UAAoBN,EActBR,YAAYe,EAAQT,EAASI,GAiCzBP,OAxBc,EAAGa,IAAAA,MACPC,MAAAA,EAASF,EAAOG,KAAKF,EAAIG,MAE3B,GAACF,IAODD,EAAII,SAAWC,SAASD,QAA2B,IAAjBH,EAAOK,OAY7C,OAAOL,EAAOM,MAAM,KAEXjB,EAASI,ICtC9B,MAAMc,EAIFxB,cACIW,KAAKc,EAAU,IAAIC,IACnBf,KAAKgB,EAAqB,IAAID,IAO9BE,aACA,OAAOjB,KAAKc,EAMhBI,mBAEIzC,KAAK0C,iBAAiB,SAAWC,IACvB,MAAAC,QAAEA,GAAYD,EACdE,EAAkBtB,KAAKuB,cAAc,CAAEF,QAAAA,EAASD,MAAAA,IAClDE,GACAF,EAAMI,YAAYF,MA0B9BG,mBAEIhD,KAAK0C,iBAAiB,WAAaC,IAG3BA,GAAAA,EAAMM,MAA4B,eAApBN,EAAMM,KAAKC,KAAuB,CAE1C,MAAAC,QAAEA,GAAYR,EAAMM,KAIpBG,EAAkBC,QAAQC,IAAIH,EAAQI,YAAYC,KAAKC,IACpC,iBAAVA,IACPA,EAAQ,CAACA,IAEb,MAAMb,EAAU,IAAIc,WAAWD,GACxB,OAAAlC,KAAKuB,cAAc,CAAEF,QAAAA,EAASD,MAAAA,QAKzCA,EAAMgB,UAAUP,GAEZT,EAAMiB,OAASjB,EAAMiB,MAAM,IACtBR,EAAgBS,MAAK,IAAMlB,EAAMiB,MAAM,GAAGE,aAAY,SAiB3EhB,eAAcF,QAAEA,EAAFD,MAAWA,IASrB,MAAMf,EAAM,IAAImC,IAAInB,EAAQhB,IAAKK,SAASF,MACtC,IAACH,EAAIoC,SAASC,WAAW,QAIzB,OAEEC,MAAAA,EAAatC,EAAII,SAAWC,SAASD,QACrCmC,OAAEA,EAAFC,MAAUA,GAAU7C,KAAK8C,kBAAkB,CAC7C1B,MAAAA,EACAC,QAAAA,EACAsB,WAAAA,EACAtC,IAAAA,IAEJ,IAAIV,EAAUkD,GAASA,EAAMlD,QAe7B,MAAMI,EAASsB,EAAQtB,OAQnB,IAPCJ,GAAWK,KAAKgB,EAAmB+B,IAAIhD,KAKxCJ,EAAUK,KAAKgB,EAAmBgC,IAAIjD,KAErCJ,EAMD,OAkBJ,IAAI2B,EACA,IACAA,EAAkB3B,EAAQC,OAAO,CAAES,IAAAA,EAAKgB,QAAAA,EAASD,MAAAA,EAAOwB,OAAAA,IAE5D,MAAOK,GACH3B,EAAkBQ,QAAQoB,OAAOD,GAGrC,MAAM/C,EAAe2C,GAASA,EAAM3C,aAuCpC,OAtCIoB,aAA2BQ,UAC1B9B,KAAKmD,GAAiBjD,KACvBoB,EAAkBA,EAAgB8B,OAAMC,MAAAA,IAEpC,GAAInD,EAUI,IACA,aAAaA,EAAaN,OAAO,CAAES,IAAAA,EAAKgB,QAAAA,EAASD,MAAAA,EAAOwB,OAAAA,IAE5D,MAAOU,GACCA,aAAoBlE,QACpB6D,EAAMK,GAId,GAAAtD,KAAKmD,EAUL,OAAOnD,KAAKmD,EAAcvD,OAAO,CAAES,IAAAA,EAAKgB,QAAAA,EAASD,MAAAA,IAErD,MAAM6B,MAGP3B,EAiBXwB,mBAAkBzC,IAAEA,EAAFsC,WAAOA,EAAPtB,QAAmBA,EAAnBD,MAA4BA,IACpCH,MAAAA,EAASjB,KAAKc,EAAQkC,IAAI3B,EAAQtB,SAAW,GACnD,IAAK,MAAM8C,KAAS5B,EAAQ,CACpB2B,IAAAA,EAGJ,MAAMW,EAAcV,EAAM/C,MAAM,CAAEO,IAAAA,EAAKsC,WAAAA,EAAYtB,QAAAA,EAASD,MAAAA,IAC5D,GAAImC,EA6BO,OAjBPX,EAASW,GACLC,MAAMC,QAAQb,IAA6B,IAAlBA,EAAO5D,QAI3BuE,EAAYlE,cAAgBqE,QACG,IAApCA,OAAOC,KAAKJ,GAAavE,QAIG,kBAAhBuE,KAPZX,OAASgB,GAcN,CAAEf,MAAAA,EAAOD,OAAAA,GAIxB,MAAO,GAgBXiB,kBAAkBlE,EAASI,EJ1SF,OI2ShBiB,KAAAA,EAAmB8C,IAAI/D,EAAQL,EAAiBC,IASzDM,gBAAgBN,GACZK,KAAKmD,EAAgBzD,EAAiBC,GAO1CoE,cAAclB,GAiCL7C,KAAKc,EAAQiC,IAAIF,EAAM9C,SACnBe,KAAAA,EAAQgD,IAAIjB,EAAM9C,OAAQ,IAI9Be,KAAAA,EAAQkC,IAAIH,EAAM9C,QAAQiE,KAAKnB,GAOxCoB,gBAAgBpB,GACR,IAAC7C,KAAKc,EAAQiC,IAAIF,EAAM9C,QACxB,MAAM,IAAIZ,EAAa,6CAA8C,CACjEY,OAAQ8C,EAAM9C,SAGtB,MAAMmE,EAAalE,KAAKc,EAAQkC,IAAIH,EAAM9C,QAAQoE,QAAQtB,GAC1D,KAAIqB,GAAc,GAId,MAAM,IAAI/E,EAAa,yCAHvBa,KAAKc,EAAQkC,IAAIH,EAAM9C,QAAQqE,OAAOF,EAAY,ICxX9D,IAAIG,ECDJ,MAAMC,EAAoB,CACtBC,gBAAiB,kBACjBC,SAAU,cACVC,OAAQ,UACRC,QAAS,UACTC,OAAgC,oBAAjBC,aAA+BA,aAAaC,MAAQ,IAEjEC,EAAoBC,GACf,CAACT,EAAkBG,OAAQM,EAAWT,EAAkBK,QAC1DK,QAAQC,GAAUA,GAASA,EAAMjG,OAAS,IAC1CkG,KAAK,KAODC,EAWSC,GACPA,GAAiBN,EAAiBR,EAAkBE,UAZtDW,EAiBQC,GACNA,GAAiBN,EAAiBR,EAAkBI,SC3BnE,SAAStC,EAAUhB,EAAOiE,GAChBC,MAAAA,EAAgBD,IAEtB,OADAjE,EAAMgB,UAAUkD,GACTA,ECjBX,IACI7G,KAAK,6BAA+BC,IAExC,MAAOC,ICeA,SAAS4G,EAAerD,GACvB,IAACA,EACD,MAAM,IAAI/C,EAAa,oCAAqC,CAAE+C,MAAAA,IAIlE,GAAqB,iBAAVA,EAAoB,CACrBsD,MAAAA,EAAY,IAAIhD,IAAIN,EAAOxB,SAASF,MACnC,MAAA,CACHiF,SAAUD,EAAUhF,KACpBH,IAAKmF,EAAUhF,MAGjB,MAAAkF,SAAEA,EAAFrF,IAAYA,GAAQ6B,EACtB,IAAC7B,EACD,MAAM,IAAIlB,EAAa,oCAAqC,CAAE+C,MAAAA,IAI9D,IAACwD,EAAU,CACLF,MAAAA,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACjC,MAAA,CACHiF,SAAUD,EAAUhF,KACpBH,IAAKmF,EAAUhF,MAKjBmF,MAAAA,EAAc,IAAInD,IAAInC,EAAKK,SAASF,MACpCoF,EAAc,IAAIpD,IAAInC,EAAKK,SAASF,MAEnC,OADPmF,EAAYE,aAAa/B,IAxCC,kBAwC0B4B,GAC7C,CACHD,SAAUE,EAAYnF,KACtBH,IAAKuF,EAAYpF,MCvCzB,MAAMsF,EACFzG,cACS0G,KAAAA,YAAc,GACdC,KAAAA,eAAiB,GACjBC,KAAAA,iBAAmB5C,OAAShC,QAAAA,EAAS6E,MAAAA,MAElCA,IACAA,EAAMC,gBAAkB9E,IAG3B+E,KAAAA,yBAA2B/C,OAASjC,MAAAA,EAAO8E,MAAAA,EAAOG,eAAAA,MACnD,GAAmB,YAAfjF,EAAMO,MACFuE,GACAA,EAAMC,iBACND,EAAMC,2BAA2BhE,QAAS,CAE1C,MAAM9B,EAAM6F,EAAMC,gBAAgB9F,IAC9BgG,EACArG,KAAKgG,eAAehC,KAAK3D,GAGzBL,KAAK+F,YAAY/B,KAAK3D,GAIlC,OAAOgG,ICzBnB,MAAMC,EACFjH,aAAYkH,mBAAEA,IACLC,KAAAA,mBAAqBnD,OAAShC,QAAAA,EAASuB,OAAAA,MAGlC6C,MAAAA,GAAY7C,MAAAA,OAAuC,EAASA,EAAO6C,WACrEzF,KAAKyG,EAAoBC,kBAAkBrF,EAAQhB,KAEvD,OAAOoF,EACD,IAAItD,QAAQsD,EAAU,CAAEkB,QAAStF,EAAQsF,UACzCtF,GAELoF,KAAAA,EAAsBF,GClBnC,IAAIK,ECqBJvD,eAAewD,EAAaC,EAAUC,GAClC,IAAItG,EAAS,KAETqG,GAAAA,EAASzG,IAAK,CAEdI,EADoB,IAAI+B,IAAIsE,EAASzG,KAChBI,OAEzB,GAAIA,IAAWhC,KAAKiC,SAASD,OACzB,MAAM,IAAItB,EAAa,6BAA8B,CAAEsB,OAAAA,IAE3D,MAAMuG,EAAiBF,EAASG,QAE1BC,EAAe,CACjBP,QAAS,IAAIQ,QAAQH,EAAeL,SACpCS,OAAQJ,EAAeI,OACvBC,WAAYL,EAAeK,YAGzBC,EAAuBP,EAAWA,EAASG,GAAgBA,EAI3DK,EDjCV,WACQX,QAAkBhD,IAAlBgD,EAA6B,CAC7B,MAAMY,EAAe,IAAIC,SAAS,IAC9B,GAAA,SAAUD,EACN,IACA,IAAIC,SAASD,EAAaD,MAC1BX,GAAgB,EAEpB,MAAOc,GACHd,GAAgB,EAGxBA,GAAgB,EAEpB,OAAOA,ECmBMe,GACPX,EAAeO,WACTP,EAAeY,OAC3B,OAAO,IAAIH,SAASF,EAAMD,GC/C9B,SAASO,EAAYC,EAASC,GAC1B,MAAMC,EAAc,IAAIxF,IAAIsF,GAC5B,IAAK,MAAMG,KAASF,EAChBC,EAAYnC,aAAaqC,OAAOD,GAE7BD,OAAAA,EAAYxH,KCIvB,MAAM2H,EAIF9I,cACS+I,KAAAA,QAAU,IAAItG,SAAQ,CAACuG,EAASnF,KAC5BmF,KAAAA,QAAUA,EACVnF,KAAAA,OAASA,MCZ1B,MAAMoF,EAAsB,IAAIC,ICThC,IACI9J,KAAK,6BAA+BC,IAExC,MAAOC,ICWP,SAAS6J,EAAUC,GACR,MAAiB,iBAAVA,EAAqB,IAAItG,QAAQsG,GAASA,EAW5D,MAAMC,EAiBFrJ,YAAYsJ,EAAUC,GACbC,KAAAA,EAAa,GA8ClBnF,OAAOoF,OAAO9I,KAAM4I,GACpB5I,KAAKoB,MAAQwH,EAAQxH,MAChB2H,KAAAA,EAAYJ,EACjB3I,KAAKgJ,EAAmB,IAAIb,EAC5BnI,KAAKiJ,EAA0B,GAG/BjJ,KAAKkJ,EAAW,IAAIP,EAASQ,SAC7BnJ,KAAKoJ,EAAkB,IAAIrI,IAC3B,IAAK,MAAMsI,KAAUrJ,KAAKkJ,EACtBlJ,KAAKoJ,EAAgBtF,IAAIuF,EAAQ,IAErCrJ,KAAKoB,MAAMgB,UAAUpC,KAAKgJ,EAAiBZ,SAezCkB,YAAMb,GACF,MAAArH,MAAEA,GAAUpB,KAClB,IAAIqB,EAAUmH,EAAUC,GACxB,GAAqB,aAAjBpH,EAAQkI,MACRnI,aAAiBoI,YACjBpI,EAAMqI,gBAAiB,CACvB,MAAMC,QAAiCtI,EAAMqI,gBAC7C,GAAIC,EAKA,OAAOA,EAMf,MAAMvD,EAAkBnG,KAAK2J,YAAY,gBACnCtI,EAAQ4F,QACR,KACF,IACK,IAAA,MAAM2C,KAAM5J,KAAK6J,iBAAiB,oBACnCxI,QAAgBuI,EAAG,CAAEvI,QAASA,EAAQ4F,QAAS7F,MAAAA,IAGvD,MAAO6B,GACCA,GAAAA,aAAe7D,MACf,MAAM,IAAID,EAAa,kCAAmC,CACtD2K,mBAAoB7G,EAAI8G,UAOpC,MAAMC,EAAwB3I,EAAQ4F,QAClC,IACIgD,IAAAA,EAEJA,QAAsBX,MAAMjI,EAA0B,aAAjBA,EAAQkI,UAAsB3F,EAAY5D,KAAK+I,EAAUmB,cAMzF,IAAA,MAAMC,KAAYnK,KAAK6J,iBAAiB,mBACzCI,QAAsBE,EAAS,CAC3B/I,MAAAA,EACAC,QAAS2I,EACTlD,SAAUmD,IAGlB,OAAOA,EAEX,MAAOvC,GAeH,MARIvB,SACMnG,KAAKoK,aAAa,eAAgB,CACpC1C,MAAOA,EACPtG,MAAAA,EACA+E,gBAAiBA,EAAgBc,QACjC5F,QAAS2I,EAAsB/C,UAGjCS,GAaR2C,uBAAiB5B,GACnB,MAAM3B,QAAiB9G,KAAKsJ,MAAMb,GAC5B6B,EAAgBxD,EAASG,QAE/B,OADKjH,KAAKoC,UAAUpC,KAAKuK,SAAS9B,EAAO6B,IAClCxD,EAcL0D,iBAAWC,GACb,MAAMpJ,EAAUmH,EAAUiC,GAC1B,IAAIpE,EACE,MAAAtB,UAAEA,EAAF2F,aAAaA,GAAiB1K,KAAK+I,EACnC4B,QAAyB3K,KAAK4K,YAAYvJ,EAAS,QACnDwJ,EAAoBnH,OAAOoF,OAAOpF,OAAOoF,OAAO,GAAI4B,GAAe,CAAE3F,UAAAA,IAC3EsB,QAAuByE,OAAOhL,MAAM6K,EAAkBE,GASjD,IAAA,MAAMV,KAAYnK,KAAK6J,iBAAiB,4BACzCxD,QACW8D,EAAS,CACZpF,UAAAA,EACA2F,aAAAA,EACArE,eAAAA,EACAhF,QAASsJ,EACTvJ,MAAOpB,KAAKoB,cACTwC,EAEf,OAAOyC,EAiBGhD,eAACoH,EAAK3D,GAChB,MAAMzF,EAAUmH,EAAUiC,GCxP3B,IAAiBM,QAAAA,ED2PF,EC1PX,IAAIjJ,SAASuG,GAAY2C,WAAW3C,EAAS0C,MD2P1CJ,MAAAA,QAAyB3K,KAAK4K,YAAYvJ,EAAS,SAiBrD,IAACyF,EAKD,MAAM,IAAI3H,EAAa,6BAA8B,CACjDkB,KE1RQA,EF0RYsK,EAAiBtK,IEzRlC,IAAImC,IAAIyI,OAAO5K,GAAMK,SAASF,MAG/BA,KAAK0K,QAAQ,IAAIC,OAAQ,IAAGzK,SAASD,UAAW,OAJ1CJ,IAAAA,EF6RhB,MAAM+K,QAAwBpL,KAAKqL,EAA2BvE,GAC1D,IAACsE,EAKD,OAAO,EAEL,MAAArG,UAAEA,EAAF2F,aAAaA,GAAiB1K,KAAK+I,EACnCuC,QAAc7M,KAAKqM,OAAOS,KAAKxG,GAC/ByG,EAAyBxL,KAAK2J,YAAY,kBAC1C8B,EAAcD,QJtR5BnI,eAAsCiI,EAAOjK,EAAS0G,EAAc2C,GAC1DgB,MAAAA,EAAqB7D,EAAYxG,EAAQhB,IAAK0H,GAEpD,GAAI1G,EAAQhB,MAAQqL,EAChB,OAAOJ,EAAMxL,MAAMuB,EAASqJ,GAGhC,MAAMiB,EAAcjI,OAAOoF,OAAOpF,OAAOoF,OAAO,GAAI4B,GAAe,CAAEkB,cAAc,IAC7EC,QAAkBP,EAAM3H,KAAKtC,EAASsK,GAC5C,IAAK,MAAMlG,KAAYoG,EAEfH,GAAAA,IADwB7D,EAAYpC,EAASpF,IAAK0H,GAElD,OAAOuD,EAAMxL,MAAM2F,EAAUiF,GI2QrBoB,CAIRR,EAAOX,EAAiB1D,QAAS,CAAC,mBAAoByD,GACpD,KAKF,UACMY,EAAMS,IAAIpB,EAAkBa,EAAyBJ,EAAgBnE,QAAUmE,GAEzF,MAAO1D,GACCA,GAAAA,aAAiBtI,MAKjB,KAHmB,uBAAfsI,EAAMjI,YGhT1B4D,iBAKI,IAAK,MAAM8G,KAAY7B,QACb6B,IH2SY6B,GAEJtE,EAGT,IAAA,MAAMyC,KAAYnK,KAAK6J,iBAAiB,wBACnCM,EAAS,CACXpF,UAAAA,EACA0G,YAAAA,EACAQ,YAAab,EAAgBnE,QAC7B5F,QAASsJ,EACTvJ,MAAOpB,KAAKoB,QAGpB,OAAO,EAaMiC,kBAAChC,EAASkI,GACjBkB,MAAAA,EAAO,GAAEpJ,EAAQhB,SAASkJ,IAChC,IAAKvJ,KAAK6I,EAAW4B,GAAM,CACnBE,IAAAA,EAAmBtJ,EAClB,IAAA,MAAM8I,KAAYnK,KAAK6J,iBAAiB,sBACzCc,EAAmBnC,QAAgB2B,EAAS,CACxCZ,KAAAA,EACAlI,QAASsJ,EACTvJ,MAAOpB,KAAKoB,MAEZwB,OAAQ5C,KAAK4C,UAGrB5C,KAAK6I,EAAW4B,GAAOE,EAE3B,OAAO3K,KAAK6I,EAAW4B,GAS3Bd,YAAYlK,GACR,IAAK,MAAM4J,KAAUrJ,KAAK+I,EAAUI,QAC5B1J,GAAAA,KAAQ4J,EACR,OAAO,EAGf,OAAO,EAkBOhG,mBAAC5D,EAAMwI,GAChB,IAAA,MAAMkC,KAAYnK,KAAK6J,iBAAiBpK,SAGnC0K,EAASlC,GAYtB4B,kBAAiBpK,GACd,IAAK,MAAM4J,KAAUrJ,KAAK+I,EAAUI,QAChC,GAA4B,mBAAjBE,EAAO5J,GAAsB,CAC9ByG,MAAAA,EAAQlG,KAAKoJ,EAAgBpG,IAAIqG,GACjC6C,EAAoBjE,IACtB,MAAMkE,EAAgBzI,OAAOoF,OAAOpF,OAAOoF,OAAO,GAAIb,GAAQ,CAAE/B,MAAAA,IAGhE,OAAOmD,EAAO5J,GAAM0M,UAElBD,GAiBlB9J,UAAUgG,GAEN,OADApI,KAAKiJ,EAAwBjF,KAAKoE,GAC3BA,EAYM/E,oBACb,IAAI+E,EACJ,KAAQA,EAAUpI,KAAKiJ,EAAwBmD,eACrChE,EAOdiE,UACIrM,KAAKgJ,EAAiBX,QAAQ,MAY5BgD,QAA2BvE,GACzBsE,IAAAA,EAAkBtE,EAClBwF,GAAc,EACb,IAAA,MAAMnC,KAAYnK,KAAK6J,iBAAiB,mBAQrC,GAPJuB,QACWjB,EAAS,CACZ9I,QAASrB,KAAKqB,QACdyF,SAAUsE,EACVhK,MAAOpB,KAAKoB,cACTwC,EACX0I,GAAc,GACTlB,EACD,MAwBR,OArBKkB,GACGlB,GAA8C,MAA3BA,EAAgBhE,SACnCgE,OAAkBxH,GAmBnBwH,GIvef,MAAMmB,UCRN,MAuBIlN,YAAYuJ,EAAU,IAQb7D,KAAAA,UAAYI,EAA0ByD,EAAQ7D,WAQnD/E,KAAKmJ,QAAUP,EAAQO,SAAW,GAQlCnJ,KAAKkK,aAAetB,EAAQsB,aAQ5BlK,KAAK0K,aAAe9B,EAAQ8B,aAqBhC9K,OAAOgJ,GACH,MAAO4D,GAAgBxM,KAAKyM,UAAU7D,GACtC,OAAO4D,EAwBXC,UAAU7D,GAEFA,aAAmBY,aACnBZ,EAAU,CACNxH,MAAOwH,EACPvH,QAASuH,EAAQvH,UAGzB,MAAMD,EAAQwH,EAAQxH,MAChBC,EAAqC,iBAApBuH,EAAQvH,QACzB,IAAIc,QAAQyG,EAAQvH,SACpBuH,EAAQvH,QACRuB,EAAS,WAAYgG,EAAUA,EAAQhG,YAASgB,EAChDjE,EAAU,IAAI+I,EAAgB1I,KAAM,CAAEoB,MAAAA,EAAOC,QAAAA,EAASuB,OAAAA,IACtD4J,EAAexM,KAAK0M,EAAa/M,EAAS0B,EAASD,GAGzD,MAAO,CAACoL,EAFYxM,KAAK2M,EAAeH,EAAc7M,EAAS0B,EAASD,IAI1DiC,QAAC1D,EAAS0B,EAASD,GAE7B0F,IAAAA,QADEnH,EAAQyK,aAAa,mBAAoB,CAAEhJ,MAAAA,EAAOC,QAAAA,IAEpD,IAKI,GAJJyF,QAAiB9G,KAAK4M,EAAQvL,EAAS1B,IAIlCmH,GAA8B,UAAlBA,EAASnF,KACtB,MAAM,IAAIxC,EAAa,cAAe,CAAEkB,IAAKgB,EAAQhB,MAG7D,MAAOqH,GACCA,GAAAA,aAAiBtI,MACZ,IAAA,MAAM+K,KAAYxK,EAAQkK,iBAAiB,mBAE5C,GADA/C,QAAiBqD,EAAS,CAAEzC,MAAAA,EAAOtG,MAAAA,EAAOC,QAAAA,IACtCyF,EACA,MAIR,IAACA,EACD,MAAMY,EAQT,IAAA,MAAMyC,KAAYxK,EAAQkK,iBAAiB,sBAC5C/C,QAAiBqD,EAAS,CAAE/I,MAAAA,EAAOC,QAAAA,EAASyF,SAAAA,IAEhD,OAAOA,EAEL6F,QAAeH,EAAc7M,EAAS0B,EAASD,GACjD,IAAI0F,EACAY,EACA,IACAZ,QAAiB0F,EAErB,MAAO9E,IAKH,UACM/H,EAAQyK,aAAa,oBAAqB,CAC5ChJ,MAAAA,EACAC,QAAAA,EACAyF,SAAAA,UAEEnH,EAAQkN,cAElB,MAAOC,GACCA,aAA0B1N,QAC1BsI,EAAQoF,GAUhB,SAPMnN,EAAQyK,aAAa,qBAAsB,CAC7ChJ,MAAAA,EACAC,QAAAA,EACAyF,SAAAA,EACAY,MAAOA,IAEX/H,EAAQ0M,UACJ3E,EACA,MAAMA,IDlKdrI,YAAYuJ,EAAU,IAClBA,EAAQ7D,UAAYI,EAA2ByD,EAAQ7D,WACvDvF,MAAMoJ,GACN5I,KAAK+M,GAC6B,IAA9BnE,EAAQoE,kBAKZhN,KAAKmJ,QAAQnF,KAAKuI,EAAiBU,wCAS1B5J,QAAChC,EAAS1B,GACbmH,MAAAA,QAAiBnH,EAAQ6K,WAAWnJ,GAC1C,OAAIyF,IAKAnH,EAAQyB,OAAgC,YAAvBzB,EAAQyB,MAAMO,WAClB3B,KAAKkN,EAAe7L,EAAS1B,SAIjCK,KAAKmN,EAAa9L,EAAS1B,IAE1B0D,QAAChC,EAAS1B,GACxB,IAAImH,EACElE,MAAAA,EAAUjD,EAAQiD,QAAU,GAE9B,IAAA5C,KAAK+M,EA+BL,MAAM,IAAI5N,EAAa,yBAA0B,CAC7C4F,UAAW/E,KAAK+E,UAChB1E,IAAKgB,EAAQhB,MAjCQ,CAMzB,MAAM+M,EAAsBxK,EAAOyK,UAC7BC,EAAqBjM,EAAQgM,UAC7BE,GAAuBD,GAAsBA,IAAuBF,EAC1EtG,QAAiBnH,EAAQ2J,MAAM,IAAInH,QAAQd,EAAS,CAChDgM,UAAWC,GAAsBF,KAOjCA,GAAuBG,IACvBvN,KAAKwN,UACmB7N,EAAQ4K,SAASlJ,EAASyF,EAASG,UA+BnE,OAAOH,EAESzD,QAAChC,EAAS1B,GAC1BK,KAAKwN,IACC1G,MAAAA,QAAiBnH,EAAQ2J,MAAMjI,GAIjC,UADoB1B,EAAQ4K,SAASlJ,EAASyF,EAASG,SAIvD,MAAM,IAAI9H,EAAa,0BAA2B,CAC9CkB,IAAKgB,EAAQhB,IACb+G,OAAQN,EAASM,SAGzB,OAAON,EA6BX0G,IACQC,IAAAA,EAAqB,KACrBC,EAA6B,EACjC,IAAK,MAAO/M,EAAO0I,KAAWrJ,KAAKmJ,QAAQwE,UAEnCtE,IAAWkD,EAAiBU,yCAI5B5D,IAAWkD,EAAiBqB,oCAC5BH,EAAqB9M,GAErB0I,EAAOwE,iBACPH,KAG2B,IAA/BA,EACA1N,KAAKmJ,QAAQnF,KAAKuI,EAAiBqB,mCAE9BF,EAA6B,GAA4B,OAAvBD,GAEvCzN,KAAKmJ,QAAQ/E,OAAOqJ,EAAoB,IAKpDlB,EAAiBqB,kCAAoC,CACjDvK,gBAAA,OAAsByD,SAAEA,MACfA,GAAYA,EAASM,QAAU,IACzB,KAEJN,GAGfyF,EAAiBU,uCAAyC,CACtD5J,gBAAA,OAAsByD,SAAEA,KACbA,EAASgH,iBAAmBjH,EAAaC,GAAYA,GE3LpE,MAAMiH,EAWF1O,aAAY0F,UAAEA,EAAFoE,QAAaA,EAAU,GAAvB6D,kBAA2BA,GAAoB,GAAU,IACjEhN,KAAKgO,EAAmB,IAAIjN,IAC5Bf,KAAKiO,EAAoB,IAAIlN,IAC7Bf,KAAKkO,EAA0B,IAAInN,IACnCf,KAAK+I,EAAY,IAAIwD,EAAiB,CAClCxH,UAAWI,EAA2BJ,GACtCoE,QAAS,IACFA,EACH,IAAI7C,EAAuB,CAAEC,mBAAoBvG,QAErDgN,kBAAAA,IAGCmB,KAAAA,QAAUnO,KAAKmO,QAAQC,KAAKpO,MAC5BqO,KAAAA,SAAWrO,KAAKqO,SAASD,KAAKpO,MAMnC2I,eACA,OAAO3I,KAAK+I,EAYhBvE,SAASmJ,GACAW,KAAAA,eAAeX,GACf3N,KAAKuO,IACN9P,KAAK0C,iBAAiB,UAAWnB,KAAKmO,SACtC1P,KAAK0C,iBAAiB,WAAYnB,KAAKqO,UAClCE,KAAAA,GAAkC,GAU/CD,eAAeX,GASLa,MAAAA,EAAkB,GACxB,IAAK,MAAMtM,KAASyL,EAAS,CAEJ,iBAAVzL,EACPsM,EAAgBxK,KAAK9B,GAEhBA,QAA4B0B,IAAnB1B,EAAMwD,UACpB8I,EAAgBxK,KAAK9B,EAAM7B,KAEzB,MAAAoF,SAAEA,EAAFpF,IAAYA,GAAQkF,EAAerD,GACnCuM,EAA6B,iBAAVvM,GAAsBA,EAAMwD,SAAW,SAAW,UAC3E,GAAI1F,KAAKgO,EAAiBjL,IAAI1C,IAC1BL,KAAKgO,EAAiBhL,IAAI3C,KAASoF,EACnC,MAAM,IAAItG,EAAa,wCAAyC,CAC5DuP,WAAY1O,KAAKgO,EAAiBhL,IAAI3C,GACtCsO,YAAalJ,IAGjB,GAAiB,iBAAVvD,GAAsBA,EAAMmL,UAAW,CAC9C,GAAIrN,KAAKkO,EAAwBnL,IAAI0C,IACjCzF,KAAKkO,EAAwBlL,IAAIyC,KAAcvD,EAAMmL,UACrD,MAAM,IAAIlO,EAAa,4CAA6C,CAChEkB,IAAAA,IAGH6N,KAAAA,EAAwBpK,IAAI2B,EAAUvD,EAAMmL,WAIrD,GAFArN,KAAKgO,EAAiBlK,IAAIzD,EAAKoF,GAC/BzF,KAAKiO,EAAkBnK,IAAIzD,EAAKoO,GAC5BD,EAAgBxP,OAAS,EAAG,CAC5B,MAAM4P,EACD,qDAAQJ,EAAgBtJ,KAAK,8EAK9B2J,QAAQC,KAAKF,KAkB7BT,QAAQ/M,GAGJ,OAAOgB,EAAUhB,GAAOiC,UACpB,MAAM0L,EAAsB,IAAIjJ,EAC3B6C,KAAAA,SAASQ,QAAQnF,KAAK+K,GAGtB,IAAA,MAAO1O,EAAKoF,KAAazF,KAAKgO,EAAkB,CAC3CX,MAAAA,EAAYrN,KAAKkO,EAAwBlL,IAAIyC,GAC7CgJ,EAAYzO,KAAKiO,EAAkBjL,IAAI3C,GACvCgB,EAAU,IAAIc,QAAQ9B,EAAK,CAC7BgN,UAAAA,EACA/B,MAAOmD,EACPO,YAAa,sBAEXlN,QAAQC,IAAI/B,KAAK2I,SAAS8D,UAAU,CACtC7J,OAAQ,CAAE6C,SAAAA,GACVpE,QAAAA,EACAD,MAAAA,KAGF,MAAA2E,YAAEA,EAAFC,eAAeA,GAAmB+I,EAIjC,MAAA,CAAEhJ,YAAAA,EAAaC,eAAAA,MAa9BqI,SAASjN,GAGL,OAAOgB,EAAUhB,GAAOiC,UACpB,MAAMiI,QAAc7M,KAAKqM,OAAOS,KAAKvL,KAAK2I,SAAS5D,WAC7CkK,QAAgC3D,EAAM3H,OACtCuL,EAAoB,IAAI3G,IAAIvI,KAAKgO,EAAiBmB,UAClDC,EAAc,GACpB,IAAK,MAAM/N,KAAW4N,EACbC,EAAkBnM,IAAI1B,EAAQhB,aACzBiL,EAAMpD,OAAO7G,GACnB+N,EAAYpL,KAAK3C,EAAQhB,MAM1B,MAAA,CAAE+O,YAAAA,MASjBC,qBACI,OAAOrP,KAAKgO,EAQhBsB,gBACI,MAAO,IAAItP,KAAKgO,EAAiBrK,QAWrC+C,kBAAkBrG,GACRmF,MAAAA,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACjC,OAAAR,KAAKgO,EAAiBhL,IAAIwC,EAAUhF,MAO/C+O,wBAAwB9J,GACpB,OAAOzF,KAAKkO,EAAwBlL,IAAIyC,GAoBtC+J,oBAAcnO,GACVhB,MAAAA,EAAMgB,aAAmBc,QAAUd,EAAQhB,IAAMgB,EACjDoE,EAAWzF,KAAK0G,kBAAkBrG,GACxC,GAAIoF,EAAU,CAEV,aADoBhH,KAAKqM,OAAOS,KAAKvL,KAAK2I,SAAS5D,YACtCjF,MAAM2F,IAY3BgK,wBAAwBpP,GACpB,MAAMoF,EAAWzF,KAAK0G,kBAAkBrG,GACpC,IAACoF,EACD,MAAM,IAAItG,EAAa,oBAAqB,CAAEkB,IAAAA,IAElD,OAAQuI,IACJA,EAAQvH,QAAU,IAAIc,QAAQ9B,GAC9BuI,EAAQhG,OAASc,OAAOoF,OAAO,CAAErD,SAAAA,GAAYmD,EAAQhG,QAC9C5C,KAAK2I,SAAS/I,OAAOgJ,KCtRxC,IAAIrC,EAKG,MAAMmJ,EAAgC,KACpCnJ,IACDA,EAAqB,IAAIwH,GAEtBxH,GCGX,MAAMoJ,UAAsB9P,EAiBxBR,YAAYkH,EAAoBqC,GAe5BpJ,OAdc,EAAG6B,QAAAA,MACb,MAAMuO,EAAkBrJ,EAAmB8I,qBACtC,IAAA,MAAMQ,KCtBhB,UAAgCxP,GAAKyP,4BAAEA,EAA8B,CAAC,QAAS,YAA1CC,eAAuDA,EAAiB,aAAxEC,UAAsFA,GAAY,EAAlGC,gBAAwGA,GAAqB,IAC/JzK,MAAAA,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACxCgF,EAAU0K,KAAO,SACX1K,EAAUhF,KAChB,MAAM2P,ECHH,SAAmC3K,EAAWsK,EAA8B,IAG/E,IAAK,MAAMM,IAAa,IAAI5K,EAAUK,aAAalC,QAC3CmM,EAA4BO,MAAMjQ,GAAWA,EAAOkQ,KAAKF,MACzD5K,EAAUK,aAAaqC,OAAOkI,GAGtC,OAAO5K,EDLyB+K,CAA0B/K,EAAWsK,GAEjEC,SADEI,EAAwB3P,KAC1BuP,GAAkBI,EAAwBK,SAASC,SAAS,KAAM,CAC5DC,MAAAA,EAAe,IAAIlO,IAAI2N,EAAwB3P,MACrDkQ,EAAaF,UAAYT,QACnBW,EAAalQ,KAEvB,GAAIwP,EAAW,CACLW,MAAAA,EAAW,IAAInO,IAAI2N,EAAwB3P,MACjDmQ,EAASH,UAAY,cACfG,EAASnQ,KAEnB,GAAIyP,EAAiB,CACXW,MAAAA,EAAiBX,EAAgB,CAAE5P,IAAKmF,IAC9C,IAAK,MAAMqL,KAAgBD,QACjBC,EAAarQ,MDGOsQ,CAAsBzP,EAAQhB,IAAKuI,GAAU,CACnE,MAAMnD,EAAWmK,EAAgB5M,IAAI6M,GACrC,GAAIpK,EAAU,CAEH,MAAA,CAAEA,SAAAA,EAAU4H,UADD9G,EAAmBgJ,wBAAwB9J,QAS5Dc,EAAmBoC,WG5BxC,SAASoI,EAASnI,GACRrC,MAAAA,EAAqBmJ,KCK/B,SAAuBsB,EAASrR,EAASI,GACrC,IAAI8C,EACJ,GAAuB,iBAAZmO,EAAsB,CACvBC,MAAAA,EAAa,IAAIzO,IAAIwO,EAAStQ,SAASF,MAkC7CqC,EAAQ,IAAIhD,GAZU,EAAGQ,IAAAA,KASdA,EAAIG,OAASyQ,EAAWzQ,MAGFb,EAASI,QAEzC,GAAIiR,aAAmB7F,OAExBtI,EAAQ,IAAI1C,EAAY6Q,EAASrR,EAASI,QAEzC,GAAuB,mBAAZiR,EAEZnO,EAAQ,IAAIhD,EAAMmR,EAASrR,EAASI,OAEnC,CAAA,KAAIiR,aAAmBnR,GAIxB,MAAM,IAAIV,EAAa,yBAA0B,CAC7C+R,WAAY,kBACZC,SAAU,gBACVf,UAAW,YANfvN,EAAQmO,GzB7DP3M,IACDA,EAAgB,IAAIxD,EAEpBwD,EAAcnD,mBACdmD,EAAc5C,oBAEX4C,GyBiEON,cAAclB,GD7D5BkB,CADsB,IAAI4L,EAAcpJ,EAAoBqC,uBEHhE,SAA0B+E,EAAS/E,ICInC,SAAkB+E,GACa+B,IACRlL,SAASmJ,GDL5BnJ,CAASmJ,GACToD,EAASnI"}\ 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 c2d7ef79e..653abcb90 100644--- a/src/main/webapp/js/viewer-static.min.js+++ b/src/main/webapp/js/viewer-static.min.js@@ -29,7 +29,7 @@ b),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io"))}})();"1"==urlPa"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.2.3",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.2.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/"),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||@@ -60,7 +60,7 @@ mxRectangle.prototype.equals=function(a){return null!=a&&a.x==this.x&&a.y==this.var mxEffects={animateChanges:function(a,b,c){var d=0,e=function(){for(var g=!1,k=0;k<b.length;k++){var l=b[k];if(l instanceof mxGeometryChange||l instanceof mxTerminalChange||l instanceof mxValueChange||l instanceof mxChildChange||l instanceof mxStyleChange){var m=a.getView().getState(l.cell||l.child,!1);if(null!=m)if(g=!0,l.constructor!=mxGeometryChange||a.model.isEdge(l.cell))mxUtils.setOpacity(m.shape.node,100*d/10);else{var n=a.getView().scale,p=(l.geometry.x-l.previous.x)*n,q=(l.geometry.y-l.previous.y)*n,r=(l.geometry.width-l.previous.width)*n;n*=l.geometry.height-l.previous.height;0==d?(m.x-=p,m.y-=q,m.width-=r,m.height-=n):(m.x+=p/10,m.y+=q/10,m.width+=r/10,m.height+=n/10);a.cellRenderer.redraw(m);mxEffects.cascadeOpacity(a,l.cell,100*d/10)}}}10>d&&g?(d++,window.setTimeout(e,f)):null!=c&&c()},f=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;e<d;e++){var f=a.model.getChildAt(b,e),g=a.getView().getState(f);null!=g&&(mxUtils.setOpacity(g.shape.node,c),mxEffects.cascadeOpacity(a,f,c))}b=a.model.getEdges(b);if(null!=b)for(e=0;e<b.length;e++)d=a.getView().getState(b[e]),null!=d&&mxUtils.setOpacity(d.shape.node,c)},fadeOut:function(a,b,c,d,e,f){d=d||40;e=e||30;var g=b||100;mxUtils.setOpacity(a,g);if(f||null==f){var k=function(){g=Math.max(g-d,0);mxUtils.setOpacity(a,g);0<g?window.setTimeout(k,e):(a.style.visibility="hidden",c&&a.parentNode&&a.parentNode.removeChild(a))};window.setTimeout(k,e)}else a.style.visibility="hidden",c&&a.parentNode&&a.parentNode.removeChild(a)}},-mxUtils={errorResource:"none"!=mxClient.language?"error":"",closeResource:"none"!=mxClient.language?"close":"",errorImage:mxClient.imageBasePath+"/error.gif",lightDarkColorSupported:function(){var a=document.createElement("div");a.style.color="light-dark(white, black)";a=a.style.color;null!=a&&"generic-light-dark("===a.substring(0,19)&&(a=a.replace("generic-light-dark","light-dark"));return"light-dark(white, black)"===a}(),preferDarkColor:!1,lightDarkColorRegex:/light-dark\(\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,+mxUtils={errorResource:"none"!=mxClient.language?"error":"",closeResource:"none"!=mxClient.language?"close":"",errorImage:mxClient.imageBasePath+"/error.gif",lightDarkColorSupported:function(){var a=document.createElement("div");a.style.color="light-dark(white, black)";a=a.style.color;null!=a&&"generic-light-dark("===a.substring(0,19)&&(a=a.replace("generic-light-dark","light-dark"));return"light-dark(white, black)"===a}(),preferDarkColor:!1,lightDarkColorRegex:/light-dark\(\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,varColorRegex:/^var\([^)]+\)/,hexColorRegex:/(^#[a-zA-Z0-9]*$)/,rgbaColorRegex:/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i,canvasContext:function(){var a=null;try{a=document.createElement("canvas").getContext("2d")}catch(b){}return a}(),validInvalidColor:"rgba(0, 0, 0, 0)",normalizedValidInvalidColor:"rgba(0,0,0,0)",removeCursors:function(a){null!=a.style&&(a.style.cursor="");a=a.childNodes;if(null!=a)for(var b=a.length,c=0;c<b;c+=1)mxUtils.removeCursors(a[c])},getCurrentStyle:function(){return mxClient.IS_IE&&(null==document.documentMode||9>document.documentMode)?function(a){return null!=a?a.currentStyle:null}:function(a){return null!=a?window.getComputedStyle(a,""):null}}(),getCssFontFamily:function(a){if("string"===typeof a){a=a.split(",");for(var b=0;b<a.length;b++)a[b]=mxUtils.trim(a[b]),'"'==a[b].charAt(0)&&'"'==a[b].charAt(a[b].length-1)&&(a[b]=a[b].substring(1,a[b].length-1));a=a.join(", ")}return a},parseCssFontFamily:function(a,b){if("string"===typeof a){a=a.split(",");for(var c=0;c<a.length;c++){a[c]=mxUtils.trim(a[c]);var d=2<a[c].length&&'"'==a[c].charAt(a[c].length-1)&&'"'==a[c].charAt(0);d&&(a[c]=a[c].substring(1,a[c].length-1));b&&(a[c]=mxUtils.htmlEntities(a[c]));if(d||0<=a[c].indexOf(" "))a[c]='"'+a[c]+'"'}a=a.join(", ")}return a},parseCssNumber:function(a){"thin"==a?a="2":"medium"==a?a="4":"thick"==a&&(a="6");a=parseFloat(a);isNaN(a)&&(a=0);return a},setPrefixedStyle:function(){var a=null;mxClient.IS_OT?a="O":mxClient.IS_SF||mxClient.IS_GC?a="Webkit":mxClient.IS_MT?a="Moz":mxClient.IS_IE&&@@ -87,19 +87,19 @@ b,c-e)+"px")},load:function(a){a=new mxXmlRequest(a,null,"GET",!1);a.send();retup||299<p?g():(e[m]=n,d--,0==d&&b(e))},g)})(a[k],k);0==d&&b(e)},post:function(a,b,c,d){return(new mxXmlRequest(a,b)).send(c,d)},submit:function(a,b,c,d){return(new mxXmlRequest(a,b)).simulate(c,d)},loadInto:function(a,b,c){mxClient.IS_IE?b.onreadystatechange=function(){4==b.readyState&&c()}:b.addEventListener("load",c,!1);b.load(a)},getValue:function(a,b,c){a=null!=a?a[b]:null;null==a&&(a=c);return a},getColorValue:function(a,b,c){a=null!=a?a[b]:null;if(null==a||"default"==a)a=c;return a},getNumber:function(a,b,c){a=null!=a?a[b]:null;null==a&&(a=c||0);return Number(a)},isLightDarkColor:function(a){return"string"===typeof a&&"light-dark"==mxUtils.ltrim(a).substring(0,10)},isVarColor:function(a){return mxUtils.varColorRegex.test(a)},isHexColor:function(a){return mxUtils.hexColorRegex.test(a)},isRgbColor:function(a){return mxUtils.rgbaColorRegex.test(a)},isValidColor:function(a){if(null==a)return!1;a=String(a).replace(/\s/g,"");if(a.toLowerCase()==mxUtils.normalizedValidInvalidColor)return!0;mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor;mxUtils.canvasContext.fillStyle=a;return mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor},isDarkColor:function(a){a=mxUtils.parseColor(a);return null!=a?128>.213*a.r+.715*a.g+.072*a.b:!1},parseLightDarkColor:function(a,b,c){var d=a,e=null;null!=a&&(a=a.match(mxUtils.lightDarkColorRegex))&&3===a.length&&(d=mxUtils.trim(a[1]),e=mxUtils.trim(a[2]));null==e&&(c||mxUtils.isVarColor(d))&&(e=d);e=null!=e?e:null!=b?b:mxUtils.getInverseColor(d);return{light:d,dark:e}},-getInverseColor:function(a,b,c){function d(m){return Math.round(b/100*(255-m)+m*(1-b/100))}function e(m){return Math.round(Math.max(0,Math.min(255,m)))}c=null!=c?c:180;b=null!=b?b:93;var f=0,g=0,k=0;if("transparent"==a.toLowerCase())return a;k=mxUtils.parseColor(a);if(null==k)return a;f=k.r;g=k.g;k=k.b;f=d(f);g=d(g);k=d(k);a=[1,0,0,0,1,0,0,0,1];var l=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);a[0]=.2126+.7874*l-.2126*c;a[1]=.7152-.7152*l-.7152*c;a[2]=.0722-.0722*l+.9278*c;a[3]=.2126-.2126*-l+.143*c;a[4]=.7152+(1-.7152)*l+.14*c;a[5]=.0722-.0722*l-.283*c;a[6]=.2126-.2126*l-.7874*c;a[7]=.7152-.7152*l+.7152*c;a[8]=.0722+.9278*l+.0722*c;c=e(a[0]*f+a[1]*g+a[2]*k);l=e(a[3]*f+a[4]*g+a[5]*k);f=e(a[6]*f+a[7]*g+a[8]*k);return"#"+(16777216|c<<16|l<<8|f).toString(16).slice(1)},addAlphaToColor:function(a,b){null!=b&&null!=a&&"transparent"!=a&&(a=mxUtils.parseColor(a),a="rgba("+a.r+","+a.g+","+a.b+","+b+")");return a},getLightDarkColor:function(a,b,c,d){var e={light:"transparent",dark:"transparent",-cssText:"transparent"};null!=a&&a!=mxConstants.NONE&&("string"===typeof a?(a=mxUtils.parseLightDarkColor(a,c,d),e.light=mxUtils.addAlphaToColor(a.light,b),e.dark=mxUtils.addAlphaToColor(a.dark,b),e.cssText=mxUtils.lightDarkColorSupported?e.light==e.dark?e.light:"light-dark("+e.light+", "+e.dark+")":mxUtils.preferDarkColor?e.dark:e.light):(e.light=a,e.dark=a,e.cssText=a));return e},invertLightDarkColor:function(a){var b={};b.light=a.dark;b.dark=a.light;b.cssText=b.light==b.dark?b.light:"light-dark("+-b.light+", "+b.dark+")";return b},getColor:function(a,b,c){a=null!=a?a[b]:null;null==a?a=c:a==mxConstants.NONE&&(a=null);return a},isEmptyObject:function(a){for(var b in a)return!1;return!0},clone:function(a,b,c){c=null!=c?c:!1;var d=null;if(null!=a&&"function"==typeof a.constructor)if(a.constructor===Element)d=a.cloneNode(null!=c?!c:!1);else{d=new a.constructor;for(var e in a)e!=mxObjectIdentity.FIELD_NAME&&(null==b||0>mxUtils.indexOf(b,e))&&(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},-equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c<a.length;c++)if(null!=a[c]&&null==b[c]||null==a[c]&&null!=b[c]||null!=a[c]&&null!=b[c]&&(a[c].x!=b[c].x||a[c].y!=b[c].y))return!1;return!0},equalEntries:function(a,b){var c=0;if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b){for(var d in b)c++;for(d in a)if(c--,!(mxUtils.isNaN(a[d])&&mxUtils.isNaN(b[d])||-a[d]==b[d]))return!1}return 0==c},removeDuplicates:function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},toString:function(a){var b="",c;for(c in a)try{if(null==a[c])b+=c+" = [null]\n";else if("function"==typeof a[c])b+=c+" => [Function]\n";else if("object"==typeof a[c]){var d=-mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return A;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);A=Math.sin(e*Math.PI/180);e=p*m+A*n;m=-1*A*m+p*n;n=e*e;var q=m*m,r=c*c,t=d*d,u=n/r+q/t;1<u?(c*=Math.sqrt(u),d*=Math.sqrt(u),f=0):(u=1,f===g&&-(u=-1),f=u*Math.sqrt((r*t-r*q-t*n)/(r*q+t*n)));n=f*c*m/d;q=-1*f*d*e/c;k=p*n-A*q+k/2;l=A*n+p*q+l/2;r=Math.atan2((m-q)/d,(e-n)/c)-Math.atan2(0,1);f=0<=r?r:2*Math.PI+r;r=Math.atan2((-m-q)/d,(-e-n)/c)-Math.atan2((m-q)/d,(e-n)/c);e=0<=r?r:2*Math.PI+r;0==g&&0<e?e-=2*Math.PI:0!=g&&0>e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=A;d*=A;var v=Math.cos(f),y=Math.sin(f);q=-m*(n*y+d*v);r=-m*(c*y-p*v);for(var A=[],z=0;z<g;++z){f+=e;v=-Math.cos(f);y=Math.sin(f);t=n*v-d*y+k;u=c*v+p*y+l;var C=-m*(n*y+d*v);v=-m*(c*y-p*v);y=6*z;A[y]=Number(q+a);A[y+1]=Number(r+b);A[y+2]=Number(t-C+a);A[y+3]=Number(u-v+b);A[y+4]=Number(t+a);A[y+5]=Number(u+b);q=t+C;r=u+v}return A},getBoundingBox:function(a,b,c){var d=null;if(null!=a&&null!=b&&0!=b){b=mxUtils.toRadians(b);d=Math.cos(b);var e=Math.sin(b);c=null!=c?c:new mxPoint(a.x+a.width/2,a.y+a.height/2);var f=new mxPoint(a.x,a.y);b=new mxPoint(a.x+a.width,a.y);var g=new mxPoint(b.x,a.y+a.height);a=-new mxPoint(a.x,g.y);f=mxUtils.getRotatedPoint(f,d,e,c);b=mxUtils.getRotatedPoint(b,d,e,c);g=mxUtils.getRotatedPoint(g,d,e,c);a=mxUtils.getRotatedPoint(a,d,e,c);d=new mxRectangle(f.x,f.y,0,0);d.add(new mxRectangle(b.x,b.y,0,0));d.add(new mxRectangle(g.x,g.y,0,0));d.add(new mxRectangle(a.x,a.y,0,0))}return d},getRotatedPoint:function(a,b,c,d){d=null!=d?d:new mxPoint;var e=a.x-d.x;a=a.y-d.y;return new mxPoint(e*b-a*c+d.x,a*b+e*c+d.y)},getPortConstraints:function(a,b,c,d){b=mxUtils.getValue(a.style,-mxConstants.STYLE_PORT_CONSTRAINT,mxUtils.getValue(b.style,c?mxConstants.STYLE_SOURCE_PORT_CONSTRAINT:mxConstants.STYLE_TARGET_PORT_CONSTRAINT,null));if(null==b)return d;d=b.toString();b=mxConstants.DIRECTION_MASK_NONE;c=0;1==mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT_ROTATION,0)&&(c=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0));a=0;45<c?(a=1,135<=c&&(a=2)):-45>c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_NORTH;-break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 1:b|=-mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<+getInverseColor:function(a,b,c){function d(n){return Math.round(b/100*(255-n)+n*(1-b/100))}function e(n){return Math.round(Math.max(0,Math.min(255,n)))}c=null!=c?c:180;b=null!=b?b:93;var f=0,g=0,k=0,l=1;if("transparent"==a.toLowerCase())return a;l=mxUtils.parseColor(a);if(null==l)return a;f=l.r;g=l.g;k=l.b;l=l.a;f=d(f);g=d(g);k=d(k);a=[1,0,0,0,1,0,0,0,1];var m=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);a[0]=.2126+.7874*m-.2126*c;a[1]=.7152-.7152*m-.7152*c;a[2]=.0722-.0722*m+.9278*c;a[3]=.2126-+.2126*m+.143*c;a[4]=.7152+(1-.7152)*m+.14*c;a[5]=.0722-.0722*m-.283*c;a[6]=.2126-.2126*m-.7874*c;a[7]=.7152-.7152*m+.7152*c;a[8]=.0722+.9278*m+.0722*c;c=e(a[0]*f+a[1]*g+a[2]*k);m=e(a[3]*f+a[4]*g+a[5]*k);f=e(a[6]*f+a[7]*g+a[8]*k);return"#"+(16777216|c<<16|m<<8|f).toString(16).slice(1)+(1>l?("0"+Math.round(255*l).toString(16)).slice(-2):"")},addAlphaToColor:function(a,b){null!=b&&null!=a&&"transparent"!=a&&(a=mxUtils.parseColor(a),a="rgba("+a.r+","+a.g+","+a.b+","+a.a*b+")");return a},getLightDarkColor:function(a,+b,c,d){var e={light:"transparent",dark:"transparent",cssText:"transparent"};null!=a&&a!=mxConstants.NONE&&("string"===typeof a?(a=mxUtils.parseLightDarkColor(a,c,d),e.light=mxUtils.addAlphaToColor(a.light,b),e.dark=mxUtils.addAlphaToColor(a.dark,b),e.cssText=mxUtils.lightDarkColorSupported?e.light==e.dark?e.light:"light-dark("+e.light+", "+e.dark+")":mxUtils.preferDarkColor?e.dark:e.light):(e.light=a,e.dark=a,e.cssText=a));return e},invertLightDarkColor:function(a){var b={};b.light=a.dark;b.dark=+a.light;b.cssText=b.light==b.dark?b.light:"light-dark("+b.light+", "+b.dark+")";return b},getColor:function(a,b,c){a=null!=a?a[b]:null;null==a?a=c:a==mxConstants.NONE&&(a=null);return a},isEmptyObject:function(a){for(var b in a)return!1;return!0},clone:function(a,b,c){c=null!=c?c:!1;var d=null;if(null!=a&&"function"==typeof a.constructor)if(a.constructor===Element)d=a.cloneNode(null!=c?!c:!1);else{d=new a.constructor;for(var e in a)e!=mxObjectIdentity.FIELD_NAME&&(null==b||0>mxUtils.indexOf(b,e))&&+(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c<a.length;c++)if(null!=a[c]&&null==b[c]||null==a[c]&&null!=b[c]||null!=a[c]&&null!=b[c]&&(a[c].x!=b[c].x||a[c].y!=b[c].y))return!1;return!0},equalEntries:function(a,b){var c=0;if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b){for(var d in b)c++;+for(d in a)if(c--,!(mxUtils.isNaN(a[d])&&mxUtils.isNaN(b[d])||a[d]==b[d]))return!1}return 0==c},removeDuplicates:function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},toString:function(a){var b="",c;for(c in a)try{if(null==a[c])b+=c+" = [null]\n";else if("function"==typeof a[c])b+=+c+" => [Function]\n";else if("object"==typeof a[c]){var d=mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return A;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);A=Math.sin(e*Math.PI/180);e=p*m+A*n;m=-1*A*m+p*n;n=e*e;var q=m*m,r=c*c,t=d*d,u=n/r++q/t;1<u?(c*=Math.sqrt(u),d*=Math.sqrt(u),f=0):(u=1,f===g&&(u=-1),f=u*Math.sqrt((r*t-r*q-t*n)/(r*q+t*n)));n=f*c*m/d;q=-1*f*d*e/c;k=p*n-A*q+k/2;l=A*n+p*q+l/2;r=Math.atan2((m-q)/d,(e-n)/c)-Math.atan2(0,1);f=0<=r?r:2*Math.PI+r;r=Math.atan2((-m-q)/d,(-e-n)/c)-Math.atan2((m-q)/d,(e-n)/c);e=0<=r?r:2*Math.PI+r;0==g&&0<e?e-=2*Math.PI:0!=g&&0>e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=A;d*=A;var v=Math.cos(f),y=Math.sin(f);q=-m*+(n*y+d*v);r=-m*(c*y-p*v);for(var A=[],z=0;z<g;++z){f+=e;v=Math.cos(f);y=Math.sin(f);t=n*v-d*y+k;u=c*v+p*y+l;var x=-m*(n*y+d*v);v=-m*(c*y-p*v);y=6*z;A[y]=Number(q+a);A[y+1]=Number(r+b);A[y+2]=Number(t-x+a);A[y+3]=Number(u-v+b);A[y+4]=Number(t+a);A[y+5]=Number(u+b);q=t+x;r=u+v}return A},getBoundingBox:function(a,b,c){var d=null;if(null!=a&&null!=b&&0!=b){b=mxUtils.toRadians(b);d=Math.cos(b);var e=Math.sin(b);c=null!=c?c:new mxPoint(a.x+a.width/2,a.y+a.height/2);var f=new mxPoint(a.x,a.y);b=new mxPoint(a.x++a.width,a.y);var g=new mxPoint(b.x,a.y+a.height);a=new mxPoint(a.x,g.y);f=mxUtils.getRotatedPoint(f,d,e,c);b=mxUtils.getRotatedPoint(b,d,e,c);g=mxUtils.getRotatedPoint(g,d,e,c);a=mxUtils.getRotatedPoint(a,d,e,c);d=new mxRectangle(f.x,f.y,0,0);d.add(new mxRectangle(b.x,b.y,0,0));d.add(new mxRectangle(g.x,g.y,0,0));d.add(new mxRectangle(a.x,a.y,0,0))}return d},getRotatedPoint:function(a,b,c,d){d=null!=d?d:new mxPoint;var e=a.x-d.x;a=a.y-d.y;return new mxPoint(e*b-a*c+d.x,a*b+e*c+d.y)},getPortConstraints:function(a,+b,c,d){b=mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT,mxUtils.getValue(b.style,c?mxConstants.STYLE_SOURCE_PORT_CONSTRAINT:mxConstants.STYLE_TARGET_PORT_CONSTRAINT,null));if(null==b)return d;d=b.toString();b=mxConstants.DIRECTION_MASK_NONE;c=0;1==mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT_ROTATION,0)&&(c=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0));a=0;45<c?(a=1,135<=c&&(a=2)):-45>c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=+mxConstants.DIRECTION_MASK_NORTH;break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;+break;case 1:b|=mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<1;b|=(a&mxConstants.DIRECTION_MASK_SOUTH)>>1;return b|(a&mxConstants.DIRECTION_MASK_EAST)>>3},findNearestSegment:function(a,b,c){var d=-1;if(0<a.absolutePoints.length)for(var e=a.absolutePoints[0],f=null,g=1;g<a.absolutePoints.length;g++){var k=a.absolutePoints[g];e=mxUtils.ptSegDistSq(e.x,e.y,k.x,k.y,b,c);if(null==f||e<f)f=e,d=g-1;e=k}return d},getDirectedBounds:function(a,b,c,d,e){var f=mxUtils.getValue(c,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);d=null!=d?d:mxUtils.getValue(c,mxConstants.STYLE_FLIPH,!1);e=null!=e?e:mxUtils.getValue(c,mxConstants.STYLE_FLIPV,!1);b.x=Math.round(Math.max(0,Math.min(a.width,b.x)));b.y=Math.round(Math.max(0,Math.min(a.height,b.y)));b.width=Math.round(Math.max(0,Math.min(a.width,b.width)));b.height=Math.round(Math.max(0,Math.min(a.height,b.height)));if(e&&(f==mxConstants.DIRECTION_SOUTH||f==mxConstants.DIRECTION_NORTH)||d&&(f==mxConstants.DIRECTION_EAST||f==mxConstants.DIRECTION_WEST))c=b.x,b.x=b.width,b.width=c;if(d&&(f==mxConstants.DIRECTION_SOUTH||f==mxConstants.DIRECTION_NORTH)||e&&(f==mxConstants.DIRECTION_EAST||f==mxConstants.DIRECTION_WEST))c=b.y,b.y=b.height,b.height=c;d=mxRectangle.fromRectangle(b);f==mxConstants.DIRECTION_SOUTH?(d.y=b.x,d.x=b.height,d.width=b.y,d.height=b.width):f==mxConstants.DIRECTION_WEST?(d.y=b.height,d.x=b.width,d.width=b.x,d.height=b.y):f==mxConstants.DIRECTION_NORTH&&(d.y=b.width,d.x=b.y,d.width=b.height,d.height=b.x);return new mxRectangle(a.x+d.x,a.y+d.y,a.width-d.width-d.x,a.height-d.height-d.y)},getPerimeterPoint:function(a,b,c){for(var d=@@ -115,43 +115,43 @@ null},ptSegDistSq:function(a,b,c,d,e,f){c-=a;d-=b;e-=a;f-=b;0>=e*c+f*d?c=0:(e=c-b,c){mxEffects.cascadeOpacity.apply(this,arguments)},fadeOut:function(a,b,c,d,e,f){mxEffects.fadeOut.apply(this,arguments)},setOpacity:function(a,b){mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?a.style.filter=100<=b?"":"alpha(opacity="+b+")":a.style.opacity=b/100},createElementNs:function(a,b,c){if(null!=a.createElementNS)return a.createElementNS(b,c);a=a.createElement(c);null!=namespace&&a.setAttribute("xmlns",b);return a},createImage:function(a){var b=document.createElement("img");b.setAttribute("src",a);b.setAttribute("border","0");return b},sortCells:function(a,b){b=null!=b?b:!0;var c=new mxDictionary;a.sort(function(d,e){var f=c.get(d);null==f&&(f=mxCellPath.create(d).split(mxCellPath.PATH_SEPARATOR),c.put(d,f));d=c.get(e);null==d&&(d=mxCellPath.create(e).split(mxCellPath.PATH_SEPARATOR),c.put(e,d));e=mxCellPath.compare(f,d);return 0==e?0:0<e==b?1:-1});return a},getStylename:function(a){return null!=a&&(a=a.split(";")[0],0>a.indexOf("="))?a:""},getStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0>a[c].indexOf("=")&&b.push(a[c])}return b},indexOfStylename:function(a,b){if(null!=a&&null!=b){a=a.split(";");for(var c=0,d=0;d<a.length;d++){if(a[d]==b)return c;c+=a[d].length+1}}return-1},addStylename:function(a,b){0>mxUtils.indexOfStylename(a,b)&&(null==a?a="":0<a.length&&";"!=a.charAt(a.length-1)&&(a+=";"),a+=b);return a},removeStylename:function(a,b){var c=[];if(null!=a){a=a.split(";");for(var d=0;d<a.length;d++)a[d]!=b&&c.push(a[d])}return c.join(";")},-removeAllStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0<=a[c].indexOf("=")&&b.push(a[c])}return b.join(";")},setCellStyles:function(a,b,c,d){if(null!=b&&0<b.length){a.beginUpdate();try{for(var e=0;e<b.length;e++)if(null!=b[e]){var f=mxUtils.setStyle(a.getStyle(b[e]),c,d);a.setStyle(b[e],f)}}finally{a.endUpdate()}}},parseColor:function(a,b){b=null!=b?b:1;var c=null;if(null!=a&&a!=mxConstants.NONE){if(mxUtils.isRgbColor(a)){a=a.replace(/[^\d,]/g,"").split(",");+removeAllStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0<=a[c].indexOf("=")&&b.push(a[c])}return b.join(";")},setCellStyles:function(a,b,c,d){if(null!=b&&0<b.length){a.beginUpdate();try{for(var e=0;e<b.length;e++)if(null!=b[e]){var f=mxUtils.setStyle(a.getStyle(b[e]),c,d);a.setStyle(b[e],f)}}finally{a.endUpdate()}}},parseColor:function(a,b){b=null!=b?b:1;var c=null;if(null!=a&&a!=mxConstants.NONE){if(mxUtils.isRgbColor(a)){a=a.replace(/[^\d,.]/g,"").split(",");c=parseInt(a[0]);var d=parseInt(a[1]),e=parseInt(a[2]);4==a.length&&(b=parseFloat(a[3]))}else mxUtils.isHexColor(a)||(a=mxUtils.color2hex(a)),a=a.substring(1),c=parseInt(a.substr(0,2),16),d=parseInt(a.substr(2,2),16),e=parseInt(a.substr(4,2),16),6<a.length&&(b=parseInt(a.substr(6,2),16)/255);c={r:c,g:d,b:e,a:b}}return c},hex2rgb:function(a){var b=mxUtils.parseColor(a);null!=b&&(a="rgb("+b.r+", "+b.g+", "+b.b+")");return a},hex2rgba:function(a,b){b=mxUtils.parseColor(a,b);null!=b&&(a="rgba("+b.r+", "+-b.g+", "+b.b+", "+b.a+")");return a},rgba2hex:function(a){var b=mxUtils.parseColor(a);return null!=b?"#"+("0"+b.r.toString(16)).slice(-2)+("0"+b.g.toString(16)).slice(-2)+("0"+b.b.toString(16)).slice(-2):a},color2hex:function(a,b){b=null!=b?b:"#000000";try{null!=a&&(a=String(a).replace(/\s/g,""),a.toLowerCase()==mxUtils.normalizedValidInvalidColor?b="#000000":(mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor,mxUtils.canvasContext.fillStyle=a,mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor?-b=mxUtils.canvasContext.fillStyle:1<a.length&&"#"==a.charAt(0)&&(mxUtils.canvasContext.fillStyle=a.substring(1),mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor&&(b=mxUtils.canvasContext.fillStyle))))}catch(c){}return b},setStyle:function(a,b,c){var d=null!=c&&("undefined"==typeof c.length||0<c.length);if(null==a||0==a.length)d&&(a=b+"="+c+";");else if(a.substring(0,b.length+1)==b+"="){var e=a.indexOf(";");a=d?b+"="+c+(0>e?";":a.substring(e)):0>e||e==a.length-1?"":a.substring(e+1)}else{var f=-a.indexOf(";"+b+"=");0>f?d&&(d=";"==a.charAt(a.length-1)?"":";",a=a+d+b+"="+c+";"):(e=a.indexOf(";",f+1),a=d?a.substring(0,f+1)+b+"="+c+(0>e?";":a.substring(e)):a.substring(0,f)+(0>e?";":a.substring(e)))}return a},setCellStyleFlags:function(a,b,c,d,e){if(null!=b&&0<b.length){a.beginUpdate();try{for(var f=0;f<b.length;f++)if(null!=b[f]){var g=mxUtils.setStyleFlag(a.getStyle(b[f]),c,d,e);a.setStyle(b[f],g)}}finally{a.endUpdate()}}},setStyleFlag:function(a,b,c,d){if(null==a||0==a.length)a=d||null==d?-b+"="+c:b+"=0";else{var e=a.indexOf(b+"=");if(0>e)e=";"==a.charAt(a.length-1)?"":";",a=d||null==d?a+e+b+"="+c:a+e+b+"=0";else{var f=a.indexOf(";",e),g=0>f?a.substring(e+b.length+1):a.substring(e+b.length+1,f);g=null==d?parseInt(g)^c:d?parseInt(g)|c:parseInt(g)&~c;a=a.substring(0,e)+b+"="+g+(0<=f?a.substring(f):"")}}return a},getAlignmentAsPoint:function(a,b){var c=-.5,d=-.5;a==mxConstants.ALIGN_LEFT?c=0:a==mxConstants.ALIGN_RIGHT&&(c=-1);b==mxConstants.ALIGN_TOP?d=0:b==mxConstants.ALIGN_BOTTOM&&(d=--1);return new mxPoint(c,d)},getSizeForString:function(a,b,c,d,e){b=null!=b?b:mxConstants.DEFAULT_FONTSIZE;c=null!=c?c:mxConstants.DEFAULT_FONTFAMILY;var f=document.createElement("div");f.style.fontFamily=c;f.style.fontSize=Math.round(b)+"px";f.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?b*mxConstants.LINE_HEIGHT+"px":mxConstants.LINE_HEIGHT*mxSvgCanvas2D.prototype.lineHeightCorrection;null!=e&&((e&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(f.style.fontWeight="bold"),(e&mxConstants.FONT_ITALIC)==-mxConstants.FONT_ITALIC&&(f.style.fontStyle="italic"),b=[],(e&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&b.push("underline"),(e&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&b.push("line-through"),0<b.length&&(f.style.textDecoration=b.join(" ")));f.style.position="absolute";f.style.visibility="hidden";f.style.display="inline-block";f.style.zoom="1";null!=d?(f.style.width=d+"px",f.style.whiteSpace="normal"):f.style.whiteSpace="nowrap";f.innerHTML=a;document.body.appendChild(f);-a=new mxRectangle(0,0,f.offsetWidth,f.offsetHeight);document.body.removeChild(f);return a},getViewXml:function(a,b,c,d,e){d=null!=d?d:0;e=null!=e?e:0;b=null!=b?b:1;null==c&&(c=[a.getModel().getRoot()]);var f=a.getView(),g=null,k=f.isEventsEnabled();f.setEventsEnabled(!1);var l=f.drawPane,m=f.overlayPane;a.dialect==mxConstants.DIALECT_SVG?(f.drawPane=document.createElementNS(mxConstants.NS_SVG,"g"),f.canvas.appendChild(f.drawPane),f.overlayPane=document.createElementNS(mxConstants.NS_SVG,"g")):(f.drawPane=-f.drawPane.cloneNode(!1),f.canvas.appendChild(f.drawPane),f.overlayPane=f.overlayPane.cloneNode(!1));f.canvas.appendChild(f.overlayPane);var n=f.getTranslate();f.translate=new mxPoint(d,e);b=new mxTemporaryCellStates(a.getView(),b,c);try{g=(new mxCodec).encode(a.getView())}finally{b.destroy(),f.translate=n,f.canvas.removeChild(f.drawPane),f.canvas.removeChild(f.overlayPane),f.drawPane=l,f.overlayPane=m,f.setEventsEnabled(k)}return g},getScaleForPageCount:function(a,b,c,d){if(1>a)return 1;c=null!=-c?c:mxConstants.PAGE_FORMAT_A4_PORTRAIT;d=null!=d?d:0;var e=c.width-2*d;c=c.height-2*d;d=mxRectangle.fromRectangle(b.getGraphBounds());b=b.getView().getScale();d.width/=b;d.height/=b;b=d.width;var f=Math.sqrt(a);d=Math.sqrt(b/d.height/(e/c));c=f*d;d=f/d;if(1>c&&d>a){var g=d/a;d=a;c/=g}1>d&&c>a&&(g=c/a,c=a,d/=g);g=Math.ceil(c)*Math.ceil(d);for(f=0;g>a;){g=Math.floor(c)/c;var k=Math.floor(d)/d;1==g&&(g=Math.floor(c-1)/c);1==k&&(k=Math.floor(d-1)/d);g=g>k?g:k;c*=g;d*=g;g=Math.ceil(c)*Math.ceil(d);f++;-if(10<f)break}return e*c/b*.99999},show:function(a,b,c,d,e,f){c=null!=c?c:0;d=null!=d?d:0;null==b?b=window.open().document:b.open();9==document.documentMode&&b.writeln('\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--\x3e');var g=a.getGraphBounds(),k=Math.ceil(c-g.x),l=Math.ceil(d-g.y);null==e&&(e=Math.ceil(g.width+c)+Math.ceil(Math.ceil(g.x)-g.x));null==f&&(f=Math.ceil(g.height+d)+Math.ceil(Math.ceil(g.y)-g.y));if(mxClient.IS_IE||11==document.documentMode){d="<html><head>";-g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)d+=g[c].outerHTML;d+="<style>";for(c=0;c<document.styleSheets.length;c++)try{d+=document.styleSheets[c].cssText}catch(m){}d=d+'</style></head><body style="margin:0px;"><div style="position:absolute;overflow:hidden;width:'+(e+"px;height:"+f+'px;"><div style="position:relative;left:'+k+"px;top:"+l+'px;">')+a.container.innerHTML;b.writeln(d+"</div></div></body><html>");b.close()}else{b.writeln("<html><head>");g=document.getElementsByTagName("base");-for(c=0;c<g.length;c++)b.writeln(mxUtils.getOuterHtml(g[c]));d=document.getElementsByTagName("link");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));d=document.getElementsByTagName("style");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));b.writeln('</head><body style="margin:0px;"></body></html>');b.close();c=b.createElement("div");c.position="absolute";c.overflow="hidden";c.style.width=e+"px";c.style.height=f+"px";e=b.createElement("div");e.style.position="absolute";e.style.left=-k+"px";e.style.top=l+"px";f=a.container.firstChild;for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.appendChild(g),f=f.nextSibling;b.body.appendChild(c);null!=e.firstChild&&b.body.appendChild(e);null!=d&&(d.style.minWidth="",d.style.minHeight="",d.firstChild.setAttribute("transform","translate("+k+","+l+")"))}mxUtils.removeCursors(b.body);return b},printScreen:function(a){var b=window.open();mxUtils.show(a,b.document);a=function(){b.focus();b.print();-b.close()};mxClient.IS_GC?b.setTimeout(a,500):a()},popup:function(a,b){if(b){var c=document.createElement("div");c.style.overflow="scroll";c.style.width="636px";c.style.height="460px";b=document.createElement("pre");b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," ");c.appendChild(b);c=new mxWindow("Popup Window",c,document.body.clientWidth/2-320,Math.max(document.body.clientHeight||0,document.documentElement.clientHeight)/2-240,640,480,!1,!0);c.setClosable(!0);c.setVisible(!0)}else mxClient.IS_NS?-(c=window.open(),c.document.writeln("<pre>"+mxUtils.htmlEntities(a)+"</pre"),c.document.close()):(c=window.open(),b=c.document.createElement("pre"),b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," "),c.document.body.appendChild(b))},alert:function(a){alert(a)},prompt:function(a,b){return prompt(a,null!=b?b:"")},confirm:function(a){return confirm(a)},error:function(a,b,c,d){var e=document.createElement("div");e.style.padding="20px";var f=document.createElement("img");-f.setAttribute("src",d||mxUtils.errorImage);f.setAttribute("valign","bottom");f.style.verticalAlign="middle";e.appendChild(f);e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));mxUtils.write(e,a);a=document.body.clientWidth;d=document.body.clientHeight||document.documentElement.clientHeight;var g=new mxWindow(mxResources.get(mxUtils.errorResource)||mxUtils.errorResource,e,(a-b)/2,d/4,b,null,!1,!0);c&&(mxUtils.br(e),b=-document.createElement("p"),c=document.createElement("button"),mxClient.IS_IE?c.style.cssText="float:right":c.setAttribute("style","float:right"),mxEvent.addListener(c,"click",function(k){g.destroy()}),mxUtils.write(c,mxResources.get(mxUtils.closeResource)||mxUtils.closeResource),b.appendChild(c),e.appendChild(b),mxUtils.br(e),g.setClosable(!0));g.setVisible(!0);return g},makeDraggable:function(a,b,c,d,e,f,g,k,l,m){a=new mxDragSource(a,c);a.dragOffset=new mxPoint(null!=e?e:0,null!=f?f:mxConstants.TOOLTIP_VERTICAL_OFFSET);-a.autoscroll=g;a.setGuidesEnabled(!1);null!=l&&(a.highlightDropTargets=l);null!=m&&(a.getDropTarget=m);a.getGraphForEvent=function(n){return"function"==typeof b?b(n):b};null!=d&&(a.createDragElement=function(){return d.cloneNode(!0)},k&&(a.createPreviewElement=function(n){var p=d.cloneNode(!0),q=parseInt(p.style.width),r=parseInt(p.style.height);p.style.width=Math.round(q*n.view.scale)+"px";p.style.height=Math.round(r*n.view.scale)+"px";return p}));return a},format:function(a){return parseFloat(parseFloat(a).toFixed(2))}},-mxConstants={DEFAULT_HOTSPOT:.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:"exact",RENDERING_HINT_FASTER:"faster",RENDERING_HINT_FASTEST:"fastest",DIALECT_SVG:"svg",DIALECT_MIXEDHTML:"mixedHtml",DIALECT_PREFERHTML:"preferHtml",DIALECT_STRICTHTML:"strictHtml",NS_SVG:"http://www.w3.org/2000/svg",NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XLINK:"http://www.w3.org/1999/xlink",SHADOWCOLOR:"#808080",VML_SHADOWCOLOR:"#808080",SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_BLUR:2,SHADOW_OPACITY:1,-NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:"#00FF00",DEFAULT_INVALID_COLOR:"#FF0000",OUTLINE_HIGHLIGHT_COLOR:"#00FF00",OUTLINE_HIGHLIGHT_STROKEWIDTH:5,HIGHLIGHT_STROKEWIDTH:3,HIGHLIGHT_SIZE:2,HIGHLIGHT_OPACITY:100,CURSOR_MOVABLE_VERTEX:"move",-CURSOR_MOVABLE_EDGE:"move",CURSOR_LABEL_HANDLE:"default",CURSOR_TERMINAL_HANDLE:"pointer",CURSOR_BEND_HANDLE:"crosshair",CURSOR_VIRTUAL_BEND_HANDLE:"crosshair",CURSOR_CONNECT:"pointer",HIGHLIGHT_COLOR:"#00FF00",CONNECT_TARGET_COLOR:"#0000FF",INVALID_CONNECT_TARGET_COLOR:"#FF0000",DROP_TARGET_COLOR:"#0000FF",VALID_COLOR:"#00FF00",INVALID_COLOR:"#FF0000",EDGE_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,-EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:"#FF0000",GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:"#0099FF",OUTLINE_STROKEWIDTH:mxClient.IS_IE?2:3,HANDLE_SIZE:6,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:"#00FF00",HANDLE_STROKECOLOR:"black",LABEL_HANDLE_FILLCOLOR:"yellow",CONNECT_HANDLE_FILLCOLOR:"#0000FF",LOCKED_HANDLE_FILLCOLOR:"#FF0000",OUTLINE_HANDLE_FILLCOLOR:"#00FFFF",OUTLINE_HANDLE_STROKECOLOR:"#0033FF",DEFAULT_FONTFAMILY:"Arial,Helvetica",DEFAULT_FONTSIZE:11,DEFAULT_TEXT_DIRECTION:"",LINE_HEIGHT:1.2,WORD_WRAP:"normal",-ABSOLUTE_LINE_HEIGHT:!1,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:.15,LINE_ARCSIZE:20,ARROW_SPACING:0,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT:new mxRectangle(0,0,827,1169),PAGE_FORMAT_A4_LANDSCAPE:new mxRectangle(0,0,1169,827),PAGE_FORMAT_LETTER_PORTRAIT:new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE:new mxRectangle(0,0,1100,850),NONE:"none",STYLE_PERIMETER:"perimeter",STYLE_SOURCE_PORT:"sourcePort",-STYLE_TARGET_PORT:"targetPort",STYLE_PORT_CONSTRAINT:"portConstraint",STYLE_PORT_CONSTRAINT_ROTATION:"portConstraintRotation",STYLE_SOURCE_PORT_CONSTRAINT:"sourcePortConstraint",STYLE_TARGET_PORT_CONSTRAINT:"targetPortConstraint",STYLE_OPACITY:"opacity",STYLE_FILL_OPACITY:"fillOpacity",STYLE_FILL_STYLE:"fillStyle",STYLE_STROKE_OPACITY:"strokeOpacity",STYLE_TEXT_OPACITY:"textOpacity",STYLE_TEXT_DIRECTION:"textDirection",STYLE_OVERFLOW:"overflow",STYLE_BLOCK_SPACING:"blockSpacing",STYLE_ORTHOGONAL:"orthogonal",-STYLE_EXIT_X:"exitX",STYLE_EXIT_Y:"exitY",STYLE_EXIT_DX:"exitDx",STYLE_EXIT_DY:"exitDy",STYLE_EXIT_PERIMETER:"exitPerimeter",STYLE_ENTRY_X:"entryX",STYLE_ENTRY_Y:"entryY",STYLE_ENTRY_DX:"entryDx",STYLE_ENTRY_DY:"entryDy",STYLE_ENTRY_PERIMETER:"entryPerimeter",STYLE_WHITE_SPACE:"whiteSpace",STYLE_ROTATION:"rotation",STYLE_FILLCOLOR:"fillColor",STYLE_POINTER_EVENTS:"pointerEvents",STYLE_SWIMLANE_FILLCOLOR:"swimlaneFillColor",STYLE_MARGIN:"margin",STYLE_GRADIENTCOLOR:"gradientColor",STYLE_GRADIENT_DIRECTION:"gradientDirection",-STYLE_STROKECOLOR:"strokeColor",STYLE_SEPARATORCOLOR:"separatorColor",STYLE_STROKEWIDTH:"strokeWidth",STYLE_ALIGN:"align",STYLE_VERTICAL_ALIGN:"verticalAlign",STYLE_LABEL_WIDTH:"labelWidth",STYLE_LABEL_POSITION:"labelPosition",STYLE_VERTICAL_LABEL_POSITION:"verticalLabelPosition",STYLE_IMAGE_ASPECT:"imageAspect",STYLE_IMAGE_ALIGN:"imageAlign",STYLE_IMAGE_VERTICAL_ALIGN:"imageVerticalAlign",STYLE_GLASS:"glass",STYLE_IMAGE:"image",STYLE_IMAGE_WIDTH:"imageWidth",STYLE_IMAGE_HEIGHT:"imageHeight",STYLE_IMAGE_BACKGROUND:"imageBackground",-STYLE_IMAGE_BORDER:"imageBorder",STYLE_FLIPH:"flipH",STYLE_FLIPV:"flipV",STYLE_NOLABEL:"noLabel",STYLE_NOEDGESTYLE:"noEdgeStyle",STYLE_LABEL_BACKGROUNDCOLOR:"labelBackgroundColor",STYLE_LABEL_BORDERCOLOR:"labelBorderColor",STYLE_LABEL_PADDING:"labelPadding",STYLE_INDICATOR_SHAPE:"indicatorShape",STYLE_INDICATOR_IMAGE:"indicatorImage",STYLE_INDICATOR_COLOR:"indicatorColor",STYLE_INDICATOR_STROKECOLOR:"indicatorStrokeColor",STYLE_INDICATOR_GRADIENTCOLOR:"indicatorGradientColor",STYLE_INDICATOR_SPACING:"indicatorSpacing",-STYLE_INDICATOR_WIDTH:"indicatorWidth",STYLE_INDICATOR_HEIGHT:"indicatorHeight",STYLE_INDICATOR_DIRECTION:"indicatorDirection",STYLE_SHADOW:"shadow",STYLE_TEXT_SHADOW:"textShadow",STYLE_SHADOW_OFFSET_X:"shadowOffsetX",STYLE_SHADOW_OFFSET_Y:"shadowOffsetY",STYLE_SHADOW_BLUR:"shadowBlur",STYLE_SHADOWCOLOR:"shadowColor",STYLE_SHADOW_OPACITY:"shadowOpacity",STYLE_SEGMENT:"segment",STYLE_ENDARROW:"endArrow",STYLE_STARTARROW:"startArrow",STYLE_ENDSIZE:"endSize",STYLE_STARTSIZE:"startSize",STYLE_SWIMLANE_LINE:"swimlaneLine",-STYLE_SWIMLANE_HEAD:"swimlaneHead",STYLE_SWIMLANE_BODY:"swimlaneBody",STYLE_ENDFILL:"endFill",STYLE_ENDFILLCOLOR:"endFillColor",STYLE_STARTFILL:"startFill",STYLE_STARTFILLCOLOR:"startFillColor",STYLE_DASHED:"dashed",STYLE_DASH_PATTERN:"dashPattern",STYLE_FIX_DASH:"fixDash",STYLE_ROUNDED:"rounded",STYLE_CURVED:"curved",STYLE_ARCSIZE:"arcSize",STYLE_ABSOLUTE_ARCSIZE:"absoluteArcSize",STYLE_SOURCE_PERIMETER_SPACING:"sourcePerimeterSpacing",STYLE_TARGET_PERIMETER_SPACING:"targetPerimeterSpacing",STYLE_PERIMETER_SPACING:"perimeterSpacing",-STYLE_SPACING:"spacing",STYLE_SPACING_TOP:"spacingTop",STYLE_SPACING_LEFT:"spacingLeft",STYLE_SPACING_BOTTOM:"spacingBottom",STYLE_SPACING_RIGHT:"spacingRight",STYLE_HORIZONTAL:"horizontal",STYLE_DIRECTION:"direction",STYLE_ANCHOR_POINT_DIRECTION:"anchorPointDirection",STYLE_ELBOW:"elbow",STYLE_FONTCOLOR:"fontColor",STYLE_FONTFAMILY:"fontFamily",STYLE_FONTSIZE:"fontSize",STYLE_FONTSTYLE:"fontStyle",STYLE_ASPECT:"aspect",STYLE_AUTOSIZE:"autosize",STYLE_AUTOSIZE_GRID:"autosizeGrid",STYLE_FIXED_WIDTH:"fixedWidth",-STYLE_FOLDABLE:"foldable",STYLE_EDITABLE:"editable",STYLE_BACKGROUND_OUTLINE:"backgroundOutline",STYLE_BENDABLE:"bendable",STYLE_MOVABLE:"movable",STYLE_RESIZABLE:"resizable",STYLE_RESIZE_WIDTH:"resizeWidth",STYLE_RESIZE_HEIGHT:"resizeHeight",STYLE_ROTATABLE:"rotatable",STYLE_CLONEABLE:"cloneable",STYLE_DELETABLE:"deletable",STYLE_SHAPE:"shape",STYLE_EDGE:"edgeStyle",STYLE_JETTY_SIZE:"jettySize",STYLE_SOURCE_JETTY_SIZE:"sourceJettySize",STYLE_TARGET_JETTY_SIZE:"targetJettySize",STYLE_LOOP:"loopStyle",-STYLE_ORTHOGONAL_LOOP:"orthogonalLoop",STYLE_ROUTING_CENTER_X:"routingCenterX",STYLE_ROUTING_CENTER_Y:"routingCenterY",STYLE_CLIP_PATH:"clipPath",FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_STRIKETHROUGH:8,SHAPE_RECTANGLE:"rectangle",SHAPE_ELLIPSE:"ellipse",SHAPE_DOUBLE_ELLIPSE:"doubleEllipse",SHAPE_RHOMBUS:"rhombus",SHAPE_LINE:"line",SHAPE_IMAGE:"image",SHAPE_ARROW:"arrow",SHAPE_ARROW_CONNECTOR:"arrowConnector",SHAPE_LABEL:"label",SHAPE_CYLINDER:"cylinder",SHAPE_SWIMLANE:"swimlane",SHAPE_CONNECTOR:"connector",-SHAPE_ACTOR:"actor",SHAPE_CLOUD:"cloud",SHAPE_TRIANGLE:"triangle",SHAPE_HEXAGON:"hexagon",ARROW_CLASSIC:"classic",ARROW_CLASSIC_THIN:"classicThin",ARROW_BLOCK:"block",ARROW_BLOCK_THIN:"blockThin",ARROW_OPEN:"open",ARROW_OPEN_THIN:"openThin",ARROW_OVAL:"oval",ARROW_DIAMOND:"diamond",ARROW_DIAMOND_THIN:"diamondThin",ALIGN_LEFT:"left",ALIGN_CENTER:"center",ALIGN_RIGHT:"right",ALIGN_TOP:"top",ALIGN_MIDDLE:"middle",ALIGN_BOTTOM:"bottom",DIRECTION_NORTH:"north",DIRECTION_SOUTH:"south",DIRECTION_EAST:"east",-DIRECTION_WEST:"west",DIRECTION_RADIAL:"radial",TEXT_DIRECTION_DEFAULT:"",TEXT_DIRECTION_AUTO:"auto",TEXT_DIRECTION_LTR:"ltr",TEXT_DIRECTION_RTL:"rtl",TEXT_DIRECTION_VERTICAL_LR:"vertical-lr",TEXT_DIRECTION_VERTICAL_RL:"vertical-rl",DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,ELBOW_VERTICAL:"vertical",ELBOW_HORIZONTAL:"horizontal",EDGESTYLE_ELBOW:"elbowEdgeStyle",EDGESTYLE_ENTITY_RELATION:"entityRelationEdgeStyle",-EDGESTYLE_LOOP:"loopEdgeStyle",EDGESTYLE_SIDETOSIDE:"sideToSideEdgeStyle",EDGESTYLE_TOPTOBOTTOM:"topToBottomEdgeStyle",EDGESTYLE_ORTHOGONAL:"orthogonalEdgeStyle",EDGESTYLE_SEGMENT:"segmentEdgeStyle",PERIMETER_ELLIPSE:"ellipsePerimeter",PERIMETER_RECTANGLE:"rectanglePerimeter",PERIMETER_RHOMBUS:"rhombusPerimeter",PERIMETER_HEXAGON:"hexagonPerimeter",PERIMETER_TRIANGLE:"trianglePerimeter"};+b.g+", "+b.b+", "+b.a+")");return a},rgba2hex:function(a){var b=mxUtils.parseColor(a);return null!=b?"#"+("0"+b.r.toString(16)).slice(-2)+("0"+b.g.toString(16)).slice(-2)+("0"+b.b.toString(16)).slice(-2)+(1>b.a?("0"+Math.round(255*b.a).toString(16)).slice(-2):""):a},color2hex:function(a,b){b=null!=b?b:"#000000";try{null!=a&&(a=String(a).replace(/\s/g,""),a.toLowerCase()==mxUtils.normalizedValidInvalidColor?b="#000000":(mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor,mxUtils.canvasContext.fillStyle=+a,mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor?(b=mxUtils.canvasContext.fillStyle,mxUtils.isRgbColor(b)&&(b=mxUtils.rgba2hex(b))):1<a.length&&"#"==a.charAt(0)&&(mxUtils.canvasContext.fillStyle=a.substring(1),mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor&&(b=mxUtils.canvasContext.fillStyle))))}catch(c){}return b},setStyle:function(a,b,c){var d=null!=c&&("undefined"==typeof c.length||0<c.length);if(null==a||0==a.length)d&&(a=b+"="+c+";");else if(a.substring(0,b.length+1)==+b+"="){var e=a.indexOf(";");a=d?b+"="+c+(0>e?";":a.substring(e)):0>e||e==a.length-1?"":a.substring(e+1)}else{var f=a.indexOf(";"+b+"=");0>f?d&&(d=";"==a.charAt(a.length-1)?"":";",a=a+d+b+"="+c+";"):(e=a.indexOf(";",f+1),a=d?a.substring(0,f+1)+b+"="+c+(0>e?";":a.substring(e)):a.substring(0,f)+(0>e?";":a.substring(e)))}return a},setCellStyleFlags:function(a,b,c,d,e){if(null!=b&&0<b.length){a.beginUpdate();try{for(var f=0;f<b.length;f++)if(null!=b[f]){var g=mxUtils.setStyleFlag(a.getStyle(b[f]),c,d,+e);a.setStyle(b[f],g)}}finally{a.endUpdate()}}},setStyleFlag:function(a,b,c,d){if(null==a||0==a.length)a=d||null==d?b+"="+c:b+"=0";else{var e=a.indexOf(b+"=");if(0>e)e=";"==a.charAt(a.length-1)?"":";",a=d||null==d?a+e+b+"="+c:a+e+b+"=0";else{var f=a.indexOf(";",e),g=0>f?a.substring(e+b.length+1):a.substring(e+b.length+1,f);g=null==d?parseInt(g)^c:d?parseInt(g)|c:parseInt(g)&~c;a=a.substring(0,e)+b+"="+g+(0<=f?a.substring(f):"")}}return a},getAlignmentAsPoint:function(a,b){var c=-.5,d=-.5;a==mxConstants.ALIGN_LEFT?+c=0:a==mxConstants.ALIGN_RIGHT&&(c=-1);b==mxConstants.ALIGN_TOP?d=0:b==mxConstants.ALIGN_BOTTOM&&(d=-1);return new mxPoint(c,d)},getSizeForString:function(a,b,c,d,e){b=null!=b?b:mxConstants.DEFAULT_FONTSIZE;c=null!=c?c:mxConstants.DEFAULT_FONTFAMILY;var f=document.createElement("div");f.style.fontFamily=c;f.style.fontSize=Math.round(b)+"px";f.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?b*mxConstants.LINE_HEIGHT+"px":mxConstants.LINE_HEIGHT*mxSvgCanvas2D.prototype.lineHeightCorrection;null!=+e&&((e&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(f.style.fontWeight="bold"),(e&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(f.style.fontStyle="italic"),b=[],(e&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&b.push("underline"),(e&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&b.push("line-through"),0<b.length&&(f.style.textDecoration=b.join(" ")));f.style.position="absolute";f.style.visibility="hidden";f.style.display="inline-block";f.style.zoom="1";null!=+d?(f.style.width=d+"px",f.style.whiteSpace="normal"):f.style.whiteSpace="nowrap";f.innerHTML=a;document.body.appendChild(f);a=new mxRectangle(0,0,f.offsetWidth,f.offsetHeight);document.body.removeChild(f);return a},getViewXml:function(a,b,c,d,e){d=null!=d?d:0;e=null!=e?e:0;b=null!=b?b:1;null==c&&(c=[a.getModel().getRoot()]);var f=a.getView(),g=null,k=f.isEventsEnabled();f.setEventsEnabled(!1);var l=f.drawPane,m=f.overlayPane;a.dialect==mxConstants.DIALECT_SVG?(f.drawPane=document.createElementNS(mxConstants.NS_SVG,+"g"),f.canvas.appendChild(f.drawPane),f.overlayPane=document.createElementNS(mxConstants.NS_SVG,"g")):(f.drawPane=f.drawPane.cloneNode(!1),f.canvas.appendChild(f.drawPane),f.overlayPane=f.overlayPane.cloneNode(!1));f.canvas.appendChild(f.overlayPane);var n=f.getTranslate();f.translate=new mxPoint(d,e);b=new mxTemporaryCellStates(a.getView(),b,c);try{g=(new mxCodec).encode(a.getView())}finally{b.destroy(),f.translate=n,f.canvas.removeChild(f.drawPane),f.canvas.removeChild(f.overlayPane),f.drawPane=+l,f.overlayPane=m,f.setEventsEnabled(k)}return g},getScaleForPageCount:function(a,b,c,d){if(1>a)return 1;c=null!=c?c:mxConstants.PAGE_FORMAT_A4_PORTRAIT;d=null!=d?d:0;var e=c.width-2*d;c=c.height-2*d;d=mxRectangle.fromRectangle(b.getGraphBounds());b=b.getView().getScale();d.width/=b;d.height/=b;b=d.width;var f=Math.sqrt(a);d=Math.sqrt(b/d.height/(e/c));c=f*d;d=f/d;if(1>c&&d>a){var g=d/a;d=a;c/=g}1>d&&c>a&&(g=c/a,c=a,d/=g);g=Math.ceil(c)*Math.ceil(d);for(f=0;g>a;){g=Math.floor(c)/c;var k=Math.floor(d)/+d;1==g&&(g=Math.floor(c-1)/c);1==k&&(k=Math.floor(d-1)/d);g=g>k?g:k;c*=g;d*=g;g=Math.ceil(c)*Math.ceil(d);f++;if(10<f)break}return e*c/b*.99999},show:function(a,b,c,d,e,f){c=null!=c?c:0;d=null!=d?d:0;null==b?b=window.open().document:b.open();9==document.documentMode&&b.writeln('\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--\x3e');var g=a.getGraphBounds(),k=Math.ceil(c-g.x),l=Math.ceil(d-g.y);null==e&&(e=Math.ceil(g.width+c)+Math.ceil(Math.ceil(g.x)-g.x));null==f&&(f=+Math.ceil(g.height+d)+Math.ceil(Math.ceil(g.y)-g.y));if(mxClient.IS_IE||11==document.documentMode){d="<html><head>";g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)d+=g[c].outerHTML;d+="<style>";for(c=0;c<document.styleSheets.length;c++)try{d+=document.styleSheets[c].cssText}catch(m){}d=d+'</style></head><body style="margin:0px;"><div style="position:absolute;overflow:hidden;width:'+(e+"px;height:"+f+'px;"><div style="position:relative;left:'+k+"px;top:"+l+'px;">')+a.container.innerHTML;+b.writeln(d+"</div></div></body><html>");b.close()}else{b.writeln("<html><head>");g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)b.writeln(mxUtils.getOuterHtml(g[c]));d=document.getElementsByTagName("link");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));d=document.getElementsByTagName("style");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));b.writeln('</head><body style="margin:0px;"></body></html>');b.close();c=b.createElement("div");c.position="absolute";+c.overflow="hidden";c.style.width=e+"px";c.style.height=f+"px";e=b.createElement("div");e.style.position="absolute";e.style.left=k+"px";e.style.top=l+"px";f=a.container.firstChild;for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.appendChild(g),f=f.nextSibling;b.body.appendChild(c);null!=e.firstChild&&b.body.appendChild(e);null!=d&&(d.style.minWidth="",d.style.minHeight="",d.firstChild.setAttribute("transform","translate("+k+","+l+")"))}mxUtils.removeCursors(b.body);+return b},printScreen:function(a){var b=window.open();mxUtils.show(a,b.document);a=function(){b.focus();b.print();b.close()};mxClient.IS_GC?b.setTimeout(a,500):a()},popup:function(a,b){if(b){var c=document.createElement("div");c.style.overflow="scroll";c.style.width="636px";c.style.height="460px";b=document.createElement("pre");b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," ");c.appendChild(b);c=new mxWindow("Popup Window",c,document.body.clientWidth/2-320,Math.max(document.body.clientHeight||+0,document.documentElement.clientHeight)/2-240,640,480,!1,!0);c.setClosable(!0);c.setVisible(!0)}else mxClient.IS_NS?(c=window.open(),c.document.writeln("<pre>"+mxUtils.htmlEntities(a)+"</pre"),c.document.close()):(c=window.open(),b=c.document.createElement("pre"),b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," "),c.document.body.appendChild(b))},alert:function(a){alert(a)},prompt:function(a,b){return prompt(a,null!=b?b:"")},confirm:function(a){return confirm(a)},+error:function(a,b,c,d){var e=document.createElement("div");e.style.padding="20px";var f=document.createElement("img");f.setAttribute("src",d||mxUtils.errorImage);f.setAttribute("valign","bottom");f.style.verticalAlign="middle";e.appendChild(f);e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));mxUtils.write(e,a);a=document.body.clientWidth;d=document.body.clientHeight||document.documentElement.clientHeight;var g=new mxWindow(mxResources.get(mxUtils.errorResource)||+mxUtils.errorResource,e,(a-b)/2,d/4,b,null,!1,!0);c&&(mxUtils.br(e),b=document.createElement("p"),c=document.createElement("button"),mxClient.IS_IE?c.style.cssText="float:right":c.setAttribute("style","float:right"),mxEvent.addListener(c,"click",function(k){g.destroy()}),mxUtils.write(c,mxResources.get(mxUtils.closeResource)||mxUtils.closeResource),b.appendChild(c),e.appendChild(b),mxUtils.br(e),g.setClosable(!0));g.setVisible(!0);return g},makeDraggable:function(a,b,c,d,e,f,g,k,l,m){a=new mxDragSource(a,+c);a.dragOffset=new mxPoint(null!=e?e:0,null!=f?f:mxConstants.TOOLTIP_VERTICAL_OFFSET);a.autoscroll=g;a.setGuidesEnabled(!1);null!=l&&(a.highlightDropTargets=l);null!=m&&(a.getDropTarget=m);a.getGraphForEvent=function(n){return"function"==typeof b?b(n):b};null!=d&&(a.createDragElement=function(){return d.cloneNode(!0)},k&&(a.createPreviewElement=function(n){var p=d.cloneNode(!0),q=parseInt(p.style.width),r=parseInt(p.style.height);p.style.width=Math.round(q*n.view.scale)+"px";p.style.height=Math.round(r*+n.view.scale)+"px";return p}));return a},format:function(a){return parseFloat(parseFloat(a).toFixed(2))}},mxConstants={DEFAULT_HOTSPOT:.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:"exact",RENDERING_HINT_FASTER:"faster",RENDERING_HINT_FASTEST:"fastest",DIALECT_SVG:"svg",DIALECT_MIXEDHTML:"mixedHtml",DIALECT_PREFERHTML:"preferHtml",DIALECT_STRICTHTML:"strictHtml",NS_SVG:"http://www.w3.org/2000/svg",NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XLINK:"http://www.w3.org/1999/xlink",SHADOWCOLOR:"#808080",+VML_SHADOWCOLOR:"#808080",SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_BLUR:2,SHADOW_OPACITY:1,NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:"#00FF00",DEFAULT_INVALID_COLOR:"#FF0000",OUTLINE_HIGHLIGHT_COLOR:"#00FF00",OUTLINE_HIGHLIGHT_STROKEWIDTH:5,+HIGHLIGHT_STROKEWIDTH:3,HIGHLIGHT_SIZE:2,HIGHLIGHT_OPACITY:100,CURSOR_MOVABLE_VERTEX:"move",CURSOR_MOVABLE_EDGE:"move",CURSOR_LABEL_HANDLE:"default",CURSOR_TERMINAL_HANDLE:"pointer",CURSOR_BEND_HANDLE:"crosshair",CURSOR_VIRTUAL_BEND_HANDLE:"crosshair",CURSOR_CONNECT:"pointer",HIGHLIGHT_COLOR:"#00FF00",CONNECT_TARGET_COLOR:"#0000FF",INVALID_CONNECT_TARGET_COLOR:"#FF0000",DROP_TARGET_COLOR:"#0000FF",VALID_COLOR:"#00FF00",INVALID_COLOR:"#FF0000",EDGE_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_COLOR:"#00FF00",+VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:"#FF0000",GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:"#0099FF",OUTLINE_STROKEWIDTH:mxClient.IS_IE?2:3,HANDLE_SIZE:6,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:"#00FF00",HANDLE_STROKECOLOR:"black",LABEL_HANDLE_FILLCOLOR:"yellow",CONNECT_HANDLE_FILLCOLOR:"#0000FF",LOCKED_HANDLE_FILLCOLOR:"#FF0000",OUTLINE_HANDLE_FILLCOLOR:"#00FFFF",OUTLINE_HANDLE_STROKECOLOR:"#0033FF",DEFAULT_FONTFAMILY:"Arial,Helvetica",+DEFAULT_FONTSIZE:11,DEFAULT_TEXT_DIRECTION:"",LINE_HEIGHT:1.2,WORD_WRAP:"normal",ABSOLUTE_LINE_HEIGHT:!1,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:.15,LINE_ARCSIZE:20,ARROW_SPACING:0,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT:new mxRectangle(0,0,827,1169),PAGE_FORMAT_A4_LANDSCAPE:new mxRectangle(0,0,1169,827),PAGE_FORMAT_LETTER_PORTRAIT:new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE:new mxRectangle(0,+0,1100,850),NONE:"none",STYLE_PERIMETER:"perimeter",STYLE_SOURCE_PORT:"sourcePort",STYLE_TARGET_PORT:"targetPort",STYLE_PORT_CONSTRAINT:"portConstraint",STYLE_PORT_CONSTRAINT_ROTATION:"portConstraintRotation",STYLE_SOURCE_PORT_CONSTRAINT:"sourcePortConstraint",STYLE_TARGET_PORT_CONSTRAINT:"targetPortConstraint",STYLE_OPACITY:"opacity",STYLE_FILL_OPACITY:"fillOpacity",STYLE_FILL_STYLE:"fillStyle",STYLE_STROKE_OPACITY:"strokeOpacity",STYLE_TEXT_OPACITY:"textOpacity",STYLE_TEXT_DIRECTION:"textDirection",+STYLE_OVERFLOW:"overflow",STYLE_BLOCK_SPACING:"blockSpacing",STYLE_ORTHOGONAL:"orthogonal",STYLE_EXIT_X:"exitX",STYLE_EXIT_Y:"exitY",STYLE_EXIT_DX:"exitDx",STYLE_EXIT_DY:"exitDy",STYLE_EXIT_PERIMETER:"exitPerimeter",STYLE_ENTRY_X:"entryX",STYLE_ENTRY_Y:"entryY",STYLE_ENTRY_DX:"entryDx",STYLE_ENTRY_DY:"entryDy",STYLE_ENTRY_PERIMETER:"entryPerimeter",STYLE_WHITE_SPACE:"whiteSpace",STYLE_ROTATION:"rotation",STYLE_FILLCOLOR:"fillColor",STYLE_POINTER_EVENTS:"pointerEvents",STYLE_SWIMLANE_FILLCOLOR:"swimlaneFillColor",+STYLE_MARGIN:"margin",STYLE_GRADIENTCOLOR:"gradientColor",STYLE_GRADIENT_DIRECTION:"gradientDirection",STYLE_STROKECOLOR:"strokeColor",STYLE_SEPARATORCOLOR:"separatorColor",STYLE_STROKEWIDTH:"strokeWidth",STYLE_ALIGN:"align",STYLE_VERTICAL_ALIGN:"verticalAlign",STYLE_LABEL_WIDTH:"labelWidth",STYLE_LABEL_POSITION:"labelPosition",STYLE_VERTICAL_LABEL_POSITION:"verticalLabelPosition",STYLE_IMAGE_ASPECT:"imageAspect",STYLE_IMAGE_ALIGN:"imageAlign",STYLE_IMAGE_VERTICAL_ALIGN:"imageVerticalAlign",STYLE_GLASS:"glass",+STYLE_IMAGE:"image",STYLE_IMAGE_WIDTH:"imageWidth",STYLE_IMAGE_HEIGHT:"imageHeight",STYLE_IMAGE_BACKGROUND:"imageBackground",STYLE_IMAGE_BORDER:"imageBorder",STYLE_FLIPH:"flipH",STYLE_FLIPV:"flipV",STYLE_NOLABEL:"noLabel",STYLE_NOEDGESTYLE:"noEdgeStyle",STYLE_LABEL_BACKGROUNDCOLOR:"labelBackgroundColor",STYLE_LABEL_BORDERCOLOR:"labelBorderColor",STYLE_LABEL_PADDING:"labelPadding",STYLE_INDICATOR_SHAPE:"indicatorShape",STYLE_INDICATOR_IMAGE:"indicatorImage",STYLE_INDICATOR_COLOR:"indicatorColor",STYLE_INDICATOR_STROKECOLOR:"indicatorStrokeColor",+STYLE_INDICATOR_GRADIENTCOLOR:"indicatorGradientColor",STYLE_INDICATOR_SPACING:"indicatorSpacing",STYLE_INDICATOR_WIDTH:"indicatorWidth",STYLE_INDICATOR_HEIGHT:"indicatorHeight",STYLE_INDICATOR_DIRECTION:"indicatorDirection",STYLE_SHADOW:"shadow",STYLE_TEXT_SHADOW:"textShadow",STYLE_SHADOW_OFFSET_X:"shadowOffsetX",STYLE_SHADOW_OFFSET_Y:"shadowOffsetY",STYLE_SHADOW_BLUR:"shadowBlur",STYLE_SHADOWCOLOR:"shadowColor",STYLE_SHADOW_OPACITY:"shadowOpacity",STYLE_SEGMENT:"segment",STYLE_ENDARROW:"endArrow",+STYLE_STARTARROW:"startArrow",STYLE_ENDSIZE:"endSize",STYLE_STARTSIZE:"startSize",STYLE_SWIMLANE_LINE:"swimlaneLine",STYLE_SWIMLANE_HEAD:"swimlaneHead",STYLE_SWIMLANE_BODY:"swimlaneBody",STYLE_ENDFILL:"endFill",STYLE_ENDFILLCOLOR:"endFillColor",STYLE_STARTFILL:"startFill",STYLE_STARTFILLCOLOR:"startFillColor",STYLE_DASHED:"dashed",STYLE_DASH_PATTERN:"dashPattern",STYLE_FIX_DASH:"fixDash",STYLE_ROUNDED:"rounded",STYLE_CURVED:"curved",STYLE_ARCSIZE:"arcSize",STYLE_ABSOLUTE_ARCSIZE:"absoluteArcSize",+STYLE_SOURCE_PERIMETER_SPACING:"sourcePerimeterSpacing",STYLE_TARGET_PERIMETER_SPACING:"targetPerimeterSpacing",STYLE_PERIMETER_SPACING:"perimeterSpacing",STYLE_SPACING:"spacing",STYLE_SPACING_TOP:"spacingTop",STYLE_SPACING_LEFT:"spacingLeft",STYLE_SPACING_BOTTOM:"spacingBottom",STYLE_SPACING_RIGHT:"spacingRight",STYLE_HORIZONTAL:"horizontal",STYLE_DIRECTION:"direction",STYLE_ANCHOR_POINT_DIRECTION:"anchorPointDirection",STYLE_ELBOW:"elbow",STYLE_FONTCOLOR:"fontColor",STYLE_FONTFAMILY:"fontFamily",+STYLE_FONTSIZE:"fontSize",STYLE_FONTSTYLE:"fontStyle",STYLE_ASPECT:"aspect",STYLE_AUTOSIZE:"autosize",STYLE_AUTOSIZE_GRID:"autosizeGrid",STYLE_FIXED_WIDTH:"fixedWidth",STYLE_FOLDABLE:"foldable",STYLE_EDITABLE:"editable",STYLE_BACKGROUND_OUTLINE:"backgroundOutline",STYLE_BENDABLE:"bendable",STYLE_MOVABLE:"movable",STYLE_RESIZABLE:"resizable",STYLE_RESIZE_WIDTH:"resizeWidth",STYLE_RESIZE_HEIGHT:"resizeHeight",STYLE_ROTATABLE:"rotatable",STYLE_CLONEABLE:"cloneable",STYLE_DELETABLE:"deletable",STYLE_SHAPE:"shape",+STYLE_EDGE:"edgeStyle",STYLE_JETTY_SIZE:"jettySize",STYLE_SOURCE_JETTY_SIZE:"sourceJettySize",STYLE_TARGET_JETTY_SIZE:"targetJettySize",STYLE_LOOP:"loopStyle",STYLE_ORTHOGONAL_LOOP:"orthogonalLoop",STYLE_ROUTING_CENTER_X:"routingCenterX",STYLE_ROUTING_CENTER_Y:"routingCenterY",STYLE_CLIP_PATH:"clipPath",FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_STRIKETHROUGH:8,SHAPE_RECTANGLE:"rectangle",SHAPE_ELLIPSE:"ellipse",SHAPE_DOUBLE_ELLIPSE:"doubleEllipse",SHAPE_RHOMBUS:"rhombus",SHAPE_LINE:"line",SHAPE_IMAGE:"image",+SHAPE_ARROW:"arrow",SHAPE_ARROW_CONNECTOR:"arrowConnector",SHAPE_LABEL:"label",SHAPE_CYLINDER:"cylinder",SHAPE_SWIMLANE:"swimlane",SHAPE_CONNECTOR:"connector",SHAPE_ACTOR:"actor",SHAPE_CLOUD:"cloud",SHAPE_TRIANGLE:"triangle",SHAPE_HEXAGON:"hexagon",ARROW_CLASSIC:"classic",ARROW_CLASSIC_THIN:"classicThin",ARROW_BLOCK:"block",ARROW_BLOCK_THIN:"blockThin",ARROW_OPEN:"open",ARROW_OPEN_THIN:"openThin",ARROW_OVAL:"oval",ARROW_DIAMOND:"diamond",ARROW_DIAMOND_THIN:"diamondThin",ALIGN_LEFT:"left",ALIGN_CENTER:"center",+ALIGN_RIGHT:"right",ALIGN_TOP:"top",ALIGN_MIDDLE:"middle",ALIGN_BOTTOM:"bottom",DIRECTION_NORTH:"north",DIRECTION_SOUTH:"south",DIRECTION_EAST:"east",DIRECTION_WEST:"west",DIRECTION_RADIAL:"radial",TEXT_DIRECTION_DEFAULT:"",TEXT_DIRECTION_AUTO:"auto",TEXT_DIRECTION_LTR:"ltr",TEXT_DIRECTION_RTL:"rtl",TEXT_DIRECTION_VERTICAL_LR:"vertical-lr",TEXT_DIRECTION_VERTICAL_RL:"vertical-rl",DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,+ELBOW_VERTICAL:"vertical",ELBOW_HORIZONTAL:"horizontal",EDGESTYLE_ELBOW:"elbowEdgeStyle",EDGESTYLE_ENTITY_RELATION:"entityRelationEdgeStyle",EDGESTYLE_LOOP:"loopEdgeStyle",EDGESTYLE_SIDETOSIDE:"sideToSideEdgeStyle",EDGESTYLE_TOPTOBOTTOM:"topToBottomEdgeStyle",EDGESTYLE_ORTHOGONAL:"orthogonalEdgeStyle",EDGESTYLE_SEGMENT:"segmentEdgeStyle",PERIMETER_ELLIPSE:"ellipsePerimeter",PERIMETER_RECTANGLE:"rectanglePerimeter",PERIMETER_RHOMBUS:"rhombusPerimeter",PERIMETER_HEXAGON:"hexagonPerimeter",PERIMETER_TRIANGLE:"trianglePerimeter"};function mxEventObject(a){this.name=a;this.properties=[];for(var b=1;b<arguments.length;b+=2)null!=arguments[b+1]&&(this.properties[arguments[b]]=arguments[b+1])}mxEventObject.prototype.name=null;mxEventObject.prototype.properties=null;mxEventObject.prototype.consumed=!1;mxEventObject.prototype.getName=function(){return this.name};mxEventObject.prototype.getProperties=function(){return this.properties};mxEventObject.prototype.getProperty=function(a){return this.properties[a]};mxEventObject.prototype.isConsumed=function(){return this.consumed};mxEventObject.prototype.consume=function(){this.consumed=!0};function mxMouseEvent(a,b){this.evt=a;this.sourceState=this.state=b}mxMouseEvent.prototype.consumed=!1;mxMouseEvent.prototype.evt=null;mxMouseEvent.prototype.graphX=null;mxMouseEvent.prototype.graphY=null;mxMouseEvent.prototype.state=null;mxMouseEvent.prototype.sourceState=null;mxMouseEvent.prototype.getEvent=function(){return this.evt};mxMouseEvent.prototype.getSource=function(){return mxEvent.getSource(this.evt)};mxMouseEvent.prototype.isSource=function(a){return null!=a?mxUtils.isAncestorNode(a.node,this.getSource()):!1};mxMouseEvent.prototype.getX=function(){return mxEvent.getClientX(this.getEvent())};mxMouseEvent.prototype.getY=function(){return mxEvent.getClientY(this.getEvent())};mxMouseEvent.prototype.getGraphX=function(){return this.graphX};mxMouseEvent.prototype.getGraphY=function(){return this.graphY};@@ -401,8 +401,8 @@ mxSvgCanvas2D.prototype.addForeignObject=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t)d,e,f,g,k,l,m,n,p),null!=a&&(v.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),b=this.createElement("switch"),b.appendChild(v),b.appendChild(a),u.appendChild(b)));t.appendChild(u)};mxSvgCanvas2D.prototype.updateTextNodes=function(a,b,c,d,e,f,g,k,l,m,n,p){var q=this.state.scale,r="",t="";null!=n&&"vertical-"==n.substring(0,9)?(r="-rl"==n.substring(n.length-3),t=e==mxConstants.ALIGN_LEFT?r?"flex-end":"flex-start":e==mxConstants.ALIGN_RIGHT?r?"flex-start":"flex-end":"center",r=f==mxConstants.ALIGN_TOP?"flex-start":f==mxConstants.ALIGN_BOTTOM?"flex-end":"center"):(t=f==mxConstants.ALIGN_TOP?"flex-start":f==mxConstants.ALIGN_BOTTOM?"flex-end":"center",r=e==mxConstants.ALIGN_LEFT?"flex-start":e==mxConstants.ALIGN_RIGHT?"flex-end":"center");var u=null!=this.state.fontBackgroundColor?this.getLightDarkColor(this.state.fontBackgroundColor):null,v=null!=this.state.fontBorderColor?this.getLightDarkColor(this.state.fontBorderColor):null;mxSvgCanvas2D.createCss(c+this.foreignObjectPadding,d,e,f,g,k,l,n,null!=u?u.cssText:null,null!=v?v.cssText:null,"display: flex; align-items: unsafe "+t+"; justify-content: unsafe "+r+"; "+(null!=n&&"vertical-"==n.substring(0,9)?"writing-mode: "+n+-";":""),this.getTextCss(),q,mxUtils.bind(this,function(y,A,z,C,B){a+=this.state.dx;b+=this.state.dy;var x=p.firstChild;"title"==x.nodeName&&(x=x.nextSibling);C+="color: "+this.getLightDarkColor(this.state.fontColor).light+"; ";C+=null!=u?"background-color: "+u.light+"; ":"";C+=null!=v?"border-color: "+v.light+"; ":"";var D=x.firstChild,E=D.firstChild,I=(this.rotateHtml?this.state.rotation:0)+(null!=m?m:0),F=(0!=this.foOffset?"translate("+this.foOffset+" "+this.foOffset+")":"")+(1!=q?"scale("+q+")":-"");this.setCssText(E.firstChild,B);this.setCssText(E,C);x.setAttribute("width",Math.ceil(1/Math.min(1,q)*100)+"%");x.setAttribute("height",Math.ceil(1/Math.min(1,q)*100)+"%");A=Math.round(b+A);0>A?(x.setAttribute("y",A),z+="padding-top: 0; "):(x.removeAttribute("y"),z+="padding-top: "+A+"px; ");this.setCssText(D,z+"margin-left: "+Math.round(a+y)+"px;");F+=0!=I?"rotate("+I+" "+a+" "+b+")":"";""!=F?p.setAttribute("transform",F):p.removeAttribute("transform");1!=this.state.alpha?p.setAttribute("opacity",+";":""),this.getTextCss(),q,mxUtils.bind(this,function(y,A,z,x,B){a+=this.state.dx;b+=this.state.dy;var C=p.firstChild;"title"==C.nodeName&&(C=C.nextSibling);x+="color: "+this.getLightDarkColor(this.state.fontColor).light+"; ";x+=null!=u?"background-color: "+u.light+"; ":"";x+=null!=v?"border-color: "+v.light+"; ":"";var E=C.firstChild,D=E.firstChild,I=(this.rotateHtml?this.state.rotation:0)+(null!=m?m:0),F=(0!=this.foOffset?"translate("+this.foOffset+" "+this.foOffset+")":"")+(1!=q?"scale("+q+")":+"");this.setCssText(D.firstChild,B);this.setCssText(D,x);C.setAttribute("width",Math.ceil(1/Math.min(1,q)*100)+"%");C.setAttribute("height",Math.ceil(1/Math.min(1,q)*100)+"%");A=Math.round(b+A);0>A?(C.setAttribute("y",A),z+="padding-top: 0; "):(C.removeAttribute("y"),z+="padding-top: "+A+"px; ");this.setCssText(E,z+"margin-left: "+Math.round(a+y)+"px;");F+=0!=I?"rotate("+I+" "+a+" "+b+")":"";""!=F?p.setAttribute("transform",F):p.removeAttribute("transform");1!=this.state.alpha?p.setAttribute("opacity",this.state.alpha):p.removeAttribute("opacity")}))};mxSvgCanvas2D.createCss=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r){k=null!=k&&"vertical-"==k.substring(0,9);q="box-sizing: border-box; font-size: 0; ";q=k?q+("text-align: "+(d==mxConstants.ALIGN_TOP?"left":d==mxConstants.ALIGN_BOTTOM?"right":"center")+"; "):q+("text-align: "+(c==mxConstants.ALIGN_LEFT?"left":c==mxConstants.ALIGN_RIGHT?"right":"center")+"; ");var t=mxUtils.getAlignmentAsPoint(c,d);c="overflow: hidden; ";var u="width: 1px; ",v="height: 1px; ",y=t.x*a;t=t.y*b;g?(u="width: "+Math.round(a)+"px; ",q+="max-height: "+Math.round(b)+"px; ",t=0):"fill"==f?(u="width: "+Math.round(a)+"px; ",v="height: "+Math.round(b)+"px; ",p+="width: 100%; height: 100%; ",q+="width: "+Math.round(a-2)+"px; "+v):"width"==f?(u="width: "+Math.round(a-2)+"px; ",p+="width: 100%; ",q+=u,t=0,0<b&&(q+="max-height: "+Math.round(b)+"px; ")):"block"==f?(u="width: "+Math.round(a-2)+"px; ",p+="width: 100%; ",c="",t=0,q+=u,"middle"==d&&(q+="max-height: "+Math.round(b)+"px; ")):(c="",k?y=0:t=0);d="";null!=l&&(d+="background-color: "+@@ -438,9 +438,9 @@ m.scale,e*m.scale,(f+1)*m.scale);null!=n&&(b=this.createElement("rect"),c=null!=2)),b.setAttribute("height",Math.ceil(n.height)),null!=c&&(b.style.fill=c.cssText),d&&(b.style.stroke=d.cssText),m=null!=m.fontBorderColor?Math.max(1,this.format(m.scale)):0,b.setAttribute("stroke-width",m),this.root.ownerDocument==document&&1==mxUtils.mod(m,2)&&b.setAttribute("transform","translate(0.5, 0.5)"),a.insertBefore(b,a.firstChild))}};mxSvgCanvas2D.prototype.stroke=function(){this.addNode(!1,!0)};mxSvgCanvas2D.prototype.fill=function(){this.addNode(!0,!1)};mxSvgCanvas2D.prototype.fillAndStroke=function(){this.addNode(!0,!0)};function mxGuide(a,b){this.graph=a;this.setStates(b)}mxGuide.prototype.graph=null;mxGuide.prototype.states=null;mxGuide.prototype.horizontal=!0;mxGuide.prototype.vertical=!0;mxGuide.prototype.guideX=null;mxGuide.prototype.guideY=null;mxGuide.prototype.rounded=!1;mxGuide.prototype.tolerance=2;mxGuide.prototype.setStates=function(a){this.states=a};mxGuide.prototype.isEnabledForEvent=function(a){return!0};mxGuide.prototype.getGuideTolerance=function(a){return a&&this.graph.gridEnabled?this.graph.gridSize/2:this.tolerance};mxGuide.prototype.createGuideShape=function(a){a=new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH);a.isDashed=!0;return a};mxGuide.prototype.isStateIgnored=function(a){return!1};-mxGuide.prototype.move=function(a,b,c,d){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){d=function(B,x,D){var E=!1;D&&Math.abs(B-C)<t?(b.y=B-a.getCenterY(),t=Math.abs(B-C),E=!0):D||(Math.abs(B-A)<t?(b.y=B-a.y,t=Math.abs(B-A),E=!0):Math.abs(B-z)<t&&(b.y=B-a.y-a.height,t=Math.abs(B-z),E=!0));E&&(p=x,q=B,null==this.guideY&&(this.guideY=this.createGuideShape(!1),this.guideY.dialect=mxConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverlayPane())));-n=n||E};var e=function(B,x,D){var E=!1;D&&Math.abs(B-y)<r?(b.x=B-a.getCenterX(),r=Math.abs(B-y),E=!0):D||(Math.abs(B-u)<r?(b.x=B-a.x,r=Math.abs(B-u),E=!0):Math.abs(B-v)<r&&(b.x=B-a.x-a.width,r=Math.abs(B-v),E=!0));E&&(l=x,m=B,null==this.guideX&&(this.guideX=this.createGuideShape(!0),this.guideX.dialect=mxConstants.DIALECT_SVG,this.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||E},f=this.graph.getView().scale;f*=this.getGuideTolerance(c);var g=a.clone();g.x+=-b.x;g.y+=b.y;var k=!1,l=null,m=null,n=!1,p=null,q=null,r=f,t=f,u=g.x,v=g.x+g.width,y=g.getCenterX(),A=g.y,z=g.y+g.height,C=g.getCenterY();for(f=0;f<this.states.length;f++)g=this.states[f],null==g||this.isStateIgnored(g)||(this.horizontal&&(e.call(this,g.getCenterX(),g,!0),e.call(this,g.x,g,!1),e.call(this,g.x+g.width,g,!1),null==g.cell&&e.call(this,g.getCenterX(),g,!1)),this.vertical&&(d.call(this,g.getCenterY(),g,!0),d.call(this,g.y,g,!1),d.call(this,g.y+g.height,g,!1),null==g.cell&&d.call(this,+mxGuide.prototype.move=function(a,b,c,d){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){d=function(B,C,E){var D=!1;E&&Math.abs(B-x)<t?(b.y=B-a.getCenterY(),t=Math.abs(B-x),D=!0):E||(Math.abs(B-A)<t?(b.y=B-a.y,t=Math.abs(B-A),D=!0):Math.abs(B-z)<t&&(b.y=B-a.y-a.height,t=Math.abs(B-z),D=!0));D&&(p=C,q=B,null==this.guideY&&(this.guideY=this.createGuideShape(!1),this.guideY.dialect=mxConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverlayPane())));+n=n||D};var e=function(B,C,E){var D=!1;E&&Math.abs(B-y)<r?(b.x=B-a.getCenterX(),r=Math.abs(B-y),D=!0):E||(Math.abs(B-u)<r?(b.x=B-a.x,r=Math.abs(B-u),D=!0):Math.abs(B-v)<r&&(b.x=B-a.x-a.width,r=Math.abs(B-v),D=!0));D&&(l=C,m=B,null==this.guideX&&(this.guideX=this.createGuideShape(!0),this.guideX.dialect=mxConstants.DIALECT_SVG,this.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||D},f=this.graph.getView().scale;f*=this.getGuideTolerance(c);var g=a.clone();g.x+=+b.x;g.y+=b.y;var k=!1,l=null,m=null,n=!1,p=null,q=null,r=f,t=f,u=g.x,v=g.x+g.width,y=g.getCenterX(),A=g.y,z=g.y+g.height,x=g.getCenterY();for(f=0;f<this.states.length;f++)g=this.states[f],null==g||this.isStateIgnored(g)||(this.horizontal&&(e.call(this,g.getCenterX(),g,!0),e.call(this,g.x,g,!1),e.call(this,g.x+g.width,g,!1),null==g.cell&&e.call(this,g.getCenterX(),g,!1)),this.vertical&&(d.call(this,g.getCenterY(),g,!0),d.call(this,g.y,g,!1),d.call(this,g.y+g.height,g,!1),null==g.cell&&d.call(this,g.getCenterY(),g,!1)));this.graph.snapDelta(b,a,!c,k,n);b=this.getDelta(a,l,b.x,p,b.y);c=this.graph.container;k||null==this.guideX?null!=this.guideX&&(e=d=null,null!=l&&null!=a&&(d=Math.min(a.y+b.y-this.graph.panDy,l.y),e=Math.max(a.y+a.height+b.y-this.graph.panDy,l.y+l.height)),this.guideX.points=null!=d&&null!=e?[new mxPoint(m,d),new mxPoint(m,e)]:[new mxPoint(m,-this.graph.panDy),new mxPoint(m,c.scrollHeight-3-this.graph.panDy)],this.guideX.stroke=this.getGuideColor(l,!0),this.guideX.node.style.visibility="visible",this.guideX.redraw()):this.guideX.node.style.visibility="hidden";n||null==this.guideY?null!=this.guideY&&(e=d=null,null!=p&&null!=a&&(d=Math.min(a.x+b.x-this.graph.panDx,p.x),e=Math.max(a.x+a.width+b.x-this.graph.panDx,p.x+p.width)),this.guideY.points=null!=d&&null!=e?[new mxPoint(d,q),new mxPoint(e,q)]:[new mxPoint(-this.graph.panDx,q),new mxPoint(c.scrollWidth-3-this.graph.panDx,q)],this.guideY.stroke=this.getGuideColor(p,!1),this.guideY.node.style.visibility="visible",this.guideY.redraw()):this.guideY.node.style.visibility="hidden"}return b};mxGuide.prototype.getDelta=function(a,b,c,d,e){var f=this.graph.view.scale;if(this.rounded||null!=b&&null==b.cell)c=Math.round((a.x+c)/f)*f-a.x;if(this.rounded||null!=d&&null==d.cell)e=Math.round((a.y+e)/f)*f-a.y;return new mxPoint(c,e)};mxGuide.prototype.getGuideColor=function(a,b){return mxConstants.GUIDE_COLOR};mxGuide.prototype.hide=function(){this.setVisible(!1)};@@ -535,14 +535,14 @@ function mxArrowConnector(a,b,c,d,e,f,g){mxShape.call(this);this.points=a;this.fmxArrowConnector.prototype.resetStyles=function(){mxShape.prototype.resetStyles.apply(this,arguments);this.arrowSpacing=mxConstants.ARROW_SPACING};mxArrowConnector.prototype.apply=function(a){mxShape.prototype.apply.apply(this,arguments);null!=this.style&&(this.startSize=3*mxUtils.getNumber(this.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5),this.endSize=3*mxUtils.getNumber(this.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5))};mxArrowConnector.prototype.augmentBoundingBox=function(a){mxShape.prototype.augmentBoundingBox.apply(this,arguments);var b=this.getEdgeWidth();this.isMarkerStart()&&(b=Math.max(b,this.getStartArrowWidth()));this.isMarkerEnd()&&(b=Math.max(b,this.getEndArrowWidth()));a.grow((b/2+this.strokewidth)*this.scale)};mxArrowConnector.prototype.paintEdgeShape=function(a,b){var c=this.strokewidth;this.outline&&(c=Math.max(1,mxUtils.getNumber(this.style,mxConstants.STYLE_STROKEWIDTH,this.strokewidth)));var d=this.getStartArrowWidth()+c,e=this.getEndArrowWidth()+c,f=this.outline?this.getEdgeWidth()+c:this.getEdgeWidth(),g=this.isOpenEnded(),k=this.isMarkerStart(),l=this.isMarkerEnd(),m=g?0:this.arrowSpacing+c/2,n=this.startSize+c;c=this.endSize+c;var p=this.isArrowRounded(),q=b[b.length-1],r=b[1].x-b[0].x,t=b[1].y--b[0].y,u=Math.sqrt(r*r+t*t);if(0!=u){var v=r/u,y=v,A=t/u,z=A;u=f*A;var C=-f*v,B=[];p?a.setLineJoin("round"):2<b.length&&a.setMiterLimit(1.42);a.begin();r=v;t=A;if(k&&!g)this.paintMarker(a,b[0].x,b[0].y,v,A,n,d,f,m,!0);else{var x=b[0].x+u/2+m*v,D=b[0].y+C/2+m*A,E=b[0].x-u/2+m*v,I=b[0].y-C/2+m*A;g?(a.moveTo(x,D),B.push(function(){a.lineTo(E,I)})):(a.moveTo(E,I),a.lineTo(x,D))}var F=D=x=0;for(u=0;u<b.length-2;u++)if(C=mxUtils.relativeCcw(b[u].x,b[u].y,b[u+1].x,b[u+1].y,b[u+2].x,b[u+2].y),x=b[u+2].x--b[u+1].x,D=b[u+2].y-b[u+1].y,F=Math.sqrt(x*x+D*D),0!=F){y=x/F;z=D/F;F=Math.max(Math.sqrt((v*y+A*z+1)/2),.04);x=v+y;D=A+z;var H=Math.sqrt(x*x+D*D);if(0!=H){x/=H;D/=H;H=Math.max(F,Math.min(this.strokewidth/200+.04,.35));F=0!=C&&p?Math.max(.1,H):Math.max(F,.06);var K=b[u+1].x+D*f/2/F,G=b[u+1].y-x*f/2/F;D=b[u+1].x-D*f/2/F;x=b[u+1].y+x*f/2/F;0!=C&&p?-1==C?(C=D+z*f,F=x-y*f,a.lineTo(D+A*f,x-v*f),a.quadTo(K,G,C,F),function(L,M){B.push(function(){a.lineTo(L,M)})}(D,x)):(a.lineTo(K,G),function(L,M){var O=K--A*f,P=G+v*f,Q=K-z*f,R=G+y*f;B.push(function(){a.quadTo(L,M,O,P)});B.push(function(){a.lineTo(Q,R)})}(D,x)):(a.lineTo(K,G),function(L,M){B.push(function(){a.lineTo(L,M)})}(D,x));v=y;A=z}}u=f*z;C=-f*y;if(l&&!g)this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!1);else{a.lineTo(q.x-m*y+u/2,q.y-m*z+C/2);var J=q.x-m*y-u/2,N=q.y-m*z-C/2;g?(a.moveTo(J,N),B.splice(0,0,function(){a.moveTo(J,N)})):a.lineTo(J,N)}for(u=B.length-1;0<=u;u--)B[u]();g?(a.end(),a.stroke()):(a.close(),a.fillAndStroke());a.setShadow(!1);a.setMiterLimit(4);+b[0].y,u=Math.sqrt(r*r+t*t);if(0!=u){var v=r/u,y=v,A=t/u,z=A;u=f*A;var x=-f*v,B=[];p?a.setLineJoin("round"):2<b.length&&a.setMiterLimit(1.42);a.begin();r=v;t=A;if(k&&!g)this.paintMarker(a,b[0].x,b[0].y,v,A,n,d,f,m,!0);else{var C=b[0].x+u/2+m*v,E=b[0].y+x/2+m*A,D=b[0].x-u/2+m*v,I=b[0].y-x/2+m*A;g?(a.moveTo(C,E),B.push(function(){a.lineTo(D,I)})):(a.moveTo(D,I),a.lineTo(C,E))}var F=E=C=0;for(u=0;u<b.length-2;u++)if(x=mxUtils.relativeCcw(b[u].x,b[u].y,b[u+1].x,b[u+1].y,b[u+2].x,b[u+2].y),C=b[u+2].x-+b[u+1].x,E=b[u+2].y-b[u+1].y,F=Math.sqrt(C*C+E*E),0!=F){y=C/F;z=E/F;F=Math.max(Math.sqrt((v*y+A*z+1)/2),.04);C=v+y;E=A+z;var H=Math.sqrt(C*C+E*E);if(0!=H){C/=H;E/=H;H=Math.max(F,Math.min(this.strokewidth/200+.04,.35));F=0!=x&&p?Math.max(.1,H):Math.max(F,.06);var K=b[u+1].x+E*f/2/F,G=b[u+1].y-C*f/2/F;E=b[u+1].x-E*f/2/F;C=b[u+1].y+C*f/2/F;0!=x&&p?-1==x?(x=E+z*f,F=C-y*f,a.lineTo(E+A*f,C-v*f),a.quadTo(K,G,x,F),function(L,M){B.push(function(){a.lineTo(L,M)})}(E,C)):(a.lineTo(K,G),function(L,M){var O=K-+A*f,P=G+v*f,Q=K-z*f,R=G+y*f;B.push(function(){a.quadTo(L,M,O,P)});B.push(function(){a.lineTo(Q,R)})}(E,C)):(a.lineTo(K,G),function(L,M){B.push(function(){a.lineTo(L,M)})}(E,C));v=y;A=z}}u=f*z;x=-f*y;if(l&&!g)this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!1);else{a.lineTo(q.x-m*y+u/2,q.y-m*z+x/2);var J=q.x-m*y-u/2,N=q.y-m*z-x/2;g?(a.moveTo(J,N),B.splice(0,0,function(){a.moveTo(J,N)})):a.lineTo(J,N)}for(u=B.length-1;0<=u;u--)B[u]();g?(a.end(),a.stroke()):(a.close(),a.fillAndStroke());a.setShadow(!1);a.setMiterLimit(4);p&&a.setLineJoin("flat");2<b.length&&(a.setMiterLimit(4),k&&!g&&(a.begin(),this.paintMarker(a,b[0].x,b[0].y,r,t,n,d,f,m,!0),a.stroke(),a.end()),l&&!g&&(a.begin(),this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!0),a.stroke(),a.end()))}};mxArrowConnector.prototype.paintMarker=function(a,b,c,d,e,f,g,k,l,m){g=k/g;var n=k*e/2;k=-k*d/2;var p=(l+f)*d;f=(l+f)*e;m?a.moveTo(b-n+p,c-k+f):a.lineTo(b-n+p,c-k+f);a.lineTo(b-n/g+p,c-k/g+f);a.lineTo(b+l*d,c+l*e);a.lineTo(b+n/g+p,c+k/g+f);a.lineTo(b+n+p,c+k+f)};mxArrowConnector.prototype.isArrowRounded=function(){return this.isRounded};mxArrowConnector.prototype.getStartArrowWidth=function(){return mxConstants.ARROW_WIDTH};mxArrowConnector.prototype.getEndArrowWidth=function(){return mxConstants.ARROW_WIDTH};mxArrowConnector.prototype.getEdgeWidth=function(){return mxConstants.ARROW_WIDTH/3};mxArrowConnector.prototype.isOpenEnded=function(){return!1};mxArrowConnector.prototype.isMarkerStart=function(){return mxUtils.getValue(this.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE};mxArrowConnector.prototype.isMarkerEnd=function(){return mxUtils.getValue(this.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE};-function mxText(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t,u,v,y,A,z,C){mxShape.call(this);this.value=a;this.bounds=b;this.color=null!=e?e:"black";this.align=null!=c?c:mxConstants.ALIGN_CENTER;this.valign=null!=d?d:mxConstants.ALIGN_MIDDLE;this.family=null!=f?f:mxConstants.DEFAULT_FONTFAMILY;this.size=null!=g?g:mxConstants.DEFAULT_FONTSIZE;this.fontStyle=null!=k?k:mxConstants.DEFAULT_FONTSTYLE;this.spacing=parseInt(l||2);this.spacingTop=this.spacing+parseInt(m||0);this.spacingRight=this.spacing+parseInt(n||0);-this.spacingBottom=this.spacing+parseInt(p||0);this.spacingLeft=this.spacing+parseInt(q||0);this.horizontal=null!=r?r:!0;this.background=t;this.border=u;this.wrap=null!=v?v:!1;this.clipped=null!=y?y:!1;this.overflow=null!=A?A:"visible";this.labelPadding=null!=z?z:0;this.textDirection=C;this.rotation=0;this.updateMargin()}mxUtils.extend(mxText,mxShape);mxText.prototype.baseSpacingTop=0;mxText.prototype.baseSpacingBottom=0;mxText.prototype.baseSpacingLeft=0;mxText.prototype.baseSpacingRight=0;+function mxText(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t,u,v,y,A,z,x){mxShape.call(this);this.value=a;this.bounds=b;this.color=null!=e?e:"black";this.align=null!=c?c:mxConstants.ALIGN_CENTER;this.valign=null!=d?d:mxConstants.ALIGN_MIDDLE;this.family=null!=f?f:mxConstants.DEFAULT_FONTFAMILY;this.size=null!=g?g:mxConstants.DEFAULT_FONTSIZE;this.fontStyle=null!=k?k:mxConstants.DEFAULT_FONTSTYLE;this.spacing=parseInt(l||2);this.spacingTop=this.spacing+parseInt(m||0);this.spacingRight=this.spacing+parseInt(n||0);+this.spacingBottom=this.spacing+parseInt(p||0);this.spacingLeft=this.spacing+parseInt(q||0);this.horizontal=null!=r?r:!0;this.background=t;this.border=u;this.wrap=null!=v?v:!1;this.clipped=null!=y?y:!1;this.overflow=null!=A?A:"visible";this.labelPadding=null!=z?z:0;this.textDirection=x;this.rotation=0;this.updateMargin()}mxUtils.extend(mxText,mxShape);mxText.prototype.baseSpacingTop=0;mxText.prototype.baseSpacingBottom=0;mxText.prototype.baseSpacingLeft=0;mxText.prototype.baseSpacingRight=0;mxText.prototype.replaceLinefeeds=!0;mxText.prototype.verticalTextRotation=-90;mxText.prototype.ignoreClippedStringSize=!0;mxText.prototype.ignoreStringSize=!1;mxText.prototype.textWidthPadding=8!=document.documentMode||mxClient.IS_EM?3:4;mxText.prototype.lastValue=null;mxText.prototype.cacheEnabled=!0;mxText.prototype.isHtmlAllowed=function(){return 8!=document.documentMode||mxClient.IS_EM};mxText.prototype.getSvgScreenOffset=function(){return 0};mxText.prototype.checkBounds=function(){return!isNaN(this.scale)&&isFinite(this.scale)&&0<this.scale&&null!=this.bounds&&!isNaN(this.bounds.x)&&!isNaN(this.bounds.y)&&!isNaN(this.bounds.width)&&!isNaN(this.bounds.height)};mxText.prototype.configurePointerEvents=function(a){};mxText.prototype.getActualTextDirection=function(){var a=this.textDirection;a==mxConstants.TEXT_DIRECTION_AUTO&&(a=this.getAutoDirection());a!=mxConstants.TEXT_DIRECTION_LTR&&a!=mxConstants.TEXT_DIRECTION_RTL&&a!=mxConstants.TEXT_DIRECTION_VERTICAL_LR&&a!=mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(a=null);return a};@@ -754,7 +754,7 @@ k}else for(c++,e=0;e<this.nestedBestRanks.length;e++)for(f=a.ranks[e],g=0;g<f.lemxMedianHybridCrossingReduction.prototype.calculateRankCrossing=function(a,b){var c=0,d=b.ranks[a],e=b.ranks[a-1],f=[];for(b=0;b<d.length;b++){var g=d[b],k=g.getGeneralPurposeVariable(a);g=g.getPreviousLayerConnectedCells(a);for(var l=[],m=0;m<g.length;m++){var n=g[m].getGeneralPurposeVariable(a-1);l.push(n)}l.sort(function(p,q){return p-q});f[k]=l}a=[];for(b=0;b<f.length;b++)a=a.concat(f[b]);for(d=1;d<e.length;)d<<=1;f=2*d-1;--d;e=[];for(b=0;b<f;++b)e[b]=0;for(b=0;b<a.length;b++)for(f=a[b]+d,++e[f];0<f;)f%2&&(c+=e[f+1]),f=f-1>>1,++e[f];return c};mxMedianHybridCrossingReduction.prototype.transpose=function(a,b){for(var c=!0,d=0;c&&10>d++;){var e=1==a%2&&1==d%2;c=!1;for(var f=0;f<b.ranks.length;f++){for(var g=b.ranks[f],k=[],l=0;l<g.length;l++){var m=g[l],n=m.getGeneralPurposeVariable(f);0>n&&(n=l);k[n]=m}var p=null,q=null,r=null,t=null,u=null;for(l=0;l<g.length-1;l++){if(0==l){var v=k[l];m=v.getNextLayerConnectedCells(f);n=v.getPreviousLayerConnectedCells(f);for(var y=[],A=[],z=0;z<m.length;z++)y[z]=m[z].getGeneralPurposeVariable(f+1);for(z=-0;z<n.length;z++)A[z]=n[z].getGeneralPurposeVariable(f-1)}else m=p,n=q,y=r,A=t,v=u;u=k[l+1];p=u.getNextLayerConnectedCells(f);q=u.getPreviousLayerConnectedCells(f);r=[];t=[];for(z=0;z<p.length;z++)r[z]=p[z].getGeneralPurposeVariable(f+1);for(z=0;z<q.length;z++)t[z]=q[z].getGeneralPurposeVariable(f-1);var C=0,B=0;for(z=0;z<y.length;z++)for(var x=0;x<r.length;x++)y[z]>r[x]&&C++,y[z]<r[x]&&B++;for(z=0;z<A.length;z++)for(x=0;x<t.length;x++)A[z]>t[x]&&C++,A[z]<t[x]&&B++;if(B<C||B==C&&e)p=v.getGeneralPurposeVariable(f),+0;z<n.length;z++)A[z]=n[z].getGeneralPurposeVariable(f-1)}else m=p,n=q,y=r,A=t,v=u;u=k[l+1];p=u.getNextLayerConnectedCells(f);q=u.getPreviousLayerConnectedCells(f);r=[];t=[];for(z=0;z<p.length;z++)r[z]=p[z].getGeneralPurposeVariable(f+1);for(z=0;z<q.length;z++)t[z]=q[z].getGeneralPurposeVariable(f-1);var x=0,B=0;for(z=0;z<y.length;z++)for(var C=0;C<r.length;C++)y[z]>r[C]&&x++,y[z]<r[C]&&B++;for(z=0;z<A.length;z++)for(C=0;C<t.length;C++)A[z]>t[C]&&x++,A[z]<t[C]&&B++;if(B<x||B==x&&e)p=v.getGeneralPurposeVariable(f),v.setGeneralPurposeVariable(f,u.getGeneralPurposeVariable(f)),u.setGeneralPurposeVariable(f,p),p=m,q=n,r=y,t=A,u=v,e||(c=!0)}}}};mxMedianHybridCrossingReduction.prototype.weightedMedian=function(a,b){if(a=0==a%2)for(var c=b.maxRank-1;0<=c;c--)this.medianRank(c,a);else for(c=1;c<b.maxRank;c++)this.medianRank(c,a)};mxMedianHybridCrossingReduction.prototype.medianRank=function(a,b){for(var c=this.nestedBestRanks[a].length,d=[],e=[],f=0;f<c;f++){var g=this.nestedBestRanks[a][f],k=new MedianCellSorter;k.cell=g;var l=b?g.getNextLayerConnectedCells(a):g.getPreviousLayerConnectedCells(a),m=b?a+1:a-1;null!=l&&0!=l.length?(k.medianValue=this.medianValue(l,m),d.push(k)):e[g.getGeneralPurposeVariable(a)]=!0}d.sort(MedianCellSorter.prototype.compare);for(f=0;f<c;f++)null==e[f]&&(g=d.shift().cell,g.setGeneralPurposeVariable(a,f))};mxMedianHybridCrossingReduction.prototype.medianValue=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var f=a[e];c[d++]=f.getGeneralPurposeVariable(b)}c.sort(function(g,k){return g-k});if(1==d%2)return c[Math.floor(d/2)];if(2==d)return(c[0]+c[1])/2;a=d/2;b=c[a-1]-c[0];d=c[d-1]-c[a];return(c[a-1]*d+c[a]*b)/(b+d)};function MedianCellSorter(){}MedianCellSorter.prototype.medianValue=0;MedianCellSorter.prototype.cell=!1;@@ -790,7 +790,7 @@ if(r.isVertex())for(var t=0==k?e.connectsAsSource:e.connectsAsTarget,u=0;u<t.lenthis.prefVertEdgeOff:m>f/2&&(p-=this.prefVertEdgeOff),t=0;t<q;t++)r[4*t+2*k]=n,n+=l,r[4*t+2*k+1]=p}f=e.getNextLayerConnectedCells(b);g=b+1}}};mxCoordinateAssignment.prototype.setEdgePosition=function(a){var b=0;if(101207!=a.temp[0]){var c=a.maxRank,d=a.minRank;c==d&&(c=a.source.maxRank,d=a.target.minRank);for(var e=0,f=this.jettyPositions[a.ids[0]],g=a.isReversed?a.target.cell:a.source.cell,k=this.layout.graph,l=this.orientation==mxConstants.DIRECTION_EAST||this.orientation==mxConstants.DIRECTION_SOUTH,m=0;m<a.edges.length;m++){var n=a.edges[m],p=this.layout.getVisibleTerminal(n,!0),q=[],r=a.isReversed;p!=g&&(r=!r);if(null!=f){var t=r?2:0,u=r?l?this.rankBottomY[d]:this.rankTopY[d]:l?this.rankTopY[c]:this.rankBottomY[c],v=f[4*e+1+t];r!=l&&(v=-v);u+=v;t=f[4*e+t];var y=k.model.getTerminal(n,!0);this.layout.isPort(y)&&k.model.getParent(y)==p&&(t=k.view.getState(y),t=null!=t?t.x:p.geometry.x+a.source.width*y.geometry.x);this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(t,u)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(t,u+v))):(q.push(new mxPoint(u,-t)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u+v,t)))}t=a.x.length-1;u=v=-1;p=a.maxRank-1;for(r&&(t=0,v=a.x.length,u=1,p=a.minRank+1);a.maxRank!=a.minRank&&t!=v;t+=u){y=a.x[t]+b;var A=(this.rankTopY[p]+this.rankBottomY[p+1])/2,z=(this.rankTopY[p-1]+this.rankBottomY[p])/2;if(r){var C=A;A=z;z=C}this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(y,A)),q.push(new mxPoint(y,z))):(q.push(new mxPoint(A,y)),q.push(new mxPoint(z,+t)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u+v,t)))}t=a.x.length-1;u=v=-1;p=a.maxRank-1;for(r&&(t=0,v=a.x.length,u=1,p=a.minRank+1);a.maxRank!=a.minRank&&t!=v;t+=u){y=a.x[t]+b;var A=(this.rankTopY[p]+this.rankBottomY[p+1])/2,z=(this.rankTopY[p-1]+this.rankBottomY[p])/2;if(r){var x=A;A=z;z=x}this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(y,A)),q.push(new mxPoint(y,z))):(q.push(new mxPoint(A,y)),q.push(new mxPoint(z,y)));this.limitX=Math.max(this.limitX,y);p+=u}null!=f&&(t=r?2:0,u=r?l?this.rankTopY[c]:this.rankBottomY[c]:l?this.rankBottomY[d]:this.rankTopY[d],v=f[4*e+3-t],r!=l&&(v=-v),u-=v,t=f[4*e+2-t],r=k.model.getTerminal(n,!1),p=this.layout.getVisibleTerminal(n,!1),this.layout.isPort(r)&&k.model.getParent(r)==p&&(t=k.view.getState(r),t=null!=t?t.x:p.geometry.x+a.target.width*r.geometry.x),this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(t,u-v)),q.push(new mxPoint(t,u))):(this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u-v,t)),q.push(new mxPoint(u,t))));a.isReversed&&this.processReversedEdge(a,n);this.layout.setEdgePoints(n,q);this.layout.resetEdgeLabels&&null!=n.geometry&&(geometry=n.geometry.clone(),geometry.relative=!0,geometry.x=0,geometry.y=0,k.model.setGeometry(n,geometry));b=0==b?this.parallelEdgeSpacing:0<b?-b:-b+this.parallelEdgeSpacing;e++}a.temp[0]=101207}};mxCoordinateAssignment.prototype.setVertexLocation=function(a){var b=a.cell,c=a.x[0]-a.width/2,d=a.y[0]-a.height/2;this.rankTopY[a.minRank]=Math.min(this.rankTopY[a.minRank],d);this.rankBottomY[a.minRank]=Math.max(this.rankBottomY[a.minRank],d+a.height);this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?this.layout.setVertexLocation(b,c,d):this.layout.setVertexLocation(b,d,c);this.limitX=Math.max(this.limitX,c+a.width)};@@ -917,18 +917,18 @@ mxPrintPreview.prototype.getPageClassCss=function(a,b){var c=this.pageMargin,d=tmxUtils.htmlEntities((c/d).toFixed(2))+"in;\n}\n");return b};mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1;this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(G,J){J.init(G.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(G,J,N,L){J.dialect=G.view.graph.dialect;J.init(G.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&(b=!0,this.wnd=window.open());var p=this.wnd.document;if(b){var q=this.getDoctype();null!=q&&0<q.length&&p.writeln(q);"CSS1Compat"===document.compatMode&&p.writeln("<!DOCTYPE html>");p.writeln("<html>");p.writeln("<head>");this.writeHead(p,a);p.writeln("</head>");p.writeln("<body>")}var r=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),t=this.graph.getView().getScale(),u=t/this.scale,v=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=v.x*this.scale,-this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),C=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*C;var B=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),B=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[B]&&-(this.pageFormatClass[B]=!0,this.pendingCss+=this.getPageClassCss(B,f)));var x=mxUtils.bind(this,function(G){null!=this.borderColor&&(G.style.borderColor=this.borderColor,G.style.borderStyle="solid",G.style.borderWidth="1px");G.style.background=this.backgroundColor;null!=B?G.classList.add(B):(G.style.width=f.width+"px",G.style.height=f.height+"px");p.body.appendChild(G)}),D=this.getCoverPages(m,n);if(null!=D)for(var E=0;E<D.length;E++)x(D[E],!0);var I=this.getAppendices(m,n);for(E=0;E<C;E++){var F=-E*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-E;for(a=0;a<z;a++){if(null==this.wnd)return null;var H=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=E*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var K=new mxRectangle(H,F,y,A);this.addGraphFragment(-H,-F,this.scale,g,c,K);null!=e&&0==E&&0==a&&c.setAttribute("id",e);x(c,!0)}}if(null!=I)for(E=0;E<I.length;E++)x(I[E],E<I.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(G){null!=+this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),x=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*x;var B=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),B=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[B]&&+(this.pageFormatClass[B]=!0,this.pendingCss+=this.getPageClassCss(B,f)));var C=mxUtils.bind(this,function(G){null!=this.borderColor&&(G.style.borderColor=this.borderColor,G.style.borderStyle="solid",G.style.borderWidth="1px");G.style.background=this.backgroundColor;null!=B?G.classList.add(B):(G.style.width=f.width+"px",G.style.height=f.height+"px");p.body.appendChild(G)}),E=this.getCoverPages(m,n);if(null!=E)for(var D=0;D<E.length;D++)C(E[D],!0);var I=this.getAppendices(m,n);for(D=0;D<x;D++){var F=+D*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-D;for(a=0;a<z;a++){if(null==this.wnd)return null;var H=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=D*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var K=new mxRectangle(H,F,y,A);this.addGraphFragment(-H,-F,this.scale,g,c,K);null!=e&&0==D&&0==a&&c.setAttribute("id",e);C(c,!0)}}if(null!=I)for(D=0;D<I.length;D++)C(I[D],D<I.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(G){null!=c&&null!=c.parentNode&&c.parentNode.removeChild(c),null!=window.console&&console.error(G)}finally{this.graph.cellRenderer.initializeOverlay=k}return this.wnd};mxPrintPreview.prototype.addPendingCss=function(a){if(null!=this.pendingCss){var b=a.createElement("style");b.setAttribute("type","text/css");b.appendChild(a.createTextNode(this.pendingCss));a.getElementsByTagName("head")[0].appendChild(b);this.pendingCss=null}};mxPrintPreview.prototype.closeDocument=function(){try{if(null!=this.wnd&&null!=this.wnd.document){var a=this.wnd.document;this.writePostfix(a);a.writeln("</body>");a.writeln("</html>");a.close();this.addPendingCss(a);mxEvent.release(a.body)}}catch(b){}};mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");mxClient.link("stylesheet",mxClient.basePath+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);var c=this.pageFormat;this.addPageCss&&null!=c&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),a.writeln(" margin: "+mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(mxUtils.htmlEntities(b,!1,!1,!1));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};mxPrintPreview.prototype.addGraphFragment=function(a,b,c,d,e,f){var g=this.graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroundPane(),m=g.getDrawPane(),n=g.getOverlayPane(),p=c;if(this.graph.dialect==mxConstants.DIALECT_SVG){if(g.createSvg(),this.useCssTransforms()){var q=g.getDrawPane().parentNode;q.setAttribute("transformOrigin","0 0");q.setAttribute("transform","scale("+c+","+c+")translate("+a+","+b+")");c=1;b=a=0}}else g.createHtml();q=g.isEventsEnabled();-g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var C=this.getBackgroundImage();null!=C&&(z=new mxRectangle(Math.round(a*A+C.x),Math.round(b*A+C.y),C.width-1,C.height-1),z=new mxImageShape(z,C.src),z.dialect=this.graph.dialect)}if(this.clipping){var B=-new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),x=this;this.graph.cellRenderer.redraw=function(E,I,F){if(null!=E){var H=y.get(E.cell);if(null!=H&&(H=g.getBoundingBox(H,!1),null!=H&&0<H.width&&0<H.height&&!mxUtils.intersects(B,H))||!x.isCellVisible(E.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(B,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),-this.drawBackgroundImage(z));a=null;try{var D=[this.getRoot()];a=new mxTemporaryCellStates(g,c,D,null,mxUtils.bind(this,function(E){return this.getLinkForCellState(E)}))}finally{for(c=e.firstChild;null!=c;)e=c.nextSibling,"svg"==c.nodeName.toLowerCase()?(c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.display="",c.style.maxWidth="100%",c.style.maxHeight="100%",c.style.overflow=mxClient.IS_SF?"hidden":"clip",c.style.overflowClipMargin=this.overflowClipMargin,c.setAttribute("viewBox",+g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var x=this.getBackgroundImage();null!=x&&(z=new mxRectangle(Math.round(a*A+x.x),Math.round(b*A+x.y),x.width-1,x.height-1),z=new mxImageShape(z,x.src),z.dialect=this.graph.dialect)}if(this.clipping){var B=+new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),C=this;this.graph.cellRenderer.redraw=function(D,I,F){if(null!=D){var H=y.get(D.cell);if(null!=H&&(H=g.getBoundingBox(H,!1),null!=H&&0<H.width&&0<H.height&&!mxUtils.intersects(B,H))||!C.isCellVisible(D.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(B,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),+this.drawBackgroundImage(z));a=null;try{var E=[this.getRoot()];a=new mxTemporaryCellStates(g,c,E,null,mxUtils.bind(this,function(D){return this.getLinkForCellState(D)}))}finally{for(c=e.firstChild;null!=c;)e=c.nextSibling,"svg"==c.nodeName.toLowerCase()?(c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.display="",c.style.maxWidth="100%",c.style.maxHeight="100%",c.style.overflow=mxClient.IS_SF?"hidden":"clip",c.style.overflowClipMargin=this.overflowClipMargin,c.setAttribute("viewBox","0 0 "+(mxClient.IS_SF?f.width+1+" "+(f.height+1):f.width-1+" "+(f.height-1))),this.addGrid(c,f),mxClient.IS_SF&&(f.width>f.height?c.style.height="100%":c.style.width="100%")):this.isTextLabel(c)||c.parentNode.removeChild(c),c=e;g.overlayPane.parentNode.removeChild(g.overlayPane);this.graph.setEnabled(r);this.graph.container=d;this.graph.cellRenderer.redraw=v;this.graph.selectionCellsHandler.updateHandler=u;g.canvas=k;g.backgroundPane=l;g.drawPane=m;g.overlayPane=n;g.translate=t;a.destroy();g.setEventsEnabled(q)}};mxPrintPreview.prototype.addGrid=function(a,b){0<this.gridSize&&0<this.gridSteps&&null!=this.gridColor&&(b=this.createSvgGrid(a,b),a=mxUtils.getSvgDefs(a),null!=a.nextSibling?a.parentNode.insertBefore(b,a.nextSibling):a.parentNode.appendChild(b))};mxPrintPreview.prototype.createSvgGrid=function(a,b){var c=this.gridSize;a=a.ownerDocument;var d=null!=a.createElementNS?a.createElementNS(mxConstants.NS_SVG,"g"):a.createElement("g"),e=mxUtils.mod(Math.ceil(Math.round(b.x)/c),this.gridSteps),f=mxUtils.mod(c-mxUtils.mod(Math.round(b.x),c),c),g=mxUtils.mod(Math.ceil(Math.round(b.y)/c),this.gridSteps),k=mxUtils.mod(c-mxUtils.mod(Math.round(b.y),c),c);f*=this.scale;k*=this.scale;c*=this.scale;for(var l=Math.ceil(b.height/c),m=0;m<l;m++){var n=null!=@@ -1053,31 +1053,31 @@ d[0]:null;var g=a.absolutePoints,k=g[0];g=g[g.length-1];null!=d&&(d=f.transformCk)),mxUtils.contains(c,a,f)||mxUtils.contains(b,a,f)||e.push(new mxPoint(a,f)),1==e.length&&(null!=d?mxUtils.contains(c,a,d.y)||mxUtils.contains(b,a,d.y)||e.push(new mxPoint(a,d.y)):(f=Math.max(b.y,c.y),e.push(new mxPoint(a,f+(Math.min(b.y+b.height,c.y+c.height)-f)/2)))))},TopToBottom:function(a,b,c,d,e){var f=a.view;d=null!=d&&0<d.length?d[0]:null;var g=a.absolutePoints,k=g[0];g=g[g.length-1];null!=d&&(d=f.transformControlPoint(a,d));null!=k&&(b=new mxCellState,b.x=k.x,b.y=k.y);null!=g&&(c=new mxCellState,c.x=g.x,c.y=g.y);null!=b&&null!=c&&(k=Math.max(b.y,c.y),g=Math.min(b.y+b.height,c.y+c.height),a=f.getRoutingCenterX(b),null!=d&&d.x>=b.x&&d.x<=b.x+b.width&&(a=d.x),k=null!=d?d.y:Math.round(g+(k-g)/2),mxUtils.contains(c,a,k)||mxUtils.contains(b,a,k)||e.push(new mxPoint(a,k)),a=null!=d&&d.x>=c.x&&d.x<=c.x+c.width?d.x:f.getRoutingCenterX(c),mxUtils.contains(c,a,k)||mxUtils.contains(b,a,k)||e.push(new mxPoint(a,k)),1==e.length&&(null!=d&&1==e.length?mxUtils.contains(c,d.x,k)||mxUtils.contains(b,d.x,k)||e.push(new mxPoint(d.x,k)):(f=Math.max(b.x,c.x),e.push(new mxPoint(f+(Math.min(b.x+b.width,c.x+c.width)-f)/2,k)))))},SegmentConnector:function(a,b,c,d,e){var f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale);b=mxEdgeStyle.scaleCellState(b,a.view.scale);var g=mxEdgeStyle.scaleCellState(c,a.view.scale);c=[];var k=0<e.length?e[0]:null,l=!0,m=f[0];null==m&&null!=b?m=new mxPoint(a.view.getRoutingCenterX(b),a.view.getRoutingCenterY(b)):null!=m&&(m=m.clone());var n=f.length-1;if(null!=d&&0<d.length){for(var p=-[],q=0;q<d.length;q++){var r=a.view.transformControlPoint(a,d[q],!0);null!=r&&p.push(r)}if(0==p.length)return;null!=m&&null!=p[0]&&(1>Math.abs(p[0].x-m.x)&&(p[0].x=m.x),1>Math.abs(p[0].y-m.y)&&(p[0].y=m.y));r=f[n];null!=r&&null!=p[p.length-1]&&(1>Math.abs(p[p.length-1].x-r.x)&&(p[p.length-1].x=r.x),1>Math.abs(p[p.length-1].y-r.y)&&(p[p.length-1].y=r.y));d=p[0];var t=b,u=f[0],v=d;null!=u&&(t=null);for(q=0;2>q;q++){var y=null!=u&&u.x==v.x,A=null!=u&&u.y==v.y,z=null!=t&&v.y>=t.y&&v.y<=t.y+t.height,C=-null!=t&&v.x>=t.x&&v.x<=t.x+t.width;t=A||null==u&&z;v=y||null==u&&C;if(0!=q||!(t&&v||y&&A)){if(null!=u&&!A&&!y&&(z||C)){l=z?!1:!0;break}if(v||t){l=t;1==q&&(l=0==p.length%2?t:v);break}}t=g;u=f[n];null!=u&&(t=null);v=p[p.length-1];y&&A&&(p=p.slice(1))}l&&(null!=f[0]&&f[0].y!=d.y||null==f[0]&&null!=b&&(d.y<b.y||d.y>b.y+b.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[0]&&f[0].x!=d.x||null==f[0]&&null!=b&&(d.x<b.x||d.x>b.x+b.width))&&c.push(new mxPoint(d.x,m.y));l?m.y=d.y:m.x=d.x;for(q=0;q<p.length;q++)l=+[],q=0;q<d.length;q++){var r=a.view.transformControlPoint(a,d[q],!0);null!=r&&p.push(r)}if(0==p.length)return;null!=m&&null!=p[0]&&(1>Math.abs(p[0].x-m.x)&&(p[0].x=m.x),1>Math.abs(p[0].y-m.y)&&(p[0].y=m.y));r=f[n];null!=r&&null!=p[p.length-1]&&(1>Math.abs(p[p.length-1].x-r.x)&&(p[p.length-1].x=r.x),1>Math.abs(p[p.length-1].y-r.y)&&(p[p.length-1].y=r.y));d=p[0];var t=b,u=f[0],v=d;null!=u&&(t=null);for(q=0;2>q;q++){var y=null!=u&&u.x==v.x,A=null!=u&&u.y==v.y,z=null!=t&&v.y>=t.y&&v.y<=t.y+t.height,x=+null!=t&&v.x>=t.x&&v.x<=t.x+t.width;t=A||null==u&&z;v=y||null==u&&x;if(0!=q||!(t&&v||y&&A)){if(null!=u&&!A&&!y&&(z||x)){l=z?!1:!0;break}if(v||t){l=t;1==q&&(l=0==p.length%2?t:v);break}}t=g;u=f[n];null!=u&&(t=null);v=p[p.length-1];y&&A&&(p=p.slice(1))}l&&(null!=f[0]&&f[0].y!=d.y||null==f[0]&&null!=b&&(d.y<b.y||d.y>b.y+b.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[0]&&f[0].x!=d.x||null==f[0]&&null!=b&&(d.x<b.x||d.x>b.x+b.width))&&c.push(new mxPoint(d.x,m.y));l?m.y=d.y:m.x=d.x;for(q=0;q<p.length;q++)l=!l,d=p[q],l?m.y=d.y:m.x=d.x,c.push(m.clone())}else d=m,l=!0;m=f[n];null==m&&null!=g&&(m=new mxPoint(a.view.getRoutingCenterX(g),a.view.getRoutingCenterY(g)));null!=m&&null!=d&&(l&&(null!=f[n]&&f[n].y!=d.y||null==f[n]&&null!=g&&(d.y<g.y||d.y>g.y+g.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[n]&&f[n].x!=d.x||null==f[n]&&null!=g&&(d.x<g.x||d.x>g.x+g.width))&&c.push(new mxPoint(d.x,m.y)));if(null==f[0]&&null!=b)for(;0<c.length&&null!=c[0]&&mxUtils.contains(b,c[0].x,c[0].y);)c.splice(0,1);if(null==f[n]&&null!=g)for(;0<c.length&&null!=c[c.length-1]&&mxUtils.contains(g,c[c.length-1].x,c[c.length-1].y);)c.splice(c.length-1,1);for(q=0;q<c.length;q++)if(f=c[q],f.x=Math.round(f.x*a.view.scale*10)/10,f.y=Math.round(f.y*a.view.scale*10)/10,null==k||1<=Math.abs(k.x-f.x)||Math.abs(k.y-f.y)>=Math.max(1,a.view.scale))e.push(f),k=f;null!=r&&null!=e[e.length-1]&&1>=Math.abs(r.x-e[e.length-1].x)&&1>=Math.abs(r.y-e[e.length-1].y)&&(e.splice(e.length-1,1),null!=e[e.length-1]&&(1>Math.abs(e[e.length-1].x-r.x)&&(e[e.length-1].x=r.x),1>Math.abs(e[e.length-1].y-r.y)&&(e[e.length-1].y=r.y)))},orthBuffer:10,orthPointsFallback:!0,dirVectors:[[-1,0],[0,-1],[1,0],[0,1],[-1,0],[0,-1],[1,0]],wayPoints1:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],routePatterns:[[[513,2308,2081,2562],[513,1090,514,2184,2114,2561],[513,1090,514,2564,2184,2562],[513,2308,2561,1090,514,2568,2308]],[[514,1057,513,2308,2081,2562],[514,2184,2114,2561],[514,2184,2562,1057,513,2564,2184],[514,1057,513,2568,2308,2561]],[[1090,514,1057,513,2308,2081,2562],[2114,2561],[1090,2562,1057,513,2564,2184],[1090,514,1057,513,2308,2561,2568]],[[2081,2562],[1057,513,1090,514,2184,2114,2561],[1057,513,1090,514,2184,2562,2564],[1057,2561,1090,514,2568,2308]]],inlineRoutePatterns:[[null,[2114,2568],null,null],[null,[514,2081,2114,2568],null,null],[null,[2114,2561],null,null],[[2081,2562],[1057,2114,2568],[2184,2562],null]],vertexSeperations:[],limits:[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]],LEFT_MASK:32,TOP_MASK:64,RIGHT_MASK:128,BOTTOM_MASK:256,LEFT:1,TOP:2,RIGHT:4,BOTTOM:8,SIDE_MASK:480,CENTER_MASK:512,SOURCE_MASK:1024,TARGET_MASK:2048,VERTEX_MASK:3072,getJettySize:function(a,b){var c=mxUtils.getValue(a.style,b?mxConstants.STYLE_SOURCE_JETTY_SIZE:mxConstants.STYLE_TARGET_JETTY_SIZE,mxUtils.getValue(a.style,mxConstants.STYLE_JETTY_SIZE,mxEdgeStyle.orthBuffer));"auto"==c&&(mxUtils.getValue(a.style,b?mxConstants.STYLE_STARTARROW:mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE?(a=mxUtils.getNumber(a.style,b?mxConstants.STYLE_STARTSIZE:mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE),c=Math.max(2,Math.ceil((a+mxEdgeStyle.orthBuffer)/mxEdgeStyle.orthBuffer))*mxEdgeStyle.orthBuffer):c=2*mxEdgeStyle.orthBuffer);return c},scalePointArray:function(a,b){var c=[];if(null!=a)for(var d=0;d<a.length;d++)if(null!=a[d]){var e=new mxPoint(Math.round(a[d].x/b*10)/10,Math.round(a[d].y/b*10)/10);c[d]=e}else c[d]=null;else c=null;return c},scaleCellState:function(a,b){if(null!=a){var c=a.clone();c.setRect(Math.round(a.x/b*10)/10,Math.round(a.y/-b*10)/10,Math.round(a.width/b*10)/10,Math.round(a.height/b*10)/10)}else c=null;return c},OrthConnector:function(a,b,c,d,e){var f=a.view.graph,g=null==l?!1:f.getModel().isEdge(l.cell),k=null==m?!1:f.getModel().isEdge(m.cell);f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale);var l=mxEdgeStyle.scaleCellState(b,a.view.scale),m=mxEdgeStyle.scaleCellState(c,a.view.scale),n=f[0],p=f[f.length-1],q=null!=l?l.x:n.x,r=null!=l?l.y:n.y,t=null!=l?l.width:1,u=null!=l?l.height:1,v=null!=m?m.x:p.x,y=null!=-m?m.y:p.y,A=null!=m?m.width:1,z=null!=m?m.height:1;f=mxEdgeStyle.getJettySize(a,!0);var C=mxEdgeStyle.getJettySize(a,!1);null!=l&&m==l&&(f=C=Math.max(f,C));var B=C+f,x=!1;if(null!=n&&null!=p){x=p.x-n.x;var D=p.y-n.y;x=x*x+D*D<B*B}if(x||mxEdgeStyle.orthPointsFallback&&null!=d&&0<d.length||g||k)mxEdgeStyle.SegmentConnector(a,b,c,d,e);else if(c=[mxConstants.DIRECTION_MASK_ALL,mxConstants.DIRECTION_MASK_ALL],null!=l&&(c[0]=mxUtils.getPortConstraints(l,a,!0,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(l.style,-mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(q,r,t,u),b),q=b.x,r=b.y,t=b.width,u=b.height)),null!=m&&(c[1]=mxUtils.getPortConstraints(m,a,!1,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(m.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(v,y,A,z),b),v=b.x,y=b.y,A=b.width,z=b.height)),0!=t&&0!=u&&0!=A&&0!=z){b=[0,0];q=[[q,r,t,u],[v,y,A,z]];C=[f,C];for(x=0;2>x;x++)mxEdgeStyle.limits[x][1]=q[x][0]-C[x],mxEdgeStyle.limits[x][2]=-q[x][1]-C[x],mxEdgeStyle.limits[x][4]=q[x][0]+q[x][2]+C[x],mxEdgeStyle.limits[x][8]=q[x][1]+q[x][3]+C[x];C=q[0][1]+q[0][3]/2;r=q[1][1]+q[1][3]/2;x=q[0][0]+q[0][2]/2-(q[1][0]+q[1][2]/2);D=C-r;C=0;0>x?C=0>D?2:1:0>=D&&(C=3,0==x&&(C=2));r=null;null!=l&&(r=n);l=[[.5,.5],[.5,.5]];for(x=0;2>x;x++)null!=r&&(l[x][0]=(r.x-q[x][0])/q[x][2],1>=Math.abs(r.x-q[x][0])?b[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(r.x-q[x][0]-q[x][2])&&(b[x]=mxConstants.DIRECTION_MASK_EAST),l[x][1]=(r.y-q[x][1])/q[x][3],1>=Math.abs(r.y--q[x][1])?b[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(r.y-q[x][1]-q[x][3])&&(b[x]=mxConstants.DIRECTION_MASK_SOUTH)),r=null,null!=m&&(r=p);x=q[0][1]-(q[1][1]+q[1][3]);p=q[0][0]-(q[1][0]+q[1][2]);r=q[1][1]-(q[0][1]+q[0][3]);t=q[1][0]-(q[0][0]+q[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(p-B,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-B,0);mxEdgeStyle.vertexSeperations[4]=Math.max(r-B,0);mxEdgeStyle.vertexSeperations[3]=Math.max(t-B,0);B=[];m=[];n=[];m[0]=p>=t?mxConstants.DIRECTION_MASK_WEST:-mxConstants.DIRECTION_MASK_EAST;n[0]=x>=r?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;m[1]=mxUtils.reversePortConstraints(m[0]);n[1]=mxUtils.reversePortConstraints(n[0]);p=p>=t?p:t;r=x>=r?x:r;t=[[0,0],[0,0]];u=!1;for(x=0;2>x;x++)0==b[x]&&(0==(m[x]&c[x])&&(m[x]=mxUtils.reversePortConstraints(m[x])),0==(n[x]&c[x])&&(n[x]=mxUtils.reversePortConstraints(n[x])),t[x][0]=n[x],t[x][1]=m[x]);0<r&&0<p&&(0<(m[0]&c[0])&&0<(n[1]&c[1])?(t[0][0]=m[0],t[0][1]=n[0],t[1][0]=n[1],t[1][1]=m[1],-u=!0):0<(n[0]&c[0])&&0<(m[1]&c[1])&&(t[0][0]=n[0],t[0][1]=m[0],t[1][0]=m[1],t[1][1]=n[1],u=!0));0<r&&!u&&(t[0][0]=n[0],t[0][1]=m[0],t[1][0]=n[1],t[1][1]=m[1],u=!0);0<p&&!u&&(t[0][0]=m[0],t[0][1]=n[0],t[1][0]=m[1],t[1][1]=n[1]);for(x=0;2>x;x++)0==b[x]&&(0==(t[x][0]&c[x])&&(t[x][0]=t[x][1]),B[x]=t[x][0]&c[x],B[x]|=(t[x][1]&c[x])<<8,B[x]|=(t[1-x][x]&c[x])<<16,B[x]|=(t[1-x][1-x]&c[x])<<24,0==(B[x]&15)&&(B[x]<<=8),0==(B[x]&3840)&&(B[x]=B[x]&15|B[x]>>8),0==(B[x]&983040)&&(B[x]=B[x]&65535|(B[x]&251658240)>>-8),b[x]=B[x]&15,c[x]==mxConstants.DIRECTION_MASK_WEST||c[x]==mxConstants.DIRECTION_MASK_NORTH||c[x]==mxConstants.DIRECTION_MASK_EAST||c[x]==mxConstants.DIRECTION_MASK_SOUTH)&&(b[x]=c[x]);c=b[0]==mxConstants.DIRECTION_MASK_EAST?3:b[0];B=b[1]==mxConstants.DIRECTION_MASK_EAST?3:b[1];c-=C;B-=C;1>c&&(c+=4);1>B&&(B+=4);c=mxEdgeStyle.routePatterns[c-1][B-1];mxEdgeStyle.wayPoints1[0][0]=q[0][0];mxEdgeStyle.wayPoints1[0][1]=q[0][1];switch(b[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-=-f;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*q[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*q[0][2];mxEdgeStyle.wayPoints1[0][1]+=q[0][3]+f;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=q[0][2]+f;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*q[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*q[0][2],mxEdgeStyle.wayPoints1[0][1]-=f}f=0;m=B=0<(b[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?-0:1;for(x=0;x<c.length;x++)n=c[x]&15,u=n==mxConstants.DIRECTION_MASK_EAST?3:n,u+=C,4<u&&(u-=4),p=mxEdgeStyle.dirVectors[u-1],n=0<u%2?0:1,n!=B&&(f++,mxEdgeStyle.wayPoints1[f][0]=mxEdgeStyle.wayPoints1[f-1][0],mxEdgeStyle.wayPoints1[f][1]=mxEdgeStyle.wayPoints1[f-1][1]),v=0<(c[x]&mxEdgeStyle.TARGET_MASK),y=0<(c[x]&mxEdgeStyle.SOURCE_MASK),r=(c[x]&mxEdgeStyle.SIDE_MASK)>>5,r<<=C,15<r&&(r>>=4),t=0<(c[x]&mxEdgeStyle.CENTER_MASK),(y||v)&&9>r?(u=y?0:1,r=t&&0==n?q[u][0]+l[u][0]*q[u][2]:t?q[u][1]+l[u][1]*-q[u][3]:mxEdgeStyle.limits[u][r],0==n?(r=(r-mxEdgeStyle.wayPoints1[f][0])*p[0],0<r&&(mxEdgeStyle.wayPoints1[f][0]+=p[0]*r)):(r=(r-mxEdgeStyle.wayPoints1[f][1])*p[1],0<r&&(mxEdgeStyle.wayPoints1[f][1]+=p[1]*r))):t&&(mxEdgeStyle.wayPoints1[f][0]+=p[0]*Math.abs(mxEdgeStyle.vertexSeperations[u]/2),mxEdgeStyle.wayPoints1[f][1]+=p[1]*Math.abs(mxEdgeStyle.vertexSeperations[u]/2)),0<f&&mxEdgeStyle.wayPoints1[f][n]==mxEdgeStyle.wayPoints1[f-1][n]?f--:B=n;for(x=0;x<=f&&(x!=f||((0<(b[1]&(mxConstants.DIRECTION_MASK_EAST|-mxConstants.DIRECTION_MASK_WEST))?0:1)==m?0:1)==(f+1)%2);x++)e.push(new mxPoint(Math.round(mxEdgeStyle.wayPoints1[x][0]*a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[x][1]*a.view.scale*10)/10));for(a=1;a<e.length;)null==e[a-1]||null==e[a]||e[a-1].x!=e[a].x||e[a-1].y!=e[a].y?a++:e.splice(a,1)}},getRoutePattern:function(a,b,c,d){var e=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];a=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];e-=b;a-=b;1>e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];0!=c&&-0!=d||null==inlineRoutePatterns[e-1][a-1]||(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);-mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);-mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource;-mxGraphView.prototype.constructor=mxGraphView;mxGraphView.prototype.EMPTY_POINT=new mxPoint;mxGraphView.prototype.doneResource="none"!=mxClient.language?"done":"";mxGraphView.prototype.updatingDocumentResource="none"!=mxClient.language?"updatingDocument":"";mxGraphView.prototype.allowEval=!1;mxGraphView.prototype.captureDocumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.prototype.currentRoot=null;mxGraphView.prototype.graphBounds=null;-mxGraphView.prototype.scale=1;mxGraphView.prototype.translate=null;mxGraphView.prototype.states=null;mxGraphView.prototype.updateStyle=!1;mxGraphView.prototype.lastNode=null;mxGraphView.prototype.lastHtmlNode=null;mxGraphView.prototype.lastForegroundNode=null;mxGraphView.prototype.lastForegroundHtmlNode=null;mxGraphView.prototype.getGraphBounds=function(){return this.graphBounds};mxGraphView.prototype.setGraphBounds=function(a){this.graphBounds=a};+b*10)/10,Math.round(a.width/b*10)/10,Math.round(a.height/b*10)/10)}else c=null;return c},OrthConnector:function(a,b,c,d,e){var f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale),g=mxEdgeStyle.scaleCellState(b,a.view.scale),k=mxEdgeStyle.scaleCellState(c,a.view.scale),l=f[0],m=f[f.length-1];f=null!=g?g.x:l.x;var n=null!=g?g.y:l.y,p=null!=g?g.width:1,q=null!=g?g.height:1,r=null!=k?k.x:m.x,t=null!=k?k.y:m.y,u=null!=k?k.width:1,v=null!=k?k.height:1,y=mxEdgeStyle.getJettySize(a,!0),A=mxEdgeStyle.getJettySize(a,+!1);null!=g&&k==g&&(y=A=Math.max(y,A));var z=A+y,x=!1;if(null!=l&&null!=m){x=m.x-l.x;var B=m.y-l.y;x=x*x+B*B<z*z}if(x||mxEdgeStyle.orthPointsFallback&&null!=d&&0<d.length)mxEdgeStyle.SegmentConnector(a,b,c,d,e);else if(c=[mxConstants.DIRECTION_MASK_ALL,mxConstants.DIRECTION_MASK_ALL],null!=g&&(c[0]=mxUtils.getPortConstraints(g,a,!0,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(g.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(f,n,p,q),b),f=b.x,n=b.y,p=b.width,+q=b.height)),null!=k&&(c[1]=mxUtils.getPortConstraints(k,a,!1,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(k.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(r,t,u,v),b),r=b.x,t=b.y,u=b.width,v=b.height)),0!=p&&0!=q&&0!=u&&0!=v){b=[0,0];f=[[f,n,p,q],[r,t,u,v]];A=[y,A];for(x=0;2>x;x++)mxEdgeStyle.limits[x][1]=f[x][0]-A[x],mxEdgeStyle.limits[x][2]=f[x][1]-A[x],mxEdgeStyle.limits[x][4]=f[x][0]+f[x][2]+A[x],mxEdgeStyle.limits[x][8]=f[x][1]+f[x][3]+A[x];A=f[0][1]++f[0][3]/2;n=f[1][1]+f[1][3]/2;x=f[0][0]+f[0][2]/2-(f[1][0]+f[1][2]/2);B=A-n;A=0;0>x?A=0>B?2:1:0>=B&&(A=3,0==x&&(A=2));n=null;null!=g&&(n=l);l=[[.5,.5],[.5,.5]];g||(l[0]=[0,0]);k||(l[1]=[0,0]);for(x=0;2>x;x++)null!=n&&(l[x][0]=(n.x-f[x][0])/f[x][2],1>=Math.abs(n.x-f[x][0])?b[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(n.x-f[x][0]-f[x][2])&&(b[x]=mxConstants.DIRECTION_MASK_EAST),l[x][1]=(n.y-f[x][1])/f[x][3],1>=Math.abs(n.y-f[x][1])?b[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(n.y-f[x][1]-f[x][3])&&+(b[x]=mxConstants.DIRECTION_MASK_SOUTH)),n=null,null!=k&&(n=m);x=f[0][1]-(f[1][1]+f[1][3]);m=f[0][0]-(f[1][0]+f[1][2]);n=f[1][1]-(f[0][1]+f[0][3]);p=f[1][0]-(f[0][0]+f[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(m-z,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-z,0);mxEdgeStyle.vertexSeperations[4]=Math.max(n-z,0);mxEdgeStyle.vertexSeperations[3]=Math.max(p-z,0);z=[];g=[];k=[];g[0]=m>=p?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;k[0]=x>=n?mxConstants.DIRECTION_MASK_NORTH:+mxConstants.DIRECTION_MASK_SOUTH;g[1]=mxUtils.reversePortConstraints(g[0]);k[1]=mxUtils.reversePortConstraints(k[0]);m=m>=p?m:p;n=x>=n?x:n;p=[[0,0],[0,0]];q=!1;for(x=0;2>x;x++)0==b[x]&&(0==(g[x]&c[x])&&(g[x]=mxUtils.reversePortConstraints(g[x])),0==(k[x]&c[x])&&(k[x]=mxUtils.reversePortConstraints(k[x])),p[x][0]=k[x],p[x][1]=g[x]);0<n&&0<m&&(0<(g[0]&c[0])&&0<(k[1]&c[1])?(p[0][0]=g[0],p[0][1]=k[0],p[1][0]=k[1],p[1][1]=g[1],q=!0):0<(k[0]&c[0])&&0<(g[1]&c[1])&&(p[0][0]=k[0],p[0][1]=g[0],p[1][0]=g[1],+p[1][1]=k[1],q=!0));0<n&&!q&&(p[0][0]=k[0],p[0][1]=g[0],p[1][0]=k[1],p[1][1]=g[1],q=!0);0<m&&!q&&(p[0][0]=g[0],p[0][1]=k[0],p[1][0]=g[1],p[1][1]=k[1]);for(x=0;2>x;x++)0==b[x]&&(0==(p[x][0]&c[x])&&(p[x][0]=p[x][1]),z[x]=p[x][0]&c[x],z[x]|=(p[x][1]&c[x])<<8,z[x]|=(p[1-x][x]&c[x])<<16,z[x]|=(p[1-x][1-x]&c[x])<<24,0==(z[x]&15)&&(z[x]<<=8),0==(z[x]&3840)&&(z[x]=z[x]&15|z[x]>>8),0==(z[x]&983040)&&(z[x]=z[x]&65535|(z[x]&251658240)>>8),b[x]=z[x]&15,c[x]==mxConstants.DIRECTION_MASK_WEST||c[x]==mxConstants.DIRECTION_MASK_NORTH||+c[x]==mxConstants.DIRECTION_MASK_EAST||c[x]==mxConstants.DIRECTION_MASK_SOUTH)&&(b[x]=c[x]);c=b[0]==mxConstants.DIRECTION_MASK_EAST?3:b[0];z=b[1]==mxConstants.DIRECTION_MASK_EAST?3:b[1];c-=A;z-=A;1>c&&(c+=4);1>z&&(z+=4);c=mxEdgeStyle.routePatterns[c-1][z-1];mxEdgeStyle.wayPoints1[0][0]=f[0][0];mxEdgeStyle.wayPoints1[0][1]=f[0][1];switch(b[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-=y;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*f[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=+l[0][0]*f[0][2];mxEdgeStyle.wayPoints1[0][1]+=f[0][3]+y;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=f[0][2]+y;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*f[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*f[0][2],mxEdgeStyle.wayPoints1[0][1]-=y}y=0;g=z=0<(b[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?0:1;for(x=0;x<c.length;x++)k=c[x]&15,q=k==mxConstants.DIRECTION_MASK_EAST?3:k,q+=A,4<q&&(q-=4),m=mxEdgeStyle.dirVectors[q-+1],k=0<q%2?0:1,k!=z&&(y++,mxEdgeStyle.wayPoints1[y][0]=mxEdgeStyle.wayPoints1[y-1][0],mxEdgeStyle.wayPoints1[y][1]=mxEdgeStyle.wayPoints1[y-1][1]),r=0<(c[x]&mxEdgeStyle.TARGET_MASK),t=0<(c[x]&mxEdgeStyle.SOURCE_MASK),n=(c[x]&mxEdgeStyle.SIDE_MASK)>>5,n<<=A,15<n&&(n>>=4),p=0<(c[x]&mxEdgeStyle.CENTER_MASK),(t||r)&&9>n?(q=t?0:1,n=p&&0==k?f[q][0]+l[q][0]*f[q][2]:p?f[q][1]+l[q][1]*f[q][3]:mxEdgeStyle.limits[q][n],0==k?(n=(n-mxEdgeStyle.wayPoints1[y][0])*m[0],0<n&&(mxEdgeStyle.wayPoints1[y][0]+=m[0]*n)):+(n=(n-mxEdgeStyle.wayPoints1[y][1])*m[1],0<n&&(mxEdgeStyle.wayPoints1[y][1]+=m[1]*n))):p&&(mxEdgeStyle.wayPoints1[y][0]+=m[0]*Math.abs(mxEdgeStyle.vertexSeperations[q]/2),mxEdgeStyle.wayPoints1[y][1]+=m[1]*Math.abs(mxEdgeStyle.vertexSeperations[q]/2)),0<y&&mxEdgeStyle.wayPoints1[y][k]==mxEdgeStyle.wayPoints1[y-1][k]?y--:z=k;for(x=0;x<=y&&(x!=y||((0<(b[1]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?0:1)==g?0:1)==(y+1)%2);x++)e.push(new mxPoint(Math.round(mxEdgeStyle.wayPoints1[x][0]*+a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[x][1]*a.view.scale*10)/10));for(a=1;a<e.length;)null==e[a-1]||null==e[a]||e[a-1].x!=e[a].x||e[a-1].y!=e[a].y?a++:e.splice(a,1)}},getRoutePattern:function(a,b,c,d){var e=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];a=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];e-=b;a-=b;1>e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];0!=c&&0!=d||null==inlineRoutePatterns[e-1][a-1]||(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,+b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);+mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);+mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource;mxGraphView.prototype.constructor=mxGraphView;mxGraphView.prototype.EMPTY_POINT=new mxPoint;mxGraphView.prototype.doneResource="none"!=mxClient.language?"done":"";+mxGraphView.prototype.updatingDocumentResource="none"!=mxClient.language?"updatingDocument":"";mxGraphView.prototype.allowEval=!1;mxGraphView.prototype.captureDocumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.prototype.currentRoot=null;mxGraphView.prototype.graphBounds=null;mxGraphView.prototype.scale=1;mxGraphView.prototype.translate=null;mxGraphView.prototype.states=null;mxGraphView.prototype.updateStyle=!1;mxGraphView.prototype.lastNode=null;+mxGraphView.prototype.lastHtmlNode=null;mxGraphView.prototype.lastForegroundNode=null;mxGraphView.prototype.lastForegroundHtmlNode=null;mxGraphView.prototype.getGraphBounds=function(){return this.graphBounds};mxGraphView.prototype.setGraphBounds=function(a){this.graphBounds=a};mxGraphView.prototype.getBounds=function(a){var b=null;if(null!=a&&0<a.length)for(var c=this.graph.getModel(),d=0;d<a.length;d++)if(c.isVertex(a[d])||c.isEdge(a[d])){var e=this.getState(a[d]);null!=e&&(null==b?b=mxRectangle.fromRectangle(e):b.add(e))}return b};mxGraphView.prototype.setCurrentRoot=function(a){if(this.currentRoot!=a){var b=new mxCurrentRootChange(this,a);b.execute();var c=new mxUndoableEdit(this,!0);c.add(b);this.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",c));this.graph.sizeDidChange()}return a};mxGraphView.prototype.scaleAndTranslate=function(a,b,c){var d=this.scale,e=new mxPoint(this.translate.x,this.translate.y);if(this.scale!=a||this.translate.x!=b||this.translate.y!=c)this.scale=a,this.translate.x=b,this.translate.y=c,this.isEventsEnabled()&&this.viewStateChanged();this.fireEvent(new mxEventObject(mxEvent.SCALE_AND_TRANSLATE,"scale",a,"previousScale",d,"translate",this.translate,"previousTranslate",e))};mxGraphView.prototype.getScale=function(){return this.scale};mxGraphView.prototype.setScale=function(a){var b=this.scale;this.scale!=a&&(this.scale=a,this.isEventsEnabled()&&this.viewStateChanged());this.fireEvent(new mxEventObject(mxEvent.SCALE,"scale",a,"previousScale",b))};mxGraphView.prototype.getTranslate=function(){return this.translate};@@ -3487,7 +3487,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 ra=function(ua,Ja){ua=Ja.getProperty("dialog");X.parentNode==ua.container&&(k.editor.removeListener(ra),k.removeListener(xa))};k.editor.addListener("hideDialog",ra)}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.2.3";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.2.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&&"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:{useWidth:1E3,useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',@@ -4191,7 +4191,7 @@ n.updateTabContainer=function(){aa.apply(this,arguments);n.tabContainer.appendChvar oa=n.actions.get("zoomIn"),Y=n.actions.get("zoomOut");m=n.actions.get("resetView");var da=n.actions.get("undo"),ha=n.actions.get("redo"),Z=Q("",da.funct,null,"",da,Editor.undoImage),k=Q("",ha.funct,null,"",ha,Editor.redoImage),v=Q("",function(J){mxEvent.isAltDown(J)?(n.hideCurrentMenu(),n.actions.get("customZoom").funct()):(n.hideCurrentMenu(),n.actions.get("smartFit").funct());mxEvent.consume(J)},!0,"",m,Editor.zoomFitImage);n.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){f(n,null)});n.container.appendChild(n.tabContainer);n.container.appendChild(F);n.updateTabContainer();!EditorUi.windowed&&1E3<=l&&b(this,!0);g();n.addListener("lockedChanged",g);n.addListener("languageChanged",g);n.editor.graph.addListener("enabledChanged",g);mxEvent.addListener(window,"resize",function(){g();null!=n.sidebarWindow&&n.sidebarWindow.window.fit();null!=n.formatWindow&&n.formatWindow.window.fit();null!=n.actions.outlineWindow&&n.actions.outlineWindow.window.fit();null!=n.actions.layersWindow&&n.actions.layersWindow.window.fit();null!=n.menus.chatWindow&&n.menus.chatWindow.window.fit();null!=n.menus.tagsWindow&&n.menus.tagsWindow.window.fit();null!=n.menus.findWindow&&n.menus.findWindow.window.fit();null!=n.menus.findReplaceWindow&&n.menus.findReplaceWindow.window.fit()})}}};-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var f=EditorUi.initTheme;EditorUi.initTheme=function(){f.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,f,l,u,y,q,C){this.file=b;this.id=f;this.content=l;this.modifiedDate=u;this.createdDate=y;this.isResolved=q;this.user=C;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,f,l,u,y){f()};DrawioComment.prototype.editComment=function(b,f,l){f()};DrawioComment.prototype.deleteComment=function(b,f){b()};DrawioUser=function(b,f,l,u,y){this.id=b;this.email=f;this.displayName=l;this.pictureUrl=u;this.locale=y};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on Connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfindInDiagram=Find in Diagram\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to Right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste Here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to Left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate Shape Only by 90°\ntype=Type\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache page IDs mapping\nconfARemImpPages=Remember imported pages\ndelCachedData=Delete Cached Data\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;+(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var f=EditorUi.initTheme;EditorUi.initTheme=function(){f.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,f,l,u,y,q,C){this.file=b;this.id=f;this.content=l;this.modifiedDate=u;this.createdDate=y;this.isResolved=q;this.user=C;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,f,l,u,y){f()};DrawioComment.prototype.editComment=function(b,f,l){f()};DrawioComment.prototype.deleteComment=function(b,f){b()};DrawioUser=function(b,f,l,u,y){this.id=b;this.email=f;this.displayName=l;this.pictureUrl=u;this.locale=y};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on Connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfindInDiagram=Find in Diagram\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to Right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste Here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to Left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate Shape Only by 90°\ntype=Type\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache page IDs mapping\nconfARemImpPages=Remember imported pages\ndelCachedData=Delete Cached Data\nk15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];Editor.currentTheme="";window.uiTheme="";GraphViewer=function(b,f,l){this.init(b,f,l)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="1"==urlParams.dev?"https://test.draw.io/":"https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl=window.DRAWIO_BASE_URL+"/";GraphViewer.prototype.toolbarHeight="BackCompat"==document.compatMode?24:26;GraphViewer.prototype.lightboxChrome=!0;GraphViewer.prototype.lightboxZIndex=999;GraphViewer.prototype.toolbarZIndex=999;GraphViewer.prototype.autoFit=!1;GraphViewer.prototype.autoCrop=!1;GraphViewer.prototype.autoOrigin=!0;GraphViewer.prototype.center=!1;GraphViewer.prototype.forceCenter=!1;GraphViewer.prototype.allowZoomIn=!1;GraphViewer.prototype.allowZoomOut=!0;GraphViewer.prototype.showTitleAsTooltip=!1;GraphViewer.prototype.checkVisibleState=!0;GraphViewer.prototype.minHeight=28;GraphViewer.prototype.minWidth=100;GraphViewer.prototype.responsive=!1;GraphViewer.prototype.darkMode=null;GraphViewer.prototype.init=function(b,f,l){GraphViewer.initCss();this.graphConfig=null!=l?l:{};this.autoFit=null!=this.graphConfig["auto-fit"]?this.graphConfig["auto-fit"]:this.autoFit;this.autoCrop=null!=this.graphConfig["auto-crop"]?this.graphConfig["auto-crop"]:this.autoCrop;this.autoOrigin=null!=this.graphConfig["auto-origin"]?this.graphConfig["auto-origin"]:this.autoOrigin;this.allowZoomOut=null!=this.graphConfig["allow-zoom-out"]?this.graphConfig["allow-zoom-out"]:this.allowZoomOut;this.allowZoomIn=@@ -4233,7 +4233,7 @@ H<C;H++)S=b.getChildAt(b.root,H),b.setVisible(S,q[S.id]||!1)}else for(H=0;H<C;H+GraphViewer.prototype.addToolbar=function(){var b=this.graph.container;"bottom"==this.graphConfig["toolbar-position"]?b.style.marginBottom=this.toolbarHeight+"px":"inline"!=this.graphConfig["toolbar-position"]&&(b.style.marginTop=this.toolbarHeight+"px");var f=b.ownerDocument.createElement("div");f.style.display="flex";f.style.alignItems="center";f.style.position="absolute";f.style.overflow="hidden";f.style.boxSizing="border-box";f.style.whiteSpace="nowrap";f.style.textAlign="left";f.style.zIndex=this.toolbarZIndex;f.style.backgroundColor="light-dark(#eeeeee, "+GraphViewer.darkBackgroundColor+")";f.style.height=this.toolbarHeight+"px";var l=mxUtils.bind(this,function(){this.isDarkMode()?(f.classList.add("geDarkMode"),f.style.colorScheme="dark"):(f.classList.remove("geDarkMode"),f.style.colorScheme="light")});this.addListener("darkModeChanged",l);this.toolbar=f;l();if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(f.style,"transition","opacity 100ms ease-in-out");mxUtils.setOpacity(f,30);var u=null,y=null,q=mxUtils.bind(this,function(ba){null!=u&&(window.clearTimeout(u),fadeThead=null);null!=y&&(window.clearTimeout(y),fadeThead2=null);u=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(f,0);u=null;y=window.setTimeout(mxUtils.bind(this,function(){f.style.display="none";y=null}),100)}),ba||200)}),C=mxUtils.bind(this,function(ba){null!=u&&(window.clearTimeout(u),fadeThead=null);null!=y&&(window.clearTimeout(y),fadeThead2=null);f.style.display=-"";mxUtils.setOpacity(f,ba||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(ba){mxEvent.isTouchEvent(ba)||(C(30),q())}));mxEvent.addListener(f,mxClient.IS_POINTER?"pointermove":"mousemove",function(ba){mxEvent.consume(ba)});mxEvent.addListener(f,"mouseenter",mxUtils.bind(this,function(ba){C(100)}));mxEvent.addListener(f,"mousemove",mxUtils.bind(this,function(ba){C(100);mxEvent.consume(ba)}));mxEvent.addListener(f,"mouseleave",+"flex";mxUtils.setOpacity(f,ba||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(ba){mxEvent.isTouchEvent(ba)||(C(30),q())}));mxEvent.addListener(f,mxClient.IS_POINTER?"pointermove":"mousemove",function(ba){mxEvent.consume(ba)});mxEvent.addListener(f,"mouseenter",mxUtils.bind(this,function(ba){C(100)}));mxEvent.addListener(f,"mousemove",mxUtils.bind(this,function(ba){C(100);mxEvent.consume(ba)}));mxEvent.addListener(f,"mouseleave",mxUtils.bind(this,function(ba){mxEvent.isTouchEvent(ba)||C(30)}));var H=this.graph,S=H.getTolerance();H.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ba,oa){this.startX=oa.getGraphX();this.startY=oa.getGraphY();this.scrollLeft=H.container.scrollLeft;this.scrollTop=H.container.scrollTop},mouseMove:function(ba,oa){},mouseUp:function(ba,oa){mxEvent.isTouchEvent(oa.getEvent())&&Math.abs(this.scrollLeft-H.container.scrollLeft)<S&&Math.abs(this.scrollTop-H.container.scrollTop)<S&&Math.abs(this.startX-oa.getGraphX())<S&&Math.abs(this.startY-oa.getGraphY())<S&&(0<parseFloat(f.style.opacity||0)?q():C(30))}})}l=this.toolbarItems;for(var E=0,Q=mxUtils.bind(this,function(ba,oa,Y,da){ba=this.createToolbarButton(ba,oa,Y,da);f.appendChild(ba);E++;return ba}),c=this.graph.getModel(),g=null,m=null,n=null,x=null,F=0;F<l.length;F++){var I=l[F];if("pages"==I){x=b.ownerDocument.createElement("div");x.style.display="inline-flex";x.style.position="relative";x.style.alignItems="center";x.style.padding="4px";x.style.fontFamily=GraphViewer.cssFontFamily;x.style.fontSize="12px";x.style.cursor="default";x.style.color="light-dark(#000000, #ffffff)";mxUtils.setOpacity(x,70);var M=Q(mxUtils.bind(this,function(){this.selectPage(this.currentPage-1)}),Editor.chevronLeftImage,mxResources.get("previousPage")||"Previous Page");M.style.borderRightStyle="none";M.style.paddingLeft="0px";M.style.paddingRight="0px";f.appendChild(x);var L=Q(mxUtils.bind(this,function(){this.selectPage(this.currentPage+diff --git a/src/main/webapp/js/viewer.min.js b/src/main/webapp/js/viewer.min.jsindex 57e98e98e..018dc85d3 100644--- a/src/main/webapp/js/viewer.min.js+++ b/src/main/webapp/js/viewer.min.js@@ -29,7 +29,7 @@ b),-1!==c&&c===b&&(window.DRAWIO_LOG_URL="https://log.draw.io"))}})();"1"==urlPa"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.2.3",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"28.2.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/"),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||@@ -60,7 +60,7 @@ mxRectangle.prototype.equals=function(a){return null!=a&&a.x==this.x&&a.y==this.var mxEffects={animateChanges:function(a,b,c){var d=0,e=function(){for(var g=!1,k=0;k<b.length;k++){var l=b[k];if(l instanceof mxGeometryChange||l instanceof mxTerminalChange||l instanceof mxValueChange||l instanceof mxChildChange||l instanceof mxStyleChange){var m=a.getView().getState(l.cell||l.child,!1);if(null!=m)if(g=!0,l.constructor!=mxGeometryChange||a.model.isEdge(l.cell))mxUtils.setOpacity(m.shape.node,100*d/10);else{var n=a.getView().scale,p=(l.geometry.x-l.previous.x)*n,q=(l.geometry.y-l.previous.y)*n,r=(l.geometry.width-l.previous.width)*n;n*=l.geometry.height-l.previous.height;0==d?(m.x-=p,m.y-=q,m.width-=r,m.height-=n):(m.x+=p/10,m.y+=q/10,m.width+=r/10,m.height+=n/10);a.cellRenderer.redraw(m);mxEffects.cascadeOpacity(a,l.cell,100*d/10)}}}10>d&&g?(d++,window.setTimeout(e,f)):null!=c&&c()},f=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;e<d;e++){var f=a.model.getChildAt(b,e),g=a.getView().getState(f);null!=g&&(mxUtils.setOpacity(g.shape.node,c),mxEffects.cascadeOpacity(a,f,c))}b=a.model.getEdges(b);if(null!=b)for(e=0;e<b.length;e++)d=a.getView().getState(b[e]),null!=d&&mxUtils.setOpacity(d.shape.node,c)},fadeOut:function(a,b,c,d,e,f){d=d||40;e=e||30;var g=b||100;mxUtils.setOpacity(a,g);if(f||null==f){var k=function(){g=Math.max(g-d,0);mxUtils.setOpacity(a,g);0<g?window.setTimeout(k,e):(a.style.visibility="hidden",c&&a.parentNode&&a.parentNode.removeChild(a))};window.setTimeout(k,e)}else a.style.visibility="hidden",c&&a.parentNode&&a.parentNode.removeChild(a)}},-mxUtils={errorResource:"none"!=mxClient.language?"error":"",closeResource:"none"!=mxClient.language?"close":"",errorImage:mxClient.imageBasePath+"/error.gif",lightDarkColorSupported:function(){var a=document.createElement("div");a.style.color="light-dark(white, black)";a=a.style.color;null!=a&&"generic-light-dark("===a.substring(0,19)&&(a=a.replace("generic-light-dark","light-dark"));return"light-dark(white, black)"===a}(),preferDarkColor:!1,lightDarkColorRegex:/light-dark\(\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,+mxUtils={errorResource:"none"!=mxClient.language?"error":"",closeResource:"none"!=mxClient.language?"close":"",errorImage:mxClient.imageBasePath+"/error.gif",lightDarkColorSupported:function(){var a=document.createElement("div");a.style.color="light-dark(white, black)";a=a.style.color;null!=a&&"generic-light-dark("===a.substring(0,19)&&(a=a.replace("generic-light-dark","light-dark"));return"light-dark(white, black)"===a}(),preferDarkColor:!1,lightDarkColorRegex:/light-dark\(\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,varColorRegex:/^var\([^)]+\)/,hexColorRegex:/(^#[a-zA-Z0-9]*$)/,rgbaColorRegex:/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i,canvasContext:function(){var a=null;try{a=document.createElement("canvas").getContext("2d")}catch(b){}return a}(),validInvalidColor:"rgba(0, 0, 0, 0)",normalizedValidInvalidColor:"rgba(0,0,0,0)",removeCursors:function(a){null!=a.style&&(a.style.cursor="");a=a.childNodes;if(null!=a)for(var b=a.length,c=0;c<b;c+=1)mxUtils.removeCursors(a[c])},getCurrentStyle:function(){return mxClient.IS_IE&&(null==document.documentMode||9>document.documentMode)?function(a){return null!=a?a.currentStyle:null}:function(a){return null!=a?window.getComputedStyle(a,""):null}}(),getCssFontFamily:function(a){if("string"===typeof a){a=a.split(",");for(var b=0;b<a.length;b++)a[b]=mxUtils.trim(a[b]),'"'==a[b].charAt(0)&&'"'==a[b].charAt(a[b].length-1)&&(a[b]=a[b].substring(1,a[b].length-1));a=a.join(", ")}return a},parseCssFontFamily:function(a,b){if("string"===typeof a){a=a.split(",");for(var c=0;c<a.length;c++){a[c]=mxUtils.trim(a[c]);var d=2<a[c].length&&'"'==a[c].charAt(a[c].length-1)&&'"'==a[c].charAt(0);d&&(a[c]=a[c].substring(1,a[c].length-1));b&&(a[c]=mxUtils.htmlEntities(a[c]));if(d||0<=a[c].indexOf(" "))a[c]='"'+a[c]+'"'}a=a.join(", ")}return a},parseCssNumber:function(a){"thin"==a?a="2":"medium"==a?a="4":"thick"==a&&(a="6");a=parseFloat(a);isNaN(a)&&(a=0);return a},setPrefixedStyle:function(){var a=null;mxClient.IS_OT?a="O":mxClient.IS_SF||mxClient.IS_GC?a="Webkit":mxClient.IS_MT?a="Moz":mxClient.IS_IE&&@@ -87,19 +87,19 @@ b,c-e)+"px")},load:function(a){a=new mxXmlRequest(a,null,"GET",!1);a.send();retup||299<p?g():(e[m]=n,d--,0==d&&b(e))},g)})(a[k],k);0==d&&b(e)},post:function(a,b,c,d){return(new mxXmlRequest(a,b)).send(c,d)},submit:function(a,b,c,d){return(new mxXmlRequest(a,b)).simulate(c,d)},loadInto:function(a,b,c){mxClient.IS_IE?b.onreadystatechange=function(){4==b.readyState&&c()}:b.addEventListener("load",c,!1);b.load(a)},getValue:function(a,b,c){a=null!=a?a[b]:null;null==a&&(a=c);return a},getColorValue:function(a,b,c){a=null!=a?a[b]:null;if(null==a||"default"==a)a=c;return a},getNumber:function(a,b,c){a=null!=a?a[b]:null;null==a&&(a=c||0);return Number(a)},isLightDarkColor:function(a){return"string"===typeof a&&"light-dark"==mxUtils.ltrim(a).substring(0,10)},isVarColor:function(a){return mxUtils.varColorRegex.test(a)},isHexColor:function(a){return mxUtils.hexColorRegex.test(a)},isRgbColor:function(a){return mxUtils.rgbaColorRegex.test(a)},isValidColor:function(a){if(null==a)return!1;a=String(a).replace(/\s/g,"");if(a.toLowerCase()==mxUtils.normalizedValidInvalidColor)return!0;mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor;mxUtils.canvasContext.fillStyle=a;return mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor},isDarkColor:function(a){a=mxUtils.parseColor(a);return null!=a?128>.213*a.r+.715*a.g+.072*a.b:!1},parseLightDarkColor:function(a,b,c){var d=a,e=null;null!=a&&(a=a.match(mxUtils.lightDarkColorRegex))&&3===a.length&&(d=mxUtils.trim(a[1]),e=mxUtils.trim(a[2]));null==e&&(c||mxUtils.isVarColor(d))&&(e=d);e=null!=e?e:null!=b?b:mxUtils.getInverseColor(d);return{light:d,dark:e}},-getInverseColor:function(a,b,c){function d(m){return Math.round(b/100*(255-m)+m*(1-b/100))}function e(m){return Math.round(Math.max(0,Math.min(255,m)))}c=null!=c?c:180;b=null!=b?b:93;var f=0,g=0,k=0;if("transparent"==a.toLowerCase())return a;k=mxUtils.parseColor(a);if(null==k)return a;f=k.r;g=k.g;k=k.b;f=d(f);g=d(g);k=d(k);a=[1,0,0,0,1,0,0,0,1];var l=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);a[0]=.2126+.7874*l-.2126*c;a[1]=.7152-.7152*l-.7152*c;a[2]=.0722-.0722*l+.9278*c;a[3]=.2126-.2126*-l+.143*c;a[4]=.7152+(1-.7152)*l+.14*c;a[5]=.0722-.0722*l-.283*c;a[6]=.2126-.2126*l-.7874*c;a[7]=.7152-.7152*l+.7152*c;a[8]=.0722+.9278*l+.0722*c;c=e(a[0]*f+a[1]*g+a[2]*k);l=e(a[3]*f+a[4]*g+a[5]*k);f=e(a[6]*f+a[7]*g+a[8]*k);return"#"+(16777216|c<<16|l<<8|f).toString(16).slice(1)},addAlphaToColor:function(a,b){null!=b&&null!=a&&"transparent"!=a&&(a=mxUtils.parseColor(a),a="rgba("+a.r+","+a.g+","+a.b+","+b+")");return a},getLightDarkColor:function(a,b,c,d){var e={light:"transparent",dark:"transparent",-cssText:"transparent"};null!=a&&a!=mxConstants.NONE&&("string"===typeof a?(a=mxUtils.parseLightDarkColor(a,c,d),e.light=mxUtils.addAlphaToColor(a.light,b),e.dark=mxUtils.addAlphaToColor(a.dark,b),e.cssText=mxUtils.lightDarkColorSupported?e.light==e.dark?e.light:"light-dark("+e.light+", "+e.dark+")":mxUtils.preferDarkColor?e.dark:e.light):(e.light=a,e.dark=a,e.cssText=a));return e},invertLightDarkColor:function(a){var b={};b.light=a.dark;b.dark=a.light;b.cssText=b.light==b.dark?b.light:"light-dark("+-b.light+", "+b.dark+")";return b},getColor:function(a,b,c){a=null!=a?a[b]:null;null==a?a=c:a==mxConstants.NONE&&(a=null);return a},isEmptyObject:function(a){for(var b in a)return!1;return!0},clone:function(a,b,c){c=null!=c?c:!1;var d=null;if(null!=a&&"function"==typeof a.constructor)if(a.constructor===Element)d=a.cloneNode(null!=c?!c:!1);else{d=new a.constructor;for(var e in a)e!=mxObjectIdentity.FIELD_NAME&&(null==b||0>mxUtils.indexOf(b,e))&&(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},-equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c<a.length;c++)if(null!=a[c]&&null==b[c]||null==a[c]&&null!=b[c]||null!=a[c]&&null!=b[c]&&(a[c].x!=b[c].x||a[c].y!=b[c].y))return!1;return!0},equalEntries:function(a,b){var c=0;if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b){for(var d in b)c++;for(d in a)if(c--,!(mxUtils.isNaN(a[d])&&mxUtils.isNaN(b[d])||-a[d]==b[d]))return!1}return 0==c},removeDuplicates:function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},toString:function(a){var b="",c;for(c in a)try{if(null==a[c])b+=c+" = [null]\n";else if("function"==typeof a[c])b+=c+" => [Function]\n";else if("object"==typeof a[c]){var d=-mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return A;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);A=Math.sin(e*Math.PI/180);e=p*m+A*n;m=-1*A*m+p*n;n=e*e;var q=m*m,r=c*c,t=d*d,u=n/r+q/t;1<u?(c*=Math.sqrt(u),d*=Math.sqrt(u),f=0):(u=1,f===g&&-(u=-1),f=u*Math.sqrt((r*t-r*q-t*n)/(r*q+t*n)));n=f*c*m/d;q=-1*f*d*e/c;k=p*n-A*q+k/2;l=A*n+p*q+l/2;r=Math.atan2((m-q)/d,(e-n)/c)-Math.atan2(0,1);f=0<=r?r:2*Math.PI+r;r=Math.atan2((-m-q)/d,(-e-n)/c)-Math.atan2((m-q)/d,(e-n)/c);e=0<=r?r:2*Math.PI+r;0==g&&0<e?e-=2*Math.PI:0!=g&&0>e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=A;d*=A;var v=Math.cos(f),y=Math.sin(f);q=-m*(n*y+d*v);r=-m*(c*y-p*v);for(var A=[],z=0;z<g;++z){f+=e;v=-Math.cos(f);y=Math.sin(f);t=n*v-d*y+k;u=c*v+p*y+l;var C=-m*(n*y+d*v);v=-m*(c*y-p*v);y=6*z;A[y]=Number(q+a);A[y+1]=Number(r+b);A[y+2]=Number(t-C+a);A[y+3]=Number(u-v+b);A[y+4]=Number(t+a);A[y+5]=Number(u+b);q=t+C;r=u+v}return A},getBoundingBox:function(a,b,c){var d=null;if(null!=a&&null!=b&&0!=b){b=mxUtils.toRadians(b);d=Math.cos(b);var e=Math.sin(b);c=null!=c?c:new mxPoint(a.x+a.width/2,a.y+a.height/2);var f=new mxPoint(a.x,a.y);b=new mxPoint(a.x+a.width,a.y);var g=new mxPoint(b.x,a.y+a.height);a=-new mxPoint(a.x,g.y);f=mxUtils.getRotatedPoint(f,d,e,c);b=mxUtils.getRotatedPoint(b,d,e,c);g=mxUtils.getRotatedPoint(g,d,e,c);a=mxUtils.getRotatedPoint(a,d,e,c);d=new mxRectangle(f.x,f.y,0,0);d.add(new mxRectangle(b.x,b.y,0,0));d.add(new mxRectangle(g.x,g.y,0,0));d.add(new mxRectangle(a.x,a.y,0,0))}return d},getRotatedPoint:function(a,b,c,d){d=null!=d?d:new mxPoint;var e=a.x-d.x;a=a.y-d.y;return new mxPoint(e*b-a*c+d.x,a*b+e*c+d.y)},getPortConstraints:function(a,b,c,d){b=mxUtils.getValue(a.style,-mxConstants.STYLE_PORT_CONSTRAINT,mxUtils.getValue(b.style,c?mxConstants.STYLE_SOURCE_PORT_CONSTRAINT:mxConstants.STYLE_TARGET_PORT_CONSTRAINT,null));if(null==b)return d;d=b.toString();b=mxConstants.DIRECTION_MASK_NONE;c=0;1==mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT_ROTATION,0)&&(c=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0));a=0;45<c?(a=1,135<=c&&(a=2)):-45>c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_NORTH;-break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 1:b|=-mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<+getInverseColor:function(a,b,c){function d(n){return Math.round(b/100*(255-n)+n*(1-b/100))}function e(n){return Math.round(Math.max(0,Math.min(255,n)))}c=null!=c?c:180;b=null!=b?b:93;var f=0,g=0,k=0,l=1;if("transparent"==a.toLowerCase())return a;l=mxUtils.parseColor(a);if(null==l)return a;f=l.r;g=l.g;k=l.b;l=l.a;f=d(f);g=d(g);k=d(k);a=[1,0,0,0,1,0,0,0,1];var m=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);a[0]=.2126+.7874*m-.2126*c;a[1]=.7152-.7152*m-.7152*c;a[2]=.0722-.0722*m+.9278*c;a[3]=.2126-+.2126*m+.143*c;a[4]=.7152+(1-.7152)*m+.14*c;a[5]=.0722-.0722*m-.283*c;a[6]=.2126-.2126*m-.7874*c;a[7]=.7152-.7152*m+.7152*c;a[8]=.0722+.9278*m+.0722*c;c=e(a[0]*f+a[1]*g+a[2]*k);m=e(a[3]*f+a[4]*g+a[5]*k);f=e(a[6]*f+a[7]*g+a[8]*k);return"#"+(16777216|c<<16|m<<8|f).toString(16).slice(1)+(1>l?("0"+Math.round(255*l).toString(16)).slice(-2):"")},addAlphaToColor:function(a,b){null!=b&&null!=a&&"transparent"!=a&&(a=mxUtils.parseColor(a),a="rgba("+a.r+","+a.g+","+a.b+","+a.a*b+")");return a},getLightDarkColor:function(a,+b,c,d){var e={light:"transparent",dark:"transparent",cssText:"transparent"};null!=a&&a!=mxConstants.NONE&&("string"===typeof a?(a=mxUtils.parseLightDarkColor(a,c,d),e.light=mxUtils.addAlphaToColor(a.light,b),e.dark=mxUtils.addAlphaToColor(a.dark,b),e.cssText=mxUtils.lightDarkColorSupported?e.light==e.dark?e.light:"light-dark("+e.light+", "+e.dark+")":mxUtils.preferDarkColor?e.dark:e.light):(e.light=a,e.dark=a,e.cssText=a));return e},invertLightDarkColor:function(a){var b={};b.light=a.dark;b.dark=+a.light;b.cssText=b.light==b.dark?b.light:"light-dark("+b.light+", "+b.dark+")";return b},getColor:function(a,b,c){a=null!=a?a[b]:null;null==a?a=c:a==mxConstants.NONE&&(a=null);return a},isEmptyObject:function(a){for(var b in a)return!1;return!0},clone:function(a,b,c){c=null!=c?c:!1;var d=null;if(null!=a&&"function"==typeof a.constructor)if(a.constructor===Element)d=a.cloneNode(null!=c?!c:!1);else{d=new a.constructor;for(var e in a)e!=mxObjectIdentity.FIELD_NAME&&(null==b||0>mxUtils.indexOf(b,e))&&+(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c<a.length;c++)if(null!=a[c]&&null==b[c]||null==a[c]&&null!=b[c]||null!=a[c]&&null!=b[c]&&(a[c].x!=b[c].x||a[c].y!=b[c].y))return!1;return!0},equalEntries:function(a,b){var c=0;if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b){for(var d in b)c++;+for(d in a)if(c--,!(mxUtils.isNaN(a[d])&&mxUtils.isNaN(b[d])||a[d]==b[d]))return!1}return 0==c},removeDuplicates:function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},toString:function(a){var b="",c;for(c in a)try{if(null==a[c])b+=c+" = [null]\n";else if("function"==typeof a[c])b+=+c+" => [Function]\n";else if("object"==typeof a[c]){var d=mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return A;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);A=Math.sin(e*Math.PI/180);e=p*m+A*n;m=-1*A*m+p*n;n=e*e;var q=m*m,r=c*c,t=d*d,u=n/r++q/t;1<u?(c*=Math.sqrt(u),d*=Math.sqrt(u),f=0):(u=1,f===g&&(u=-1),f=u*Math.sqrt((r*t-r*q-t*n)/(r*q+t*n)));n=f*c*m/d;q=-1*f*d*e/c;k=p*n-A*q+k/2;l=A*n+p*q+l/2;r=Math.atan2((m-q)/d,(e-n)/c)-Math.atan2(0,1);f=0<=r?r:2*Math.PI+r;r=Math.atan2((-m-q)/d,(-e-n)/c)-Math.atan2((m-q)/d,(e-n)/c);e=0<=r?r:2*Math.PI+r;0==g&&0<e?e-=2*Math.PI:0!=g&&0>e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=A;d*=A;var v=Math.cos(f),y=Math.sin(f);q=-m*+(n*y+d*v);r=-m*(c*y-p*v);for(var A=[],z=0;z<g;++z){f+=e;v=Math.cos(f);y=Math.sin(f);t=n*v-d*y+k;u=c*v+p*y+l;var x=-m*(n*y+d*v);v=-m*(c*y-p*v);y=6*z;A[y]=Number(q+a);A[y+1]=Number(r+b);A[y+2]=Number(t-x+a);A[y+3]=Number(u-v+b);A[y+4]=Number(t+a);A[y+5]=Number(u+b);q=t+x;r=u+v}return A},getBoundingBox:function(a,b,c){var d=null;if(null!=a&&null!=b&&0!=b){b=mxUtils.toRadians(b);d=Math.cos(b);var e=Math.sin(b);c=null!=c?c:new mxPoint(a.x+a.width/2,a.y+a.height/2);var f=new mxPoint(a.x,a.y);b=new mxPoint(a.x++a.width,a.y);var g=new mxPoint(b.x,a.y+a.height);a=new mxPoint(a.x,g.y);f=mxUtils.getRotatedPoint(f,d,e,c);b=mxUtils.getRotatedPoint(b,d,e,c);g=mxUtils.getRotatedPoint(g,d,e,c);a=mxUtils.getRotatedPoint(a,d,e,c);d=new mxRectangle(f.x,f.y,0,0);d.add(new mxRectangle(b.x,b.y,0,0));d.add(new mxRectangle(g.x,g.y,0,0));d.add(new mxRectangle(a.x,a.y,0,0))}return d},getRotatedPoint:function(a,b,c,d){d=null!=d?d:new mxPoint;var e=a.x-d.x;a=a.y-d.y;return new mxPoint(e*b-a*c+d.x,a*b+e*c+d.y)},getPortConstraints:function(a,+b,c,d){b=mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT,mxUtils.getValue(b.style,c?mxConstants.STYLE_SOURCE_PORT_CONSTRAINT:mxConstants.STYLE_TARGET_PORT_CONSTRAINT,null));if(null==b)return d;d=b.toString();b=mxConstants.DIRECTION_MASK_NONE;c=0;1==mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT_ROTATION,0)&&(c=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0));a=0;45<c?(a=1,135<=c&&(a=2)):-45>c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=+mxConstants.DIRECTION_MASK_NORTH;break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;+break;case 1:b|=mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<1;b|=(a&mxConstants.DIRECTION_MASK_SOUTH)>>1;return b|(a&mxConstants.DIRECTION_MASK_EAST)>>3},findNearestSegment:function(a,b,c){var d=-1;if(0<a.absolutePoints.length)for(var e=a.absolutePoints[0],f=null,g=1;g<a.absolutePoints.length;g++){var k=a.absolutePoints[g];e=mxUtils.ptSegDistSq(e.x,e.y,k.x,k.y,b,c);if(null==f||e<f)f=e,d=g-1;e=k}return d},getDirectedBounds:function(a,b,c,d,e){var f=mxUtils.getValue(c,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);d=null!=d?d:mxUtils.getValue(c,mxConstants.STYLE_FLIPH,!1);e=null!=e?e:mxUtils.getValue(c,mxConstants.STYLE_FLIPV,!1);b.x=Math.round(Math.max(0,Math.min(a.width,b.x)));b.y=Math.round(Math.max(0,Math.min(a.height,b.y)));b.width=Math.round(Math.max(0,Math.min(a.width,b.width)));b.height=Math.round(Math.max(0,Math.min(a.height,b.height)));if(e&&(f==mxConstants.DIRECTION_SOUTH||f==mxConstants.DIRECTION_NORTH)||d&&(f==mxConstants.DIRECTION_EAST||f==mxConstants.DIRECTION_WEST))c=b.x,b.x=b.width,b.width=c;if(d&&(f==mxConstants.DIRECTION_SOUTH||f==mxConstants.DIRECTION_NORTH)||e&&(f==mxConstants.DIRECTION_EAST||f==mxConstants.DIRECTION_WEST))c=b.y,b.y=b.height,b.height=c;d=mxRectangle.fromRectangle(b);f==mxConstants.DIRECTION_SOUTH?(d.y=b.x,d.x=b.height,d.width=b.y,d.height=b.width):f==mxConstants.DIRECTION_WEST?(d.y=b.height,d.x=b.width,d.width=b.x,d.height=b.y):f==mxConstants.DIRECTION_NORTH&&(d.y=b.width,d.x=b.y,d.width=b.height,d.height=b.x);return new mxRectangle(a.x+d.x,a.y+d.y,a.width-d.width-d.x,a.height-d.height-d.y)},getPerimeterPoint:function(a,b,c){for(var d=@@ -115,43 +115,43 @@ null},ptSegDistSq:function(a,b,c,d,e,f){c-=a;d-=b;e-=a;f-=b;0>=e*c+f*d?c=0:(e=c-b,c){mxEffects.cascadeOpacity.apply(this,arguments)},fadeOut:function(a,b,c,d,e,f){mxEffects.fadeOut.apply(this,arguments)},setOpacity:function(a,b){mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?a.style.filter=100<=b?"":"alpha(opacity="+b+")":a.style.opacity=b/100},createElementNs:function(a,b,c){if(null!=a.createElementNS)return a.createElementNS(b,c);a=a.createElement(c);null!=namespace&&a.setAttribute("xmlns",b);return a},createImage:function(a){var b=document.createElement("img");b.setAttribute("src",a);b.setAttribute("border","0");return b},sortCells:function(a,b){b=null!=b?b:!0;var c=new mxDictionary;a.sort(function(d,e){var f=c.get(d);null==f&&(f=mxCellPath.create(d).split(mxCellPath.PATH_SEPARATOR),c.put(d,f));d=c.get(e);null==d&&(d=mxCellPath.create(e).split(mxCellPath.PATH_SEPARATOR),c.put(e,d));e=mxCellPath.compare(f,d);return 0==e?0:0<e==b?1:-1});return a},getStylename:function(a){return null!=a&&(a=a.split(";")[0],0>a.indexOf("="))?a:""},getStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0>a[c].indexOf("=")&&b.push(a[c])}return b},indexOfStylename:function(a,b){if(null!=a&&null!=b){a=a.split(";");for(var c=0,d=0;d<a.length;d++){if(a[d]==b)return c;c+=a[d].length+1}}return-1},addStylename:function(a,b){0>mxUtils.indexOfStylename(a,b)&&(null==a?a="":0<a.length&&";"!=a.charAt(a.length-1)&&(a+=";"),a+=b);return a},removeStylename:function(a,b){var c=[];if(null!=a){a=a.split(";");for(var d=0;d<a.length;d++)a[d]!=b&&c.push(a[d])}return c.join(";")},-removeAllStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0<=a[c].indexOf("=")&&b.push(a[c])}return b.join(";")},setCellStyles:function(a,b,c,d){if(null!=b&&0<b.length){a.beginUpdate();try{for(var e=0;e<b.length;e++)if(null!=b[e]){var f=mxUtils.setStyle(a.getStyle(b[e]),c,d);a.setStyle(b[e],f)}}finally{a.endUpdate()}}},parseColor:function(a,b){b=null!=b?b:1;var c=null;if(null!=a&&a!=mxConstants.NONE){if(mxUtils.isRgbColor(a)){a=a.replace(/[^\d,]/g,"").split(",");+removeAllStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0<=a[c].indexOf("=")&&b.push(a[c])}return b.join(";")},setCellStyles:function(a,b,c,d){if(null!=b&&0<b.length){a.beginUpdate();try{for(var e=0;e<b.length;e++)if(null!=b[e]){var f=mxUtils.setStyle(a.getStyle(b[e]),c,d);a.setStyle(b[e],f)}}finally{a.endUpdate()}}},parseColor:function(a,b){b=null!=b?b:1;var c=null;if(null!=a&&a!=mxConstants.NONE){if(mxUtils.isRgbColor(a)){a=a.replace(/[^\d,.]/g,"").split(",");c=parseInt(a[0]);var d=parseInt(a[1]),e=parseInt(a[2]);4==a.length&&(b=parseFloat(a[3]))}else mxUtils.isHexColor(a)||(a=mxUtils.color2hex(a)),a=a.substring(1),c=parseInt(a.substr(0,2),16),d=parseInt(a.substr(2,2),16),e=parseInt(a.substr(4,2),16),6<a.length&&(b=parseInt(a.substr(6,2),16)/255);c={r:c,g:d,b:e,a:b}}return c},hex2rgb:function(a){var b=mxUtils.parseColor(a);null!=b&&(a="rgb("+b.r+", "+b.g+", "+b.b+")");return a},hex2rgba:function(a,b){b=mxUtils.parseColor(a,b);null!=b&&(a="rgba("+b.r+", "+-b.g+", "+b.b+", "+b.a+")");return a},rgba2hex:function(a){var b=mxUtils.parseColor(a);return null!=b?"#"+("0"+b.r.toString(16)).slice(-2)+("0"+b.g.toString(16)).slice(-2)+("0"+b.b.toString(16)).slice(-2):a},color2hex:function(a,b){b=null!=b?b:"#000000";try{null!=a&&(a=String(a).replace(/\s/g,""),a.toLowerCase()==mxUtils.normalizedValidInvalidColor?b="#000000":(mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor,mxUtils.canvasContext.fillStyle=a,mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor?-b=mxUtils.canvasContext.fillStyle:1<a.length&&"#"==a.charAt(0)&&(mxUtils.canvasContext.fillStyle=a.substring(1),mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor&&(b=mxUtils.canvasContext.fillStyle))))}catch(c){}return b},setStyle:function(a,b,c){var d=null!=c&&("undefined"==typeof c.length||0<c.length);if(null==a||0==a.length)d&&(a=b+"="+c+";");else if(a.substring(0,b.length+1)==b+"="){var e=a.indexOf(";");a=d?b+"="+c+(0>e?";":a.substring(e)):0>e||e==a.length-1?"":a.substring(e+1)}else{var f=-a.indexOf(";"+b+"=");0>f?d&&(d=";"==a.charAt(a.length-1)?"":";",a=a+d+b+"="+c+";"):(e=a.indexOf(";",f+1),a=d?a.substring(0,f+1)+b+"="+c+(0>e?";":a.substring(e)):a.substring(0,f)+(0>e?";":a.substring(e)))}return a},setCellStyleFlags:function(a,b,c,d,e){if(null!=b&&0<b.length){a.beginUpdate();try{for(var f=0;f<b.length;f++)if(null!=b[f]){var g=mxUtils.setStyleFlag(a.getStyle(b[f]),c,d,e);a.setStyle(b[f],g)}}finally{a.endUpdate()}}},setStyleFlag:function(a,b,c,d){if(null==a||0==a.length)a=d||null==d?-b+"="+c:b+"=0";else{var e=a.indexOf(b+"=");if(0>e)e=";"==a.charAt(a.length-1)?"":";",a=d||null==d?a+e+b+"="+c:a+e+b+"=0";else{var f=a.indexOf(";",e),g=0>f?a.substring(e+b.length+1):a.substring(e+b.length+1,f);g=null==d?parseInt(g)^c:d?parseInt(g)|c:parseInt(g)&~c;a=a.substring(0,e)+b+"="+g+(0<=f?a.substring(f):"")}}return a},getAlignmentAsPoint:function(a,b){var c=-.5,d=-.5;a==mxConstants.ALIGN_LEFT?c=0:a==mxConstants.ALIGN_RIGHT&&(c=-1);b==mxConstants.ALIGN_TOP?d=0:b==mxConstants.ALIGN_BOTTOM&&(d=--1);return new mxPoint(c,d)},getSizeForString:function(a,b,c,d,e){b=null!=b?b:mxConstants.DEFAULT_FONTSIZE;c=null!=c?c:mxConstants.DEFAULT_FONTFAMILY;var f=document.createElement("div");f.style.fontFamily=c;f.style.fontSize=Math.round(b)+"px";f.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?b*mxConstants.LINE_HEIGHT+"px":mxConstants.LINE_HEIGHT*mxSvgCanvas2D.prototype.lineHeightCorrection;null!=e&&((e&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(f.style.fontWeight="bold"),(e&mxConstants.FONT_ITALIC)==-mxConstants.FONT_ITALIC&&(f.style.fontStyle="italic"),b=[],(e&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&b.push("underline"),(e&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&b.push("line-through"),0<b.length&&(f.style.textDecoration=b.join(" ")));f.style.position="absolute";f.style.visibility="hidden";f.style.display="inline-block";f.style.zoom="1";null!=d?(f.style.width=d+"px",f.style.whiteSpace="normal"):f.style.whiteSpace="nowrap";f.innerHTML=a;document.body.appendChild(f);-a=new mxRectangle(0,0,f.offsetWidth,f.offsetHeight);document.body.removeChild(f);return a},getViewXml:function(a,b,c,d,e){d=null!=d?d:0;e=null!=e?e:0;b=null!=b?b:1;null==c&&(c=[a.getModel().getRoot()]);var f=a.getView(),g=null,k=f.isEventsEnabled();f.setEventsEnabled(!1);var l=f.drawPane,m=f.overlayPane;a.dialect==mxConstants.DIALECT_SVG?(f.drawPane=document.createElementNS(mxConstants.NS_SVG,"g"),f.canvas.appendChild(f.drawPane),f.overlayPane=document.createElementNS(mxConstants.NS_SVG,"g")):(f.drawPane=-f.drawPane.cloneNode(!1),f.canvas.appendChild(f.drawPane),f.overlayPane=f.overlayPane.cloneNode(!1));f.canvas.appendChild(f.overlayPane);var n=f.getTranslate();f.translate=new mxPoint(d,e);b=new mxTemporaryCellStates(a.getView(),b,c);try{g=(new mxCodec).encode(a.getView())}finally{b.destroy(),f.translate=n,f.canvas.removeChild(f.drawPane),f.canvas.removeChild(f.overlayPane),f.drawPane=l,f.overlayPane=m,f.setEventsEnabled(k)}return g},getScaleForPageCount:function(a,b,c,d){if(1>a)return 1;c=null!=-c?c:mxConstants.PAGE_FORMAT_A4_PORTRAIT;d=null!=d?d:0;var e=c.width-2*d;c=c.height-2*d;d=mxRectangle.fromRectangle(b.getGraphBounds());b=b.getView().getScale();d.width/=b;d.height/=b;b=d.width;var f=Math.sqrt(a);d=Math.sqrt(b/d.height/(e/c));c=f*d;d=f/d;if(1>c&&d>a){var g=d/a;d=a;c/=g}1>d&&c>a&&(g=c/a,c=a,d/=g);g=Math.ceil(c)*Math.ceil(d);for(f=0;g>a;){g=Math.floor(c)/c;var k=Math.floor(d)/d;1==g&&(g=Math.floor(c-1)/c);1==k&&(k=Math.floor(d-1)/d);g=g>k?g:k;c*=g;d*=g;g=Math.ceil(c)*Math.ceil(d);f++;-if(10<f)break}return e*c/b*.99999},show:function(a,b,c,d,e,f){c=null!=c?c:0;d=null!=d?d:0;null==b?b=window.open().document:b.open();9==document.documentMode&&b.writeln('\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--\x3e');var g=a.getGraphBounds(),k=Math.ceil(c-g.x),l=Math.ceil(d-g.y);null==e&&(e=Math.ceil(g.width+c)+Math.ceil(Math.ceil(g.x)-g.x));null==f&&(f=Math.ceil(g.height+d)+Math.ceil(Math.ceil(g.y)-g.y));if(mxClient.IS_IE||11==document.documentMode){d="<html><head>";-g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)d+=g[c].outerHTML;d+="<style>";for(c=0;c<document.styleSheets.length;c++)try{d+=document.styleSheets[c].cssText}catch(m){}d=d+'</style></head><body style="margin:0px;"><div style="position:absolute;overflow:hidden;width:'+(e+"px;height:"+f+'px;"><div style="position:relative;left:'+k+"px;top:"+l+'px;">')+a.container.innerHTML;b.writeln(d+"</div></div></body><html>");b.close()}else{b.writeln("<html><head>");g=document.getElementsByTagName("base");-for(c=0;c<g.length;c++)b.writeln(mxUtils.getOuterHtml(g[c]));d=document.getElementsByTagName("link");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));d=document.getElementsByTagName("style");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));b.writeln('</head><body style="margin:0px;"></body></html>');b.close();c=b.createElement("div");c.position="absolute";c.overflow="hidden";c.style.width=e+"px";c.style.height=f+"px";e=b.createElement("div");e.style.position="absolute";e.style.left=-k+"px";e.style.top=l+"px";f=a.container.firstChild;for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.appendChild(g),f=f.nextSibling;b.body.appendChild(c);null!=e.firstChild&&b.body.appendChild(e);null!=d&&(d.style.minWidth="",d.style.minHeight="",d.firstChild.setAttribute("transform","translate("+k+","+l+")"))}mxUtils.removeCursors(b.body);return b},printScreen:function(a){var b=window.open();mxUtils.show(a,b.document);a=function(){b.focus();b.print();-b.close()};mxClient.IS_GC?b.setTimeout(a,500):a()},popup:function(a,b){if(b){var c=document.createElement("div");c.style.overflow="scroll";c.style.width="636px";c.style.height="460px";b=document.createElement("pre");b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," ");c.appendChild(b);c=new mxWindow("Popup Window",c,document.body.clientWidth/2-320,Math.max(document.body.clientHeight||0,document.documentElement.clientHeight)/2-240,640,480,!1,!0);c.setClosable(!0);c.setVisible(!0)}else mxClient.IS_NS?-(c=window.open(),c.document.writeln("<pre>"+mxUtils.htmlEntities(a)+"</pre"),c.document.close()):(c=window.open(),b=c.document.createElement("pre"),b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," "),c.document.body.appendChild(b))},alert:function(a){alert(a)},prompt:function(a,b){return prompt(a,null!=b?b:"")},confirm:function(a){return confirm(a)},error:function(a,b,c,d){var e=document.createElement("div");e.style.padding="20px";var f=document.createElement("img");-f.setAttribute("src",d||mxUtils.errorImage);f.setAttribute("valign","bottom");f.style.verticalAlign="middle";e.appendChild(f);e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));mxUtils.write(e,a);a=document.body.clientWidth;d=document.body.clientHeight||document.documentElement.clientHeight;var g=new mxWindow(mxResources.get(mxUtils.errorResource)||mxUtils.errorResource,e,(a-b)/2,d/4,b,null,!1,!0);c&&(mxUtils.br(e),b=-document.createElement("p"),c=document.createElement("button"),mxClient.IS_IE?c.style.cssText="float:right":c.setAttribute("style","float:right"),mxEvent.addListener(c,"click",function(k){g.destroy()}),mxUtils.write(c,mxResources.get(mxUtils.closeResource)||mxUtils.closeResource),b.appendChild(c),e.appendChild(b),mxUtils.br(e),g.setClosable(!0));g.setVisible(!0);return g},makeDraggable:function(a,b,c,d,e,f,g,k,l,m){a=new mxDragSource(a,c);a.dragOffset=new mxPoint(null!=e?e:0,null!=f?f:mxConstants.TOOLTIP_VERTICAL_OFFSET);-a.autoscroll=g;a.setGuidesEnabled(!1);null!=l&&(a.highlightDropTargets=l);null!=m&&(a.getDropTarget=m);a.getGraphForEvent=function(n){return"function"==typeof b?b(n):b};null!=d&&(a.createDragElement=function(){return d.cloneNode(!0)},k&&(a.createPreviewElement=function(n){var p=d.cloneNode(!0),q=parseInt(p.style.width),r=parseInt(p.style.height);p.style.width=Math.round(q*n.view.scale)+"px";p.style.height=Math.round(r*n.view.scale)+"px";return p}));return a},format:function(a){return parseFloat(parseFloat(a).toFixed(2))}},-mxConstants={DEFAULT_HOTSPOT:.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:"exact",RENDERING_HINT_FASTER:"faster",RENDERING_HINT_FASTEST:"fastest",DIALECT_SVG:"svg",DIALECT_MIXEDHTML:"mixedHtml",DIALECT_PREFERHTML:"preferHtml",DIALECT_STRICTHTML:"strictHtml",NS_SVG:"http://www.w3.org/2000/svg",NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XLINK:"http://www.w3.org/1999/xlink",SHADOWCOLOR:"#808080",VML_SHADOWCOLOR:"#808080",SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_BLUR:2,SHADOW_OPACITY:1,-NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:"#00FF00",DEFAULT_INVALID_COLOR:"#FF0000",OUTLINE_HIGHLIGHT_COLOR:"#00FF00",OUTLINE_HIGHLIGHT_STROKEWIDTH:5,HIGHLIGHT_STROKEWIDTH:3,HIGHLIGHT_SIZE:2,HIGHLIGHT_OPACITY:100,CURSOR_MOVABLE_VERTEX:"move",-CURSOR_MOVABLE_EDGE:"move",CURSOR_LABEL_HANDLE:"default",CURSOR_TERMINAL_HANDLE:"pointer",CURSOR_BEND_HANDLE:"crosshair",CURSOR_VIRTUAL_BEND_HANDLE:"crosshair",CURSOR_CONNECT:"pointer",HIGHLIGHT_COLOR:"#00FF00",CONNECT_TARGET_COLOR:"#0000FF",INVALID_CONNECT_TARGET_COLOR:"#FF0000",DROP_TARGET_COLOR:"#0000FF",VALID_COLOR:"#00FF00",INVALID_COLOR:"#FF0000",EDGE_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,-EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:"#FF0000",GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:"#0099FF",OUTLINE_STROKEWIDTH:mxClient.IS_IE?2:3,HANDLE_SIZE:6,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:"#00FF00",HANDLE_STROKECOLOR:"black",LABEL_HANDLE_FILLCOLOR:"yellow",CONNECT_HANDLE_FILLCOLOR:"#0000FF",LOCKED_HANDLE_FILLCOLOR:"#FF0000",OUTLINE_HANDLE_FILLCOLOR:"#00FFFF",OUTLINE_HANDLE_STROKECOLOR:"#0033FF",DEFAULT_FONTFAMILY:"Arial,Helvetica",DEFAULT_FONTSIZE:11,DEFAULT_TEXT_DIRECTION:"",LINE_HEIGHT:1.2,WORD_WRAP:"normal",-ABSOLUTE_LINE_HEIGHT:!1,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:.15,LINE_ARCSIZE:20,ARROW_SPACING:0,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT:new mxRectangle(0,0,827,1169),PAGE_FORMAT_A4_LANDSCAPE:new mxRectangle(0,0,1169,827),PAGE_FORMAT_LETTER_PORTRAIT:new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE:new mxRectangle(0,0,1100,850),NONE:"none",STYLE_PERIMETER:"perimeter",STYLE_SOURCE_PORT:"sourcePort",-STYLE_TARGET_PORT:"targetPort",STYLE_PORT_CONSTRAINT:"portConstraint",STYLE_PORT_CONSTRAINT_ROTATION:"portConstraintRotation",STYLE_SOURCE_PORT_CONSTRAINT:"sourcePortConstraint",STYLE_TARGET_PORT_CONSTRAINT:"targetPortConstraint",STYLE_OPACITY:"opacity",STYLE_FILL_OPACITY:"fillOpacity",STYLE_FILL_STYLE:"fillStyle",STYLE_STROKE_OPACITY:"strokeOpacity",STYLE_TEXT_OPACITY:"textOpacity",STYLE_TEXT_DIRECTION:"textDirection",STYLE_OVERFLOW:"overflow",STYLE_BLOCK_SPACING:"blockSpacing",STYLE_ORTHOGONAL:"orthogonal",-STYLE_EXIT_X:"exitX",STYLE_EXIT_Y:"exitY",STYLE_EXIT_DX:"exitDx",STYLE_EXIT_DY:"exitDy",STYLE_EXIT_PERIMETER:"exitPerimeter",STYLE_ENTRY_X:"entryX",STYLE_ENTRY_Y:"entryY",STYLE_ENTRY_DX:"entryDx",STYLE_ENTRY_DY:"entryDy",STYLE_ENTRY_PERIMETER:"entryPerimeter",STYLE_WHITE_SPACE:"whiteSpace",STYLE_ROTATION:"rotation",STYLE_FILLCOLOR:"fillColor",STYLE_POINTER_EVENTS:"pointerEvents",STYLE_SWIMLANE_FILLCOLOR:"swimlaneFillColor",STYLE_MARGIN:"margin",STYLE_GRADIENTCOLOR:"gradientColor",STYLE_GRADIENT_DIRECTION:"gradientDirection",-STYLE_STROKECOLOR:"strokeColor",STYLE_SEPARATORCOLOR:"separatorColor",STYLE_STROKEWIDTH:"strokeWidth",STYLE_ALIGN:"align",STYLE_VERTICAL_ALIGN:"verticalAlign",STYLE_LABEL_WIDTH:"labelWidth",STYLE_LABEL_POSITION:"labelPosition",STYLE_VERTICAL_LABEL_POSITION:"verticalLabelPosition",STYLE_IMAGE_ASPECT:"imageAspect",STYLE_IMAGE_ALIGN:"imageAlign",STYLE_IMAGE_VERTICAL_ALIGN:"imageVerticalAlign",STYLE_GLASS:"glass",STYLE_IMAGE:"image",STYLE_IMAGE_WIDTH:"imageWidth",STYLE_IMAGE_HEIGHT:"imageHeight",STYLE_IMAGE_BACKGROUND:"imageBackground",-STYLE_IMAGE_BORDER:"imageBorder",STYLE_FLIPH:"flipH",STYLE_FLIPV:"flipV",STYLE_NOLABEL:"noLabel",STYLE_NOEDGESTYLE:"noEdgeStyle",STYLE_LABEL_BACKGROUNDCOLOR:"labelBackgroundColor",STYLE_LABEL_BORDERCOLOR:"labelBorderColor",STYLE_LABEL_PADDING:"labelPadding",STYLE_INDICATOR_SHAPE:"indicatorShape",STYLE_INDICATOR_IMAGE:"indicatorImage",STYLE_INDICATOR_COLOR:"indicatorColor",STYLE_INDICATOR_STROKECOLOR:"indicatorStrokeColor",STYLE_INDICATOR_GRADIENTCOLOR:"indicatorGradientColor",STYLE_INDICATOR_SPACING:"indicatorSpacing",-STYLE_INDICATOR_WIDTH:"indicatorWidth",STYLE_INDICATOR_HEIGHT:"indicatorHeight",STYLE_INDICATOR_DIRECTION:"indicatorDirection",STYLE_SHADOW:"shadow",STYLE_TEXT_SHADOW:"textShadow",STYLE_SHADOW_OFFSET_X:"shadowOffsetX",STYLE_SHADOW_OFFSET_Y:"shadowOffsetY",STYLE_SHADOW_BLUR:"shadowBlur",STYLE_SHADOWCOLOR:"shadowColor",STYLE_SHADOW_OPACITY:"shadowOpacity",STYLE_SEGMENT:"segment",STYLE_ENDARROW:"endArrow",STYLE_STARTARROW:"startArrow",STYLE_ENDSIZE:"endSize",STYLE_STARTSIZE:"startSize",STYLE_SWIMLANE_LINE:"swimlaneLine",-STYLE_SWIMLANE_HEAD:"swimlaneHead",STYLE_SWIMLANE_BODY:"swimlaneBody",STYLE_ENDFILL:"endFill",STYLE_ENDFILLCOLOR:"endFillColor",STYLE_STARTFILL:"startFill",STYLE_STARTFILLCOLOR:"startFillColor",STYLE_DASHED:"dashed",STYLE_DASH_PATTERN:"dashPattern",STYLE_FIX_DASH:"fixDash",STYLE_ROUNDED:"rounded",STYLE_CURVED:"curved",STYLE_ARCSIZE:"arcSize",STYLE_ABSOLUTE_ARCSIZE:"absoluteArcSize",STYLE_SOURCE_PERIMETER_SPACING:"sourcePerimeterSpacing",STYLE_TARGET_PERIMETER_SPACING:"targetPerimeterSpacing",STYLE_PERIMETER_SPACING:"perimeterSpacing",-STYLE_SPACING:"spacing",STYLE_SPACING_TOP:"spacingTop",STYLE_SPACING_LEFT:"spacingLeft",STYLE_SPACING_BOTTOM:"spacingBottom",STYLE_SPACING_RIGHT:"spacingRight",STYLE_HORIZONTAL:"horizontal",STYLE_DIRECTION:"direction",STYLE_ANCHOR_POINT_DIRECTION:"anchorPointDirection",STYLE_ELBOW:"elbow",STYLE_FONTCOLOR:"fontColor",STYLE_FONTFAMILY:"fontFamily",STYLE_FONTSIZE:"fontSize",STYLE_FONTSTYLE:"fontStyle",STYLE_ASPECT:"aspect",STYLE_AUTOSIZE:"autosize",STYLE_AUTOSIZE_GRID:"autosizeGrid",STYLE_FIXED_WIDTH:"fixedWidth",-STYLE_FOLDABLE:"foldable",STYLE_EDITABLE:"editable",STYLE_BACKGROUND_OUTLINE:"backgroundOutline",STYLE_BENDABLE:"bendable",STYLE_MOVABLE:"movable",STYLE_RESIZABLE:"resizable",STYLE_RESIZE_WIDTH:"resizeWidth",STYLE_RESIZE_HEIGHT:"resizeHeight",STYLE_ROTATABLE:"rotatable",STYLE_CLONEABLE:"cloneable",STYLE_DELETABLE:"deletable",STYLE_SHAPE:"shape",STYLE_EDGE:"edgeStyle",STYLE_JETTY_SIZE:"jettySize",STYLE_SOURCE_JETTY_SIZE:"sourceJettySize",STYLE_TARGET_JETTY_SIZE:"targetJettySize",STYLE_LOOP:"loopStyle",-STYLE_ORTHOGONAL_LOOP:"orthogonalLoop",STYLE_ROUTING_CENTER_X:"routingCenterX",STYLE_ROUTING_CENTER_Y:"routingCenterY",STYLE_CLIP_PATH:"clipPath",FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_STRIKETHROUGH:8,SHAPE_RECTANGLE:"rectangle",SHAPE_ELLIPSE:"ellipse",SHAPE_DOUBLE_ELLIPSE:"doubleEllipse",SHAPE_RHOMBUS:"rhombus",SHAPE_LINE:"line",SHAPE_IMAGE:"image",SHAPE_ARROW:"arrow",SHAPE_ARROW_CONNECTOR:"arrowConnector",SHAPE_LABEL:"label",SHAPE_CYLINDER:"cylinder",SHAPE_SWIMLANE:"swimlane",SHAPE_CONNECTOR:"connector",-SHAPE_ACTOR:"actor",SHAPE_CLOUD:"cloud",SHAPE_TRIANGLE:"triangle",SHAPE_HEXAGON:"hexagon",ARROW_CLASSIC:"classic",ARROW_CLASSIC_THIN:"classicThin",ARROW_BLOCK:"block",ARROW_BLOCK_THIN:"blockThin",ARROW_OPEN:"open",ARROW_OPEN_THIN:"openThin",ARROW_OVAL:"oval",ARROW_DIAMOND:"diamond",ARROW_DIAMOND_THIN:"diamondThin",ALIGN_LEFT:"left",ALIGN_CENTER:"center",ALIGN_RIGHT:"right",ALIGN_TOP:"top",ALIGN_MIDDLE:"middle",ALIGN_BOTTOM:"bottom",DIRECTION_NORTH:"north",DIRECTION_SOUTH:"south",DIRECTION_EAST:"east",-DIRECTION_WEST:"west",DIRECTION_RADIAL:"radial",TEXT_DIRECTION_DEFAULT:"",TEXT_DIRECTION_AUTO:"auto",TEXT_DIRECTION_LTR:"ltr",TEXT_DIRECTION_RTL:"rtl",TEXT_DIRECTION_VERTICAL_LR:"vertical-lr",TEXT_DIRECTION_VERTICAL_RL:"vertical-rl",DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,ELBOW_VERTICAL:"vertical",ELBOW_HORIZONTAL:"horizontal",EDGESTYLE_ELBOW:"elbowEdgeStyle",EDGESTYLE_ENTITY_RELATION:"entityRelationEdgeStyle",-EDGESTYLE_LOOP:"loopEdgeStyle",EDGESTYLE_SIDETOSIDE:"sideToSideEdgeStyle",EDGESTYLE_TOPTOBOTTOM:"topToBottomEdgeStyle",EDGESTYLE_ORTHOGONAL:"orthogonalEdgeStyle",EDGESTYLE_SEGMENT:"segmentEdgeStyle",PERIMETER_ELLIPSE:"ellipsePerimeter",PERIMETER_RECTANGLE:"rectanglePerimeter",PERIMETER_RHOMBUS:"rhombusPerimeter",PERIMETER_HEXAGON:"hexagonPerimeter",PERIMETER_TRIANGLE:"trianglePerimeter"};+b.g+", "+b.b+", "+b.a+")");return a},rgba2hex:function(a){var b=mxUtils.parseColor(a);return null!=b?"#"+("0"+b.r.toString(16)).slice(-2)+("0"+b.g.toString(16)).slice(-2)+("0"+b.b.toString(16)).slice(-2)+(1>b.a?("0"+Math.round(255*b.a).toString(16)).slice(-2):""):a},color2hex:function(a,b){b=null!=b?b:"#000000";try{null!=a&&(a=String(a).replace(/\s/g,""),a.toLowerCase()==mxUtils.normalizedValidInvalidColor?b="#000000":(mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor,mxUtils.canvasContext.fillStyle=+a,mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor?(b=mxUtils.canvasContext.fillStyle,mxUtils.isRgbColor(b)&&(b=mxUtils.rgba2hex(b))):1<a.length&&"#"==a.charAt(0)&&(mxUtils.canvasContext.fillStyle=a.substring(1),mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor&&(b=mxUtils.canvasContext.fillStyle))))}catch(c){}return b},setStyle:function(a,b,c){var d=null!=c&&("undefined"==typeof c.length||0<c.length);if(null==a||0==a.length)d&&(a=b+"="+c+";");else if(a.substring(0,b.length+1)==+b+"="){var e=a.indexOf(";");a=d?b+"="+c+(0>e?";":a.substring(e)):0>e||e==a.length-1?"":a.substring(e+1)}else{var f=a.indexOf(";"+b+"=");0>f?d&&(d=";"==a.charAt(a.length-1)?"":";",a=a+d+b+"="+c+";"):(e=a.indexOf(";",f+1),a=d?a.substring(0,f+1)+b+"="+c+(0>e?";":a.substring(e)):a.substring(0,f)+(0>e?";":a.substring(e)))}return a},setCellStyleFlags:function(a,b,c,d,e){if(null!=b&&0<b.length){a.beginUpdate();try{for(var f=0;f<b.length;f++)if(null!=b[f]){var g=mxUtils.setStyleFlag(a.getStyle(b[f]),c,d,+e);a.setStyle(b[f],g)}}finally{a.endUpdate()}}},setStyleFlag:function(a,b,c,d){if(null==a||0==a.length)a=d||null==d?b+"="+c:b+"=0";else{var e=a.indexOf(b+"=");if(0>e)e=";"==a.charAt(a.length-1)?"":";",a=d||null==d?a+e+b+"="+c:a+e+b+"=0";else{var f=a.indexOf(";",e),g=0>f?a.substring(e+b.length+1):a.substring(e+b.length+1,f);g=null==d?parseInt(g)^c:d?parseInt(g)|c:parseInt(g)&~c;a=a.substring(0,e)+b+"="+g+(0<=f?a.substring(f):"")}}return a},getAlignmentAsPoint:function(a,b){var c=-.5,d=-.5;a==mxConstants.ALIGN_LEFT?+c=0:a==mxConstants.ALIGN_RIGHT&&(c=-1);b==mxConstants.ALIGN_TOP?d=0:b==mxConstants.ALIGN_BOTTOM&&(d=-1);return new mxPoint(c,d)},getSizeForString:function(a,b,c,d,e){b=null!=b?b:mxConstants.DEFAULT_FONTSIZE;c=null!=c?c:mxConstants.DEFAULT_FONTFAMILY;var f=document.createElement("div");f.style.fontFamily=c;f.style.fontSize=Math.round(b)+"px";f.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?b*mxConstants.LINE_HEIGHT+"px":mxConstants.LINE_HEIGHT*mxSvgCanvas2D.prototype.lineHeightCorrection;null!=+e&&((e&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(f.style.fontWeight="bold"),(e&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(f.style.fontStyle="italic"),b=[],(e&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&b.push("underline"),(e&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&b.push("line-through"),0<b.length&&(f.style.textDecoration=b.join(" ")));f.style.position="absolute";f.style.visibility="hidden";f.style.display="inline-block";f.style.zoom="1";null!=+d?(f.style.width=d+"px",f.style.whiteSpace="normal"):f.style.whiteSpace="nowrap";f.innerHTML=a;document.body.appendChild(f);a=new mxRectangle(0,0,f.offsetWidth,f.offsetHeight);document.body.removeChild(f);return a},getViewXml:function(a,b,c,d,e){d=null!=d?d:0;e=null!=e?e:0;b=null!=b?b:1;null==c&&(c=[a.getModel().getRoot()]);var f=a.getView(),g=null,k=f.isEventsEnabled();f.setEventsEnabled(!1);var l=f.drawPane,m=f.overlayPane;a.dialect==mxConstants.DIALECT_SVG?(f.drawPane=document.createElementNS(mxConstants.NS_SVG,+"g"),f.canvas.appendChild(f.drawPane),f.overlayPane=document.createElementNS(mxConstants.NS_SVG,"g")):(f.drawPane=f.drawPane.cloneNode(!1),f.canvas.appendChild(f.drawPane),f.overlayPane=f.overlayPane.cloneNode(!1));f.canvas.appendChild(f.overlayPane);var n=f.getTranslate();f.translate=new mxPoint(d,e);b=new mxTemporaryCellStates(a.getView(),b,c);try{g=(new mxCodec).encode(a.getView())}finally{b.destroy(),f.translate=n,f.canvas.removeChild(f.drawPane),f.canvas.removeChild(f.overlayPane),f.drawPane=+l,f.overlayPane=m,f.setEventsEnabled(k)}return g},getScaleForPageCount:function(a,b,c,d){if(1>a)return 1;c=null!=c?c:mxConstants.PAGE_FORMAT_A4_PORTRAIT;d=null!=d?d:0;var e=c.width-2*d;c=c.height-2*d;d=mxRectangle.fromRectangle(b.getGraphBounds());b=b.getView().getScale();d.width/=b;d.height/=b;b=d.width;var f=Math.sqrt(a);d=Math.sqrt(b/d.height/(e/c));c=f*d;d=f/d;if(1>c&&d>a){var g=d/a;d=a;c/=g}1>d&&c>a&&(g=c/a,c=a,d/=g);g=Math.ceil(c)*Math.ceil(d);for(f=0;g>a;){g=Math.floor(c)/c;var k=Math.floor(d)/+d;1==g&&(g=Math.floor(c-1)/c);1==k&&(k=Math.floor(d-1)/d);g=g>k?g:k;c*=g;d*=g;g=Math.ceil(c)*Math.ceil(d);f++;if(10<f)break}return e*c/b*.99999},show:function(a,b,c,d,e,f){c=null!=c?c:0;d=null!=d?d:0;null==b?b=window.open().document:b.open();9==document.documentMode&&b.writeln('\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--\x3e');var g=a.getGraphBounds(),k=Math.ceil(c-g.x),l=Math.ceil(d-g.y);null==e&&(e=Math.ceil(g.width+c)+Math.ceil(Math.ceil(g.x)-g.x));null==f&&(f=+Math.ceil(g.height+d)+Math.ceil(Math.ceil(g.y)-g.y));if(mxClient.IS_IE||11==document.documentMode){d="<html><head>";g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)d+=g[c].outerHTML;d+="<style>";for(c=0;c<document.styleSheets.length;c++)try{d+=document.styleSheets[c].cssText}catch(m){}d=d+'</style></head><body style="margin:0px;"><div style="position:absolute;overflow:hidden;width:'+(e+"px;height:"+f+'px;"><div style="position:relative;left:'+k+"px;top:"+l+'px;">')+a.container.innerHTML;+b.writeln(d+"</div></div></body><html>");b.close()}else{b.writeln("<html><head>");g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)b.writeln(mxUtils.getOuterHtml(g[c]));d=document.getElementsByTagName("link");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));d=document.getElementsByTagName("style");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));b.writeln('</head><body style="margin:0px;"></body></html>');b.close();c=b.createElement("div");c.position="absolute";+c.overflow="hidden";c.style.width=e+"px";c.style.height=f+"px";e=b.createElement("div");e.style.position="absolute";e.style.left=k+"px";e.style.top=l+"px";f=a.container.firstChild;for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.appendChild(g),f=f.nextSibling;b.body.appendChild(c);null!=e.firstChild&&b.body.appendChild(e);null!=d&&(d.style.minWidth="",d.style.minHeight="",d.firstChild.setAttribute("transform","translate("+k+","+l+")"))}mxUtils.removeCursors(b.body);+return b},printScreen:function(a){var b=window.open();mxUtils.show(a,b.document);a=function(){b.focus();b.print();b.close()};mxClient.IS_GC?b.setTimeout(a,500):a()},popup:function(a,b){if(b){var c=document.createElement("div");c.style.overflow="scroll";c.style.width="636px";c.style.height="460px";b=document.createElement("pre");b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," ");c.appendChild(b);c=new mxWindow("Popup Window",c,document.body.clientWidth/2-320,Math.max(document.body.clientHeight||+0,document.documentElement.clientHeight)/2-240,640,480,!1,!0);c.setClosable(!0);c.setVisible(!0)}else mxClient.IS_NS?(c=window.open(),c.document.writeln("<pre>"+mxUtils.htmlEntities(a)+"</pre"),c.document.close()):(c=window.open(),b=c.document.createElement("pre"),b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," "),c.document.body.appendChild(b))},alert:function(a){alert(a)},prompt:function(a,b){return prompt(a,null!=b?b:"")},confirm:function(a){return confirm(a)},+error:function(a,b,c,d){var e=document.createElement("div");e.style.padding="20px";var f=document.createElement("img");f.setAttribute("src",d||mxUtils.errorImage);f.setAttribute("valign","bottom");f.style.verticalAlign="middle";e.appendChild(f);e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));mxUtils.write(e,a);a=document.body.clientWidth;d=document.body.clientHeight||document.documentElement.clientHeight;var g=new mxWindow(mxResources.get(mxUtils.errorResource)||+mxUtils.errorResource,e,(a-b)/2,d/4,b,null,!1,!0);c&&(mxUtils.br(e),b=document.createElement("p"),c=document.createElement("button"),mxClient.IS_IE?c.style.cssText="float:right":c.setAttribute("style","float:right"),mxEvent.addListener(c,"click",function(k){g.destroy()}),mxUtils.write(c,mxResources.get(mxUtils.closeResource)||mxUtils.closeResource),b.appendChild(c),e.appendChild(b),mxUtils.br(e),g.setClosable(!0));g.setVisible(!0);return g},makeDraggable:function(a,b,c,d,e,f,g,k,l,m){a=new mxDragSource(a,+c);a.dragOffset=new mxPoint(null!=e?e:0,null!=f?f:mxConstants.TOOLTIP_VERTICAL_OFFSET);a.autoscroll=g;a.setGuidesEnabled(!1);null!=l&&(a.highlightDropTargets=l);null!=m&&(a.getDropTarget=m);a.getGraphForEvent=function(n){return"function"==typeof b?b(n):b};null!=d&&(a.createDragElement=function(){return d.cloneNode(!0)},k&&(a.createPreviewElement=function(n){var p=d.cloneNode(!0),q=parseInt(p.style.width),r=parseInt(p.style.height);p.style.width=Math.round(q*n.view.scale)+"px";p.style.height=Math.round(r*+n.view.scale)+"px";return p}));return a},format:function(a){return parseFloat(parseFloat(a).toFixed(2))}},mxConstants={DEFAULT_HOTSPOT:.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:"exact",RENDERING_HINT_FASTER:"faster",RENDERING_HINT_FASTEST:"fastest",DIALECT_SVG:"svg",DIALECT_MIXEDHTML:"mixedHtml",DIALECT_PREFERHTML:"preferHtml",DIALECT_STRICTHTML:"strictHtml",NS_SVG:"http://www.w3.org/2000/svg",NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XLINK:"http://www.w3.org/1999/xlink",SHADOWCOLOR:"#808080",+VML_SHADOWCOLOR:"#808080",SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_BLUR:2,SHADOW_OPACITY:1,NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:"#00FF00",DEFAULT_INVALID_COLOR:"#FF0000",OUTLINE_HIGHLIGHT_COLOR:"#00FF00",OUTLINE_HIGHLIGHT_STROKEWIDTH:5,+HIGHLIGHT_STROKEWIDTH:3,HIGHLIGHT_SIZE:2,HIGHLIGHT_OPACITY:100,CURSOR_MOVABLE_VERTEX:"move",CURSOR_MOVABLE_EDGE:"move",CURSOR_LABEL_HANDLE:"default",CURSOR_TERMINAL_HANDLE:"pointer",CURSOR_BEND_HANDLE:"crosshair",CURSOR_VIRTUAL_BEND_HANDLE:"crosshair",CURSOR_CONNECT:"pointer",HIGHLIGHT_COLOR:"#00FF00",CONNECT_TARGET_COLOR:"#0000FF",INVALID_CONNECT_TARGET_COLOR:"#FF0000",DROP_TARGET_COLOR:"#0000FF",VALID_COLOR:"#00FF00",INVALID_COLOR:"#FF0000",EDGE_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_COLOR:"#00FF00",+VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:"#FF0000",GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:"#0099FF",OUTLINE_STROKEWIDTH:mxClient.IS_IE?2:3,HANDLE_SIZE:6,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:"#00FF00",HANDLE_STROKECOLOR:"black",LABEL_HANDLE_FILLCOLOR:"yellow",CONNECT_HANDLE_FILLCOLOR:"#0000FF",LOCKED_HANDLE_FILLCOLOR:"#FF0000",OUTLINE_HANDLE_FILLCOLOR:"#00FFFF",OUTLINE_HANDLE_STROKECOLOR:"#0033FF",DEFAULT_FONTFAMILY:"Arial,Helvetica",+DEFAULT_FONTSIZE:11,DEFAULT_TEXT_DIRECTION:"",LINE_HEIGHT:1.2,WORD_WRAP:"normal",ABSOLUTE_LINE_HEIGHT:!1,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:.15,LINE_ARCSIZE:20,ARROW_SPACING:0,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT:new mxRectangle(0,0,827,1169),PAGE_FORMAT_A4_LANDSCAPE:new mxRectangle(0,0,1169,827),PAGE_FORMAT_LETTER_PORTRAIT:new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE:new mxRectangle(0,+0,1100,850),NONE:"none",STYLE_PERIMETER:"perimeter",STYLE_SOURCE_PORT:"sourcePort",STYLE_TARGET_PORT:"targetPort",STYLE_PORT_CONSTRAINT:"portConstraint",STYLE_PORT_CONSTRAINT_ROTATION:"portConstraintRotation",STYLE_SOURCE_PORT_CONSTRAINT:"sourcePortConstraint",STYLE_TARGET_PORT_CONSTRAINT:"targetPortConstraint",STYLE_OPACITY:"opacity",STYLE_FILL_OPACITY:"fillOpacity",STYLE_FILL_STYLE:"fillStyle",STYLE_STROKE_OPACITY:"strokeOpacity",STYLE_TEXT_OPACITY:"textOpacity",STYLE_TEXT_DIRECTION:"textDirection",+STYLE_OVERFLOW:"overflow",STYLE_BLOCK_SPACING:"blockSpacing",STYLE_ORTHOGONAL:"orthogonal",STYLE_EXIT_X:"exitX",STYLE_EXIT_Y:"exitY",STYLE_EXIT_DX:"exitDx",STYLE_EXIT_DY:"exitDy",STYLE_EXIT_PERIMETER:"exitPerimeter",STYLE_ENTRY_X:"entryX",STYLE_ENTRY_Y:"entryY",STYLE_ENTRY_DX:"entryDx",STYLE_ENTRY_DY:"entryDy",STYLE_ENTRY_PERIMETER:"entryPerimeter",STYLE_WHITE_SPACE:"whiteSpace",STYLE_ROTATION:"rotation",STYLE_FILLCOLOR:"fillColor",STYLE_POINTER_EVENTS:"pointerEvents",STYLE_SWIMLANE_FILLCOLOR:"swimlaneFillColor",+STYLE_MARGIN:"margin",STYLE_GRADIENTCOLOR:"gradientColor",STYLE_GRADIENT_DIRECTION:"gradientDirection",STYLE_STROKECOLOR:"strokeColor",STYLE_SEPARATORCOLOR:"separatorColor",STYLE_STROKEWIDTH:"strokeWidth",STYLE_ALIGN:"align",STYLE_VERTICAL_ALIGN:"verticalAlign",STYLE_LABEL_WIDTH:"labelWidth",STYLE_LABEL_POSITION:"labelPosition",STYLE_VERTICAL_LABEL_POSITION:"verticalLabelPosition",STYLE_IMAGE_ASPECT:"imageAspect",STYLE_IMAGE_ALIGN:"imageAlign",STYLE_IMAGE_VERTICAL_ALIGN:"imageVerticalAlign",STYLE_GLASS:"glass",+STYLE_IMAGE:"image",STYLE_IMAGE_WIDTH:"imageWidth",STYLE_IMAGE_HEIGHT:"imageHeight",STYLE_IMAGE_BACKGROUND:"imageBackground",STYLE_IMAGE_BORDER:"imageBorder",STYLE_FLIPH:"flipH",STYLE_FLIPV:"flipV",STYLE_NOLABEL:"noLabel",STYLE_NOEDGESTYLE:"noEdgeStyle",STYLE_LABEL_BACKGROUNDCOLOR:"labelBackgroundColor",STYLE_LABEL_BORDERCOLOR:"labelBorderColor",STYLE_LABEL_PADDING:"labelPadding",STYLE_INDICATOR_SHAPE:"indicatorShape",STYLE_INDICATOR_IMAGE:"indicatorImage",STYLE_INDICATOR_COLOR:"indicatorColor",STYLE_INDICATOR_STROKECOLOR:"indicatorStrokeColor",+STYLE_INDICATOR_GRADIENTCOLOR:"indicatorGradientColor",STYLE_INDICATOR_SPACING:"indicatorSpacing",STYLE_INDICATOR_WIDTH:"indicatorWidth",STYLE_INDICATOR_HEIGHT:"indicatorHeight",STYLE_INDICATOR_DIRECTION:"indicatorDirection",STYLE_SHADOW:"shadow",STYLE_TEXT_SHADOW:"textShadow",STYLE_SHADOW_OFFSET_X:"shadowOffsetX",STYLE_SHADOW_OFFSET_Y:"shadowOffsetY",STYLE_SHADOW_BLUR:"shadowBlur",STYLE_SHADOWCOLOR:"shadowColor",STYLE_SHADOW_OPACITY:"shadowOpacity",STYLE_SEGMENT:"segment",STYLE_ENDARROW:"endArrow",+STYLE_STARTARROW:"startArrow",STYLE_ENDSIZE:"endSize",STYLE_STARTSIZE:"startSize",STYLE_SWIMLANE_LINE:"swimlaneLine",STYLE_SWIMLANE_HEAD:"swimlaneHead",STYLE_SWIMLANE_BODY:"swimlaneBody",STYLE_ENDFILL:"endFill",STYLE_ENDFILLCOLOR:"endFillColor",STYLE_STARTFILL:"startFill",STYLE_STARTFILLCOLOR:"startFillColor",STYLE_DASHED:"dashed",STYLE_DASH_PATTERN:"dashPattern",STYLE_FIX_DASH:"fixDash",STYLE_ROUNDED:"rounded",STYLE_CURVED:"curved",STYLE_ARCSIZE:"arcSize",STYLE_ABSOLUTE_ARCSIZE:"absoluteArcSize",+STYLE_SOURCE_PERIMETER_SPACING:"sourcePerimeterSpacing",STYLE_TARGET_PERIMETER_SPACING:"targetPerimeterSpacing",STYLE_PERIMETER_SPACING:"perimeterSpacing",STYLE_SPACING:"spacing",STYLE_SPACING_TOP:"spacingTop",STYLE_SPACING_LEFT:"spacingLeft",STYLE_SPACING_BOTTOM:"spacingBottom",STYLE_SPACING_RIGHT:"spacingRight",STYLE_HORIZONTAL:"horizontal",STYLE_DIRECTION:"direction",STYLE_ANCHOR_POINT_DIRECTION:"anchorPointDirection",STYLE_ELBOW:"elbow",STYLE_FONTCOLOR:"fontColor",STYLE_FONTFAMILY:"fontFamily",+STYLE_FONTSIZE:"fontSize",STYLE_FONTSTYLE:"fontStyle",STYLE_ASPECT:"aspect",STYLE_AUTOSIZE:"autosize",STYLE_AUTOSIZE_GRID:"autosizeGrid",STYLE_FIXED_WIDTH:"fixedWidth",STYLE_FOLDABLE:"foldable",STYLE_EDITABLE:"editable",STYLE_BACKGROUND_OUTLINE:"backgroundOutline",STYLE_BENDABLE:"bendable",STYLE_MOVABLE:"movable",STYLE_RESIZABLE:"resizable",STYLE_RESIZE_WIDTH:"resizeWidth",STYLE_RESIZE_HEIGHT:"resizeHeight",STYLE_ROTATABLE:"rotatable",STYLE_CLONEABLE:"cloneable",STYLE_DELETABLE:"deletable",STYLE_SHAPE:"shape",+STYLE_EDGE:"edgeStyle",STYLE_JETTY_SIZE:"jettySize",STYLE_SOURCE_JETTY_SIZE:"sourceJettySize",STYLE_TARGET_JETTY_SIZE:"targetJettySize",STYLE_LOOP:"loopStyle",STYLE_ORTHOGONAL_LOOP:"orthogonalLoop",STYLE_ROUTING_CENTER_X:"routingCenterX",STYLE_ROUTING_CENTER_Y:"routingCenterY",STYLE_CLIP_PATH:"clipPath",FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_STRIKETHROUGH:8,SHAPE_RECTANGLE:"rectangle",SHAPE_ELLIPSE:"ellipse",SHAPE_DOUBLE_ELLIPSE:"doubleEllipse",SHAPE_RHOMBUS:"rhombus",SHAPE_LINE:"line",SHAPE_IMAGE:"image",+SHAPE_ARROW:"arrow",SHAPE_ARROW_CONNECTOR:"arrowConnector",SHAPE_LABEL:"label",SHAPE_CYLINDER:"cylinder",SHAPE_SWIMLANE:"swimlane",SHAPE_CONNECTOR:"connector",SHAPE_ACTOR:"actor",SHAPE_CLOUD:"cloud",SHAPE_TRIANGLE:"triangle",SHAPE_HEXAGON:"hexagon",ARROW_CLASSIC:"classic",ARROW_CLASSIC_THIN:"classicThin",ARROW_BLOCK:"block",ARROW_BLOCK_THIN:"blockThin",ARROW_OPEN:"open",ARROW_OPEN_THIN:"openThin",ARROW_OVAL:"oval",ARROW_DIAMOND:"diamond",ARROW_DIAMOND_THIN:"diamondThin",ALIGN_LEFT:"left",ALIGN_CENTER:"center",+ALIGN_RIGHT:"right",ALIGN_TOP:"top",ALIGN_MIDDLE:"middle",ALIGN_BOTTOM:"bottom",DIRECTION_NORTH:"north",DIRECTION_SOUTH:"south",DIRECTION_EAST:"east",DIRECTION_WEST:"west",DIRECTION_RADIAL:"radial",TEXT_DIRECTION_DEFAULT:"",TEXT_DIRECTION_AUTO:"auto",TEXT_DIRECTION_LTR:"ltr",TEXT_DIRECTION_RTL:"rtl",TEXT_DIRECTION_VERTICAL_LR:"vertical-lr",TEXT_DIRECTION_VERTICAL_RL:"vertical-rl",DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,+ELBOW_VERTICAL:"vertical",ELBOW_HORIZONTAL:"horizontal",EDGESTYLE_ELBOW:"elbowEdgeStyle",EDGESTYLE_ENTITY_RELATION:"entityRelationEdgeStyle",EDGESTYLE_LOOP:"loopEdgeStyle",EDGESTYLE_SIDETOSIDE:"sideToSideEdgeStyle",EDGESTYLE_TOPTOBOTTOM:"topToBottomEdgeStyle",EDGESTYLE_ORTHOGONAL:"orthogonalEdgeStyle",EDGESTYLE_SEGMENT:"segmentEdgeStyle",PERIMETER_ELLIPSE:"ellipsePerimeter",PERIMETER_RECTANGLE:"rectanglePerimeter",PERIMETER_RHOMBUS:"rhombusPerimeter",PERIMETER_HEXAGON:"hexagonPerimeter",PERIMETER_TRIANGLE:"trianglePerimeter"};function mxEventObject(a){this.name=a;this.properties=[];for(var b=1;b<arguments.length;b+=2)null!=arguments[b+1]&&(this.properties[arguments[b]]=arguments[b+1])}mxEventObject.prototype.name=null;mxEventObject.prototype.properties=null;mxEventObject.prototype.consumed=!1;mxEventObject.prototype.getName=function(){return this.name};mxEventObject.prototype.getProperties=function(){return this.properties};mxEventObject.prototype.getProperty=function(a){return this.properties[a]};mxEventObject.prototype.isConsumed=function(){return this.consumed};mxEventObject.prototype.consume=function(){this.consumed=!0};function mxMouseEvent(a,b){this.evt=a;this.sourceState=this.state=b}mxMouseEvent.prototype.consumed=!1;mxMouseEvent.prototype.evt=null;mxMouseEvent.prototype.graphX=null;mxMouseEvent.prototype.graphY=null;mxMouseEvent.prototype.state=null;mxMouseEvent.prototype.sourceState=null;mxMouseEvent.prototype.getEvent=function(){return this.evt};mxMouseEvent.prototype.getSource=function(){return mxEvent.getSource(this.evt)};mxMouseEvent.prototype.isSource=function(a){return null!=a?mxUtils.isAncestorNode(a.node,this.getSource()):!1};mxMouseEvent.prototype.getX=function(){return mxEvent.getClientX(this.getEvent())};mxMouseEvent.prototype.getY=function(){return mxEvent.getClientY(this.getEvent())};mxMouseEvent.prototype.getGraphX=function(){return this.graphX};mxMouseEvent.prototype.getGraphY=function(){return this.graphY};@@ -401,8 +401,8 @@ mxSvgCanvas2D.prototype.addForeignObject=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t)d,e,f,g,k,l,m,n,p),null!=a&&(v.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),b=this.createElement("switch"),b.appendChild(v),b.appendChild(a),u.appendChild(b)));t.appendChild(u)};mxSvgCanvas2D.prototype.updateTextNodes=function(a,b,c,d,e,f,g,k,l,m,n,p){var q=this.state.scale,r="",t="";null!=n&&"vertical-"==n.substring(0,9)?(r="-rl"==n.substring(n.length-3),t=e==mxConstants.ALIGN_LEFT?r?"flex-end":"flex-start":e==mxConstants.ALIGN_RIGHT?r?"flex-start":"flex-end":"center",r=f==mxConstants.ALIGN_TOP?"flex-start":f==mxConstants.ALIGN_BOTTOM?"flex-end":"center"):(t=f==mxConstants.ALIGN_TOP?"flex-start":f==mxConstants.ALIGN_BOTTOM?"flex-end":"center",r=e==mxConstants.ALIGN_LEFT?"flex-start":e==mxConstants.ALIGN_RIGHT?"flex-end":"center");var u=null!=this.state.fontBackgroundColor?this.getLightDarkColor(this.state.fontBackgroundColor):null,v=null!=this.state.fontBorderColor?this.getLightDarkColor(this.state.fontBorderColor):null;mxSvgCanvas2D.createCss(c+this.foreignObjectPadding,d,e,f,g,k,l,n,null!=u?u.cssText:null,null!=v?v.cssText:null,"display: flex; align-items: unsafe "+t+"; justify-content: unsafe "+r+"; "+(null!=n&&"vertical-"==n.substring(0,9)?"writing-mode: "+n+-";":""),this.getTextCss(),q,mxUtils.bind(this,function(y,A,z,C,B){a+=this.state.dx;b+=this.state.dy;var x=p.firstChild;"title"==x.nodeName&&(x=x.nextSibling);C+="color: "+this.getLightDarkColor(this.state.fontColor).light+"; ";C+=null!=u?"background-color: "+u.light+"; ":"";C+=null!=v?"border-color: "+v.light+"; ":"";var D=x.firstChild,E=D.firstChild,I=(this.rotateHtml?this.state.rotation:0)+(null!=m?m:0),F=(0!=this.foOffset?"translate("+this.foOffset+" "+this.foOffset+")":"")+(1!=q?"scale("+q+")":-"");this.setCssText(E.firstChild,B);this.setCssText(E,C);x.setAttribute("width",Math.ceil(1/Math.min(1,q)*100)+"%");x.setAttribute("height",Math.ceil(1/Math.min(1,q)*100)+"%");A=Math.round(b+A);0>A?(x.setAttribute("y",A),z+="padding-top: 0; "):(x.removeAttribute("y"),z+="padding-top: "+A+"px; ");this.setCssText(D,z+"margin-left: "+Math.round(a+y)+"px;");F+=0!=I?"rotate("+I+" "+a+" "+b+")":"";""!=F?p.setAttribute("transform",F):p.removeAttribute("transform");1!=this.state.alpha?p.setAttribute("opacity",+";":""),this.getTextCss(),q,mxUtils.bind(this,function(y,A,z,x,B){a+=this.state.dx;b+=this.state.dy;var C=p.firstChild;"title"==C.nodeName&&(C=C.nextSibling);x+="color: "+this.getLightDarkColor(this.state.fontColor).light+"; ";x+=null!=u?"background-color: "+u.light+"; ":"";x+=null!=v?"border-color: "+v.light+"; ":"";var E=C.firstChild,D=E.firstChild,I=(this.rotateHtml?this.state.rotation:0)+(null!=m?m:0),F=(0!=this.foOffset?"translate("+this.foOffset+" "+this.foOffset+")":"")+(1!=q?"scale("+q+")":+"");this.setCssText(D.firstChild,B);this.setCssText(D,x);C.setAttribute("width",Math.ceil(1/Math.min(1,q)*100)+"%");C.setAttribute("height",Math.ceil(1/Math.min(1,q)*100)+"%");A=Math.round(b+A);0>A?(C.setAttribute("y",A),z+="padding-top: 0; "):(C.removeAttribute("y"),z+="padding-top: "+A+"px; ");this.setCssText(E,z+"margin-left: "+Math.round(a+y)+"px;");F+=0!=I?"rotate("+I+" "+a+" "+b+")":"";""!=F?p.setAttribute("transform",F):p.removeAttribute("transform");1!=this.state.alpha?p.setAttribute("opacity",this.state.alpha):p.removeAttribute("opacity")}))};mxSvgCanvas2D.createCss=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r){k=null!=k&&"vertical-"==k.substring(0,9);q="box-sizing: border-box; font-size: 0; ";q=k?q+("text-align: "+(d==mxConstants.ALIGN_TOP?"left":d==mxConstants.ALIGN_BOTTOM?"right":"center")+"; "):q+("text-align: "+(c==mxConstants.ALIGN_LEFT?"left":c==mxConstants.ALIGN_RIGHT?"right":"center")+"; ");var t=mxUtils.getAlignmentAsPoint(c,d);c="overflow: hidden; ";var u="width: 1px; ",v="height: 1px; ",y=t.x*a;t=t.y*b;g?(u="width: "+Math.round(a)+"px; ",q+="max-height: "+Math.round(b)+"px; ",t=0):"fill"==f?(u="width: "+Math.round(a)+"px; ",v="height: "+Math.round(b)+"px; ",p+="width: 100%; height: 100%; ",q+="width: "+Math.round(a-2)+"px; "+v):"width"==f?(u="width: "+Math.round(a-2)+"px; ",p+="width: 100%; ",q+=u,t=0,0<b&&(q+="max-height: "+Math.round(b)+"px; ")):"block"==f?(u="width: "+Math.round(a-2)+"px; ",p+="width: 100%; ",c="",t=0,q+=u,"middle"==d&&(q+="max-height: "+Math.round(b)+"px; ")):(c="",k?y=0:t=0);d="";null!=l&&(d+="background-color: "+@@ -438,9 +438,9 @@ m.scale,e*m.scale,(f+1)*m.scale);null!=n&&(b=this.createElement("rect"),c=null!=2)),b.setAttribute("height",Math.ceil(n.height)),null!=c&&(b.style.fill=c.cssText),d&&(b.style.stroke=d.cssText),m=null!=m.fontBorderColor?Math.max(1,this.format(m.scale)):0,b.setAttribute("stroke-width",m),this.root.ownerDocument==document&&1==mxUtils.mod(m,2)&&b.setAttribute("transform","translate(0.5, 0.5)"),a.insertBefore(b,a.firstChild))}};mxSvgCanvas2D.prototype.stroke=function(){this.addNode(!1,!0)};mxSvgCanvas2D.prototype.fill=function(){this.addNode(!0,!1)};mxSvgCanvas2D.prototype.fillAndStroke=function(){this.addNode(!0,!0)};function mxGuide(a,b){this.graph=a;this.setStates(b)}mxGuide.prototype.graph=null;mxGuide.prototype.states=null;mxGuide.prototype.horizontal=!0;mxGuide.prototype.vertical=!0;mxGuide.prototype.guideX=null;mxGuide.prototype.guideY=null;mxGuide.prototype.rounded=!1;mxGuide.prototype.tolerance=2;mxGuide.prototype.setStates=function(a){this.states=a};mxGuide.prototype.isEnabledForEvent=function(a){return!0};mxGuide.prototype.getGuideTolerance=function(a){return a&&this.graph.gridEnabled?this.graph.gridSize/2:this.tolerance};mxGuide.prototype.createGuideShape=function(a){a=new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH);a.isDashed=!0;return a};mxGuide.prototype.isStateIgnored=function(a){return!1};-mxGuide.prototype.move=function(a,b,c,d){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){d=function(B,x,D){var E=!1;D&&Math.abs(B-C)<t?(b.y=B-a.getCenterY(),t=Math.abs(B-C),E=!0):D||(Math.abs(B-A)<t?(b.y=B-a.y,t=Math.abs(B-A),E=!0):Math.abs(B-z)<t&&(b.y=B-a.y-a.height,t=Math.abs(B-z),E=!0));E&&(p=x,q=B,null==this.guideY&&(this.guideY=this.createGuideShape(!1),this.guideY.dialect=mxConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverlayPane())));-n=n||E};var e=function(B,x,D){var E=!1;D&&Math.abs(B-y)<r?(b.x=B-a.getCenterX(),r=Math.abs(B-y),E=!0):D||(Math.abs(B-u)<r?(b.x=B-a.x,r=Math.abs(B-u),E=!0):Math.abs(B-v)<r&&(b.x=B-a.x-a.width,r=Math.abs(B-v),E=!0));E&&(l=x,m=B,null==this.guideX&&(this.guideX=this.createGuideShape(!0),this.guideX.dialect=mxConstants.DIALECT_SVG,this.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||E},f=this.graph.getView().scale;f*=this.getGuideTolerance(c);var g=a.clone();g.x+=-b.x;g.y+=b.y;var k=!1,l=null,m=null,n=!1,p=null,q=null,r=f,t=f,u=g.x,v=g.x+g.width,y=g.getCenterX(),A=g.y,z=g.y+g.height,C=g.getCenterY();for(f=0;f<this.states.length;f++)g=this.states[f],null==g||this.isStateIgnored(g)||(this.horizontal&&(e.call(this,g.getCenterX(),g,!0),e.call(this,g.x,g,!1),e.call(this,g.x+g.width,g,!1),null==g.cell&&e.call(this,g.getCenterX(),g,!1)),this.vertical&&(d.call(this,g.getCenterY(),g,!0),d.call(this,g.y,g,!1),d.call(this,g.y+g.height,g,!1),null==g.cell&&d.call(this,+mxGuide.prototype.move=function(a,b,c,d){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){d=function(B,C,E){var D=!1;E&&Math.abs(B-x)<t?(b.y=B-a.getCenterY(),t=Math.abs(B-x),D=!0):E||(Math.abs(B-A)<t?(b.y=B-a.y,t=Math.abs(B-A),D=!0):Math.abs(B-z)<t&&(b.y=B-a.y-a.height,t=Math.abs(B-z),D=!0));D&&(p=C,q=B,null==this.guideY&&(this.guideY=this.createGuideShape(!1),this.guideY.dialect=mxConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverlayPane())));+n=n||D};var e=function(B,C,E){var D=!1;E&&Math.abs(B-y)<r?(b.x=B-a.getCenterX(),r=Math.abs(B-y),D=!0):E||(Math.abs(B-u)<r?(b.x=B-a.x,r=Math.abs(B-u),D=!0):Math.abs(B-v)<r&&(b.x=B-a.x-a.width,r=Math.abs(B-v),D=!0));D&&(l=C,m=B,null==this.guideX&&(this.guideX=this.createGuideShape(!0),this.guideX.dialect=mxConstants.DIALECT_SVG,this.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||D},f=this.graph.getView().scale;f*=this.getGuideTolerance(c);var g=a.clone();g.x+=+b.x;g.y+=b.y;var k=!1,l=null,m=null,n=!1,p=null,q=null,r=f,t=f,u=g.x,v=g.x+g.width,y=g.getCenterX(),A=g.y,z=g.y+g.height,x=g.getCenterY();for(f=0;f<this.states.length;f++)g=this.states[f],null==g||this.isStateIgnored(g)||(this.horizontal&&(e.call(this,g.getCenterX(),g,!0),e.call(this,g.x,g,!1),e.call(this,g.x+g.width,g,!1),null==g.cell&&e.call(this,g.getCenterX(),g,!1)),this.vertical&&(d.call(this,g.getCenterY(),g,!0),d.call(this,g.y,g,!1),d.call(this,g.y+g.height,g,!1),null==g.cell&&d.call(this,g.getCenterY(),g,!1)));this.graph.snapDelta(b,a,!c,k,n);b=this.getDelta(a,l,b.x,p,b.y);c=this.graph.container;k||null==this.guideX?null!=this.guideX&&(e=d=null,null!=l&&null!=a&&(d=Math.min(a.y+b.y-this.graph.panDy,l.y),e=Math.max(a.y+a.height+b.y-this.graph.panDy,l.y+l.height)),this.guideX.points=null!=d&&null!=e?[new mxPoint(m,d),new mxPoint(m,e)]:[new mxPoint(m,-this.graph.panDy),new mxPoint(m,c.scrollHeight-3-this.graph.panDy)],this.guideX.stroke=this.getGuideColor(l,!0),this.guideX.node.style.visibility="visible",this.guideX.redraw()):this.guideX.node.style.visibility="hidden";n||null==this.guideY?null!=this.guideY&&(e=d=null,null!=p&&null!=a&&(d=Math.min(a.x+b.x-this.graph.panDx,p.x),e=Math.max(a.x+a.width+b.x-this.graph.panDx,p.x+p.width)),this.guideY.points=null!=d&&null!=e?[new mxPoint(d,q),new mxPoint(e,q)]:[new mxPoint(-this.graph.panDx,q),new mxPoint(c.scrollWidth-3-this.graph.panDx,q)],this.guideY.stroke=this.getGuideColor(p,!1),this.guideY.node.style.visibility="visible",this.guideY.redraw()):this.guideY.node.style.visibility="hidden"}return b};mxGuide.prototype.getDelta=function(a,b,c,d,e){var f=this.graph.view.scale;if(this.rounded||null!=b&&null==b.cell)c=Math.round((a.x+c)/f)*f-a.x;if(this.rounded||null!=d&&null==d.cell)e=Math.round((a.y+e)/f)*f-a.y;return new mxPoint(c,e)};mxGuide.prototype.getGuideColor=function(a,b){return mxConstants.GUIDE_COLOR};mxGuide.prototype.hide=function(){this.setVisible(!1)};@@ -535,14 +535,14 @@ function mxArrowConnector(a,b,c,d,e,f,g){mxShape.call(this);this.points=a;this.fmxArrowConnector.prototype.resetStyles=function(){mxShape.prototype.resetStyles.apply(this,arguments);this.arrowSpacing=mxConstants.ARROW_SPACING};mxArrowConnector.prototype.apply=function(a){mxShape.prototype.apply.apply(this,arguments);null!=this.style&&(this.startSize=3*mxUtils.getNumber(this.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5),this.endSize=3*mxUtils.getNumber(this.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5))};mxArrowConnector.prototype.augmentBoundingBox=function(a){mxShape.prototype.augmentBoundingBox.apply(this,arguments);var b=this.getEdgeWidth();this.isMarkerStart()&&(b=Math.max(b,this.getStartArrowWidth()));this.isMarkerEnd()&&(b=Math.max(b,this.getEndArrowWidth()));a.grow((b/2+this.strokewidth)*this.scale)};mxArrowConnector.prototype.paintEdgeShape=function(a,b){var c=this.strokewidth;this.outline&&(c=Math.max(1,mxUtils.getNumber(this.style,mxConstants.STYLE_STROKEWIDTH,this.strokewidth)));var d=this.getStartArrowWidth()+c,e=this.getEndArrowWidth()+c,f=this.outline?this.getEdgeWidth()+c:this.getEdgeWidth(),g=this.isOpenEnded(),k=this.isMarkerStart(),l=this.isMarkerEnd(),m=g?0:this.arrowSpacing+c/2,n=this.startSize+c;c=this.endSize+c;var p=this.isArrowRounded(),q=b[b.length-1],r=b[1].x-b[0].x,t=b[1].y--b[0].y,u=Math.sqrt(r*r+t*t);if(0!=u){var v=r/u,y=v,A=t/u,z=A;u=f*A;var C=-f*v,B=[];p?a.setLineJoin("round"):2<b.length&&a.setMiterLimit(1.42);a.begin();r=v;t=A;if(k&&!g)this.paintMarker(a,b[0].x,b[0].y,v,A,n,d,f,m,!0);else{var x=b[0].x+u/2+m*v,D=b[0].y+C/2+m*A,E=b[0].x-u/2+m*v,I=b[0].y-C/2+m*A;g?(a.moveTo(x,D),B.push(function(){a.lineTo(E,I)})):(a.moveTo(E,I),a.lineTo(x,D))}var F=D=x=0;for(u=0;u<b.length-2;u++)if(C=mxUtils.relativeCcw(b[u].x,b[u].y,b[u+1].x,b[u+1].y,b[u+2].x,b[u+2].y),x=b[u+2].x--b[u+1].x,D=b[u+2].y-b[u+1].y,F=Math.sqrt(x*x+D*D),0!=F){y=x/F;z=D/F;F=Math.max(Math.sqrt((v*y+A*z+1)/2),.04);x=v+y;D=A+z;var H=Math.sqrt(x*x+D*D);if(0!=H){x/=H;D/=H;H=Math.max(F,Math.min(this.strokewidth/200+.04,.35));F=0!=C&&p?Math.max(.1,H):Math.max(F,.06);var K=b[u+1].x+D*f/2/F,G=b[u+1].y-x*f/2/F;D=b[u+1].x-D*f/2/F;x=b[u+1].y+x*f/2/F;0!=C&&p?-1==C?(C=D+z*f,F=x-y*f,a.lineTo(D+A*f,x-v*f),a.quadTo(K,G,C,F),function(L,M){B.push(function(){a.lineTo(L,M)})}(D,x)):(a.lineTo(K,G),function(L,M){var O=K--A*f,P=G+v*f,Q=K-z*f,R=G+y*f;B.push(function(){a.quadTo(L,M,O,P)});B.push(function(){a.lineTo(Q,R)})}(D,x)):(a.lineTo(K,G),function(L,M){B.push(function(){a.lineTo(L,M)})}(D,x));v=y;A=z}}u=f*z;C=-f*y;if(l&&!g)this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!1);else{a.lineTo(q.x-m*y+u/2,q.y-m*z+C/2);var J=q.x-m*y-u/2,N=q.y-m*z-C/2;g?(a.moveTo(J,N),B.splice(0,0,function(){a.moveTo(J,N)})):a.lineTo(J,N)}for(u=B.length-1;0<=u;u--)B[u]();g?(a.end(),a.stroke()):(a.close(),a.fillAndStroke());a.setShadow(!1);a.setMiterLimit(4);+b[0].y,u=Math.sqrt(r*r+t*t);if(0!=u){var v=r/u,y=v,A=t/u,z=A;u=f*A;var x=-f*v,B=[];p?a.setLineJoin("round"):2<b.length&&a.setMiterLimit(1.42);a.begin();r=v;t=A;if(k&&!g)this.paintMarker(a,b[0].x,b[0].y,v,A,n,d,f,m,!0);else{var C=b[0].x+u/2+m*v,E=b[0].y+x/2+m*A,D=b[0].x-u/2+m*v,I=b[0].y-x/2+m*A;g?(a.moveTo(C,E),B.push(function(){a.lineTo(D,I)})):(a.moveTo(D,I),a.lineTo(C,E))}var F=E=C=0;for(u=0;u<b.length-2;u++)if(x=mxUtils.relativeCcw(b[u].x,b[u].y,b[u+1].x,b[u+1].y,b[u+2].x,b[u+2].y),C=b[u+2].x-+b[u+1].x,E=b[u+2].y-b[u+1].y,F=Math.sqrt(C*C+E*E),0!=F){y=C/F;z=E/F;F=Math.max(Math.sqrt((v*y+A*z+1)/2),.04);C=v+y;E=A+z;var H=Math.sqrt(C*C+E*E);if(0!=H){C/=H;E/=H;H=Math.max(F,Math.min(this.strokewidth/200+.04,.35));F=0!=x&&p?Math.max(.1,H):Math.max(F,.06);var K=b[u+1].x+E*f/2/F,G=b[u+1].y-C*f/2/F;E=b[u+1].x-E*f/2/F;C=b[u+1].y+C*f/2/F;0!=x&&p?-1==x?(x=E+z*f,F=C-y*f,a.lineTo(E+A*f,C-v*f),a.quadTo(K,G,x,F),function(L,M){B.push(function(){a.lineTo(L,M)})}(E,C)):(a.lineTo(K,G),function(L,M){var O=K-+A*f,P=G+v*f,Q=K-z*f,R=G+y*f;B.push(function(){a.quadTo(L,M,O,P)});B.push(function(){a.lineTo(Q,R)})}(E,C)):(a.lineTo(K,G),function(L,M){B.push(function(){a.lineTo(L,M)})}(E,C));v=y;A=z}}u=f*z;x=-f*y;if(l&&!g)this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!1);else{a.lineTo(q.x-m*y+u/2,q.y-m*z+x/2);var J=q.x-m*y-u/2,N=q.y-m*z-x/2;g?(a.moveTo(J,N),B.splice(0,0,function(){a.moveTo(J,N)})):a.lineTo(J,N)}for(u=B.length-1;0<=u;u--)B[u]();g?(a.end(),a.stroke()):(a.close(),a.fillAndStroke());a.setShadow(!1);a.setMiterLimit(4);p&&a.setLineJoin("flat");2<b.length&&(a.setMiterLimit(4),k&&!g&&(a.begin(),this.paintMarker(a,b[0].x,b[0].y,r,t,n,d,f,m,!0),a.stroke(),a.end()),l&&!g&&(a.begin(),this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!0),a.stroke(),a.end()))}};mxArrowConnector.prototype.paintMarker=function(a,b,c,d,e,f,g,k,l,m){g=k/g;var n=k*e/2;k=-k*d/2;var p=(l+f)*d;f=(l+f)*e;m?a.moveTo(b-n+p,c-k+f):a.lineTo(b-n+p,c-k+f);a.lineTo(b-n/g+p,c-k/g+f);a.lineTo(b+l*d,c+l*e);a.lineTo(b+n/g+p,c+k/g+f);a.lineTo(b+n+p,c+k+f)};mxArrowConnector.prototype.isArrowRounded=function(){return this.isRounded};mxArrowConnector.prototype.getStartArrowWidth=function(){return mxConstants.ARROW_WIDTH};mxArrowConnector.prototype.getEndArrowWidth=function(){return mxConstants.ARROW_WIDTH};mxArrowConnector.prototype.getEdgeWidth=function(){return mxConstants.ARROW_WIDTH/3};mxArrowConnector.prototype.isOpenEnded=function(){return!1};mxArrowConnector.prototype.isMarkerStart=function(){return mxUtils.getValue(this.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE};mxArrowConnector.prototype.isMarkerEnd=function(){return mxUtils.getValue(this.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE};-function mxText(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t,u,v,y,A,z,C){mxShape.call(this);this.value=a;this.bounds=b;this.color=null!=e?e:"black";this.align=null!=c?c:mxConstants.ALIGN_CENTER;this.valign=null!=d?d:mxConstants.ALIGN_MIDDLE;this.family=null!=f?f:mxConstants.DEFAULT_FONTFAMILY;this.size=null!=g?g:mxConstants.DEFAULT_FONTSIZE;this.fontStyle=null!=k?k:mxConstants.DEFAULT_FONTSTYLE;this.spacing=parseInt(l||2);this.spacingTop=this.spacing+parseInt(m||0);this.spacingRight=this.spacing+parseInt(n||0);-this.spacingBottom=this.spacing+parseInt(p||0);this.spacingLeft=this.spacing+parseInt(q||0);this.horizontal=null!=r?r:!0;this.background=t;this.border=u;this.wrap=null!=v?v:!1;this.clipped=null!=y?y:!1;this.overflow=null!=A?A:"visible";this.labelPadding=null!=z?z:0;this.textDirection=C;this.rotation=0;this.updateMargin()}mxUtils.extend(mxText,mxShape);mxText.prototype.baseSpacingTop=0;mxText.prototype.baseSpacingBottom=0;mxText.prototype.baseSpacingLeft=0;mxText.prototype.baseSpacingRight=0;+function mxText(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t,u,v,y,A,z,x){mxShape.call(this);this.value=a;this.bounds=b;this.color=null!=e?e:"black";this.align=null!=c?c:mxConstants.ALIGN_CENTER;this.valign=null!=d?d:mxConstants.ALIGN_MIDDLE;this.family=null!=f?f:mxConstants.DEFAULT_FONTFAMILY;this.size=null!=g?g:mxConstants.DEFAULT_FONTSIZE;this.fontStyle=null!=k?k:mxConstants.DEFAULT_FONTSTYLE;this.spacing=parseInt(l||2);this.spacingTop=this.spacing+parseInt(m||0);this.spacingRight=this.spacing+parseInt(n||0);+this.spacingBottom=this.spacing+parseInt(p||0);this.spacingLeft=this.spacing+parseInt(q||0);this.horizontal=null!=r?r:!0;this.background=t;this.border=u;this.wrap=null!=v?v:!1;this.clipped=null!=y?y:!1;this.overflow=null!=A?A:"visible";this.labelPadding=null!=z?z:0;this.textDirection=x;this.rotation=0;this.updateMargin()}mxUtils.extend(mxText,mxShape);mxText.prototype.baseSpacingTop=0;mxText.prototype.baseSpacingBottom=0;mxText.prototype.baseSpacingLeft=0;mxText.prototype.baseSpacingRight=0;mxText.prototype.replaceLinefeeds=!0;mxText.prototype.verticalTextRotation=-90;mxText.prototype.ignoreClippedStringSize=!0;mxText.prototype.ignoreStringSize=!1;mxText.prototype.textWidthPadding=8!=document.documentMode||mxClient.IS_EM?3:4;mxText.prototype.lastValue=null;mxText.prototype.cacheEnabled=!0;mxText.prototype.isHtmlAllowed=function(){return 8!=document.documentMode||mxClient.IS_EM};mxText.prototype.getSvgScreenOffset=function(){return 0};mxText.prototype.checkBounds=function(){return!isNaN(this.scale)&&isFinite(this.scale)&&0<this.scale&&null!=this.bounds&&!isNaN(this.bounds.x)&&!isNaN(this.bounds.y)&&!isNaN(this.bounds.width)&&!isNaN(this.bounds.height)};mxText.prototype.configurePointerEvents=function(a){};mxText.prototype.getActualTextDirection=function(){var a=this.textDirection;a==mxConstants.TEXT_DIRECTION_AUTO&&(a=this.getAutoDirection());a!=mxConstants.TEXT_DIRECTION_LTR&&a!=mxConstants.TEXT_DIRECTION_RTL&&a!=mxConstants.TEXT_DIRECTION_VERTICAL_LR&&a!=mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(a=null);return a};@@ -754,7 +754,7 @@ k}else for(c++,e=0;e<this.nestedBestRanks.length;e++)for(f=a.ranks[e],g=0;g<f.lemxMedianHybridCrossingReduction.prototype.calculateRankCrossing=function(a,b){var c=0,d=b.ranks[a],e=b.ranks[a-1],f=[];for(b=0;b<d.length;b++){var g=d[b],k=g.getGeneralPurposeVariable(a);g=g.getPreviousLayerConnectedCells(a);for(var l=[],m=0;m<g.length;m++){var n=g[m].getGeneralPurposeVariable(a-1);l.push(n)}l.sort(function(p,q){return p-q});f[k]=l}a=[];for(b=0;b<f.length;b++)a=a.concat(f[b]);for(d=1;d<e.length;)d<<=1;f=2*d-1;--d;e=[];for(b=0;b<f;++b)e[b]=0;for(b=0;b<a.length;b++)for(f=a[b]+d,++e[f];0<f;)f%2&&(c+=e[f+1]),f=f-1>>1,++e[f];return c};mxMedianHybridCrossingReduction.prototype.transpose=function(a,b){for(var c=!0,d=0;c&&10>d++;){var e=1==a%2&&1==d%2;c=!1;for(var f=0;f<b.ranks.length;f++){for(var g=b.ranks[f],k=[],l=0;l<g.length;l++){var m=g[l],n=m.getGeneralPurposeVariable(f);0>n&&(n=l);k[n]=m}var p=null,q=null,r=null,t=null,u=null;for(l=0;l<g.length-1;l++){if(0==l){var v=k[l];m=v.getNextLayerConnectedCells(f);n=v.getPreviousLayerConnectedCells(f);for(var y=[],A=[],z=0;z<m.length;z++)y[z]=m[z].getGeneralPurposeVariable(f+1);for(z=-0;z<n.length;z++)A[z]=n[z].getGeneralPurposeVariable(f-1)}else m=p,n=q,y=r,A=t,v=u;u=k[l+1];p=u.getNextLayerConnectedCells(f);q=u.getPreviousLayerConnectedCells(f);r=[];t=[];for(z=0;z<p.length;z++)r[z]=p[z].getGeneralPurposeVariable(f+1);for(z=0;z<q.length;z++)t[z]=q[z].getGeneralPurposeVariable(f-1);var C=0,B=0;for(z=0;z<y.length;z++)for(var x=0;x<r.length;x++)y[z]>r[x]&&C++,y[z]<r[x]&&B++;for(z=0;z<A.length;z++)for(x=0;x<t.length;x++)A[z]>t[x]&&C++,A[z]<t[x]&&B++;if(B<C||B==C&&e)p=v.getGeneralPurposeVariable(f),+0;z<n.length;z++)A[z]=n[z].getGeneralPurposeVariable(f-1)}else m=p,n=q,y=r,A=t,v=u;u=k[l+1];p=u.getNextLayerConnectedCells(f);q=u.getPreviousLayerConnectedCells(f);r=[];t=[];for(z=0;z<p.length;z++)r[z]=p[z].getGeneralPurposeVariable(f+1);for(z=0;z<q.length;z++)t[z]=q[z].getGeneralPurposeVariable(f-1);var x=0,B=0;for(z=0;z<y.length;z++)for(var C=0;C<r.length;C++)y[z]>r[C]&&x++,y[z]<r[C]&&B++;for(z=0;z<A.length;z++)for(C=0;C<t.length;C++)A[z]>t[C]&&x++,A[z]<t[C]&&B++;if(B<x||B==x&&e)p=v.getGeneralPurposeVariable(f),v.setGeneralPurposeVariable(f,u.getGeneralPurposeVariable(f)),u.setGeneralPurposeVariable(f,p),p=m,q=n,r=y,t=A,u=v,e||(c=!0)}}}};mxMedianHybridCrossingReduction.prototype.weightedMedian=function(a,b){if(a=0==a%2)for(var c=b.maxRank-1;0<=c;c--)this.medianRank(c,a);else for(c=1;c<b.maxRank;c++)this.medianRank(c,a)};mxMedianHybridCrossingReduction.prototype.medianRank=function(a,b){for(var c=this.nestedBestRanks[a].length,d=[],e=[],f=0;f<c;f++){var g=this.nestedBestRanks[a][f],k=new MedianCellSorter;k.cell=g;var l=b?g.getNextLayerConnectedCells(a):g.getPreviousLayerConnectedCells(a),m=b?a+1:a-1;null!=l&&0!=l.length?(k.medianValue=this.medianValue(l,m),d.push(k)):e[g.getGeneralPurposeVariable(a)]=!0}d.sort(MedianCellSorter.prototype.compare);for(f=0;f<c;f++)null==e[f]&&(g=d.shift().cell,g.setGeneralPurposeVariable(a,f))};mxMedianHybridCrossingReduction.prototype.medianValue=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var f=a[e];c[d++]=f.getGeneralPurposeVariable(b)}c.sort(function(g,k){return g-k});if(1==d%2)return c[Math.floor(d/2)];if(2==d)return(c[0]+c[1])/2;a=d/2;b=c[a-1]-c[0];d=c[d-1]-c[a];return(c[a-1]*d+c[a]*b)/(b+d)};function MedianCellSorter(){}MedianCellSorter.prototype.medianValue=0;MedianCellSorter.prototype.cell=!1;@@ -790,7 +790,7 @@ if(r.isVertex())for(var t=0==k?e.connectsAsSource:e.connectsAsTarget,u=0;u<t.lenthis.prefVertEdgeOff:m>f/2&&(p-=this.prefVertEdgeOff),t=0;t<q;t++)r[4*t+2*k]=n,n+=l,r[4*t+2*k+1]=p}f=e.getNextLayerConnectedCells(b);g=b+1}}};mxCoordinateAssignment.prototype.setEdgePosition=function(a){var b=0;if(101207!=a.temp[0]){var c=a.maxRank,d=a.minRank;c==d&&(c=a.source.maxRank,d=a.target.minRank);for(var e=0,f=this.jettyPositions[a.ids[0]],g=a.isReversed?a.target.cell:a.source.cell,k=this.layout.graph,l=this.orientation==mxConstants.DIRECTION_EAST||this.orientation==mxConstants.DIRECTION_SOUTH,m=0;m<a.edges.length;m++){var n=a.edges[m],p=this.layout.getVisibleTerminal(n,!0),q=[],r=a.isReversed;p!=g&&(r=!r);if(null!=f){var t=r?2:0,u=r?l?this.rankBottomY[d]:this.rankTopY[d]:l?this.rankTopY[c]:this.rankBottomY[c],v=f[4*e+1+t];r!=l&&(v=-v);u+=v;t=f[4*e+t];var y=k.model.getTerminal(n,!0);this.layout.isPort(y)&&k.model.getParent(y)==p&&(t=k.view.getState(y),t=null!=t?t.x:p.geometry.x+a.source.width*y.geometry.x);this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(t,u)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(t,u+v))):(q.push(new mxPoint(u,-t)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u+v,t)))}t=a.x.length-1;u=v=-1;p=a.maxRank-1;for(r&&(t=0,v=a.x.length,u=1,p=a.minRank+1);a.maxRank!=a.minRank&&t!=v;t+=u){y=a.x[t]+b;var A=(this.rankTopY[p]+this.rankBottomY[p+1])/2,z=(this.rankTopY[p-1]+this.rankBottomY[p])/2;if(r){var C=A;A=z;z=C}this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(y,A)),q.push(new mxPoint(y,z))):(q.push(new mxPoint(A,y)),q.push(new mxPoint(z,+t)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u+v,t)))}t=a.x.length-1;u=v=-1;p=a.maxRank-1;for(r&&(t=0,v=a.x.length,u=1,p=a.minRank+1);a.maxRank!=a.minRank&&t!=v;t+=u){y=a.x[t]+b;var A=(this.rankTopY[p]+this.rankBottomY[p+1])/2,z=(this.rankTopY[p-1]+this.rankBottomY[p])/2;if(r){var x=A;A=z;z=x}this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(y,A)),q.push(new mxPoint(y,z))):(q.push(new mxPoint(A,y)),q.push(new mxPoint(z,y)));this.limitX=Math.max(this.limitX,y);p+=u}null!=f&&(t=r?2:0,u=r?l?this.rankTopY[c]:this.rankBottomY[c]:l?this.rankBottomY[d]:this.rankTopY[d],v=f[4*e+3-t],r!=l&&(v=-v),u-=v,t=f[4*e+2-t],r=k.model.getTerminal(n,!1),p=this.layout.getVisibleTerminal(n,!1),this.layout.isPort(r)&&k.model.getParent(r)==p&&(t=k.view.getState(r),t=null!=t?t.x:p.geometry.x+a.target.width*r.geometry.x),this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(t,u-v)),q.push(new mxPoint(t,u))):(this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u-v,t)),q.push(new mxPoint(u,t))));a.isReversed&&this.processReversedEdge(a,n);this.layout.setEdgePoints(n,q);this.layout.resetEdgeLabels&&null!=n.geometry&&(geometry=n.geometry.clone(),geometry.relative=!0,geometry.x=0,geometry.y=0,k.model.setGeometry(n,geometry));b=0==b?this.parallelEdgeSpacing:0<b?-b:-b+this.parallelEdgeSpacing;e++}a.temp[0]=101207}};mxCoordinateAssignment.prototype.setVertexLocation=function(a){var b=a.cell,c=a.x[0]-a.width/2,d=a.y[0]-a.height/2;this.rankTopY[a.minRank]=Math.min(this.rankTopY[a.minRank],d);this.rankBottomY[a.minRank]=Math.max(this.rankBottomY[a.minRank],d+a.height);this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?this.layout.setVertexLocation(b,c,d):this.layout.setVertexLocation(b,d,c);this.limitX=Math.max(this.limitX,c+a.width)};@@ -917,18 +917,18 @@ mxPrintPreview.prototype.getPageClassCss=function(a,b){var c=this.pageMargin,d=tmxUtils.htmlEntities((c/d).toFixed(2))+"in;\n}\n");return b};mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1;this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(G,J){J.init(G.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(G,J,N,L){J.dialect=G.view.graph.dialect;J.init(G.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&(b=!0,this.wnd=window.open());var p=this.wnd.document;if(b){var q=this.getDoctype();null!=q&&0<q.length&&p.writeln(q);"CSS1Compat"===document.compatMode&&p.writeln("<!DOCTYPE html>");p.writeln("<html>");p.writeln("<head>");this.writeHead(p,a);p.writeln("</head>");p.writeln("<body>")}var r=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),t=this.graph.getView().getScale(),u=t/this.scale,v=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=v.x*this.scale,-this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),C=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*C;var B=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),B=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[B]&&-(this.pageFormatClass[B]=!0,this.pendingCss+=this.getPageClassCss(B,f)));var x=mxUtils.bind(this,function(G){null!=this.borderColor&&(G.style.borderColor=this.borderColor,G.style.borderStyle="solid",G.style.borderWidth="1px");G.style.background=this.backgroundColor;null!=B?G.classList.add(B):(G.style.width=f.width+"px",G.style.height=f.height+"px");p.body.appendChild(G)}),D=this.getCoverPages(m,n);if(null!=D)for(var E=0;E<D.length;E++)x(D[E],!0);var I=this.getAppendices(m,n);for(E=0;E<C;E++){var F=-E*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-E;for(a=0;a<z;a++){if(null==this.wnd)return null;var H=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=E*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var K=new mxRectangle(H,F,y,A);this.addGraphFragment(-H,-F,this.scale,g,c,K);null!=e&&0==E&&0==a&&c.setAttribute("id",e);x(c,!0)}}if(null!=I)for(E=0;E<I.length;E++)x(I[E],E<I.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(G){null!=+this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),x=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*x;var B=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),B=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[B]&&+(this.pageFormatClass[B]=!0,this.pendingCss+=this.getPageClassCss(B,f)));var C=mxUtils.bind(this,function(G){null!=this.borderColor&&(G.style.borderColor=this.borderColor,G.style.borderStyle="solid",G.style.borderWidth="1px");G.style.background=this.backgroundColor;null!=B?G.classList.add(B):(G.style.width=f.width+"px",G.style.height=f.height+"px");p.body.appendChild(G)}),E=this.getCoverPages(m,n);if(null!=E)for(var D=0;D<E.length;D++)C(E[D],!0);var I=this.getAppendices(m,n);for(D=0;D<x;D++){var F=+D*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-D;for(a=0;a<z;a++){if(null==this.wnd)return null;var H=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=D*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var K=new mxRectangle(H,F,y,A);this.addGraphFragment(-H,-F,this.scale,g,c,K);null!=e&&0==D&&0==a&&c.setAttribute("id",e);C(c,!0)}}if(null!=I)for(D=0;D<I.length;D++)C(I[D],D<I.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(G){null!=c&&null!=c.parentNode&&c.parentNode.removeChild(c),null!=window.console&&console.error(G)}finally{this.graph.cellRenderer.initializeOverlay=k}return this.wnd};mxPrintPreview.prototype.addPendingCss=function(a){if(null!=this.pendingCss){var b=a.createElement("style");b.setAttribute("type","text/css");b.appendChild(a.createTextNode(this.pendingCss));a.getElementsByTagName("head")[0].appendChild(b);this.pendingCss=null}};mxPrintPreview.prototype.closeDocument=function(){try{if(null!=this.wnd&&null!=this.wnd.document){var a=this.wnd.document;this.writePostfix(a);a.writeln("</body>");a.writeln("</html>");a.close();this.addPendingCss(a);mxEvent.release(a.body)}}catch(b){}};mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");mxClient.link("stylesheet",mxClient.basePath+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);var c=this.pageFormat;this.addPageCss&&null!=c&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),a.writeln(" margin: "+mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(mxUtils.htmlEntities(b,!1,!1,!1));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};mxPrintPreview.prototype.addGraphFragment=function(a,b,c,d,e,f){var g=this.graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroundPane(),m=g.getDrawPane(),n=g.getOverlayPane(),p=c;if(this.graph.dialect==mxConstants.DIALECT_SVG){if(g.createSvg(),this.useCssTransforms()){var q=g.getDrawPane().parentNode;q.setAttribute("transformOrigin","0 0");q.setAttribute("transform","scale("+c+","+c+")translate("+a+","+b+")");c=1;b=a=0}}else g.createHtml();q=g.isEventsEnabled();-g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var C=this.getBackgroundImage();null!=C&&(z=new mxRectangle(Math.round(a*A+C.x),Math.round(b*A+C.y),C.width-1,C.height-1),z=new mxImageShape(z,C.src),z.dialect=this.graph.dialect)}if(this.clipping){var B=-new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),x=this;this.graph.cellRenderer.redraw=function(E,I,F){if(null!=E){var H=y.get(E.cell);if(null!=H&&(H=g.getBoundingBox(H,!1),null!=H&&0<H.width&&0<H.height&&!mxUtils.intersects(B,H))||!x.isCellVisible(E.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(B,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),-this.drawBackgroundImage(z));a=null;try{var D=[this.getRoot()];a=new mxTemporaryCellStates(g,c,D,null,mxUtils.bind(this,function(E){return this.getLinkForCellState(E)}))}finally{for(c=e.firstChild;null!=c;)e=c.nextSibling,"svg"==c.nodeName.toLowerCase()?(c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.display="",c.style.maxWidth="100%",c.style.maxHeight="100%",c.style.overflow=mxClient.IS_SF?"hidden":"clip",c.style.overflowClipMargin=this.overflowClipMargin,c.setAttribute("viewBox",+g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var x=this.getBackgroundImage();null!=x&&(z=new mxRectangle(Math.round(a*A+x.x),Math.round(b*A+x.y),x.width-1,x.height-1),z=new mxImageShape(z,x.src),z.dialect=this.graph.dialect)}if(this.clipping){var B=+new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),C=this;this.graph.cellRenderer.redraw=function(D,I,F){if(null!=D){var H=y.get(D.cell);if(null!=H&&(H=g.getBoundingBox(H,!1),null!=H&&0<H.width&&0<H.height&&!mxUtils.intersects(B,H))||!C.isCellVisible(D.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(B,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),+this.drawBackgroundImage(z));a=null;try{var E=[this.getRoot()];a=new mxTemporaryCellStates(g,c,E,null,mxUtils.bind(this,function(D){return this.getLinkForCellState(D)}))}finally{for(c=e.firstChild;null!=c;)e=c.nextSibling,"svg"==c.nodeName.toLowerCase()?(c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.display="",c.style.maxWidth="100%",c.style.maxHeight="100%",c.style.overflow=mxClient.IS_SF?"hidden":"clip",c.style.overflowClipMargin=this.overflowClipMargin,c.setAttribute("viewBox","0 0 "+(mxClient.IS_SF?f.width+1+" "+(f.height+1):f.width-1+" "+(f.height-1))),this.addGrid(c,f),mxClient.IS_SF&&(f.width>f.height?c.style.height="100%":c.style.width="100%")):this.isTextLabel(c)||c.parentNode.removeChild(c),c=e;g.overlayPane.parentNode.removeChild(g.overlayPane);this.graph.setEnabled(r);this.graph.container=d;this.graph.cellRenderer.redraw=v;this.graph.selectionCellsHandler.updateHandler=u;g.canvas=k;g.backgroundPane=l;g.drawPane=m;g.overlayPane=n;g.translate=t;a.destroy();g.setEventsEnabled(q)}};mxPrintPreview.prototype.addGrid=function(a,b){0<this.gridSize&&0<this.gridSteps&&null!=this.gridColor&&(b=this.createSvgGrid(a,b),a=mxUtils.getSvgDefs(a),null!=a.nextSibling?a.parentNode.insertBefore(b,a.nextSibling):a.parentNode.appendChild(b))};mxPrintPreview.prototype.createSvgGrid=function(a,b){var c=this.gridSize;a=a.ownerDocument;var d=null!=a.createElementNS?a.createElementNS(mxConstants.NS_SVG,"g"):a.createElement("g"),e=mxUtils.mod(Math.ceil(Math.round(b.x)/c),this.gridSteps),f=mxUtils.mod(c-mxUtils.mod(Math.round(b.x),c),c),g=mxUtils.mod(Math.ceil(Math.round(b.y)/c),this.gridSteps),k=mxUtils.mod(c-mxUtils.mod(Math.round(b.y),c),c);f*=this.scale;k*=this.scale;c*=this.scale;for(var l=Math.ceil(b.height/c),m=0;m<l;m++){var n=null!=@@ -1053,31 +1053,31 @@ d[0]:null;var g=a.absolutePoints,k=g[0];g=g[g.length-1];null!=d&&(d=f.transformCk)),mxUtils.contains(c,a,f)||mxUtils.contains(b,a,f)||e.push(new mxPoint(a,f)),1==e.length&&(null!=d?mxUtils.contains(c,a,d.y)||mxUtils.contains(b,a,d.y)||e.push(new mxPoint(a,d.y)):(f=Math.max(b.y,c.y),e.push(new mxPoint(a,f+(Math.min(b.y+b.height,c.y+c.height)-f)/2)))))},TopToBottom:function(a,b,c,d,e){var f=a.view;d=null!=d&&0<d.length?d[0]:null;var g=a.absolutePoints,k=g[0];g=g[g.length-1];null!=d&&(d=f.transformControlPoint(a,d));null!=k&&(b=new mxCellState,b.x=k.x,b.y=k.y);null!=g&&(c=new mxCellState,c.x=g.x,c.y=g.y);null!=b&&null!=c&&(k=Math.max(b.y,c.y),g=Math.min(b.y+b.height,c.y+c.height),a=f.getRoutingCenterX(b),null!=d&&d.x>=b.x&&d.x<=b.x+b.width&&(a=d.x),k=null!=d?d.y:Math.round(g+(k-g)/2),mxUtils.contains(c,a,k)||mxUtils.contains(b,a,k)||e.push(new mxPoint(a,k)),a=null!=d&&d.x>=c.x&&d.x<=c.x+c.width?d.x:f.getRoutingCenterX(c),mxUtils.contains(c,a,k)||mxUtils.contains(b,a,k)||e.push(new mxPoint(a,k)),1==e.length&&(null!=d&&1==e.length?mxUtils.contains(c,d.x,k)||mxUtils.contains(b,d.x,k)||e.push(new mxPoint(d.x,k)):(f=Math.max(b.x,c.x),e.push(new mxPoint(f+(Math.min(b.x+b.width,c.x+c.width)-f)/2,k)))))},SegmentConnector:function(a,b,c,d,e){var f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale);b=mxEdgeStyle.scaleCellState(b,a.view.scale);var g=mxEdgeStyle.scaleCellState(c,a.view.scale);c=[];var k=0<e.length?e[0]:null,l=!0,m=f[0];null==m&&null!=b?m=new mxPoint(a.view.getRoutingCenterX(b),a.view.getRoutingCenterY(b)):null!=m&&(m=m.clone());var n=f.length-1;if(null!=d&&0<d.length){for(var p=-[],q=0;q<d.length;q++){var r=a.view.transformControlPoint(a,d[q],!0);null!=r&&p.push(r)}if(0==p.length)return;null!=m&&null!=p[0]&&(1>Math.abs(p[0].x-m.x)&&(p[0].x=m.x),1>Math.abs(p[0].y-m.y)&&(p[0].y=m.y));r=f[n];null!=r&&null!=p[p.length-1]&&(1>Math.abs(p[p.length-1].x-r.x)&&(p[p.length-1].x=r.x),1>Math.abs(p[p.length-1].y-r.y)&&(p[p.length-1].y=r.y));d=p[0];var t=b,u=f[0],v=d;null!=u&&(t=null);for(q=0;2>q;q++){var y=null!=u&&u.x==v.x,A=null!=u&&u.y==v.y,z=null!=t&&v.y>=t.y&&v.y<=t.y+t.height,C=-null!=t&&v.x>=t.x&&v.x<=t.x+t.width;t=A||null==u&&z;v=y||null==u&&C;if(0!=q||!(t&&v||y&&A)){if(null!=u&&!A&&!y&&(z||C)){l=z?!1:!0;break}if(v||t){l=t;1==q&&(l=0==p.length%2?t:v);break}}t=g;u=f[n];null!=u&&(t=null);v=p[p.length-1];y&&A&&(p=p.slice(1))}l&&(null!=f[0]&&f[0].y!=d.y||null==f[0]&&null!=b&&(d.y<b.y||d.y>b.y+b.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[0]&&f[0].x!=d.x||null==f[0]&&null!=b&&(d.x<b.x||d.x>b.x+b.width))&&c.push(new mxPoint(d.x,m.y));l?m.y=d.y:m.x=d.x;for(q=0;q<p.length;q++)l=+[],q=0;q<d.length;q++){var r=a.view.transformControlPoint(a,d[q],!0);null!=r&&p.push(r)}if(0==p.length)return;null!=m&&null!=p[0]&&(1>Math.abs(p[0].x-m.x)&&(p[0].x=m.x),1>Math.abs(p[0].y-m.y)&&(p[0].y=m.y));r=f[n];null!=r&&null!=p[p.length-1]&&(1>Math.abs(p[p.length-1].x-r.x)&&(p[p.length-1].x=r.x),1>Math.abs(p[p.length-1].y-r.y)&&(p[p.length-1].y=r.y));d=p[0];var t=b,u=f[0],v=d;null!=u&&(t=null);for(q=0;2>q;q++){var y=null!=u&&u.x==v.x,A=null!=u&&u.y==v.y,z=null!=t&&v.y>=t.y&&v.y<=t.y+t.height,x=+null!=t&&v.x>=t.x&&v.x<=t.x+t.width;t=A||null==u&&z;v=y||null==u&&x;if(0!=q||!(t&&v||y&&A)){if(null!=u&&!A&&!y&&(z||x)){l=z?!1:!0;break}if(v||t){l=t;1==q&&(l=0==p.length%2?t:v);break}}t=g;u=f[n];null!=u&&(t=null);v=p[p.length-1];y&&A&&(p=p.slice(1))}l&&(null!=f[0]&&f[0].y!=d.y||null==f[0]&&null!=b&&(d.y<b.y||d.y>b.y+b.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[0]&&f[0].x!=d.x||null==f[0]&&null!=b&&(d.x<b.x||d.x>b.x+b.width))&&c.push(new mxPoint(d.x,m.y));l?m.y=d.y:m.x=d.x;for(q=0;q<p.length;q++)l=!l,d=p[q],l?m.y=d.y:m.x=d.x,c.push(m.clone())}else d=m,l=!0;m=f[n];null==m&&null!=g&&(m=new mxPoint(a.view.getRoutingCenterX(g),a.view.getRoutingCenterY(g)));null!=m&&null!=d&&(l&&(null!=f[n]&&f[n].y!=d.y||null==f[n]&&null!=g&&(d.y<g.y||d.y>g.y+g.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[n]&&f[n].x!=d.x||null==f[n]&&null!=g&&(d.x<g.x||d.x>g.x+g.width))&&c.push(new mxPoint(d.x,m.y)));if(null==f[0]&&null!=b)for(;0<c.length&&null!=c[0]&&mxUtils.contains(b,c[0].x,c[0].y);)c.splice(0,1);if(null==f[n]&&null!=g)for(;0<c.length&&null!=c[c.length-1]&&mxUtils.contains(g,c[c.length-1].x,c[c.length-1].y);)c.splice(c.length-1,1);for(q=0;q<c.length;q++)if(f=c[q],f.x=Math.round(f.x*a.view.scale*10)/10,f.y=Math.round(f.y*a.view.scale*10)/10,null==k||1<=Math.abs(k.x-f.x)||Math.abs(k.y-f.y)>=Math.max(1,a.view.scale))e.push(f),k=f;null!=r&&null!=e[e.length-1]&&1>=Math.abs(r.x-e[e.length-1].x)&&1>=Math.abs(r.y-e[e.length-1].y)&&(e.splice(e.length-1,1),null!=e[e.length-1]&&(1>Math.abs(e[e.length-1].x-r.x)&&(e[e.length-1].x=r.x),1>Math.abs(e[e.length-1].y-r.y)&&(e[e.length-1].y=r.y)))},orthBuffer:10,orthPointsFallback:!0,dirVectors:[[-1,0],[0,-1],[1,0],[0,1],[-1,0],[0,-1],[1,0]],wayPoints1:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],routePatterns:[[[513,2308,2081,2562],[513,1090,514,2184,2114,2561],[513,1090,514,2564,2184,2562],[513,2308,2561,1090,514,2568,2308]],[[514,1057,513,2308,2081,2562],[514,2184,2114,2561],[514,2184,2562,1057,513,2564,2184],[514,1057,513,2568,2308,2561]],[[1090,514,1057,513,2308,2081,2562],[2114,2561],[1090,2562,1057,513,2564,2184],[1090,514,1057,513,2308,2561,2568]],[[2081,2562],[1057,513,1090,514,2184,2114,2561],[1057,513,1090,514,2184,2562,2564],[1057,2561,1090,514,2568,2308]]],inlineRoutePatterns:[[null,[2114,2568],null,null],[null,[514,2081,2114,2568],null,null],[null,[2114,2561],null,null],[[2081,2562],[1057,2114,2568],[2184,2562],null]],vertexSeperations:[],limits:[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]],LEFT_MASK:32,TOP_MASK:64,RIGHT_MASK:128,BOTTOM_MASK:256,LEFT:1,TOP:2,RIGHT:4,BOTTOM:8,SIDE_MASK:480,CENTER_MASK:512,SOURCE_MASK:1024,TARGET_MASK:2048,VERTEX_MASK:3072,getJettySize:function(a,b){var c=mxUtils.getValue(a.style,b?mxConstants.STYLE_SOURCE_JETTY_SIZE:mxConstants.STYLE_TARGET_JETTY_SIZE,mxUtils.getValue(a.style,mxConstants.STYLE_JETTY_SIZE,mxEdgeStyle.orthBuffer));"auto"==c&&(mxUtils.getValue(a.style,b?mxConstants.STYLE_STARTARROW:mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE?(a=mxUtils.getNumber(a.style,b?mxConstants.STYLE_STARTSIZE:mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE),c=Math.max(2,Math.ceil((a+mxEdgeStyle.orthBuffer)/mxEdgeStyle.orthBuffer))*mxEdgeStyle.orthBuffer):c=2*mxEdgeStyle.orthBuffer);return c},scalePointArray:function(a,b){var c=[];if(null!=a)for(var d=0;d<a.length;d++)if(null!=a[d]){var e=new mxPoint(Math.round(a[d].x/b*10)/10,Math.round(a[d].y/b*10)/10);c[d]=e}else c[d]=null;else c=null;return c},scaleCellState:function(a,b){if(null!=a){var c=a.clone();c.setRect(Math.round(a.x/b*10)/10,Math.round(a.y/-b*10)/10,Math.round(a.width/b*10)/10,Math.round(a.height/b*10)/10)}else c=null;return c},OrthConnector:function(a,b,c,d,e){var f=a.view.graph,g=null==l?!1:f.getModel().isEdge(l.cell),k=null==m?!1:f.getModel().isEdge(m.cell);f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale);var l=mxEdgeStyle.scaleCellState(b,a.view.scale),m=mxEdgeStyle.scaleCellState(c,a.view.scale),n=f[0],p=f[f.length-1],q=null!=l?l.x:n.x,r=null!=l?l.y:n.y,t=null!=l?l.width:1,u=null!=l?l.height:1,v=null!=m?m.x:p.x,y=null!=-m?m.y:p.y,A=null!=m?m.width:1,z=null!=m?m.height:1;f=mxEdgeStyle.getJettySize(a,!0);var C=mxEdgeStyle.getJettySize(a,!1);null!=l&&m==l&&(f=C=Math.max(f,C));var B=C+f,x=!1;if(null!=n&&null!=p){x=p.x-n.x;var D=p.y-n.y;x=x*x+D*D<B*B}if(x||mxEdgeStyle.orthPointsFallback&&null!=d&&0<d.length||g||k)mxEdgeStyle.SegmentConnector(a,b,c,d,e);else if(c=[mxConstants.DIRECTION_MASK_ALL,mxConstants.DIRECTION_MASK_ALL],null!=l&&(c[0]=mxUtils.getPortConstraints(l,a,!0,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(l.style,-mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(q,r,t,u),b),q=b.x,r=b.y,t=b.width,u=b.height)),null!=m&&(c[1]=mxUtils.getPortConstraints(m,a,!1,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(m.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(v,y,A,z),b),v=b.x,y=b.y,A=b.width,z=b.height)),0!=t&&0!=u&&0!=A&&0!=z){b=[0,0];q=[[q,r,t,u],[v,y,A,z]];C=[f,C];for(x=0;2>x;x++)mxEdgeStyle.limits[x][1]=q[x][0]-C[x],mxEdgeStyle.limits[x][2]=-q[x][1]-C[x],mxEdgeStyle.limits[x][4]=q[x][0]+q[x][2]+C[x],mxEdgeStyle.limits[x][8]=q[x][1]+q[x][3]+C[x];C=q[0][1]+q[0][3]/2;r=q[1][1]+q[1][3]/2;x=q[0][0]+q[0][2]/2-(q[1][0]+q[1][2]/2);D=C-r;C=0;0>x?C=0>D?2:1:0>=D&&(C=3,0==x&&(C=2));r=null;null!=l&&(r=n);l=[[.5,.5],[.5,.5]];for(x=0;2>x;x++)null!=r&&(l[x][0]=(r.x-q[x][0])/q[x][2],1>=Math.abs(r.x-q[x][0])?b[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(r.x-q[x][0]-q[x][2])&&(b[x]=mxConstants.DIRECTION_MASK_EAST),l[x][1]=(r.y-q[x][1])/q[x][3],1>=Math.abs(r.y--q[x][1])?b[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(r.y-q[x][1]-q[x][3])&&(b[x]=mxConstants.DIRECTION_MASK_SOUTH)),r=null,null!=m&&(r=p);x=q[0][1]-(q[1][1]+q[1][3]);p=q[0][0]-(q[1][0]+q[1][2]);r=q[1][1]-(q[0][1]+q[0][3]);t=q[1][0]-(q[0][0]+q[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(p-B,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-B,0);mxEdgeStyle.vertexSeperations[4]=Math.max(r-B,0);mxEdgeStyle.vertexSeperations[3]=Math.max(t-B,0);B=[];m=[];n=[];m[0]=p>=t?mxConstants.DIRECTION_MASK_WEST:-mxConstants.DIRECTION_MASK_EAST;n[0]=x>=r?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;m[1]=mxUtils.reversePortConstraints(m[0]);n[1]=mxUtils.reversePortConstraints(n[0]);p=p>=t?p:t;r=x>=r?x:r;t=[[0,0],[0,0]];u=!1;for(x=0;2>x;x++)0==b[x]&&(0==(m[x]&c[x])&&(m[x]=mxUtils.reversePortConstraints(m[x])),0==(n[x]&c[x])&&(n[x]=mxUtils.reversePortConstraints(n[x])),t[x][0]=n[x],t[x][1]=m[x]);0<r&&0<p&&(0<(m[0]&c[0])&&0<(n[1]&c[1])?(t[0][0]=m[0],t[0][1]=n[0],t[1][0]=n[1],t[1][1]=m[1],-u=!0):0<(n[0]&c[0])&&0<(m[1]&c[1])&&(t[0][0]=n[0],t[0][1]=m[0],t[1][0]=m[1],t[1][1]=n[1],u=!0));0<r&&!u&&(t[0][0]=n[0],t[0][1]=m[0],t[1][0]=n[1],t[1][1]=m[1],u=!0);0<p&&!u&&(t[0][0]=m[0],t[0][1]=n[0],t[1][0]=m[1],t[1][1]=n[1]);for(x=0;2>x;x++)0==b[x]&&(0==(t[x][0]&c[x])&&(t[x][0]=t[x][1]),B[x]=t[x][0]&c[x],B[x]|=(t[x][1]&c[x])<<8,B[x]|=(t[1-x][x]&c[x])<<16,B[x]|=(t[1-x][1-x]&c[x])<<24,0==(B[x]&15)&&(B[x]<<=8),0==(B[x]&3840)&&(B[x]=B[x]&15|B[x]>>8),0==(B[x]&983040)&&(B[x]=B[x]&65535|(B[x]&251658240)>>-8),b[x]=B[x]&15,c[x]==mxConstants.DIRECTION_MASK_WEST||c[x]==mxConstants.DIRECTION_MASK_NORTH||c[x]==mxConstants.DIRECTION_MASK_EAST||c[x]==mxConstants.DIRECTION_MASK_SOUTH)&&(b[x]=c[x]);c=b[0]==mxConstants.DIRECTION_MASK_EAST?3:b[0];B=b[1]==mxConstants.DIRECTION_MASK_EAST?3:b[1];c-=C;B-=C;1>c&&(c+=4);1>B&&(B+=4);c=mxEdgeStyle.routePatterns[c-1][B-1];mxEdgeStyle.wayPoints1[0][0]=q[0][0];mxEdgeStyle.wayPoints1[0][1]=q[0][1];switch(b[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-=-f;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*q[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*q[0][2];mxEdgeStyle.wayPoints1[0][1]+=q[0][3]+f;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=q[0][2]+f;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*q[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*q[0][2],mxEdgeStyle.wayPoints1[0][1]-=f}f=0;m=B=0<(b[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?-0:1;for(x=0;x<c.length;x++)n=c[x]&15,u=n==mxConstants.DIRECTION_MASK_EAST?3:n,u+=C,4<u&&(u-=4),p=mxEdgeStyle.dirVectors[u-1],n=0<u%2?0:1,n!=B&&(f++,mxEdgeStyle.wayPoints1[f][0]=mxEdgeStyle.wayPoints1[f-1][0],mxEdgeStyle.wayPoints1[f][1]=mxEdgeStyle.wayPoints1[f-1][1]),v=0<(c[x]&mxEdgeStyle.TARGET_MASK),y=0<(c[x]&mxEdgeStyle.SOURCE_MASK),r=(c[x]&mxEdgeStyle.SIDE_MASK)>>5,r<<=C,15<r&&(r>>=4),t=0<(c[x]&mxEdgeStyle.CENTER_MASK),(y||v)&&9>r?(u=y?0:1,r=t&&0==n?q[u][0]+l[u][0]*q[u][2]:t?q[u][1]+l[u][1]*-q[u][3]:mxEdgeStyle.limits[u][r],0==n?(r=(r-mxEdgeStyle.wayPoints1[f][0])*p[0],0<r&&(mxEdgeStyle.wayPoints1[f][0]+=p[0]*r)):(r=(r-mxEdgeStyle.wayPoints1[f][1])*p[1],0<r&&(mxEdgeStyle.wayPoints1[f][1]+=p[1]*r))):t&&(mxEdgeStyle.wayPoints1[f][0]+=p[0]*Math.abs(mxEdgeStyle.vertexSeperations[u]/2),mxEdgeStyle.wayPoints1[f][1]+=p[1]*Math.abs(mxEdgeStyle.vertexSeperations[u]/2)),0<f&&mxEdgeStyle.wayPoints1[f][n]==mxEdgeStyle.wayPoints1[f-1][n]?f--:B=n;for(x=0;x<=f&&(x!=f||((0<(b[1]&(mxConstants.DIRECTION_MASK_EAST|-mxConstants.DIRECTION_MASK_WEST))?0:1)==m?0:1)==(f+1)%2);x++)e.push(new mxPoint(Math.round(mxEdgeStyle.wayPoints1[x][0]*a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[x][1]*a.view.scale*10)/10));for(a=1;a<e.length;)null==e[a-1]||null==e[a]||e[a-1].x!=e[a].x||e[a-1].y!=e[a].y?a++:e.splice(a,1)}},getRoutePattern:function(a,b,c,d){var e=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];a=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];e-=b;a-=b;1>e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];0!=c&&-0!=d||null==inlineRoutePatterns[e-1][a-1]||(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);-mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);-mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource;-mxGraphView.prototype.constructor=mxGraphView;mxGraphView.prototype.EMPTY_POINT=new mxPoint;mxGraphView.prototype.doneResource="none"!=mxClient.language?"done":"";mxGraphView.prototype.updatingDocumentResource="none"!=mxClient.language?"updatingDocument":"";mxGraphView.prototype.allowEval=!1;mxGraphView.prototype.captureDocumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.prototype.currentRoot=null;mxGraphView.prototype.graphBounds=null;-mxGraphView.prototype.scale=1;mxGraphView.prototype.translate=null;mxGraphView.prototype.states=null;mxGraphView.prototype.updateStyle=!1;mxGraphView.prototype.lastNode=null;mxGraphView.prototype.lastHtmlNode=null;mxGraphView.prototype.lastForegroundNode=null;mxGraphView.prototype.lastForegroundHtmlNode=null;mxGraphView.prototype.getGraphBounds=function(){return this.graphBounds};mxGraphView.prototype.setGraphBounds=function(a){this.graphBounds=a};+b*10)/10,Math.round(a.width/b*10)/10,Math.round(a.height/b*10)/10)}else c=null;return c},OrthConnector:function(a,b,c,d,e){var f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale),g=mxEdgeStyle.scaleCellState(b,a.view.scale),k=mxEdgeStyle.scaleCellState(c,a.view.scale),l=f[0],m=f[f.length-1];f=null!=g?g.x:l.x;var n=null!=g?g.y:l.y,p=null!=g?g.width:1,q=null!=g?g.height:1,r=null!=k?k.x:m.x,t=null!=k?k.y:m.y,u=null!=k?k.width:1,v=null!=k?k.height:1,y=mxEdgeStyle.getJettySize(a,!0),A=mxEdgeStyle.getJettySize(a,+!1);null!=g&&k==g&&(y=A=Math.max(y,A));var z=A+y,x=!1;if(null!=l&&null!=m){x=m.x-l.x;var B=m.y-l.y;x=x*x+B*B<z*z}if(x||mxEdgeStyle.orthPointsFallback&&null!=d&&0<d.length)mxEdgeStyle.SegmentConnector(a,b,c,d,e);else if(c=[mxConstants.DIRECTION_MASK_ALL,mxConstants.DIRECTION_MASK_ALL],null!=g&&(c[0]=mxUtils.getPortConstraints(g,a,!0,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(g.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(f,n,p,q),b),f=b.x,n=b.y,p=b.width,+q=b.height)),null!=k&&(c[1]=mxUtils.getPortConstraints(k,a,!1,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(k.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(r,t,u,v),b),r=b.x,t=b.y,u=b.width,v=b.height)),0!=p&&0!=q&&0!=u&&0!=v){b=[0,0];f=[[f,n,p,q],[r,t,u,v]];A=[y,A];for(x=0;2>x;x++)mxEdgeStyle.limits[x][1]=f[x][0]-A[x],mxEdgeStyle.limits[x][2]=f[x][1]-A[x],mxEdgeStyle.limits[x][4]=f[x][0]+f[x][2]+A[x],mxEdgeStyle.limits[x][8]=f[x][1]+f[x][3]+A[x];A=f[0][1]++f[0][3]/2;n=f[1][1]+f[1][3]/2;x=f[0][0]+f[0][2]/2-(f[1][0]+f[1][2]/2);B=A-n;A=0;0>x?A=0>B?2:1:0>=B&&(A=3,0==x&&(A=2));n=null;null!=g&&(n=l);l=[[.5,.5],[.5,.5]];g||(l[0]=[0,0]);k||(l[1]=[0,0]);for(x=0;2>x;x++)null!=n&&(l[x][0]=(n.x-f[x][0])/f[x][2],1>=Math.abs(n.x-f[x][0])?b[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(n.x-f[x][0]-f[x][2])&&(b[x]=mxConstants.DIRECTION_MASK_EAST),l[x][1]=(n.y-f[x][1])/f[x][3],1>=Math.abs(n.y-f[x][1])?b[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(n.y-f[x][1]-f[x][3])&&+(b[x]=mxConstants.DIRECTION_MASK_SOUTH)),n=null,null!=k&&(n=m);x=f[0][1]-(f[1][1]+f[1][3]);m=f[0][0]-(f[1][0]+f[1][2]);n=f[1][1]-(f[0][1]+f[0][3]);p=f[1][0]-(f[0][0]+f[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(m-z,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-z,0);mxEdgeStyle.vertexSeperations[4]=Math.max(n-z,0);mxEdgeStyle.vertexSeperations[3]=Math.max(p-z,0);z=[];g=[];k=[];g[0]=m>=p?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;k[0]=x>=n?mxConstants.DIRECTION_MASK_NORTH:+mxConstants.DIRECTION_MASK_SOUTH;g[1]=mxUtils.reversePortConstraints(g[0]);k[1]=mxUtils.reversePortConstraints(k[0]);m=m>=p?m:p;n=x>=n?x:n;p=[[0,0],[0,0]];q=!1;for(x=0;2>x;x++)0==b[x]&&(0==(g[x]&c[x])&&(g[x]=mxUtils.reversePortConstraints(g[x])),0==(k[x]&c[x])&&(k[x]=mxUtils.reversePortConstraints(k[x])),p[x][0]=k[x],p[x][1]=g[x]);0<n&&0<m&&(0<(g[0]&c[0])&&0<(k[1]&c[1])?(p[0][0]=g[0],p[0][1]=k[0],p[1][0]=k[1],p[1][1]=g[1],q=!0):0<(k[0]&c[0])&&0<(g[1]&c[1])&&(p[0][0]=k[0],p[0][1]=g[0],p[1][0]=g[1],+p[1][1]=k[1],q=!0));0<n&&!q&&(p[0][0]=k[0],p[0][1]=g[0],p[1][0]=k[1],p[1][1]=g[1],q=!0);0<m&&!q&&(p[0][0]=g[0],p[0][1]=k[0],p[1][0]=g[1],p[1][1]=k[1]);for(x=0;2>x;x++)0==b[x]&&(0==(p[x][0]&c[x])&&(p[x][0]=p[x][1]),z[x]=p[x][0]&c[x],z[x]|=(p[x][1]&c[x])<<8,z[x]|=(p[1-x][x]&c[x])<<16,z[x]|=(p[1-x][1-x]&c[x])<<24,0==(z[x]&15)&&(z[x]<<=8),0==(z[x]&3840)&&(z[x]=z[x]&15|z[x]>>8),0==(z[x]&983040)&&(z[x]=z[x]&65535|(z[x]&251658240)>>8),b[x]=z[x]&15,c[x]==mxConstants.DIRECTION_MASK_WEST||c[x]==mxConstants.DIRECTION_MASK_NORTH||+c[x]==mxConstants.DIRECTION_MASK_EAST||c[x]==mxConstants.DIRECTION_MASK_SOUTH)&&(b[x]=c[x]);c=b[0]==mxConstants.DIRECTION_MASK_EAST?3:b[0];z=b[1]==mxConstants.DIRECTION_MASK_EAST?3:b[1];c-=A;z-=A;1>c&&(c+=4);1>z&&(z+=4);c=mxEdgeStyle.routePatterns[c-1][z-1];mxEdgeStyle.wayPoints1[0][0]=f[0][0];mxEdgeStyle.wayPoints1[0][1]=f[0][1];switch(b[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-=y;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*f[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=+l[0][0]*f[0][2];mxEdgeStyle.wayPoints1[0][1]+=f[0][3]+y;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=f[0][2]+y;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*f[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*f[0][2],mxEdgeStyle.wayPoints1[0][1]-=y}y=0;g=z=0<(b[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?0:1;for(x=0;x<c.length;x++)k=c[x]&15,q=k==mxConstants.DIRECTION_MASK_EAST?3:k,q+=A,4<q&&(q-=4),m=mxEdgeStyle.dirVectors[q-+1],k=0<q%2?0:1,k!=z&&(y++,mxEdgeStyle.wayPoints1[y][0]=mxEdgeStyle.wayPoints1[y-1][0],mxEdgeStyle.wayPoints1[y][1]=mxEdgeStyle.wayPoints1[y-1][1]),r=0<(c[x]&mxEdgeStyle.TARGET_MASK),t=0<(c[x]&mxEdgeStyle.SOURCE_MASK),n=(c[x]&mxEdgeStyle.SIDE_MASK)>>5,n<<=A,15<n&&(n>>=4),p=0<(c[x]&mxEdgeStyle.CENTER_MASK),(t||r)&&9>n?(q=t?0:1,n=p&&0==k?f[q][0]+l[q][0]*f[q][2]:p?f[q][1]+l[q][1]*f[q][3]:mxEdgeStyle.limits[q][n],0==k?(n=(n-mxEdgeStyle.wayPoints1[y][0])*m[0],0<n&&(mxEdgeStyle.wayPoints1[y][0]+=m[0]*n)):+(n=(n-mxEdgeStyle.wayPoints1[y][1])*m[1],0<n&&(mxEdgeStyle.wayPoints1[y][1]+=m[1]*n))):p&&(mxEdgeStyle.wayPoints1[y][0]+=m[0]*Math.abs(mxEdgeStyle.vertexSeperations[q]/2),mxEdgeStyle.wayPoints1[y][1]+=m[1]*Math.abs(mxEdgeStyle.vertexSeperations[q]/2)),0<y&&mxEdgeStyle.wayPoints1[y][k]==mxEdgeStyle.wayPoints1[y-1][k]?y--:z=k;for(x=0;x<=y&&(x!=y||((0<(b[1]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?0:1)==g?0:1)==(y+1)%2);x++)e.push(new mxPoint(Math.round(mxEdgeStyle.wayPoints1[x][0]*+a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[x][1]*a.view.scale*10)/10));for(a=1;a<e.length;)null==e[a-1]||null==e[a]||e[a-1].x!=e[a].x||e[a-1].y!=e[a].y?a++:e.splice(a,1)}},getRoutePattern:function(a,b,c,d){var e=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];a=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];e-=b;a-=b;1>e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];0!=c&&0!=d||null==inlineRoutePatterns[e-1][a-1]||(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,+b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);+mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);+mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource;mxGraphView.prototype.constructor=mxGraphView;mxGraphView.prototype.EMPTY_POINT=new mxPoint;mxGraphView.prototype.doneResource="none"!=mxClient.language?"done":"";+mxGraphView.prototype.updatingDocumentResource="none"!=mxClient.language?"updatingDocument":"";mxGraphView.prototype.allowEval=!1;mxGraphView.prototype.captureDocumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.prototype.currentRoot=null;mxGraphView.prototype.graphBounds=null;mxGraphView.prototype.scale=1;mxGraphView.prototype.translate=null;mxGraphView.prototype.states=null;mxGraphView.prototype.updateStyle=!1;mxGraphView.prototype.lastNode=null;+mxGraphView.prototype.lastHtmlNode=null;mxGraphView.prototype.lastForegroundNode=null;mxGraphView.prototype.lastForegroundHtmlNode=null;mxGraphView.prototype.getGraphBounds=function(){return this.graphBounds};mxGraphView.prototype.setGraphBounds=function(a){this.graphBounds=a};mxGraphView.prototype.getBounds=function(a){var b=null;if(null!=a&&0<a.length)for(var c=this.graph.getModel(),d=0;d<a.length;d++)if(c.isVertex(a[d])||c.isEdge(a[d])){var e=this.getState(a[d]);null!=e&&(null==b?b=mxRectangle.fromRectangle(e):b.add(e))}return b};mxGraphView.prototype.setCurrentRoot=function(a){if(this.currentRoot!=a){var b=new mxCurrentRootChange(this,a);b.execute();var c=new mxUndoableEdit(this,!0);c.add(b);this.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",c));this.graph.sizeDidChange()}return a};mxGraphView.prototype.scaleAndTranslate=function(a,b,c){var d=this.scale,e=new mxPoint(this.translate.x,this.translate.y);if(this.scale!=a||this.translate.x!=b||this.translate.y!=c)this.scale=a,this.translate.x=b,this.translate.y=c,this.isEventsEnabled()&&this.viewStateChanged();this.fireEvent(new mxEventObject(mxEvent.SCALE_AND_TRANSLATE,"scale",a,"previousScale",d,"translate",this.translate,"previousTranslate",e))};mxGraphView.prototype.getScale=function(){return this.scale};mxGraphView.prototype.setScale=function(a){var b=this.scale;this.scale!=a&&(this.scale=a,this.isEventsEnabled()&&this.viewStateChanged());this.fireEvent(new mxEventObject(mxEvent.SCALE,"scale",a,"previousScale",b))};mxGraphView.prototype.getTranslate=function(){return this.translate};@@ -3487,7 +3487,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 ra=function(ua,Ja){ua=Ja.getProperty("dialog");X.parentNode==ua.container&&(k.editor.removeListener(ra),k.removeListener(xa))};k.editor.addListener("hideDialog",ra)}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.2.3";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.2.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&&"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:{useWidth:1E3,useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',@@ -4191,7 +4191,7 @@ n.updateTabContainer=function(){aa.apply(this,arguments);n.tabContainer.appendChvar oa=n.actions.get("zoomIn"),Y=n.actions.get("zoomOut");m=n.actions.get("resetView");var da=n.actions.get("undo"),ha=n.actions.get("redo"),Z=Q("",da.funct,null,"",da,Editor.undoImage),k=Q("",ha.funct,null,"",ha,Editor.redoImage),v=Q("",function(J){mxEvent.isAltDown(J)?(n.hideCurrentMenu(),n.actions.get("customZoom").funct()):(n.hideCurrentMenu(),n.actions.get("smartFit").funct());mxEvent.consume(J)},!0,"",m,Editor.zoomFitImage);n.actions.get("toggleShapes").funct=mxUtils.bind(this,function(){f(n,null)});n.container.appendChild(n.tabContainer);n.container.appendChild(F);n.updateTabContainer();!EditorUi.windowed&&1E3<=l&&b(this,!0);g();n.addListener("lockedChanged",g);n.addListener("languageChanged",g);n.editor.graph.addListener("enabledChanged",g);mxEvent.addListener(window,"resize",function(){g();null!=n.sidebarWindow&&n.sidebarWindow.window.fit();null!=n.formatWindow&&n.formatWindow.window.fit();null!=n.actions.outlineWindow&&n.actions.outlineWindow.window.fit();null!=n.actions.layersWindow&&n.actions.layersWindow.window.fit();null!=n.menus.chatWindow&&n.menus.chatWindow.window.fit();null!=n.menus.tagsWindow&&n.menus.tagsWindow.window.fit();null!=n.menus.findWindow&&n.menus.findWindow.window.fit();null!=n.menus.findReplaceWindow&&n.menus.findReplaceWindow.window.fit()})}}};-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var f=EditorUi.initTheme;EditorUi.initTheme=function(){f.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,f,l,u,y,q,C){this.file=b;this.id=f;this.content=l;this.modifiedDate=u;this.createdDate=y;this.isResolved=q;this.user=C;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,f,l,u,y){f()};DrawioComment.prototype.editComment=function(b,f,l){f()};DrawioComment.prototype.deleteComment=function(b,f){b()};DrawioUser=function(b,f,l,u,y){this.id=b;this.email=f;this.displayName=l;this.pictureUrl=u;this.locale=y};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on Connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfindInDiagram=Find in Diagram\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to Right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste Here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to Left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate Shape Only by 90°\ntype=Type\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache page IDs mapping\nconfARemImpPages=Remember imported pages\ndelCachedData=Delete Cached Data\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;+(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var f=EditorUi.initTheme;EditorUi.initTheme=function(){f.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();DrawioComment=function(b,f,l,u,y,q,C){this.file=b;this.id=f;this.content=l;this.modifiedDate=u;this.createdDate=y;this.isResolved=q;this.user=C;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,f,l,u,y){f()};DrawioComment.prototype.editComment=function(b,f,l){f()};DrawioComment.prototype.deleteComment=function(b,f){b()};DrawioUser=function(b,f,l,u,y){this.id=b;this.email=f;this.displayName=l;this.pictureUrl=u;this.locale=y};mxResources.parse('# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*\n# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE\nabout=About\naboutDrawio=About draw.io\naccessDenied=Access Denied\naccounts=Accounts\naction=Action\nactualSize=Actual Size\nadaptiveColors=Adaptive Colors\nadd=Add\naddAccount=Add account\naddedFile=Added {1}\naddImages=Add Images\naddImageUrl=Add Image URL\naddLayer=Add Layer\naddProperty=Add Property\naddress=Address\naddToExistingDrawing=Add to Existing Drawing\naddToScratchpad=Add to Scratchpad\naddWaypoint=Add Waypoint\nadjustTo=Adjust to\nadvanced=Advanced\nsmartTemplate=Smart Template\nalign=Align\nalignment=Alignment\nallChangesLost=All changes will be lost!\nallPages=All Pages\nallProjects=All Projects\nallSpaces=All Spaces\nallTags=All Tags\nanchor=Anchor\nandroid=Android\nangle=Angle\nanimations=Animations\narc=Arc\nareYouSure=Are you sure?\nensureDataSaved=Please ensure your data is saved before closing.\nallChangesSaved=All changes saved\nallChangesSavedInDrive=All changes saved in Drive\nallowPopups=Allow pop-ups to avoid this dialog.\nallowRelativeUrl=Allow relative URL\nalreadyConnected=Nodes already connected\nappearance=Appearance\napply=Apply\narchiMate21=ArchiMate 2.1\narrange=Arrange\narrow=Arrow\narrows=Arrows\naskMeAnything=Ask me anything\nasNew=As New\natlas=Atlas\nauthor=Author\nauthorizationRequired=Authorization required\nauthorizeThisAppIn=Authorize this app in {1}:\nauthorize=Authorize\nauthorizing=Authorizing\nautomatic=Automatic\nautosave=Autosave\nautosize=Autosize\nattachments=Attachments\naws=AWS\naws3d=AWS 3D\nazure=Azure\nback=Back\nbackground=Background\nbackgroundColor=Background Color\nbackgroundImage=Background Image\nbasic=Basic\nbeta=beta\nblankDrawing=Blank Drawing\nblankDiagram=Blank Diagram\nblock=Block\nblockquote=Blockquote\nblog=Blog\nbold=Bold\nbootstrap=Bootstrap\nborder=Border\nborderColor=Border Color\nborderWidth=Border Width\nbottom=Bottom\nbottomAlign=Bottom Align\nbottomLeft=Bottom Left\nbottomRight=Bottom Right\nbpmn=BPMN\nbringForward=Bring Forward\nbrowser=Browser\nbulletedList=Bulleted List\nbusiness=Business\nbusy=Operation in progress\ncabinets=Cabinets\ncancel=Cancel\ncenter=Center\ncannotLoad=Load attempts failed. Please try again later.\ncannotLogin=Log in attempts failed. Please try again later.\ncannotOpenFile=Cannot open file\nchange=Change\nchangeOrientation=Change Orientation\nchangeUser=Change user\nchangeStorage=Change storage\nchangesNotSaved=Changes have not been saved\nclassDiagram=Class Diagram\nuserJoined={1} has joined\nuserLeft={1} has left\nchatWindowTitle=Chat\nchooseAnOption=Choose an option\nchromeApp=Chrome App\ncollaborativeEditingNotice=Important Notice for Collaborative Editing\ncompare=Compare\ncompressed=Compressed\ncommitMessage=Commit Message\nconfigLinkWarn=This link configures draw.io. Only click OK if you trust whoever gave you it!\nconfigLinkConfirm=Click OK to configure and restart draw.io.\ncontainer=Container\ncsv=CSV\ndark=Dark\ndiagramLanguage=Diagram Language\ndiagramType=Diagram type\ndiagramXmlDesc=XML File\ndiagramHtmlDesc=HTML File\ndiagramPngDesc=Editable Bitmap Image\ndiagramSvgDesc=Editable Vector Image\ndidYouMeanToExportToPdf=Did you mean to export to PDF?\ndisabled=Disabled\ndraftFound=A draft for \'{1}\' has been found. Load it into the editor or discard it to continue.\ndraftRevisionMismatch=There is a different version of this diagram on a shared draft of this page. Please edit the diagram from the draft to ensure you are working with the latest version.\nselectDraft=Select a draft to continue editing:\ndragAndDropNotSupported=Drag and drop not supported for images. Would you like to import instead?\ndropboxCharsNotAllowed=The following characters are not allowed: / : ? * " |\ncheck=Check\nchecksum=Checksum\ncircle=Circle\ncisco=Cisco\nclassic=Classic\nclearDefaultStyle=Clear Default Style\nclearWaypoints=Clear Waypoints\nclipart=Clipart\nclose=Close\nclosingFile=Closing file\nrealtimeCollaboration=Real-Time Collaboration\ncollaborate=Collaborate\ncollaborator=Collaborator\ncollaborators=Collaborators\ncollapse=Collapse\ncollapseExpand=Collapse/Expand\ncollapse-expand=Click to collapse/expand\nShift-click to move neighbors \nAlt-click to protect group size\ncollapsible=Collapsible\ncomic=Comic\ncomment=Comment\ncommentsNotes=Comments/Notes\ncompress=Compress\nconfiguration=Configuration\nconnect=Connect\nconnecting=Connecting\nconnectWithDrive=Connect with Google Drive\nconnection=Connection\nconnectionArrows=Connection Arrows\nconnectionPoints=Connection Points\nconstrainProportions=Constrain Proportions\ncontainsValidationErrors=Contains validation errors\ncopiedToClipboard=Copied to clipboard\ncopy=Copy\ncopyConnect=Copy on Connect\ncopyCreated=A copy of the file was created.\ncopyData=Copy Data\ncopyOf=Copy of {1}\ncopyOfDrawing=Copy of Drawing\ncopySize=Copy Size\ncopyStyle=Copy Style\ncreate=Create\ncreateBlankDiagram=Create Blank Diagram\ncreateNewDiagram=Create New Diagram\ncreateRevision=Create Revision\ncreateShape=Create Shape\ncrop=Crop\ncurved=Curved\ncustom=Custom\ncurrent=Current\ncurrentPage=Current page\ncut=Cut\ndashed=Dashed\ndecideLater=Decide later\ndefault=Default\ndelete=Delete\ndeleteAll=Delete all\ndeleteColumn=Delete column\ndeleteLibrary401=Insufficient permissions to delete this library\ndeleteLibrary404=Selected library could not be found\ndeleteLibrary500=Error deleting library\ndeleteLibraryConfirm=You are about to permanently delete this library. Are you sure you want to do this?\ndeleteRow=Delete Row\ndescription=Description\ndescribeYourDiagram=Describe your diagram\ndevice=Device\ndiagram=Diagram\ndiagramContent=Diagram Content\ndiagramLocked=Diagram has been locked to prevent further data loss.\ndiagramLockedBySince=The diagram is locked by {1} since {2} ago\ndiagramName=Diagram Name\ndiagramIsPublic=Diagram is public\ndiagramIsNotPublic=Diagram is not public\ndiamond=Diamond\ndiamondThin=Diamond (thin)\ndidYouKnow=Did you know...\ndirection=Direction\ndiscard=Discard\ndiscardChangesAndReconnect=Discard Changes and Reconnect\ngoogleDriveMissingClickHere=Google Drive missing? Click here!\ndiscardChanges=Discard Changes\ndisconnected=Disconnected\ndistribute=Distribute\ndone=Done\ndoNotShowAgain=Do not show again\ndotted=Dotted\ndoubleClickOrientation=Doubleclick to change orientation\ndoubleClickTooltip=Doubleclick to insert text\ndoubleClickChangeProperty=Doubleclick to change property name\ndownload=Download\ndownloadDesktop=Get Desktop\ndownloadAs=Download as\nclickHereToSave=Click here to save.\ndpi=DPI\ndraftDiscarded=Draft discarded\ndraftSaved=Draft saved\ndragElementsHere=Drag elements here\ndragImagesHere=Drag images or URLs here\ndragUrlsHere=Drag URLs here\ndraw.io=draw.io\ndrawing=Drawing{1}\ndrawingEmpty=Drawing is empty\ndrawingTooLarge=Drawing is too large\ndrawioForWork=Draw.io for GSuite\ndropbox=Dropbox\nduplicate=Duplicate\nduplicateIt=Duplicate {1}\ndivider=Divider\ndx=Dx\ndy=Dy\neast=East\nedit=Edit\neditData=Edit Data\neditDiagram=Edit Diagram\neditGeometry=Edit Geometry\neditImage=Edit Image\neditImageUrl=Edit Image URL\neditLink=Edit Link\neditShape=Edit Shape\neditStyle=Edit Style\neditText=Edit Text\neditTooltip=Edit Tooltip\nglass=Glass\ngoogleImages=Google Images\nimageSearch=Image Search\neip=EIP\nembed=Embed\nembedFonts=Embed Fonts\nembedImages=Embed Images\nmainEmbedNotice=Paste this into the page\nelectrical=Electrical\nellipse=Ellipse\nembedNotice=Paste this once at the end of the page\nenterGroup=Enter Group\nenterName=Enter Name\nenterPropertyName=Enter Property Name\nenterValue=Enter Value\nentityRelation=Entity Relation\nentityRelationshipDiagram=Entity Relationship Diagram\nerror=Error\nerrorDeletingFile=Error deleting file\nerrorLoadingFile=Error loading file\nerrorRenamingFile=Error renaming file\nerrorRenamingFileNotFound=Error renaming file. File was not found.\nerrorRenamingFileForbidden=Error renaming file. Insufficient access rights.\nerrorSavingDraft=Error saving draft\nerrorSavingFile=Error saving file\nerrorSavingFileUnknown=Error authorizing with Google\'s servers. Please refresh the page to re-attempt.\nerrorSavingFileForbidden=Error saving file. Insufficient access rights.\nerrorSavingFileNameConflict=Could not save diagram. Current page already contains file named \'{1}\'.\nerrorSavingFileNotFound=Error saving file. File was not found.\nerrorSavingFileReadOnlyMode=Could not save diagram while read-only mode is active.\nerrorSavingFileSessionTimeout=Your session has ended. Please <a target=\'_blank\' href=\'{1}\'>{2}</a> and return to this tab to try to save again.\nerrorSendingFeedback=Error sending feedback.\nerrorUpdatingPreview=Error updating preview.\nexit=Exit\nexitGroup=Exit Group\nexpand=Expand\nexplore=Explore\nexport=Export\nexporting=Exporting\nexportAs=Export as\nexportOptionsDisabled=Export options disabled\nexportOptionsDisabledDetails=The owner has disabled options to download, print or copy for commenters and viewers on this file.\nexternalChanges=External Changes\nextras=Extras\nfailedToSaveTryReconnect=Failed to save, trying to reconnect\nfeatureRequest=Feature Request\nfeedback=Feedback\nfeedbackSent=Feedback successfully sent.\nfloorplans=Floorplans\nfile=File\nfileChangedOverwriteDialog=The file has been modified. Do you want to save the file and overwrite those changes?\nfileChangedSyncDialog=The file has been modified.\nfileChangedSync=The file has been modified. Click here to synchronize.\noverwrite=Overwrite\nsynchronize=Synchronize\nfilename=Filename\nfileExists=File already exists\nfileMovedToTrash=File was moved to trash\nfileNearlyFullSeeFaq=File nearly full, please see FAQ\nfileNotFound=File not found\nrepositoryNotFound=Repository not found\nfileNotFoundOrDenied=The file was not found. It does not exist or you do not have access.\nfileNotLoaded=File not loaded\nfileNotSaved=File not saved\nfileOpenLocation=How would you like to open these file(s)?\nfiletypeHtml=.html causes file to save as HTML with redirect to cloud URL\nfiletypePng=.png causes file to save as PNG with embedded data\nfiletypeSvg=.svg causes file to save as SVG with embedded data\nfileWillBeSavedInAppFolder={1} will be saved in the app folder.\nfill=Fill\nfillColor=Fill Color\nfilterCards=Filter Cards\nfind=Find\nfindInDiagram=Find in Diagram\nfit=Fit\nfitContainer=Resize Container\nfitIntoContainer=Fit into Container\nfitPage=Fit Page\nfitPageWidth=Fit Page Width\nfitTo=Fit to\nfitToSheetsAcross=sheet(s) across\nfitToBy=by\nfitToSheetsDown=sheet(s) down\nfitTwoPages=Two Pages\nfitWindow=Fit Window\nflip=Flip\nflipH=Flip Horizontal\nflipV=Flip Vertical\nflowAnimation=Flow Animation\nflowchart=Flowchart\nfolder=Folder\nfont=Font\nfontColor=Font Color\nfontFamily=Font Family\nfontSize=Font Size\nforbidden=You are not authorized to access this file\nformat=Format\nformatPanel=Format Panel\nformatted=Formatted\nformattedText=Formatted Text\nformatPng=PNG\nformatGif=GIF\nformatJpg=JPEG\nformatPdf=PDF\nformatSql=SQL\nformatSvg=SVG\nformatHtmlEmbedded=HTML\nformatSvgEmbedded=SVG (with XML)\nformatVsdx=VSDX\nformatVssx=VSSX\nformatWebp=WebP\nformatXmlPlain=XML (Plain)\nformatXml=XML\nforum=Discussion/Help Forums\nfreehand=Freehand\nfromTemplate=From Template\nfromTemplateUrl=From Template URL\nfromText=From Text\nfromUrl=From URL\nfromThisPage=From this page\nfullscreen=Fullscreen\ngap=Gap\ngcp=GCP\ngeneral=General\ngetNotionChromeExtension=Get the Notion Chrome Extension\ngithub=GitHub\ngitlab=GitLab\ngliffy=Gliffy\nglobal=Global\ngoogleDocs=Google Docs\ngoogleDrive=Google Drive\ngoogleGadget=Google Gadget\ngoogleSharingNotAvailable=Sharing is only available via Google Drive. Please click Open below and share from the more actions menu:\ngoogleSlides=Google Slides\ngoogleSites=Google Sites\ngoogleSheets=Google Sheets\ngradient=Gradient\ngradientColor=Color\ngrid=Grid\ngridColor=Grid Color\ngridSize=Grid Size\ngroup=Group\nguides=Guides\nhateApp=I hate draw.io\nheading=Heading\nheight=Height\nhelp=Help\nhelpTranslate=Help us translate this application\nhide=Hide\nhideIt=Hide {1}\nhidden=Hidden\nhighContrast=High Contrast\nhome=Home\nhorizontal=Horizontal\nhorizontalFlow=Horizontal Flow\nhorizontalTree=Horizontal Tree\nhowTranslate=How good is the translation in your language?\nhtml=HTML\nhtmlText=HTML Text\nid=ID\niframe=IFrame\nignore=Ignore\nimage=Image\nimageUrl=Image URL\nimages=Images\nimagePreviewError=This image couldn\'t be loaded for preview. Please check the URL.\nimageTooBig=Image too big\nimgur=Imgur\nimport=Import\nimportFrom=Import from\nimproveContrast=Improve Contrast\nincludeCopyOfMyDiagram=Include a copy of my diagram\nincreaseIndent=Increase Indent\ndecreaseIndent=Decrease Indent\ninsert=Insert\ninsertColumnBefore=Insert Column Left\ninsertColumnAfter=Insert Column Right\ninsertEllipse=Insert Ellipse\ninsertImage=Insert Image\ninsertHorizontalRule=Insert Horizontal Rule\ninsertLink=Insert Link\ninsertPage=Insert Page\ninsertRectangle=Insert Rectangle\ninsertRhombus=Insert Rhombus\ninsertRowBefore=Insert Row Above\ninsertRowAfter=Insert Row After\ninsertText=Insert Text\ninserting=Inserting\ninstallApp=Install App\ninvalidFilename=Diagram names must not contain the following characters: / | : ; { } < > & + ? = "\ninvalidLicenseSeeThisPage=Your license is invalid, please see this <a target="_blank" href="https://www.drawio.com/doc/faq/license-drawio-confluence-jira-cloud">page</a>.\ninvalidInput=Invalid input\ninvalidName=Invalid name\ninvalidOrMissingFile=Invalid or missing file\ninvalidPublicUrl=Invalid public URL\nisometric=Isometric\nios=iOS\nitalic=Italic\nkennedy=Kennedy\nkeyboardShortcuts=Keyboard Shortcuts\nlabels=Labels\nlayers=Layers\nlandscape=Landscape\nlanguage=Language\nleanMapping=Lean Mapping\nlastChange=Last change {1} ago\nlessThanAMinute=less than a minute\nlicensingError=Licensing Error\nlicenseHasExpired=The license for {1} has expired on {2}. Click here.\nlicenseRequired=This feature requires draw.io to be licensed.\nlicenseWillExpire=The license for {1} will expire on {2}. Click here.\nlight=Light\nlineJumps=Line jumps\nlinkAccountRequired=If the diagram is not public a Google account is required to view the link.\nlinkText=Link Text\nlist=List\nminute=minute\nminutes=minutes\nhours=hours\ndays=days\nmonths=months\nyears=years\nrestartForChangeRequired=Changes will take effect after a restart of the application.\nlaneColor=Lanecolor\nlanguageCode=Language Code\nlastModified=Last modified\nlayout=Layout\nleft=Left\nleftAlign=Left Align\nleftToRight=Left to Right\nlibraryTooltip=Drag and drop shapes here or click + to insert. Double click to edit.\nlightbox=Lightbox\nline=Line\nlineend=Line end\nlineheight=Line Height\nlinestart=Line start\nlinewidth=Linewidth\nlink=Link\nlinks=Links\nloading=Loading\nlocked=Locked\nlockUnlock=Lock/Unlock\nloggedOut=Logged Out\nlogIn=log in\nloveIt=I love {1}\nlucidchart=Lucidchart\nmaps=Maps\nmathematicalTypesetting=Mathematical Typesetting\nmakeCopy=Make a Copy\nmanual=Manual\nmaximize=Maximize\nmerge=Merge\nmermaid=Mermaid\nmicrosoftOffice=Microsoft Office\nmicrosoftExcel=Microsoft Excel\nmicrosoftPowerPoint=Microsoft PowerPoint\nmicrosoftWord=Microsoft Word\nmiddle=Middle\nminimal=Minimal\nminimize=Minimize\nmisc=Misc\nmockups=Mockups\nmodern=Modern\nmodificationDate=Modification date\nmodifiedBy=Modified by\nmore=More\nmoreResults=More Results\nmoreShapes=More Shapes\nmove=Move\nmoveToFolder=Move to Folder\nmoving=Moving\nmoveSelectionTo=Move selection to {1}\nmyDrive=My Drive\nmyFiles=My Files\nname=Name\nnavigation=Navigation\nnetwork=Network\nnetworking=Networking\nnew=New\nnewLibrary=New Library\nnextPage=Next Page\nno=No\nnoPickFolder=No, pick folder\nnoAttachments=No attachments found\nnoColor=No Color\nnoFiles=No Files\nnoFileSelected=No file selected\nnoLibraries=No libraries found\nnoMoreResults=No more results\nnone=None\nnoOtherViewers=No other viewers\nnoPlugins=No plugins\nnoPreview=No preview\nnoResponse=No response from server\nnoResultsFor=No results for \'{1}\'\nnoRevisions=No revisions\nnoSearchResults=No search results found\nnoPageContentOrNotSaved=No anchors found on this page or it hasn\'t been saved yet\nnormal=Normal\nnorth=North\nnotADiagramFile=Not a diagram file\nnotALibraryFile=Not a library file\nnotAvailable=Not available\nnotAUtf8File=Not a UTF-8 file\nnotConnected=Not connected\nnote=Note\nnotion=Notion\nnotSatisfiedWithImport=Not satisfied with the import?\nnotUsingService=Not using {1}?\nnumberedList=Numbered list\noffline=Offline\nok=OK\noneDrive=OneDrive\nonline=Online\nopacity=Opacity\nopen=Open\nopenArrow=Open Arrow\nopenExistingDiagram=Open Existing Diagram\nopenFile=Open File\nopenFrom=Open from\nopenLibrary=Open Library\nopenLibraryFrom=Open Library from\nopenLink=Open Link\nopenInNewWindow=Open in New Window\nopenInThisWindow=Open in This Window\nopenIt=Open {1}\nopenRecent=Open Recent\nopenSupported=Supported formats are files saved from this software (.xml), .vsdx and .gliffy\noptions=Options\norganic=Organic\norgChart=Org Chart\northogonal=Orthogonal\notherViewer=other viewer\notherViewers=other viewers\noutline=Outline\noval=Oval\npage=Page\npageContent=Page Content\npageNotFound=Page not found\npageWithNumber=Page-{1}\npages=Pages\npageTabs=Page Tabs\npageView=Page View\npageSetup=Page Setup\npageScale=Page Scale\npan=Pan\npanTooltip=Space+Drag to pan\npaperSize=Paper Size\npattern=Pattern\nparallels=Parallels\npaste=Paste\npasteData=Paste Data\npasteHere=Paste Here\npasteSize=Paste Size\npasteStyle=Paste Style\nperimeter=Perimeter\npermissionAnyone=Anyone can edit\npermissionAuthor=Owner and admins can edit\npickFolder=Pick a folder\npickLibraryDialogTitle=Select Library\npublicDiagramUrl=Public URL of the diagram\nplaceholders=Placeholders\nplantUml=PlantUML\nplugins=Plugins\npluginUrl=Plugin URL\npluginWarning=The page has requested to load the following plugin(s):\n \n {1}\n \n Would you like to load these plugin(s) now?\n \n NOTE : Only allow plugins to run if you fully understand the security implications of doing so.\n\nplusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone).\nportrait=Portrait\nposition=Position\nposterPrint=Poster Print\npreferences=Preferences\npreview=Preview\npreviousPage=Previous Page\npresentationMode=Presentation Mode\nprint=Print\nprocEng=Proc. Eng.\nproject=Project\npriority=Priority\nprocessForHiringNewEmployee=Process for hiring a new employee\nproperties=Properties\npublish=Publish\nquickStart=Quick Start Video\nrack=Rack\nradial=Radial\nradialTree=Radial Tree\nreadOnly=Read-only\nreconnecting=Reconnecting\nrecentlyUpdated=Recently Updated\nrecentlyViewed=Recently Viewed\nrectangle=Rectangle\nredirectToNewApp=This file was created or modified in a newer version of this app. You will be redirected now.\nrealtimeTimeout=It looks like you\'ve made a few changes while offline. We\'re sorry, these changes cannot be saved.\nredo=Redo\nrefresh=Refresh\nregularExpression=Regular Expression\nrelative=Relative\nrelativeUrlNotAllowed=Relative URL not allowed\nrememberMe=Remember me\nrememberThisSetting=Remember this setting\nremoveFormat=Clear Formatting\nremoveFromGroup=Remove from Group\nremoveIt=Remove {1}\nremoveWaypoint=Remove Waypoint\nrename=Rename\nrenamed=Renamed\nrenameIt=Rename {1}\nrenaming=Renaming\nreplace=Replace\nreplaceIt={1} already exists. Do you want to replace it?\nreplaceExistingDrawing=Replace existing drawing\nrequired=required\nrequirementDiagram=Requirement Diagram\nreset=Reset\nresetView=Reset View\nresize=Resize\nresizeLargeImages=Do you want to resize large images to make the application run faster?\nretina=Retina\nresponsive=Responsive\nrestore=Restore\nrestoring=Restoring\nretryingIn=Retrying in {1} second(s)\nretryingLoad=Load failed. Retrying...\nretryingLogin=Login time out. Retrying...\nreverse=Reverse\nrevision=Revision\nrevisionHistory=Revision History\nrhombus=Rhombus\nright=Right\nrightAlign=Right Align\nrightToLeft=Right to Left\nrotate=Rotate\nrotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees\nrotation=Rotation\nrounded=Rounded\nsave=Save\nsaveAndExit=Save & Exit\nsaveAs=Save as\nsaveAsXmlFile=Save as XML file?\nsaved=Saved\nsaveDiagramFirst=Please save the diagram first\nsaveDiagramsTo=Save diagrams to\nsaveLibrary403=Insufficient permissions to edit this library\nsaveLibrary500=There was an error while saving the library\nsaveLibraryReadOnly=Could not save library while read-only mode is active\nsaving=Saving\nscratchpad=Scratchpad\nscrollbars=Scrollbars\nsearch=Search\nsearchShapes=Search Shapes\nselectAll=Select All\nselectionOnly=Selection Only\nselectCard=Select Card\nselectEdges=Select Edges\nselectedPage=Selected Page\nselectFile=Select File\nselectFolder=Select Folder\nselectFont=Select Font\nselectNone=Select None\nselectTemplate=Select Template\nselectVertices=Select Vertices\nsendBackward=Send Backward\nsendMessage=Send\nsendYourFeedback=Send your feedback\nsequenceDiagram=Sequence Diagram\nserviceUnavailableOrBlocked=Service unavailable or blocked\nsessionExpired=Your session has expired. Please refresh the browser window.\nsessionTimeoutOnSave=Your session has timed out and you have been disconnected from the Google Drive. Press OK to login and save.\nsetAsDefaultStyle=Set as Default Style\nsettings=Settings\nshadow=Shadow\nshadows=Shadows\nshape=Shape\nshapes=Shapes\nshare=Share\nshareCursor=Share Mouse Cursor\nshareLink=Link for shared editing\nsharingAvailable=Sharing available for Google Drive and OneDrive files.\nsaveItToGoogleDriveToCollaborate=You\'ll need to save "{1}" to Google Drive before you can collaborate.\nsaveToGoogleDrive=Save to Google Drive\nsharp=Sharp\nshow=Show\nshowRemoteCursors=Show Remote Mouse Cursors\nshowStartScreen=Show Start Screen\nsidebarTooltip=Click or drag and drop shapes. Shift+click to change selection. Alt+click to insert and connect.\nsigns=Signs\nsignOut=Sign out\nsimple=Simple\nsimpleArrow=Simple Arrow\nsimpleViewer=Simple Viewer\nsize=Size\nsketch=Sketch\nsmoothing=Smoothing\nsnapToGrid=Snap to Grid\nsolid=Solid\nsourceSpacing=Source Spacing\nsouth=South\nsoftware=Software\nspace=Space\nspacing=Spacing\nspecialLink=Special Link\nstateDiagram=State Diagram\nstandard=Standard\nstartDrawing=Start drawing\nstopDrawing=Stop drawing\nstarting=Starting\nstraight=Straight\nstrikethrough=Strikethrough\nstrokeColor=Line Color\nstyle=Style\nsubscript=Subscript\nsummary=Summary\nsuperscript=Superscript\nsupport=Support\nswap=Swap\nswimlaneDiagram=Swimlane Diagram\nsysml=SysML\ntags=Tags\ntable=Table\ntables=Tables\ntakeOver=Take Over\ntargetSpacing=Target Spacing\ntemplate=Template\ntemplates=Templates\ntext=Text\ntextAlignment=Text Alignment\ntextOpacity=Text Opacity\ntheme=Theme\ntimeout=Timeout\ntitle=Title\nto=to\ntoBack=To Back\ntoFront=To Front\ntooLargeUseDownload=Too large, use download instead.\ntoolbar=Toolbar\ntooltips=Tooltips\ntop=Top\ntopAlign=Top Align\ntopLeft=Top Left\ntopRight=Top Right\ntransparent=Transparent\ntransparentBackground=Transparent Background\ntrello=Trello\ntryAgain=Try again\ntryOpeningViaThisPage=Try opening via this page\nturn=Rotate Shape Only by 90°\ntype=Type\ntypeSlashToSearch=Type / to search\numl=UML\nunassigned=Unassigned\nunderline=Underline\nundo=Undo\nungroup=Ungroup\nunmerge=Unmerge\nunsavedChanges=Unsaved changes\nunsavedChangesClickHereToSave=Unsaved changes. Click here to save.\nuntitled=Untitled\nuntitledDiagram=Untitled Diagram\nuntitledLayer=Untitled Layer\nuntitledLibrary=Untitled Library\nunknownError=Unknown error\nunknownUser=Unknown user\nupdateExistingDrawing=Update existing drawing\nupdateFile=Update {1}\nupdatingDocument=Updating Document. Please wait...\nupdatingPreview=Updating Preview. Please wait...\nupdatingSelection=Updating Selection. Please wait...\nupload=Upload\nurl=URL\nuseBlackAndWhite=Use black and white\nuseCurrentSettings=Use current settings\nuseOffline=Use Offline\nuserDefined=User-defined\nuseRootFolder=Use root folder?\nuserManual=User Manual\nvertical=Vertical\nverticalFlow=Vertical Flow\nverticalTree=Vertical Tree\nview=View\nviewerSettings=Viewer Settings\nviewUrl=Link to view: {1}\nvoiceAssistant=Voice Assistant (beta)\nwarning=Warning\nwaypoints=Waypoints\nwest=West\nwhere=Where\nwidth=Width\nwiki=Wiki\nwordWrap=Word Wrap\nwritingDirection=Writing Direction\nyes=Yes\nyourEmailAddress=Your email address\nzoom=Zoom\nzoomIn=Zoom In\nzoomOut=Zoom Out\nbasic=Basic\nbusinessprocess=Business Processes\ncharts=Charts\nengineering=Engineering\nflowcharts=Flowcharts\ngmdl=Material Design\nmindmaps=Mindmaps\nmockups=Mockups\nnetworkdiagrams=Network Diagrams\nnothingIsSelected=Nothing is selected\nother=Other\nsoftwaredesign=Software Design\nvenndiagrams=Venn Diagrams\nwebEmailOrOther=Web, email or any other internet address\nwebLink=Web Link\nwireframes=Wireframes\nproperty=Property\nvalue=Value\nshowMore=Show More\nshowLess=Show Less\nmyDiagrams=My Diagrams\nallDiagrams=All Diagrams\nrecentlyUsed=Recently used\nlistView=List view\ngridView=Grid view\nresultsFor=Results for \'{1}\'\noneDriveCharsNotAllowed=The following characters are not allowed: ~ " # % * : < > ? / { | }\noneDriveInvalidDeviceName=The specified device name is invalid\nofficeNotLoggedOD=You are not logged in to OneDrive. Please open draw.io task pane and login first.\nofficeSelectSingleDiag=Please select a single draw.io diagram only without other contents.\nofficeSelectDiag=Please select a draw.io diagram.\nofficeCannotFindDiagram=Cannot find a draw.io diagram in the selection\nnoDiagrams=No diagrams found\nauthFailed=Authentication failed\nofficeFailedAuthMsg=Unable to successfully authenticate user or authorize application.\nconvertingDiagramFailed=Converting diagram failed\nofficeCopyImgErrMsg=Due to some limitations in the host application, the image could not be inserted. Please manually copy the image then paste it to the document.\ninsertingImageFailed=Inserting image failed\nofficeCopyImgInst=Instructions: Right-click the image below. Select "Copy image" from the context menu. Then, in the document, right-click and select "Paste" from the context menu.\nfolderEmpty=Folder is empty\nrecent=Recent\nsharedWithMe=Shared With Me\nsharepointSites=Sharepoint Sites\nerrorFetchingFolder=Error fetching folder items\nerrorAuthOD=Error authenticating to OneDrive\nofficeMainHeader=Adds draw.io diagrams to your document.\nofficeStepsHeader=This add-in performs the following steps:\nofficeStep1=Connects to Microsoft OneDrive, Google Drive or your device.\nofficeStep2=Select a draw.io diagram.\nofficeStep3=Insert the diagram into the document.\nofficeAuthPopupInfo=Please complete the authentication in the pop-up window.\nofficeSelDiag=Select draw.io Diagram:\nfiles=Files\nshared=Shared\nsharepoint=Sharepoint\nofficeManualUpdateInst=Instructions: Copy draw.io diagram from the document. Then, in the box below, right-click and select "Paste" from the context menu.\nofficeClickToEdit=Click icon to start editing:\npasteDiagram=Paste draw.io diagram here\nconnectOD=Connect to OneDrive\nselectChildren=Select Children\nselectSiblings=Select Siblings\nselectParent=Select Parent\nselectDescendants=Select Descendants\nlastSaved=Last saved {1} ago\nresolve=Resolve\nreopen=Re-open\nshowResolved=Show Resolved\nreply=Reply\nobjectNotFound=Object not found\nreOpened=Re-opened\nmarkedAsResolved=Marked as resolved\nnoCommentsFound=No comments found\ncomments=Comments\ntimeAgo={1} ago\nconfluenceCloud=Confluence Cloud\nlibraries=Libraries\nconfAnchor=Confluence Page Anchor\nconfTimeout=The connection has timed out\nconfSrvTakeTooLong=The server at {1} is taking too long to respond.\nconfCannotInsertNew=Cannot insert draw.io diagram to a new Confluence page\nconfSaveTry=Please save the page and try again.\nconfCannotGetID=Unable to determine page ID\nconfContactAdmin=Please contact your Confluence administrator.\nreadErr=Read Error\neditingErr=Editing Error\nconfExtEditNotPossible=This diagram cannot be edited externally. Please try editing it while editing the page\nconfEditedExt=Diagram/Page edited externally\ndiagNotFound=Diagram Not Found\nconfEditedExtRefresh=Diagram/Page is edited externally. Please refresh the page.\nconfCannotEditDraftDelOrExt=Cannot edit diagrams in a draft page, diagram is deleted from the page, or diagram is edited externally. Please check the page.\nretBack=Return back\nconfDiagNotPublished=The diagram does not belong to a published page\ncreatedByDraw=Created by draw.io\nfilenameShort=Filename too short\ninvalidChars=Invalid characters\nalreadyExst={1} already exists\ndraftReadErr=Draft Read Error\ndiagCantLoad=Diagram cannot be loaded\ndraftWriteErr=Draft Write Error\ndraftCantCreate=Draft could not be created\nconfDuplName=Duplicate diagram name detected. Please pick another name.\nconfSessionExpired=Looks like your session expired. Log in again to keep working.\nlogin=Login\ndrawPrev=draw.io preview\ndrawDiag=draw.io diagram\ninvalidCallFnNotFound=Invalid Call: {1} not found\ninvalidCallErrOccured=Invalid Call: An error occurred, {1}\nanonymous=Anonymous\nconfGotoPage=Go to containing page\nshowComments=Show Comments\nconfError=Error: {1}\ngliffyImport=Gliffy Import\ngliffyImportInst1=Click the "Start Import" button to import all Gliffy diagrams to draw.io.\ngliffyImportInst2=Please note that the import procedure will take some time and the browser window must remain open until the import is completed.\nstartImport=Start Import\ndrawConfig=draw.io Configuration\ncustomLib=Custom Libraries\ncustomTemp=Custom Templates\npageIdsExp=Page IDs Export\ndrawReindex=draw.io re-indexing\nworking=Working\ndrawConfigNotFoundInst=draw.io Configuration Space (DRAWIOCONFIG) does not exist. This space is needed to store draw.io configuration files and custom libraries/templates.\ncreateConfSp=Create Config Space\nunexpErrRefresh=Unexpected error, please refresh the page and try again.\nconfigJSONInst=Write draw.io JSON configuration in the editor below then click save. If you need help, please refer to\nthisPage=this page\ncurCustLib=Current Custom Libraries\nlibName=Library Name\naction=Action\ndrawConfID=draw.io Config ID\naddLibInst=Click the "Add Library" button to upload a new library.\naddLib=Add Library\ncustomTempInst1=Custom templates are draw.io diagrams saved in children pages of\ncustomTempInst2=For more details, please refer to\ntempsPage=Templates page\npageIdsExpInst1=Select export target, then click the "Start Export" button to export all pages IDs.\npageIdsExpInst2=Please note that the export procedure will take some time and the browser window must remain open until the export is completed.\nstartExp=Start Export\nrefreshDrawIndex=Refresh draw.io Diagrams Index\nreindexInst1=Click the "Start Indexing" button to refresh draw.io diagrams index.\nreindexInst2=Please note that the indexing procedure will take some time and the browser window must remain open until the indexing is completed.\nstartIndexing=Start Indexing\nconfAPageFoundFetch=Page "{1}" found. Fetching\nconfAAllDiagDone=All {1} diagrams processed. Process finished.\nconfAStartedProcessing=Started processing page "{1}"\nconfAAllDiagInPageDone=All {1} diagrams in page "{2}" processed successfully.\nconfAPartialDiagDone={1} out of {2} {3} diagrams in page "{4}" processed successfully.\nconfAUpdatePageFailed=Updating page "{1}" failed.\nconfANoDiagFoundInPage=No {1} diagrams found in page "{2}".\nconfAFetchPageFailed=Fetching the page failed.\nconfANoDiagFound=No {1} diagrams found. Process finished.\nconfASearchFailed=Searching for {1} diagrams failed. Please try again later.\nconfAGliffyDiagFound={2} diagram "{1}" found. Importing\nconfAGliffyDiagImported={2} diagram "{1}" imported successfully.\nconfASavingImpGliffyFailed=Saving imported {2} diagram "{1}" failed.\nconfAImportedFromByDraw=Imported from "{1}" by draw.io\nconfAImportGliffyFailed=Importing {2} diagram "{1}" failed.\nconfAFetchGliffyFailed=Fetching {2} diagram "{1}" failed.\nconfACheckBrokenDiagLnk=Checking for broken diagrams links.\nconfADelDiagLinkOf=Deleting diagram link of "{1}"\nconfADupLnk=(duplicate link)\nconfADelDiagLnkFailed=Deleting diagram link of "{1}" failed.\nconfAUnexpErrProcessPage=Unexpected error during processing the page with id: {1}\nconfADiagFoundIndex=Diagram "{1}" found. Indexing\nconfADiagIndexSucc=Diagram "{1}" indexed successfully.\nconfAIndexDiagFailed=Indexing diagram "{1}" failed.\nconfASkipDiagOtherPage=Skipped "{1}" as it belongs to another page!\nconfADiagUptoDate=Diagram "{1}" is up to date.\nconfACheckPagesWDraw=Checking pages having draw.io diagrams.\nconfAErrOccured=An error occurred!\nsavedSucc=Saved successfully\nconfASaveFailedErr=Saving Failed (Unexpected Error)\ncharacter=Character\nconfAConfPageDesc=This page contains draw.io configuration file (configuration.json) as attachment\nconfALibPageDesc=This page contains draw.io custom libraries as attachments\nconfATempPageDesc=This page contains draw.io custom templates as attachments\nconfAConfSpaceDesc=This space is used to store draw.io configuration files and custom libraries/templates\nconfANoCustLib=No Custom Libraries\ndelFailed=Delete failed!\nshowID=Show ID\nconfAIncorrectLibFileType=Incorrect file type. Libraries should be XML files.\nuploading=Uploading\nconfALibExist=This library already exists\nconfAUploadSucc=Uploaded successfully\nconfAUploadFailErr=Upload Failed (Unexpected Error)\nhiResPreview=High Res Preview\nofficeNotLoggedGD=You are not logged in to Google Drive. Please open draw.io task pane and login first.\nofficePopupInfo=Please complete the process in the pop-up window.\npickODFile=Pick OneDrive File\ncreateODFile=Create OneDrive File\npickGDriveFile=Pick Google Drive File\ncreateGDriveFile=Create Google Drive File\npickDeviceFile=Pick Device File\nvsdNoConfig="vsdurl" is not configured\nruler=Ruler\nunits=Units\npoints=Points\ninches=Inches\nmillimeters=Millimeters\nconfEditDraftDelOrExt=This diagram is in a draft page, is deleted from the page, or is edited externally. It will be saved as a new attachment version and may not be reflected in the page.\nconfDiagEditedExt=Diagram is edited in another session. It will be saved as a new attachment version but the page will show other session\'s modifications.\nmacroNotFound=Macro Not Found\nconfAInvalidPageIdsFormat=Incorrect Page IDs file format\nconfACollectingCurPages=Collecting current pages\nconfABuildingPagesMap=Building pages mapping\nconfAProcessDrawDiag=Started processing imported draw.io diagrams\nconfAProcessDrawDiagDone=Finished processing imported draw.io diagrams\nconfAProcessImpPages=Started processing imported pages\nconfAErrPrcsDiagInPage=Error processing draw.io diagrams in page "{1}"\nconfAPrcsDiagInPage=Processing draw.io diagrams in page "{1}"\nconfAImpDiagram=Importing diagram "{1}"\nconfAImpDiagramFailed=Importing diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\nconfAImpDiagramError=Error importing diagram "{1}". Cannot fetch or save the diagram. Cannot fix this diagram links.\nconfAUpdateDgrmCCFailed=Updating link to diagram "{1}" failed.\nconfImpDiagramSuccess=Updating diagram "{1}" done successfully.\nconfANoLnksInDrgm=No links to update in: {1}\nconfAUpdateLnkToPg=Updated link to page: "{1}" in diagram: "{2}"\nconfAUpdateLBLnkToPg=Updated lightbox link to page: "{1}" in diagram: "{2}"\nconfAUpdateLnkBase=Updated base URL from: "{1}" to: "{2}" in diagram: "{3}"\nconfAPageIdsImpDone=Page IDs Import finished\nconfAPrcsMacrosInPage=Processing draw.io macros in page "{1}"\nconfAErrFetchPage=Error fetching page "{1}"\nconfAFixingMacro=Fixing macro of diagram "{1}"\nconfAErrReadingExpFile=Error reading export file\nconfAPrcsDiagInPageDone=Processing draw.io diagrams in page "{1}" finished\nconfAFixingMacroSkipped=Fixing macro of diagram "{1}" failed. Cannot find its new page ID. Maybe it points to a page that is not imported.\npageIdsExpTrg=Export target\nconfALucidDiagImgImported={2} diagram "{1}" image extracted successfully\nconfASavingLucidDiagImgFailed=Extracting {2} diagram "{1}" image failed\nconfGetInfoFailed=Fetching file info from {1} failed.\nconfCheckCacheFailed=Cannot get cached file info.\nconfReadFileErr=Cannot read "{1}" file from {2}.\nconfSaveCacheFailed=Unexpected error. Cannot save cached file\norgChartType=Org Chart Type\nlinear=Linear\nhanger2=Hanger 2\nhanger4=Hanger 4\nfishbone1=Fishbone 1\nfishbone2=Fishbone 2\n1ColumnLeft=Single Column Left\n1ColumnRight=Single Column Right\nsmart=Smart\nparentChildSpacing=Parent Child Spacing\nsiblingSpacing=Sibling Spacing\nconfNoPermErr=Sorry, you don\'t have enough permissions to view this embedded diagram from page {1}\ncopyAsImage=Copy as Image\ncopyAsText=Copy as Text\ncopyAsSvg=Copy as SVG\nlucidImport=Lucidchart Import\nlucidImportInst1=Click the "Start Import" button to import all Lucidchart diagrams.\ninstallFirst=Please install {1} first\ndrawioChromeExt=draw.io Chrome Extension\nloginFirstThen=Please login to {1} first, then {2}\nerrFetchDocList=Error: Couldn\'t fetch documents list\nbuiltinPlugins=Built-in Plugins\nextPlugins=External Plugins\nbackupFound=Backup file found\nchromeOnly=This feature only works in Google Chrome\nmsgDeleted=This message has been deleted\nconfAErrFetchDrawList=Error fetching diagrams list. Some diagrams are skipped.\nconfAErrCheckDrawDiag=Cannot check diagram {1}\nconfAErrFetchPageList=Error fetching pages list\nconfADiagImportIncom={1} diagram "{2}" is imported partially and may have missing shapes\ninvalidSel=Invalid selection\ndiagNameEmptyErr=Diagram name cannot be empty\nopenDiagram=Open Diagram\nnewDiagram=New diagram\neditable=Editable\nconfAReimportStarted=Re-import {1} diagrams started...\nspaceFilter=Filter by spaces\ncurViewState=Current Viewer State\npageLayers=Page and Layers\ncustomize=Customize\nfirstPage=First Page (All Layers)\ncurEditorState=Current Editor State\nnoAnchorsFound=No anchors found\nattachment=Attachment\ncurDiagram=Current Diagram\nrecentDiags=Recent Diagrams\ncsvImport=CSV Import\nchooseFile=Choose a file...\nchoose=Choose\ngdriveFname=Google Drive filename\nwidthOfViewer=Width of the viewer (px)\nheightOfViewer=Height of the viewer (px)\nautoSetViewerSize=Automatically set the size of the viewer\nthumbnail=Thumbnail\nprevInDraw=Preview in draw.io\nonedriveFname=OneDrive filename\ndiagFname=Diagram filename\ndiagUrl=Diagram URL\nshowDiag=Show Diagram\ndiagPreview=Diagram Preview\ncsvFileUrl=CSV File URL\ngenerate=Generate\nselectDiag2Insert=Please select a diagram to insert it.\nerrShowingDiag=Unexpected error. Cannot show diagram\nnoRecentDiags=No recent diagrams found\nfetchingRecentFailed=Failed to fetch recent diagrams\nuseSrch2FindDiags=Use the search box to find draw.io diagrams\ncantReadChckPerms=Cannot read the specified diagram. Please check you have read permission on that file.\ncantFetchChckPerms=Cannot fetch diagram info. Please check you have read permission on that file.\nsearchFailed=Searching failed. Please try again later.\nplsTypeStr=Please type a search string.\nunsupportedFileChckUrl=Unsupported file. Please check the specified URL\ndiagNotFoundChckUrl=Diagram not found or cannot be accessed. Please check the specified URL\ncsvNotFoundChckUrl=CSV file not found or cannot be accessed. Please check the specified URL\ncantReadUpload=Cannot read the uploaded diagram\nselect=Select\nerrCantGetIdType=Unexpected Error: Cannot get content id or type.\nerrGAuthWinBlocked=Error: Google Authentication window blocked\nauthDrawAccess=Authorize draw.io to access {1}\nconnTimeout=The connection has timed out\nerrAuthSrvc=Error authenticating to {1}\nplsSelectFile=Please select a file\nmustBgtZ={1} must be greater than zero\ncantLoadPrev=Cannot load file preview.\nerrAccessFile=Error: Access Denied. You do not have permission to access "{1}".\nnoPrevAvail=No preview is available.\npersonalAccNotSup=Personal accounts are not supported.\nerrSavingTryLater=Error occurred during saving, please try again later.\nplsEnterFld=Please enter {1}\ninvalidDiagUrl=Invalid Diagram URL\nunsupportedVsdx=Unsupported vsdx file\nunsupportedImg=Unsupported image file\nunsupportedFormat=Unsupported file format\nplsSelectSingleFile=Please select a single file only\nattCorrupt=Attachment file "{1}" is corrupted\nloadAttFailed=Failed to load attachment "{1}"\nembedDrawDiag=Embed draw.io Diagram\naddDiagram=Add Diagram\nembedDiagram=Embed Diagram\neditOwningPg=Edit owning page\ndeepIndexing=Deep Indexing (Index diagrams that aren\'t used in any page also)\nconfADeepIndexStarted=Deep Indexing Started\nconfADeepIndexDone=Deep Indexing Done\nofficeNoDiagramsSelected=No diagrams found in the selection\nofficeNoDiagramsInDoc=No diagrams found in the document\nofficeNotSupported=This feature is not supported in this host application\nsomeImagesFailed={1} out of {2} failed due to the following errors\nimportingNoUsedDiagrams=Importing {1} Diagrams not used in pages\nimportingDrafts=Importing {1} Diagrams in drafts\nprocessingDrafts=Processing drafts\nupdatingDrafts=Updating drafts\nupdateDrafts=Update drafts\nnotifications=Notifications\ndrawioImp=draw.io Import\nconfALibsImp=Importing draw.io Libraries\nconfALibsImpFailed=Importing {1} library failed\ncontributors=Contributors\ndrawDiagrams=draw.io Diagrams\nerrFileNotFoundOrNoPer=Error: Access Denied. File not found or you do not have permission to access "{1}" on {2}.\nconfACheckPagesWEmbed=Checking pages having embedded draw.io diagrams.\nconfADelBrokenEmbedDiagLnk=Removing broken embedded diagram links\nreplaceWith=Replace with\nreplaceAll=Replace All\nconfASkipDiagModified=Skipped "{1}" as it was modified after initial import\nreplFind=Replace/Find\nmatchesRepl={1} matches replaced\ndraftErrDataLoss=An error occurred while reading the draft file. The diagram cannot be edited now to prevent any possible data loss. Please try again later or contact support.\nibm=IBM\nlinkToDiagramHint=Add a link to this diagram. The diagram can only be edited from the page that owns it.\nlinkToDiagram=Link to Diagram\nchangedBy=Changed By\nlastModifiedOn=Last modified on\nsearchResults=Search Results\nshowAllTemps=Show all templates\nnotionToken=Notion Token\nselectDB=Select Database\nnoDBs=No Databases\ndiagramEdited={1} diagram "{2}" edited\nconfDraftPermissionErr=Draft cannot be written. Do you have attachment write/read permission on this page?\nconfFileTooBigErr=File size is too large. Pease check "Attachment Maximum Size" of "Attachment Settings" in Confluence Configuration.\nowner=Owner\nrepository=Repository\nbranch=Branch\nmeters=Meters\nteamsNoEditingMsg=Editor functionality is only available in Desktop environment (in MS Teams App or a web browser)\ncontactOwner=Contact Owner\nviewerOnlyMsg=You cannot edit the diagrams in the mobile platform, please use the desktop client or a web browser.\nwebsite=Website\ncheck4Updates=Check for updates\nattWriteFailedRetry={1}: Attachment write failed, trying again in {2} seconds...\nconfPartialPageList=We couldn\'t fetch all pages due to an error in Confluence. Continuing using {1} pages only.\nspellCheck=Spell checker\nnoChange=No Change\nlblToSvg=Convert labels to SVG\ntxtSettings=Text Settings\nLinksLost=Links will be lost\narcSize=Arc Size\neditConnectionPoints=Edit Connection Points\nnotInOffline=Not supported while offline\nnotInDesktop=Not supported in Desktop App\nconfConfigSpaceArchived=draw.io Configuration space (DRAWIOCONFIG) is archived. Please restore it first.\nconfACleanOldVerStarted=Cleaning old diagram draft versions started\nconfACleanOldVerDone=Cleaning old diagram draft versions finished\nconfACleaningFile=Cleaning diagram draft "{1}" old versions\nconfAFileCleaned=Cleaning diagram draft "{1}" done\nconfAFileCleanFailed=Cleaning diagram draft "{1}" failed\nconfACleanOnly=Clean Diagram Drafts Only\nbrush=Brush\nopenDevTools=Open Developer Tools\nautoBkp=Automatic Backup\nconfAIgnoreCollectErr=Ignore collecting current pages errors\ndrafts=Drafts\ndraftSaveInt=Draft save interval [sec] (0 to disable)\npluginsDisabled=External plugins disabled.\nextExpNotConfigured=External image service is not configured\npathFilename=Path/Filename\nconfAHugeInstances=Very Large Instances\nconfAHugeInstancesDesc=If this instance includes 100,000+ pages, it is faster to request the current instance pages list from Atlassian. Please contact our support for more details.\nchoosePageIDsFile=Choose current page IDs csv file\nchooseDrawioPsgesFile=Choose pages with draw.io diagrams csv file\nprivate=Private\ndiagramTooLarge=The diagram is too large, please reduce its size and try again.\nselectAdminUsers=Select Admin Users\nxyzTeam={1} Team\naddTeamTitle=Adding a new draw.io Team\naddTeamInst1=To create a new draw.io Team, you need to create a new Atlassian group with "drawio-" prefix (e.g, a group named "drawio-marketing").\naddTeamInst2=Then, configure which team member can edit/add configuration, templates, and libraries from this page.\ndrawioTeams=draw.io Teams\nmembers=Members\nadminEditors=Admins/Editors\nallowAll=Allow all\nnoTeams=No teams found\nerrorLoadingTeams=Error Loading Teams\nnoTeamMembers=No team members found\nerrLoadTMembers=Error loading team members\nerrCreateTeamPage=Error creating team "{1}" page in "draw.io Configuration" space, please check you have the required permissions.\ngotoConfigPage=Please create the space from draw.io "Configuration" page.\nnoAdminsSelected=No admins/editors selected\nerrCreateConfigFile=Error creating "configuration.json" file, please check you have the required permissions.\nerrSetPageRestr=Error setting page restrictions\nnotAdmin4Team=You are not an admin for this team\nconfigUpdated=Configuration updated, restart the editor if you want to work with last configuration.\noutOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.\nconfAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)\nconfA403ErrFaq=There are ({1}) 403 error(s). The current users must have add (write) permissions on all pages and attachments. Even admins sometimes are not allowed to write to some pages via page restrictions\nconfA404ErrFaq=There are ({1}) 404 error(s). The attachment/page is not found. This is due to improper migration or the diagram file (an attachment of the page) is deleted.\nconfA500ErrFaq=There are ({1}) 500 error(s). An internal server error in Confluence Cloud. Such errors are due to overloading the server and usually fixed by retrying the process.\nconfAOtherErrFaq=There are ({1}) other error(s). Please check the error description. If the description is not clear, please contact our support.\nconfAReplaceBaseUrl=Replace Base URL in diagram links when no page ID mapping is found\ndrawSvgPrev=draw.io SVG preview\ngoogleFonts=Google Fonts\ndiagDupl=Duplicate Diagram Detected\ndiagDuplMsg=This diagram is used in multiple places, which can result in unexpected results when edited. We\'ve created an independent copy. Please open the editor again.\ndiagDuplNoEditMsg=This diagram is used in multiple places. Please edit it within its own page.\nconfCloudMigConfirm=Warning: This process will edit many pages and diagrams, so it is recommended to stop the Synchrony service during the process. Do you want to proceed?\nconfCloudMigNotice=In the Cloud instance, please add linkAdjustments to draw.io configuration as follows {1}. Without this configuration, links in diagrams pointing to Confluence pages will not work.\nconfALogsPageDesc=This page contains logs of draw.io long running services as attachments\nconfEditOnlyInPageEditor=Can only be edited within Confluence page editor\nconfEvalWarn=Evaluation License - Not for production use\notherUsersEditing=Other user(s) are editing this diagram\nfirstTimeGD=First time to access this file?\ndrawioGDAppNotInstalled=draw.io Google Drive app is not installed, please install it first\nConfDC415Error=Saving drafts is blocked. If you have "Attachment Checker for Confluence" app, please update to the latest version.\nremove=Remove\nselectPgLyr=Select Page and Layers\nerrGenPreview=There was an error generating a diagram preview. Please consult technical support.\nattAccessErr=Diagram attachment access error: cannot display diagram\nwidthIntOrFixed=Width must be a valid integer or of value \'fixed\'\ndupDisabledPgLyrSlct=Diagram duplication is disabled when page and layers are selected\ncantDupPickDiffName=Could not duplicate diagram. Please choose a different name.\nownPgAccessDupErr=Owning page access restriction: cannot duplicate diagram.\ncantDupTryLater=Could not duplicate diagram. Please try again later.\ncantEditLnkd=Cannot edit linked diagram\ndiagEditOwnPgOnlyOpen=Diagram can only be edited from the page that owns it. Would you like to open the owning page for edit?\ndiagInTemps=draw.io diagrams in templates\ndiagInTempsCantEdit=Diagrams in page templates cannot be edited. They can only be edited on pages and blog posts.\nconfDirectEditDraftLost=This Confluence page has unpublished changes. Editing the diagram from page view may cause data loss. Please edit the Confluence page first and then edit the diagram.\nconfConfigSpacePerm=Note: If you recently migrated from DC app, please check draw.io Configuration space permissions such that all users can read and only admins can write. In addition, remove the page restrictions on "Configuration" and "Libraries" pages. You may need admin keys to access them. Also, please check the file "configuration.json" in the "Configuration" page is downloadable.\ntryCurPageOnErr=Try finding the diagram attachment on the macro page when the linked page fails\nconfAExtSrvcNoSupported=Embedded diagrams from external services or urls are not supported.\ngliffyVersionPinning=Import Gliffy pinned version instead of the latest version\nconfEmbedUpload=For a better editing experience, please use the regular draw.io macro to insert a blank diagram, then from (File menu → Import From → Device...) select the file you want to upload and embed.\nconfPublishErr=Another update conflicted with your publish, please try the operation again\nconfACacheMapping=Cache page IDs mapping\nconfARemImpPages=Remember imported pages\ndelCachedData=Delete Cached Data\nk15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?\n');Graph.prototype.defaultThemes["default-style2"]=mxUtils.parseXml('<mxStylesheet><add as="defaultVertex"><add as="shape" value="label"/><add as="perimeter" value="rectanglePerimeter"/><add as="fontSize" value="12"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="fillColor" value="default"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="defaultEdge"><add as="shape" value="connector"/><add as="labelBackgroundColor" value="default"/><add as="endArrow" value="classic"/><add as="fontSize" value="11"/><add as="fontFamily" value="Helvetica"/><add as="align" value="center"/><add as="verticalAlign" value="middle"/><add as="rounded" value="1"/><add as="strokeColor" value="default"/><add as="fontColor" value="default"/></add><add as="text"><add as="fillColor" value="none"/><add as="gradientColor" value="none"/><add as="strokeColor" value="none"/><add as="align" value="left"/><add as="verticalAlign" value="top"/></add><add as="edgeLabel" extend="text"><add as="labelBackgroundColor" value="default"/><add as="fontSize" value="11"/></add><add as="label"><add as="fontStyle" value="1"/><add as="align" value="left"/><add as="verticalAlign" value="middle"/><add as="spacing" value="2"/><add as="spacingLeft" value="52"/><add as="imageWidth" value="42"/><add as="imageHeight" value="42"/><add as="rounded" value="1"/></add><add as="icon" extend="label"><add as="align" value="center"/><add as="imageAlign" value="center"/><add as="verticalLabelPosition" value="bottom"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="4"/><add as="labelBackgroundColor" value="default"/><add as="spacing" value="0"/><add as="spacingLeft" value="0"/><add as="spacingTop" value="6"/><add as="fontStyle" value="0"/><add as="imageWidth" value="48"/><add as="imageHeight" value="48"/></add><add as="swimlane"><add as="shape" value="swimlane"/><add as="fontSize" value="12"/><add as="fontStyle" value="1"/><add as="startSize" value="23"/></add><add as="group"><add as="verticalAlign" value="top"/><add as="fillColor" value="none"/><add as="strokeColor" value="none"/><add as="gradientColor" value="none"/><add as="pointerEvents" value="0"/></add><add as="ellipse"><add as="shape" value="ellipse"/><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombus"><add as="shape" value="rhombus"/><add as="perimeter" value="rhombusPerimeter"/></add><add as="triangle"><add as="shape" value="triangle"/><add as="perimeter" value="trianglePerimeter"/></add><add as="line"><add as="shape" value="line"/><add as="strokeWidth" value="4"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="spacingTop" value="8"/></add><add as="image"><add as="shape" value="image"/><add as="labelBackgroundColor" value="default"/><add as="verticalAlign" value="top"/><add as="verticalLabelPosition" value="bottom"/></add><add as="roundImage" extend="image"><add as="perimeter" value="ellipsePerimeter"/></add><add as="rhombusImage" extend="image"><add as="perimeter" value="rhombusPerimeter"/></add><add as="arrow"><add as="shape" value="arrow"/><add as="edgeStyle" value="none"/><add as="fillColor" value="default"/></add><add as="fancy"><add as="shadow" value="1"/><add as="glass" value="1"/></add><add as="gray" extend="fancy"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="blue" extend="fancy"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="green" extend="fancy"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="turquoise" extend="fancy"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="yellow" extend="fancy"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="orange" extend="fancy"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="red" extend="fancy"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="pink" extend="fancy"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="purple" extend="fancy"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add><add as="plain-gray"><add as="gradientColor" value="#B3B3B3"/><add as="fillColor" value="#F5F5F5"/><add as="strokeColor" value="#666666"/></add><add as="plain-blue"><add as="gradientColor" value="#7EA6E0"/><add as="fillColor" value="#DAE8FC"/><add as="strokeColor" value="#6C8EBF"/></add><add as="plain-green"><add as="gradientColor" value="#97D077"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#82B366"/></add><add as="plain-turquoise"><add as="gradientColor" value="#67AB9F"/><add as="fillColor" value="#D5E8D4"/><add as="strokeColor" value="#6A9153"/></add><add as="plain-yellow"><add as="gradientColor" value="#FFD966"/><add as="fillColor" value="#FFF2CC"/><add as="strokeColor" value="#D6B656"/></add><add as="plain-orange"><add as="gradientColor" value="#FFA500"/><add as="fillColor" value="#FFCD28"/><add as="strokeColor" value="#D79B00"/></add><add as="plain-red"><add as="gradientColor" value="#EA6B66"/><add as="fillColor" value="#F8CECC"/><add as="strokeColor" value="#B85450"/></add><add as="plain-pink"><add as="gradientColor" value="#B5739D"/><add as="fillColor" value="#E6D0DE"/><add as="strokeColor" value="#996185"/></add><add as="plain-purple"><add as="gradientColor" value="#8C6C9C"/><add as="fillColor" value="#E1D5E7"/><add as="strokeColor" value="#9673A6"/></add></mxStylesheet>').documentElement;Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-style2"];Editor.currentTheme="";window.uiTheme="";GraphViewer=function(b,f,l){this.init(b,f,l)};mxUtils.extend(GraphViewer,mxEventSource);GraphViewer.prototype.editBlankUrl="1"==urlParams.dev?"https://test.draw.io/":"https://app.diagrams.net/";GraphViewer.prototype.imageBaseUrl=window.DRAWIO_BASE_URL+"/";GraphViewer.prototype.toolbarHeight="BackCompat"==document.compatMode?24:26;GraphViewer.prototype.lightboxChrome=!0;GraphViewer.prototype.lightboxZIndex=999;GraphViewer.prototype.toolbarZIndex=999;GraphViewer.prototype.autoFit=!1;GraphViewer.prototype.autoCrop=!1;GraphViewer.prototype.autoOrigin=!0;GraphViewer.prototype.center=!1;GraphViewer.prototype.forceCenter=!1;GraphViewer.prototype.allowZoomIn=!1;GraphViewer.prototype.allowZoomOut=!0;GraphViewer.prototype.showTitleAsTooltip=!1;GraphViewer.prototype.checkVisibleState=!0;GraphViewer.prototype.minHeight=28;GraphViewer.prototype.minWidth=100;GraphViewer.prototype.responsive=!1;GraphViewer.prototype.darkMode=null;GraphViewer.prototype.init=function(b,f,l){GraphViewer.initCss();this.graphConfig=null!=l?l:{};this.autoFit=null!=this.graphConfig["auto-fit"]?this.graphConfig["auto-fit"]:this.autoFit;this.autoCrop=null!=this.graphConfig["auto-crop"]?this.graphConfig["auto-crop"]:this.autoCrop;this.autoOrigin=null!=this.graphConfig["auto-origin"]?this.graphConfig["auto-origin"]:this.autoOrigin;this.allowZoomOut=null!=this.graphConfig["allow-zoom-out"]?this.graphConfig["allow-zoom-out"]:this.allowZoomOut;this.allowZoomIn=@@ -4233,7 +4233,7 @@ H<C;H++)S=b.getChildAt(b.root,H),b.setVisible(S,q[S.id]||!1)}else for(H=0;H<C;H+GraphViewer.prototype.addToolbar=function(){var b=this.graph.container;"bottom"==this.graphConfig["toolbar-position"]?b.style.marginBottom=this.toolbarHeight+"px":"inline"!=this.graphConfig["toolbar-position"]&&(b.style.marginTop=this.toolbarHeight+"px");var f=b.ownerDocument.createElement("div");f.style.display="flex";f.style.alignItems="center";f.style.position="absolute";f.style.overflow="hidden";f.style.boxSizing="border-box";f.style.whiteSpace="nowrap";f.style.textAlign="left";f.style.zIndex=this.toolbarZIndex;f.style.backgroundColor="light-dark(#eeeeee, "+GraphViewer.darkBackgroundColor+")";f.style.height=this.toolbarHeight+"px";var l=mxUtils.bind(this,function(){this.isDarkMode()?(f.classList.add("geDarkMode"),f.style.colorScheme="dark"):(f.classList.remove("geDarkMode"),f.style.colorScheme="light")});this.addListener("darkModeChanged",l);this.toolbar=f;l();if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(f.style,"transition","opacity 100ms ease-in-out");mxUtils.setOpacity(f,30);var u=null,y=null,q=mxUtils.bind(this,function(ba){null!=u&&(window.clearTimeout(u),fadeThead=null);null!=y&&(window.clearTimeout(y),fadeThead2=null);u=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(f,0);u=null;y=window.setTimeout(mxUtils.bind(this,function(){f.style.display="none";y=null}),100)}),ba||200)}),C=mxUtils.bind(this,function(ba){null!=u&&(window.clearTimeout(u),fadeThead=null);null!=y&&(window.clearTimeout(y),fadeThead2=null);f.style.display=-"";mxUtils.setOpacity(f,ba||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(ba){mxEvent.isTouchEvent(ba)||(C(30),q())}));mxEvent.addListener(f,mxClient.IS_POINTER?"pointermove":"mousemove",function(ba){mxEvent.consume(ba)});mxEvent.addListener(f,"mouseenter",mxUtils.bind(this,function(ba){C(100)}));mxEvent.addListener(f,"mousemove",mxUtils.bind(this,function(ba){C(100);mxEvent.consume(ba)}));mxEvent.addListener(f,"mouseleave",+"flex";mxUtils.setOpacity(f,ba||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(ba){mxEvent.isTouchEvent(ba)||(C(30),q())}));mxEvent.addListener(f,mxClient.IS_POINTER?"pointermove":"mousemove",function(ba){mxEvent.consume(ba)});mxEvent.addListener(f,"mouseenter",mxUtils.bind(this,function(ba){C(100)}));mxEvent.addListener(f,"mousemove",mxUtils.bind(this,function(ba){C(100);mxEvent.consume(ba)}));mxEvent.addListener(f,"mouseleave",mxUtils.bind(this,function(ba){mxEvent.isTouchEvent(ba)||C(30)}));var H=this.graph,S=H.getTolerance();H.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(ba,oa){this.startX=oa.getGraphX();this.startY=oa.getGraphY();this.scrollLeft=H.container.scrollLeft;this.scrollTop=H.container.scrollTop},mouseMove:function(ba,oa){},mouseUp:function(ba,oa){mxEvent.isTouchEvent(oa.getEvent())&&Math.abs(this.scrollLeft-H.container.scrollLeft)<S&&Math.abs(this.scrollTop-H.container.scrollTop)<S&&Math.abs(this.startX-oa.getGraphX())<S&&Math.abs(this.startY-oa.getGraphY())<S&&(0<parseFloat(f.style.opacity||0)?q():C(30))}})}l=this.toolbarItems;for(var E=0,Q=mxUtils.bind(this,function(ba,oa,Y,da){ba=this.createToolbarButton(ba,oa,Y,da);f.appendChild(ba);E++;return ba}),c=this.graph.getModel(),g=null,m=null,n=null,x=null,F=0;F<l.length;F++){var I=l[F];if("pages"==I){x=b.ownerDocument.createElement("div");x.style.display="inline-flex";x.style.position="relative";x.style.alignItems="center";x.style.padding="4px";x.style.fontFamily=GraphViewer.cssFontFamily;x.style.fontSize="12px";x.style.cursor="default";x.style.color="light-dark(#000000, #ffffff)";mxUtils.setOpacity(x,70);var M=Q(mxUtils.bind(this,function(){this.selectPage(this.currentPage-1)}),Editor.chevronLeftImage,mxResources.get("previousPage")||"Previous Page");M.style.borderRightStyle="none";M.style.paddingLeft="0px";M.style.paddingRight="0px";f.appendChild(x);var L=Q(mxUtils.bind(this,function(){this.selectPage(this.currentPage+diff --git a/src/main/webapp/mxgraph/mxClient.js b/src/main/webapp/mxgraph/mxClient.jsindex 04fb20e95..02fe85281 100644--- a/src/main/webapp/mxgraph/mxClient.js+++ b/src/main/webapp/mxgraph/mxClient.js@@ -1,4 +1,4 @@-var mxClient={VERSION:"28.2.3",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),+var mxClient={VERSION:"28.2.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/"),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||@@ -29,7 +29,7 @@ mxRectangle.prototype.equals=function(a){return null!=a&&a.x==this.x&&a.y==this.var mxEffects={animateChanges:function(a,b,c){var d=0,e=function(){for(var g=!1,k=0;k<b.length;k++){var l=b[k];if(l instanceof mxGeometryChange||l instanceof mxTerminalChange||l instanceof mxValueChange||l instanceof mxChildChange||l instanceof mxStyleChange){var m=a.getView().getState(l.cell||l.child,!1);if(null!=m)if(g=!0,l.constructor!=mxGeometryChange||a.model.isEdge(l.cell))mxUtils.setOpacity(m.shape.node,100*d/10);else{var n=a.getView().scale,p=(l.geometry.x-l.previous.x)*n,q=(l.geometry.y-l.previous.y)*n,r=(l.geometry.width-l.previous.width)*n;n*=l.geometry.height-l.previous.height;0==d?(m.x-=p,m.y-=q,m.width-=r,m.height-=n):(m.x+=p/10,m.y+=q/10,m.width+=r/10,m.height+=n/10);a.cellRenderer.redraw(m);mxEffects.cascadeOpacity(a,l.cell,100*d/10)}}}10>d&&g?(d++,window.setTimeout(e,f)):null!=c&&c()},f=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;e<d;e++){var f=a.model.getChildAt(b,e),g=a.getView().getState(f);null!=g&&(mxUtils.setOpacity(g.shape.node,c),mxEffects.cascadeOpacity(a,f,c))}b=a.model.getEdges(b);if(null!=b)for(e=0;e<b.length;e++)d=a.getView().getState(b[e]),null!=d&&mxUtils.setOpacity(d.shape.node,c)},fadeOut:function(a,b,c,d,e,f){d=d||40;e=e||30;var g=b||100;mxUtils.setOpacity(a,g);if(f||null==f){var k=function(){g=Math.max(g-d,0);mxUtils.setOpacity(a,g);0<g?window.setTimeout(k,e):(a.style.visibility="hidden",c&&a.parentNode&&a.parentNode.removeChild(a))};window.setTimeout(k,e)}else a.style.visibility="hidden",c&&a.parentNode&&a.parentNode.removeChild(a)}},-mxUtils={errorResource:"none"!=mxClient.language?"error":"",closeResource:"none"!=mxClient.language?"close":"",errorImage:mxClient.imageBasePath+"/error.gif",lightDarkColorSupported:function(){var a=document.createElement("div");a.style.color="light-dark(white, black)";a=a.style.color;null!=a&&"generic-light-dark("===a.substring(0,19)&&(a=a.replace("generic-light-dark","light-dark"));return"light-dark(white, black)"===a}(),preferDarkColor:!1,lightDarkColorRegex:/light-dark\(\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,+mxUtils={errorResource:"none"!=mxClient.language?"error":"",closeResource:"none"!=mxClient.language?"close":"",errorImage:mxClient.imageBasePath+"/error.gif",lightDarkColorSupported:function(){var a=document.createElement("div");a.style.color="light-dark(white, black)";a=a.style.color;null!=a&&"generic-light-dark("===a.substring(0,19)&&(a=a.replace("generic-light-dark","light-dark"));return"light-dark(white, black)"===a}(),preferDarkColor:!1,lightDarkColorRegex:/light-dark\(\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,varColorRegex:/^var\([^)]+\)/,hexColorRegex:/(^#[a-zA-Z0-9]*$)/,rgbaColorRegex:/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i,canvasContext:function(){var a=null;try{a=document.createElement("canvas").getContext("2d")}catch(b){}return a}(),validInvalidColor:"rgba(0, 0, 0, 0)",normalizedValidInvalidColor:"rgba(0,0,0,0)",removeCursors:function(a){null!=a.style&&(a.style.cursor="");a=a.childNodes;if(null!=a)for(var b=a.length,c=0;c<b;c+=1)mxUtils.removeCursors(a[c])},getCurrentStyle:function(){return mxClient.IS_IE&&(null==document.documentMode||9>document.documentMode)?function(a){return null!=a?a.currentStyle:null}:function(a){return null!=a?window.getComputedStyle(a,""):null}}(),getCssFontFamily:function(a){if("string"===typeof a){a=a.split(",");for(var b=0;b<a.length;b++)a[b]=mxUtils.trim(a[b]),'"'==a[b].charAt(0)&&'"'==a[b].charAt(a[b].length-1)&&(a[b]=a[b].substring(1,a[b].length-1));a=a.join(", ")}return a},parseCssFontFamily:function(a,b){if("string"===typeof a){a=a.split(",");for(var c=0;c<a.length;c++){a[c]=mxUtils.trim(a[c]);var d=2<a[c].length&&'"'==a[c].charAt(a[c].length-1)&&'"'==a[c].charAt(0);d&&(a[c]=a[c].substring(1,a[c].length-1));b&&(a[c]=mxUtils.htmlEntities(a[c]));if(d||0<=a[c].indexOf(" "))a[c]='"'+a[c]+'"'}a=a.join(", ")}return a},parseCssNumber:function(a){"thin"==a?a="2":"medium"==a?a="4":"thick"==a&&(a="6");a=parseFloat(a);isNaN(a)&&(a=0);return a},setPrefixedStyle:function(){var a=null;mxClient.IS_OT?a="O":mxClient.IS_SF||mxClient.IS_GC?a="Webkit":mxClient.IS_MT?a="Moz":mxClient.IS_IE&&@@ -56,19 +56,19 @@ b,c-e)+"px")},load:function(a){a=new mxXmlRequest(a,null,"GET",!1);a.send();retup||299<p?g():(e[m]=n,d--,0==d&&b(e))},g)})(a[k],k);0==d&&b(e)},post:function(a,b,c,d){return(new mxXmlRequest(a,b)).send(c,d)},submit:function(a,b,c,d){return(new mxXmlRequest(a,b)).simulate(c,d)},loadInto:function(a,b,c){mxClient.IS_IE?b.onreadystatechange=function(){4==b.readyState&&c()}:b.addEventListener("load",c,!1);b.load(a)},getValue:function(a,b,c){a=null!=a?a[b]:null;null==a&&(a=c);return a},getColorValue:function(a,b,c){a=null!=a?a[b]:null;if(null==a||"default"==a)a=c;return a},getNumber:function(a,b,c){a=null!=a?a[b]:null;null==a&&(a=c||0);return Number(a)},isLightDarkColor:function(a){return"string"===typeof a&&"light-dark"==mxUtils.ltrim(a).substring(0,10)},isVarColor:function(a){return mxUtils.varColorRegex.test(a)},isHexColor:function(a){return mxUtils.hexColorRegex.test(a)},isRgbColor:function(a){return mxUtils.rgbaColorRegex.test(a)},isValidColor:function(a){if(null==a)return!1;a=String(a).replace(/\s/g,"");if(a.toLowerCase()==mxUtils.normalizedValidInvalidColor)return!0;mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor;mxUtils.canvasContext.fillStyle=a;return mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor},isDarkColor:function(a){a=mxUtils.parseColor(a);return null!=a?128>.213*a.r+.715*a.g+.072*a.b:!1},parseLightDarkColor:function(a,b,c){var d=a,e=null;null!=a&&(a=a.match(mxUtils.lightDarkColorRegex))&&3===a.length&&(d=mxUtils.trim(a[1]),e=mxUtils.trim(a[2]));null==e&&(c||mxUtils.isVarColor(d))&&(e=d);e=null!=e?e:null!=b?b:mxUtils.getInverseColor(d);return{light:d,dark:e}},-getInverseColor:function(a,b,c){function d(m){return Math.round(b/100*(255-m)+m*(1-b/100))}function e(m){return Math.round(Math.max(0,Math.min(255,m)))}c=null!=c?c:180;b=null!=b?b:93;var f=0,g=0,k=0;if("transparent"==a.toLowerCase())return a;k=mxUtils.parseColor(a);if(null==k)return a;f=k.r;g=k.g;k=k.b;f=d(f);g=d(g);k=d(k);a=[1,0,0,0,1,0,0,0,1];var l=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);a[0]=.2126+.7874*l-.2126*c;a[1]=.7152-.7152*l-.7152*c;a[2]=.0722-.0722*l+.9278*c;a[3]=.2126-.2126*-l+.143*c;a[4]=.7152+(1-.7152)*l+.14*c;a[5]=.0722-.0722*l-.283*c;a[6]=.2126-.2126*l-.7874*c;a[7]=.7152-.7152*l+.7152*c;a[8]=.0722+.9278*l+.0722*c;c=e(a[0]*f+a[1]*g+a[2]*k);l=e(a[3]*f+a[4]*g+a[5]*k);f=e(a[6]*f+a[7]*g+a[8]*k);return"#"+(16777216|c<<16|l<<8|f).toString(16).slice(1)},addAlphaToColor:function(a,b){null!=b&&null!=a&&"transparent"!=a&&(a=mxUtils.parseColor(a),a="rgba("+a.r+","+a.g+","+a.b+","+b+")");return a},getLightDarkColor:function(a,b,c,d){var e={light:"transparent",dark:"transparent",-cssText:"transparent"};null!=a&&a!=mxConstants.NONE&&("string"===typeof a?(a=mxUtils.parseLightDarkColor(a,c,d),e.light=mxUtils.addAlphaToColor(a.light,b),e.dark=mxUtils.addAlphaToColor(a.dark,b),e.cssText=mxUtils.lightDarkColorSupported?e.light==e.dark?e.light:"light-dark("+e.light+", "+e.dark+")":mxUtils.preferDarkColor?e.dark:e.light):(e.light=a,e.dark=a,e.cssText=a));return e},invertLightDarkColor:function(a){var b={};b.light=a.dark;b.dark=a.light;b.cssText=b.light==b.dark?b.light:"light-dark("+-b.light+", "+b.dark+")";return b},getColor:function(a,b,c){a=null!=a?a[b]:null;null==a?a=c:a==mxConstants.NONE&&(a=null);return a},isEmptyObject:function(a){for(var b in a)return!1;return!0},clone:function(a,b,c){c=null!=c?c:!1;var d=null;if(null!=a&&"function"==typeof a.constructor)if(a.constructor===Element)d=a.cloneNode(null!=c?!c:!1);else{d=new a.constructor;for(var e in a)e!=mxObjectIdentity.FIELD_NAME&&(null==b||0>mxUtils.indexOf(b,e))&&(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},-equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c<a.length;c++)if(null!=a[c]&&null==b[c]||null==a[c]&&null!=b[c]||null!=a[c]&&null!=b[c]&&(a[c].x!=b[c].x||a[c].y!=b[c].y))return!1;return!0},equalEntries:function(a,b){var c=0;if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b){for(var d in b)c++;for(d in a)if(c--,!(mxUtils.isNaN(a[d])&&mxUtils.isNaN(b[d])||-a[d]==b[d]))return!1}return 0==c},removeDuplicates:function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},toString:function(a){var b="",c;for(c in a)try{if(null==a[c])b+=c+" = [null]\n";else if("function"==typeof a[c])b+=c+" => [Function]\n";else if("object"==typeof a[c]){var d=-mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return A;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);A=Math.sin(e*Math.PI/180);e=p*m+A*n;m=-1*A*m+p*n;n=e*e;var q=m*m,r=c*c,t=d*d,u=n/r+q/t;1<u?(c*=Math.sqrt(u),d*=Math.sqrt(u),f=0):(u=1,f===g&&-(u=-1),f=u*Math.sqrt((r*t-r*q-t*n)/(r*q+t*n)));n=f*c*m/d;q=-1*f*d*e/c;k=p*n-A*q+k/2;l=A*n+p*q+l/2;r=Math.atan2((m-q)/d,(e-n)/c)-Math.atan2(0,1);f=0<=r?r:2*Math.PI+r;r=Math.atan2((-m-q)/d,(-e-n)/c)-Math.atan2((m-q)/d,(e-n)/c);e=0<=r?r:2*Math.PI+r;0==g&&0<e?e-=2*Math.PI:0!=g&&0>e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=A;d*=A;var v=Math.cos(f),y=Math.sin(f);q=-m*(n*y+d*v);r=-m*(c*y-p*v);for(var A=[],z=0;z<g;++z){f+=e;v=-Math.cos(f);y=Math.sin(f);t=n*v-d*y+k;u=c*v+p*y+l;var C=-m*(n*y+d*v);v=-m*(c*y-p*v);y=6*z;A[y]=Number(q+a);A[y+1]=Number(r+b);A[y+2]=Number(t-C+a);A[y+3]=Number(u-v+b);A[y+4]=Number(t+a);A[y+5]=Number(u+b);q=t+C;r=u+v}return A},getBoundingBox:function(a,b,c){var d=null;if(null!=a&&null!=b&&0!=b){b=mxUtils.toRadians(b);d=Math.cos(b);var e=Math.sin(b);c=null!=c?c:new mxPoint(a.x+a.width/2,a.y+a.height/2);var f=new mxPoint(a.x,a.y);b=new mxPoint(a.x+a.width,a.y);var g=new mxPoint(b.x,a.y+a.height);a=-new mxPoint(a.x,g.y);f=mxUtils.getRotatedPoint(f,d,e,c);b=mxUtils.getRotatedPoint(b,d,e,c);g=mxUtils.getRotatedPoint(g,d,e,c);a=mxUtils.getRotatedPoint(a,d,e,c);d=new mxRectangle(f.x,f.y,0,0);d.add(new mxRectangle(b.x,b.y,0,0));d.add(new mxRectangle(g.x,g.y,0,0));d.add(new mxRectangle(a.x,a.y,0,0))}return d},getRotatedPoint:function(a,b,c,d){d=null!=d?d:new mxPoint;var e=a.x-d.x;a=a.y-d.y;return new mxPoint(e*b-a*c+d.x,a*b+e*c+d.y)},getPortConstraints:function(a,b,c,d){b=mxUtils.getValue(a.style,-mxConstants.STYLE_PORT_CONSTRAINT,mxUtils.getValue(b.style,c?mxConstants.STYLE_SOURCE_PORT_CONSTRAINT:mxConstants.STYLE_TARGET_PORT_CONSTRAINT,null));if(null==b)return d;d=b.toString();b=mxConstants.DIRECTION_MASK_NONE;c=0;1==mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT_ROTATION,0)&&(c=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0));a=0;45<c?(a=1,135<=c&&(a=2)):-45>c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_NORTH;-break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 1:b|=-mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<+getInverseColor:function(a,b,c){function d(n){return Math.round(b/100*(255-n)+n*(1-b/100))}function e(n){return Math.round(Math.max(0,Math.min(255,n)))}c=null!=c?c:180;b=null!=b?b:93;var f=0,g=0,k=0,l=1;if("transparent"==a.toLowerCase())return a;l=mxUtils.parseColor(a);if(null==l)return a;f=l.r;g=l.g;k=l.b;l=l.a;f=d(f);g=d(g);k=d(k);a=[1,0,0,0,1,0,0,0,1];var m=Math.cos(c*Math.PI/180);c=Math.sin(c*Math.PI/180);a[0]=.2126+.7874*m-.2126*c;a[1]=.7152-.7152*m-.7152*c;a[2]=.0722-.0722*m+.9278*c;a[3]=.2126-+.2126*m+.143*c;a[4]=.7152+(1-.7152)*m+.14*c;a[5]=.0722-.0722*m-.283*c;a[6]=.2126-.2126*m-.7874*c;a[7]=.7152-.7152*m+.7152*c;a[8]=.0722+.9278*m+.0722*c;c=e(a[0]*f+a[1]*g+a[2]*k);m=e(a[3]*f+a[4]*g+a[5]*k);f=e(a[6]*f+a[7]*g+a[8]*k);return"#"+(16777216|c<<16|m<<8|f).toString(16).slice(1)+(1>l?("0"+Math.round(255*l).toString(16)).slice(-2):"")},addAlphaToColor:function(a,b){null!=b&&null!=a&&"transparent"!=a&&(a=mxUtils.parseColor(a),a="rgba("+a.r+","+a.g+","+a.b+","+a.a*b+")");return a},getLightDarkColor:function(a,+b,c,d){var e={light:"transparent",dark:"transparent",cssText:"transparent"};null!=a&&a!=mxConstants.NONE&&("string"===typeof a?(a=mxUtils.parseLightDarkColor(a,c,d),e.light=mxUtils.addAlphaToColor(a.light,b),e.dark=mxUtils.addAlphaToColor(a.dark,b),e.cssText=mxUtils.lightDarkColorSupported?e.light==e.dark?e.light:"light-dark("+e.light+", "+e.dark+")":mxUtils.preferDarkColor?e.dark:e.light):(e.light=a,e.dark=a,e.cssText=a));return e},invertLightDarkColor:function(a){var b={};b.light=a.dark;b.dark=+a.light;b.cssText=b.light==b.dark?b.light:"light-dark("+b.light+", "+b.dark+")";return b},getColor:function(a,b,c){a=null!=a?a[b]:null;null==a?a=c:a==mxConstants.NONE&&(a=null);return a},isEmptyObject:function(a){for(var b in a)return!1;return!0},clone:function(a,b,c){c=null!=c?c:!1;var d=null;if(null!=a&&"function"==typeof a.constructor)if(a.constructor===Element)d=a.cloneNode(null!=c?!c:!1);else{d=new a.constructor;for(var e in a)e!=mxObjectIdentity.FIELD_NAME&&(null==b||0>mxUtils.indexOf(b,e))&&+(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c<a.length;c++)if(null!=a[c]&&null==b[c]||null==a[c]&&null!=b[c]||null!=a[c]&&null!=b[c]&&(a[c].x!=b[c].x||a[c].y!=b[c].y))return!1;return!0},equalEntries:function(a,b){var c=0;if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b){for(var d in b)c++;+for(d in a)if(c--,!(mxUtils.isNaN(a[d])&&mxUtils.isNaN(b[d])||a[d]==b[d]))return!1}return 0==c},removeDuplicates:function(a){for(var b=new mxDictionary,c=[],d=0;d<a.length;d++)b.get(a[d])||(c.push(a[d]),b.put(a[d],!0));return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},extend:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a},toString:function(a){var b="",c;for(c in a)try{if(null==a[c])b+=c+" = [null]\n";else if("function"==typeof a[c])b+=+c+" => [Function]\n";else if("object"==typeof a[c]){var d=mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return A;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);A=Math.sin(e*Math.PI/180);e=p*m+A*n;m=-1*A*m+p*n;n=e*e;var q=m*m,r=c*c,t=d*d,u=n/r++q/t;1<u?(c*=Math.sqrt(u),d*=Math.sqrt(u),f=0):(u=1,f===g&&(u=-1),f=u*Math.sqrt((r*t-r*q-t*n)/(r*q+t*n)));n=f*c*m/d;q=-1*f*d*e/c;k=p*n-A*q+k/2;l=A*n+p*q+l/2;r=Math.atan2((m-q)/d,(e-n)/c)-Math.atan2(0,1);f=0<=r?r:2*Math.PI+r;r=Math.atan2((-m-q)/d,(-e-n)/c)-Math.atan2((m-q)/d,(e-n)/c);e=0<=r?r:2*Math.PI+r;0==g&&0<e?e-=2*Math.PI:0!=g&&0>e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=A;d*=A;var v=Math.cos(f),y=Math.sin(f);q=-m*+(n*y+d*v);r=-m*(c*y-p*v);for(var A=[],z=0;z<g;++z){f+=e;v=Math.cos(f);y=Math.sin(f);t=n*v-d*y+k;u=c*v+p*y+l;var x=-m*(n*y+d*v);v=-m*(c*y-p*v);y=6*z;A[y]=Number(q+a);A[y+1]=Number(r+b);A[y+2]=Number(t-x+a);A[y+3]=Number(u-v+b);A[y+4]=Number(t+a);A[y+5]=Number(u+b);q=t+x;r=u+v}return A},getBoundingBox:function(a,b,c){var d=null;if(null!=a&&null!=b&&0!=b){b=mxUtils.toRadians(b);d=Math.cos(b);var e=Math.sin(b);c=null!=c?c:new mxPoint(a.x+a.width/2,a.y+a.height/2);var f=new mxPoint(a.x,a.y);b=new mxPoint(a.x++a.width,a.y);var g=new mxPoint(b.x,a.y+a.height);a=new mxPoint(a.x,g.y);f=mxUtils.getRotatedPoint(f,d,e,c);b=mxUtils.getRotatedPoint(b,d,e,c);g=mxUtils.getRotatedPoint(g,d,e,c);a=mxUtils.getRotatedPoint(a,d,e,c);d=new mxRectangle(f.x,f.y,0,0);d.add(new mxRectangle(b.x,b.y,0,0));d.add(new mxRectangle(g.x,g.y,0,0));d.add(new mxRectangle(a.x,a.y,0,0))}return d},getRotatedPoint:function(a,b,c,d){d=null!=d?d:new mxPoint;var e=a.x-d.x;a=a.y-d.y;return new mxPoint(e*b-a*c+d.x,a*b+e*c+d.y)},getPortConstraints:function(a,+b,c,d){b=mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT,mxUtils.getValue(b.style,c?mxConstants.STYLE_SOURCE_PORT_CONSTRAINT:mxConstants.STYLE_TARGET_PORT_CONSTRAINT,null));if(null==b)return d;d=b.toString();b=mxConstants.DIRECTION_MASK_NONE;c=0;1==mxUtils.getValue(a.style,mxConstants.STYLE_PORT_CONSTRAINT_ROTATION,0)&&(c=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0));a=0;45<c?(a=1,135<=c&&(a=2)):-45>c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=+mxConstants.DIRECTION_MASK_NORTH;break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;+break;case 1:b|=mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<1;b|=(a&mxConstants.DIRECTION_MASK_SOUTH)>>1;return b|=(a&mxConstants.DIRECTION_MASK_EAST)>>3},findNearestSegment:function(a,b,c){var d=-1;if(0<a.absolutePoints.length)for(var e=a.absolutePoints[0],f=null,g=1;g<a.absolutePoints.length;g++){var k=a.absolutePoints[g];e=mxUtils.ptSegDistSq(e.x,e.y,k.x,k.y,b,c);if(null==f||e<f)f=e,d=g-1;e=k}return d},getDirectedBounds:function(a,b,c,d,e){var f=mxUtils.getValue(c,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST);d=null!=d?d:mxUtils.getValue(c,mxConstants.STYLE_FLIPH,!1);e=null!=e?e:mxUtils.getValue(c,mxConstants.STYLE_FLIPV,!1);b.x=Math.round(Math.max(0,Math.min(a.width,b.x)));b.y=Math.round(Math.max(0,Math.min(a.height,b.y)));b.width=Math.round(Math.max(0,Math.min(a.width,b.width)));b.height=Math.round(Math.max(0,Math.min(a.height,b.height)));if(e&&(f==mxConstants.DIRECTION_SOUTH||f==mxConstants.DIRECTION_NORTH)||d&&(f==mxConstants.DIRECTION_EAST||f==mxConstants.DIRECTION_WEST))c=b.x,b.x=b.width,b.width=c;if(d&&(f==mxConstants.DIRECTION_SOUTH||f==mxConstants.DIRECTION_NORTH)||e&&(f==mxConstants.DIRECTION_EAST||f==mxConstants.DIRECTION_WEST))c=b.y,b.y=b.height,b.height=c;d=mxRectangle.fromRectangle(b);f==mxConstants.DIRECTION_SOUTH?(d.y=b.x,d.x=b.height,d.width=b.y,d.height=b.width):f==mxConstants.DIRECTION_WEST?(d.y=b.height,d.x=b.width,d.width=b.x,d.height=b.y):f==mxConstants.DIRECTION_NORTH&&(d.y=b.width,d.x=b.y,d.width=b.height,d.height=b.x);return new mxRectangle(a.x+d.x,a.y+d.y,a.width-d.width-d.x,a.height-d.height-d.y)},getPerimeterPoint:function(a,b,c){for(var d=@@ -84,43 +84,43 @@ null},ptSegDistSq:function(a,b,c,d,e,f){c-=a;d-=b;e-=a;f-=b;0>=e*c+f*d?c=0:(e=c-b,c){mxEffects.cascadeOpacity.apply(this,arguments)},fadeOut:function(a,b,c,d,e,f){mxEffects.fadeOut.apply(this,arguments)},setOpacity:function(a,b){mxClient.IS_IE&&("undefined"===typeof document.documentMode||9>document.documentMode)?a.style.filter=100<=b?"":"alpha(opacity="+b+")":a.style.opacity=b/100},createElementNs:function(a,b,c){if(null!=a.createElementNS)return a.createElementNS(b,c);a=a.createElement(c);null!=namespace&&a.setAttribute("xmlns",b);return a},createImage:function(a){var b=document.createElement("img");b.setAttribute("src",a);b.setAttribute("border","0");return b},sortCells:function(a,b){b=null!=b?b:!0;var c=new mxDictionary;a.sort(function(d,e){var f=c.get(d);null==f&&(f=mxCellPath.create(d).split(mxCellPath.PATH_SEPARATOR),c.put(d,f));d=c.get(e);null==d&&(d=mxCellPath.create(e).split(mxCellPath.PATH_SEPARATOR),c.put(e,d));e=mxCellPath.compare(f,d);return 0==e?0:0<e==b?1:-1});return a},getStylename:function(a){return null!=a&&(a=a.split(";")[0],0>a.indexOf("="))?a:""},getStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0>a[c].indexOf("=")&&b.push(a[c])}return b},indexOfStylename:function(a,b){if(null!=a&&null!=b){a=a.split(";");for(var c=0,d=0;d<a.length;d++){if(a[d]==b)return c;c+=a[d].length+1}}return-1},addStylename:function(a,b){0>mxUtils.indexOfStylename(a,b)&&(null==a?a="":0<a.length&&";"!=a.charAt(a.length-1)&&(a+=";"),a+=b);return a},removeStylename:function(a,b){var c=[];if(null!=a){a=a.split(";");for(var d=0;d<a.length;d++)a[d]!=b&&c.push(a[d])}return c.join(";")},-removeAllStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0<=a[c].indexOf("=")&&b.push(a[c])}return b.join(";")},setCellStyles:function(a,b,c,d){if(null!=b&&0<b.length){a.beginUpdate();try{for(var e=0;e<b.length;e++)if(null!=b[e]){var f=mxUtils.setStyle(a.getStyle(b[e]),c,d);a.setStyle(b[e],f)}}finally{a.endUpdate()}}},parseColor:function(a,b){b=null!=b?b:1;var c=null;if(null!=a&&a!=mxConstants.NONE){if(mxUtils.isRgbColor(a)){a=a.replace(/[^\d,]/g,"").split(",");+removeAllStylenames:function(a){var b=[];if(null!=a){a=a.split(";");for(var c=0;c<a.length;c++)0<=a[c].indexOf("=")&&b.push(a[c])}return b.join(";")},setCellStyles:function(a,b,c,d){if(null!=b&&0<b.length){a.beginUpdate();try{for(var e=0;e<b.length;e++)if(null!=b[e]){var f=mxUtils.setStyle(a.getStyle(b[e]),c,d);a.setStyle(b[e],f)}}finally{a.endUpdate()}}},parseColor:function(a,b){b=null!=b?b:1;var c=null;if(null!=a&&a!=mxConstants.NONE){if(mxUtils.isRgbColor(a)){a=a.replace(/[^\d,.]/g,"").split(",");c=parseInt(a[0]);var d=parseInt(a[1]),e=parseInt(a[2]);4==a.length&&(b=parseFloat(a[3]))}else mxUtils.isHexColor(a)||(a=mxUtils.color2hex(a)),a=a.substring(1),c=parseInt(a.substr(0,2),16),d=parseInt(a.substr(2,2),16),e=parseInt(a.substr(4,2),16),6<a.length&&(b=parseInt(a.substr(6,2),16)/255);c={r:c,g:d,b:e,a:b}}return c},hex2rgb:function(a){var b=mxUtils.parseColor(a);null!=b&&(a="rgb("+b.r+", "+b.g+", "+b.b+")");return a},hex2rgba:function(a,b){b=mxUtils.parseColor(a,b);null!=b&&(a="rgba("+b.r+", "+-b.g+", "+b.b+", "+b.a+")");return a},rgba2hex:function(a){var b=mxUtils.parseColor(a);return null!=b?"#"+("0"+b.r.toString(16)).slice(-2)+("0"+b.g.toString(16)).slice(-2)+("0"+b.b.toString(16)).slice(-2):a},color2hex:function(a,b){b=null!=b?b:"#000000";try{null!=a&&(a=String(a).replace(/\s/g,""),a.toLowerCase()==mxUtils.normalizedValidInvalidColor?b="#000000":(mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor,mxUtils.canvasContext.fillStyle=a,mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor?-b=mxUtils.canvasContext.fillStyle:1<a.length&&"#"==a.charAt(0)&&(mxUtils.canvasContext.fillStyle=a.substring(1),mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor&&(b=mxUtils.canvasContext.fillStyle))))}catch(c){}return b},setStyle:function(a,b,c){var d=null!=c&&("undefined"==typeof c.length||0<c.length);if(null==a||0==a.length)d&&(a=b+"="+c+";");else if(a.substring(0,b.length+1)==b+"="){var e=a.indexOf(";");a=d?b+"="+c+(0>e?";":a.substring(e)):0>e||e==a.length-1?"":a.substring(e+1)}else{var f=-a.indexOf(";"+b+"=");0>f?d&&(d=";"==a.charAt(a.length-1)?"":";",a=a+d+b+"="+c+";"):(e=a.indexOf(";",f+1),a=d?a.substring(0,f+1)+b+"="+c+(0>e?";":a.substring(e)):a.substring(0,f)+(0>e?";":a.substring(e)))}return a},setCellStyleFlags:function(a,b,c,d,e){if(null!=b&&0<b.length){a.beginUpdate();try{for(var f=0;f<b.length;f++)if(null!=b[f]){var g=mxUtils.setStyleFlag(a.getStyle(b[f]),c,d,e);a.setStyle(b[f],g)}}finally{a.endUpdate()}}},setStyleFlag:function(a,b,c,d){if(null==a||0==a.length)a=d||null==d?-b+"="+c:b+"=0";else{var e=a.indexOf(b+"=");if(0>e)e=";"==a.charAt(a.length-1)?"":";",a=d||null==d?a+e+b+"="+c:a+e+b+"=0";else{var f=a.indexOf(";",e);var g=0>f?a.substring(e+b.length+1):a.substring(e+b.length+1,f);g=null==d?parseInt(g)^c:d?parseInt(g)|c:parseInt(g)&~c;a=a.substring(0,e)+b+"="+g+(0<=f?a.substring(f):"")}}return a},getAlignmentAsPoint:function(a,b){var c=-.5,d=-.5;a==mxConstants.ALIGN_LEFT?c=0:a==mxConstants.ALIGN_RIGHT&&(c=-1);b==mxConstants.ALIGN_TOP?d=0:b==mxConstants.ALIGN_BOTTOM&&-(d=-1);return new mxPoint(c,d)},getSizeForString:function(a,b,c,d,e){b=null!=b?b:mxConstants.DEFAULT_FONTSIZE;c=null!=c?c:mxConstants.DEFAULT_FONTFAMILY;var f=document.createElement("div");f.style.fontFamily=c;f.style.fontSize=Math.round(b)+"px";f.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?b*mxConstants.LINE_HEIGHT+"px":mxConstants.LINE_HEIGHT*mxSvgCanvas2D.prototype.lineHeightCorrection;null!=e&&((e&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(f.style.fontWeight="bold"),(e&mxConstants.FONT_ITALIC)==-mxConstants.FONT_ITALIC&&(f.style.fontStyle="italic"),b=[],(e&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&b.push("underline"),(e&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&b.push("line-through"),0<b.length&&(f.style.textDecoration=b.join(" ")));f.style.position="absolute";f.style.visibility="hidden";f.style.display="inline-block";f.style.zoom="1";null!=d?(f.style.width=d+"px",f.style.whiteSpace="normal"):f.style.whiteSpace="nowrap";f.innerHTML=a;document.body.appendChild(f);-a=new mxRectangle(0,0,f.offsetWidth,f.offsetHeight);document.body.removeChild(f);return a},getViewXml:function(a,b,c,d,e){d=null!=d?d:0;e=null!=e?e:0;b=null!=b?b:1;null==c&&(c=[a.getModel().getRoot()]);var f=a.getView(),g=null,k=f.isEventsEnabled();f.setEventsEnabled(!1);var l=f.drawPane,m=f.overlayPane;a.dialect==mxConstants.DIALECT_SVG?(f.drawPane=document.createElementNS(mxConstants.NS_SVG,"g"),f.canvas.appendChild(f.drawPane),f.overlayPane=document.createElementNS(mxConstants.NS_SVG,"g")):(f.drawPane=-f.drawPane.cloneNode(!1),f.canvas.appendChild(f.drawPane),f.overlayPane=f.overlayPane.cloneNode(!1));f.canvas.appendChild(f.overlayPane);var n=f.getTranslate();f.translate=new mxPoint(d,e);b=new mxTemporaryCellStates(a.getView(),b,c);try{g=(new mxCodec).encode(a.getView())}finally{b.destroy(),f.translate=n,f.canvas.removeChild(f.drawPane),f.canvas.removeChild(f.overlayPane),f.drawPane=l,f.overlayPane=m,f.setEventsEnabled(k)}return g},getScaleForPageCount:function(a,b,c,d){if(1>a)return 1;c=null!=-c?c:mxConstants.PAGE_FORMAT_A4_PORTRAIT;d=null!=d?d:0;var e=c.width-2*d;c=c.height-2*d;d=mxRectangle.fromRectangle(b.getGraphBounds());b=b.getView().getScale();d.width/=b;d.height/=b;b=d.width;var f=Math.sqrt(a);d=Math.sqrt(b/d.height/(e/c));c=f*d;d=f/d;if(1>c&&d>a){var g=d/a;d=a;c/=g}1>d&&c>a&&(g=c/a,c=a,d/=g);g=Math.ceil(c)*Math.ceil(d);for(f=0;g>a;){g=Math.floor(c)/c;var k=Math.floor(d)/d;1==g&&(g=Math.floor(c-1)/c);1==k&&(k=Math.floor(d-1)/d);g=g>k?g:k;c*=g;d*=g;g=Math.ceil(c)*Math.ceil(d);f++;-if(10<f)break}return e*c/b*.99999},show:function(a,b,c,d,e,f){c=null!=c?c:0;d=null!=d?d:0;null==b?b=window.open().document:b.open();9==document.documentMode&&b.writeln('\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--\x3e');var g=a.getGraphBounds(),k=Math.ceil(c-g.x),l=Math.ceil(d-g.y);null==e&&(e=Math.ceil(g.width+c)+Math.ceil(Math.ceil(g.x)-g.x));null==f&&(f=Math.ceil(g.height+d)+Math.ceil(Math.ceil(g.y)-g.y));if(mxClient.IS_IE||11==document.documentMode){d="<html><head>";-g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)d+=g[c].outerHTML;d+="<style>";for(c=0;c<document.styleSheets.length;c++)try{d+=document.styleSheets[c].cssText}catch(m){}d=d+'</style></head><body style="margin:0px;"><div style="position:absolute;overflow:hidden;width:'+(e+"px;height:"+f+'px;"><div style="position:relative;left:'+k+"px;top:"+l+'px;">')+a.container.innerHTML;b.writeln(d+"</div></div></body><html>");b.close()}else{b.writeln("<html><head>");g=document.getElementsByTagName("base");-for(c=0;c<g.length;c++)b.writeln(mxUtils.getOuterHtml(g[c]));d=document.getElementsByTagName("link");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));d=document.getElementsByTagName("style");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));b.writeln('</head><body style="margin:0px;"></body></html>');b.close();c=b.createElement("div");c.position="absolute";c.overflow="hidden";c.style.width=e+"px";c.style.height=f+"px";e=b.createElement("div");e.style.position="absolute";e.style.left=-k+"px";e.style.top=l+"px";f=a.container.firstChild;for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.appendChild(g),f=f.nextSibling;b.body.appendChild(c);null!=e.firstChild&&b.body.appendChild(e);null!=d&&(d.style.minWidth="",d.style.minHeight="",d.firstChild.setAttribute("transform","translate("+k+","+l+")"))}mxUtils.removeCursors(b.body);return b},printScreen:function(a){var b=window.open();mxUtils.show(a,b.document);a=function(){b.focus();b.print();-b.close()};mxClient.IS_GC?b.setTimeout(a,500):a()},popup:function(a,b){if(b){var c=document.createElement("div");c.style.overflow="scroll";c.style.width="636px";c.style.height="460px";b=document.createElement("pre");b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," ");c.appendChild(b);c=new mxWindow("Popup Window",c,document.body.clientWidth/2-320,Math.max(document.body.clientHeight||0,document.documentElement.clientHeight)/2-240,640,480,!1,!0);c.setClosable(!0);c.setVisible(!0)}else mxClient.IS_NS?-(c=window.open(),c.document.writeln("<pre>"+mxUtils.htmlEntities(a)+"</pre"),c.document.close()):(c=window.open(),b=c.document.createElement("pre"),b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," "),c.document.body.appendChild(b))},alert:function(a){alert(a)},prompt:function(a,b){return prompt(a,null!=b?b:"")},confirm:function(a){return confirm(a)},error:function(a,b,c,d){var e=document.createElement("div");e.style.padding="20px";var f=document.createElement("img");-f.setAttribute("src",d||mxUtils.errorImage);f.setAttribute("valign","bottom");f.style.verticalAlign="middle";e.appendChild(f);e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));mxUtils.write(e,a);a=document.body.clientWidth;d=document.body.clientHeight||document.documentElement.clientHeight;var g=new mxWindow(mxResources.get(mxUtils.errorResource)||mxUtils.errorResource,e,(a-b)/2,d/4,b,null,!1,!0);c&&(mxUtils.br(e),b=-document.createElement("p"),c=document.createElement("button"),mxClient.IS_IE?c.style.cssText="float:right":c.setAttribute("style","float:right"),mxEvent.addListener(c,"click",function(k){g.destroy()}),mxUtils.write(c,mxResources.get(mxUtils.closeResource)||mxUtils.closeResource),b.appendChild(c),e.appendChild(b),mxUtils.br(e),g.setClosable(!0));g.setVisible(!0);return g},makeDraggable:function(a,b,c,d,e,f,g,k,l,m){a=new mxDragSource(a,c);a.dragOffset=new mxPoint(null!=e?e:0,null!=f?f:mxConstants.TOOLTIP_VERTICAL_OFFSET);-a.autoscroll=g;a.setGuidesEnabled(!1);null!=l&&(a.highlightDropTargets=l);null!=m&&(a.getDropTarget=m);a.getGraphForEvent=function(n){return"function"==typeof b?b(n):b};null!=d&&(a.createDragElement=function(){return d.cloneNode(!0)},k&&(a.createPreviewElement=function(n){var p=d.cloneNode(!0),q=parseInt(p.style.width),r=parseInt(p.style.height);p.style.width=Math.round(q*n.view.scale)+"px";p.style.height=Math.round(r*n.view.scale)+"px";return p}));return a},format:function(a){return parseFloat(parseFloat(a).toFixed(2))}},-mxConstants={DEFAULT_HOTSPOT:.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:"exact",RENDERING_HINT_FASTER:"faster",RENDERING_HINT_FASTEST:"fastest",DIALECT_SVG:"svg",DIALECT_MIXEDHTML:"mixedHtml",DIALECT_PREFERHTML:"preferHtml",DIALECT_STRICTHTML:"strictHtml",NS_SVG:"http://www.w3.org/2000/svg",NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XLINK:"http://www.w3.org/1999/xlink",SHADOWCOLOR:"#808080",VML_SHADOWCOLOR:"#808080",SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_BLUR:2,SHADOW_OPACITY:1,-NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:"#00FF00",DEFAULT_INVALID_COLOR:"#FF0000",OUTLINE_HIGHLIGHT_COLOR:"#00FF00",OUTLINE_HIGHLIGHT_STROKEWIDTH:5,HIGHLIGHT_STROKEWIDTH:3,HIGHLIGHT_SIZE:2,HIGHLIGHT_OPACITY:100,CURSOR_MOVABLE_VERTEX:"move",-CURSOR_MOVABLE_EDGE:"move",CURSOR_LABEL_HANDLE:"default",CURSOR_TERMINAL_HANDLE:"pointer",CURSOR_BEND_HANDLE:"crosshair",CURSOR_VIRTUAL_BEND_HANDLE:"crosshair",CURSOR_CONNECT:"pointer",HIGHLIGHT_COLOR:"#00FF00",CONNECT_TARGET_COLOR:"#0000FF",INVALID_CONNECT_TARGET_COLOR:"#FF0000",DROP_TARGET_COLOR:"#0000FF",VALID_COLOR:"#00FF00",INVALID_COLOR:"#FF0000",EDGE_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,-EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:"#FF0000",GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:"#0099FF",OUTLINE_STROKEWIDTH:mxClient.IS_IE?2:3,HANDLE_SIZE:6,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:"#00FF00",HANDLE_STROKECOLOR:"black",LABEL_HANDLE_FILLCOLOR:"yellow",CONNECT_HANDLE_FILLCOLOR:"#0000FF",LOCKED_HANDLE_FILLCOLOR:"#FF0000",OUTLINE_HANDLE_FILLCOLOR:"#00FFFF",OUTLINE_HANDLE_STROKECOLOR:"#0033FF",DEFAULT_FONTFAMILY:"Arial,Helvetica",DEFAULT_FONTSIZE:11,DEFAULT_TEXT_DIRECTION:"",LINE_HEIGHT:1.2,WORD_WRAP:"normal",-ABSOLUTE_LINE_HEIGHT:!1,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:.15,LINE_ARCSIZE:20,ARROW_SPACING:0,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT:new mxRectangle(0,0,827,1169),PAGE_FORMAT_A4_LANDSCAPE:new mxRectangle(0,0,1169,827),PAGE_FORMAT_LETTER_PORTRAIT:new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE:new mxRectangle(0,0,1100,850),NONE:"none",STYLE_PERIMETER:"perimeter",STYLE_SOURCE_PORT:"sourcePort",-STYLE_TARGET_PORT:"targetPort",STYLE_PORT_CONSTRAINT:"portConstraint",STYLE_PORT_CONSTRAINT_ROTATION:"portConstraintRotation",STYLE_SOURCE_PORT_CONSTRAINT:"sourcePortConstraint",STYLE_TARGET_PORT_CONSTRAINT:"targetPortConstraint",STYLE_OPACITY:"opacity",STYLE_FILL_OPACITY:"fillOpacity",STYLE_FILL_STYLE:"fillStyle",STYLE_STROKE_OPACITY:"strokeOpacity",STYLE_TEXT_OPACITY:"textOpacity",STYLE_TEXT_DIRECTION:"textDirection",STYLE_OVERFLOW:"overflow",STYLE_BLOCK_SPACING:"blockSpacing",STYLE_ORTHOGONAL:"orthogonal",-STYLE_EXIT_X:"exitX",STYLE_EXIT_Y:"exitY",STYLE_EXIT_DX:"exitDx",STYLE_EXIT_DY:"exitDy",STYLE_EXIT_PERIMETER:"exitPerimeter",STYLE_ENTRY_X:"entryX",STYLE_ENTRY_Y:"entryY",STYLE_ENTRY_DX:"entryDx",STYLE_ENTRY_DY:"entryDy",STYLE_ENTRY_PERIMETER:"entryPerimeter",STYLE_WHITE_SPACE:"whiteSpace",STYLE_ROTATION:"rotation",STYLE_FILLCOLOR:"fillColor",STYLE_POINTER_EVENTS:"pointerEvents",STYLE_SWIMLANE_FILLCOLOR:"swimlaneFillColor",STYLE_MARGIN:"margin",STYLE_GRADIENTCOLOR:"gradientColor",STYLE_GRADIENT_DIRECTION:"gradientDirection",-STYLE_STROKECOLOR:"strokeColor",STYLE_SEPARATORCOLOR:"separatorColor",STYLE_STROKEWIDTH:"strokeWidth",STYLE_ALIGN:"align",STYLE_VERTICAL_ALIGN:"verticalAlign",STYLE_LABEL_WIDTH:"labelWidth",STYLE_LABEL_POSITION:"labelPosition",STYLE_VERTICAL_LABEL_POSITION:"verticalLabelPosition",STYLE_IMAGE_ASPECT:"imageAspect",STYLE_IMAGE_ALIGN:"imageAlign",STYLE_IMAGE_VERTICAL_ALIGN:"imageVerticalAlign",STYLE_GLASS:"glass",STYLE_IMAGE:"image",STYLE_IMAGE_WIDTH:"imageWidth",STYLE_IMAGE_HEIGHT:"imageHeight",STYLE_IMAGE_BACKGROUND:"imageBackground",-STYLE_IMAGE_BORDER:"imageBorder",STYLE_FLIPH:"flipH",STYLE_FLIPV:"flipV",STYLE_NOLABEL:"noLabel",STYLE_NOEDGESTYLE:"noEdgeStyle",STYLE_LABEL_BACKGROUNDCOLOR:"labelBackgroundColor",STYLE_LABEL_BORDERCOLOR:"labelBorderColor",STYLE_LABEL_PADDING:"labelPadding",STYLE_INDICATOR_SHAPE:"indicatorShape",STYLE_INDICATOR_IMAGE:"indicatorImage",STYLE_INDICATOR_COLOR:"indicatorColor",STYLE_INDICATOR_STROKECOLOR:"indicatorStrokeColor",STYLE_INDICATOR_GRADIENTCOLOR:"indicatorGradientColor",STYLE_INDICATOR_SPACING:"indicatorSpacing",-STYLE_INDICATOR_WIDTH:"indicatorWidth",STYLE_INDICATOR_HEIGHT:"indicatorHeight",STYLE_INDICATOR_DIRECTION:"indicatorDirection",STYLE_SHADOW:"shadow",STYLE_TEXT_SHADOW:"textShadow",STYLE_SHADOW_OFFSET_X:"shadowOffsetX",STYLE_SHADOW_OFFSET_Y:"shadowOffsetY",STYLE_SHADOW_BLUR:"shadowBlur",STYLE_SHADOWCOLOR:"shadowColor",STYLE_SHADOW_OPACITY:"shadowOpacity",STYLE_SEGMENT:"segment",STYLE_ENDARROW:"endArrow",STYLE_STARTARROW:"startArrow",STYLE_ENDSIZE:"endSize",STYLE_STARTSIZE:"startSize",STYLE_SWIMLANE_LINE:"swimlaneLine",-STYLE_SWIMLANE_HEAD:"swimlaneHead",STYLE_SWIMLANE_BODY:"swimlaneBody",STYLE_ENDFILL:"endFill",STYLE_ENDFILLCOLOR:"endFillColor",STYLE_STARTFILL:"startFill",STYLE_STARTFILLCOLOR:"startFillColor",STYLE_DASHED:"dashed",STYLE_DASH_PATTERN:"dashPattern",STYLE_FIX_DASH:"fixDash",STYLE_ROUNDED:"rounded",STYLE_CURVED:"curved",STYLE_ARCSIZE:"arcSize",STYLE_ABSOLUTE_ARCSIZE:"absoluteArcSize",STYLE_SOURCE_PERIMETER_SPACING:"sourcePerimeterSpacing",STYLE_TARGET_PERIMETER_SPACING:"targetPerimeterSpacing",STYLE_PERIMETER_SPACING:"perimeterSpacing",-STYLE_SPACING:"spacing",STYLE_SPACING_TOP:"spacingTop",STYLE_SPACING_LEFT:"spacingLeft",STYLE_SPACING_BOTTOM:"spacingBottom",STYLE_SPACING_RIGHT:"spacingRight",STYLE_HORIZONTAL:"horizontal",STYLE_DIRECTION:"direction",STYLE_ANCHOR_POINT_DIRECTION:"anchorPointDirection",STYLE_ELBOW:"elbow",STYLE_FONTCOLOR:"fontColor",STYLE_FONTFAMILY:"fontFamily",STYLE_FONTSIZE:"fontSize",STYLE_FONTSTYLE:"fontStyle",STYLE_ASPECT:"aspect",STYLE_AUTOSIZE:"autosize",STYLE_AUTOSIZE_GRID:"autosizeGrid",STYLE_FIXED_WIDTH:"fixedWidth",-STYLE_FOLDABLE:"foldable",STYLE_EDITABLE:"editable",STYLE_BACKGROUND_OUTLINE:"backgroundOutline",STYLE_BENDABLE:"bendable",STYLE_MOVABLE:"movable",STYLE_RESIZABLE:"resizable",STYLE_RESIZE_WIDTH:"resizeWidth",STYLE_RESIZE_HEIGHT:"resizeHeight",STYLE_ROTATABLE:"rotatable",STYLE_CLONEABLE:"cloneable",STYLE_DELETABLE:"deletable",STYLE_SHAPE:"shape",STYLE_EDGE:"edgeStyle",STYLE_JETTY_SIZE:"jettySize",STYLE_SOURCE_JETTY_SIZE:"sourceJettySize",STYLE_TARGET_JETTY_SIZE:"targetJettySize",STYLE_LOOP:"loopStyle",-STYLE_ORTHOGONAL_LOOP:"orthogonalLoop",STYLE_ROUTING_CENTER_X:"routingCenterX",STYLE_ROUTING_CENTER_Y:"routingCenterY",STYLE_CLIP_PATH:"clipPath",FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_STRIKETHROUGH:8,SHAPE_RECTANGLE:"rectangle",SHAPE_ELLIPSE:"ellipse",SHAPE_DOUBLE_ELLIPSE:"doubleEllipse",SHAPE_RHOMBUS:"rhombus",SHAPE_LINE:"line",SHAPE_IMAGE:"image",SHAPE_ARROW:"arrow",SHAPE_ARROW_CONNECTOR:"arrowConnector",SHAPE_LABEL:"label",SHAPE_CYLINDER:"cylinder",SHAPE_SWIMLANE:"swimlane",SHAPE_CONNECTOR:"connector",-SHAPE_ACTOR:"actor",SHAPE_CLOUD:"cloud",SHAPE_TRIANGLE:"triangle",SHAPE_HEXAGON:"hexagon",ARROW_CLASSIC:"classic",ARROW_CLASSIC_THIN:"classicThin",ARROW_BLOCK:"block",ARROW_BLOCK_THIN:"blockThin",ARROW_OPEN:"open",ARROW_OPEN_THIN:"openThin",ARROW_OVAL:"oval",ARROW_DIAMOND:"diamond",ARROW_DIAMOND_THIN:"diamondThin",ALIGN_LEFT:"left",ALIGN_CENTER:"center",ALIGN_RIGHT:"right",ALIGN_TOP:"top",ALIGN_MIDDLE:"middle",ALIGN_BOTTOM:"bottom",DIRECTION_NORTH:"north",DIRECTION_SOUTH:"south",DIRECTION_EAST:"east",-DIRECTION_WEST:"west",DIRECTION_RADIAL:"radial",TEXT_DIRECTION_DEFAULT:"",TEXT_DIRECTION_AUTO:"auto",TEXT_DIRECTION_LTR:"ltr",TEXT_DIRECTION_RTL:"rtl",TEXT_DIRECTION_VERTICAL_LR:"vertical-lr",TEXT_DIRECTION_VERTICAL_RL:"vertical-rl",DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,ELBOW_VERTICAL:"vertical",ELBOW_HORIZONTAL:"horizontal",EDGESTYLE_ELBOW:"elbowEdgeStyle",EDGESTYLE_ENTITY_RELATION:"entityRelationEdgeStyle",-EDGESTYLE_LOOP:"loopEdgeStyle",EDGESTYLE_SIDETOSIDE:"sideToSideEdgeStyle",EDGESTYLE_TOPTOBOTTOM:"topToBottomEdgeStyle",EDGESTYLE_ORTHOGONAL:"orthogonalEdgeStyle",EDGESTYLE_SEGMENT:"segmentEdgeStyle",PERIMETER_ELLIPSE:"ellipsePerimeter",PERIMETER_RECTANGLE:"rectanglePerimeter",PERIMETER_RHOMBUS:"rhombusPerimeter",PERIMETER_HEXAGON:"hexagonPerimeter",PERIMETER_TRIANGLE:"trianglePerimeter"};+b.g+", "+b.b+", "+b.a+")");return a},rgba2hex:function(a){var b=mxUtils.parseColor(a);return null!=b?"#"+("0"+b.r.toString(16)).slice(-2)+("0"+b.g.toString(16)).slice(-2)+("0"+b.b.toString(16)).slice(-2)+(1>b.a?("0"+Math.round(255*b.a).toString(16)).slice(-2):""):a},color2hex:function(a,b){b=null!=b?b:"#000000";try{null!=a&&(a=String(a).replace(/\s/g,""),a.toLowerCase()==mxUtils.normalizedValidInvalidColor?b="#000000":(mxUtils.canvasContext.fillStyle=mxUtils.validInvalidColor,mxUtils.canvasContext.fillStyle=+a,mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor?(b=mxUtils.canvasContext.fillStyle,mxUtils.isRgbColor(b)&&(b=mxUtils.rgba2hex(b))):1<a.length&&"#"==a.charAt(0)&&(mxUtils.canvasContext.fillStyle=a.substring(1),mxUtils.canvasContext.fillStyle!=mxUtils.validInvalidColor&&(b=mxUtils.canvasContext.fillStyle))))}catch(c){}return b},setStyle:function(a,b,c){var d=null!=c&&("undefined"==typeof c.length||0<c.length);if(null==a||0==a.length)d&&(a=b+"="+c+";");else if(a.substring(0,b.length+1)==+b+"="){var e=a.indexOf(";");a=d?b+"="+c+(0>e?";":a.substring(e)):0>e||e==a.length-1?"":a.substring(e+1)}else{var f=a.indexOf(";"+b+"=");0>f?d&&(d=";"==a.charAt(a.length-1)?"":";",a=a+d+b+"="+c+";"):(e=a.indexOf(";",f+1),a=d?a.substring(0,f+1)+b+"="+c+(0>e?";":a.substring(e)):a.substring(0,f)+(0>e?";":a.substring(e)))}return a},setCellStyleFlags:function(a,b,c,d,e){if(null!=b&&0<b.length){a.beginUpdate();try{for(var f=0;f<b.length;f++)if(null!=b[f]){var g=mxUtils.setStyleFlag(a.getStyle(b[f]),c,d,+e);a.setStyle(b[f],g)}}finally{a.endUpdate()}}},setStyleFlag:function(a,b,c,d){if(null==a||0==a.length)a=d||null==d?b+"="+c:b+"=0";else{var e=a.indexOf(b+"=");if(0>e)e=";"==a.charAt(a.length-1)?"":";",a=d||null==d?a+e+b+"="+c:a+e+b+"=0";else{var f=a.indexOf(";",e);var g=0>f?a.substring(e+b.length+1):a.substring(e+b.length+1,f);g=null==d?parseInt(g)^c:d?parseInt(g)|c:parseInt(g)&~c;a=a.substring(0,e)+b+"="+g+(0<=f?a.substring(f):"")}}return a},getAlignmentAsPoint:function(a,b){var c=-.5,d=-.5;a==mxConstants.ALIGN_LEFT?+c=0:a==mxConstants.ALIGN_RIGHT&&(c=-1);b==mxConstants.ALIGN_TOP?d=0:b==mxConstants.ALIGN_BOTTOM&&(d=-1);return new mxPoint(c,d)},getSizeForString:function(a,b,c,d,e){b=null!=b?b:mxConstants.DEFAULT_FONTSIZE;c=null!=c?c:mxConstants.DEFAULT_FONTFAMILY;var f=document.createElement("div");f.style.fontFamily=c;f.style.fontSize=Math.round(b)+"px";f.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?b*mxConstants.LINE_HEIGHT+"px":mxConstants.LINE_HEIGHT*mxSvgCanvas2D.prototype.lineHeightCorrection;null!=+e&&((e&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(f.style.fontWeight="bold"),(e&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(f.style.fontStyle="italic"),b=[],(e&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&b.push("underline"),(e&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&b.push("line-through"),0<b.length&&(f.style.textDecoration=b.join(" ")));f.style.position="absolute";f.style.visibility="hidden";f.style.display="inline-block";f.style.zoom="1";null!=+d?(f.style.width=d+"px",f.style.whiteSpace="normal"):f.style.whiteSpace="nowrap";f.innerHTML=a;document.body.appendChild(f);a=new mxRectangle(0,0,f.offsetWidth,f.offsetHeight);document.body.removeChild(f);return a},getViewXml:function(a,b,c,d,e){d=null!=d?d:0;e=null!=e?e:0;b=null!=b?b:1;null==c&&(c=[a.getModel().getRoot()]);var f=a.getView(),g=null,k=f.isEventsEnabled();f.setEventsEnabled(!1);var l=f.drawPane,m=f.overlayPane;a.dialect==mxConstants.DIALECT_SVG?(f.drawPane=document.createElementNS(mxConstants.NS_SVG,+"g"),f.canvas.appendChild(f.drawPane),f.overlayPane=document.createElementNS(mxConstants.NS_SVG,"g")):(f.drawPane=f.drawPane.cloneNode(!1),f.canvas.appendChild(f.drawPane),f.overlayPane=f.overlayPane.cloneNode(!1));f.canvas.appendChild(f.overlayPane);var n=f.getTranslate();f.translate=new mxPoint(d,e);b=new mxTemporaryCellStates(a.getView(),b,c);try{g=(new mxCodec).encode(a.getView())}finally{b.destroy(),f.translate=n,f.canvas.removeChild(f.drawPane),f.canvas.removeChild(f.overlayPane),f.drawPane=+l,f.overlayPane=m,f.setEventsEnabled(k)}return g},getScaleForPageCount:function(a,b,c,d){if(1>a)return 1;c=null!=c?c:mxConstants.PAGE_FORMAT_A4_PORTRAIT;d=null!=d?d:0;var e=c.width-2*d;c=c.height-2*d;d=mxRectangle.fromRectangle(b.getGraphBounds());b=b.getView().getScale();d.width/=b;d.height/=b;b=d.width;var f=Math.sqrt(a);d=Math.sqrt(b/d.height/(e/c));c=f*d;d=f/d;if(1>c&&d>a){var g=d/a;d=a;c/=g}1>d&&c>a&&(g=c/a,c=a,d/=g);g=Math.ceil(c)*Math.ceil(d);for(f=0;g>a;){g=Math.floor(c)/c;var k=Math.floor(d)/+d;1==g&&(g=Math.floor(c-1)/c);1==k&&(k=Math.floor(d-1)/d);g=g>k?g:k;c*=g;d*=g;g=Math.ceil(c)*Math.ceil(d);f++;if(10<f)break}return e*c/b*.99999},show:function(a,b,c,d,e,f){c=null!=c?c:0;d=null!=d?d:0;null==b?b=window.open().document:b.open();9==document.documentMode&&b.writeln('\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=9"><![endif]--\x3e');var g=a.getGraphBounds(),k=Math.ceil(c-g.x),l=Math.ceil(d-g.y);null==e&&(e=Math.ceil(g.width+c)+Math.ceil(Math.ceil(g.x)-g.x));null==f&&(f=+Math.ceil(g.height+d)+Math.ceil(Math.ceil(g.y)-g.y));if(mxClient.IS_IE||11==document.documentMode){d="<html><head>";g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)d+=g[c].outerHTML;d+="<style>";for(c=0;c<document.styleSheets.length;c++)try{d+=document.styleSheets[c].cssText}catch(m){}d=d+'</style></head><body style="margin:0px;"><div style="position:absolute;overflow:hidden;width:'+(e+"px;height:"+f+'px;"><div style="position:relative;left:'+k+"px;top:"+l+'px;">')+a.container.innerHTML;+b.writeln(d+"</div></div></body><html>");b.close()}else{b.writeln("<html><head>");g=document.getElementsByTagName("base");for(c=0;c<g.length;c++)b.writeln(mxUtils.getOuterHtml(g[c]));d=document.getElementsByTagName("link");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));d=document.getElementsByTagName("style");for(c=0;c<d.length;c++)b.writeln(mxUtils.getOuterHtml(d[c]));b.writeln('</head><body style="margin:0px;"></body></html>');b.close();c=b.createElement("div");c.position="absolute";+c.overflow="hidden";c.style.width=e+"px";c.style.height=f+"px";e=b.createElement("div");e.style.position="absolute";e.style.left=k+"px";e.style.top=l+"px";f=a.container.firstChild;for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.appendChild(g),f=f.nextSibling;b.body.appendChild(c);null!=e.firstChild&&b.body.appendChild(e);null!=d&&(d.style.minWidth="",d.style.minHeight="",d.firstChild.setAttribute("transform","translate("+k+","+l+")"))}mxUtils.removeCursors(b.body);+return b},printScreen:function(a){var b=window.open();mxUtils.show(a,b.document);a=function(){b.focus();b.print();b.close()};mxClient.IS_GC?b.setTimeout(a,500):a()},popup:function(a,b){if(b){var c=document.createElement("div");c.style.overflow="scroll";c.style.width="636px";c.style.height="460px";b=document.createElement("pre");b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," ");c.appendChild(b);c=new mxWindow("Popup Window",c,document.body.clientWidth/2-320,Math.max(document.body.clientHeight||+0,document.documentElement.clientHeight)/2-240,640,480,!1,!0);c.setClosable(!0);c.setVisible(!0)}else mxClient.IS_NS?(c=window.open(),c.document.writeln("<pre>"+mxUtils.htmlEntities(a)+"</pre"),c.document.close()):(c=window.open(),b=c.document.createElement("pre"),b.innerHTML=mxUtils.htmlEntities(a,!1).replace(/\n/g,"<br>").replace(/ /g," "),c.document.body.appendChild(b))},alert:function(a){alert(a)},prompt:function(a,b){return prompt(a,null!=b?b:"")},confirm:function(a){return confirm(a)},+error:function(a,b,c,d){var e=document.createElement("div");e.style.padding="20px";var f=document.createElement("img");f.setAttribute("src",d||mxUtils.errorImage);f.setAttribute("valign","bottom");f.style.verticalAlign="middle";e.appendChild(f);e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));e.appendChild(document.createTextNode(" "));mxUtils.write(e,a);a=document.body.clientWidth;d=document.body.clientHeight||document.documentElement.clientHeight;var g=new mxWindow(mxResources.get(mxUtils.errorResource)||+mxUtils.errorResource,e,(a-b)/2,d/4,b,null,!1,!0);c&&(mxUtils.br(e),b=document.createElement("p"),c=document.createElement("button"),mxClient.IS_IE?c.style.cssText="float:right":c.setAttribute("style","float:right"),mxEvent.addListener(c,"click",function(k){g.destroy()}),mxUtils.write(c,mxResources.get(mxUtils.closeResource)||mxUtils.closeResource),b.appendChild(c),e.appendChild(b),mxUtils.br(e),g.setClosable(!0));g.setVisible(!0);return g},makeDraggable:function(a,b,c,d,e,f,g,k,l,m){a=new mxDragSource(a,+c);a.dragOffset=new mxPoint(null!=e?e:0,null!=f?f:mxConstants.TOOLTIP_VERTICAL_OFFSET);a.autoscroll=g;a.setGuidesEnabled(!1);null!=l&&(a.highlightDropTargets=l);null!=m&&(a.getDropTarget=m);a.getGraphForEvent=function(n){return"function"==typeof b?b(n):b};null!=d&&(a.createDragElement=function(){return d.cloneNode(!0)},k&&(a.createPreviewElement=function(n){var p=d.cloneNode(!0),q=parseInt(p.style.width),r=parseInt(p.style.height);p.style.width=Math.round(q*n.view.scale)+"px";p.style.height=Math.round(r*+n.view.scale)+"px";return p}));return a},format:function(a){return parseFloat(parseFloat(a).toFixed(2))}},mxConstants={DEFAULT_HOTSPOT:.3,MIN_HOTSPOT_SIZE:8,MAX_HOTSPOT_SIZE:0,RENDERING_HINT_EXACT:"exact",RENDERING_HINT_FASTER:"faster",RENDERING_HINT_FASTEST:"fastest",DIALECT_SVG:"svg",DIALECT_MIXEDHTML:"mixedHtml",DIALECT_PREFERHTML:"preferHtml",DIALECT_STRICTHTML:"strictHtml",NS_SVG:"http://www.w3.org/2000/svg",NS_XHTML:"http://www.w3.org/1999/xhtml",NS_XLINK:"http://www.w3.org/1999/xlink",SHADOWCOLOR:"#808080",+VML_SHADOWCOLOR:"#808080",SHADOW_OFFSET_X:2,SHADOW_OFFSET_Y:3,SHADOW_BLUR:2,SHADOW_OPACITY:1,NODETYPE_ELEMENT:1,NODETYPE_ATTRIBUTE:2,NODETYPE_TEXT:3,NODETYPE_CDATA:4,NODETYPE_ENTITY_REFERENCE:5,NODETYPE_ENTITY:6,NODETYPE_PROCESSING_INSTRUCTION:7,NODETYPE_COMMENT:8,NODETYPE_DOCUMENT:9,NODETYPE_DOCUMENTTYPE:10,NODETYPE_DOCUMENT_FRAGMENT:11,NODETYPE_NOTATION:12,TOOLTIP_VERTICAL_OFFSET:16,DEFAULT_VALID_COLOR:"#00FF00",DEFAULT_INVALID_COLOR:"#FF0000",OUTLINE_HIGHLIGHT_COLOR:"#00FF00",OUTLINE_HIGHLIGHT_STROKEWIDTH:5,+HIGHLIGHT_STROKEWIDTH:3,HIGHLIGHT_SIZE:2,HIGHLIGHT_OPACITY:100,CURSOR_MOVABLE_VERTEX:"move",CURSOR_MOVABLE_EDGE:"move",CURSOR_LABEL_HANDLE:"default",CURSOR_TERMINAL_HANDLE:"pointer",CURSOR_BEND_HANDLE:"crosshair",CURSOR_VIRTUAL_BEND_HANDLE:"crosshair",CURSOR_CONNECT:"pointer",HIGHLIGHT_COLOR:"#00FF00",CONNECT_TARGET_COLOR:"#0000FF",INVALID_CONNECT_TARGET_COLOR:"#FF0000",DROP_TARGET_COLOR:"#0000FF",VALID_COLOR:"#00FF00",INVALID_COLOR:"#FF0000",EDGE_SELECTION_COLOR:"#00FF00",VERTEX_SELECTION_COLOR:"#00FF00",+VERTEX_SELECTION_STROKEWIDTH:1,EDGE_SELECTION_STROKEWIDTH:1,VERTEX_SELECTION_DASHED:!0,EDGE_SELECTION_DASHED:!0,GUIDE_COLOR:"#FF0000",GUIDE_STROKEWIDTH:1,OUTLINE_COLOR:"#0099FF",OUTLINE_STROKEWIDTH:mxClient.IS_IE?2:3,HANDLE_SIZE:6,LABEL_HANDLE_SIZE:4,HANDLE_FILLCOLOR:"#00FF00",HANDLE_STROKECOLOR:"black",LABEL_HANDLE_FILLCOLOR:"yellow",CONNECT_HANDLE_FILLCOLOR:"#0000FF",LOCKED_HANDLE_FILLCOLOR:"#FF0000",OUTLINE_HANDLE_FILLCOLOR:"#00FFFF",OUTLINE_HANDLE_STROKECOLOR:"#0033FF",DEFAULT_FONTFAMILY:"Arial,Helvetica",+DEFAULT_FONTSIZE:11,DEFAULT_TEXT_DIRECTION:"",LINE_HEIGHT:1.2,WORD_WRAP:"normal",ABSOLUTE_LINE_HEIGHT:!1,DEFAULT_FONTSTYLE:0,DEFAULT_STARTSIZE:40,DEFAULT_MARKERSIZE:6,DEFAULT_IMAGESIZE:24,ENTITY_SEGMENT:30,RECTANGLE_ROUNDING_FACTOR:.15,LINE_ARCSIZE:20,ARROW_SPACING:0,ARROW_WIDTH:30,ARROW_SIZE:30,PAGE_FORMAT_A4_PORTRAIT:new mxRectangle(0,0,827,1169),PAGE_FORMAT_A4_LANDSCAPE:new mxRectangle(0,0,1169,827),PAGE_FORMAT_LETTER_PORTRAIT:new mxRectangle(0,0,850,1100),PAGE_FORMAT_LETTER_LANDSCAPE:new mxRectangle(0,+0,1100,850),NONE:"none",STYLE_PERIMETER:"perimeter",STYLE_SOURCE_PORT:"sourcePort",STYLE_TARGET_PORT:"targetPort",STYLE_PORT_CONSTRAINT:"portConstraint",STYLE_PORT_CONSTRAINT_ROTATION:"portConstraintRotation",STYLE_SOURCE_PORT_CONSTRAINT:"sourcePortConstraint",STYLE_TARGET_PORT_CONSTRAINT:"targetPortConstraint",STYLE_OPACITY:"opacity",STYLE_FILL_OPACITY:"fillOpacity",STYLE_FILL_STYLE:"fillStyle",STYLE_STROKE_OPACITY:"strokeOpacity",STYLE_TEXT_OPACITY:"textOpacity",STYLE_TEXT_DIRECTION:"textDirection",+STYLE_OVERFLOW:"overflow",STYLE_BLOCK_SPACING:"blockSpacing",STYLE_ORTHOGONAL:"orthogonal",STYLE_EXIT_X:"exitX",STYLE_EXIT_Y:"exitY",STYLE_EXIT_DX:"exitDx",STYLE_EXIT_DY:"exitDy",STYLE_EXIT_PERIMETER:"exitPerimeter",STYLE_ENTRY_X:"entryX",STYLE_ENTRY_Y:"entryY",STYLE_ENTRY_DX:"entryDx",STYLE_ENTRY_DY:"entryDy",STYLE_ENTRY_PERIMETER:"entryPerimeter",STYLE_WHITE_SPACE:"whiteSpace",STYLE_ROTATION:"rotation",STYLE_FILLCOLOR:"fillColor",STYLE_POINTER_EVENTS:"pointerEvents",STYLE_SWIMLANE_FILLCOLOR:"swimlaneFillColor",+STYLE_MARGIN:"margin",STYLE_GRADIENTCOLOR:"gradientColor",STYLE_GRADIENT_DIRECTION:"gradientDirection",STYLE_STROKECOLOR:"strokeColor",STYLE_SEPARATORCOLOR:"separatorColor",STYLE_STROKEWIDTH:"strokeWidth",STYLE_ALIGN:"align",STYLE_VERTICAL_ALIGN:"verticalAlign",STYLE_LABEL_WIDTH:"labelWidth",STYLE_LABEL_POSITION:"labelPosition",STYLE_VERTICAL_LABEL_POSITION:"verticalLabelPosition",STYLE_IMAGE_ASPECT:"imageAspect",STYLE_IMAGE_ALIGN:"imageAlign",STYLE_IMAGE_VERTICAL_ALIGN:"imageVerticalAlign",STYLE_GLASS:"glass",+STYLE_IMAGE:"image",STYLE_IMAGE_WIDTH:"imageWidth",STYLE_IMAGE_HEIGHT:"imageHeight",STYLE_IMAGE_BACKGROUND:"imageBackground",STYLE_IMAGE_BORDER:"imageBorder",STYLE_FLIPH:"flipH",STYLE_FLIPV:"flipV",STYLE_NOLABEL:"noLabel",STYLE_NOEDGESTYLE:"noEdgeStyle",STYLE_LABEL_BACKGROUNDCOLOR:"labelBackgroundColor",STYLE_LABEL_BORDERCOLOR:"labelBorderColor",STYLE_LABEL_PADDING:"labelPadding",STYLE_INDICATOR_SHAPE:"indicatorShape",STYLE_INDICATOR_IMAGE:"indicatorImage",STYLE_INDICATOR_COLOR:"indicatorColor",STYLE_INDICATOR_STROKECOLOR:"indicatorStrokeColor",+STYLE_INDICATOR_GRADIENTCOLOR:"indicatorGradientColor",STYLE_INDICATOR_SPACING:"indicatorSpacing",STYLE_INDICATOR_WIDTH:"indicatorWidth",STYLE_INDICATOR_HEIGHT:"indicatorHeight",STYLE_INDICATOR_DIRECTION:"indicatorDirection",STYLE_SHADOW:"shadow",STYLE_TEXT_SHADOW:"textShadow",STYLE_SHADOW_OFFSET_X:"shadowOffsetX",STYLE_SHADOW_OFFSET_Y:"shadowOffsetY",STYLE_SHADOW_BLUR:"shadowBlur",STYLE_SHADOWCOLOR:"shadowColor",STYLE_SHADOW_OPACITY:"shadowOpacity",STYLE_SEGMENT:"segment",STYLE_ENDARROW:"endArrow",+STYLE_STARTARROW:"startArrow",STYLE_ENDSIZE:"endSize",STYLE_STARTSIZE:"startSize",STYLE_SWIMLANE_LINE:"swimlaneLine",STYLE_SWIMLANE_HEAD:"swimlaneHead",STYLE_SWIMLANE_BODY:"swimlaneBody",STYLE_ENDFILL:"endFill",STYLE_ENDFILLCOLOR:"endFillColor",STYLE_STARTFILL:"startFill",STYLE_STARTFILLCOLOR:"startFillColor",STYLE_DASHED:"dashed",STYLE_DASH_PATTERN:"dashPattern",STYLE_FIX_DASH:"fixDash",STYLE_ROUNDED:"rounded",STYLE_CURVED:"curved",STYLE_ARCSIZE:"arcSize",STYLE_ABSOLUTE_ARCSIZE:"absoluteArcSize",+STYLE_SOURCE_PERIMETER_SPACING:"sourcePerimeterSpacing",STYLE_TARGET_PERIMETER_SPACING:"targetPerimeterSpacing",STYLE_PERIMETER_SPACING:"perimeterSpacing",STYLE_SPACING:"spacing",STYLE_SPACING_TOP:"spacingTop",STYLE_SPACING_LEFT:"spacingLeft",STYLE_SPACING_BOTTOM:"spacingBottom",STYLE_SPACING_RIGHT:"spacingRight",STYLE_HORIZONTAL:"horizontal",STYLE_DIRECTION:"direction",STYLE_ANCHOR_POINT_DIRECTION:"anchorPointDirection",STYLE_ELBOW:"elbow",STYLE_FONTCOLOR:"fontColor",STYLE_FONTFAMILY:"fontFamily",+STYLE_FONTSIZE:"fontSize",STYLE_FONTSTYLE:"fontStyle",STYLE_ASPECT:"aspect",STYLE_AUTOSIZE:"autosize",STYLE_AUTOSIZE_GRID:"autosizeGrid",STYLE_FIXED_WIDTH:"fixedWidth",STYLE_FOLDABLE:"foldable",STYLE_EDITABLE:"editable",STYLE_BACKGROUND_OUTLINE:"backgroundOutline",STYLE_BENDABLE:"bendable",STYLE_MOVABLE:"movable",STYLE_RESIZABLE:"resizable",STYLE_RESIZE_WIDTH:"resizeWidth",STYLE_RESIZE_HEIGHT:"resizeHeight",STYLE_ROTATABLE:"rotatable",STYLE_CLONEABLE:"cloneable",STYLE_DELETABLE:"deletable",STYLE_SHAPE:"shape",+STYLE_EDGE:"edgeStyle",STYLE_JETTY_SIZE:"jettySize",STYLE_SOURCE_JETTY_SIZE:"sourceJettySize",STYLE_TARGET_JETTY_SIZE:"targetJettySize",STYLE_LOOP:"loopStyle",STYLE_ORTHOGONAL_LOOP:"orthogonalLoop",STYLE_ROUTING_CENTER_X:"routingCenterX",STYLE_ROUTING_CENTER_Y:"routingCenterY",STYLE_CLIP_PATH:"clipPath",FONT_BOLD:1,FONT_ITALIC:2,FONT_UNDERLINE:4,FONT_STRIKETHROUGH:8,SHAPE_RECTANGLE:"rectangle",SHAPE_ELLIPSE:"ellipse",SHAPE_DOUBLE_ELLIPSE:"doubleEllipse",SHAPE_RHOMBUS:"rhombus",SHAPE_LINE:"line",SHAPE_IMAGE:"image",+SHAPE_ARROW:"arrow",SHAPE_ARROW_CONNECTOR:"arrowConnector",SHAPE_LABEL:"label",SHAPE_CYLINDER:"cylinder",SHAPE_SWIMLANE:"swimlane",SHAPE_CONNECTOR:"connector",SHAPE_ACTOR:"actor",SHAPE_CLOUD:"cloud",SHAPE_TRIANGLE:"triangle",SHAPE_HEXAGON:"hexagon",ARROW_CLASSIC:"classic",ARROW_CLASSIC_THIN:"classicThin",ARROW_BLOCK:"block",ARROW_BLOCK_THIN:"blockThin",ARROW_OPEN:"open",ARROW_OPEN_THIN:"openThin",ARROW_OVAL:"oval",ARROW_DIAMOND:"diamond",ARROW_DIAMOND_THIN:"diamondThin",ALIGN_LEFT:"left",ALIGN_CENTER:"center",+ALIGN_RIGHT:"right",ALIGN_TOP:"top",ALIGN_MIDDLE:"middle",ALIGN_BOTTOM:"bottom",DIRECTION_NORTH:"north",DIRECTION_SOUTH:"south",DIRECTION_EAST:"east",DIRECTION_WEST:"west",DIRECTION_RADIAL:"radial",TEXT_DIRECTION_DEFAULT:"",TEXT_DIRECTION_AUTO:"auto",TEXT_DIRECTION_LTR:"ltr",TEXT_DIRECTION_RTL:"rtl",TEXT_DIRECTION_VERTICAL_LR:"vertical-lr",TEXT_DIRECTION_VERTICAL_RL:"vertical-rl",DIRECTION_MASK_NONE:0,DIRECTION_MASK_WEST:1,DIRECTION_MASK_NORTH:2,DIRECTION_MASK_SOUTH:4,DIRECTION_MASK_EAST:8,DIRECTION_MASK_ALL:15,+ELBOW_VERTICAL:"vertical",ELBOW_HORIZONTAL:"horizontal",EDGESTYLE_ELBOW:"elbowEdgeStyle",EDGESTYLE_ENTITY_RELATION:"entityRelationEdgeStyle",EDGESTYLE_LOOP:"loopEdgeStyle",EDGESTYLE_SIDETOSIDE:"sideToSideEdgeStyle",EDGESTYLE_TOPTOBOTTOM:"topToBottomEdgeStyle",EDGESTYLE_ORTHOGONAL:"orthogonalEdgeStyle",EDGESTYLE_SEGMENT:"segmentEdgeStyle",PERIMETER_ELLIPSE:"ellipsePerimeter",PERIMETER_RECTANGLE:"rectanglePerimeter",PERIMETER_RHOMBUS:"rhombusPerimeter",PERIMETER_HEXAGON:"hexagonPerimeter",PERIMETER_TRIANGLE:"trianglePerimeter"};function mxEventObject(a){this.name=a;this.properties=[];for(var b=1;b<arguments.length;b+=2)null!=arguments[b+1]&&(this.properties[arguments[b]]=arguments[b+1])}mxEventObject.prototype.name=null;mxEventObject.prototype.properties=null;mxEventObject.prototype.consumed=!1;mxEventObject.prototype.getName=function(){return this.name};mxEventObject.prototype.getProperties=function(){return this.properties};mxEventObject.prototype.getProperty=function(a){return this.properties[a]};mxEventObject.prototype.isConsumed=function(){return this.consumed};mxEventObject.prototype.consume=function(){this.consumed=!0};function mxMouseEvent(a,b){this.evt=a;this.sourceState=this.state=b}mxMouseEvent.prototype.consumed=!1;mxMouseEvent.prototype.evt=null;mxMouseEvent.prototype.graphX=null;mxMouseEvent.prototype.graphY=null;mxMouseEvent.prototype.state=null;mxMouseEvent.prototype.sourceState=null;mxMouseEvent.prototype.getEvent=function(){return this.evt};mxMouseEvent.prototype.getSource=function(){return mxEvent.getSource(this.evt)};mxMouseEvent.prototype.isSource=function(a){return null!=a?mxUtils.isAncestorNode(a.node,this.getSource()):!1};mxMouseEvent.prototype.getX=function(){return mxEvent.getClientX(this.getEvent())};mxMouseEvent.prototype.getY=function(){return mxEvent.getClientY(this.getEvent())};mxMouseEvent.prototype.getGraphX=function(){return this.graphX};mxMouseEvent.prototype.getGraphY=function(){return this.graphY};@@ -370,8 +370,8 @@ mxSvgCanvas2D.prototype.addForeignObject=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t)d,e,f,g,k,l,m,n,p),null!=a&&(v.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),b=this.createElement("switch"),b.appendChild(v),b.appendChild(a),u.appendChild(b)));t.appendChild(u)};mxSvgCanvas2D.prototype.updateTextNodes=function(a,b,c,d,e,f,g,k,l,m,n,p){var q=this.state.scale,r="",t="";null!=n&&"vertical-"==n.substring(0,9)?(r="-rl"==n.substring(n.length-3),t=e==mxConstants.ALIGN_LEFT?r?"flex-end":"flex-start":e==mxConstants.ALIGN_RIGHT?r?"flex-start":"flex-end":"center",r=f==mxConstants.ALIGN_TOP?"flex-start":f==mxConstants.ALIGN_BOTTOM?"flex-end":"center"):(t=f==mxConstants.ALIGN_TOP?"flex-start":f==mxConstants.ALIGN_BOTTOM?"flex-end":"center",r=e==mxConstants.ALIGN_LEFT?"flex-start":e==mxConstants.ALIGN_RIGHT?"flex-end":"center");var u=null!=this.state.fontBackgroundColor?this.getLightDarkColor(this.state.fontBackgroundColor):null,v=null!=this.state.fontBorderColor?this.getLightDarkColor(this.state.fontBorderColor):null;mxSvgCanvas2D.createCss(c+this.foreignObjectPadding,d,e,f,g,k,l,n,null!=u?u.cssText:null,null!=v?v.cssText:null,"display: flex; align-items: unsafe "+t+"; justify-content: unsafe "+r+"; "+(null!=n&&"vertical-"==n.substring(0,9)?"writing-mode: "+n+-";":""),this.getTextCss(),q,mxUtils.bind(this,function(y,A,z,C,B){a+=this.state.dx;b+=this.state.dy;var x=p.firstChild;"title"==x.nodeName&&(x=x.nextSibling);C+="color: "+this.getLightDarkColor(this.state.fontColor).light+"; ";C+=null!=u?"background-color: "+u.light+"; ":"";C+=null!=v?"border-color: "+v.light+"; ":"";var D=x.firstChild,E=D.firstChild,I=(this.rotateHtml?this.state.rotation:0)+(null!=m?m:0),F=(0!=this.foOffset?"translate("+this.foOffset+" "+this.foOffset+")":"")+(1!=q?"scale("+q+")":-"");this.setCssText(E.firstChild,B);this.setCssText(E,C);x.setAttribute("width",Math.ceil(1/Math.min(1,q)*100)+"%");x.setAttribute("height",Math.ceil(1/Math.min(1,q)*100)+"%");A=Math.round(b+A);0>A?(x.setAttribute("y",A),z+="padding-top: 0; "):(x.removeAttribute("y"),z+="padding-top: "+A+"px; ");this.setCssText(D,z+"margin-left: "+Math.round(a+y)+"px;");F+=0!=I?"rotate("+I+" "+a+" "+b+")":"";""!=F?p.setAttribute("transform",F):p.removeAttribute("transform");1!=this.state.alpha?p.setAttribute("opacity",+";":""),this.getTextCss(),q,mxUtils.bind(this,function(y,A,z,x,B){a+=this.state.dx;b+=this.state.dy;var C=p.firstChild;"title"==C.nodeName&&(C=C.nextSibling);x+="color: "+this.getLightDarkColor(this.state.fontColor).light+"; ";x+=null!=u?"background-color: "+u.light+"; ":"";x+=null!=v?"border-color: "+v.light+"; ":"";var E=C.firstChild,D=E.firstChild,I=(this.rotateHtml?this.state.rotation:0)+(null!=m?m:0),F=(0!=this.foOffset?"translate("+this.foOffset+" "+this.foOffset+")":"")+(1!=q?"scale("+q+")":+"");this.setCssText(D.firstChild,B);this.setCssText(D,x);C.setAttribute("width",Math.ceil(1/Math.min(1,q)*100)+"%");C.setAttribute("height",Math.ceil(1/Math.min(1,q)*100)+"%");A=Math.round(b+A);0>A?(C.setAttribute("y",A),z+="padding-top: 0; "):(C.removeAttribute("y"),z+="padding-top: "+A+"px; ");this.setCssText(E,z+"margin-left: "+Math.round(a+y)+"px;");F+=0!=I?"rotate("+I+" "+a+" "+b+")":"";""!=F?p.setAttribute("transform",F):p.removeAttribute("transform");1!=this.state.alpha?p.setAttribute("opacity",this.state.alpha):p.removeAttribute("opacity")}))};mxSvgCanvas2D.createCss=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r){k=null!=k&&"vertical-"==k.substring(0,9);q="box-sizing: border-box; font-size: 0; ";q=k?q+("text-align: "+(d==mxConstants.ALIGN_TOP?"left":d==mxConstants.ALIGN_BOTTOM?"right":"center")+"; "):q+("text-align: "+(c==mxConstants.ALIGN_LEFT?"left":c==mxConstants.ALIGN_RIGHT?"right":"center")+"; ");var t=mxUtils.getAlignmentAsPoint(c,d);c="overflow: hidden; ";var u="width: 1px; ",v="height: 1px; ",y=t.x*a;t=t.y*b;g?(u="width: "+Math.round(a)+"px; ",q+="max-height: "+Math.round(b)+"px; ",t=0):"fill"==f?(u="width: "+Math.round(a)+"px; ",v="height: "+Math.round(b)+"px; ",p+="width: 100%; height: 100%; ",q+="width: "+Math.round(a-2)+"px; "+v):"width"==f?(u="width: "+Math.round(a-2)+"px; ",p+="width: 100%; ",q+=u,t=0,0<b&&(q+="max-height: "+Math.round(b)+"px; ")):"block"==f?(u="width: "+Math.round(a-2)+"px; ",p+="width: 100%; ",c="",t=0,q+=u,"middle"==d&&(q+="max-height: "+Math.round(b)+"px; ")):(c="",k?y=0:t=0);d="";null!=l&&(d+="background-color: "+@@ -407,9 +407,9 @@ m.scale,e*m.scale,(f+1)*m.scale);null!=n&&(b=this.createElement("rect"),c=null!=2)),b.setAttribute("height",Math.ceil(n.height)),null!=c&&(b.style.fill=c.cssText),d&&(b.style.stroke=d.cssText),m=null!=m.fontBorderColor?Math.max(1,this.format(m.scale)):0,b.setAttribute("stroke-width",m),this.root.ownerDocument==document&&1==mxUtils.mod(m,2)&&b.setAttribute("transform","translate(0.5, 0.5)"),a.insertBefore(b,a.firstChild))}};mxSvgCanvas2D.prototype.stroke=function(){this.addNode(!1,!0)};mxSvgCanvas2D.prototype.fill=function(){this.addNode(!0,!1)};mxSvgCanvas2D.prototype.fillAndStroke=function(){this.addNode(!0,!0)};function mxGuide(a,b){this.graph=a;this.setStates(b)}mxGuide.prototype.graph=null;mxGuide.prototype.states=null;mxGuide.prototype.horizontal=!0;mxGuide.prototype.vertical=!0;mxGuide.prototype.guideX=null;mxGuide.prototype.guideY=null;mxGuide.prototype.rounded=!1;mxGuide.prototype.tolerance=2;mxGuide.prototype.setStates=function(a){this.states=a};mxGuide.prototype.isEnabledForEvent=function(a){return!0};mxGuide.prototype.getGuideTolerance=function(a){return a&&this.graph.gridEnabled?this.graph.gridSize/2:this.tolerance};mxGuide.prototype.createGuideShape=function(a){a=new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH);a.isDashed=!0;return a};mxGuide.prototype.isStateIgnored=function(a){return!1};-mxGuide.prototype.move=function(a,b,c,d){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){d=function(B,x,D){var E=!1;D&&Math.abs(B-C)<t?(b.y=B-a.getCenterY(),t=Math.abs(B-C),E=!0):D||(Math.abs(B-A)<t?(b.y=B-a.y,t=Math.abs(B-A),E=!0):Math.abs(B-z)<t&&(b.y=B-a.y-a.height,t=Math.abs(B-z),E=!0));E&&(p=x,q=B,null==this.guideY&&(this.guideY=this.createGuideShape(!1),this.guideY.dialect=mxConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverlayPane())));-n=n||E};var e=function(B,x,D){var E=!1;D&&Math.abs(B-y)<r?(b.x=B-a.getCenterX(),r=Math.abs(B-y),E=!0):D||(Math.abs(B-u)<r?(b.x=B-a.x,r=Math.abs(B-u),E=!0):Math.abs(B-v)<r&&(b.x=B-a.x-a.width,r=Math.abs(B-v),E=!0));E&&(l=x,m=B,null==this.guideX&&(this.guideX=this.createGuideShape(!0),this.guideX.dialect=mxConstants.DIALECT_SVG,this.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||E},f=this.graph.getView().scale;f*=this.getGuideTolerance(c);var g=a.clone();g.x+=-b.x;g.y+=b.y;var k=!1,l=null,m=null,n=!1,p=null,q=null,r=f,t=f,u=g.x,v=g.x+g.width,y=g.getCenterX(),A=g.y,z=g.y+g.height,C=g.getCenterY();for(f=0;f<this.states.length;f++)g=this.states[f],null==g||this.isStateIgnored(g)||(this.horizontal&&(e.call(this,g.getCenterX(),g,!0),e.call(this,g.x,g,!1),e.call(this,g.x+g.width,g,!1),null==g.cell&&e.call(this,g.getCenterX(),g,!1)),this.vertical&&(d.call(this,g.getCenterY(),g,!0),d.call(this,g.y,g,!1),d.call(this,g.y+g.height,g,!1),null==g.cell&&d.call(this,+mxGuide.prototype.move=function(a,b,c,d){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){d=function(B,C,E){var D=!1;E&&Math.abs(B-x)<t?(b.y=B-a.getCenterY(),t=Math.abs(B-x),D=!0):E||(Math.abs(B-A)<t?(b.y=B-a.y,t=Math.abs(B-A),D=!0):Math.abs(B-z)<t&&(b.y=B-a.y-a.height,t=Math.abs(B-z),D=!0));D&&(p=C,q=B,null==this.guideY&&(this.guideY=this.createGuideShape(!1),this.guideY.dialect=mxConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverlayPane())));+n=n||D};var e=function(B,C,E){var D=!1;E&&Math.abs(B-y)<r?(b.x=B-a.getCenterX(),r=Math.abs(B-y),D=!0):E||(Math.abs(B-u)<r?(b.x=B-a.x,r=Math.abs(B-u),D=!0):Math.abs(B-v)<r&&(b.x=B-a.x-a.width,r=Math.abs(B-v),D=!0));D&&(l=C,m=B,null==this.guideX&&(this.guideX=this.createGuideShape(!0),this.guideX.dialect=mxConstants.DIALECT_SVG,this.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||D},f=this.graph.getView().scale;f*=this.getGuideTolerance(c);var g=a.clone();g.x+=+b.x;g.y+=b.y;var k=!1,l=null,m=null,n=!1,p=null,q=null,r=f,t=f,u=g.x,v=g.x+g.width,y=g.getCenterX(),A=g.y,z=g.y+g.height,x=g.getCenterY();for(f=0;f<this.states.length;f++)g=this.states[f],null==g||this.isStateIgnored(g)||(this.horizontal&&(e.call(this,g.getCenterX(),g,!0),e.call(this,g.x,g,!1),e.call(this,g.x+g.width,g,!1),null==g.cell&&e.call(this,g.getCenterX(),g,!1)),this.vertical&&(d.call(this,g.getCenterY(),g,!0),d.call(this,g.y,g,!1),d.call(this,g.y+g.height,g,!1),null==g.cell&&d.call(this,g.getCenterY(),g,!1)));this.graph.snapDelta(b,a,!c,k,n);b=this.getDelta(a,l,b.x,p,b.y);c=this.graph.container;k||null==this.guideX?null!=this.guideX&&(e=d=null,null!=l&&null!=a&&(d=Math.min(a.y+b.y-this.graph.panDy,l.y),e=Math.max(a.y+a.height+b.y-this.graph.panDy,l.y+l.height)),this.guideX.points=null!=d&&null!=e?[new mxPoint(m,d),new mxPoint(m,e)]:[new mxPoint(m,-this.graph.panDy),new mxPoint(m,c.scrollHeight-3-this.graph.panDy)],this.guideX.stroke=this.getGuideColor(l,!0),this.guideX.node.style.visibility="visible",this.guideX.redraw()):this.guideX.node.style.visibility="hidden";n||null==this.guideY?null!=this.guideY&&(e=d=null,null!=p&&null!=a&&(d=Math.min(a.x+b.x-this.graph.panDx,p.x),e=Math.max(a.x+a.width+b.x-this.graph.panDx,p.x+p.width)),this.guideY.points=null!=d&&null!=e?[new mxPoint(d,q),new mxPoint(e,q)]:[new mxPoint(-this.graph.panDx,q),new mxPoint(c.scrollWidth-3-this.graph.panDx,q)],this.guideY.stroke=this.getGuideColor(p,!1),this.guideY.node.style.visibility="visible",this.guideY.redraw()):this.guideY.node.style.visibility="hidden"}return b};mxGuide.prototype.getDelta=function(a,b,c,d,e){var f=this.graph.view.scale;if(this.rounded||null!=b&&null==b.cell)c=Math.round((a.x+c)/f)*f-a.x;if(this.rounded||null!=d&&null==d.cell)e=Math.round((a.y+e)/f)*f-a.y;return new mxPoint(c,e)};mxGuide.prototype.getGuideColor=function(a,b){return mxConstants.GUIDE_COLOR};mxGuide.prototype.hide=function(){this.setVisible(!1)};@@ -504,14 +504,14 @@ function mxArrowConnector(a,b,c,d,e,f,g){mxShape.call(this);this.points=a;this.fmxArrowConnector.prototype.resetStyles=function(){mxShape.prototype.resetStyles.apply(this,arguments);this.arrowSpacing=mxConstants.ARROW_SPACING};mxArrowConnector.prototype.apply=function(a){mxShape.prototype.apply.apply(this,arguments);null!=this.style&&(this.startSize=3*mxUtils.getNumber(this.style,mxConstants.STYLE_STARTSIZE,mxConstants.ARROW_SIZE/5),this.endSize=3*mxUtils.getNumber(this.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5))};mxArrowConnector.prototype.augmentBoundingBox=function(a){mxShape.prototype.augmentBoundingBox.apply(this,arguments);var b=this.getEdgeWidth();this.isMarkerStart()&&(b=Math.max(b,this.getStartArrowWidth()));this.isMarkerEnd()&&(b=Math.max(b,this.getEndArrowWidth()));a.grow((b/2+this.strokewidth)*this.scale)};mxArrowConnector.prototype.paintEdgeShape=function(a,b){var c=this.strokewidth;this.outline&&(c=Math.max(1,mxUtils.getNumber(this.style,mxConstants.STYLE_STROKEWIDTH,this.strokewidth)));var d=this.getStartArrowWidth()+c,e=this.getEndArrowWidth()+c,f=this.outline?this.getEdgeWidth()+c:this.getEdgeWidth(),g=this.isOpenEnded(),k=this.isMarkerStart(),l=this.isMarkerEnd(),m=g?0:this.arrowSpacing+c/2,n=this.startSize+c;c=this.endSize+c;var p=this.isArrowRounded(),q=b[b.length-1],r=b[1].x-b[0].x,t=b[1].y--b[0].y,u=Math.sqrt(r*r+t*t);if(0!=u){var v=r/u,y=v,A=t/u,z=A;u=f*A;var C=-f*v,B=[];p?a.setLineJoin("round"):2<b.length&&a.setMiterLimit(1.42);a.begin();r=v;t=A;if(k&&!g)this.paintMarker(a,b[0].x,b[0].y,v,A,n,d,f,m,!0);else{var x=b[0].x+u/2+m*v;var D=b[0].y+C/2+m*A;var E=b[0].x-u/2+m*v,I=b[0].y-C/2+m*A;g?(a.moveTo(x,D),B.push(function(){a.lineTo(E,I)})):(a.moveTo(E,I),a.lineTo(x,D))}var F=D=x=0;for(u=0;u<b.length-2;u++)if(C=mxUtils.relativeCcw(b[u].x,b[u].y,b[u+1].x,b[u+1].y,b[u+2].x,b[u+2].y),x=b[u+-2].x-b[u+1].x,D=b[u+2].y-b[u+1].y,F=Math.sqrt(x*x+D*D),0!=F){y=x/F;z=D/F;F=Math.max(Math.sqrt((v*y+A*z+1)/2),.04);x=v+y;D=A+z;var H=Math.sqrt(x*x+D*D);if(0!=H){x/=H;D/=H;H=Math.max(F,Math.min(this.strokewidth/200+.04,.35));F=0!=C&&p?Math.max(.1,H):Math.max(F,.06);var K=b[u+1].x+D*f/2/F,G=b[u+1].y-x*f/2/F;D=b[u+1].x-D*f/2/F;x=b[u+1].y+x*f/2/F;0!=C&&p?-1==C?(C=D+z*f,F=x-y*f,a.lineTo(D+A*f,x-v*f),a.quadTo(K,G,C,F),function(L,M){B.push(function(){a.lineTo(L,M)})}(D,x)):(a.lineTo(K,G),function(L,M){var O=-K-A*f,P=G+v*f,Q=K-z*f,R=G+y*f;B.push(function(){a.quadTo(L,M,O,P)});B.push(function(){a.lineTo(Q,R)})}(D,x)):(a.lineTo(K,G),function(L,M){B.push(function(){a.lineTo(L,M)})}(D,x));v=y;A=z}}u=f*z;C=-f*y;if(l&&!g)this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!1);else{a.lineTo(q.x-m*y+u/2,q.y-m*z+C/2);var J=q.x-m*y-u/2,N=q.y-m*z-C/2;g?(a.moveTo(J,N),B.splice(0,0,function(){a.moveTo(J,N)})):a.lineTo(J,N)}for(u=B.length-1;0<=u;u--)B[u]();g?(a.end(),a.stroke()):(a.close(),a.fillAndStroke());a.setShadow(!1);a.setMiterLimit(4);+b[0].y,u=Math.sqrt(r*r+t*t);if(0!=u){var v=r/u,y=v,A=t/u,z=A;u=f*A;var x=-f*v,B=[];p?a.setLineJoin("round"):2<b.length&&a.setMiterLimit(1.42);a.begin();r=v;t=A;if(k&&!g)this.paintMarker(a,b[0].x,b[0].y,v,A,n,d,f,m,!0);else{var C=b[0].x+u/2+m*v;var E=b[0].y+x/2+m*A;var D=b[0].x-u/2+m*v,I=b[0].y-x/2+m*A;g?(a.moveTo(C,E),B.push(function(){a.lineTo(D,I)})):(a.moveTo(D,I),a.lineTo(C,E))}var F=E=C=0;for(u=0;u<b.length-2;u++)if(x=mxUtils.relativeCcw(b[u].x,b[u].y,b[u+1].x,b[u+1].y,b[u+2].x,b[u+2].y),C=b[u++2].x-b[u+1].x,E=b[u+2].y-b[u+1].y,F=Math.sqrt(C*C+E*E),0!=F){y=C/F;z=E/F;F=Math.max(Math.sqrt((v*y+A*z+1)/2),.04);C=v+y;E=A+z;var H=Math.sqrt(C*C+E*E);if(0!=H){C/=H;E/=H;H=Math.max(F,Math.min(this.strokewidth/200+.04,.35));F=0!=x&&p?Math.max(.1,H):Math.max(F,.06);var K=b[u+1].x+E*f/2/F,G=b[u+1].y-C*f/2/F;E=b[u+1].x-E*f/2/F;C=b[u+1].y+C*f/2/F;0!=x&&p?-1==x?(x=E+z*f,F=C-y*f,a.lineTo(E+A*f,C-v*f),a.quadTo(K,G,x,F),function(L,M){B.push(function(){a.lineTo(L,M)})}(E,C)):(a.lineTo(K,G),function(L,M){var O=+K-A*f,P=G+v*f,Q=K-z*f,R=G+y*f;B.push(function(){a.quadTo(L,M,O,P)});B.push(function(){a.lineTo(Q,R)})}(E,C)):(a.lineTo(K,G),function(L,M){B.push(function(){a.lineTo(L,M)})}(E,C));v=y;A=z}}u=f*z;x=-f*y;if(l&&!g)this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!1);else{a.lineTo(q.x-m*y+u/2,q.y-m*z+x/2);var J=q.x-m*y-u/2,N=q.y-m*z-x/2;g?(a.moveTo(J,N),B.splice(0,0,function(){a.moveTo(J,N)})):a.lineTo(J,N)}for(u=B.length-1;0<=u;u--)B[u]();g?(a.end(),a.stroke()):(a.close(),a.fillAndStroke());a.setShadow(!1);a.setMiterLimit(4);p&&a.setLineJoin("flat");2<b.length&&(a.setMiterLimit(4),k&&!g&&(a.begin(),this.paintMarker(a,b[0].x,b[0].y,r,t,n,d,f,m,!0),a.stroke(),a.end()),l&&!g&&(a.begin(),this.paintMarker(a,q.x,q.y,-v,-A,c,e,f,m,!0),a.stroke(),a.end()))}};mxArrowConnector.prototype.paintMarker=function(a,b,c,d,e,f,g,k,l,m){g=k/g;var n=k*e/2;k=-k*d/2;var p=(l+f)*d;f=(l+f)*e;m?a.moveTo(b-n+p,c-k+f):a.lineTo(b-n+p,c-k+f);a.lineTo(b-n/g+p,c-k/g+f);a.lineTo(b+l*d,c+l*e);a.lineTo(b+n/g+p,c+k/g+f);a.lineTo(b+n+p,c+k+f)};mxArrowConnector.prototype.isArrowRounded=function(){return this.isRounded};mxArrowConnector.prototype.getStartArrowWidth=function(){return mxConstants.ARROW_WIDTH};mxArrowConnector.prototype.getEndArrowWidth=function(){return mxConstants.ARROW_WIDTH};mxArrowConnector.prototype.getEdgeWidth=function(){return mxConstants.ARROW_WIDTH/3};mxArrowConnector.prototype.isOpenEnded=function(){return!1};mxArrowConnector.prototype.isMarkerStart=function(){return mxUtils.getValue(this.style,mxConstants.STYLE_STARTARROW,mxConstants.NONE)!=mxConstants.NONE};mxArrowConnector.prototype.isMarkerEnd=function(){return mxUtils.getValue(this.style,mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE};-function mxText(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t,u,v,y,A,z,C){mxShape.call(this);this.value=a;this.bounds=b;this.color=null!=e?e:"black";this.align=null!=c?c:mxConstants.ALIGN_CENTER;this.valign=null!=d?d:mxConstants.ALIGN_MIDDLE;this.family=null!=f?f:mxConstants.DEFAULT_FONTFAMILY;this.size=null!=g?g:mxConstants.DEFAULT_FONTSIZE;this.fontStyle=null!=k?k:mxConstants.DEFAULT_FONTSTYLE;this.spacing=parseInt(l||2);this.spacingTop=this.spacing+parseInt(m||0);this.spacingRight=this.spacing+parseInt(n||0);-this.spacingBottom=this.spacing+parseInt(p||0);this.spacingLeft=this.spacing+parseInt(q||0);this.horizontal=null!=r?r:!0;this.background=t;this.border=u;this.wrap=null!=v?v:!1;this.clipped=null!=y?y:!1;this.overflow=null!=A?A:"visible";this.labelPadding=null!=z?z:0;this.textDirection=C;this.rotation=0;this.updateMargin()}mxUtils.extend(mxText,mxShape);mxText.prototype.baseSpacingTop=0;mxText.prototype.baseSpacingBottom=0;mxText.prototype.baseSpacingLeft=0;mxText.prototype.baseSpacingRight=0;+function mxText(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t,u,v,y,A,z,x){mxShape.call(this);this.value=a;this.bounds=b;this.color=null!=e?e:"black";this.align=null!=c?c:mxConstants.ALIGN_CENTER;this.valign=null!=d?d:mxConstants.ALIGN_MIDDLE;this.family=null!=f?f:mxConstants.DEFAULT_FONTFAMILY;this.size=null!=g?g:mxConstants.DEFAULT_FONTSIZE;this.fontStyle=null!=k?k:mxConstants.DEFAULT_FONTSTYLE;this.spacing=parseInt(l||2);this.spacingTop=this.spacing+parseInt(m||0);this.spacingRight=this.spacing+parseInt(n||0);+this.spacingBottom=this.spacing+parseInt(p||0);this.spacingLeft=this.spacing+parseInt(q||0);this.horizontal=null!=r?r:!0;this.background=t;this.border=u;this.wrap=null!=v?v:!1;this.clipped=null!=y?y:!1;this.overflow=null!=A?A:"visible";this.labelPadding=null!=z?z:0;this.textDirection=x;this.rotation=0;this.updateMargin()}mxUtils.extend(mxText,mxShape);mxText.prototype.baseSpacingTop=0;mxText.prototype.baseSpacingBottom=0;mxText.prototype.baseSpacingLeft=0;mxText.prototype.baseSpacingRight=0;mxText.prototype.replaceLinefeeds=!0;mxText.prototype.verticalTextRotation=-90;mxText.prototype.ignoreClippedStringSize=!0;mxText.prototype.ignoreStringSize=!1;mxText.prototype.textWidthPadding=8!=document.documentMode||mxClient.IS_EM?3:4;mxText.prototype.lastValue=null;mxText.prototype.cacheEnabled=!0;mxText.prototype.isHtmlAllowed=function(){return 8!=document.documentMode||mxClient.IS_EM};mxText.prototype.getSvgScreenOffset=function(){return 0};mxText.prototype.checkBounds=function(){return!isNaN(this.scale)&&isFinite(this.scale)&&0<this.scale&&null!=this.bounds&&!isNaN(this.bounds.x)&&!isNaN(this.bounds.y)&&!isNaN(this.bounds.width)&&!isNaN(this.bounds.height)};mxText.prototype.configurePointerEvents=function(a){};mxText.prototype.getActualTextDirection=function(){var a=this.textDirection;a==mxConstants.TEXT_DIRECTION_AUTO&&(a=this.getAutoDirection());a!=mxConstants.TEXT_DIRECTION_LTR&&a!=mxConstants.TEXT_DIRECTION_RTL&&a!=mxConstants.TEXT_DIRECTION_VERTICAL_LR&&a!=mxConstants.TEXT_DIRECTION_VERTICAL_RL&&(a=null);return a};@@ -723,7 +723,7 @@ k}else for(c++,e=0;e<this.nestedBestRanks.length;e++)for(f=a.ranks[e],g=0;g<f.lemxMedianHybridCrossingReduction.prototype.calculateRankCrossing=function(a,b){var c=0,d=b.ranks[a],e=b.ranks[a-1],f=[];for(b=0;b<d.length;b++){var g=d[b],k=g.getGeneralPurposeVariable(a);g=g.getPreviousLayerConnectedCells(a);for(var l=[],m=0;m<g.length;m++){var n=g[m].getGeneralPurposeVariable(a-1);l.push(n)}l.sort(function(p,q){return p-q});f[k]=l}a=[];for(b=0;b<f.length;b++)a=a.concat(f[b]);for(d=1;d<e.length;)d<<=1;f=2*d-1;--d;e=[];for(b=0;b<f;++b)e[b]=0;for(b=0;b<a.length;b++)for(f=a[b]+d,++e[f];0<f;)f%2&&(c+=e[f+1]),f=f-1>>1,++e[f];return c};mxMedianHybridCrossingReduction.prototype.transpose=function(a,b){for(var c=!0,d=0;c&&10>d++;){var e=1==a%2&&1==d%2;c=!1;for(var f=0;f<b.ranks.length;f++){for(var g=b.ranks[f],k=[],l=0;l<g.length;l++){var m=g[l],n=m.getGeneralPurposeVariable(f);0>n&&(n=l);k[n]=m}var p=null,q=null,r=null,t=null,u=null;for(l=0;l<g.length-1;l++){if(0==l){var v=k[l];m=v.getNextLayerConnectedCells(f);n=v.getPreviousLayerConnectedCells(f);var y=[];var A=[];for(var z=0;z<m.length;z++)y[z]=m[z].getGeneralPurposeVariable(f+-1);for(z=0;z<n.length;z++)A[z]=n[z].getGeneralPurposeVariable(f-1)}else m=p,n=q,y=r,A=t,v=u;u=k[l+1];p=u.getNextLayerConnectedCells(f);q=u.getPreviousLayerConnectedCells(f);r=[];t=[];for(z=0;z<p.length;z++)r[z]=p[z].getGeneralPurposeVariable(f+1);for(z=0;z<q.length;z++)t[z]=q[z].getGeneralPurposeVariable(f-1);var C=0,B=0;for(z=0;z<y.length;z++)for(var x=0;x<r.length;x++)y[z]>r[x]&&C++,y[z]<r[x]&&B++;for(z=0;z<A.length;z++)for(x=0;x<t.length;x++)A[z]>t[x]&&C++,A[z]<t[x]&&B++;if(B<C||B==C&&e)p=v.getGeneralPurposeVariable(f),+1);for(z=0;z<n.length;z++)A[z]=n[z].getGeneralPurposeVariable(f-1)}else m=p,n=q,y=r,A=t,v=u;u=k[l+1];p=u.getNextLayerConnectedCells(f);q=u.getPreviousLayerConnectedCells(f);r=[];t=[];for(z=0;z<p.length;z++)r[z]=p[z].getGeneralPurposeVariable(f+1);for(z=0;z<q.length;z++)t[z]=q[z].getGeneralPurposeVariable(f-1);var x=0,B=0;for(z=0;z<y.length;z++)for(var C=0;C<r.length;C++)y[z]>r[C]&&x++,y[z]<r[C]&&B++;for(z=0;z<A.length;z++)for(C=0;C<t.length;C++)A[z]>t[C]&&x++,A[z]<t[C]&&B++;if(B<x||B==x&&e)p=v.getGeneralPurposeVariable(f),v.setGeneralPurposeVariable(f,u.getGeneralPurposeVariable(f)),u.setGeneralPurposeVariable(f,p),p=m,q=n,r=y,t=A,u=v,e||(c=!0)}}}};mxMedianHybridCrossingReduction.prototype.weightedMedian=function(a,b){if(a=0==a%2)for(var c=b.maxRank-1;0<=c;c--)this.medianRank(c,a);else for(c=1;c<b.maxRank;c++)this.medianRank(c,a)};mxMedianHybridCrossingReduction.prototype.medianRank=function(a,b){for(var c=this.nestedBestRanks[a].length,d=[],e=[],f=0;f<c;f++){var g=this.nestedBestRanks[a][f],k=new MedianCellSorter;k.cell=g;var l=b?g.getNextLayerConnectedCells(a):g.getPreviousLayerConnectedCells(a);var m=b?a+1:a-1;null!=l&&0!=l.length?(k.medianValue=this.medianValue(l,m),d.push(k)):e[g.getGeneralPurposeVariable(a)]=!0}d.sort(MedianCellSorter.prototype.compare);for(f=0;f<c;f++)null==e[f]&&(g=d.shift().cell,g.setGeneralPurposeVariable(a,f))};mxMedianHybridCrossingReduction.prototype.medianValue=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var f=a[e];c[d++]=f.getGeneralPurposeVariable(b)}c.sort(function(g,k){return g-k});if(1==d%2)return c[Math.floor(d/2)];if(2==d)return(c[0]+c[1])/2;a=d/2;b=c[a-1]-c[0];d=c[d-1]-c[a];return(c[a-1]*d+c[a]*b)/(b+d)};function MedianCellSorter(){}MedianCellSorter.prototype.medianValue=0;MedianCellSorter.prototype.cell=!1;@@ -759,7 +759,7 @@ if(r.isVertex()){var t=0==k?e.connectsAsSource:e.connectsAsTarget;for(var u=0;u<2?p+=this.prefVertEdgeOff:m>f/2&&(p-=this.prefVertEdgeOff),t=0;t<q;t++)r[4*t+2*k]=n,n+=l,r[4*t+2*k+1]=p}f=e.getNextLayerConnectedCells(b);g=b+1}}};mxCoordinateAssignment.prototype.setEdgePosition=function(a){var b=0;if(101207!=a.temp[0]){var c=a.maxRank,d=a.minRank;c==d&&(c=a.source.maxRank,d=a.target.minRank);for(var e=0,f=this.jettyPositions[a.ids[0]],g=a.isReversed?a.target.cell:a.source.cell,k=this.layout.graph,l=this.orientation==mxConstants.DIRECTION_EAST||this.orientation==mxConstants.DIRECTION_SOUTH,m=0;m<a.edges.length;m++){var n=a.edges[m],p=this.layout.getVisibleTerminal(n,!0),q=[],r=a.isReversed;p!=g&&(r=!r);if(null!=f){var t=r?2:0,u=r?l?this.rankBottomY[d]:this.rankTopY[d]:l?this.rankTopY[c]:this.rankBottomY[c],v=f[4*e+1+t];r!=l&&(v=-v);u+=v;t=f[4*e+t];var y=k.model.getTerminal(n,!0);this.layout.isPort(y)&&k.model.getParent(y)==p&&(t=k.view.getState(y),t=null!=t?t.x:p.geometry.x+a.source.width*y.geometry.x);this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(t,u)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(t,u+v))):(q.push(new mxPoint(u,-t)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u+v,t)))}t=a.x.length-1;u=v=-1;p=a.maxRank-1;r&&(t=0,v=a.x.length,u=1,p=a.minRank+1);for(;a.maxRank!=a.minRank&&t!=v;t+=u){y=a.x[t]+b;var A=(this.rankTopY[p]+this.rankBottomY[p+1])/2,z=(this.rankTopY[p-1]+this.rankBottomY[p])/2;if(r){var C=A;A=z;z=C}this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(y,A)),q.push(new mxPoint(y,z))):(q.push(new mxPoint(A,y)),q.push(new mxPoint(z,+t)),this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u+v,t)))}t=a.x.length-1;u=v=-1;p=a.maxRank-1;r&&(t=0,v=a.x.length,u=1,p=a.minRank+1);for(;a.maxRank!=a.minRank&&t!=v;t+=u){y=a.x[t]+b;var A=(this.rankTopY[p]+this.rankBottomY[p+1])/2,z=(this.rankTopY[p-1]+this.rankBottomY[p])/2;if(r){var x=A;A=z;z=x}this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(q.push(new mxPoint(y,A)),q.push(new mxPoint(y,z))):(q.push(new mxPoint(A,y)),q.push(new mxPoint(z,y)));this.limitX=Math.max(this.limitX,y);p+=u}null!=f&&(t=r?2:0,u=r?l?this.rankTopY[c]:this.rankBottomY[c]:l?this.rankBottomY[d]:this.rankTopY[d],v=f[4*e+3-t],r!=l&&(v=-v),u-=v,t=f[4*e+2-t],r=k.model.getTerminal(n,!1),p=this.layout.getVisibleTerminal(n,!1),this.layout.isPort(r)&&k.model.getParent(r)==p&&(t=k.view.getState(r),t=null!=t?t.x:p.geometry.x+a.target.width*r.geometry.x),this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?(this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(t,u-v)),q.push(new mxPoint(t,u))):(this.layout.edgeStyle==mxHierarchicalEdgeStyle.CURVE&&q.push(new mxPoint(u-v,t)),q.push(new mxPoint(u,t))));a.isReversed&&this.processReversedEdge(a,n);this.layout.setEdgePoints(n,q);this.layout.resetEdgeLabels&&null!=n.geometry&&(geometry=n.geometry.clone(),geometry.relative=!0,geometry.x=0,geometry.y=0,k.model.setGeometry(n,geometry));b=0==b?this.parallelEdgeSpacing:0<b?-b:-b+this.parallelEdgeSpacing;e++}a.temp[0]=101207}};mxCoordinateAssignment.prototype.setVertexLocation=function(a){var b=a.cell,c=a.x[0]-a.width/2,d=a.y[0]-a.height/2;this.rankTopY[a.minRank]=Math.min(this.rankTopY[a.minRank],d);this.rankBottomY[a.minRank]=Math.max(this.rankBottomY[a.minRank],d+a.height);this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_SOUTH?this.layout.setVertexLocation(b,c,d):this.layout.setVertexLocation(b,d,c);this.limitX=Math.max(this.limitX,c+a.width)};@@ -886,18 +886,18 @@ mxPrintPreview.prototype.getPageClassCss=function(a,b){var c=this.pageMargin,d=tmxUtils.htmlEntities((c/d).toFixed(2))+"in;\n}\n");return b};mxPrintPreview.prototype.open=function(a,b,c,d,e,f,g){c=null;try{var k=this.graph.cellRenderer.initializeOverlay,l=null!=f;f=mxRectangle.fromRectangle(null!=f?f:this.pageFormat);var m=f.width+1,n=f.height+1;this.printOverlays&&(this.graph.cellRenderer.initializeOverlay=function(G,J){J.init(G.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(G,J,N,L){J.dialect=G.view.graph.dialect;J.init(G.view.getDrawPane())});this.wnd=null!=b?b:this.wnd;b=!1;null==this.wnd&&(b=!0,this.wnd=window.open());var p=this.wnd.document;if(b){var q=this.getDoctype();null!=q&&0<q.length&&p.writeln(q);"CSS1Compat"===document.compatMode&&p.writeln("<!DOCTYPE html>");p.writeln("<html>");p.writeln("<head>");this.writeHead(p,a);p.writeln("</head>");p.writeln("<body>")}var r=mxRectangle.fromRectangle(null!=g?this.graph.getBoundingBox(g):this.graph.getGraphBounds()),t=this.graph.getView().getScale(),u=t/this.scale,v=this.graph.getView().getTranslate();this.autoOrigin||(this.x0-=v.x*this.scale,-this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),C=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*C;var B=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),B=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[B]&&-(this.pageFormatClass[B]=!0,this.pendingCss+=this.getPageClassCss(B,f)));var x=mxUtils.bind(this,function(G){null!=this.borderColor&&(G.style.borderColor=this.borderColor,G.style.borderStyle="solid",G.style.borderWidth="1px");G.style.background=this.backgroundColor;null!=B?G.classList.add(B):(G.style.width=f.width+"px",G.style.height=f.height+"px");p.body.appendChild(G)}),D=this.getCoverPages(m,n);if(null!=D)for(var E=0;E<D.length;E++)x(D[E],!0);var I=this.getAppendices(m,n);for(E=0;E<C;E++){var F=-E*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-E;for(a=0;a<z;a++){if(null==this.wnd)return null;var H=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=E*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var K=new mxRectangle(H,F,y,A);this.addGraphFragment(-H,-F,this.scale,g,c,K);null!=e&&0==E&&0==a&&c.setAttribute("id",e);x(c,!0)}}if(null!=I)for(E=0;E<I.length;E++)x(I[E],E<I.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(G){null!=+this.y0-=v.y*this.scale,r.width+=r.x,r.height+=r.y,r.x=0,this.border=r.y=0);var y=m-2*this.border,A=n-2*this.border;n+=this.marginTop+this.marginBottom;r.width/=u;r.height/=u;var z=Math.max(1,Math.ceil((r.width+this.x0)/y)),x=Math.max(1,Math.ceil((r.height+this.y0)/A));this.pageCount=z*x;var B=null;l&&(null==this.pendingCss&&(this.pageFormatClass={},this.pendingCss=""),B=mxUtils.htmlEntities("gePageFormat-"+String(f.width).replace(/\./g,"_")+"-"+String(f.height).replace(/\./g,"_")),null==this.pageFormatClass[B]&&+(this.pageFormatClass[B]=!0,this.pendingCss+=this.getPageClassCss(B,f)));var C=mxUtils.bind(this,function(G){null!=this.borderColor&&(G.style.borderColor=this.borderColor,G.style.borderStyle="solid",G.style.borderWidth="1px");G.style.background=this.backgroundColor;null!=B?G.classList.add(B):(G.style.width=f.width+"px",G.style.height=f.height+"px");p.body.appendChild(G)}),E=this.getCoverPages(m,n);if(null!=E)for(var D=0;D<E.length;D++)C(E[D],!0);var I=this.getAppendices(m,n);for(D=0;D<x;D++){var F=+D*A/this.scale-this.y0/this.scale+(r.y-v.y*t)/t-D;for(a=0;a<z;a++){if(null==this.wnd)return null;var H=a*y/this.scale-this.x0/this.scale+(r.x-v.x*t)/t-a;g=D*z+a+1;c=p.createElement("div");c.style.display="flex";c.style.alignItems="center";c.style.justifyContent="center";var K=new mxRectangle(H,F,y,A);this.addGraphFragment(-H,-F,this.scale,g,c,K);null!=e&&0==D&&0==a&&c.setAttribute("id",e);C(c,!0)}}if(null!=I)for(D=0;D<I.length;D++)C(I[D],D<I.length-1);b&&!d&&this.closeDocument();this.wnd.focus()}catch(G){null!=c&&null!=c.parentNode&&c.parentNode.removeChild(c),null!=window.console&&console.error(G)}finally{this.graph.cellRenderer.initializeOverlay=k}return this.wnd};mxPrintPreview.prototype.addPendingCss=function(a){if(null!=this.pendingCss){var b=a.createElement("style");b.setAttribute("type","text/css");b.appendChild(a.createTextNode(this.pendingCss));a.getElementsByTagName("head")[0].appendChild(b);this.pendingCss=null}};mxPrintPreview.prototype.closeDocument=function(){try{if(null!=this.wnd&&null!=this.wnd.document){var a=this.wnd.document;this.writePostfix(a);a.writeln("</body>");a.writeln("</html>");a.close();this.addPendingCss(a);mxEvent.release(a.body)}}catch(b){}};mxPrintPreview.prototype.writeHead=function(a,b){null!=this.title&&a.writeln("<title>"+mxUtils.htmlEntities(this.title)+"</title>");mxClient.link("stylesheet",mxClient.basePath+"/css/common.css",a);a.writeln('<style type="text/css">');a.writeln(this.defaultCss);var c=this.pageFormat;this.addPageCss&&null!=c&&(c=(c.width/this.pixelsPerInch).toFixed(2)+"in "+(c.height/this.pixelsPerInch).toFixed(2)+"in",a.writeln("@page {"),a.writeln(" margin: "+mxUtils.htmlEntities((this.pageMargin/this.pixelsPerInch).toFixed(2))+"in;"),a.writeln(" size: "+mxUtils.htmlEntities(c)+";"),a.writeln("}"));null!=b&&a.writeln(mxUtils.htmlEntities(b,!1,!1,!1));a.writeln("</style>")};mxPrintPreview.prototype.writePostfix=function(a){};mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.graph.getModel().getRoot());return a};mxPrintPreview.prototype.useCssTransforms=function(){return!mxClient.NO_FO&&!mxClient.IS_SF};mxPrintPreview.prototype.isCellVisible=function(a){return!0};mxPrintPreview.prototype.drawBackgroundImage=function(a){a.redraw()};mxPrintPreview.prototype.addGraphFragment=function(a,b,c,d,e,f){var g=this.graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroundPane(),m=g.getDrawPane(),n=g.getOverlayPane(),p=c;if(this.graph.dialect==mxConstants.DIALECT_SVG){if(g.createSvg(),this.useCssTransforms()){var q=g.getDrawPane().parentNode;q.setAttribute("transformOrigin","0 0");q.setAttribute("transform","scale("+c+","+c+")translate("+a+","+b+")");c=1;b=a=0}}else g.createHtml();q=g.isEventsEnabled();-g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var C=this.getBackgroundImage();null!=C&&(z=new mxRectangle(Math.round(a*A+C.x),Math.round(b*A+C.y),C.width-1,C.height-1),z=new mxImageShape(z,C.src),z.dialect=this.graph.dialect)}if(this.clipping){var B=-new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),x=this;this.graph.cellRenderer.redraw=function(E,I,F){if(null!=E){var H=y.get(E.cell);if(null!=H&&(H=g.getBoundingBox(H,!1),null!=H&&0<H.width&&0<H.height&&!mxUtils.intersects(B,H))||!x.isCellVisible(E.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(B,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),-this.drawBackgroundImage(z));a=null;try{var D=[this.getRoot()];a=new mxTemporaryCellStates(g,c,D,null,mxUtils.bind(this,function(E){return this.getLinkForCellState(E)}))}finally{for(c=e.firstChild;null!=c;)e=c.nextSibling,"svg"==c.nodeName.toLowerCase()?(c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.display="",c.style.maxWidth="100%",c.style.maxHeight="100%",c.style.overflow=mxClient.IS_SF?"hidden":"clip",c.style.overflowClipMargin=this.overflowClipMargin,c.setAttribute("viewBox",+g.setEventsEnabled(!1);var r=this.graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);var u=this.graph.selectionCellsHandler.updateHandler;this.graph.selectionCellsHandler.updateHandler=function(){};var v=this.graph.cellRenderer.redraw,y=g.states,A=g.scale,z=null;if(this.printBackgroundImage){var x=this.getBackgroundImage();null!=x&&(z=new mxRectangle(Math.round(a*A+x.x),Math.round(b*A+x.y),x.width-1,x.height-1),z=new mxImageShape(z,x.src),z.dialect=this.graph.dialect)}if(this.clipping){var B=+new mxRectangle((f.x+t.x+1.5)*A,(f.y+t.y+1.5)*A,(f.width-1.5)*A/p,(f.height-1.5)*A/p),C=this;this.graph.cellRenderer.redraw=function(D,I,F){if(null!=D){var H=y.get(D.cell);if(null!=H&&(H=g.getBoundingBox(H,!1),null!=H&&0<H.width&&0<H.height&&!mxUtils.intersects(B,H))||!C.isCellVisible(D.cell))return}v.apply(this,arguments)};null!=z&&(a=new mxRectangle(z.bounds.x*A+(t.x-a)*A,z.bounds.y*A+(t.y-b)*A,z.bounds.width*A,z.bounds.height*A),mxUtils.intersects(B,a)||(z=null))}null!=z&&(z.init(g.backgroundPane),+this.drawBackgroundImage(z));a=null;try{var E=[this.getRoot()];a=new mxTemporaryCellStates(g,c,E,null,mxUtils.bind(this,function(D){return this.getLinkForCellState(D)}))}finally{for(c=e.firstChild;null!=c;)e=c.nextSibling,"svg"==c.nodeName.toLowerCase()?(c.style.top="",c.style.left="",c.style.width="",c.style.height="",c.style.display="",c.style.maxWidth="100%",c.style.maxHeight="100%",c.style.overflow=mxClient.IS_SF?"hidden":"clip",c.style.overflowClipMargin=this.overflowClipMargin,c.setAttribute("viewBox","0 0 "+(mxClient.IS_SF?f.width+1+" "+(f.height+1):f.width-1+" "+(f.height-1))),this.addGrid(c,f),mxClient.IS_SF&&(f.width>f.height?c.style.height="100%":c.style.width="100%")):this.isTextLabel(c)||c.parentNode.removeChild(c),c=e;g.overlayPane.parentNode.removeChild(g.overlayPane);this.graph.setEnabled(r);this.graph.container=d;this.graph.cellRenderer.redraw=v;this.graph.selectionCellsHandler.updateHandler=u;g.canvas=k;g.backgroundPane=l;g.drawPane=m;g.overlayPane=n;g.translate=t;a.destroy();g.setEventsEnabled(q)}};mxPrintPreview.prototype.addGrid=function(a,b){0<this.gridSize&&0<this.gridSteps&&null!=this.gridColor&&(b=this.createSvgGrid(a,b),a=mxUtils.getSvgDefs(a),null!=a.nextSibling?a.parentNode.insertBefore(b,a.nextSibling):a.parentNode.appendChild(b))};mxPrintPreview.prototype.createSvgGrid=function(a,b){var c=this.gridSize;a=a.ownerDocument;var d=null!=a.createElementNS?a.createElementNS(mxConstants.NS_SVG,"g"):a.createElement("g"),e=mxUtils.mod(Math.ceil(Math.round(b.x)/c),this.gridSteps),f=mxUtils.mod(c-mxUtils.mod(Math.round(b.x),c),c),g=mxUtils.mod(Math.ceil(Math.round(b.y)/c),this.gridSteps),k=mxUtils.mod(c-mxUtils.mod(Math.round(b.y),c),c);f*=this.scale;k*=this.scale;c*=this.scale;for(var l=Math.ceil(b.height/c),m=0;m<l;m++){var n=null!=@@ -1023,30 +1023,30 @@ k)),mxUtils.contains(c,a,f)||mxUtils.contains(b,a,f)||e.push(new mxPoint(a,f)),1c.x=g.x,c.y=g.y);null!=b&&null!=c&&(k=Math.max(b.y,c.y),g=Math.min(b.y+b.height,c.y+c.height),a=f.getRoutingCenterX(b),null!=d&&d.x>=b.x&&d.x<=b.x+b.width&&(a=d.x),k=null!=d?d.y:Math.round(g+(k-g)/2),mxUtils.contains(c,a,k)||mxUtils.contains(b,a,k)||e.push(new mxPoint(a,k)),a=null!=d&&d.x>=c.x&&d.x<=c.x+c.width?d.x:f.getRoutingCenterX(c),mxUtils.contains(c,a,k)||mxUtils.contains(b,a,k)||e.push(new mxPoint(a,k)),1==e.length&&(null!=d&&1==e.length?mxUtils.contains(c,d.x,k)||mxUtils.contains(b,d.x,k)||e.push(new mxPoint(d.x,k)):(f=Math.max(b.x,c.x),e.push(new mxPoint(f+(Math.min(b.x+b.width,c.x+c.width)-f)/2,k)))))},SegmentConnector:function(a,b,c,d,e){var f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale);b=mxEdgeStyle.scaleCellState(b,a.view.scale);var g=mxEdgeStyle.scaleCellState(c,a.view.scale);c=[];var k=0<e.length?e[0]:null,l=!0,m=f[0];null==m&&null!=b?m=new mxPoint(a.view.getRoutingCenterX(b),a.view.getRoutingCenterY(b)):null!=m&&(m=m.clone());var n=f.length-1;if(null!=d&&0<d.length){for(var p=[],q=0;q<d.length;q++){var r=a.view.transformControlPoint(a,d[q],!0);null!=r&&p.push(r)}if(0==p.length)return;null!=m&&null!=p[0]&&(1>Math.abs(p[0].x-m.x)&&(p[0].x=m.x),1>Math.abs(p[0].y-m.y)&&(p[0].y=m.y));r=f[n];null!=r&&null!=p[p.length-1]&&(1>Math.abs(p[p.length-1].x-r.x)&&(p[p.length-1].x=r.x),1>Math.abs(p[p.length-1].y-r.y)&&(p[p.length-1].y=r.y));d=p[0];var t=b,u=f[0];var v=d;null!=u&&(t=null);for(q=0;2>q;q++){var y=null!=u&&u.x==v.x,A=null!=u&&u.y==v.y,z=null!=t&&v.y>=t.y&&v.y<=t.y+t.height,-C=null!=t&&v.x>=t.x&&v.x<=t.x+t.width;t=A||null==u&&z;v=y||null==u&&C;if(0!=q||!(t&&v||y&&A)){if(null!=u&&!A&&!y&&(z||C)){l=z?!1:!0;break}if(v||t){l=t;1==q&&(l=0==p.length%2?t:v);break}}t=g;u=f[n];null!=u&&(t=null);v=p[p.length-1];y&&A&&(p=p.slice(1))}l&&(null!=f[0]&&f[0].y!=d.y||null==f[0]&&null!=b&&(d.y<b.y||d.y>b.y+b.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[0]&&f[0].x!=d.x||null==f[0]&&null!=b&&(d.x<b.x||d.x>b.x+b.width))&&c.push(new mxPoint(d.x,m.y));l?m.y=d.y:m.x=d.x;for(q=0;q<p.length;q++)l=+x=null!=t&&v.x>=t.x&&v.x<=t.x+t.width;t=A||null==u&&z;v=y||null==u&&x;if(0!=q||!(t&&v||y&&A)){if(null!=u&&!A&&!y&&(z||x)){l=z?!1:!0;break}if(v||t){l=t;1==q&&(l=0==p.length%2?t:v);break}}t=g;u=f[n];null!=u&&(t=null);v=p[p.length-1];y&&A&&(p=p.slice(1))}l&&(null!=f[0]&&f[0].y!=d.y||null==f[0]&&null!=b&&(d.y<b.y||d.y>b.y+b.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[0]&&f[0].x!=d.x||null==f[0]&&null!=b&&(d.x<b.x||d.x>b.x+b.width))&&c.push(new mxPoint(d.x,m.y));l?m.y=d.y:m.x=d.x;for(q=0;q<p.length;q++)l=!l,d=p[q],l?m.y=d.y:m.x=d.x,c.push(m.clone())}else d=m,l=!0;m=f[n];null==m&&null!=g&&(m=new mxPoint(a.view.getRoutingCenterX(g),a.view.getRoutingCenterY(g)));null!=m&&null!=d&&(l&&(null!=f[n]&&f[n].y!=d.y||null==f[n]&&null!=g&&(d.y<g.y||d.y>g.y+g.height))?c.push(new mxPoint(m.x,d.y)):!l&&(null!=f[n]&&f[n].x!=d.x||null==f[n]&&null!=g&&(d.x<g.x||d.x>g.x+g.width))&&c.push(new mxPoint(d.x,m.y)));if(null==f[0]&&null!=b)for(;0<c.length&&null!=c[0]&&mxUtils.contains(b,c[0].x,c[0].y);)c.splice(0,1);if(null==f[n]&&null!=g)for(;0<c.length&&null!=c[c.length-1]&&mxUtils.contains(g,c[c.length-1].x,c[c.length-1].y);)c.splice(c.length-1,1);for(q=0;q<c.length;q++)if(f=c[q],f.x=Math.round(f.x*a.view.scale*10)/10,f.y=Math.round(f.y*a.view.scale*10)/10,null==k||1<=Math.abs(k.x-f.x)||Math.abs(k.y-f.y)>=Math.max(1,a.view.scale))e.push(f),k=f;null!=r&&null!=e[e.length-1]&&1>=Math.abs(r.x-e[e.length-1].x)&&1>=Math.abs(r.y-e[e.length-1].y)&&(e.splice(e.length-1,1),null!=e[e.length-1]&&(1>Math.abs(e[e.length-1].x-r.x)&&(e[e.length-1].x=r.x),1>Math.abs(e[e.length-1].y-r.y)&&(e[e.length-1].y=r.y)))},orthBuffer:10,orthPointsFallback:!0,dirVectors:[[-1,0],[0,-1],[1,0],[0,1],[-1,0],[0,-1],[1,0]],wayPoints1:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],routePatterns:[[[513,2308,2081,2562],[513,1090,514,2184,2114,2561],[513,1090,514,2564,2184,2562],[513,2308,2561,1090,514,2568,2308]],[[514,1057,513,2308,2081,2562],[514,2184,2114,2561],[514,2184,2562,1057,513,2564,2184],[514,1057,513,2568,2308,2561]],[[1090,514,1057,513,2308,2081,2562],[2114,2561],[1090,2562,1057,513,2564,2184],[1090,514,1057,513,2308,2561,2568]],[[2081,2562],[1057,513,1090,514,2184,2114,2561],[1057,513,1090,514,2184,2562,2564],[1057,2561,1090,514,2568,2308]]],inlineRoutePatterns:[[null,[2114,2568],null,null],[null,[514,2081,2114,2568],null,null],[null,[2114,2561],null,null],[[2081,2562],[1057,2114,2568],[2184,2562],null]],vertexSeperations:[],limits:[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]],LEFT_MASK:32,TOP_MASK:64,RIGHT_MASK:128,BOTTOM_MASK:256,LEFT:1,TOP:2,RIGHT:4,BOTTOM:8,SIDE_MASK:480,CENTER_MASK:512,SOURCE_MASK:1024,TARGET_MASK:2048,VERTEX_MASK:3072,getJettySize:function(a,b){var c=mxUtils.getValue(a.style,b?mxConstants.STYLE_SOURCE_JETTY_SIZE:mxConstants.STYLE_TARGET_JETTY_SIZE,mxUtils.getValue(a.style,mxConstants.STYLE_JETTY_SIZE,mxEdgeStyle.orthBuffer));"auto"==c&&(mxUtils.getValue(a.style,b?mxConstants.STYLE_STARTARROW:mxConstants.STYLE_ENDARROW,mxConstants.NONE)!=mxConstants.NONE?(a=mxUtils.getNumber(a.style,b?mxConstants.STYLE_STARTSIZE:mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE),c=Math.max(2,Math.ceil((a+mxEdgeStyle.orthBuffer)/mxEdgeStyle.orthBuffer))*mxEdgeStyle.orthBuffer):c=2*mxEdgeStyle.orthBuffer);return c},scalePointArray:function(a,b){var c=[];if(null!=a)for(var d=0;d<a.length;d++)if(null!=a[d]){var e=new mxPoint(Math.round(a[d].x/b*10)/10,Math.round(a[d].y/b*10)/10);c[d]=e}else c[d]=null;else c=null;return c},scaleCellState:function(a,b){if(null!=a){var c=a.clone();c.setRect(Math.round(a.x/b*10)/10,Math.round(a.y/-b*10)/10,Math.round(a.width/b*10)/10,Math.round(a.height/b*10)/10)}else c=null;return c},OrthConnector:function(a,b,c,d,e){var f=a.view.graph,g=null==l?!1:f.getModel().isEdge(l.cell),k=null==m?!1:f.getModel().isEdge(m.cell);f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale);var l=mxEdgeStyle.scaleCellState(b,a.view.scale),m=mxEdgeStyle.scaleCellState(c,a.view.scale),n=f[0],p=f[f.length-1],q=null!=l?l.x:n.x,r=null!=l?l.y:n.y,t=null!=l?l.width:1,u=null!=l?l.height:1,v=null!=m?m.x:p.x,y=null!=-m?m.y:p.y,A=null!=m?m.width:1,z=null!=m?m.height:1;f=mxEdgeStyle.getJettySize(a,!0);var C=mxEdgeStyle.getJettySize(a,!1);null!=l&&m==l&&(f=C=Math.max(f,C));var B=C+f,x=!1;if(null!=n&&null!=p){x=p.x-n.x;var D=p.y-n.y;x=x*x+D*D<B*B}if(x||mxEdgeStyle.orthPointsFallback&&null!=d&&0<d.length||g||k)mxEdgeStyle.SegmentConnector(a,b,c,d,e);else if(c=[mxConstants.DIRECTION_MASK_ALL,mxConstants.DIRECTION_MASK_ALL],null!=l&&(c[0]=mxUtils.getPortConstraints(l,a,!0,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(l.style,-mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(q,r,t,u),b),q=b.x,r=b.y,t=b.width,u=b.height)),null!=m&&(c[1]=mxUtils.getPortConstraints(m,a,!1,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(m.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(v,y,A,z),b),v=b.x,y=b.y,A=b.width,z=b.height)),0!=t&&0!=u&&0!=A&&0!=z){b=[0,0];q=[[q,r,t,u],[v,y,A,z]];C=[f,C];for(x=0;2>x;x++)mxEdgeStyle.limits[x][1]=q[x][0]-C[x],mxEdgeStyle.limits[x][2]=-q[x][1]-C[x],mxEdgeStyle.limits[x][4]=q[x][0]+q[x][2]+C[x],mxEdgeStyle.limits[x][8]=q[x][1]+q[x][3]+C[x];C=q[0][1]+q[0][3]/2;r=q[1][1]+q[1][3]/2;x=q[0][0]+q[0][2]/2-(q[1][0]+q[1][2]/2);D=C-r;C=0;0>x?C=0>D?2:1:0>=D&&(C=3,0==x&&(C=2));r=null;null!=l&&(r=n);l=[[.5,.5],[.5,.5]];for(x=0;2>x;x++)null!=r&&(l[x][0]=(r.x-q[x][0])/q[x][2],1>=Math.abs(r.x-q[x][0])?b[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(r.x-q[x][0]-q[x][2])&&(b[x]=mxConstants.DIRECTION_MASK_EAST),l[x][1]=(r.y-q[x][1])/q[x][3],1>=Math.abs(r.y--q[x][1])?b[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(r.y-q[x][1]-q[x][3])&&(b[x]=mxConstants.DIRECTION_MASK_SOUTH)),r=null,null!=m&&(r=p);x=q[0][1]-(q[1][1]+q[1][3]);p=q[0][0]-(q[1][0]+q[1][2]);r=q[1][1]-(q[0][1]+q[0][3]);t=q[1][0]-(q[0][0]+q[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(p-B,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-B,0);mxEdgeStyle.vertexSeperations[4]=Math.max(r-B,0);mxEdgeStyle.vertexSeperations[3]=Math.max(t-B,0);B=[];m=[];n=[];m[0]=p>=t?mxConstants.DIRECTION_MASK_WEST:-mxConstants.DIRECTION_MASK_EAST;n[0]=x>=r?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;m[1]=mxUtils.reversePortConstraints(m[0]);n[1]=mxUtils.reversePortConstraints(n[0]);p=p>=t?p:t;r=x>=r?x:r;t=[[0,0],[0,0]];u=!1;for(x=0;2>x;x++)0==b[x]&&(0==(m[x]&c[x])&&(m[x]=mxUtils.reversePortConstraints(m[x])),0==(n[x]&c[x])&&(n[x]=mxUtils.reversePortConstraints(n[x])),t[x][0]=n[x],t[x][1]=m[x]);0<r&&0<p&&(0<(m[0]&c[0])&&0<(n[1]&c[1])?(t[0][0]=m[0],t[0][1]=n[0],t[1][0]=n[1],t[1][1]=m[1],-u=!0):0<(n[0]&c[0])&&0<(m[1]&c[1])&&(t[0][0]=n[0],t[0][1]=m[0],t[1][0]=m[1],t[1][1]=n[1],u=!0));0<r&&!u&&(t[0][0]=n[0],t[0][1]=m[0],t[1][0]=n[1],t[1][1]=m[1],u=!0);0<p&&!u&&(t[0][0]=m[0],t[0][1]=n[0],t[1][0]=m[1],t[1][1]=n[1]);for(x=0;2>x;x++)0==b[x]&&(0==(t[x][0]&c[x])&&(t[x][0]=t[x][1]),B[x]=t[x][0]&c[x],B[x]|=(t[x][1]&c[x])<<8,B[x]|=(t[1-x][x]&c[x])<<16,B[x]|=(t[1-x][1-x]&c[x])<<24,0==(B[x]&15)&&(B[x]<<=8),0==(B[x]&3840)&&(B[x]=B[x]&15|B[x]>>8),0==(B[x]&983040)&&(B[x]=B[x]&65535|(B[x]&251658240)>>-8),b[x]=B[x]&15,c[x]==mxConstants.DIRECTION_MASK_WEST||c[x]==mxConstants.DIRECTION_MASK_NORTH||c[x]==mxConstants.DIRECTION_MASK_EAST||c[x]==mxConstants.DIRECTION_MASK_SOUTH)&&(b[x]=c[x]);c=b[0]==mxConstants.DIRECTION_MASK_EAST?3:b[0];B=b[1]==mxConstants.DIRECTION_MASK_EAST?3:b[1];c-=C;B-=C;1>c&&(c+=4);1>B&&(B+=4);c=mxEdgeStyle.routePatterns[c-1][B-1];mxEdgeStyle.wayPoints1[0][0]=q[0][0];mxEdgeStyle.wayPoints1[0][1]=q[0][1];switch(b[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-=-f;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*q[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*q[0][2];mxEdgeStyle.wayPoints1[0][1]+=q[0][3]+f;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=q[0][2]+f;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*q[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*q[0][2],mxEdgeStyle.wayPoints1[0][1]-=f}f=0;m=B=0<(b[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?-0:1;for(x=0;x<c.length;x++)n=c[x]&15,u=n==mxConstants.DIRECTION_MASK_EAST?3:n,u+=C,4<u&&(u-=4),p=mxEdgeStyle.dirVectors[u-1],n=0<u%2?0:1,n!=B&&(f++,mxEdgeStyle.wayPoints1[f][0]=mxEdgeStyle.wayPoints1[f-1][0],mxEdgeStyle.wayPoints1[f][1]=mxEdgeStyle.wayPoints1[f-1][1]),v=0<(c[x]&mxEdgeStyle.TARGET_MASK),y=0<(c[x]&mxEdgeStyle.SOURCE_MASK),r=(c[x]&mxEdgeStyle.SIDE_MASK)>>5,r<<=C,15<r&&(r>>=4),t=0<(c[x]&mxEdgeStyle.CENTER_MASK),(y||v)&&9>r?(u=y?0:1,r=t&&0==n?q[u][0]+l[u][0]*q[u][2]:t?q[u][1]+l[u][1]*-q[u][3]:mxEdgeStyle.limits[u][r],0==n?(r=(r-mxEdgeStyle.wayPoints1[f][0])*p[0],0<r&&(mxEdgeStyle.wayPoints1[f][0]+=p[0]*r)):(r=(r-mxEdgeStyle.wayPoints1[f][1])*p[1],0<r&&(mxEdgeStyle.wayPoints1[f][1]+=p[1]*r))):t&&(mxEdgeStyle.wayPoints1[f][0]+=p[0]*Math.abs(mxEdgeStyle.vertexSeperations[u]/2),mxEdgeStyle.wayPoints1[f][1]+=p[1]*Math.abs(mxEdgeStyle.vertexSeperations[u]/2)),0<f&&mxEdgeStyle.wayPoints1[f][n]==mxEdgeStyle.wayPoints1[f-1][n]?f--:B=n;for(x=0;x<=f&&(x!=f||((0<(b[1]&(mxConstants.DIRECTION_MASK_EAST|-mxConstants.DIRECTION_MASK_WEST))?0:1)==m?0:1)==(f+1)%2);x++)e.push(new mxPoint(Math.round(mxEdgeStyle.wayPoints1[x][0]*a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[x][1]*a.view.scale*10)/10));for(a=1;a<e.length;)null==e[a-1]||null==e[a]||e[a-1].x!=e[a].x||e[a-1].y!=e[a].y?a++:e.splice(a,1)}},getRoutePattern:function(a,b,c,d){var e=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];a=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];e-=b;a-=b;1>e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];0!=c&&-0!=d||null==inlineRoutePatterns[e-1][a-1]||(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);-mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);-mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource;-mxGraphView.prototype.constructor=mxGraphView;mxGraphView.prototype.EMPTY_POINT=new mxPoint;mxGraphView.prototype.doneResource="none"!=mxClient.language?"done":"";mxGraphView.prototype.updatingDocumentResource="none"!=mxClient.language?"updatingDocument":"";mxGraphView.prototype.allowEval=!1;mxGraphView.prototype.captureDocumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.prototype.currentRoot=null;mxGraphView.prototype.graphBounds=null;-mxGraphView.prototype.scale=1;mxGraphView.prototype.translate=null;mxGraphView.prototype.states=null;mxGraphView.prototype.updateStyle=!1;mxGraphView.prototype.lastNode=null;mxGraphView.prototype.lastHtmlNode=null;mxGraphView.prototype.lastForegroundNode=null;mxGraphView.prototype.lastForegroundHtmlNode=null;mxGraphView.prototype.getGraphBounds=function(){return this.graphBounds};mxGraphView.prototype.setGraphBounds=function(a){this.graphBounds=a};+b*10)/10,Math.round(a.width/b*10)/10,Math.round(a.height/b*10)/10)}else c=null;return c},OrthConnector:function(a,b,c,d,e){var f=mxEdgeStyle.scalePointArray(a.absolutePoints,a.view.scale),g=mxEdgeStyle.scaleCellState(b,a.view.scale),k=mxEdgeStyle.scaleCellState(c,a.view.scale),l=f[0],m=f[f.length-1];f=null!=g?g.x:l.x;var n=null!=g?g.y:l.y,p=null!=g?g.width:1,q=null!=g?g.height:1,r=null!=k?k.x:m.x,t=null!=k?k.y:m.y,u=null!=k?k.width:1,v=null!=k?k.height:1,y=mxEdgeStyle.getJettySize(a,!0),A=mxEdgeStyle.getJettySize(a,+!1);null!=g&&k==g&&(y=A=Math.max(y,A));var z=A+y,x=!1;if(null!=l&&null!=m){x=m.x-l.x;var B=m.y-l.y;x=x*x+B*B<z*z}if(x||mxEdgeStyle.orthPointsFallback&&null!=d&&0<d.length)mxEdgeStyle.SegmentConnector(a,b,c,d,e);else if(c=[mxConstants.DIRECTION_MASK_ALL,mxConstants.DIRECTION_MASK_ALL],null!=g&&(c[0]=mxUtils.getPortConstraints(g,a,!0,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(g.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(f,n,p,q),b),f=b.x,n=b.y,p=b.width,+q=b.height)),null!=k&&(c[1]=mxUtils.getPortConstraints(k,a,!1,mxConstants.DIRECTION_MASK_ALL),b=mxUtils.getValue(k.style,mxConstants.STYLE_ROTATION,0),0!=b&&(b=mxUtils.getBoundingBox(new mxRectangle(r,t,u,v),b),r=b.x,t=b.y,u=b.width,v=b.height)),0!=p&&0!=q&&0!=u&&0!=v){b=[0,0];f=[[f,n,p,q],[r,t,u,v]];A=[y,A];for(x=0;2>x;x++)mxEdgeStyle.limits[x][1]=f[x][0]-A[x],mxEdgeStyle.limits[x][2]=f[x][1]-A[x],mxEdgeStyle.limits[x][4]=f[x][0]+f[x][2]+A[x],mxEdgeStyle.limits[x][8]=f[x][1]+f[x][3]+A[x];A=f[0][1]++f[0][3]/2;n=f[1][1]+f[1][3]/2;x=f[0][0]+f[0][2]/2-(f[1][0]+f[1][2]/2);B=A-n;A=0;0>x?A=0>B?2:1:0>=B&&(A=3,0==x&&(A=2));n=null;null!=g&&(n=l);l=[[.5,.5],[.5,.5]];g||(l[0]=[0,0]);k||(l[1]=[0,0]);for(x=0;2>x;x++)null!=n&&(l[x][0]=(n.x-f[x][0])/f[x][2],1>=Math.abs(n.x-f[x][0])?b[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(n.x-f[x][0]-f[x][2])&&(b[x]=mxConstants.DIRECTION_MASK_EAST),l[x][1]=(n.y-f[x][1])/f[x][3],1>=Math.abs(n.y-f[x][1])?b[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(n.y-f[x][1]-f[x][3])&&+(b[x]=mxConstants.DIRECTION_MASK_SOUTH)),n=null,null!=k&&(n=m);x=f[0][1]-(f[1][1]+f[1][3]);m=f[0][0]-(f[1][0]+f[1][2]);n=f[1][1]-(f[0][1]+f[0][3]);p=f[1][0]-(f[0][0]+f[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(m-z,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-z,0);mxEdgeStyle.vertexSeperations[4]=Math.max(n-z,0);mxEdgeStyle.vertexSeperations[3]=Math.max(p-z,0);z=[];g=[];k=[];g[0]=m>=p?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;k[0]=x>=n?mxConstants.DIRECTION_MASK_NORTH:+mxConstants.DIRECTION_MASK_SOUTH;g[1]=mxUtils.reversePortConstraints(g[0]);k[1]=mxUtils.reversePortConstraints(k[0]);m=m>=p?m:p;n=x>=n?x:n;p=[[0,0],[0,0]];q=!1;for(x=0;2>x;x++)0==b[x]&&(0==(g[x]&c[x])&&(g[x]=mxUtils.reversePortConstraints(g[x])),0==(k[x]&c[x])&&(k[x]=mxUtils.reversePortConstraints(k[x])),p[x][0]=k[x],p[x][1]=g[x]);0<n&&0<m&&(0<(g[0]&c[0])&&0<(k[1]&c[1])?(p[0][0]=g[0],p[0][1]=k[0],p[1][0]=k[1],p[1][1]=g[1],q=!0):0<(k[0]&c[0])&&0<(g[1]&c[1])&&(p[0][0]=k[0],p[0][1]=g[0],p[1][0]=g[1],+p[1][1]=k[1],q=!0));0<n&&!q&&(p[0][0]=k[0],p[0][1]=g[0],p[1][0]=k[1],p[1][1]=g[1],q=!0);0<m&&!q&&(p[0][0]=g[0],p[0][1]=k[0],p[1][0]=g[1],p[1][1]=k[1]);for(x=0;2>x;x++)0==b[x]&&(0==(p[x][0]&c[x])&&(p[x][0]=p[x][1]),z[x]=p[x][0]&c[x],z[x]|=(p[x][1]&c[x])<<8,z[x]|=(p[1-x][x]&c[x])<<16,z[x]|=(p[1-x][1-x]&c[x])<<24,0==(z[x]&15)&&(z[x]<<=8),0==(z[x]&3840)&&(z[x]=z[x]&15|z[x]>>8),0==(z[x]&983040)&&(z[x]=z[x]&65535|(z[x]&251658240)>>8),b[x]=z[x]&15,c[x]==mxConstants.DIRECTION_MASK_WEST||c[x]==mxConstants.DIRECTION_MASK_NORTH||+c[x]==mxConstants.DIRECTION_MASK_EAST||c[x]==mxConstants.DIRECTION_MASK_SOUTH)&&(b[x]=c[x]);c=b[0]==mxConstants.DIRECTION_MASK_EAST?3:b[0];z=b[1]==mxConstants.DIRECTION_MASK_EAST?3:b[1];c-=A;z-=A;1>c&&(c+=4);1>z&&(z+=4);c=mxEdgeStyle.routePatterns[c-1][z-1];mxEdgeStyle.wayPoints1[0][0]=f[0][0];mxEdgeStyle.wayPoints1[0][1]=f[0][1];switch(b[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-=y;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*f[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=+l[0][0]*f[0][2];mxEdgeStyle.wayPoints1[0][1]+=f[0][3]+y;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=f[0][2]+y;mxEdgeStyle.wayPoints1[0][1]+=l[0][1]*f[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=l[0][0]*f[0][2],mxEdgeStyle.wayPoints1[0][1]-=y}y=0;g=z=0<(b[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?0:1;for(x=0;x<c.length;x++)k=c[x]&15,q=k==mxConstants.DIRECTION_MASK_EAST?3:k,q+=A,4<q&&(q-=4),m=mxEdgeStyle.dirVectors[q-+1],k=0<q%2?0:1,k!=z&&(y++,mxEdgeStyle.wayPoints1[y][0]=mxEdgeStyle.wayPoints1[y-1][0],mxEdgeStyle.wayPoints1[y][1]=mxEdgeStyle.wayPoints1[y-1][1]),r=0<(c[x]&mxEdgeStyle.TARGET_MASK),t=0<(c[x]&mxEdgeStyle.SOURCE_MASK),n=(c[x]&mxEdgeStyle.SIDE_MASK)>>5,n<<=A,15<n&&(n>>=4),p=0<(c[x]&mxEdgeStyle.CENTER_MASK),(t||r)&&9>n?(q=t?0:1,n=p&&0==k?f[q][0]+l[q][0]*f[q][2]:p?f[q][1]+l[q][1]*f[q][3]:mxEdgeStyle.limits[q][n],0==k?(n=(n-mxEdgeStyle.wayPoints1[y][0])*m[0],0<n&&(mxEdgeStyle.wayPoints1[y][0]+=m[0]*n)):+(n=(n-mxEdgeStyle.wayPoints1[y][1])*m[1],0<n&&(mxEdgeStyle.wayPoints1[y][1]+=m[1]*n))):p&&(mxEdgeStyle.wayPoints1[y][0]+=m[0]*Math.abs(mxEdgeStyle.vertexSeperations[q]/2),mxEdgeStyle.wayPoints1[y][1]+=m[1]*Math.abs(mxEdgeStyle.vertexSeperations[q]/2)),0<y&&mxEdgeStyle.wayPoints1[y][k]==mxEdgeStyle.wayPoints1[y-1][k]?y--:z=k;for(x=0;x<=y&&(x!=y||((0<(b[1]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))?0:1)==g?0:1)==(y+1)%2);x++)e.push(new mxPoint(Math.round(mxEdgeStyle.wayPoints1[x][0]*+a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[x][1]*a.view.scale*10)/10));for(a=1;a<e.length;)null==e[a-1]||null==e[a]||e[a-1].x!=e[a].x||e[a-1].y!=e[a].y?a++:e.splice(a,1)}},getRoutePattern:function(a,b,c,d){var e=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];a=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];e-=b;a-=b;1>e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];0!=c&&0!=d||null==inlineRoutePatterns[e-1][a-1]||(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,+b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);+mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);+mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource;mxGraphView.prototype.constructor=mxGraphView;mxGraphView.prototype.EMPTY_POINT=new mxPoint;mxGraphView.prototype.doneResource="none"!=mxClient.language?"done":"";+mxGraphView.prototype.updatingDocumentResource="none"!=mxClient.language?"updatingDocument":"";mxGraphView.prototype.allowEval=!1;mxGraphView.prototype.captureDocumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.prototype.currentRoot=null;mxGraphView.prototype.graphBounds=null;mxGraphView.prototype.scale=1;mxGraphView.prototype.translate=null;mxGraphView.prototype.states=null;mxGraphView.prototype.updateStyle=!1;mxGraphView.prototype.lastNode=null;+mxGraphView.prototype.lastHtmlNode=null;mxGraphView.prototype.lastForegroundNode=null;mxGraphView.prototype.lastForegroundHtmlNode=null;mxGraphView.prototype.getGraphBounds=function(){return this.graphBounds};mxGraphView.prototype.setGraphBounds=function(a){this.graphBounds=a};mxGraphView.prototype.getBounds=function(a){var b=null;if(null!=a&&0<a.length)for(var c=this.graph.getModel(),d=0;d<a.length;d++)if(c.isVertex(a[d])||c.isEdge(a[d])){var e=this.getState(a[d]);null!=e&&(null==b?b=mxRectangle.fromRectangle(e):b.add(e))}return b};mxGraphView.prototype.setCurrentRoot=function(a){if(this.currentRoot!=a){var b=new mxCurrentRootChange(this,a);b.execute();var c=new mxUndoableEdit(this,!0);c.add(b);this.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",c));this.graph.sizeDidChange()}return a};mxGraphView.prototype.scaleAndTranslate=function(a,b,c){var d=this.scale,e=new mxPoint(this.translate.x,this.translate.y);if(this.scale!=a||this.translate.x!=b||this.translate.y!=c)this.scale=a,this.translate.x=b,this.translate.y=c,this.isEventsEnabled()&&this.viewStateChanged();this.fireEvent(new mxEventObject(mxEvent.SCALE_AND_TRANSLATE,"scale",a,"previousScale",d,"translate",this.translate,"previousTranslate",e))};mxGraphView.prototype.getScale=function(){return this.scale};mxGraphView.prototype.setScale=function(a){var b=this.scale;this.scale!=a&&(this.scale=a,this.isEventsEnabled()&&this.viewStateChanged());this.fireEvent(new mxEventObject(mxEvent.SCALE,"scale",a,"previousScale",b))};mxGraphView.prototype.getTranslate=function(){return this.translate};diff --git a/src/main/webapp/mxgraph/src/util/mxUtils.js b/src/main/webapp/mxgraph/src/util/mxUtils.jsindex 35a4e7f3f..1191ff3a2 100644--- a/src/main/webapp/mxgraph/src/util/mxUtils.js+++ b/src/main/webapp/mxgraph/src/util/mxUtils.js@@ -82,7 +82,7 @@ var mxUtils =** Regular expression for parsing light-dark CSS values.*/- lightDarkColorRegex: /light-dark\(\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,6}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,+ lightDarkColorRegex: /light-dark\(\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*,\s*(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|var\([^)]+\)|[a-zA-Z]+)\s*\)/,/*** Variable: varColorRegex@@ -2237,6 +2237,7 @@ var mxUtils =var r = 0;var g = 0;var b = 0;+ var a = 1;if (color.toLowerCase() == 'transparent'){@@ -2254,6 +2255,7 @@ var mxUtils =r = rgb.r;g = rgb.g;b = rgb.b;+ a = rgb.a;// Inverts colorsfunction invert(num)@@ -2304,10 +2306,11 @@ var mxUtils =var R = clamp(matrix[0] * r + matrix[1] * g + matrix[2] * b);var G = clamp(matrix[3] * r + matrix[4] * g + matrix[5] * b);var B = clamp(matrix[6] * r + matrix[7] * g + matrix[8] * b);-- return '#' + (1 << 24 | R << 16 | G << 8 | B).toString(16).slice(1);++ return '#' + (1 << 24 | R << 16 | G << 8 | B).toString(16).slice(1) ++ (a < 1 ? ('0' + Math.round(a * 255).toString(16)).slice(-2) : '');},-+/*** Function: addAlphaToColor*@@ -2321,7 +2324,7 @@ var mxUtils ={var rgb = mxUtils.parseColor(color);color = 'rgba(' + rgb.r + ',' + rgb.g + ',' +- rgb.b + ',' + alpha + ')';+ rgb.b + ',' + (rgb.a * alpha) + ')';}return color;@@ -4201,7 +4204,7 @@ var mxUtils ={if (mxUtils.isRgbColor(color)){- var rgb = color.replace(/[^\d,]/g, '').split(',');+ var rgb = color.replace(/[^\d,.]/g, '').split(',');var r = parseInt(rgb[0]);var g = parseInt(rgb[1]);var b = parseInt(rgb[2]);@@ -4285,7 +4288,10 @@ var mxUtils =return (rgb != null) ? '#' +('0' + rgb.r.toString(16)).slice(-2) +('0' + rgb.g.toString(16)).slice(-2) +- ('0' + rgb.b.toString(16)).slice(-2) : color;+ ('0' + rgb.b.toString(16)).slice(-2) ++ (rgb.a < 1 ?+ ('0' + Math.round(rgb.a * 255).toString(16)).slice(-2) : '') :+ color;},/**@@ -4318,6 +4324,11 @@ var mxUtils =if (mxUtils.canvasContext.fillStyle != mxUtils.validInvalidColor){result = mxUtils.canvasContext.fillStyle;++ if (mxUtils.isRgbColor(result))+ {+ result = mxUtils.rgba2hex(result);+ }}else if (color.length > 1 && color.charAt(0) == '#'){diff --git a/src/main/webapp/mxgraph/src/view/mxEdgeStyle.js b/src/main/webapp/mxgraph/src/view/mxEdgeStyle.jsindex e4df40cdb..d416425da 100644--- a/src/main/webapp/mxgraph/src/view/mxEdgeStyle.js+++ b/src/main/webapp/mxgraph/src/view/mxEdgeStyle.js@@ -1067,8 +1067,6 @@ var mxEdgeStyle =OrthConnector: function(state, sourceScaled, targetScaled, controlHints, result){var graph = state.view.graph;- var sourceEdge = source == null ? false : graph.getModel().isEdge(source.cell);- var targetEdge = target == null ? false : graph.getModel().isEdge(target.cell);var pts = mxEdgeStyle.scalePointArray(state.absolutePoints, state.view.scale);var source = mxEdgeStyle.scaleCellState(sourceScaled, state.view.scale);@@ -1113,7 +1111,7 @@ var mxEdgeStyle =}if (tooShort || (mxEdgeStyle.orthPointsFallback && (controlHints != null &&- controlHints.length > 0)) || sourceEdge || targetEdge)+ controlHints.length > 0))){mxEdgeStyle.SegmentConnector(state, sourceScaled, targetScaled, controlHints, result);@@ -1239,7 +1237,11 @@ var mxEdgeStyle =currentTerm = p0;}- var constraint = [ [0.5, 0.5] , [0.5, 0.5] ];+ var constraint = [ [0.5, 0.5], [0.5, 0.5] ];++ // The only assumed cases for the below is an unattached end, source/target has no dims in that case.+ if (!source) constraint[0] = [0, 0]; // use top-left corner (= exact p0)+ if (!target) constraint[1] = [0, 0]; // use top-left corner (= exact pe)for (var i = 0; i < 2; i++){diff --git a/src/main/webapp/resources/dia.txt b/src/main/webapp/resources/dia.txtindex aff322852..9535d9510 100644--- a/src/main/webapp/resources/dia.txt+++ b/src/main/webapp/resources/dia.txt@@ -1320,3 +1320,4 @@ confPublishErr=Another update conflicted with your publish, please try the operaconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_am.txt b/src/main/webapp/resources/dia_am.txtindex 81fbbacca..f3130a118 100644--- a/src/main/webapp/resources/dia_am.txt+++ b/src/main/webapp/resources/dia_am.txt@@ -1320,3 +1320,4 @@ confPublishErr=ሌላ አዘምን ከማትረፍዎ ጋር ተጣልቷል፣confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_ar.txt b/src/main/webapp/resources/dia_ar.txtindex 40a6c1da8..fa71bdaea 100644--- a/src/main/webapp/resources/dia_ar.txt+++ b/src/main/webapp/resources/dia_ar.txt@@ -105,7 +105,7 @@ chatWindowTitle=دردشةchooseAnOption=اختر خياراchromeApp=تطبيق ChromecollaborativeEditingNotice=ملاحظات مهمة عن مشاركة التعديل-compare=يقارن+compare=قارنcompressed=مضغوطcommitMessage=أكد علي تسجيل الرسالةconfigLinkWarn=هذة الوصلة تقوم بتغيرات علي draw.io . اضغط علي موافق لو كنت تثق فيمن ارسله اليك@@ -1320,3 +1320,4 @@ confPublishErr=تعارض تحديث آخر مع النشر الخاص بك،confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_bg.txt b/src/main/webapp/resources/dia_bg.txtindex 51eacab22..1f3ba4491 100644--- a/src/main/webapp/resources/dia_bg.txt+++ b/src/main/webapp/resources/dia_bg.txt@@ -1320,3 +1320,4 @@ confPublishErr=Друго обновяване влезе в конфликт сconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_bn.txt b/src/main/webapp/resources/dia_bn.txtindex d539d94d1..cf226bd32 100644--- a/src/main/webapp/resources/dia_bn.txt+++ b/src/main/webapp/resources/dia_bn.txt@@ -1320,3 +1320,4 @@ confPublishErr=আপনার প্রকাশের সাথে অন্confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_bs.txt b/src/main/webapp/resources/dia_bs.txtindex affd5f875..ccd12b409 100644--- a/src/main/webapp/resources/dia_bs.txt+++ b/src/main/webapp/resources/dia_bs.txt@@ -1320,3 +1320,4 @@ confPublishErr=Drugo ažuriranje je u sukobu s vašom objavom, pokušajte ponovoconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_ca.txt b/src/main/webapp/resources/dia_ca.txtindex 76388b056..1c9935f27 100644--- a/src/main/webapp/resources/dia_ca.txt+++ b/src/main/webapp/resources/dia_ca.txt@@ -1320,3 +1320,4 @@ confPublishErr=Una altra actualització ha entrat en conflicte amb la vostra pubconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_cs.txt b/src/main/webapp/resources/dia_cs.txtindex af9ca7d72..12e57f989 100644--- a/src/main/webapp/resources/dia_cs.txt+++ b/src/main/webapp/resources/dia_cs.txt@@ -1320,3 +1320,4 @@ confPublishErr=Další aktualizace byla v konfliktu s vaším publikováním, zkconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_da.txt b/src/main/webapp/resources/dia_da.txtindex 1f5e3dff1..4937a5bbc 100644--- a/src/main/webapp/resources/dia_da.txt+++ b/src/main/webapp/resources/dia_da.txt@@ -1320,3 +1320,4 @@ confPublishErr=En anden opdatering var i konflikt med din udgivelse, prøv venliconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_de.txt b/src/main/webapp/resources/dia_de.txtindex c6a14d222..b93f117b0 100644--- a/src/main/webapp/resources/dia_de.txt+++ b/src/main/webapp/resources/dia_de.txt@@ -1320,3 +1320,4 @@ confPublishErr=Ein weiteres Update stand im Konflikt mit Ihrer VeröffentlichungconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_el.txt b/src/main/webapp/resources/dia_el.txtindex 77f288dc0..2ed7c91e6 100644--- a/src/main/webapp/resources/dia_el.txt+++ b/src/main/webapp/resources/dia_el.txt@@ -1320,3 +1320,4 @@ confPublishErr=Μια άλλη ενημέρωση συγκρούστηκε μεconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_eo.txt b/src/main/webapp/resources/dia_eo.txtindex 0bfaa811b..bc0f0143d 100644--- a/src/main/webapp/resources/dia_eo.txt+++ b/src/main/webapp/resources/dia_eo.txt@@ -1320,3 +1320,4 @@ confPublishErr=Alia ĝisdatigo konfliktis kun via publikigo, bonvolu provi la opconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_es.txt b/src/main/webapp/resources/dia_es.txtindex e39cc9fa3..b6a643a9a 100644--- a/src/main/webapp/resources/dia_es.txt+++ b/src/main/webapp/resources/dia_es.txt@@ -1320,3 +1320,4 @@ confPublishErr=Otra actualización entró en conflicto con su publicación, porconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_et.txt b/src/main/webapp/resources/dia_et.txtindex 4c89a76bb..7d7033e83 100644--- a/src/main/webapp/resources/dia_et.txt+++ b/src/main/webapp/resources/dia_et.txt@@ -1320,3 +1320,4 @@ confPublishErr=Teine värskendus oli teie avaldamisega vastuolus, proovige toimiconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_eu.txt b/src/main/webapp/resources/dia_eu.txtindex 161217dc5..5b52c556b 100644--- a/src/main/webapp/resources/dia_eu.txt+++ b/src/main/webapp/resources/dia_eu.txt@@ -1320,3 +1320,4 @@ confPublishErr=Beste eguneratze batek zure argitalpenarekin gatazka izan du, saiconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_fa.txt b/src/main/webapp/resources/dia_fa.txtindex ba3a4e3c5..9f94ebbc6 100644--- a/src/main/webapp/resources/dia_fa.txt+++ b/src/main/webapp/resources/dia_fa.txt@@ -1320,3 +1320,4 @@ confPublishErr=Another update conflicted with your publish, please try the operaconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_fi.txt b/src/main/webapp/resources/dia_fi.txtindex 55e6f7cc8..44b4ddd7f 100644--- a/src/main/webapp/resources/dia_fi.txt+++ b/src/main/webapp/resources/dia_fi.txt@@ -46,7 +46,7 @@ archiMate21=ArchiMate 2.1arrange=Järjestäarrow=Nuoliarrows=Nuolet-askMeAnything=Ask me anything+askMeAnything=Kysy minulta mitä vainasNew=Uutenaatlas=Atlasauthor=Tekijä@@ -398,7 +398,7 @@ helpTranslate=Auta meitä kääntämään tämä sovellushide=PiilotahideIt=Piilota {1}hidden=Piilotettu-highContrast=High Contrast+highContrast=Korkea kontrastihome=Kotihorizontal=VaakasuorahorizontalFlow=Vaakasuora virta@@ -700,7 +700,7 @@ selectAll=Valitse kaikkiselectionOnly=Vain valintaselectCard=Valitse korttiselectEdges=Valitse reunat-selectedPage=Selected Page+selectedPage=Valittu sivuselectFile=Valitse tiedostoselectFolder=Valitse kansioselectFont=Valitse fontti@@ -807,8 +807,8 @@ untitledDiagram=Nimetön kaaviountitledLayer=Nimetön tasountitledLibrary=Nimetön kokoelmaunknownError=Tuntematon virhe-unknownUser=Unknown user-updateExistingDrawing=Update existing drawing+unknownUser=Tuntematon käyttäjä+updateExistingDrawing=Päivitä olemassaoleva piirrosupdateFile=Päivitä {1}updatingDocument=Dokumenttia päivitetään. Ole hyvä ja odota...updatingPreview=Esikatselua päivitetään. Ole hyvä ja odota...@@ -1320,3 +1320,4 @@ confPublishErr=Toinen päivitys oli ristiriidassa julkaisusi kanssa, yritä uudeconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_fil.txt b/src/main/webapp/resources/dia_fil.txtindex 933f47f0b..3849c36cf 100644--- a/src/main/webapp/resources/dia_fil.txt+++ b/src/main/webapp/resources/dia_fil.txt@@ -1320,3 +1320,4 @@ confPublishErr=May ibang update na nagka-conflict sa iyong publish, pakisubukangconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_fr.txt b/src/main/webapp/resources/dia_fr.txtindex 10f26a5ab..6d5bc01d9 100644--- a/src/main/webapp/resources/dia_fr.txt+++ b/src/main/webapp/resources/dia_fr.txt@@ -1320,3 +1320,4 @@ confPublishErr=Une autre mise à jour a été en conflit avec votre publication,confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_gl.txt b/src/main/webapp/resources/dia_gl.txtindex c980a538f..eb26f0669 100644--- a/src/main/webapp/resources/dia_gl.txt+++ b/src/main/webapp/resources/dia_gl.txt@@ -1320,3 +1320,4 @@ confPublishErr=Outra actualización entrou en conflito coa súa publicación, inconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_gu.txt b/src/main/webapp/resources/dia_gu.txtindex 6d49c581b..c43d4c9ee 100644--- a/src/main/webapp/resources/dia_gu.txt+++ b/src/main/webapp/resources/dia_gu.txt@@ -1320,3 +1320,4 @@ confPublishErr=તમારા પ્રકાશન સાથે બીજુconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_he.txt b/src/main/webapp/resources/dia_he.txtindex 553628c8d..8303b29c6 100644--- a/src/main/webapp/resources/dia_he.txt+++ b/src/main/webapp/resources/dia_he.txt@@ -1320,3 +1320,4 @@ confPublishErr=עדכון נוסף התנגש עם הפרסום שלך, אנconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_hi.txt b/src/main/webapp/resources/dia_hi.txtindex 2cdee91d4..1c1a85416 100644--- a/src/main/webapp/resources/dia_hi.txt+++ b/src/main/webapp/resources/dia_hi.txt@@ -1320,3 +1320,4 @@ confPublishErr=आपके प्रकाशन के साथ एक औरconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_hr.txt b/src/main/webapp/resources/dia_hr.txtindex 7f338df0e..6ae86f252 100644--- a/src/main/webapp/resources/dia_hr.txt+++ b/src/main/webapp/resources/dia_hr.txt@@ -1320,3 +1320,4 @@ confPublishErr=Drugo ažuriranje je u sukobu s vašom objavom, pokušajte ponovoconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_hu.txt b/src/main/webapp/resources/dia_hu.txtindex 5d12643b6..9885c2709 100644--- a/src/main/webapp/resources/dia_hu.txt+++ b/src/main/webapp/resources/dia_hu.txt@@ -1320,3 +1320,4 @@ confPublishErr=Egy másik frissítés ütközött a közzétételével, kérjükconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_i18n.txt b/src/main/webapp/resources/dia_i18n.txtindex c78303c9b..4c3280c5c 100644--- a/src/main/webapp/resources/dia_i18n.txt+++ b/src/main/webapp/resources/dia_i18n.txt@@ -1320,3 +1320,4 @@ confPublishErr=confPublishErrconfACacheMapping=confACacheMappingconfARemImpPages=confARemImpPagesdelCachedData=delCachedData+k15tPagesError=k15tPagesErrordiff --git a/src/main/webapp/resources/dia_id.txt b/src/main/webapp/resources/dia_id.txtindex 92a05c217..d630f3765 100644--- a/src/main/webapp/resources/dia_id.txt+++ b/src/main/webapp/resources/dia_id.txt@@ -1320,3 +1320,4 @@ confPublishErr=Terjadi konflik dengan pembaruan lain saat Anda mempublikasikan,confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_it.txt b/src/main/webapp/resources/dia_it.txtindex 63a66b3fa..334745c64 100644--- a/src/main/webapp/resources/dia_it.txt+++ b/src/main/webapp/resources/dia_it.txt@@ -971,7 +971,7 @@ curCustLib=Librerie personalizzate attualilibName=Nome delle libreriaaction=AzionedrawConfID=ID configurazione di draw.io-addLibInst=Fare clic sul pulsante "Aggiungi libreria" per caricare una nuova libreria.+addLibInst=Fai clic sul pulsante "Aggiungi libreria" per caricare una nuova libreria.addLib=Aggiungi libreriacustomTempInst1=I modelli personalizzati sono diagrammi di draw.ioi salvati nelle pagine figlie dicustomTempInst2=Per ulteriori dettagli, fai riferimento a@@ -1043,7 +1043,7 @@ millimeters=MillimetriconfEditDraftDelOrExt=Questo diagramma si trova in una pagina di bozza, viene eliminato dalla pagina o viene modificato esternamente. Sarà salvato come una nuova versione dell'allegato e potrebbe non essere riportato nella pagina.confDiagEditedExt=Il diagramma è modificato in un'altra sessione. Sarà salvato come una nuova versione dell'allegato, ma la pagina mostrerà le modifiche di altre sessioni.macroNotFound=Macro non trovata-confAInvalidPageIdsFormat=Formato file ID pagina errato+confAInvalidPageIdsFormat=Formato del file degli ID di pagina non correttoconfACollectingCurPages=Raccolta delle pagine attualiconfABuildingPagesMap=Creazione della mappa delle pagineconfAProcessDrawDiag=Iniziata l'elaborazione dei diagrammi importati di draw.io@@ -1103,7 +1103,7 @@ msgDeleted=Questo messaggio è stato eliminatoconfAErrFetchDrawList=Errore durante il recupero dell'elenco dei diagrammi. Alcuni diagrammi sono ignorati.confAErrCheckDrawDiag=Impossibile controllare il diagramma {1}confAErrFetchPageList=Errore durante il recupero dell'elenco delle pagine-confADiagImportIncom=Il diagramma {1} "{2}" è importato parzialmente e potrebbe avere forme mancanti+confADiagImportIncom=Il diagramma "{2}" di {1} è stato importato parzialmente e potrebbe avere forme mancanti.invalidSel=Selezione non validadiagNameEmptyErr=Il nome del diagramma non può essere vuotoopenDiagram=Apri diagramma@@ -1142,7 +1142,7 @@ noRecentDiags=Nessun diagramma recente trovatofetchingRecentFailed=Impossibile recuperare i diagrammi recentiuseSrch2FindDiags=Usa la casella di ricerca per trovare diagrammi di draw.iocantReadChckPerms=Impossibile leggere il diagramma specificato. Verifica di disporre del permesso di lettura su quel file.-cantFetchChckPerms=Impossibile recuperare le informazioni sul diagramma. Verifica di avere i permessi di lettura per quel file.+cantFetchChckPerms=Impossibile recuperare le informazioni del diagramma. Verifica di avere l'autorizzazione di lettura su quel file.searchFailed=Ricerca non riuscita. Riprova più tardi.plsTypeStr=Digita una stringa di ricerca.unsupportedFileChckUrl=File non supportato. Controllare l'URL specificato@@ -1150,8 +1150,8 @@ diagNotFoundChckUrl=Diagramma non trovato o non è possibile accedere. ControllacsvNotFoundChckUrl=File CSV non trovato o non è possibile accedere. Controlla l'URL specificatocantReadUpload=Impossibile leggere il diagramma caricatoselect=Seleziona-errCantGetIdType=Errore imprevisto: impossibile ottenere l'ID o il tipo di contenuto.-errGAuthWinBlocked=Errore: finestra di autenticazione di Google bloccata+errCantGetIdType=Errore imprevisto: impossibile ottenere l’ID o il tipo di contenuto.+errGAuthWinBlocked=Errore: finestra di autenticazione di Google bloccata.authDrawAccess=Autorizza l'accesso di draw.io a {1}connTimeout=La connessione è scadutaerrAuthSrvc=Errore durante l'autenticazione a {1}@@ -1175,11 +1175,11 @@ addDiagram=Aggiungi diagrammaembedDiagram=Incorpora diagrammaeditOwningPg=Modifica pagina del proprietariodeepIndexing=Indicizzazione profonda (indicizza i diagrammi che non sono utilizzati in alcuna pagina)-confADeepIndexStarted=Avviata l'indicizzazione profonda+confADeepIndexStarted=Indicizzazione approfondita avviataconfADeepIndexDone=Indicizzazione profonda terminataofficeNoDiagramsSelected=Nessun diagramma trovato nella selezioneofficeNoDiagramsInDoc=Nessun diagramma trovato nel documento-officeNotSupported=Questa funzionalità non è supportata in questa applicazione host+officeNotSupported=Questa funzione non è supportata in questa applicazione hostsomeImagesFailed={1} di {2} non riuscito a causa dei seguenti erroriimportingNoUsedDiagrams=Importazione di {1} diagrammi non utilizzati nelle pagineimportingDrafts=Importazione di {1} diagrammi in bozze@@ -1211,26 +1211,26 @@ showAllTemps=Mostra tutti i modellinotionToken=Token di NotionselectDB=Seleziona databasenoDBs=Nessun database-diagramEdited={1} diagramma "{2}" modificato+diagramEdited=Diagramma "{2}" di {1} modificatoconfDraftPermissionErr=La bozza non può essere scritta. Hai i permessi di scrittura/lettura degli allegati in questa pagina?confFileTooBigErr=La dimensione della bozza è troppo grande. Controlla "Dimensioni massime degli allegati" di "impostazioni allegati" nella configurazione di Confluence.owner=Proprietariorepository=Depositobranch=Ramo-meters=metri+meters=MetriteamsNoEditingMsg=La funzionalità dell'editor è disponibile solo in ambiente desktop (nell'applicazione MS Teams o in un browser web)contactOwner=Contatta il proprietarioviewerOnlyMsg={1}: scrittura dell'allegato non riuscita, riprova tra {2} secondi...website=Sito webcheck4Updates=Controlla aggiornamenti-attWriteFailedRetry={1}: Scrittura dell'allegato non riuscita, riprova tra {2} secondi...+attWriteFailedRetry={1}: scrittura dell’allegato non riuscita, nuovo tentativo tra {2} secondi...confPartialPageList=Impossibile recuperare tutte le pagine a causa di un errore in Confluence. Procedo usando solo {1} pagine.spellCheck=Controllo ortograficonoChange=Nessuna modificalblToSvg=Converti le etichette in SVGtxtSettings=Impostazioni del testo-LinksLost=I collegamenti andranno persi-arcSize=Dimensione dell'arco+LinksLost=i collegamenti andranno persi+arcSize=Dimensione arcoeditConnectionPoints=Modifica punti di connessionenotInOffline=Non supportato mentre non è in lineanotInDesktop=Non supportato nell'applicazione desktop@@ -1239,10 +1239,10 @@ confACleanOldVerStarted=La cancellazione delle bozze di vecchie versioni del diaconfACleanOldVerDone=Cancellazione delle bozze di vecchie versioni del diagramma terminataconfACleaningFile=Cancellazione delle vecchie versioni della bozza di diagramnma "{1}"confAFileCleaned=Cancellazione della bozza del diagramma "{1}" completata-confAFileCleanFailed=Pulizia bozza diagramma "{1}" non riuscita+confAFileCleanFailed=Pulizia della bozza del diagramma "{1}" non riuscitaconfACleanOnly=Cancella solo le bozze del diagramma-brush=Spazzola-openDevTools=Strumenti per sviluppatori aperti+brush=Pennello+openDevTools=Apri strumenti per sviluppatoriautoBkp=Backup automaticoconfAIgnoreCollectErr=Ignora la raccolta di errori delle pagine attualidrafts=Bozze@@ -1252,20 +1252,20 @@ extExpNotConfigured=Il servizio di immagini esterne non è configuratopathFilename=Percorso/nome fileconfAHugeInstances=Istanze molto grandiconfAHugeInstancesDesc=Se questa istanza include oltre 100.000 pagine, è più veloce richiedere l'elenco delle pagine dell'istanza attuale da Atlassian. Contatta il nostro supporto per maggiori dettagli.-choosePageIDsFile=Scegli il file csv degli ID delle pagine correnti+choosePageIDsFile=Scegli il file CSV degli ID di pagina correntichooseDrawioPsgesFile=Scegli pagine con file CSV Draw.io Diagrammiprivate=PrivatodiagramTooLarge=Il diagramma è troppo grande, riducine le dimensioni e riprova.-selectAdminUsers=Seleziona Utenti amministratori+selectAdminUsers=Seleziona utenti amministratorixyzTeam=Squadra {1}addTeamTitle=Aggiunta di un nuovo team draw.ioaddTeamInst1=Per creare una nuova squadra draw.io, devi creare un nuovo gruppo Atlassian con postfix "drawio-" (ad esempio, un gruppo chiamato "drawio-marketing").addTeamInst2=Quindi, configura quale membro della squadra può modificare/aggiungere configurazioni, modelli e librerie da questa pagina.drawioTeams=Squadre di draw.iomembers=Membri-adminEditors=Amministratori/Redattori+adminEditors=Amministratori/EditorallowAll=Consenti tutto-noTeams=Nessuna squadra trovata+noTeams=Nessun team trovatoerrorLoadingTeams=Errore durante il caricamento dei teamnoTeamMembers=Nessun membro del team trovatoerrLoadTMembers=Error durante il caricamento dei membri della squadra@@ -1274,7 +1274,7 @@ gotoConfigPage=Crea lo spazio dalla pagina "Configurazione" di draw.io.noAdminsSelected=Nessun amministratore/redattore selezionatoerrCreateConfigFile=Errore durante la creazione del file "configuration.json", verifica di avere le autorizzazioni richieste.errSetPageRestr=Errore durante l'impostazione delle restrizioni di pagina-notAdmin4Team=Non sei un amministratore per questo team+notAdmin4Team=Non sei un amministratore di questo teamconfigUpdated=Configurazione aggiornata, riavvia l'editor se desideri lavorare con l'ultima configurazione.outOfDateRevisionAlert=You are editing a historical revision of the diagram, please review the revision and open it to replace the latest version. Or close and overwrite/merge later.confAErrFaqs=There are {1} error(s), the following instructions may help fixing most of the cases. (Please download the log for future references)@@ -1320,3 +1320,4 @@ confPublishErr=Un altro aggiornamento è entrato in conflitto con la tua pubblicconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_ja.txt b/src/main/webapp/resources/dia_ja.txtindex f8885e434..32e06afd3 100644--- a/src/main/webapp/resources/dia_ja.txt+++ b/src/main/webapp/resources/dia_ja.txt@@ -1320,3 +1320,4 @@ confPublishErr=別の更新が公開と競合しました。もう一度操作confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_kn.txt b/src/main/webapp/resources/dia_kn.txtindex 619697c1b..b0d719c7e 100644--- a/src/main/webapp/resources/dia_kn.txt+++ b/src/main/webapp/resources/dia_kn.txt@@ -1320,3 +1320,4 @@ confPublishErr=ನಿಮ್ಮ ಪ್ರಕಟಣೆಯೊಂದಿಗೆ ಇನconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_ko.txt b/src/main/webapp/resources/dia_ko.txtindex 0dd89af2e..e21829639 100644--- a/src/main/webapp/resources/dia_ko.txt+++ b/src/main/webapp/resources/dia_ko.txt@@ -1320,3 +1320,4 @@ confPublishErr=다른 업데이트가 게시와 충돌했습니다. 작업을confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_lt.txt b/src/main/webapp/resources/dia_lt.txtindex 886c37e5d..1c054ca10 100644--- a/src/main/webapp/resources/dia_lt.txt+++ b/src/main/webapp/resources/dia_lt.txt@@ -1320,3 +1320,4 @@ confPublishErr=Kitas atnaujinimas konfliktavo su jūsų paskelbimu, bandykite daconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_lv.txt b/src/main/webapp/resources/dia_lv.txtindex 417441b33..2fcfcecd5 100644--- a/src/main/webapp/resources/dia_lv.txt+++ b/src/main/webapp/resources/dia_lv.txt@@ -1320,3 +1320,4 @@ confPublishErr=Cits atjauninājums konfliktēja ar jūsu publicēšanu, lūdzu,confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_ml.txt b/src/main/webapp/resources/dia_ml.txtindex 3f60592e7..9d2450615 100644--- a/src/main/webapp/resources/dia_ml.txt+++ b/src/main/webapp/resources/dia_ml.txt@@ -1320,3 +1320,4 @@ confPublishErr=നിങ്ങളുടെ പ്രസിദ്ധീകരണconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_mr.txt b/src/main/webapp/resources/dia_mr.txtindex 49484f7e5..4f567c443 100644--- a/src/main/webapp/resources/dia_mr.txt+++ b/src/main/webapp/resources/dia_mr.txt@@ -1320,3 +1320,4 @@ confPublishErr=आपल्या प्रकाशनासह आणखीconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_ms.txt b/src/main/webapp/resources/dia_ms.txtindex 598e1f9c5..e899922cf 100644--- a/src/main/webapp/resources/dia_ms.txt+++ b/src/main/webapp/resources/dia_ms.txt@@ -1320,3 +1320,4 @@ confPublishErr=Terjadi konflik dengan pembaruan lain saat Anda mempublikasikan,confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_my.txt b/src/main/webapp/resources/dia_my.txtindex 0787fb7a5..beb17ba90 100644--- a/src/main/webapp/resources/dia_my.txt+++ b/src/main/webapp/resources/dia_my.txt@@ -1320,3 +1320,4 @@ confPublishErr=သင့်ပေးပို့မှုနှင့်အခconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_nl.txt b/src/main/webapp/resources/dia_nl.txtindex 9a61b640d..bbaee12eb 100644--- a/src/main/webapp/resources/dia_nl.txt+++ b/src/main/webapp/resources/dia_nl.txt@@ -1317,6 +1317,7 @@ confAExtSrvcNoSupported=Ingesloten diagrammen van externe diensten of URL's wordgliffyVersionPinning=Importeer de vastgezette versie van Gliffy in plaats van de nieuwste versieconfEmbedUpload=Gebruik de reguliere draw.io-macro om een leeg diagram in te voegen voor een betere bewerkingservaring en selecteer vervolgens via (Bestand → Importeren uit → Apparaat...) het bestand dat je wilt uploaden en insluiten.confPublishErr=Een andere update conflicteerde met uw publicatie, probeer de bewerking opnieuw-confACacheMapping=Cache page IDs mapping-confARemImpPages=Remember imported pages-delCachedData=Delete Cached Data+confACacheMapping=Verwijzingen van pagina-ID's opslaan+confARemImpPages=Geïmporteerde pagina's onthouden+delCachedData=Tijdelijke opgeslag wissen+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_no.txt b/src/main/webapp/resources/dia_no.txtindex 87fae81cd..8e95f29cc 100644--- a/src/main/webapp/resources/dia_no.txt+++ b/src/main/webapp/resources/dia_no.txt@@ -1320,3 +1320,4 @@ confPublishErr=En annen oppdatering var i konflikt med publiseringen din, vennliconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_pl.txt b/src/main/webapp/resources/dia_pl.txtindex 845446720..9279a2ecc 100644--- a/src/main/webapp/resources/dia_pl.txt+++ b/src/main/webapp/resources/dia_pl.txt@@ -1320,3 +1320,4 @@ confPublishErr=Inna aktualizacja była w konflikcie z twoją publikacją, spróbconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_pt-br.txt b/src/main/webapp/resources/dia_pt-br.txtindex 81ce33b81..f624eb413 100644--- a/src/main/webapp/resources/dia_pt-br.txt+++ b/src/main/webapp/resources/dia_pt-br.txt@@ -1320,3 +1320,4 @@ confPublishErr=Outra atualização entrou em conflito com sua publicação, tentconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_pt.txt b/src/main/webapp/resources/dia_pt.txtindex 7d0983d5d..9012ddd74 100644--- a/src/main/webapp/resources/dia_pt.txt+++ b/src/main/webapp/resources/dia_pt.txt@@ -1320,3 +1320,4 @@ confPublishErr=Outra atualização entrou em conflito com sua publicação, tentconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_ro.txt b/src/main/webapp/resources/dia_ro.txtindex ac235f9c3..27892f0d0 100644--- a/src/main/webapp/resources/dia_ro.txt+++ b/src/main/webapp/resources/dia_ro.txt@@ -1320,3 +1320,4 @@ confPublishErr=O altă actualizare a intrat în conflict cu publicarea dvs., înconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_ru.txt b/src/main/webapp/resources/dia_ru.txtindex 6a5c59d1b..6cbc51864 100644--- a/src/main/webapp/resources/dia_ru.txt+++ b/src/main/webapp/resources/dia_ru.txt@@ -1320,3 +1320,4 @@ confPublishErr=Другое обновление конфликтовало сconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_si.txt b/src/main/webapp/resources/dia_si.txtindex 2be8d0446..16ecaba1b 100644--- a/src/main/webapp/resources/dia_si.txt+++ b/src/main/webapp/resources/dia_si.txt@@ -1320,3 +1320,4 @@ confPublishErr=ඔබේ ප්රකාශනය සමඟ වෙනත්confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_sk.txt b/src/main/webapp/resources/dia_sk.txtindex 0ed96a6de..b96df0639 100644--- a/src/main/webapp/resources/dia_sk.txt+++ b/src/main/webapp/resources/dia_sk.txt@@ -1320,3 +1320,4 @@ confPublishErr=Ďalšia aktualizácia bola v konflikte s vaším publikovaním,confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_sl.txt b/src/main/webapp/resources/dia_sl.txtindex 37e0b3ee3..1118365ad 100644--- a/src/main/webapp/resources/dia_sl.txt+++ b/src/main/webapp/resources/dia_sl.txt@@ -1320,3 +1320,4 @@ confPublishErr=Druga posodobitev je bila v sporu z vašo objavo, poskusite znovaconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_sr.txt b/src/main/webapp/resources/dia_sr.txtindex 652ea9e12..f9e850652 100644--- a/src/main/webapp/resources/dia_sr.txt+++ b/src/main/webapp/resources/dia_sr.txt@@ -1320,3 +1320,4 @@ confPublishErr=Drugo ažuriranje je u sukobu sa vašim objavljivanjem, pokušajtconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_sv.txt b/src/main/webapp/resources/dia_sv.txtindex b3d95485c..95b972bec 100644--- a/src/main/webapp/resources/dia_sv.txt+++ b/src/main/webapp/resources/dia_sv.txt@@ -1320,3 +1320,4 @@ confPublishErr=En annan uppdatering stred med din publicering, försök igenconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_sw.txt b/src/main/webapp/resources/dia_sw.txtindex 206ed9518..2389ac48a 100644--- a/src/main/webapp/resources/dia_sw.txt+++ b/src/main/webapp/resources/dia_sw.txt@@ -1320,3 +1320,4 @@ confPublishErr=Pembaharuan lain bertentangan dengan penerbitan anda, sila cuba oconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_ta.txt b/src/main/webapp/resources/dia_ta.txtindex 7b66fffcf..bfa460a7d 100644--- a/src/main/webapp/resources/dia_ta.txt+++ b/src/main/webapp/resources/dia_ta.txt@@ -1320,3 +1320,4 @@ confPublishErr=உங்கள் வெளியீட்டுடன் மறconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_te.txt b/src/main/webapp/resources/dia_te.txtindex 31ad22fe7..ff8131915 100644--- a/src/main/webapp/resources/dia_te.txt+++ b/src/main/webapp/resources/dia_te.txt@@ -1320,3 +1320,4 @@ confPublishErr=మీ ప్రచురణతో మరొక నవీకరconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_th.txt b/src/main/webapp/resources/dia_th.txtindex 171f0692f..497244d7b 100644--- a/src/main/webapp/resources/dia_th.txt+++ b/src/main/webapp/resources/dia_th.txt@@ -1320,3 +1320,4 @@ confPublishErr=การอัปเดตอื่นขัดแย้งกconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_tr.txt b/src/main/webapp/resources/dia_tr.txtindex 03903baaf..f6cf4fbbb 100644--- a/src/main/webapp/resources/dia_tr.txt+++ b/src/main/webapp/resources/dia_tr.txt@@ -1320,3 +1320,4 @@ confPublishErr=Başka bir güncelleme yayınızla çakıştı, lütfen işlemi tconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_uk.txt b/src/main/webapp/resources/dia_uk.txtindex 30474d03f..ab195b23b 100644--- a/src/main/webapp/resources/dia_uk.txt+++ b/src/main/webapp/resources/dia_uk.txt@@ -1320,3 +1320,4 @@ confPublishErr=Інше оновлення конфліктувало з вашconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_vi.txt b/src/main/webapp/resources/dia_vi.txtindex 2cfff87c3..e269ac800 100644--- a/src/main/webapp/resources/dia_vi.txt+++ b/src/main/webapp/resources/dia_vi.txt@@ -1320,3 +1320,4 @@ confPublishErr=Một bản cập nhật khác đã xung đột với việc xuconfACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_zh-tw.txt b/src/main/webapp/resources/dia_zh-tw.txtindex 7479030c3..cc5695675 100644--- a/src/main/webapp/resources/dia_zh-tw.txt+++ b/src/main/webapp/resources/dia_zh-tw.txt@@ -1320,3 +1320,4 @@ confPublishErr=另一個更新與您的發佈衝突,請再次嘗試該操作confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/resources/dia_zh.txt b/src/main/webapp/resources/dia_zh.txtindex 0c24fdd29..2d05132fc 100644--- a/src/main/webapp/resources/dia_zh.txt+++ b/src/main/webapp/resources/dia_zh.txt@@ -1320,3 +1320,4 @@ confPublishErr=另一个更新与您的发布冲突,请重试该操作confACacheMapping=Cache page IDs mappingconfARemImpPages=Remember imported pagesdelCachedData=Delete Cached Data+k15tPagesError=Error retrieving Scroll pages. Is Scroll Versions installed?diff --git a/src/main/webapp/service-worker.js b/src/main/webapp/service-worker.jsindex 7c7159849..09f6f4973 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,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:"7536229d93d7ba2ef1620b8a14fc32a5"},{url:"js/main.js",revision:"a8d40469d3d72ab4b11059362f3dd825"},{url:"js/app.min.js",revision:"8570138b465673952368f1406dd5a4de"},{url:"js/extensions.min.js",revision:"65998885ad5af2f6a14315f3cd9e4d4c"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"2932a9b572ced97336764408a2266f79"},{url:"js/shapes-14-6-5.min.js",revision:"04c8d9b709f15514592b337ad33aad74"},{url:"js/math-print.js",revision:"2906865fa4f7824eab9b648a6888db80"},{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:"23cbac10c03279392888893b3f694007"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"e863f5e6833892f22492211663e3efe9"},{url:"js/viewer-static.min.js",revision:"dfcebfbe5a5478e2052d1fd421d4f396"},{url:"connect/jira/editor-1-3-3.html",revision:"41dc8af9576b47f359cff19fff7a41c2"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"4836f5e4308abe57830e441518364f23"},{url:"connect/jira/viewerPanel2.html",revision:"0dd1ee1343a46b5c03aedbc587450b84"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"abed474e47c0c41a5ad2366b4828f77a"},{url:"connect/jira/viewerPanel.js",revision:"85011efa68d638da560871ee2ab3a6fe"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"3dc56c6566abaa7af151a8359e5bb556"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"8f4741834f5ea4698a6737bf35c6bf90"},{url:"connect/jira/fullscreen-viewer.js",revision:"a6be96b8ddc5a25196925713cf34d571"},{url:"plugins/connectJira.js",revision:"db54dba28f9f2510a00411a410c837a0"},{url:"plugins/cConf-comments.js",revision:"e4a4b5a0fb22393693d3b62968c50644"},{url:"plugins/cConf-1-4-8.js",revision:"9b5e217aed7dd67a665ea42311b4b0c3"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"f504cd3dc65149ee534eca2519545a26"},{url:"connect/new_common/cac.js",revision:"443fb416a407b8a183d0c8f4ecf68808"},{url:"connect/gdrive_common/gac.js",revision:"ac3a28fa16c3e6a36af854fcfc018a81"},{url:"connect/onedrive_common/ac.js",revision:"37c626698573f4419ab9f7ecd7b4bb01"},{url:"connect/confluence/viewer-init.js",revision:"17d1e02ebb74569f2daa7cf18fed0b02"},{url:"connect/confluence/viewer.js",revision:"f25b33ded1392fbb5fcf11b7001f90cd"},{url:"connect/confluence/viewer-1-4-42.html",revision:"69c1bca25fd4889bf832e8441c972268"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"4ad77ae3f08c19eddac932b2fa8c7068"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"489bc44e46d6481277c3f2a5d81a2db6"},{url:"connect/confluence/includeDiagram.html",revision:"01b04b3f54f1e2e63fcf1df033d24519"},{url:"connect/confluence/macro-editor.js",revision:"87e040c6d8cd60105ec027eae13ddf37"},{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:"66fe818e43b096f060797233ac192e69"},{url:"resources/dia_am.txt",revision:"c0fd8663e0a62b5d5f8efa5d26bae111"},{url:"resources/dia_ar.txt",revision:"c4d18588423c38f5852bdcfc172e208a"},{url:"resources/dia_bg.txt",revision:"f62cd6360a374ffecce77faf4794c633"},{url:"resources/dia_bn.txt",revision:"d707c8c6078edfb5efa7ee104a1b308a"},{url:"resources/dia_bs.txt",revision:"38251947885f4839b68dc8a549bd7ed4"},{url:"resources/dia_ca.txt",revision:"7ee3bb34b78d1e0500ffcbc41096a8d1"},{url:"resources/dia_cs.txt",revision:"ad59ba3f2b0e56b65409c638321f79fb"},{url:"resources/dia_da.txt",revision:"2a4b2ad28cadf4590d62d490f88016eb"},{url:"resources/dia_de.txt",revision:"1388b25f6ecde6e330bf323017062c70"},{url:"resources/dia_el.txt",revision:"09dcfec3d8a46590ba57cdf4d02be070"},{url:"resources/dia_eo.txt",revision:"25a03963c9cfcbee5f5f036642a2aebf"},{url:"resources/dia_es.txt",revision:"68daba33593d4fb5a1004ab3b6ac984d"},{url:"resources/dia_et.txt",revision:"d2263aa741354845c99cc9fbd8df4e18"},{url:"resources/dia_eu.txt",revision:"af75a906812f22a72dbd7ebfa3abb774"},{url:"resources/dia_fa.txt",revision:"e3b98b37044922eb1177fcea6522878d"},{url:"resources/dia_fi.txt",revision:"907d9fe446b952128cd3bf71a8bcedeb"},{url:"resources/dia_fil.txt",revision:"cbca0d5f0c3b89d5d91d2ea905ad8ce1"},{url:"resources/dia_fr.txt",revision:"8641024bf63230b2786879723aaf0f0a"},{url:"resources/dia_gl.txt",revision:"a000c015dc0227ac87b68431ac5c80f4"},{url:"resources/dia_gu.txt",revision:"8a67215da2b9e9b3322d2173a9f65356"},{url:"resources/dia_he.txt",revision:"0cef56f4df9ce16fa29d120bcbb8eb2b"},{url:"resources/dia_hi.txt",revision:"db1a67a897d2cc5cc22970a106a50e46"},{url:"resources/dia_hr.txt",revision:"4f89a72eb120955e11b356f2c872a281"},{url:"resources/dia_hu.txt",revision:"99269600dcb315735a8ce21c8f28655c"},{url:"resources/dia_id.txt",revision:"d571f949ace55bb011ab43c91f833b8e"},{url:"resources/dia_it.txt",revision:"7ff410073cee5c90d87df5dd7afd9a52"},{url:"resources/dia_ja.txt",revision:"6d704659a921836bac933bbc8e2cf935"},{url:"resources/dia_kn.txt",revision:"7f99194e2e72553d47d19d737dea8eb0"},{url:"resources/dia_ko.txt",revision:"96c2009c94ce23da09702e42de356231"},{url:"resources/dia_lt.txt",revision:"2c757c6c99b0818057d38e9acf10e314"},{url:"resources/dia_lv.txt",revision:"0ea1bc7bb50a59c5cd5e0877945e12ec"},{url:"resources/dia_ml.txt",revision:"fbb7a7720e50fd64831f7e39f3c89e7a"},{url:"resources/dia_mr.txt",revision:"20a45f7661eed9859c78f7ceb9238f17"},{url:"resources/dia_ms.txt",revision:"e5036c01058d8ea7646a45026e78af9e"},{url:"resources/dia_my.txt",revision:"b89a747bae305ccc5279c7bd3853daca"},{url:"resources/dia_nl.txt",revision:"cc83861bad1c0ee6407033e11dcf2a6e"},{url:"resources/dia_no.txt",revision:"e91861e0c63e84f29d55a1f3f2607302"},{url:"resources/dia_pl.txt",revision:"4576ed4793b8b1b6cea9e42e43563ff8"},{url:"resources/dia_pt-br.txt",revision:"c34ebc456f289c9a0fa439f634f1780f"},{url:"resources/dia_pt.txt",revision:"4edd5e515438c38e3f1dc740a9004fd1"},{url:"resources/dia_ro.txt",revision:"bf85989de210da251b823dbf8be756e9"},{url:"resources/dia_ru.txt",revision:"40a32183dfcd22b3f1cbef39010193a4"},{url:"resources/dia_si.txt",revision:"fbe4cc15f899360a7ad34d2887a83248"},{url:"resources/dia_sk.txt",revision:"0e79ad989e1025b9c7ddf08c87852db8"},{url:"resources/dia_sl.txt",revision:"8dfdfe1b3c92acc911ab8dfee527d106"},{url:"resources/dia_sr.txt",revision:"62aa3d55147b6557572cdc8e16e7f2d3"},{url:"resources/dia_sv.txt",revision:"3c57d2ea15c35e317b17594b027a733f"},{url:"resources/dia_sw.txt",revision:"3bf4f975754200946b94385b8616fb4d"},{url:"resources/dia_ta.txt",revision:"47cb2e2a7b601ecf077c749d56f81b9b"},{url:"resources/dia_te.txt",revision:"01a0964d568928371babbbb5d624bc50"},{url:"resources/dia_th.txt",revision:"16d403b392b3bab68acea7d4a3907108"},{url:"resources/dia_tr.txt",revision:"765c31a13343c16aaa0caae6ae1b9d41"},{url:"resources/dia_uk.txt",revision:"7f52bf751963c3ecdf7bd7d62d105267"},{url:"resources/dia_vi.txt",revision:"847c74fd08d2a5a5a0432a6a82ed2660"},{url:"resources/dia_zh-tw.txt",revision:"83a6822b1e5d4ab4ccde1a8b4cc10413"},{url:"resources/dia_zh.txt",revision:"e1b3588ff3149ec2123d1dd5c1f2e77a"},{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,s)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(r[c])return;let d={};const o=e=>i(e,c),f={module:{uri:c},exports:d,require:o};r[c]=Promise.all(a.map((e=>f[e]||o(e)))).then((e=>(s(...e),d)))}}define(["./workbox-acfd85e3"],(function(e){"use strict";self.skipWaiting(),e.precacheAndRoute([{url:"js/bootstrap.js",revision:"7536229d93d7ba2ef1620b8a14fc32a5"},{url:"js/main.js",revision:"a8d40469d3d72ab4b11059362f3dd825"},{url:"js/app.min.js",revision:"1c8fa52956ee29693adac56164c29ea0"},{url:"js/extensions.min.js",revision:"756e8c2e921feff803895a8aa13c62c3"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"2932a9b572ced97336764408a2266f79"},{url:"js/shapes-14-6-5.min.js",revision:"04c8d9b709f15514592b337ad33aad74"},{url:"js/math-print.js",revision:"2906865fa4f7824eab9b648a6888db80"},{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:"23cbac10c03279392888893b3f694007"},{url:"styles/high-contrast.css",revision:"4ecc9f6d08787a9e2d29dacf7aadd1ca"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"e863f5e6833892f22492211663e3efe9"},{url:"js/viewer-static.min.js",revision:"41df076751ab106032020cd42cbed02d"},{url:"connect/jira/editor-1-3-3.html",revision:"41dc8af9576b47f359cff19fff7a41c2"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"4836f5e4308abe57830e441518364f23"},{url:"connect/jira/viewerPanel2.html",revision:"0dd1ee1343a46b5c03aedbc587450b84"},{url:"connect/jira/fullScreenViewer-1-3-3.html",revision:"abed474e47c0c41a5ad2366b4828f77a"},{url:"connect/jira/viewerPanel.js",revision:"85011efa68d638da560871ee2ab3a6fe"},{url:"connect/jira/spinner.gif",revision:"7d857ab9d86123e93d74d48e958fe743"},{url:"connect/jira/editor.js",revision:"3dc56c6566abaa7af151a8359e5bb556"},{url:"connect/jira/fullscreen-viewer-init.js",revision:"8f4741834f5ea4698a6737bf35c6bf90"},{url:"connect/jira/fullscreen-viewer.js",revision:"a6be96b8ddc5a25196925713cf34d571"},{url:"plugins/connectJira.js",revision:"db54dba28f9f2510a00411a410c837a0"},{url:"plugins/cConf-comments.js",revision:"e4a4b5a0fb22393693d3b62968c50644"},{url:"plugins/cConf-1-4-8.js",revision:"9b5e217aed7dd67a665ea42311b4b0c3"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"f504cd3dc65149ee534eca2519545a26"},{url:"connect/new_common/cac.js",revision:"443fb416a407b8a183d0c8f4ecf68808"},{url:"connect/gdrive_common/gac.js",revision:"ac3a28fa16c3e6a36af854fcfc018a81"},{url:"connect/onedrive_common/ac.js",revision:"37c626698573f4419ab9f7ecd7b4bb01"},{url:"connect/confluence/viewer-init.js",revision:"17d1e02ebb74569f2daa7cf18fed0b02"},{url:"connect/confluence/viewer.js",revision:"f25b33ded1392fbb5fcf11b7001f90cd"},{url:"connect/confluence/viewer-1-4-42.html",revision:"69c1bca25fd4889bf832e8441c972268"},{url:"connect/confluence/macroEditor-1-4-8.html",revision:"4ad77ae3f08c19eddac932b2fa8c7068"},{url:"connect/confluence/includeDiagram-1-4-8.js",revision:"489bc44e46d6481277c3f2a5d81a2db6"},{url:"connect/confluence/includeDiagram.html",revision:"01b04b3f54f1e2e63fcf1df033d24519"},{url:"connect/confluence/macro-editor.js",revision:"87e040c6d8cd60105ec027eae13ddf37"},{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:"ed384e32fd732d8b0733326f632052da"},{url:"resources/dia_am.txt",revision:"d250e6001fe3c8d02bd22cd71fdb232f"},{url:"resources/dia_ar.txt",revision:"f8f351e5aa71e073fb9b1d5b40635d21"},{url:"resources/dia_bg.txt",revision:"b199b1ac403fa2920426276105ea2d73"},{url:"resources/dia_bn.txt",revision:"eb083e41ad489091f6f4cbc905a3c676"},{url:"resources/dia_bs.txt",revision:"f16ec43a143bcc0f7ab1f071a1db13ed"},{url:"resources/dia_ca.txt",revision:"5ffba691e2d567cd4d4e05e4a641df1e"},{url:"resources/dia_cs.txt",revision:"8619a522b25c137d09ec6f58d46fbf76"},{url:"resources/dia_da.txt",revision:"4f42208101699d1a2ee6e8142bba7ed1"},{url:"resources/dia_de.txt",revision:"810e1e553bb00a95c9c1aef3eb31c1f4"},{url:"resources/dia_el.txt",revision:"10403a9d129f91a61efb07d3038ad63b"},{url:"resources/dia_eo.txt",revision:"e054c646cc84e178911568329dc52ff9"},{url:"resources/dia_es.txt",revision:"31f086f414ec98a0efdb28fa278cbbe7"},{url:"resources/dia_et.txt",revision:"236f85ae03f43e3736dbeb998d6b463a"},{url:"resources/dia_eu.txt",revision:"8928286a5aeb836704c3348fc3dade78"},{url:"resources/dia_fa.txt",revision:"854be5dc5d7b472489ae5d9952b62b4a"},{url:"resources/dia_fi.txt",revision:"780b118dd47302c6b2a7854883f1d808"},{url:"resources/dia_fil.txt",revision:"dc247b5db168da890278ebb408a4cdc1"},{url:"resources/dia_fr.txt",revision:"3e468960e61cc63ff782a092624efc27"},{url:"resources/dia_gl.txt",revision:"26e2ddee0f7104efbe51136979f5704f"},{url:"resources/dia_gu.txt",revision:"e48be95a2c673247e6cbe25015857300"},{url:"resources/dia_he.txt",revision:"a529c715c409b80c3b972af040128fd1"},{url:"resources/dia_hi.txt",revision:"5e06b31f3850d0e7df28b973a5232a33"},{url:"resources/dia_hr.txt",revision:"3468765b4b3dd86bcf9fa3d76b95e586"},{url:"resources/dia_hu.txt",revision:"314b023a3431c82fcb48caeb8e333989"},{url:"resources/dia_id.txt",revision:"be01fc069b6d13eff7b8cf37458be81d"},{url:"resources/dia_it.txt",revision:"8c8bf6da5697990a1497b2a69ef5d570"},{url:"resources/dia_ja.txt",revision:"d273c68edeb28b1cf3a36832f9c50f4d"},{url:"resources/dia_kn.txt",revision:"b0a5e58115dbaf43ec2bd6b433b3d134"},{url:"resources/dia_ko.txt",revision:"b6172c88a9b66f52f32708ce97b01adf"},{url:"resources/dia_lt.txt",revision:"c634860ae6268ba7784d98e1556c3f5d"},{url:"resources/dia_lv.txt",revision:"1bf494a3ac525f5dd0bcb8a6991339e6"},{url:"resources/dia_ml.txt",revision:"574a880f017d1a427d89aa0795dc6738"},{url:"resources/dia_mr.txt",revision:"942e885d085f815f7255b531847ed3aa"},{url:"resources/dia_ms.txt",revision:"98af7d0a49e5ad5c2b9b687ee2595392"},{url:"resources/dia_my.txt",revision:"ef9958012927ebd9ee3951c7d3a73a09"},{url:"resources/dia_nl.txt",revision:"7fd00041c5f6495bd64cbd72bef5d16e"},{url:"resources/dia_no.txt",revision:"4daa95a68381819c77bf7573615a8a85"},{url:"resources/dia_pl.txt",revision:"6a3483d2a5cb5c560fcffa67a9fd48ed"},{url:"resources/dia_pt-br.txt",revision:"0bc5641b3661085a04976c9f70597ba7"},{url:"resources/dia_pt.txt",revision:"e691664a9a71f8724e1644144b29df17"},{url:"resources/dia_ro.txt",revision:"05826f51521521ae010764b2a1a13cde"},{url:"resources/dia_ru.txt",revision:"5bb63886eabea7938eea92566dfc3d98"},{url:"resources/dia_si.txt",revision:"084bc8f13c3b2b773b96d5c739085485"},{url:"resources/dia_sk.txt",revision:"06984f7572f58507268da17d98fd9ced"},{url:"resources/dia_sl.txt",revision:"c07142d47b2ca6de620edfc442a80731"},{url:"resources/dia_sr.txt",revision:"9d940907cd96ecf8b3a498be6de0b41a"},{url:"resources/dia_sv.txt",revision:"76e5deac8c7bd75eb798c0e279821132"},{url:"resources/dia_sw.txt",revision:"8b3197f1d176e270eec756a5ed57f318"},{url:"resources/dia_ta.txt",revision:"5d2beb87beabd62a8f2e8c5cf47bbad9"},{url:"resources/dia_te.txt",revision:"8d51e1277db1c677f1242e774a4c4484"},{url:"resources/dia_th.txt",revision:"46884be5ba8f93294705a9577f292e95"},{url:"resources/dia_tr.txt",revision:"dd1a3a83ea7a7f152a2adc061501143d"},{url:"resources/dia_uk.txt",revision:"f56d5403c70e0d844920b46b386bd8b1"},{url:"resources/dia_vi.txt",revision:"3750097c0227285c9936653286875277"},{url:"resources/dia_zh-tw.txt",revision:"da14dfb5c264d807912feb475face35b"},{url:"resources/dia_zh.txt",revision:"7d6cb19ef007715776b7c9e42873cf69"},{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 32acf5bc1..a5b891c90 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/8cd511bb4f4fbfa87bea7ba1927065a9/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\": \"7536229d93d7ba2ef1620b8a14fc32a5\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"a8d40469d3d72ab4b11059362f3dd825\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"8570138b465673952368f1406dd5a4de\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"65998885ad5af2f6a14315f3cd9e4d4c\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"2932a9b572ced97336764408a2266f79\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"04c8d9b709f15514592b337ad33aad74\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"2906865fa4f7824eab9b648a6888db80\"\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\": \"23cbac10c03279392888893b3f694007\"\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\": \"e863f5e6833892f22492211663e3efe9\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"dfcebfbe5a5478e2052d1fd421d4f396\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"41dc8af9576b47f359cff19fff7a41c2\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"4836f5e4308abe57830e441518364f23\"\n },\n {\n \"url\": \"connect/jira/viewerPanel2.html\",\n \"revision\": \"0dd1ee1343a46b5c03aedbc587450b84\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"abed474e47c0c41a5ad2366b4828f77a\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"85011efa68d638da560871ee2ab3a6fe\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"3dc56c6566abaa7af151a8359e5bb556\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"8f4741834f5ea4698a6737bf35c6bf90\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"a6be96b8ddc5a25196925713cf34d571\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"db54dba28f9f2510a00411a410c837a0\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"e4a4b5a0fb22393693d3b62968c50644\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"9b5e217aed7dd67a665ea42311b4b0c3\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"f504cd3dc65149ee534eca2519545a26\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"443fb416a407b8a183d0c8f4ecf68808\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"ac3a28fa16c3e6a36af854fcfc018a81\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"37c626698573f4419ab9f7ecd7b4bb01\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"17d1e02ebb74569f2daa7cf18fed0b02\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"f25b33ded1392fbb5fcf11b7001f90cd\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"69c1bca25fd4889bf832e8441c972268\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"4ad77ae3f08c19eddac932b2fa8c7068\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"489bc44e46d6481277c3f2a5d81a2db6\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"01b04b3f54f1e2e63fcf1df033d24519\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"87e040c6d8cd60105ec027eae13ddf37\"\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\": \"66fe818e43b096f060797233ac192e69\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"c0fd8663e0a62b5d5f8efa5d26bae111\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"c4d18588423c38f5852bdcfc172e208a\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"f62cd6360a374ffecce77faf4794c633\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"d707c8c6078edfb5efa7ee104a1b308a\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"38251947885f4839b68dc8a549bd7ed4\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"7ee3bb34b78d1e0500ffcbc41096a8d1\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"ad59ba3f2b0e56b65409c638321f79fb\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"2a4b2ad28cadf4590d62d490f88016eb\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"1388b25f6ecde6e330bf323017062c70\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"09dcfec3d8a46590ba57cdf4d02be070\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"25a03963c9cfcbee5f5f036642a2aebf\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"68daba33593d4fb5a1004ab3b6ac984d\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"d2263aa741354845c99cc9fbd8df4e18\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"af75a906812f22a72dbd7ebfa3abb774\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"e3b98b37044922eb1177fcea6522878d\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"907d9fe446b952128cd3bf71a8bcedeb\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"cbca0d5f0c3b89d5d91d2ea905ad8ce1\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"8641024bf63230b2786879723aaf0f0a\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"a000c015dc0227ac87b68431ac5c80f4\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"8a67215da2b9e9b3322d2173a9f65356\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"0cef56f4df9ce16fa29d120bcbb8eb2b\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"db1a67a897d2cc5cc22970a106a50e46\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"4f89a72eb120955e11b356f2c872a281\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"99269600dcb315735a8ce21c8f28655c\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"d571f949ace55bb011ab43c91f833b8e\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"7ff410073cee5c90d87df5dd7afd9a52\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"6d704659a921836bac933bbc8e2cf935\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"7f99194e2e72553d47d19d737dea8eb0\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"96c2009c94ce23da09702e42de356231\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"2c757c6c99b0818057d38e9acf10e314\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"0ea1bc7bb50a59c5cd5e0877945e12ec\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"fbb7a7720e50fd64831f7e39f3c89e7a\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"20a45f7661eed9859c78f7ceb9238f17\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"e5036c01058d8ea7646a45026e78af9e\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"b89a747bae305ccc5279c7bd3853daca\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"cc83861bad1c0ee6407033e11dcf2a6e\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"e91861e0c63e84f29d55a1f3f2607302\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"4576ed4793b8b1b6cea9e42e43563ff8\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"c34ebc456f289c9a0fa439f634f1780f\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"4edd5e515438c38e3f1dc740a9004fd1\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"bf85989de210da251b823dbf8be756e9\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"40a32183dfcd22b3f1cbef39010193a4\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"fbe4cc15f899360a7ad34d2887a83248\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"0e79ad989e1025b9c7ddf08c87852db8\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"8dfdfe1b3c92acc911ab8dfee527d106\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"62aa3d55147b6557572cdc8e16e7f2d3\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"3c57d2ea15c35e317b17594b027a733f\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"3bf4f975754200946b94385b8616fb4d\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"47cb2e2a7b601ecf077c749d56f81b9b\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"01a0964d568928371babbbb5d624bc50\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"16d403b392b3bab68acea7d4a3907108\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"765c31a13343c16aaa0caae6ae1b9d41\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"7f52bf751963c3ecdf7bd7d62d105267\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"847c74fd08d2a5a5a0432a6a82ed2660\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"83a6822b1e5d4ab4ccde1a8b4cc10413\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"e1b3588ff3149ec2123d1dd5c1f2e77a\"\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/w3/8z182_j14fbd1p8pn7nc032h0000gn/T/6a18a1eb7e3efe73707b73091d8e5990/service-worker.js"],"sourcesContent":["import {precacheAndRoute as workbox_precaching_precacheAndRoute} from '/Users/davidbenson/.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\n\n\n\n\n\n\nself.skipWaiting();\n\n\n\n\n/**\n * The precacheAndRoute() method efficiently caches and responds to\n * requests for URLs in the manifest.\n * See https://goo.gl/S9QRab\n */\nworkbox_precaching_precacheAndRoute([\n {\n \"url\": \"js/bootstrap.js\",\n \"revision\": \"7536229d93d7ba2ef1620b8a14fc32a5\"\n },\n {\n \"url\": \"js/main.js\",\n \"revision\": \"a8d40469d3d72ab4b11059362f3dd825\"\n },\n {\n \"url\": \"js/app.min.js\",\n \"revision\": \"1c8fa52956ee29693adac56164c29ea0\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"756e8c2e921feff803895a8aa13c62c3\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"2932a9b572ced97336764408a2266f79\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"04c8d9b709f15514592b337ad33aad74\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"2906865fa4f7824eab9b648a6888db80\"\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\": \"23cbac10c03279392888893b3f694007\"\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\": \"e863f5e6833892f22492211663e3efe9\"\n },\n {\n \"url\": \"js/viewer-static.min.js\",\n \"revision\": \"41df076751ab106032020cd42cbed02d\"\n },\n {\n \"url\": \"connect/jira/editor-1-3-3.html\",\n \"revision\": \"41dc8af9576b47f359cff19fff7a41c2\"\n },\n {\n \"url\": \"connect/jira/viewerPanel-1-3-12.html\",\n \"revision\": \"4836f5e4308abe57830e441518364f23\"\n },\n {\n \"url\": \"connect/jira/viewerPanel2.html\",\n \"revision\": \"0dd1ee1343a46b5c03aedbc587450b84\"\n },\n {\n \"url\": \"connect/jira/fullScreenViewer-1-3-3.html\",\n \"revision\": \"abed474e47c0c41a5ad2366b4828f77a\"\n },\n {\n \"url\": \"connect/jira/viewerPanel.js\",\n \"revision\": \"85011efa68d638da560871ee2ab3a6fe\"\n },\n {\n \"url\": \"connect/jira/spinner.gif\",\n \"revision\": \"7d857ab9d86123e93d74d48e958fe743\"\n },\n {\n \"url\": \"connect/jira/editor.js\",\n \"revision\": \"3dc56c6566abaa7af151a8359e5bb556\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer-init.js\",\n \"revision\": \"8f4741834f5ea4698a6737bf35c6bf90\"\n },\n {\n \"url\": \"connect/jira/fullscreen-viewer.js\",\n \"revision\": \"a6be96b8ddc5a25196925713cf34d571\"\n },\n {\n \"url\": \"plugins/connectJira.js\",\n \"revision\": \"db54dba28f9f2510a00411a410c837a0\"\n },\n {\n \"url\": \"plugins/cConf-comments.js\",\n \"revision\": \"e4a4b5a0fb22393693d3b62968c50644\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"9b5e217aed7dd67a665ea42311b4b0c3\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"f504cd3dc65149ee534eca2519545a26\"\n },\n {\n \"url\": \"connect/new_common/cac.js\",\n \"revision\": \"443fb416a407b8a183d0c8f4ecf68808\"\n },\n {\n \"url\": \"connect/gdrive_common/gac.js\",\n \"revision\": \"ac3a28fa16c3e6a36af854fcfc018a81\"\n },\n {\n \"url\": \"connect/onedrive_common/ac.js\",\n \"revision\": \"37c626698573f4419ab9f7ecd7b4bb01\"\n },\n {\n \"url\": \"connect/confluence/viewer-init.js\",\n \"revision\": \"17d1e02ebb74569f2daa7cf18fed0b02\"\n },\n {\n \"url\": \"connect/confluence/viewer.js\",\n \"revision\": \"f25b33ded1392fbb5fcf11b7001f90cd\"\n },\n {\n \"url\": \"connect/confluence/viewer-1-4-42.html\",\n \"revision\": \"69c1bca25fd4889bf832e8441c972268\"\n },\n {\n \"url\": \"connect/confluence/macroEditor-1-4-8.html\",\n \"revision\": \"4ad77ae3f08c19eddac932b2fa8c7068\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram-1-4-8.js\",\n \"revision\": \"489bc44e46d6481277c3f2a5d81a2db6\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"01b04b3f54f1e2e63fcf1df033d24519\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"87e040c6d8cd60105ec027eae13ddf37\"\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\": \"ed384e32fd732d8b0733326f632052da\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"d250e6001fe3c8d02bd22cd71fdb232f\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"f8f351e5aa71e073fb9b1d5b40635d21\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"b199b1ac403fa2920426276105ea2d73\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"eb083e41ad489091f6f4cbc905a3c676\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"f16ec43a143bcc0f7ab1f071a1db13ed\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"5ffba691e2d567cd4d4e05e4a641df1e\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"8619a522b25c137d09ec6f58d46fbf76\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"4f42208101699d1a2ee6e8142bba7ed1\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"810e1e553bb00a95c9c1aef3eb31c1f4\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"10403a9d129f91a61efb07d3038ad63b\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"e054c646cc84e178911568329dc52ff9\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"31f086f414ec98a0efdb28fa278cbbe7\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"236f85ae03f43e3736dbeb998d6b463a\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"8928286a5aeb836704c3348fc3dade78\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"854be5dc5d7b472489ae5d9952b62b4a\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"780b118dd47302c6b2a7854883f1d808\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"dc247b5db168da890278ebb408a4cdc1\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"3e468960e61cc63ff782a092624efc27\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"26e2ddee0f7104efbe51136979f5704f\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"e48be95a2c673247e6cbe25015857300\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"a529c715c409b80c3b972af040128fd1\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"5e06b31f3850d0e7df28b973a5232a33\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"3468765b4b3dd86bcf9fa3d76b95e586\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"314b023a3431c82fcb48caeb8e333989\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"be01fc069b6d13eff7b8cf37458be81d\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"8c8bf6da5697990a1497b2a69ef5d570\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"d273c68edeb28b1cf3a36832f9c50f4d\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"b0a5e58115dbaf43ec2bd6b433b3d134\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"b6172c88a9b66f52f32708ce97b01adf\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"c634860ae6268ba7784d98e1556c3f5d\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"1bf494a3ac525f5dd0bcb8a6991339e6\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"574a880f017d1a427d89aa0795dc6738\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"942e885d085f815f7255b531847ed3aa\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"98af7d0a49e5ad5c2b9b687ee2595392\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"ef9958012927ebd9ee3951c7d3a73a09\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"7fd00041c5f6495bd64cbd72bef5d16e\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"4daa95a68381819c77bf7573615a8a85\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"6a3483d2a5cb5c560fcffa67a9fd48ed\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"0bc5641b3661085a04976c9f70597ba7\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"e691664a9a71f8724e1644144b29df17\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"05826f51521521ae010764b2a1a13cde\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"5bb63886eabea7938eea92566dfc3d98\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"084bc8f13c3b2b773b96d5c739085485\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"06984f7572f58507268da17d98fd9ced\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"c07142d47b2ca6de620edfc442a80731\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"9d940907cd96ecf8b3a498be6de0b41a\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"76e5deac8c7bd75eb798c0e279821132\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"8b3197f1d176e270eec756a5ed57f318\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"5d2beb87beabd62a8f2e8c5cf47bbad9\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"8d51e1277db1c677f1242e774a4c4484\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"46884be5ba8f93294705a9577f292e95\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"dd1a3a83ea7a7f152a2adc061501143d\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"f56d5403c70e0d844920b46b386bd8b1\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"3750097c0227285c9936653286875277\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"da14dfb5c264d807912feb475face35b\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"7d6cb19ef007715776b7c9e42873cf69\"\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,kBACPC,SAAY,oCAEd,CACED,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,gBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,qBACPC,SAAY,oCAEd,CACED,IAAO,qBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,mBACPC,SAAY,oCAEd,CACED,IAAO,aACPC,SAAY,oCAEd,CACED,IAAO,YACPC,SAAY,oCAEd,CACED,IAAO,gBACPC,SAAY,oCAEd,CACED,IAAO,8CACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,oCAEd,CACED,IAAO,uCACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,8BACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,oCACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,4BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,2CACPC,SAAY,oCAEd,CACED,IAAO,4BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,oCACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,wCACPC,SAAY,oCAEd,CACED,IAAO,4CACPC,SAAY,oCAEd,CACED,IAAO,6CACPC,SAAY,oCAEd,CACED,IAAO,yCACPC,SAAY,oCAEd,CACED,IAAO,qCACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,mBACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,8BACPC,SAAY,oCAEd,CACED,IAAO,mCACPC,SAAY,oCAEd,CACED,IAAO,oBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,cACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,kBACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,kCACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,oCAEd,CACED,IAAO,8BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,oBACPC,SAAY,oCAEd,CACED,IAAO,wBACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,2BACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,0BACPC,SAAY,oCAEd,CACED,IAAO,qCACPC,SAAY,oCAEd,CACED,IAAO,gCACPC,SAAY,oCAEd,CACED,IAAO,iCACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,+BACPC,SAAY,oCAEd,CACED,IAAO,sCACPC,SAAY,oCAEd,CACED,IAAO,6BACPC,SAAY,oCAEd,CACED,IAAO,uBACPC,SAAY,oCAEd,CACED,IAAO,kBACPC,SAAY,oCAEd,CACED,IAAO,sBACPC,SAAY,oCAEd,CACED,IAAO,yBACPC,SAAY,qCAEb,CACDC,4BAA+B,CAAC"}\ No newline at end of filediff --git a/src/main/webapp/workbox-72a83b64.js b/src/main/webapp/workbox-72a83b64.jsdeleted file mode 100644index 041626f23..000000000--- a/src/main/webapp/workbox-72a83b64.js+++ /dev/null@@ -1,2 +0,0 @@-define(["exports"],(function(t){"use strict";try{self["workbox:core:6.5.1"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:6.5.1"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class i{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class r extends i{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class o{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=r&&r.handler;const a=t.method;if(!o&&this.i.has(a)&&(o=this.i.get(a)),!o)return;let c;try{c=o.handle({url:s,request:t,event:e,params:i})}catch(t){c=Promise.reject(t)}const h=r&&r.catchHandler;return c instanceof Promise&&(this.o||h)&&(c=c.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),c}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const o=r.match({url:t,sameOrigin:e,request:s,event:n});if(o)return i=o,(Array.isArray(i)&&0===i.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let a;const c={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},h=t=>[c.prefix,t,c.suffix].filter((t=>t&&t.length>0)).join("-"),u=t=>t||h(c.precache),l=t=>t||h(c.runtime);function f(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:6.5.1"]&&_()}catch(t){}function w(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class d{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class p{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.h.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.h=t}}let y;async function g(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=e?e(r):r,a=function(){if(void 0===y){const t=new Response("");if("body"in t)try{new Response(t.body),y=!0}catch(t){y=!1}y=!1}return y}()?i.body:await i.blob();return new Response(a,o)}function R(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class m{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const v=new Set;try{self["workbox:strategies:6.5.1"]&&_()}catch(t){}function q(t){return"string"==typeof t?new Request(t):t}class U{constructor(t,e){this.u={},Object.assign(this,e),this.event=e.event,this.l=t,this.p=new m,this.g=[],this.R=[...t.plugins],this.m=new Map;for(const t of this.R)this.m.set(t,{});this.event.waitUntil(this.p.promise)}async fetch(t){const{event:e}=this;let n=q(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.l.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=q(t);let s;const{cacheName:n,matchOptions:i}=this.l,r=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=q(t);var i;await(i=0,new Promise((t=>setTimeout(t,i))));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=r.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const a=await this.v(e);if(!a)return!1;const{cacheName:c,matchOptions:h}=this.l,u=await self.caches.open(c),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=R(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,r);for(const e of o)if(i===R(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?a.clone():a)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of v)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:c,oldResponse:f,newResponse:a.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.u[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=q(await t({mode:e,request:n,event:this.event,params:this.params}));this.u[s]=n}return this.u[s]}hasCallback(t){for(const e of this.l.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.l.plugins)if("function"==typeof e[t]){const s=this.m.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.g.push(t),t}async doneWaiting(){let t;for(;t=this.g.shift();)await t}destroy(){this.p.resolve(null)}async v(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class L extends class{constructor(t={}){this.cacheName=l(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new U(this,{event:e,request:s,params:n}),r=this.q(i,s,e);return[r,this.U(r,i,s,e)]}async q(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this.L(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async U(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}{constructor(t={}){t.cacheName=u(t.cacheName),super(t),this._=!1!==t.fallbackToNetwork,this.plugins.push(L.copyRedirectedCacheableResponsesPlugin)}async L(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.C(t,e):await this.O(t,e))}async O(t,e){let n;const i=e.params||{};if(!this._)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,o=!r||r===s;n=await e.fetch(new Request(t,{integrity:r||s})),s&&o&&(this.N(),await e.cachePut(t,n.clone()))}return n}async C(t,e){this.N();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}N(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==L.copyRedirectedCacheableResponsesPlugin&&(n===L.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(L.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}L.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},L.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await g(t):t};class b{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.k=new Map,this.K=new Map,this.T=new Map,this.l=new L({cacheName:u(t),plugins:[...e,new p({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.l}precache(t){this.addToCacheList(t),this.W||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.W=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=w(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.k.has(i)&&this.k.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.k.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.T.has(t)&&this.T.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.T.set(t,n.integrity)}if(this.k.set(i,t),this.K.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return f(t,(async()=>{const e=new d;this.strategy.plugins.push(e);for(const[e,s]of this.k){const n=this.T.get(s),i=this.K.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return f(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.k.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.k}getCachedURLs(){return[...this.k.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.k.get(e.href)}getIntegrityForCacheKey(t){return this.T.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}let C;const E=()=>(C||(C=new b),C);class O extends i{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(r,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}function x(t){const e=E();!function(t,e,n){let c;if("string"==typeof t){const s=new URL(t,location.href);c=new i((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)c=new r(t,e,n);else if("function"==typeof t)c=new i(t,e,n);else{if(!(t instanceof i))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});c=t}(a||(a=new o,a.addFetchListener(),a.addCacheListener()),a).registerRoute(c)}(new O(e,t))}t.precacheAndRoute=function(t,e){!function(t){E().precache(t)}(t),x(e)}}));-//# sourceMappingURL=workbox-72a83b64.js.mapdiff --git a/src/main/webapp/workbox-72a83b64.js.map b/src/main/webapp/workbox-72a83b64.js.mapdeleted file mode 100644index 8a652dbbc..000000000--- a/src/main/webapp/workbox-72a83b64.js.map+++ /dev/null@@ -1 +0,0 @@-{"version":3,"file":"workbox-72a83b64.js","sources":["../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_version.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/logger.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/models/messages/messageGenerator.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/WorkboxError.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/_version.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/constants.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/normalizeHandler.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/Route.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/RegExpRoute.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/Router.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/getOrCreateDefaultRouter.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/cacheNames.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/waitUntil.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/_version.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/createCacheKey.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/PrecacheInstallReportPlugin.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/PrecacheCacheKeyPlugin.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/canConstructResponseFromBodyStream.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/copyResponse.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/cacheMatchIgnoreParams.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/Deferred.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/models/quotaErrorCallbacks.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-strategies/_version.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-strategies/StrategyHandler.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/timeout.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/getFriendlyURL.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/executeQuotaErrorCallbacks.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheStrategy.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-strategies/Strategy.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheController.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/getOrCreatePrecacheController.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheRoute.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/generateURLVariations.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/removeIgnoredSearchParams.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/addRoute.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-routing/registerRoute.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.js","../../../../../../opt/homebrew/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precache.js"],"sourcesContent":["\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:core:6.5.1'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst logger = (process.env.NODE_ENV === 'production'\n ? null\n : (() => {\n // Don't overwrite this value if it's already set.\n // See https://github.com/GoogleChrome/workbox/pull/2284#issuecomment-560470923\n if (!('__WB_DISABLE_DEV_LOGS' in self)) {\n self.__WB_DISABLE_DEV_LOGS = false;\n }\n let inGroup = false;\n const methodToColorMap = {\n debug: `#7f8c8d`,\n log: `#2ecc71`,\n warn: `#f39c12`,\n error: `#c0392b`,\n groupCollapsed: `#3498db`,\n groupEnd: null, // No colored prefix on groupEnd\n };\n const print = function (method, args) {\n if (self.__WB_DISABLE_DEV_LOGS) {\n return;\n }\n if (method === 'groupCollapsed') {\n // Safari doesn't print all console.groupCollapsed() arguments:\n // https://bugs.webkit.org/show_bug.cgi?id=182754\n if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n console[method](...args);\n return;\n }\n }\n const styles = [\n `background: ${methodToColorMap[method]}`,\n `border-radius: 0.5em`,\n `color: white`,\n `font-weight: bold`,\n `padding: 2px 0.5em`,\n ];\n // When in a group, the workbox prefix is not displayed.\n const logPrefix = inGroup ? [] : ['%cworkbox', styles.join(';')];\n console[method](...logPrefix, ...args);\n if (method === 'groupCollapsed') {\n inGroup = true;\n }\n if (method === 'groupEnd') {\n inGroup = false;\n }\n };\n // eslint-disable-next-line @typescript-eslint/ban-types\n const api = {};\n const loggerMethods = Object.keys(methodToColorMap);\n for (const key of loggerMethods) {\n const method = key;\n api[method] = (...args) => {\n print(method, args);\n };\n }\n return api;\n })());\nexport { logger };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { messages } from './messages.js';\nimport '../../_version.js';\nconst fallback = (code, ...args) => {\n let msg = code;\n if (args.length > 0) {\n msg += ` :: ${JSON.stringify(args)}`;\n }\n return msg;\n};\nconst generatorFunction = (code, details = {}) => {\n const message = messages[code];\n if (!message) {\n throw new Error(`Unable to find message for code '${code}'.`);\n }\n return message(details);\n};\nexport const messageGenerator = process.env.NODE_ENV === 'production' ? fallback : generatorFunction;\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { messageGenerator } from '../models/messages/messageGenerator.js';\nimport '../_version.js';\n/**\n * Workbox errors should be thrown with this class.\n * This allows use to ensure the type easily in tests,\n * helps developers identify errors from workbox\n * easily and allows use to optimise error\n * messages correctly.\n *\n * @private\n */\nclass WorkboxError extends Error {\n /**\n *\n * @param {string} errorCode The error code that\n * identifies this particular error.\n * @param {Object=} details Any relevant arguments\n * that will help developers identify issues should\n * be added as a key on the context object.\n */\n constructor(errorCode, details) {\n const message = messageGenerator(errorCode, details);\n super(message);\n this.name = errorCode;\n this.details = details;\n }\n}\nexport { WorkboxError };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:routing:6.5.1'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * The default HTTP method, 'GET', used when there's no specific method\n * configured for a route.\n *\n * @type {string}\n *\n * @private\n */\nexport const defaultMethod = 'GET';\n/**\n * The list of valid HTTP methods associated with requests that could be routed.\n *\n * @type {Array<string>}\n *\n * @private\n */\nexport const validMethods = [\n 'DELETE',\n 'GET',\n 'HEAD',\n 'PATCH',\n 'POST',\n 'PUT',\n];\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport '../_version.js';\n/**\n * @param {function()|Object} handler Either a function, or an object with a\n * 'handle' method.\n * @return {Object} An object with a handle method.\n *\n * @private\n */\nexport const normalizeHandler = (handler) => {\n if (handler && typeof handler === 'object') {\n if (process.env.NODE_ENV !== 'production') {\n assert.hasMethod(handler, 'handle', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'handler',\n });\n }\n return handler;\n }\n else {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(handler, 'function', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'handler',\n });\n }\n return { handle: handler };\n }\n};\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { defaultMethod, validMethods } from './utils/constants.js';\nimport { normalizeHandler } from './utils/normalizeHandler.js';\nimport './_version.js';\n/**\n * A `Route` consists of a pair of callback functions, \"match\" and \"handler\".\n * The \"match\" callback determine if a route should be used to \"handle\" a\n * request by returning a non-falsy value if it can. The \"handler\" callback\n * is called when there is a match and should return a Promise that resolves\n * to a `Response`.\n *\n * @memberof workbox-routing\n */\nclass Route {\n /**\n * Constructor for Route class.\n *\n * @param {workbox-routing~matchCallback} match\n * A callback function that determines whether the route matches a given\n * `fetch` event by returning a non-falsy value.\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resolving to a Response.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n */\n constructor(match, handler, method = defaultMethod) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(match, 'function', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'match',\n });\n if (method) {\n assert.isOneOf(method, validMethods, { paramName: 'method' });\n }\n }\n // These values are referenced directly by Router so cannot be\n // altered by minificaton.\n this.handler = normalizeHandler(handler);\n this.match = match;\n this.method = method;\n }\n /**\n *\n * @param {workbox-routing-handlerCallback} handler A callback\n * function that returns a Promise resolving to a Response\n */\n setCatchHandler(handler) {\n this.catchHandler = normalizeHandler(handler);\n }\n}\nexport { Route };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { Route } from './Route.js';\nimport './_version.js';\n/**\n * RegExpRoute makes it easy to create a regular expression based\n * {@link workbox-routing.Route}.\n *\n * For same-origin requests the RegExp only needs to match part of the URL. For\n * requests against third-party servers, you must define a RegExp that matches\n * the start of the URL.\n *\n * @memberof workbox-routing\n * @extends workbox-routing.Route\n */\nclass RegExpRoute extends Route {\n /**\n * If the regular expression contains\n * [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references},\n * the captured values will be passed to the\n * {@link workbox-routing~handlerCallback} `params`\n * argument.\n *\n * @param {RegExp} regExp The regular expression to match against URLs.\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n */\n constructor(regExp, handler, method) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(regExp, RegExp, {\n moduleName: 'workbox-routing',\n className: 'RegExpRoute',\n funcName: 'constructor',\n paramName: 'pattern',\n });\n }\n const match = ({ url }) => {\n const result = regExp.exec(url.href);\n // Return immediately if there's no match.\n if (!result) {\n return;\n }\n // Require that the match start at the first character in the URL string\n // if it's a cross-origin request.\n // See https://github.com/GoogleChrome/workbox/issues/281 for the context\n // behind this behavior.\n if (url.origin !== location.origin && result.index !== 0) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`The regular expression '${regExp.toString()}' only partially matched ` +\n `against the cross-origin URL '${url.toString()}'. RegExpRoute's will only ` +\n `handle cross-origin requests if they match the entire URL.`);\n }\n return;\n }\n // If the route matches, but there aren't any capture groups defined, then\n // this will return [], which is truthy and therefore sufficient to\n // indicate a match.\n // If there are capture groups, then it will return their values.\n return result.slice(1);\n };\n super(match, handler, method);\n }\n}\nexport { RegExpRoute };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { defaultMethod } from './utils/constants.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { normalizeHandler } from './utils/normalizeHandler.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport './_version.js';\n/**\n * The Router can be used to process a `FetchEvent` using one or more\n * {@link workbox-routing.Route}, responding with a `Response` if\n * a matching route exists.\n *\n * If no route matches a given a request, the Router will use a \"default\"\n * handler if one is defined.\n *\n * Should the matching Route throw an error, the Router will use a \"catch\"\n * handler if one is defined to gracefully deal with issues and respond with a\n * Request.\n *\n * If a request matches multiple routes, the **earliest** registered route will\n * be used to respond to the request.\n *\n * @memberof workbox-routing\n */\nclass Router {\n /**\n * Initializes a new Router.\n */\n constructor() {\n this._routes = new Map();\n this._defaultHandlerMap = new Map();\n }\n /**\n * @return {Map<string, Array<workbox-routing.Route>>} routes A `Map` of HTTP\n * method name ('GET', etc.) to an array of all the corresponding `Route`\n * instances that are registered.\n */\n get routes() {\n return this._routes;\n }\n /**\n * Adds a fetch event listener to respond to events when a route matches\n * the event's request.\n */\n addFetchListener() {\n // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705\n self.addEventListener('fetch', ((event) => {\n const { request } = event;\n const responsePromise = this.handleRequest({ request, event });\n if (responsePromise) {\n event.respondWith(responsePromise);\n }\n }));\n }\n /**\n * Adds a message event listener for URLs to cache from the window.\n * This is useful to cache resources loaded on the page prior to when the\n * service worker started controlling it.\n *\n * The format of the message data sent from the window should be as follows.\n * Where the `urlsToCache` array may consist of URL strings or an array of\n * URL string + `requestInit` object (the same as you'd pass to `fetch()`).\n *\n * ```\n * {\n * type: 'CACHE_URLS',\n * payload: {\n * urlsToCache: [\n * './script1.js',\n * './script2.js',\n * ['./script3.js', {mode: 'no-cors'}],\n * ],\n * },\n * }\n * ```\n */\n addCacheListener() {\n // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705\n self.addEventListener('message', ((event) => {\n // event.data is type 'any'\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (event.data && event.data.type === 'CACHE_URLS') {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const { payload } = event.data;\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Caching URLs from the window`, payload.urlsToCache);\n }\n const requestPromises = Promise.all(payload.urlsToCache.map((entry) => {\n if (typeof entry === 'string') {\n entry = [entry];\n }\n const request = new Request(...entry);\n return this.handleRequest({ request, event });\n // TODO(philipwalton): TypeScript errors without this typecast for\n // some reason (probably a bug). The real type here should work but\n // doesn't: `Array<Promise<Response> | undefined>`.\n })); // TypeScript\n event.waitUntil(requestPromises);\n // If a MessageChannel was used, reply to the message on success.\n if (event.ports && event.ports[0]) {\n void requestPromises.then(() => event.ports[0].postMessage(true));\n }\n }\n }));\n }\n /**\n * Apply the routing rules to a FetchEvent object to get a Response from an\n * appropriate Route's handler.\n *\n * @param {Object} options\n * @param {Request} options.request The request to handle.\n * @param {ExtendableEvent} options.event The event that triggered the\n * request.\n * @return {Promise<Response>|undefined} A promise is returned if a\n * registered route can handle the request. If there is no matching\n * route and there's no `defaultHandler`, `undefined` is returned.\n */\n handleRequest({ request, event, }) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(request, Request, {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'handleRequest',\n paramName: 'options.request',\n });\n }\n const url = new URL(request.url, location.href);\n if (!url.protocol.startsWith('http')) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Workbox Router only supports URLs that start with 'http'.`);\n }\n return;\n }\n const sameOrigin = url.origin === location.origin;\n const { params, route } = this.findMatchingRoute({\n event,\n request,\n sameOrigin,\n url,\n });\n let handler = route && route.handler;\n const debugMessages = [];\n if (process.env.NODE_ENV !== 'production') {\n if (handler) {\n debugMessages.push([`Found a route to handle this request:`, route]);\n if (params) {\n debugMessages.push([\n `Passing the following params to the route's handler:`,\n params,\n ]);\n }\n }\n }\n // If we don't have a handler because there was no matching route, then\n // fall back to defaultHandler if that's defined.\n const method = request.method;\n if (!handler && this._defaultHandlerMap.has(method)) {\n if (process.env.NODE_ENV !== 'production') {\n debugMessages.push(`Failed to find a matching route. Falling ` +\n `back to the default handler for ${method}.`);\n }\n handler = this._defaultHandlerMap.get(method);\n }\n if (!handler) {\n if (process.env.NODE_ENV !== 'production') {\n // No handler so Workbox will do nothing. If logs is set of debug\n // i.e. verbose, we should print out this information.\n logger.debug(`No route found for: ${getFriendlyURL(url)}`);\n }\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // We have a handler, meaning Workbox is going to handle the route.\n // print the routing details to the console.\n logger.groupCollapsed(`Router is responding to: ${getFriendlyURL(url)}`);\n debugMessages.forEach((msg) => {\n if (Array.isArray(msg)) {\n logger.log(...msg);\n }\n else {\n logger.log(msg);\n }\n });\n logger.groupEnd();\n }\n // Wrap in try and catch in case the handle method throws a synchronous\n // error. It should still callback to the catch handler.\n let responsePromise;\n try {\n responsePromise = handler.handle({ url, request, event, params });\n }\n catch (err) {\n responsePromise = Promise.reject(err);\n }\n // Get route's catch handler, if it exists\n const catchHandler = route && route.catchHandler;\n if (responsePromise instanceof Promise &&\n (this._catchHandler || catchHandler)) {\n responsePromise = responsePromise.catch(async (err) => {\n // If there's a route catch handler, process that first\n if (catchHandler) {\n if (process.env.NODE_ENV !== 'production') {\n // Still include URL here as it will be async from the console group\n // and may not make sense without the URL\n logger.groupCollapsed(`Error thrown when responding to: ` +\n ` ${getFriendlyURL(url)}. Falling back to route's Catch Handler.`);\n logger.error(`Error thrown by:`, route);\n logger.error(err);\n logger.groupEnd();\n }\n try {\n return await catchHandler.handle({ url, request, event, params });\n }\n catch (catchErr) {\n if (catchErr instanceof Error) {\n err = catchErr;\n }\n }\n }\n if (this._catchHandler) {\n if (process.env.NODE_ENV !== 'production') {\n // Still include URL here as it will be async from the console group\n // and may not make sense without the URL\n logger.groupCollapsed(`Error thrown when responding to: ` +\n ` ${getFriendlyURL(url)}. Falling back to global Catch Handler.`);\n logger.error(`Error thrown by:`, route);\n logger.error(err);\n logger.groupEnd();\n }\n return this._catchHandler.handle({ url, request, event });\n }\n throw err;\n });\n }\n return responsePromise;\n }\n /**\n * Checks a request and URL (and optionally an event) against the list of\n * registered routes, and if there's a match, returns the corresponding\n * route along with any params generated by the match.\n *\n * @param {Object} options\n * @param {URL} options.url\n * @param {boolean} options.sameOrigin The result of comparing `url.origin`\n * against the current origin.\n * @param {Request} options.request The request to match.\n * @param {Event} options.event The corresponding event.\n * @return {Object} An object with `route` and `params` properties.\n * They are populated if a matching route was found or `undefined`\n * otherwise.\n */\n findMatchingRoute({ url, sameOrigin, request, event, }) {\n const routes = this._routes.get(request.method) || [];\n for (const route of routes) {\n let params;\n // route.match returns type any, not possible to change right now.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const matchResult = route.match({ url, sameOrigin, request, event });\n if (matchResult) {\n if (process.env.NODE_ENV !== 'production') {\n // Warn developers that using an async matchCallback is almost always\n // not the right thing to do.\n if (matchResult instanceof Promise) {\n logger.warn(`While routing ${getFriendlyURL(url)}, an async ` +\n `matchCallback function was used. Please convert the ` +\n `following route to use a synchronous matchCallback function:`, route);\n }\n }\n // See https://github.com/GoogleChrome/workbox/issues/2079\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n params = matchResult;\n if (Array.isArray(params) && params.length === 0) {\n // Instead of passing an empty array in as params, use undefined.\n params = undefined;\n }\n else if (matchResult.constructor === Object && // eslint-disable-line\n Object.keys(matchResult).length === 0) {\n // Instead of passing an empty object in as params, use undefined.\n params = undefined;\n }\n else if (typeof matchResult === 'boolean') {\n // For the boolean value true (rather than just something truth-y),\n // don't set params.\n // See https://github.com/GoogleChrome/workbox/pull/2134#issuecomment-513924353\n params = undefined;\n }\n // Return early if have a match.\n return { route, params };\n }\n }\n // If no match was found above, return and empty object.\n return {};\n }\n /**\n * Define a default `handler` that's called when no routes explicitly\n * match the incoming request.\n *\n * Each HTTP method ('GET', 'POST', etc.) gets its own default handler.\n *\n * Without a default handler, unmatched requests will go against the\n * network as if there were no service worker present.\n *\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n * @param {string} [method='GET'] The HTTP method to associate with this\n * default handler. Each method has its own default.\n */\n setDefaultHandler(handler, method = defaultMethod) {\n this._defaultHandlerMap.set(method, normalizeHandler(handler));\n }\n /**\n * If a Route throws an error while handling a request, this `handler`\n * will be called and given a chance to provide a response.\n *\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n */\n setCatchHandler(handler) {\n this._catchHandler = normalizeHandler(handler);\n }\n /**\n * Registers a route with the router.\n *\n * @param {workbox-routing.Route} route The route to register.\n */\n registerRoute(route) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(route, 'object', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.hasMethod(route, 'match', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.isType(route.handler, 'object', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.hasMethod(route.handler, 'handle', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route.handler',\n });\n assert.isType(route.method, 'string', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route.method',\n });\n }\n if (!this._routes.has(route.method)) {\n this._routes.set(route.method, []);\n }\n // Give precedence to all of the earlier routes by adding this additional\n // route to the end of the array.\n this._routes.get(route.method).push(route);\n }\n /**\n * Unregisters a route with the router.\n *\n * @param {workbox-routing.Route} route The route to unregister.\n */\n unregisterRoute(route) {\n if (!this._routes.has(route.method)) {\n throw new WorkboxError('unregister-route-but-not-found-with-method', {\n method: route.method,\n });\n }\n const routeIndex = this._routes.get(route.method).indexOf(route);\n if (routeIndex > -1) {\n this._routes.get(route.method).splice(routeIndex, 1);\n }\n else {\n throw new WorkboxError('unregister-route-route-not-registered');\n }\n }\n}\nexport { Router };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { Router } from '../Router.js';\nimport '../_version.js';\nlet defaultRouter;\n/**\n * Creates a new, singleton Router instance if one does not exist. If one\n * does already exist, that instance is returned.\n *\n * @private\n * @return {Router}\n */\nexport const getOrCreateDefaultRouter = () => {\n if (!defaultRouter) {\n defaultRouter = new Router();\n // The helpers that use the default Router assume these listeners exist.\n defaultRouter.addFetchListener();\n defaultRouter.addCacheListener();\n }\n return defaultRouter;\n};\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst _cacheNameDetails = {\n googleAnalytics: 'googleAnalytics',\n precache: 'precache-v2',\n prefix: 'workbox',\n runtime: 'runtime',\n suffix: typeof registration !== 'undefined' ? registration.scope : '',\n};\nconst _createCacheName = (cacheName) => {\n return [_cacheNameDetails.prefix, cacheName, _cacheNameDetails.suffix]\n .filter((value) => value && value.length > 0)\n .join('-');\n};\nconst eachCacheNameDetail = (fn) => {\n for (const key of Object.keys(_cacheNameDetails)) {\n fn(key);\n }\n};\nexport const cacheNames = {\n updateDetails: (details) => {\n eachCacheNameDetail((key) => {\n if (typeof details[key] === 'string') {\n _cacheNameDetails[key] = details[key];\n }\n });\n },\n getGoogleAnalyticsName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.googleAnalytics);\n },\n getPrecacheName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.precache);\n },\n getPrefix: () => {\n return _cacheNameDetails.prefix;\n },\n getRuntimeName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.runtime);\n },\n getSuffix: () => {\n return _cacheNameDetails.suffix;\n },\n};\n","/*\n Copyright 2020 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A utility method that makes it easier to use `event.waitUntil` with\n * async functions and return the result.\n *\n * @param {ExtendableEvent} event\n * @param {Function} asyncFn\n * @return {Function}\n * @private\n */\nfunction waitUntil(event, asyncFn) {\n const returnPromise = asyncFn();\n event.waitUntil(returnPromise);\n return returnPromise;\n}\nexport { waitUntil };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:precaching:6.5.1'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport '../_version.js';\n// Name of the search parameter used to store revision info.\nconst REVISION_SEARCH_PARAM = '__WB_REVISION__';\n/**\n * Converts a manifest entry into a versioned URL suitable for precaching.\n *\n * @param {Object|string} entry\n * @return {string} A URL with versioning info.\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function createCacheKey(entry) {\n if (!entry) {\n throw new WorkboxError('add-to-cache-list-unexpected-type', { entry });\n }\n // If a precache manifest entry is a string, it's assumed to be a versioned\n // URL, like '/app.abcd1234.js'. Return as-is.\n if (typeof entry === 'string') {\n const urlObject = new URL(entry, location.href);\n return {\n cacheKey: urlObject.href,\n url: urlObject.href,\n };\n }\n const { revision, url } = entry;\n if (!url) {\n throw new WorkboxError('add-to-cache-list-unexpected-type', { entry });\n }\n // If there's just a URL and no revision, then it's also assumed to be a\n // versioned URL.\n if (!revision) {\n const urlObject = new URL(url, location.href);\n return {\n cacheKey: urlObject.href,\n url: urlObject.href,\n };\n }\n // Otherwise, construct a properly versioned URL using the custom Workbox\n // search parameter along with the revision info.\n const cacheKeyURL = new URL(url, location.href);\n const originalURL = new URL(url, location.href);\n cacheKeyURL.searchParams.set(REVISION_SEARCH_PARAM, revision);\n return {\n cacheKey: cacheKeyURL.href,\n url: originalURL.href,\n };\n}\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A plugin, designed to be used with PrecacheController, to determine the\n * of assets that were updated (or not updated) during the install event.\n *\n * @private\n */\nclass PrecacheInstallReportPlugin {\n constructor() {\n this.updatedURLs = [];\n this.notUpdatedURLs = [];\n this.handlerWillStart = async ({ request, state, }) => {\n // TODO: `state` should never be undefined...\n if (state) {\n state.originalRequest = request;\n }\n };\n this.cachedResponseWillBeUsed = async ({ event, state, cachedResponse, }) => {\n if (event.type === 'install') {\n if (state &&\n state.originalRequest &&\n state.originalRequest instanceof Request) {\n // TODO: `state` should never be undefined...\n const url = state.originalRequest.url;\n if (cachedResponse) {\n this.notUpdatedURLs.push(url);\n }\n else {\n this.updatedURLs.push(url);\n }\n }\n }\n return cachedResponse;\n };\n }\n}\nexport { PrecacheInstallReportPlugin };\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A plugin, designed to be used with PrecacheController, to translate URLs into\n * the corresponding cache key, based on the current revision info.\n *\n * @private\n */\nclass PrecacheCacheKeyPlugin {\n constructor({ precacheController }) {\n this.cacheKeyWillBeUsed = async ({ request, params, }) => {\n // Params is type any, can't change right now.\n /* eslint-disable */\n const cacheKey = (params === null || params === void 0 ? void 0 : params.cacheKey) ||\n this._precacheController.getCacheKeyForURL(request.url);\n /* eslint-enable */\n return cacheKey\n ? new Request(cacheKey, { headers: request.headers })\n : request;\n };\n this._precacheController = precacheController;\n }\n}\nexport { PrecacheCacheKeyPlugin };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nlet supportStatus;\n/**\n * A utility function that determines whether the current browser supports\n * constructing a new `Response` from a `response.body` stream.\n *\n * @return {boolean} `true`, if the current browser can successfully\n * construct a `Response` from a `response.body` stream, `false` otherwise.\n *\n * @private\n */\nfunction canConstructResponseFromBodyStream() {\n if (supportStatus === undefined) {\n const testResponse = new Response('');\n if ('body' in testResponse) {\n try {\n new Response(testResponse.body);\n supportStatus = true;\n }\n catch (error) {\n supportStatus = false;\n }\n }\n supportStatus = false;\n }\n return supportStatus;\n}\nexport { canConstructResponseFromBodyStream };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { canConstructResponseFromBodyStream } from './_private/canConstructResponseFromBodyStream.js';\nimport { WorkboxError } from './_private/WorkboxError.js';\nimport './_version.js';\n/**\n * Allows developers to copy a response and modify its `headers`, `status`,\n * or `statusText` values (the values settable via a\n * [`ResponseInit`]{@link https://developer.mozilla.org/en-US/docs/Web/API/Response/Response#Syntax}\n * object in the constructor).\n * To modify these values, pass a function as the second argument. That\n * function will be invoked with a single object with the response properties\n * `{headers, status, statusText}`. The return value of this function will\n * be used as the `ResponseInit` for the new `Response`. To change the values\n * either modify the passed parameter(s) and return it, or return a totally\n * new object.\n *\n * This method is intentionally limited to same-origin responses, regardless of\n * whether CORS was used or not.\n *\n * @param {Response} response\n * @param {Function} modifier\n * @memberof workbox-core\n */\nasync function copyResponse(response, modifier) {\n let origin = null;\n // If response.url isn't set, assume it's cross-origin and keep origin null.\n if (response.url) {\n const responseURL = new URL(response.url);\n origin = responseURL.origin;\n }\n if (origin !== self.location.origin) {\n throw new WorkboxError('cross-origin-copy-response', { origin });\n }\n const clonedResponse = response.clone();\n // Create a fresh `ResponseInit` object by cloning the headers.\n const responseInit = {\n headers: new Headers(clonedResponse.headers),\n status: clonedResponse.status,\n statusText: clonedResponse.statusText,\n };\n // Apply any user modifications.\n const modifiedResponseInit = modifier ? modifier(responseInit) : responseInit;\n // Create the new response from the body stream and `ResponseInit`\n // modifications. Note: not all browsers support the Response.body stream,\n // so fall back to reading the entire body into memory as a blob.\n const body = canConstructResponseFromBodyStream()\n ? clonedResponse.body\n : await clonedResponse.blob();\n return new Response(body, modifiedResponseInit);\n}\nexport { copyResponse };\n","/*\n Copyright 2020 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nfunction stripParams(fullURL, ignoreParams) {\n const strippedURL = new URL(fullURL);\n for (const param of ignoreParams) {\n strippedURL.searchParams.delete(param);\n }\n return strippedURL.href;\n}\n/**\n * Matches an item in the cache, ignoring specific URL params. This is similar\n * to the `ignoreSearch` option, but it allows you to ignore just specific\n * params (while continuing to match on the others).\n *\n * @private\n * @param {Cache} cache\n * @param {Request} request\n * @param {Object} matchOptions\n * @param {Array<string>} ignoreParams\n * @return {Promise<Response|undefined>}\n */\nasync function cacheMatchIgnoreParams(cache, request, ignoreParams, matchOptions) {\n const strippedRequestURL = stripParams(request.url, ignoreParams);\n // If the request doesn't include any ignored params, match as normal.\n if (request.url === strippedRequestURL) {\n return cache.match(request, matchOptions);\n }\n // Otherwise, match by comparing keys\n const keysOptions = Object.assign(Object.assign({}, matchOptions), { ignoreSearch: true });\n const cacheKeys = await cache.keys(request, keysOptions);\n for (const cacheKey of cacheKeys) {\n const strippedCacheKeyURL = stripParams(cacheKey.url, ignoreParams);\n if (strippedRequestURL === strippedCacheKeyURL) {\n return cache.match(cacheKey, matchOptions);\n }\n }\n return;\n}\nexport { cacheMatchIgnoreParams };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * The Deferred class composes Promises in a way that allows for them to be\n * resolved or rejected from outside the constructor. In most cases promises\n * should be used directly, but Deferreds can be necessary when the logic to\n * resolve a promise must be separate.\n *\n * @private\n */\nclass Deferred {\n /**\n * Creates a promise and exposes its resolve and reject functions as methods.\n */\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n }\n}\nexport { Deferred };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n// Callbacks to be executed whenever there's a quota error.\n// Can't change Function type right now.\n// eslint-disable-next-line @typescript-eslint/ban-types\nconst quotaErrorCallbacks = new Set();\nexport { quotaErrorCallbacks };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:strategies:6.5.1'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { cacheMatchIgnoreParams } from 'workbox-core/_private/cacheMatchIgnoreParams.js';\nimport { Deferred } from 'workbox-core/_private/Deferred.js';\nimport { executeQuotaErrorCallbacks } from 'workbox-core/_private/executeQuotaErrorCallbacks.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { timeout } from 'workbox-core/_private/timeout.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport './_version.js';\nfunction toRequest(input) {\n return typeof input === 'string' ? new Request(input) : input;\n}\n/**\n * A class created every time a Strategy instance instance calls\n * {@link workbox-strategies.Strategy~handle} or\n * {@link workbox-strategies.Strategy~handleAll} that wraps all fetch and\n * cache actions around plugin callbacks and keeps track of when the strategy\n * is \"done\" (i.e. all added `event.waitUntil()` promises have resolved).\n *\n * @memberof workbox-strategies\n */\nclass StrategyHandler {\n /**\n * Creates a new instance associated with the passed strategy and event\n * that's handling the request.\n *\n * The constructor also initializes the state that will be passed to each of\n * the plugins handling this request.\n *\n * @param {workbox-strategies.Strategy} strategy\n * @param {Object} options\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params] The return value from the\n * {@link workbox-routing~matchCallback} (if applicable).\n */\n constructor(strategy, options) {\n this._cacheKeys = {};\n /**\n * The request the strategy is performing (passed to the strategy's\n * `handle()` or `handleAll()` method).\n * @name request\n * @instance\n * @type {Request}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * The event associated with this request.\n * @name event\n * @instance\n * @type {ExtendableEvent}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * A `URL` instance of `request.url` (if passed to the strategy's\n * `handle()` or `handleAll()` method).\n * Note: the `url` param will be present if the strategy was invoked\n * from a workbox `Route` object.\n * @name url\n * @instance\n * @type {URL|undefined}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * A `param` value (if passed to the strategy's\n * `handle()` or `handleAll()` method).\n * Note: the `param` param will be present if the strategy was invoked\n * from a workbox `Route` object and the\n * {@link workbox-routing~matchCallback} returned\n * a truthy value (it will be that value).\n * @name params\n * @instance\n * @type {*|undefined}\n * @memberof workbox-strategies.StrategyHandler\n */\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(options.event, ExtendableEvent, {\n moduleName: 'workbox-strategies',\n className: 'StrategyHandler',\n funcName: 'constructor',\n paramName: 'options.event',\n });\n }\n Object.assign(this, options);\n this.event = options.event;\n this._strategy = strategy;\n this._handlerDeferred = new Deferred();\n this._extendLifetimePromises = [];\n // Copy the plugins list (since it's mutable on the strategy),\n // so any mutations don't affect this handler instance.\n this._plugins = [...strategy.plugins];\n this._pluginStateMap = new Map();\n for (const plugin of this._plugins) {\n this._pluginStateMap.set(plugin, {});\n }\n this.event.waitUntil(this._handlerDeferred.promise);\n }\n /**\n * Fetches a given request (and invokes any applicable plugin callback\n * methods) using the `fetchOptions` (for non-navigation requests) and\n * `plugins` defined on the `Strategy` object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - `requestWillFetch()`\n * - `fetchDidSucceed()`\n * - `fetchDidFail()`\n *\n * @param {Request|string} input The URL or request to fetch.\n * @return {Promise<Response>}\n */\n async fetch(input) {\n const { event } = this;\n let request = toRequest(input);\n if (request.mode === 'navigate' &&\n event instanceof FetchEvent &&\n event.preloadResponse) {\n const possiblePreloadResponse = (await event.preloadResponse);\n if (possiblePreloadResponse) {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`Using a preloaded navigation response for ` +\n `'${getFriendlyURL(request.url)}'`);\n }\n return possiblePreloadResponse;\n }\n }\n // If there is a fetchDidFail plugin, we need to save a clone of the\n // original request before it's either modified by a requestWillFetch\n // plugin or before the original request's body is consumed via fetch().\n const originalRequest = this.hasCallback('fetchDidFail')\n ? request.clone()\n : null;\n try {\n for (const cb of this.iterateCallbacks('requestWillFetch')) {\n request = await cb({ request: request.clone(), event });\n }\n }\n catch (err) {\n if (err instanceof Error) {\n throw new WorkboxError('plugin-error-request-will-fetch', {\n thrownErrorMessage: err.message,\n });\n }\n }\n // The request can be altered by plugins with `requestWillFetch` making\n // the original request (most likely from a `fetch` event) different\n // from the Request we make. Pass both to `fetchDidFail` to aid debugging.\n const pluginFilteredRequest = request.clone();\n try {\n let fetchResponse;\n // See https://github.com/GoogleChrome/workbox/issues/1796\n fetchResponse = await fetch(request, request.mode === 'navigate' ? undefined : this._strategy.fetchOptions);\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Network request for ` +\n `'${getFriendlyURL(request.url)}' returned a response with ` +\n `status '${fetchResponse.status}'.`);\n }\n for (const callback of this.iterateCallbacks('fetchDidSucceed')) {\n fetchResponse = await callback({\n event,\n request: pluginFilteredRequest,\n response: fetchResponse,\n });\n }\n return fetchResponse;\n }\n catch (error) {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`Network request for ` +\n `'${getFriendlyURL(request.url)}' threw an error.`, error);\n }\n // `originalRequest` will only exist if a `fetchDidFail` callback\n // is being used (see above).\n if (originalRequest) {\n await this.runCallbacks('fetchDidFail', {\n error: error,\n event,\n originalRequest: originalRequest.clone(),\n request: pluginFilteredRequest.clone(),\n });\n }\n throw error;\n }\n }\n /**\n * Calls `this.fetch()` and (in the background) runs `this.cachePut()` on\n * the response generated by `this.fetch()`.\n *\n * The call to `this.cachePut()` automatically invokes `this.waitUntil()`,\n * so you do not have to manually call `waitUntil()` on the event.\n *\n * @param {Request|string} input The request or URL to fetch and cache.\n * @return {Promise<Response>}\n */\n async fetchAndCachePut(input) {\n const response = await this.fetch(input);\n const responseClone = response.clone();\n void this.waitUntil(this.cachePut(input, responseClone));\n return response;\n }\n /**\n * Matches a request from the cache (and invokes any applicable plugin\n * callback methods) using the `cacheName`, `matchOptions`, and `plugins`\n * defined on the strategy object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - cacheKeyWillByUsed()\n * - cachedResponseWillByUsed()\n *\n * @param {Request|string} key The Request or URL to use as the cache key.\n * @return {Promise<Response|undefined>} A matching response, if found.\n */\n async cacheMatch(key) {\n const request = toRequest(key);\n let cachedResponse;\n const { cacheName, matchOptions } = this._strategy;\n const effectiveRequest = await this.getCacheKey(request, 'read');\n const multiMatchOptions = Object.assign(Object.assign({}, matchOptions), { cacheName });\n cachedResponse = await caches.match(effectiveRequest, multiMatchOptions);\n if (process.env.NODE_ENV !== 'production') {\n if (cachedResponse) {\n logger.debug(`Found a cached response in '${cacheName}'.`);\n }\n else {\n logger.debug(`No cached response found in '${cacheName}'.`);\n }\n }\n for (const callback of this.iterateCallbacks('cachedResponseWillBeUsed')) {\n cachedResponse =\n (await callback({\n cacheName,\n matchOptions,\n cachedResponse,\n request: effectiveRequest,\n event: this.event,\n })) || undefined;\n }\n return cachedResponse;\n }\n /**\n * Puts a request/response pair in the cache (and invokes any applicable\n * plugin callback methods) using the `cacheName` and `plugins` defined on\n * the strategy object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - cacheKeyWillByUsed()\n * - cacheWillUpdate()\n * - cacheDidUpdate()\n *\n * @param {Request|string} key The request or URL to use as the cache key.\n * @param {Response} response The response to cache.\n * @return {Promise<boolean>} `false` if a cacheWillUpdate caused the response\n * not be cached, and `true` otherwise.\n */\n async cachePut(key, response) {\n const request = toRequest(key);\n // Run in the next task to avoid blocking other cache reads.\n // https://github.com/w3c/ServiceWorker/issues/1397\n await timeout(0);\n const effectiveRequest = await this.getCacheKey(request, 'write');\n if (process.env.NODE_ENV !== 'production') {\n if (effectiveRequest.method && effectiveRequest.method !== 'GET') {\n throw new WorkboxError('attempt-to-cache-non-get-request', {\n url: getFriendlyURL(effectiveRequest.url),\n method: effectiveRequest.method,\n });\n }\n // See https://github.com/GoogleChrome/workbox/issues/2818\n const vary = response.headers.get('Vary');\n if (vary) {\n logger.debug(`The response for ${getFriendlyURL(effectiveRequest.url)} ` +\n `has a 'Vary: ${vary}' header. ` +\n `Consider setting the {ignoreVary: true} option on your strategy ` +\n `to ensure cache matching and deletion works as expected.`);\n }\n }\n if (!response) {\n if (process.env.NODE_ENV !== 'production') {\n logger.error(`Cannot cache non-existent response for ` +\n `'${getFriendlyURL(effectiveRequest.url)}'.`);\n }\n throw new WorkboxError('cache-put-with-no-response', {\n url: getFriendlyURL(effectiveRequest.url),\n });\n }\n const responseToCache = await this._ensureResponseSafeToCache(response);\n if (!responseToCache) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Response '${getFriendlyURL(effectiveRequest.url)}' ` +\n `will not be cached.`, responseToCache);\n }\n return false;\n }\n const { cacheName, matchOptions } = this._strategy;\n const cache = await self.caches.open(cacheName);\n const hasCacheUpdateCallback = this.hasCallback('cacheDidUpdate');\n const oldResponse = hasCacheUpdateCallback\n ? await cacheMatchIgnoreParams(\n // TODO(philipwalton): the `__WB_REVISION__` param is a precaching\n // feature. Consider into ways to only add this behavior if using\n // precaching.\n cache, effectiveRequest.clone(), ['__WB_REVISION__'], matchOptions)\n : null;\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Updating the '${cacheName}' cache with a new Response ` +\n `for ${getFriendlyURL(effectiveRequest.url)}.`);\n }\n try {\n await cache.put(effectiveRequest, hasCacheUpdateCallback ? responseToCache.clone() : responseToCache);\n }\n catch (error) {\n if (error instanceof Error) {\n // See https://developer.mozilla.org/en-US/docs/Web/API/DOMException#exception-QuotaExceededError\n if (error.name === 'QuotaExceededError') {\n await executeQuotaErrorCallbacks();\n }\n throw error;\n }\n }\n for (const callback of this.iterateCallbacks('cacheDidUpdate')) {\n await callback({\n cacheName,\n oldResponse,\n newResponse: responseToCache.clone(),\n request: effectiveRequest,\n event: this.event,\n });\n }\n return true;\n }\n /**\n * Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and\n * executes any of those callbacks found in sequence. The final `Request`\n * object returned by the last plugin is treated as the cache key for cache\n * reads and/or writes. If no `cacheKeyWillBeUsed` plugin callbacks have\n * been registered, the passed request is returned unmodified\n *\n * @param {Request} request\n * @param {string} mode\n * @return {Promise<Request>}\n */\n async getCacheKey(request, mode) {\n const key = `${request.url} | ${mode}`;\n if (!this._cacheKeys[key]) {\n let effectiveRequest = request;\n for (const callback of this.iterateCallbacks('cacheKeyWillBeUsed')) {\n effectiveRequest = toRequest(await callback({\n mode,\n request: effectiveRequest,\n event: this.event,\n // params has a type any can't change right now.\n params: this.params, // eslint-disable-line\n }));\n }\n this._cacheKeys[key] = effectiveRequest;\n }\n return this._cacheKeys[key];\n }\n /**\n * Returns true if the strategy has at least one plugin with the given\n * callback.\n *\n * @param {string} name The name of the callback to check for.\n * @return {boolean}\n */\n hasCallback(name) {\n for (const plugin of this._strategy.plugins) {\n if (name in plugin) {\n return true;\n }\n }\n return false;\n }\n /**\n * Runs all plugin callbacks matching the given name, in order, passing the\n * given param object (merged ith the current plugin state) as the only\n * argument.\n *\n * Note: since this method runs all plugins, it's not suitable for cases\n * where the return value of a callback needs to be applied prior to calling\n * the next callback. See\n * {@link workbox-strategies.StrategyHandler#iterateCallbacks}\n * below for how to handle that case.\n *\n * @param {string} name The name of the callback to run within each plugin.\n * @param {Object} param The object to pass as the first (and only) param\n * when executing each callback. This object will be merged with the\n * current plugin state prior to callback execution.\n */\n async runCallbacks(name, param) {\n for (const callback of this.iterateCallbacks(name)) {\n // TODO(philipwalton): not sure why `any` is needed. It seems like\n // this should work with `as WorkboxPluginCallbackParam[C]`.\n await callback(param);\n }\n }\n /**\n * Accepts a callback and returns an iterable of matching plugin callbacks,\n * where each callback is wrapped with the current handler state (i.e. when\n * you call each callback, whatever object parameter you pass it will\n * be merged with the plugin's current state).\n *\n * @param {string} name The name fo the callback to run\n * @return {Array<Function>}\n */\n *iterateCallbacks(name) {\n for (const plugin of this._strategy.plugins) {\n if (typeof plugin[name] === 'function') {\n const state = this._pluginStateMap.get(plugin);\n const statefulCallback = (param) => {\n const statefulParam = Object.assign(Object.assign({}, param), { state });\n // TODO(philipwalton): not sure why `any` is needed. It seems like\n // this should work with `as WorkboxPluginCallbackParam[C]`.\n return plugin[name](statefulParam);\n };\n yield statefulCallback;\n }\n }\n }\n /**\n * Adds a promise to the\n * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises}\n * of the event event associated with the request being handled (usually a\n * `FetchEvent`).\n *\n * Note: you can await\n * {@link workbox-strategies.StrategyHandler~doneWaiting}\n * to know when all added promises have settled.\n *\n * @param {Promise} promise A promise to add to the extend lifetime promises\n * of the event that triggered the request.\n */\n waitUntil(promise) {\n this._extendLifetimePromises.push(promise);\n return promise;\n }\n /**\n * Returns a promise that resolves once all promises passed to\n * {@link workbox-strategies.StrategyHandler~waitUntil}\n * have settled.\n *\n * Note: any work done after `doneWaiting()` settles should be manually\n * passed to an event's `waitUntil()` method (not this handler's\n * `waitUntil()` method), otherwise the service worker thread my be killed\n * prior to your work completing.\n */\n async doneWaiting() {\n let promise;\n while ((promise = this._extendLifetimePromises.shift())) {\n await promise;\n }\n }\n /**\n * Stops running the strategy and immediately resolves any pending\n * `waitUntil()` promises.\n */\n destroy() {\n this._handlerDeferred.resolve(null);\n }\n /**\n * This method will call cacheWillUpdate on the available plugins (or use\n * status === 200) to determine if the Response is safe and valid to cache.\n *\n * @param {Request} options.request\n * @param {Response} options.response\n * @return {Promise<Response|undefined>}\n *\n * @private\n */\n async _ensureResponseSafeToCache(response) {\n let responseToCache = response;\n let pluginsUsed = false;\n for (const callback of this.iterateCallbacks('cacheWillUpdate')) {\n responseToCache =\n (await callback({\n request: this.request,\n response: responseToCache,\n event: this.event,\n })) || undefined;\n pluginsUsed = true;\n if (!responseToCache) {\n break;\n }\n }\n if (!pluginsUsed) {\n if (responseToCache && responseToCache.status !== 200) {\n responseToCache = undefined;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (responseToCache) {\n if (responseToCache.status !== 200) {\n if (responseToCache.status === 0) {\n logger.warn(`The response for '${this.request.url}' ` +\n `is an opaque response. The caching strategy that you're ` +\n `using will not cache opaque responses by default.`);\n }\n else {\n logger.debug(`The response for '${this.request.url}' ` +\n `returned a status code of '${response.status}' and won't ` +\n `be cached as a result.`);\n }\n }\n }\n }\n }\n return responseToCache;\n }\n}\nexport { StrategyHandler };\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * Returns a promise that resolves and the passed number of milliseconds.\n * This utility is an async/await-friendly version of `setTimeout`.\n *\n * @param {number} ms\n * @return {Promise}\n * @private\n */\nexport function timeout(ms) {\n return new Promise((resolve) => setTimeout(resolve, ms));\n}\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst getFriendlyURL = (url) => {\n const urlObj = new URL(String(url), location.href);\n // See https://github.com/GoogleChrome/workbox/issues/2323\n // We want to include everything, except for the origin if it's same-origin.\n return urlObj.href.replace(new RegExp(`^${location.origin}`), '');\n};\nexport { getFriendlyURL };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from '../_private/logger.js';\nimport { quotaErrorCallbacks } from '../models/quotaErrorCallbacks.js';\nimport '../_version.js';\n/**\n * Runs all of the callback functions, one at a time sequentially, in the order\n * in which they were registered.\n *\n * @memberof workbox-core\n * @private\n */\nasync function executeQuotaErrorCallbacks() {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`About to run ${quotaErrorCallbacks.size} ` +\n `callbacks to clean up caches.`);\n }\n for (const callback of quotaErrorCallbacks) {\n await callback();\n if (process.env.NODE_ENV !== 'production') {\n logger.log(callback, 'is complete.');\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n logger.log('Finished running callbacks.');\n }\n}\nexport { executeQuotaErrorCallbacks };\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { copyResponse } from 'workbox-core/copyResponse.js';\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { Strategy } from 'workbox-strategies/Strategy.js';\nimport './_version.js';\n/**\n * A {@link workbox-strategies.Strategy} implementation\n * specifically designed to work with\n * {@link workbox-precaching.PrecacheController}\n * to both cache and fetch precached assets.\n *\n * Note: an instance of this class is created automatically when creating a\n * `PrecacheController`; it's generally not necessary to create this yourself.\n *\n * @extends workbox-strategies.Strategy\n * @memberof workbox-precaching\n */\nclass PrecacheStrategy extends Strategy {\n /**\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n * @param {Array<Object>} [options.plugins] {@link https://developers.google.com/web/tools/workbox/guides/using-plugins|Plugins}\n * to use in conjunction with this caching strategy.\n * @param {Object} [options.fetchOptions] Values passed along to the\n * {@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters|init}\n * of all fetch() requests made by this strategy.\n * @param {Object} [options.matchOptions] The\n * {@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions|CacheQueryOptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to\n * get the response from the network if there's a precache miss.\n */\n constructor(options = {}) {\n options.cacheName = cacheNames.getPrecacheName(options.cacheName);\n super(options);\n this._fallbackToNetwork =\n options.fallbackToNetwork === false ? false : true;\n // Redirected responses cannot be used to satisfy a navigation request, so\n // any redirected response must be \"copied\" rather than cloned, so the new\n // response doesn't contain the `redirected` flag. See:\n // https://bugs.chromium.org/p/chromium/issues/detail?id=669363&desc=2#c1\n this.plugins.push(PrecacheStrategy.copyRedirectedCacheableResponsesPlugin);\n }\n /**\n * @private\n * @param {Request|string} request A request to run this strategy for.\n * @param {workbox-strategies.StrategyHandler} handler The event that\n * triggered the request.\n * @return {Promise<Response>}\n */\n async _handle(request, handler) {\n const response = await handler.cacheMatch(request);\n if (response) {\n return response;\n }\n // If this is an `install` event for an entry that isn't already cached,\n // then populate the cache.\n if (handler.event && handler.event.type === 'install') {\n return await this._handleInstall(request, handler);\n }\n // Getting here means something went wrong. An entry that should have been\n // precached wasn't found in the cache.\n return await this._handleFetch(request, handler);\n }\n async _handleFetch(request, handler) {\n let response;\n const params = (handler.params || {});\n // Fall back to the network if we're configured to do so.\n if (this._fallbackToNetwork) {\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(`The precached response for ` +\n `${getFriendlyURL(request.url)} in ${this.cacheName} was not ` +\n `found. Falling back to the network.`);\n }\n const integrityInManifest = params.integrity;\n const integrityInRequest = request.integrity;\n const noIntegrityConflict = !integrityInRequest || integrityInRequest === integrityInManifest;\n response = await handler.fetch(new Request(request, {\n integrity: integrityInRequest || integrityInManifest,\n }));\n // It's only \"safe\" to repair the cache if we're using SRI to guarantee\n // that the response matches the precache manifest's expectations,\n // and there's either a) no integrity property in the incoming request\n // or b) there is an integrity, and it matches the precache manifest.\n // See https://github.com/GoogleChrome/workbox/issues/2858\n if (integrityInManifest && noIntegrityConflict) {\n this._useDefaultCacheabilityPluginIfNeeded();\n const wasCached = await handler.cachePut(request, response.clone());\n if (process.env.NODE_ENV !== 'production') {\n if (wasCached) {\n logger.log(`A response for ${getFriendlyURL(request.url)} ` +\n `was used to \"repair\" the precache.`);\n }\n }\n }\n }\n else {\n // This shouldn't normally happen, but there are edge cases:\n // https://github.com/GoogleChrome/workbox/issues/1441\n throw new WorkboxError('missing-precache-entry', {\n cacheName: this.cacheName,\n url: request.url,\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n const cacheKey = params.cacheKey || (await handler.getCacheKey(request, 'read'));\n // Workbox is going to handle the route.\n // print the routing details to the console.\n logger.groupCollapsed(`Precaching is responding to: ` + getFriendlyURL(request.url));\n logger.log(`Serving the precached url: ${getFriendlyURL(cacheKey instanceof Request ? cacheKey.url : cacheKey)}`);\n logger.groupCollapsed(`View request details here.`);\n logger.log(request);\n logger.groupEnd();\n logger.groupCollapsed(`View response details here.`);\n logger.log(response);\n logger.groupEnd();\n logger.groupEnd();\n }\n return response;\n }\n async _handleInstall(request, handler) {\n this._useDefaultCacheabilityPluginIfNeeded();\n const response = await handler.fetch(request);\n // Make sure we defer cachePut() until after we know the response\n // should be cached; see https://github.com/GoogleChrome/workbox/issues/2737\n const wasCached = await handler.cachePut(request, response.clone());\n if (!wasCached) {\n // Throwing here will lead to the `install` handler failing, which\n // we want to do if *any* of the responses aren't safe to cache.\n throw new WorkboxError('bad-precaching-response', {\n url: request.url,\n status: response.status,\n });\n }\n return response;\n }\n /**\n * This method is complex, as there a number of things to account for:\n *\n * The `plugins` array can be set at construction, and/or it might be added to\n * to at any time before the strategy is used.\n *\n * At the time the strategy is used (i.e. during an `install` event), there\n * needs to be at least one plugin that implements `cacheWillUpdate` in the\n * array, other than `copyRedirectedCacheableResponsesPlugin`.\n *\n * - If this method is called and there are no suitable `cacheWillUpdate`\n * plugins, we need to add `defaultPrecacheCacheabilityPlugin`.\n *\n * - If this method is called and there is exactly one `cacheWillUpdate`, then\n * we don't have to do anything (this might be a previously added\n * `defaultPrecacheCacheabilityPlugin`, or it might be a custom plugin).\n *\n * - If this method is called and there is more than one `cacheWillUpdate`,\n * then we need to check if one is `defaultPrecacheCacheabilityPlugin`. If so,\n * we need to remove it. (This situation is unlikely, but it could happen if\n * the strategy is used multiple times, the first without a `cacheWillUpdate`,\n * and then later on after manually adding a custom `cacheWillUpdate`.)\n *\n * See https://github.com/GoogleChrome/workbox/issues/2737 for more context.\n *\n * @private\n */\n _useDefaultCacheabilityPluginIfNeeded() {\n let defaultPluginIndex = null;\n let cacheWillUpdatePluginCount = 0;\n for (const [index, plugin] of this.plugins.entries()) {\n // Ignore the copy redirected plugin when determining what to do.\n if (plugin === PrecacheStrategy.copyRedirectedCacheableResponsesPlugin) {\n continue;\n }\n // Save the default plugin's index, in case it needs to be removed.\n if (plugin === PrecacheStrategy.defaultPrecacheCacheabilityPlugin) {\n defaultPluginIndex = index;\n }\n if (plugin.cacheWillUpdate) {\n cacheWillUpdatePluginCount++;\n }\n }\n if (cacheWillUpdatePluginCount === 0) {\n this.plugins.push(PrecacheStrategy.defaultPrecacheCacheabilityPlugin);\n }\n else if (cacheWillUpdatePluginCount > 1 && defaultPluginIndex !== null) {\n // Only remove the default plugin; multiple custom plugins are allowed.\n this.plugins.splice(defaultPluginIndex, 1);\n }\n // Nothing needs to be done if cacheWillUpdatePluginCount is 1\n }\n}\nPrecacheStrategy.defaultPrecacheCacheabilityPlugin = {\n async cacheWillUpdate({ response }) {\n if (!response || response.status >= 400) {\n return null;\n }\n return response;\n },\n};\nPrecacheStrategy.copyRedirectedCacheableResponsesPlugin = {\n async cacheWillUpdate({ response }) {\n return response.redirected ? await copyResponse(response) : response;\n },\n};\nexport { PrecacheStrategy };\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { StrategyHandler } from './StrategyHandler.js';\nimport './_version.js';\n/**\n * An abstract base class that all other strategy classes must extend from:\n *\n * @memberof workbox-strategies\n */\nclass Strategy {\n /**\n * Creates a new instance of the strategy and sets all documented option\n * properties as public instance properties.\n *\n * Note: if a custom strategy class extends the base Strategy class and does\n * not need more than these properties, it does not need to define its own\n * constructor.\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins}\n * to use in conjunction with this caching strategy.\n * @param {Object} [options.fetchOptions] Values passed along to the\n * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters)\n * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796)\n * `fetch()` requests made by this strategy.\n * @param {Object} [options.matchOptions] The\n * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n */\n constructor(options = {}) {\n /**\n * Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n *\n * @type {string}\n */\n this.cacheName = cacheNames.getRuntimeName(options.cacheName);\n /**\n * The list\n * [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins}\n * used by this strategy.\n *\n * @type {Array<Object>}\n */\n this.plugins = options.plugins || [];\n /**\n * Values passed along to the\n * [`init`]{@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters}\n * of all fetch() requests made by this strategy.\n *\n * @type {Object}\n */\n this.fetchOptions = options.fetchOptions;\n /**\n * The\n * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n *\n * @type {Object}\n */\n this.matchOptions = options.matchOptions;\n }\n /**\n * Perform a request strategy and returns a `Promise` that will resolve with\n * a `Response`, invoking all relevant plugin callbacks.\n *\n * When a strategy instance is registered with a Workbox\n * {@link workbox-routing.Route}, this method is automatically\n * called when the route matches.\n *\n * Alternatively, this method can be used in a standalone `FetchEvent`\n * listener by passing it to `event.respondWith()`.\n *\n * @param {FetchEvent|Object} options A `FetchEvent` or an object with the\n * properties listed below.\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params]\n */\n handle(options) {\n const [responseDone] = this.handleAll(options);\n return responseDone;\n }\n /**\n * Similar to {@link workbox-strategies.Strategy~handle}, but\n * instead of just returning a `Promise` that resolves to a `Response` it\n * it will return an tuple of `[response, done]` promises, where the former\n * (`response`) is equivalent to what `handle()` returns, and the latter is a\n * Promise that will resolve once any promises that were added to\n * `event.waitUntil()` as part of performing the strategy have completed.\n *\n * You can await the `done` promise to ensure any extra work performed by\n * the strategy (usually caching responses) completes successfully.\n *\n * @param {FetchEvent|Object} options A `FetchEvent` or an object with the\n * properties listed below.\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params]\n * @return {Array<Promise>} A tuple of [response, done]\n * promises that can be used to determine when the response resolves as\n * well as when the handler has completed all its work.\n */\n handleAll(options) {\n // Allow for flexible options to be passed.\n if (options instanceof FetchEvent) {\n options = {\n event: options,\n request: options.request,\n };\n }\n const event = options.event;\n const request = typeof options.request === 'string'\n ? new Request(options.request)\n : options.request;\n const params = 'params' in options ? options.params : undefined;\n const handler = new StrategyHandler(this, { event, request, params });\n const responseDone = this._getResponse(handler, request, event);\n const handlerDone = this._awaitComplete(responseDone, handler, request, event);\n // Return an array of promises, suitable for use with Promise.all().\n return [responseDone, handlerDone];\n }\n async _getResponse(handler, request, event) {\n await handler.runCallbacks('handlerWillStart', { event, request });\n let response = undefined;\n try {\n response = await this._handle(request, handler);\n // The \"official\" Strategy subclasses all throw this error automatically,\n // but in case a third-party Strategy doesn't, ensure that we have a\n // consistent failure when there's no response or an error response.\n if (!response || response.type === 'error') {\n throw new WorkboxError('no-response', { url: request.url });\n }\n }\n catch (error) {\n if (error instanceof Error) {\n for (const callback of handler.iterateCallbacks('handlerDidError')) {\n response = await callback({ error, event, request });\n if (response) {\n break;\n }\n }\n }\n if (!response) {\n throw error;\n }\n else if (process.env.NODE_ENV !== 'production') {\n logger.log(`While responding to '${getFriendlyURL(request.url)}', ` +\n `an ${error instanceof Error ? error.toString() : ''} error occurred. Using a fallback response provided by ` +\n `a handlerDidError plugin.`);\n }\n }\n for (const callback of handler.iterateCallbacks('handlerWillRespond')) {\n response = await callback({ event, request, response });\n }\n return response;\n }\n async _awaitComplete(responseDone, handler, request, event) {\n let response;\n let error;\n try {\n response = await responseDone;\n }\n catch (error) {\n // Ignore errors, as response errors should be caught via the `response`\n // promise above. The `done` promise will only throw for errors in\n // promises passed to `handler.waitUntil()`.\n }\n try {\n await handler.runCallbacks('handlerDidRespond', {\n event,\n request,\n response,\n });\n await handler.doneWaiting();\n }\n catch (waitUntilError) {\n if (waitUntilError instanceof Error) {\n error = waitUntilError;\n }\n }\n await handler.runCallbacks('handlerDidComplete', {\n event,\n request,\n response,\n error: error,\n });\n handler.destroy();\n if (error) {\n throw error;\n }\n }\n}\nexport { Strategy };\n/**\n * Classes extending the `Strategy` based class should implement this method,\n * and leverage the {@link workbox-strategies.StrategyHandler}\n * arg to perform all fetching and cache logic, which will ensure all relevant\n * cache, cache options, fetch options and plugins are used (per the current\n * strategy instance).\n *\n * @name _handle\n * @instance\n * @abstract\n * @function\n * @param {Request} request\n * @param {workbox-strategies.StrategyHandler} handler\n * @return {Promise<Response>}\n *\n * @memberof workbox-strategies.Strategy\n */\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { waitUntil } from 'workbox-core/_private/waitUntil.js';\nimport { createCacheKey } from './utils/createCacheKey.js';\nimport { PrecacheInstallReportPlugin } from './utils/PrecacheInstallReportPlugin.js';\nimport { PrecacheCacheKeyPlugin } from './utils/PrecacheCacheKeyPlugin.js';\nimport { printCleanupDetails } from './utils/printCleanupDetails.js';\nimport { printInstallDetails } from './utils/printInstallDetails.js';\nimport { PrecacheStrategy } from './PrecacheStrategy.js';\nimport './_version.js';\n/**\n * Performs efficient precaching of assets.\n *\n * @memberof workbox-precaching\n */\nclass PrecacheController {\n /**\n * Create a new PrecacheController.\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] The cache to use for precaching.\n * @param {string} [options.plugins] Plugins to use when precaching as well\n * as responding to fetch events for precached assets.\n * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to\n * get the response from the network if there's a precache miss.\n */\n constructor({ cacheName, plugins = [], fallbackToNetwork = true, } = {}) {\n this._urlsToCacheKeys = new Map();\n this._urlsToCacheModes = new Map();\n this._cacheKeysToIntegrities = new Map();\n this._strategy = new PrecacheStrategy({\n cacheName: cacheNames.getPrecacheName(cacheName),\n plugins: [\n ...plugins,\n new PrecacheCacheKeyPlugin({ precacheController: this }),\n ],\n fallbackToNetwork,\n });\n // Bind the install and activate methods to the instance.\n this.install = this.install.bind(this);\n this.activate = this.activate.bind(this);\n }\n /**\n * @type {workbox-precaching.PrecacheStrategy} The strategy created by this controller and\n * used to cache assets and respond to fetch events.\n */\n get strategy() {\n return this._strategy;\n }\n /**\n * Adds items to the precache list, removing any duplicates and\n * stores the files in the\n * {@link workbox-core.cacheNames|\"precache cache\"} when the service\n * worker installs.\n *\n * This method can be called multiple times.\n *\n * @param {Array<Object|string>} [entries=[]] Array of entries to precache.\n */\n precache(entries) {\n this.addToCacheList(entries);\n if (!this._installAndActiveListenersAdded) {\n self.addEventListener('install', this.install);\n self.addEventListener('activate', this.activate);\n this._installAndActiveListenersAdded = true;\n }\n }\n /**\n * This method will add items to the precache list, removing duplicates\n * and ensuring the information is valid.\n *\n * @param {Array<workbox-precaching.PrecacheController.PrecacheEntry|string>} entries\n * Array of entries to precache.\n */\n addToCacheList(entries) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isArray(entries, {\n moduleName: 'workbox-precaching',\n className: 'PrecacheController',\n funcName: 'addToCacheList',\n paramName: 'entries',\n });\n }\n const urlsToWarnAbout = [];\n for (const entry of entries) {\n // See https://github.com/GoogleChrome/workbox/issues/2259\n if (typeof entry === 'string') {\n urlsToWarnAbout.push(entry);\n }\n else if (entry && entry.revision === undefined) {\n urlsToWarnAbout.push(entry.url);\n }\n const { cacheKey, url } = createCacheKey(entry);\n const cacheMode = typeof entry !== 'string' && entry.revision ? 'reload' : 'default';\n if (this._urlsToCacheKeys.has(url) &&\n this._urlsToCacheKeys.get(url) !== cacheKey) {\n throw new WorkboxError('add-to-cache-list-conflicting-entries', {\n firstEntry: this._urlsToCacheKeys.get(url),\n secondEntry: cacheKey,\n });\n }\n if (typeof entry !== 'string' && entry.integrity) {\n if (this._cacheKeysToIntegrities.has(cacheKey) &&\n this._cacheKeysToIntegrities.get(cacheKey) !== entry.integrity) {\n throw new WorkboxError('add-to-cache-list-conflicting-integrities', {\n url,\n });\n }\n this._cacheKeysToIntegrities.set(cacheKey, entry.integrity);\n }\n this._urlsToCacheKeys.set(url, cacheKey);\n this._urlsToCacheModes.set(url, cacheMode);\n if (urlsToWarnAbout.length > 0) {\n const warningMessage = `Workbox is precaching URLs without revision ` +\n `info: ${urlsToWarnAbout.join(', ')}\\nThis is generally NOT safe. ` +\n `Learn more at https://bit.ly/wb-precache`;\n if (process.env.NODE_ENV === 'production') {\n // Use console directly to display this warning without bloating\n // bundle sizes by pulling in all of the logger codebase in prod.\n console.warn(warningMessage);\n }\n else {\n logger.warn(warningMessage);\n }\n }\n }\n }\n /**\n * Precaches new and updated assets. Call this method from the service worker\n * install event.\n *\n * Note: this method calls `event.waitUntil()` for you, so you do not need\n * to call it yourself in your event handlers.\n *\n * @param {ExtendableEvent} event\n * @return {Promise<workbox-precaching.InstallResult>}\n */\n install(event) {\n // waitUntil returns Promise<any>\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return waitUntil(event, async () => {\n const installReportPlugin = new PrecacheInstallReportPlugin();\n this.strategy.plugins.push(installReportPlugin);\n // Cache entries one at a time.\n // See https://github.com/GoogleChrome/workbox/issues/2528\n for (const [url, cacheKey] of this._urlsToCacheKeys) {\n const integrity = this._cacheKeysToIntegrities.get(cacheKey);\n const cacheMode = this._urlsToCacheModes.get(url);\n const request = new Request(url, {\n integrity,\n cache: cacheMode,\n credentials: 'same-origin',\n });\n await Promise.all(this.strategy.handleAll({\n params: { cacheKey },\n request,\n event,\n }));\n }\n const { updatedURLs, notUpdatedURLs } = installReportPlugin;\n if (process.env.NODE_ENV !== 'production') {\n printInstallDetails(updatedURLs, notUpdatedURLs);\n }\n return { updatedURLs, notUpdatedURLs };\n });\n }\n /**\n * Deletes assets that are no longer present in the current precache manifest.\n * Call this method from the service worker activate event.\n *\n * Note: this method calls `event.waitUntil()` for you, so you do not need\n * to call it yourself in your event handlers.\n *\n * @param {ExtendableEvent} event\n * @return {Promise<workbox-precaching.CleanupResult>}\n */\n activate(event) {\n // waitUntil returns Promise<any>\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return waitUntil(event, async () => {\n const cache = await self.caches.open(this.strategy.cacheName);\n const currentlyCachedRequests = await cache.keys();\n const expectedCacheKeys = new Set(this._urlsToCacheKeys.values());\n const deletedURLs = [];\n for (const request of currentlyCachedRequests) {\n if (!expectedCacheKeys.has(request.url)) {\n await cache.delete(request);\n deletedURLs.push(request.url);\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n printCleanupDetails(deletedURLs);\n }\n return { deletedURLs };\n });\n }\n /**\n * Returns a mapping of a precached URL to the corresponding cache key, taking\n * into account the revision information for the URL.\n *\n * @return {Map<string, string>} A URL to cache key mapping.\n */\n getURLsToCacheKeys() {\n return this._urlsToCacheKeys;\n }\n /**\n * Returns a list of all the URLs that have been precached by the current\n * service worker.\n *\n * @return {Array<string>} The precached URLs.\n */\n getCachedURLs() {\n return [...this._urlsToCacheKeys.keys()];\n }\n /**\n * Returns the cache key used for storing a given URL. If that URL is\n * unversioned, like `/index.html', then the cache key will be the original\n * URL with a search parameter appended to it.\n *\n * @param {string} url A URL whose cache key you want to look up.\n * @return {string} The versioned URL that corresponds to a cache key\n * for the original URL, or undefined if that URL isn't precached.\n */\n getCacheKeyForURL(url) {\n const urlObject = new URL(url, location.href);\n return this._urlsToCacheKeys.get(urlObject.href);\n }\n /**\n * @param {string} url A cache key whose SRI you want to look up.\n * @return {string} The subresource integrity associated with the cache key,\n * or undefined if it's not set.\n */\n getIntegrityForCacheKey(cacheKey) {\n return this._cacheKeysToIntegrities.get(cacheKey);\n }\n /**\n * This acts as a drop-in replacement for\n * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)\n * with the following differences:\n *\n * - It knows what the name of the precache is, and only checks in that cache.\n * - It allows you to pass in an \"original\" URL without versioning parameters,\n * and it will automatically look up the correct cache key for the currently\n * active revision of that URL.\n *\n * E.g., `matchPrecache('index.html')` will find the correct precached\n * response for the currently active service worker, even if the actual cache\n * key is `'/index.html?__WB_REVISION__=1234abcd'`.\n *\n * @param {string|Request} request The key (without revisioning parameters)\n * to look up in the precache.\n * @return {Promise<Response|undefined>}\n */\n async matchPrecache(request) {\n const url = request instanceof Request ? request.url : request;\n const cacheKey = this.getCacheKeyForURL(url);\n if (cacheKey) {\n const cache = await self.caches.open(this.strategy.cacheName);\n return cache.match(cacheKey);\n }\n return undefined;\n }\n /**\n * Returns a function that looks up `url` in the precache (taking into\n * account revision information), and returns the corresponding `Response`.\n *\n * @param {string} url The precached URL which will be used to lookup the\n * `Response`.\n * @return {workbox-routing~handlerCallback}\n */\n createHandlerBoundToURL(url) {\n const cacheKey = this.getCacheKeyForURL(url);\n if (!cacheKey) {\n throw new WorkboxError('non-precached-url', { url });\n }\n return (options) => {\n options.request = new Request(url);\n options.params = Object.assign({ cacheKey }, options.params);\n return this.strategy.handle(options);\n };\n }\n}\nexport { PrecacheController };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { PrecacheController } from '../PrecacheController.js';\nimport '../_version.js';\nlet precacheController;\n/**\n * @return {PrecacheController}\n * @private\n */\nexport const getOrCreatePrecacheController = () => {\n if (!precacheController) {\n precacheController = new PrecacheController();\n }\n return precacheController;\n};\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { Route } from 'workbox-routing/Route.js';\nimport { generateURLVariations } from './utils/generateURLVariations.js';\nimport './_version.js';\n/**\n * A subclass of {@link workbox-routing.Route} that takes a\n * {@link workbox-precaching.PrecacheController}\n * instance and uses it to match incoming requests and handle fetching\n * responses from the precache.\n *\n * @memberof workbox-precaching\n * @extends workbox-routing.Route\n */\nclass PrecacheRoute extends Route {\n /**\n * @param {PrecacheController} precacheController A `PrecacheController`\n * instance used to both match requests and respond to fetch events.\n * @param {Object} [options] Options to control how requests are matched\n * against the list of precached URLs.\n * @param {string} [options.directoryIndex=index.html] The `directoryIndex` will\n * check cache entries for a URLs ending with '/' to see if there is a hit when\n * appending the `directoryIndex` value.\n * @param {Array<RegExp>} [options.ignoreURLParametersMatching=[/^utm_/, /^fbclid$/]] An\n * array of regex's to remove search params when looking for a cache match.\n * @param {boolean} [options.cleanURLs=true] The `cleanURLs` option will\n * check the cache for the URL with a `.html` added to the end of the end.\n * @param {workbox-precaching~urlManipulation} [options.urlManipulation]\n * This is a function that should take a URL and return an array of\n * alternative URLs that should be checked for precache matches.\n */\n constructor(precacheController, options) {\n const match = ({ request, }) => {\n const urlsToCacheKeys = precacheController.getURLsToCacheKeys();\n for (const possibleURL of generateURLVariations(request.url, options)) {\n const cacheKey = urlsToCacheKeys.get(possibleURL);\n if (cacheKey) {\n const integrity = precacheController.getIntegrityForCacheKey(cacheKey);\n return { cacheKey, integrity };\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Precaching did not find a match for ` + getFriendlyURL(request.url));\n }\n return;\n };\n super(match, precacheController.strategy);\n }\n}\nexport { PrecacheRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { removeIgnoredSearchParams } from './removeIgnoredSearchParams.js';\nimport '../_version.js';\n/**\n * Generator function that yields possible variations on the original URL to\n * check, one at a time.\n *\n * @param {string} url\n * @param {Object} options\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function* generateURLVariations(url, { ignoreURLParametersMatching = [/^utm_/, /^fbclid$/], directoryIndex = 'index.html', cleanURLs = true, urlManipulation, } = {}) {\n const urlObject = new URL(url, location.href);\n urlObject.hash = '';\n yield urlObject.href;\n const urlWithoutIgnoredParams = removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching);\n yield urlWithoutIgnoredParams.href;\n if (directoryIndex && urlWithoutIgnoredParams.pathname.endsWith('/')) {\n const directoryURL = new URL(urlWithoutIgnoredParams.href);\n directoryURL.pathname += directoryIndex;\n yield directoryURL.href;\n }\n if (cleanURLs) {\n const cleanURL = new URL(urlWithoutIgnoredParams.href);\n cleanURL.pathname += '.html';\n yield cleanURL.href;\n }\n if (urlManipulation) {\n const additionalURLs = urlManipulation({ url: urlObject });\n for (const urlToAttempt of additionalURLs) {\n yield urlToAttempt.href;\n }\n }\n}\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * Removes any URL search parameters that should be ignored.\n *\n * @param {URL} urlObject The original URL.\n * @param {Array<RegExp>} ignoreURLParametersMatching RegExps to test against\n * each search parameter name. Matches mean that the search parameter should be\n * ignored.\n * @return {URL} The URL with any ignored search parameters removed.\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching = []) {\n // Convert the iterable into an array at the start of the loop to make sure\n // deletion doesn't mess up iteration.\n for (const paramName of [...urlObject.searchParams.keys()]) {\n if (ignoreURLParametersMatching.some((regExp) => regExp.test(paramName))) {\n urlObject.searchParams.delete(paramName);\n }\n }\n return urlObject;\n}\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { registerRoute } from 'workbox-routing/registerRoute.js';\nimport { getOrCreatePrecacheController } from './utils/getOrCreatePrecacheController.js';\nimport { PrecacheRoute } from './PrecacheRoute.js';\nimport './_version.js';\n/**\n * Add a `fetch` listener to the service worker that will\n * respond to\n * [network requests]{@link https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Custom_responses_to_requests}\n * with precached assets.\n *\n * Requests for assets that aren't precached, the `FetchEvent` will not be\n * responded to, allowing the event to fall through to other `fetch` event\n * listeners.\n *\n * @param {Object} [options] See the {@link workbox-precaching.PrecacheRoute}\n * options.\n *\n * @memberof workbox-precaching\n */\nfunction addRoute(options) {\n const precacheController = getOrCreatePrecacheController();\n const precacheRoute = new PrecacheRoute(precacheController, options);\n registerRoute(precacheRoute);\n}\nexport { addRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { Route } from './Route.js';\nimport { RegExpRoute } from './RegExpRoute.js';\nimport { getOrCreateDefaultRouter } from './utils/getOrCreateDefaultRouter.js';\nimport './_version.js';\n/**\n * Easily register a RegExp, string, or function with a caching\n * strategy to a singleton Router instance.\n *\n * This method will generate a Route for you if needed and\n * call {@link workbox-routing.Router#registerRoute}.\n *\n * @param {RegExp|string|workbox-routing.Route~matchCallback|workbox-routing.Route} capture\n * If the capture param is a `Route`, all other arguments will be ignored.\n * @param {workbox-routing~handlerCallback} [handler] A callback\n * function that returns a Promise resulting in a Response. This parameter\n * is required if `capture` is not a `Route` object.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n * @return {workbox-routing.Route} The generated `Route`.\n *\n * @memberof workbox-routing\n */\nfunction registerRoute(capture, handler, method) {\n let route;\n if (typeof capture === 'string') {\n const captureUrl = new URL(capture, location.href);\n if (process.env.NODE_ENV !== 'production') {\n if (!(capture.startsWith('/') || capture.startsWith('http'))) {\n throw new WorkboxError('invalid-string', {\n moduleName: 'workbox-routing',\n funcName: 'registerRoute',\n paramName: 'capture',\n });\n }\n // We want to check if Express-style wildcards are in the pathname only.\n // TODO: Remove this log message in v4.\n const valueToCheck = capture.startsWith('http')\n ? captureUrl.pathname\n : capture;\n // See https://github.com/pillarjs/path-to-regexp#parameters\n const wildcards = '[*:?+]';\n if (new RegExp(`${wildcards}`).exec(valueToCheck)) {\n logger.debug(`The '$capture' parameter contains an Express-style wildcard ` +\n `character (${wildcards}). Strings are now always interpreted as ` +\n `exact matches; use a RegExp for partial or wildcard matches.`);\n }\n }\n const matchCallback = ({ url }) => {\n if (process.env.NODE_ENV !== 'production') {\n if (url.pathname === captureUrl.pathname &&\n url.origin !== captureUrl.origin) {\n logger.debug(`${capture} only partially matches the cross-origin URL ` +\n `${url.toString()}. This route will only handle cross-origin requests ` +\n `if they match the entire URL.`);\n }\n }\n return url.href === captureUrl.href;\n };\n // If `capture` is a string then `handler` and `method` must be present.\n route = new Route(matchCallback, handler, method);\n }\n else if (capture instanceof RegExp) {\n // If `capture` is a `RegExp` then `handler` and `method` must be present.\n route = new RegExpRoute(capture, handler, method);\n }\n else if (typeof capture === 'function') {\n // If `capture` is a function then `handler` and `method` must be present.\n route = new Route(capture, handler, method);\n }\n else if (capture instanceof Route) {\n route = capture;\n }\n else {\n throw new WorkboxError('unsupported-route-type', {\n moduleName: 'workbox-routing',\n funcName: 'registerRoute',\n paramName: 'capture',\n });\n }\n const defaultRouter = getOrCreateDefaultRouter();\n defaultRouter.registerRoute(route);\n return route;\n}\nexport { registerRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { addRoute } from './addRoute.js';\nimport { precache } from './precache.js';\nimport './_version.js';\n/**\n * This method will add entries to the precache list and add a route to\n * respond to fetch events.\n *\n * This is a convenience method that will call\n * {@link workbox-precaching.precache} and\n * {@link workbox-precaching.addRoute} in a single call.\n *\n * @param {Array<Object|string>} entries Array of entries to precache.\n * @param {Object} [options] See the\n * {@link workbox-precaching.PrecacheRoute} options.\n *\n * @memberof workbox-precaching\n */\nfunction precacheAndRoute(entries, options) {\n precache(entries);\n addRoute(options);\n}\nexport { precacheAndRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { getOrCreatePrecacheController } from './utils/getOrCreatePrecacheController.js';\nimport './_version.js';\n/**\n * Adds items to the precache list, removing any duplicates and\n * stores the files in the\n * {@link workbox-core.cacheNames|\"precache cache\"} when the service\n * worker installs.\n *\n * This method can be called multiple times.\n *\n * Please note: This method **will not** serve any of the cached files for you.\n * It only precaches files. To respond to a network request you call\n * {@link workbox-precaching.addRoute}.\n *\n * If you have a single array of files to precache, you can just call\n * {@link workbox-precaching.precacheAndRoute}.\n *\n * @param {Array<Object|string>} [entries=[]] Array of entries to precache.\n *\n * @memberof workbox-precaching\n */\nfunction precache(entries) {\n const precacheController = getOrCreatePrecacheController();\n precacheController.precache(entries);\n}\nexport { precache };\n"],"names":["self","_","e","messageGenerator","code","args","msg","length","JSON","stringify","WorkboxError","Error","constructor","errorCode","details","super","name","normalizeHandler","handler","handle","Route","match","method","this","setCatchHandler","catchHandler","RegExpRoute","regExp","url","result","exec","href","origin","location","index","slice","Router","_routes","Map","_defaultHandlerMap","routes","addFetchListener","addEventListener","event","request","responsePromise","handleRequest","respondWith","addCacheListener","data","type","payload","requestPromises","Promise","all","urlsToCache","map","entry","Request","waitUntil","ports","then","postMessage","URL","protocol","startsWith","sameOrigin","params","route","findMatchingRoute","has","get","err","reject","_catchHandler","catch","async","catchErr","matchResult","Array","isArray","Object","keys","undefined","setDefaultHandler","set","registerRoute","push","unregisterRoute","routeIndex","indexOf","splice","defaultRouter","_cacheNameDetails","googleAnalytics","precache","prefix","runtime","suffix","registration","scope","_createCacheName","cacheName","filter","value","join","cacheNames","userCacheName","asyncFn","returnPromise","createCacheKey","urlObject","cacheKey","revision","cacheKeyURL","originalURL","searchParams","PrecacheInstallReportPlugin","updatedURLs","notUpdatedURLs","handlerWillStart","state","originalRequest","cachedResponseWillBeUsed","cachedResponse","PrecacheCacheKeyPlugin","precacheController","cacheKeyWillBeUsed","_precacheController","getCacheKeyForURL","headers","supportStatus","copyResponse","response","modifier","clonedResponse","clone","responseInit","Headers","status","statusText","modifiedResponseInit","body","testResponse","Response","error","canConstructResponseFromBodyStream","blob","stripParams","fullURL","ignoreParams","strippedURL","param","delete","Deferred","promise","resolve","quotaErrorCallbacks","Set","toRequest","input","StrategyHandler","strategy","options","_cacheKeys","assign","_strategy","_handlerDeferred","_extendLifetimePromises","_plugins","plugins","_pluginStateMap","plugin","fetch","mode","FetchEvent","preloadResponse","possiblePreloadResponse","hasCallback","cb","iterateCallbacks","thrownErrorMessage","message","pluginFilteredRequest","fetchResponse","fetchOptions","callback","runCallbacks","fetchAndCachePut","responseClone","cachePut","cacheMatch","key","matchOptions","effectiveRequest","getCacheKey","multiMatchOptions","caches","ms","setTimeout","String","replace","RegExp","responseToCache","_ensureResponseSafeToCache","cache","open","hasCacheUpdateCallback","oldResponse","strippedRequestURL","keysOptions","ignoreSearch","cacheKeys","cacheMatchIgnoreParams","put","executeQuotaErrorCallbacks","newResponse","statefulCallback","statefulParam","shift","destroy","pluginsUsed","PrecacheStrategy","responseDone","handleAll","_getResponse","_awaitComplete","_handle","doneWaiting","waitUntilError","_fallbackToNetwork","fallbackToNetwork","copyRedirectedCacheableResponsesPlugin","_handleInstall","_handleFetch","integrityInManifest","integrity","integrityInRequest","noIntegrityConflict","_useDefaultCacheabilityPluginIfNeeded","defaultPluginIndex","cacheWillUpdatePluginCount","entries","defaultPrecacheCacheabilityPlugin","cacheWillUpdate","redirected","PrecacheController","_urlsToCacheKeys","_urlsToCacheModes","_cacheKeysToIntegrities","install","bind","activate","addToCacheList","_installAndActiveListenersAdded","urlsToWarnAbout","cacheMode","firstEntry","secondEntry","warningMessage","console","warn","installReportPlugin","credentials","currentlyCachedRequests","expectedCacheKeys","values","deletedURLs","getURLsToCacheKeys","getCachedURLs","getIntegrityForCacheKey","matchPrecache","createHandlerBoundToURL","getOrCreatePrecacheController","PrecacheRoute","urlsToCacheKeys","possibleURL","ignoreURLParametersMatching","directoryIndex","cleanURLs","urlManipulation","hash","urlWithoutIgnoredParams","paramName","some","test","removeIgnoredSearchParams","pathname","endsWith","directoryURL","cleanURL","additionalURLs","urlToAttempt","generateURLVariations","addRoute","capture","captureUrl","moduleName","funcName"],"mappings":"6CAEA,IACIA,KAAK,uBAAyBC,IAElC,MAAOC,ICEP,MCgBaC,EAdI,CAACC,KAASC,KACnBC,IAAAA,EAAMF,EAIV,OAHIC,EAAKE,OAAS,IACdD,GAAQ,OAAME,KAAKC,UAAUJ,MAE1BC,GCIX,MAAMI,UAAqBC,MASvBC,YAAYC,EAAWC,GAEnBC,MADgBZ,EAAiBU,EAAWC,IAEvCE,KAAAA,KAAOH,EACPC,KAAAA,QAAUA,GC7BvB,IACId,KAAK,0BAA4BC,IAErC,MAAOC,ICWA,MCAMe,EAAoBC,GACzBA,GAA8B,iBAAZA,EASXA,EAWA,CAAEC,OAAQD,GCjBzB,MAAME,EAYFR,YAAYS,EAAOH,EAASI,EFhBH,OE8BrBC,KAAKL,QAAUD,EAAiBC,GAC3BG,KAAAA,MAAQA,EACRC,KAAAA,OAASA,EAOlBE,gBAAgBN,GACZK,KAAKE,aAAeR,EAAiBC,IClC7C,MAAMQ,UAAoBN,EActBR,YAAYe,EAAQT,EAASI,GAiCzBP,OAxBc,EAAGa,IAAAA,MACPC,MAAAA,EAASF,EAAOG,KAAKF,EAAIG,MAE3B,GAACF,IAODD,EAAII,SAAWC,SAASD,QAA2B,IAAjBH,EAAOK,OAY7C,OAAOL,EAAOM,MAAM,KAEXjB,EAASI,ICtC9B,MAAMc,EAIFxB,cACIW,KAAKc,EAAU,IAAIC,IACnBf,KAAKgB,EAAqB,IAAID,IAO9BE,aACA,OAAOjB,KAAKc,EAMhBI,mBAEIzC,KAAK0C,iBAAiB,SAAWC,IACvB,MAAAC,QAAEA,GAAYD,EACdE,EAAkBtB,KAAKuB,cAAc,CAAEF,QAAAA,EAASD,MAAAA,IAClDE,GACAF,EAAMI,YAAYF,MA0B9BG,mBAEIhD,KAAK0C,iBAAiB,WAAaC,IAG3BA,GAAAA,EAAMM,MAA4B,eAApBN,EAAMM,KAAKC,KAAuB,CAE1C,MAAAC,QAAEA,GAAYR,EAAMM,KAIpBG,EAAkBC,QAAQC,IAAIH,EAAQI,YAAYC,KAAKC,IACpC,iBAAVA,IACPA,EAAQ,CAACA,IAEb,MAAMb,EAAU,IAAIc,WAAWD,GACxB,OAAAlC,KAAKuB,cAAc,CAAEF,QAAAA,EAASD,MAAAA,QAKzCA,EAAMgB,UAAUP,GAEZT,EAAMiB,OAASjB,EAAMiB,MAAM,IACtBR,EAAgBS,MAAK,IAAMlB,EAAMiB,MAAM,GAAGE,aAAY,SAiB3EhB,eAAcF,QAAEA,EAAFD,MAAWA,IASrB,MAAMf,EAAM,IAAImC,IAAInB,EAAQhB,IAAKK,SAASF,MACtC,IAACH,EAAIoC,SAASC,WAAW,QAIzB,OAEEC,MAAAA,EAAatC,EAAII,SAAWC,SAASD,QACrCmC,OAAEA,EAAFC,MAAUA,GAAU7C,KAAK8C,kBAAkB,CAC7C1B,MAAAA,EACAC,QAAAA,EACAsB,WAAAA,EACAtC,IAAAA,IAEJ,IAAIV,EAAUkD,GAASA,EAAMlD,QAe7B,MAAMI,EAASsB,EAAQtB,OAQnB,IAPCJ,GAAWK,KAAKgB,EAAmB+B,IAAIhD,KAKxCJ,EAAUK,KAAKgB,EAAmBgC,IAAIjD,KAErCJ,EAMD,OAkBJ,IAAI2B,EACA,IACAA,EAAkB3B,EAAQC,OAAO,CAAES,IAAAA,EAAKgB,QAAAA,EAASD,MAAAA,EAAOwB,OAAAA,IAE5D,MAAOK,GACH3B,EAAkBQ,QAAQoB,OAAOD,GAGrC,MAAM/C,EAAe2C,GAASA,EAAM3C,aAuCpC,OAtCIoB,aAA2BQ,UAC1B9B,KAAKmD,GAAiBjD,KACvBoB,EAAkBA,EAAgB8B,OAAMC,MAAAA,IAEpC,GAAInD,EAUI,IACA,aAAaA,EAAaN,OAAO,CAAES,IAAAA,EAAKgB,QAAAA,EAASD,MAAAA,EAAOwB,OAAAA,IAE5D,MAAOU,GACCA,aAAoBlE,QACpB6D,EAAMK,GAId,GAAAtD,KAAKmD,EAUL,OAAOnD,KAAKmD,EAAcvD,OAAO,CAAES,IAAAA,EAAKgB,QAAAA,EAASD,MAAAA,IAErD,MAAM6B,MAGP3B,EAiBXwB,mBAAkBzC,IAAEA,EAAFsC,WAAOA,EAAPtB,QAAmBA,EAAnBD,MAA4BA,IACpCH,MAAAA,EAASjB,KAAKc,EAAQkC,IAAI3B,EAAQtB,SAAW,GACnD,IAAK,MAAM8C,KAAS5B,EAAQ,CACpB2B,IAAAA,EAGJ,MAAMW,EAAcV,EAAM/C,MAAM,CAAEO,IAAAA,EAAKsC,WAAAA,EAAYtB,QAAAA,EAASD,MAAAA,IAC5D,GAAImC,EA6BO,OAjBPX,EAASW,GACLC,MAAMC,QAAQb,IAA6B,IAAlBA,EAAO5D,QAI3BuE,EAAYlE,cAAgBqE,QACG,IAApCA,OAAOC,KAAKJ,GAAavE,QAIG,kBAAhBuE,KAPZX,OAASgB,GAcN,CAAEf,MAAAA,EAAOD,OAAAA,GAIxB,MAAO,GAgBXiB,kBAAkBlE,EAASI,EJ1SF,OI2ShBiB,KAAAA,EAAmB8C,IAAI/D,EAAQL,EAAiBC,IASzDM,gBAAgBN,GACZK,KAAKmD,EAAgBzD,EAAiBC,GAO1CoE,cAAclB,GAiCL7C,KAAKc,EAAQiC,IAAIF,EAAM9C,SACnBe,KAAAA,EAAQgD,IAAIjB,EAAM9C,OAAQ,IAI9Be,KAAAA,EAAQkC,IAAIH,EAAM9C,QAAQiE,KAAKnB,GAOxCoB,gBAAgBpB,GACR,IAAC7C,KAAKc,EAAQiC,IAAIF,EAAM9C,QACxB,MAAM,IAAIZ,EAAa,6CAA8C,CACjEY,OAAQ8C,EAAM9C,SAGtB,MAAMmE,EAAalE,KAAKc,EAAQkC,IAAIH,EAAM9C,QAAQoE,QAAQtB,GAC1D,KAAIqB,GAAc,GAId,MAAM,IAAI/E,EAAa,yCAHvBa,KAAKc,EAAQkC,IAAIH,EAAM9C,QAAQqE,OAAOF,EAAY,ICxX9D,IAAIG,ECDJ,MAAMC,EAAoB,CACtBC,gBAAiB,kBACjBC,SAAU,cACVC,OAAQ,UACRC,QAAS,UACTC,OAAgC,oBAAjBC,aAA+BA,aAAaC,MAAQ,IAEjEC,EAAoBC,GACf,CAACT,EAAkBG,OAAQM,EAAWT,EAAkBK,QAC1DK,QAAQC,GAAUA,GAASA,EAAMjG,OAAS,IAC1CkG,KAAK,KAODC,EAWSC,GACPA,GAAiBN,EAAiBR,EAAkBE,UAZtDW,EAiBQC,GACNA,GAAiBN,EAAiBR,EAAkBI,SC3BnE,SAAStC,EAAUhB,EAAOiE,GAChBC,MAAAA,EAAgBD,IAEtB,OADAjE,EAAMgB,UAAUkD,GACTA,ECjBX,IACI7G,KAAK,6BAA+BC,IAExC,MAAOC,ICeA,SAAS4G,EAAerD,GACvB,IAACA,EACD,MAAM,IAAI/C,EAAa,oCAAqC,CAAE+C,MAAAA,IAIlE,GAAqB,iBAAVA,EAAoB,CACrBsD,MAAAA,EAAY,IAAIhD,IAAIN,EAAOxB,SAASF,MACnC,MAAA,CACHiF,SAAUD,EAAUhF,KACpBH,IAAKmF,EAAUhF,MAGjB,MAAAkF,SAAEA,EAAFrF,IAAYA,GAAQ6B,EACtB,IAAC7B,EACD,MAAM,IAAIlB,EAAa,oCAAqC,CAAE+C,MAAAA,IAI9D,IAACwD,EAAU,CACLF,MAAAA,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACjC,MAAA,CACHiF,SAAUD,EAAUhF,KACpBH,IAAKmF,EAAUhF,MAKjBmF,MAAAA,EAAc,IAAInD,IAAInC,EAAKK,SAASF,MACpCoF,EAAc,IAAIpD,IAAInC,EAAKK,SAASF,MAEnC,OADPmF,EAAYE,aAAa/B,IAxCC,kBAwC0B4B,GAC7C,CACHD,SAAUE,EAAYnF,KACtBH,IAAKuF,EAAYpF,MCvCzB,MAAMsF,EACFzG,cACS0G,KAAAA,YAAc,GACdC,KAAAA,eAAiB,GACjBC,KAAAA,iBAAmB5C,OAAShC,QAAAA,EAAS6E,MAAAA,MAElCA,IACAA,EAAMC,gBAAkB9E,IAG3B+E,KAAAA,yBAA2B/C,OAASjC,MAAAA,EAAO8E,MAAAA,EAAOG,eAAAA,MACnD,GAAmB,YAAfjF,EAAMO,MACFuE,GACAA,EAAMC,iBACND,EAAMC,2BAA2BhE,QAAS,CAE1C,MAAM9B,EAAM6F,EAAMC,gBAAgB9F,IAC9BgG,EACArG,KAAKgG,eAAehC,KAAK3D,GAGzBL,KAAK+F,YAAY/B,KAAK3D,GAIlC,OAAOgG,ICzBnB,MAAMC,EACFjH,aAAYkH,mBAAEA,IACLC,KAAAA,mBAAqBnD,OAAShC,QAAAA,EAASuB,OAAAA,MAGlC6C,MAAAA,GAAY7C,MAAAA,OAAuC,EAASA,EAAO6C,WACrEzF,KAAKyG,EAAoBC,kBAAkBrF,EAAQhB,KAEvD,OAAOoF,EACD,IAAItD,QAAQsD,EAAU,CAAEkB,QAAStF,EAAQsF,UACzCtF,GAELoF,KAAAA,EAAsBF,GClBnC,IAAIK,ECqBJvD,eAAewD,EAAaC,EAAUC,GAClC,IAAItG,EAAS,KAETqG,GAAAA,EAASzG,IAAK,CAEdI,EADoB,IAAI+B,IAAIsE,EAASzG,KAChBI,OAEzB,GAAIA,IAAWhC,KAAKiC,SAASD,OACzB,MAAM,IAAItB,EAAa,6BAA8B,CAAEsB,OAAAA,IAE3D,MAAMuG,EAAiBF,EAASG,QAE1BC,EAAe,CACjBP,QAAS,IAAIQ,QAAQH,EAAeL,SACpCS,OAAQJ,EAAeI,OACvBC,WAAYL,EAAeK,YAGzBC,EAAuBP,EAAWA,EAASG,GAAgBA,EAI3DK,EDjCV,WACQX,QAAkBhD,IAAlBgD,EAA6B,CAC7B,MAAMY,EAAe,IAAIC,SAAS,IAC9B,GAAA,SAAUD,EACN,IACA,IAAIC,SAASD,EAAaD,MAC1BX,GAAgB,EAEpB,MAAOc,GACHd,GAAgB,EAGxBA,GAAgB,EAEpB,OAAOA,ECmBMe,GACPX,EAAeO,WACTP,EAAeY,OAC3B,OAAO,IAAIH,SAASF,EAAMD,GC/C9B,SAASO,EAAYC,EAASC,GAC1B,MAAMC,EAAc,IAAIxF,IAAIsF,GAC5B,IAAK,MAAMG,KAASF,EAChBC,EAAYnC,aAAaqC,OAAOD,GAE7BD,OAAAA,EAAYxH,KCIvB,MAAM2H,EAIF9I,cACS+I,KAAAA,QAAU,IAAItG,SAAQ,CAACuG,EAASnF,KAC5BmF,KAAAA,QAAUA,EACVnF,KAAAA,OAASA,MCZ1B,MAAMoF,EAAsB,IAAIC,ICThC,IACI9J,KAAK,6BAA+BC,IAExC,MAAOC,ICWP,SAAS6J,EAAUC,GACR,MAAiB,iBAAVA,EAAqB,IAAItG,QAAQsG,GAASA,EAW5D,MAAMC,EAiBFrJ,YAAYsJ,EAAUC,GACbC,KAAAA,EAAa,GA8ClBnF,OAAOoF,OAAO9I,KAAM4I,GACpB5I,KAAKoB,MAAQwH,EAAQxH,MAChB2H,KAAAA,EAAYJ,EACjB3I,KAAKgJ,EAAmB,IAAIb,EAC5BnI,KAAKiJ,EAA0B,GAG/BjJ,KAAKkJ,EAAW,IAAIP,EAASQ,SAC7BnJ,KAAKoJ,EAAkB,IAAIrI,IAC3B,IAAK,MAAMsI,KAAUrJ,KAAKkJ,EACtBlJ,KAAKoJ,EAAgBtF,IAAIuF,EAAQ,IAErCrJ,KAAKoB,MAAMgB,UAAUpC,KAAKgJ,EAAiBZ,SAezCkB,YAAMb,GACF,MAAArH,MAAEA,GAAUpB,KAClB,IAAIqB,EAAUmH,EAAUC,GACxB,GAAqB,aAAjBpH,EAAQkI,MACRnI,aAAiBoI,YACjBpI,EAAMqI,gBAAiB,CACvB,MAAMC,QAAiCtI,EAAMqI,gBAC7C,GAAIC,EAKA,OAAOA,EAMf,MAAMvD,EAAkBnG,KAAK2J,YAAY,gBACnCtI,EAAQ4F,QACR,KACF,IACK,IAAA,MAAM2C,KAAM5J,KAAK6J,iBAAiB,oBACnCxI,QAAgBuI,EAAG,CAAEvI,QAASA,EAAQ4F,QAAS7F,MAAAA,IAGvD,MAAO6B,GACCA,GAAAA,aAAe7D,MACf,MAAM,IAAID,EAAa,kCAAmC,CACtD2K,mBAAoB7G,EAAI8G,UAOpC,MAAMC,EAAwB3I,EAAQ4F,QAClC,IACIgD,IAAAA,EAEJA,QAAsBX,MAAMjI,EAA0B,aAAjBA,EAAQkI,UAAsB3F,EAAY5D,KAAK+I,EAAUmB,cAMzF,IAAA,MAAMC,KAAYnK,KAAK6J,iBAAiB,mBACzCI,QAAsBE,EAAS,CAC3B/I,MAAAA,EACAC,QAAS2I,EACTlD,SAAUmD,IAGlB,OAAOA,EAEX,MAAOvC,GAeH,MARIvB,SACMnG,KAAKoK,aAAa,eAAgB,CACpC1C,MAAOA,EACPtG,MAAAA,EACA+E,gBAAiBA,EAAgBc,QACjC5F,QAAS2I,EAAsB/C,UAGjCS,GAaR2C,uBAAiB5B,GACnB,MAAM3B,QAAiB9G,KAAKsJ,MAAMb,GAC5B6B,EAAgBxD,EAASG,QAE/B,OADKjH,KAAKoC,UAAUpC,KAAKuK,SAAS9B,EAAO6B,IAClCxD,EAcL0D,iBAAWC,GACb,MAAMpJ,EAAUmH,EAAUiC,GAC1B,IAAIpE,EACE,MAAAtB,UAAEA,EAAF2F,aAAaA,GAAiB1K,KAAK+I,EACnC4B,QAAyB3K,KAAK4K,YAAYvJ,EAAS,QACnDwJ,EAAoBnH,OAAOoF,OAAOpF,OAAOoF,OAAO,GAAI4B,GAAe,CAAE3F,UAAAA,IAC3EsB,QAAuByE,OAAOhL,MAAM6K,EAAkBE,GASjD,IAAA,MAAMV,KAAYnK,KAAK6J,iBAAiB,4BACzCxD,QACW8D,EAAS,CACZpF,UAAAA,EACA2F,aAAAA,EACArE,eAAAA,EACAhF,QAASsJ,EACTvJ,MAAOpB,KAAKoB,cACTwC,EAEf,OAAOyC,EAiBGhD,eAACoH,EAAK3D,GAChB,MAAMzF,EAAUmH,EAAUiC,GCxP3B,IAAiBM,QAAAA,ED2PF,EC1PX,IAAIjJ,SAASuG,GAAY2C,WAAW3C,EAAS0C,MD2P1CJ,MAAAA,QAAyB3K,KAAK4K,YAAYvJ,EAAS,SAiBrD,IAACyF,EAKD,MAAM,IAAI3H,EAAa,6BAA8B,CACjDkB,KE1RQA,EF0RYsK,EAAiBtK,IEzRlC,IAAImC,IAAIyI,OAAO5K,GAAMK,SAASF,MAG/BA,KAAK0K,QAAQ,IAAIC,OAAQ,IAAGzK,SAASD,UAAW,OAJ1CJ,IAAAA,EF6RhB,MAAM+K,QAAwBpL,KAAKqL,EAA2BvE,GAC1D,IAACsE,EAKD,OAAO,EAEL,MAAArG,UAAEA,EAAF2F,aAAaA,GAAiB1K,KAAK+I,EACnCuC,QAAc7M,KAAKqM,OAAOS,KAAKxG,GAC/ByG,EAAyBxL,KAAK2J,YAAY,kBAC1C8B,EAAcD,QJtR5BnI,eAAsCiI,EAAOjK,EAAS0G,EAAc2C,GAC1DgB,MAAAA,EAAqB7D,EAAYxG,EAAQhB,IAAK0H,GAEpD,GAAI1G,EAAQhB,MAAQqL,EAChB,OAAOJ,EAAMxL,MAAMuB,EAASqJ,GAGhC,MAAMiB,EAAcjI,OAAOoF,OAAOpF,OAAOoF,OAAO,GAAI4B,GAAe,CAAEkB,cAAc,IAC7EC,QAAkBP,EAAM3H,KAAKtC,EAASsK,GAC5C,IAAK,MAAMlG,KAAYoG,EAEfH,GAAAA,IADwB7D,EAAYpC,EAASpF,IAAK0H,GAElD,OAAOuD,EAAMxL,MAAM2F,EAAUiF,GI2QrBoB,CAIRR,EAAOX,EAAiB1D,QAAS,CAAC,mBAAoByD,GACpD,KAKF,UACMY,EAAMS,IAAIpB,EAAkBa,EAAyBJ,EAAgBnE,QAAUmE,GAEzF,MAAO1D,GACCA,GAAAA,aAAiBtI,MAKjB,KAHmB,uBAAfsI,EAAMjI,YGhT1B4D,iBAKI,IAAK,MAAM8G,KAAY7B,QACb6B,IH2SY6B,GAEJtE,EAGT,IAAA,MAAMyC,KAAYnK,KAAK6J,iBAAiB,wBACnCM,EAAS,CACXpF,UAAAA,EACA0G,YAAAA,EACAQ,YAAab,EAAgBnE,QAC7B5F,QAASsJ,EACTvJ,MAAOpB,KAAKoB,QAGpB,OAAO,EAaMiC,kBAAChC,EAASkI,GACjBkB,MAAAA,EAAO,GAAEpJ,EAAQhB,SAASkJ,IAChC,IAAKvJ,KAAK6I,EAAW4B,GAAM,CACnBE,IAAAA,EAAmBtJ,EAClB,IAAA,MAAM8I,KAAYnK,KAAK6J,iBAAiB,sBACzCc,EAAmBnC,QAAgB2B,EAAS,CACxCZ,KAAAA,EACAlI,QAASsJ,EACTvJ,MAAOpB,KAAKoB,MAEZwB,OAAQ5C,KAAK4C,UAGrB5C,KAAK6I,EAAW4B,GAAOE,EAE3B,OAAO3K,KAAK6I,EAAW4B,GAS3Bd,YAAYlK,GACR,IAAK,MAAM4J,KAAUrJ,KAAK+I,EAAUI,QAC5B1J,GAAAA,KAAQ4J,EACR,OAAO,EAGf,OAAO,EAkBOhG,mBAAC5D,EAAMwI,GAChB,IAAA,MAAMkC,KAAYnK,KAAK6J,iBAAiBpK,SAGnC0K,EAASlC,GAYtB4B,kBAAiBpK,GACd,IAAK,MAAM4J,KAAUrJ,KAAK+I,EAAUI,QAChC,GAA4B,mBAAjBE,EAAO5J,GAAsB,CAC9ByG,MAAAA,EAAQlG,KAAKoJ,EAAgBpG,IAAIqG,GACjC6C,EAAoBjE,IACtB,MAAMkE,EAAgBzI,OAAOoF,OAAOpF,OAAOoF,OAAO,GAAIb,GAAQ,CAAE/B,MAAAA,IAGhE,OAAOmD,EAAO5J,GAAM0M,UAElBD,GAiBlB9J,UAAUgG,GAEN,OADApI,KAAKiJ,EAAwBjF,KAAKoE,GAC3BA,EAYM/E,oBACb,IAAI+E,EACJ,KAAQA,EAAUpI,KAAKiJ,EAAwBmD,eACrChE,EAOdiE,UACIrM,KAAKgJ,EAAiBX,QAAQ,MAY5BgD,QAA2BvE,GACzBsE,IAAAA,EAAkBtE,EAClBwF,GAAc,EACb,IAAA,MAAMnC,KAAYnK,KAAK6J,iBAAiB,mBAQrC,GAPJuB,QACWjB,EAAS,CACZ9I,QAASrB,KAAKqB,QACdyF,SAAUsE,EACVhK,MAAOpB,KAAKoB,cACTwC,EACX0I,GAAc,GACTlB,EACD,MAwBR,OArBKkB,GACGlB,GAA8C,MAA3BA,EAAgBhE,SACnCgE,OAAkBxH,GAmBnBwH,GIvef,MAAMmB,UCRN,MAuBIlN,YAAYuJ,EAAU,IAQb7D,KAAAA,UAAYI,EAA0ByD,EAAQ7D,WAQnD/E,KAAKmJ,QAAUP,EAAQO,SAAW,GAQlCnJ,KAAKkK,aAAetB,EAAQsB,aAQ5BlK,KAAK0K,aAAe9B,EAAQ8B,aAqBhC9K,OAAOgJ,GACH,MAAO4D,GAAgBxM,KAAKyM,UAAU7D,GACtC,OAAO4D,EAwBXC,UAAU7D,GAEFA,aAAmBY,aACnBZ,EAAU,CACNxH,MAAOwH,EACPvH,QAASuH,EAAQvH,UAGzB,MAAMD,EAAQwH,EAAQxH,MAChBC,EAAqC,iBAApBuH,EAAQvH,QACzB,IAAIc,QAAQyG,EAAQvH,SACpBuH,EAAQvH,QACRuB,EAAS,WAAYgG,EAAUA,EAAQhG,YAASgB,EAChDjE,EAAU,IAAI+I,EAAgB1I,KAAM,CAAEoB,MAAAA,EAAOC,QAAAA,EAASuB,OAAAA,IACtD4J,EAAexM,KAAK0M,EAAa/M,EAAS0B,EAASD,GAGzD,MAAO,CAACoL,EAFYxM,KAAK2M,EAAeH,EAAc7M,EAAS0B,EAASD,IAI1DiC,QAAC1D,EAAS0B,EAASD,GAE7B0F,IAAAA,QADEnH,EAAQyK,aAAa,mBAAoB,CAAEhJ,MAAAA,EAAOC,QAAAA,IAEpD,IAKI,GAJJyF,QAAiB9G,KAAK4M,EAAQvL,EAAS1B,IAIlCmH,GAA8B,UAAlBA,EAASnF,KACtB,MAAM,IAAIxC,EAAa,cAAe,CAAEkB,IAAKgB,EAAQhB,MAG7D,MAAOqH,GACCA,GAAAA,aAAiBtI,MACZ,IAAA,MAAM+K,KAAYxK,EAAQkK,iBAAiB,mBAE5C,GADA/C,QAAiBqD,EAAS,CAAEzC,MAAAA,EAAOtG,MAAAA,EAAOC,QAAAA,IACtCyF,EACA,MAIR,IAACA,EACD,MAAMY,EAQT,IAAA,MAAMyC,KAAYxK,EAAQkK,iBAAiB,sBAC5C/C,QAAiBqD,EAAS,CAAE/I,MAAAA,EAAOC,QAAAA,EAASyF,SAAAA,IAEhD,OAAOA,EAEL6F,QAAeH,EAAc7M,EAAS0B,EAASD,GACjD,IAAI0F,EACAY,EACA,IACAZ,QAAiB0F,EAErB,MAAO9E,IAKH,UACM/H,EAAQyK,aAAa,oBAAqB,CAC5ChJ,MAAAA,EACAC,QAAAA,EACAyF,SAAAA,UAEEnH,EAAQkN,cAElB,MAAOC,GACCA,aAA0B1N,QAC1BsI,EAAQoF,GAUhB,SAPMnN,EAAQyK,aAAa,qBAAsB,CAC7ChJ,MAAAA,EACAC,QAAAA,EACAyF,SAAAA,EACAY,MAAOA,IAEX/H,EAAQ0M,UACJ3E,EACA,MAAMA,IDlKdrI,YAAYuJ,EAAU,IAClBA,EAAQ7D,UAAYI,EAA2ByD,EAAQ7D,WACvDvF,MAAMoJ,GACN5I,KAAK+M,GAC6B,IAA9BnE,EAAQoE,kBAKZhN,KAAKmJ,QAAQnF,KAAKuI,EAAiBU,wCAS1B5J,QAAChC,EAAS1B,GACbmH,MAAAA,QAAiBnH,EAAQ6K,WAAWnJ,GAC1C,OAAIyF,IAKAnH,EAAQyB,OAAgC,YAAvBzB,EAAQyB,MAAMO,WAClB3B,KAAKkN,EAAe7L,EAAS1B,SAIjCK,KAAKmN,EAAa9L,EAAS1B,IAE1B0D,QAAChC,EAAS1B,GACxB,IAAImH,EACElE,MAAAA,EAAUjD,EAAQiD,QAAU,GAE9B,IAAA5C,KAAK+M,EA+BL,MAAM,IAAI5N,EAAa,yBAA0B,CAC7C4F,UAAW/E,KAAK+E,UAChB1E,IAAKgB,EAAQhB,MAjCQ,CAMzB,MAAM+M,EAAsBxK,EAAOyK,UAC7BC,EAAqBjM,EAAQgM,UAC7BE,GAAuBD,GAAsBA,IAAuBF,EAC1EtG,QAAiBnH,EAAQ2J,MAAM,IAAInH,QAAQd,EAAS,CAChDgM,UAAWC,GAAsBF,KAOjCA,GAAuBG,IACvBvN,KAAKwN,UACmB7N,EAAQ4K,SAASlJ,EAASyF,EAASG,UA+BnE,OAAOH,EAESzD,QAAChC,EAAS1B,GAC1BK,KAAKwN,IACC1G,MAAAA,QAAiBnH,EAAQ2J,MAAMjI,GAIjC,UADoB1B,EAAQ4K,SAASlJ,EAASyF,EAASG,SAIvD,MAAM,IAAI9H,EAAa,0BAA2B,CAC9CkB,IAAKgB,EAAQhB,IACb+G,OAAQN,EAASM,SAGzB,OAAON,EA6BX0G,IACQC,IAAAA,EAAqB,KACrBC,EAA6B,EACjC,IAAK,MAAO/M,EAAO0I,KAAWrJ,KAAKmJ,QAAQwE,UAEnCtE,IAAWkD,EAAiBU,yCAI5B5D,IAAWkD,EAAiBqB,oCAC5BH,EAAqB9M,GAErB0I,EAAOwE,iBACPH,KAG2B,IAA/BA,EACA1N,KAAKmJ,QAAQnF,KAAKuI,EAAiBqB,mCAE9BF,EAA6B,GAA4B,OAAvBD,GAEvCzN,KAAKmJ,QAAQ/E,OAAOqJ,EAAoB,IAKpDlB,EAAiBqB,kCAAoC,CACjDvK,gBAAA,OAAsByD,SAAEA,MACfA,GAAYA,EAASM,QAAU,IACzB,KAEJN,GAGfyF,EAAiBU,uCAAyC,CACtD5J,gBAAA,OAAsByD,SAAEA,KACbA,EAASgH,iBAAmBjH,EAAaC,GAAYA,GE3LpE,MAAMiH,EAWF1O,aAAY0F,UAAEA,EAAFoE,QAAaA,EAAU,GAAvB6D,kBAA2BA,GAAoB,GAAU,IACjEhN,KAAKgO,EAAmB,IAAIjN,IAC5Bf,KAAKiO,EAAoB,IAAIlN,IAC7Bf,KAAKkO,EAA0B,IAAInN,IACnCf,KAAK+I,EAAY,IAAIwD,EAAiB,CAClCxH,UAAWI,EAA2BJ,GACtCoE,QAAS,IACFA,EACH,IAAI7C,EAAuB,CAAEC,mBAAoBvG,QAErDgN,kBAAAA,IAGCmB,KAAAA,QAAUnO,KAAKmO,QAAQC,KAAKpO,MAC5BqO,KAAAA,SAAWrO,KAAKqO,SAASD,KAAKpO,MAMnC2I,eACA,OAAO3I,KAAK+I,EAYhBvE,SAASmJ,GACAW,KAAAA,eAAeX,GACf3N,KAAKuO,IACN9P,KAAK0C,iBAAiB,UAAWnB,KAAKmO,SACtC1P,KAAK0C,iBAAiB,WAAYnB,KAAKqO,UAClCE,KAAAA,GAAkC,GAU/CD,eAAeX,GASLa,MAAAA,EAAkB,GACxB,IAAK,MAAMtM,KAASyL,EAAS,CAEJ,iBAAVzL,EACPsM,EAAgBxK,KAAK9B,GAEhBA,QAA4B0B,IAAnB1B,EAAMwD,UACpB8I,EAAgBxK,KAAK9B,EAAM7B,KAEzB,MAAAoF,SAAEA,EAAFpF,IAAYA,GAAQkF,EAAerD,GACnCuM,EAA6B,iBAAVvM,GAAsBA,EAAMwD,SAAW,SAAW,UAC3E,GAAI1F,KAAKgO,EAAiBjL,IAAI1C,IAC1BL,KAAKgO,EAAiBhL,IAAI3C,KAASoF,EACnC,MAAM,IAAItG,EAAa,wCAAyC,CAC5DuP,WAAY1O,KAAKgO,EAAiBhL,IAAI3C,GACtCsO,YAAalJ,IAGjB,GAAiB,iBAAVvD,GAAsBA,EAAMmL,UAAW,CAC9C,GAAIrN,KAAKkO,EAAwBnL,IAAI0C,IACjCzF,KAAKkO,EAAwBlL,IAAIyC,KAAcvD,EAAMmL,UACrD,MAAM,IAAIlO,EAAa,4CAA6C,CAChEkB,IAAAA,IAGH6N,KAAAA,EAAwBpK,IAAI2B,EAAUvD,EAAMmL,WAIrD,GAFArN,KAAKgO,EAAiBlK,IAAIzD,EAAKoF,GAC/BzF,KAAKiO,EAAkBnK,IAAIzD,EAAKoO,GAC5BD,EAAgBxP,OAAS,EAAG,CAC5B,MAAM4P,EACD,qDAAQJ,EAAgBtJ,KAAK,8EAK9B2J,QAAQC,KAAKF,KAkB7BT,QAAQ/M,GAGJ,OAAOgB,EAAUhB,GAAOiC,UACpB,MAAM0L,EAAsB,IAAIjJ,EAC3B6C,KAAAA,SAASQ,QAAQnF,KAAK+K,GAGtB,IAAA,MAAO1O,EAAKoF,KAAazF,KAAKgO,EAAkB,CAC3CX,MAAAA,EAAYrN,KAAKkO,EAAwBlL,IAAIyC,GAC7CgJ,EAAYzO,KAAKiO,EAAkBjL,IAAI3C,GACvCgB,EAAU,IAAIc,QAAQ9B,EAAK,CAC7BgN,UAAAA,EACA/B,MAAOmD,EACPO,YAAa,sBAEXlN,QAAQC,IAAI/B,KAAK2I,SAAS8D,UAAU,CACtC7J,OAAQ,CAAE6C,SAAAA,GACVpE,QAAAA,EACAD,MAAAA,KAGF,MAAA2E,YAAEA,EAAFC,eAAeA,GAAmB+I,EAIjC,MAAA,CAAEhJ,YAAAA,EAAaC,eAAAA,MAa9BqI,SAASjN,GAGL,OAAOgB,EAAUhB,GAAOiC,UACpB,MAAMiI,QAAc7M,KAAKqM,OAAOS,KAAKvL,KAAK2I,SAAS5D,WAC7CkK,QAAgC3D,EAAM3H,OACtCuL,EAAoB,IAAI3G,IAAIvI,KAAKgO,EAAiBmB,UAClDC,EAAc,GACpB,IAAK,MAAM/N,KAAW4N,EACbC,EAAkBnM,IAAI1B,EAAQhB,aACzBiL,EAAMpD,OAAO7G,GACnB+N,EAAYpL,KAAK3C,EAAQhB,MAM1B,MAAA,CAAE+O,YAAAA,MASjBC,qBACI,OAAOrP,KAAKgO,EAQhBsB,gBACI,MAAO,IAAItP,KAAKgO,EAAiBrK,QAWrC+C,kBAAkBrG,GACRmF,MAAAA,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACjC,OAAAR,KAAKgO,EAAiBhL,IAAIwC,EAAUhF,MAO/C+O,wBAAwB9J,GACpB,OAAOzF,KAAKkO,EAAwBlL,IAAIyC,GAoBtC+J,oBAAcnO,GACVhB,MAAAA,EAAMgB,aAAmBc,QAAUd,EAAQhB,IAAMgB,EACjDoE,EAAWzF,KAAK0G,kBAAkBrG,GACxC,GAAIoF,EAAU,CAEV,aADoBhH,KAAKqM,OAAOS,KAAKvL,KAAK2I,SAAS5D,YACtCjF,MAAM2F,IAY3BgK,wBAAwBpP,GACpB,MAAMoF,EAAWzF,KAAK0G,kBAAkBrG,GACpC,IAACoF,EACD,MAAM,IAAItG,EAAa,oBAAqB,CAAEkB,IAAAA,IAElD,OAAQuI,IACJA,EAAQvH,QAAU,IAAIc,QAAQ9B,GAC9BuI,EAAQhG,OAASc,OAAOoF,OAAO,CAAErD,SAAAA,GAAYmD,EAAQhG,QAC9C5C,KAAK2I,SAAS/I,OAAOgJ,KCtRxC,IAAIrC,EAKG,MAAMmJ,EAAgC,KACpCnJ,IACDA,EAAqB,IAAIwH,GAEtBxH,GCGX,MAAMoJ,UAAsB9P,EAiBxBR,YAAYkH,EAAoBqC,GAe5BpJ,OAdc,EAAG6B,QAAAA,MACb,MAAMuO,EAAkBrJ,EAAmB8I,qBACtC,IAAA,MAAMQ,KCtBhB,UAAgCxP,GAAKyP,4BAAEA,EAA8B,CAAC,QAAS,YAA1CC,eAAuDA,EAAiB,aAAxEC,UAAsFA,GAAY,EAAlGC,gBAAwGA,GAAqB,IAC/JzK,MAAAA,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACxCgF,EAAU0K,KAAO,SACX1K,EAAUhF,KAChB,MAAM2P,ECHH,SAAmC3K,EAAWsK,EAA8B,IAG/E,IAAK,MAAMM,IAAa,IAAI5K,EAAUK,aAAalC,QAC3CmM,EAA4BO,MAAMjQ,GAAWA,EAAOkQ,KAAKF,MACzD5K,EAAUK,aAAaqC,OAAOkI,GAGtC,OAAO5K,EDLyB+K,CAA0B/K,EAAWsK,GAEjEC,SADEI,EAAwB3P,KAC1BuP,GAAkBI,EAAwBK,SAASC,SAAS,KAAM,CAC5DC,MAAAA,EAAe,IAAIlO,IAAI2N,EAAwB3P,MACrDkQ,EAAaF,UAAYT,QACnBW,EAAalQ,KAEvB,GAAIwP,EAAW,CACLW,MAAAA,EAAW,IAAInO,IAAI2N,EAAwB3P,MACjDmQ,EAASH,UAAY,cACfG,EAASnQ,KAEnB,GAAIyP,EAAiB,CACXW,MAAAA,EAAiBX,EAAgB,CAAE5P,IAAKmF,IAC9C,IAAK,MAAMqL,KAAgBD,QACjBC,EAAarQ,MDGOsQ,CAAsBzP,EAAQhB,IAAKuI,GAAU,CACnE,MAAMnD,EAAWmK,EAAgB5M,IAAI6M,GACrC,GAAIpK,EAAU,CAEH,MAAA,CAAEA,SAAAA,EAAU4H,UADD9G,EAAmBgJ,wBAAwB9J,QAS5Dc,EAAmBoC,WG5BxC,SAASoI,EAASnI,GACRrC,MAAAA,EAAqBmJ,KCK/B,SAAuBsB,EAASrR,EAASI,GACrC,IAAI8C,EACJ,GAAuB,iBAAZmO,EAAsB,CACvBC,MAAAA,EAAa,IAAIzO,IAAIwO,EAAStQ,SAASF,MAkC7CqC,EAAQ,IAAIhD,GAZU,EAAGQ,IAAAA,KASdA,EAAIG,OAASyQ,EAAWzQ,MAGFb,EAASI,QAEzC,GAAIiR,aAAmB7F,OAExBtI,EAAQ,IAAI1C,EAAY6Q,EAASrR,EAASI,QAEzC,GAAuB,mBAAZiR,EAEZnO,EAAQ,IAAIhD,EAAMmR,EAASrR,EAASI,OAEnC,CAAA,KAAIiR,aAAmBnR,GAIxB,MAAM,IAAIV,EAAa,yBAA0B,CAC7C+R,WAAY,kBACZC,SAAU,gBACVf,UAAW,YANfvN,EAAQmO,GzB7DP3M,IACDA,EAAgB,IAAIxD,EAEpBwD,EAAcnD,mBACdmD,EAAc5C,oBAEX4C,GyBiEON,cAAclB,GD7D5BkB,CADsB,IAAI4L,EAAcpJ,EAAoBqC,uBEHhE,SAA0B+E,EAAS/E,ICInC,SAAkB+E,GACa+B,IACRlL,SAASmJ,GDL5BnJ,CAASmJ,GACToD,EAASnI"}\ No newline at end of filediff --git a/src/main/webapp/js/serviceworker/workbox-05b6c01b.js b/src/main/webapp/workbox-acfd85e3.jssimilarity index 99%rename from src/main/webapp/js/serviceworker/workbox-05b6c01b.jsrename to src/main/webapp/workbox-acfd85e3.jsindex ae2ba6999..36b122b03 100644--- a/src/main/webapp/js/serviceworker/workbox-05b6c01b.js+++ b/src/main/webapp/workbox-acfd85e3.js@@ -1,2 +1,2 @@define(["exports"],(function(t){"use strict";try{self["workbox:core:7.2.0"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:7.2.0"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class i{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class r extends i{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class o{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=r&&r.handler;const c=t.method;if(!o&&this.i.has(c)&&(o=this.i.get(c)),!o)return;let a;try{a=o.handle({url:s,request:t,event:e,params:i})}catch(t){a=Promise.reject(t)}const h=r&&r.catchHandler;return a instanceof Promise&&(this.o||h)&&(a=a.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),a}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const o=r.match({url:t,sameOrigin:e,request:s,event:n});if(o)return i=o,(Array.isArray(i)&&0===i.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let c;const a={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},h=t=>[a.prefix,t,a.suffix].filter((t=>t&&t.length>0)).join("-"),u=t=>t||h(a.precache),l=t=>t||h(a.runtime);function f(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:7.2.0"]&&_()}catch(t){}function w(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class d{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class p{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.h.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.h=t}}let y;async function g(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=e?e(r):r,c=function(){if(void 0===y){const t=new Response("");if("body"in t)try{new Response(t.body),y=!0}catch(t){y=!1}y=!1}return y}()?i.body:await i.blob();return new Response(c,o)}function R(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class m{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const v=new Set;try{self["workbox:strategies:7.2.0"]&&_()}catch(t){}function q(t){return"string"==typeof t?new Request(t):t}class U{constructor(t,e){this.u={},Object.assign(this,e),this.event=e.event,this.l=t,this.p=new m,this.R=[],this.m=[...t.plugins],this.v=new Map;for(const t of this.m)this.v.set(t,{});this.event.waitUntil(this.p.promise)}async fetch(t){const{event:e}=this;let n=q(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.l.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=q(t);let s;const{cacheName:n,matchOptions:i}=this.l,r=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=q(t);var i;await(i=0,new Promise((t=>setTimeout(t,i))));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=r.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const c=await this.q(e);if(!c)return!1;const{cacheName:a,matchOptions:h}=this.l,u=await self.caches.open(a),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=R(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,r);for(const e of o)if(i===R(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?c.clone():c)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of v)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:a,oldResponse:f,newResponse:c.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.u[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=q(await t({mode:e,request:n,event:this.event,params:this.params}));this.u[s]=n}return this.u[s]}hasCallback(t){for(const e of this.l.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.l.plugins)if("function"==typeof e[t]){const s=this.v.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.R.push(t),t}async doneWaiting(){let t;for(;t=this.R.shift();)await t}destroy(){this.p.resolve(null)}async q(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class L{constructor(t={}){this.cacheName=l(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new U(this,{event:e,request:s,params:n}),r=this.U(i,s,e);return[r,this.L(r,i,s,e)]}async U(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this._(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async L(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}class b extends L{constructor(t={}){t.cacheName=u(t.cacheName),super(t),this.C=!1!==t.fallbackToNetwork,this.plugins.push(b.copyRedirectedCacheableResponsesPlugin)}async _(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.O(t,e):await this.N(t,e))}async N(t,e){let n;const i=e.params||{};if(!this.C)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,o=!r||r===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?r||s:void 0})),s&&o&&"no-cors"!==t.mode&&(this.k(),await e.cachePut(t,n.clone()))}return n}async O(t,e){this.k();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}k(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==b.copyRedirectedCacheableResponsesPlugin&&(n===b.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(b.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}b.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},b.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await g(t):t};class C{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.K=new Map,this.T=new Map,this.W=new Map,this.l=new b({cacheName:u(t),plugins:[...e,new p({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.l}precache(t){this.addToCacheList(t),this.j||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.j=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=w(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.K.has(i)&&this.K.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.K.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.W.has(t)&&this.W.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.W.set(t,n.integrity)}if(this.K.set(i,t),this.T.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return f(t,(async()=>{const e=new d;this.strategy.plugins.push(e);for(const[e,s]of this.K){const n=this.W.get(s),i=this.T.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return f(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.K.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.K}getCachedURLs(){return[...this.K.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.K.get(e.href)}getIntegrityForCacheKey(t){return this.W.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}let E;const O=()=>(E||(E=new C),E);class x extends i{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(r,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}function N(t){const e=O();!function(t,e,n){let a;if("string"==typeof t){const s=new URL(t,location.href);a=new i((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)a=new r(t,e,n);else if("function"==typeof t)a=new i(t,e,n);else{if(!(t instanceof i))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=t}(c||(c=new o,c.addFetchListener(),c.addCacheListener()),c).registerRoute(a)}(new x(e,t))}t.precacheAndRoute=function(t,e){!function(t){O().precache(t)}(t),N(e)}}));-//# sourceMappingURL=workbox-05b6c01b.js.map+//# sourceMappingURL=workbox-acfd85e3.js.mapdiff --git a/src/main/webapp/workbox-acfd85e3.js.map b/src/main/webapp/workbox-acfd85e3.js.mapnew file mode 100644index 000000000..d3e486f2c--- /dev/null+++ b/src/main/webapp/workbox-acfd85e3.js.map@@ -0,0 +1 @@+{"version":3,"file":"workbox-acfd85e3.js","sources":["../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_version.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/logger.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/models/messages/messageGenerator.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/WorkboxError.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-routing/_version.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/constants.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/normalizeHandler.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-routing/Route.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-routing/RegExpRoute.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-routing/Router.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-routing/utils/getOrCreateDefaultRouter.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/cacheNames.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/waitUntil.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/_version.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/createCacheKey.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/PrecacheInstallReportPlugin.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/PrecacheCacheKeyPlugin.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/canConstructResponseFromBodyStream.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/copyResponse.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/cacheMatchIgnoreParams.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/Deferred.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/models/quotaErrorCallbacks.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-strategies/_version.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-strategies/StrategyHandler.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/timeout.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/getFriendlyURL.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-core/_private/executeQuotaErrorCallbacks.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-strategies/Strategy.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheStrategy.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheController.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/getOrCreatePrecacheController.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/PrecacheRoute.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/generateURLVariations.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/utils/removeIgnoredSearchParams.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/addRoute.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-routing/registerRoute.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precacheAndRoute.js","../../../../.nvm/versions/node/v22.14.0/lib/node_modules/workbox-cli/node_modules/workbox-precaching/precache.js"],"sourcesContent":["\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:core:7.2.0'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst logger = (process.env.NODE_ENV === 'production'\n ? null\n : (() => {\n // Don't overwrite this value if it's already set.\n // See https://github.com/GoogleChrome/workbox/pull/2284#issuecomment-560470923\n if (!('__WB_DISABLE_DEV_LOGS' in globalThis)) {\n self.__WB_DISABLE_DEV_LOGS = false;\n }\n let inGroup = false;\n const methodToColorMap = {\n debug: `#7f8c8d`,\n log: `#2ecc71`,\n warn: `#f39c12`,\n error: `#c0392b`,\n groupCollapsed: `#3498db`,\n groupEnd: null, // No colored prefix on groupEnd\n };\n const print = function (method, args) {\n if (self.__WB_DISABLE_DEV_LOGS) {\n return;\n }\n if (method === 'groupCollapsed') {\n // Safari doesn't print all console.groupCollapsed() arguments:\n // https://bugs.webkit.org/show_bug.cgi?id=182754\n if (/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n console[method](...args);\n return;\n }\n }\n const styles = [\n `background: ${methodToColorMap[method]}`,\n `border-radius: 0.5em`,\n `color: white`,\n `font-weight: bold`,\n `padding: 2px 0.5em`,\n ];\n // When in a group, the workbox prefix is not displayed.\n const logPrefix = inGroup ? [] : ['%cworkbox', styles.join(';')];\n console[method](...logPrefix, ...args);\n if (method === 'groupCollapsed') {\n inGroup = true;\n }\n if (method === 'groupEnd') {\n inGroup = false;\n }\n };\n // eslint-disable-next-line @typescript-eslint/ban-types\n const api = {};\n const loggerMethods = Object.keys(methodToColorMap);\n for (const key of loggerMethods) {\n const method = key;\n api[method] = (...args) => {\n print(method, args);\n };\n }\n return api;\n })());\nexport { logger };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { messages } from './messages.js';\nimport '../../_version.js';\nconst fallback = (code, ...args) => {\n let msg = code;\n if (args.length > 0) {\n msg += ` :: ${JSON.stringify(args)}`;\n }\n return msg;\n};\nconst generatorFunction = (code, details = {}) => {\n const message = messages[code];\n if (!message) {\n throw new Error(`Unable to find message for code '${code}'.`);\n }\n return message(details);\n};\nexport const messageGenerator = process.env.NODE_ENV === 'production' ? fallback : generatorFunction;\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { messageGenerator } from '../models/messages/messageGenerator.js';\nimport '../_version.js';\n/**\n * Workbox errors should be thrown with this class.\n * This allows use to ensure the type easily in tests,\n * helps developers identify errors from workbox\n * easily and allows use to optimise error\n * messages correctly.\n *\n * @private\n */\nclass WorkboxError extends Error {\n /**\n *\n * @param {string} errorCode The error code that\n * identifies this particular error.\n * @param {Object=} details Any relevant arguments\n * that will help developers identify issues should\n * be added as a key on the context object.\n */\n constructor(errorCode, details) {\n const message = messageGenerator(errorCode, details);\n super(message);\n this.name = errorCode;\n this.details = details;\n }\n}\nexport { WorkboxError };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:routing:7.2.0'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * The default HTTP method, 'GET', used when there's no specific method\n * configured for a route.\n *\n * @type {string}\n *\n * @private\n */\nexport const defaultMethod = 'GET';\n/**\n * The list of valid HTTP methods associated with requests that could be routed.\n *\n * @type {Array<string>}\n *\n * @private\n */\nexport const validMethods = [\n 'DELETE',\n 'GET',\n 'HEAD',\n 'PATCH',\n 'POST',\n 'PUT',\n];\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport '../_version.js';\n/**\n * @param {function()|Object} handler Either a function, or an object with a\n * 'handle' method.\n * @return {Object} An object with a handle method.\n *\n * @private\n */\nexport const normalizeHandler = (handler) => {\n if (handler && typeof handler === 'object') {\n if (process.env.NODE_ENV !== 'production') {\n assert.hasMethod(handler, 'handle', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'handler',\n });\n }\n return handler;\n }\n else {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(handler, 'function', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'handler',\n });\n }\n return { handle: handler };\n }\n};\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { defaultMethod, validMethods } from './utils/constants.js';\nimport { normalizeHandler } from './utils/normalizeHandler.js';\nimport './_version.js';\n/**\n * A `Route` consists of a pair of callback functions, \"match\" and \"handler\".\n * The \"match\" callback determine if a route should be used to \"handle\" a\n * request by returning a non-falsy value if it can. The \"handler\" callback\n * is called when there is a match and should return a Promise that resolves\n * to a `Response`.\n *\n * @memberof workbox-routing\n */\nclass Route {\n /**\n * Constructor for Route class.\n *\n * @param {workbox-routing~matchCallback} match\n * A callback function that determines whether the route matches a given\n * `fetch` event by returning a non-falsy value.\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resolving to a Response.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n */\n constructor(match, handler, method = defaultMethod) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(match, 'function', {\n moduleName: 'workbox-routing',\n className: 'Route',\n funcName: 'constructor',\n paramName: 'match',\n });\n if (method) {\n assert.isOneOf(method, validMethods, { paramName: 'method' });\n }\n }\n // These values are referenced directly by Router so cannot be\n // altered by minificaton.\n this.handler = normalizeHandler(handler);\n this.match = match;\n this.method = method;\n }\n /**\n *\n * @param {workbox-routing-handlerCallback} handler A callback\n * function that returns a Promise resolving to a Response\n */\n setCatchHandler(handler) {\n this.catchHandler = normalizeHandler(handler);\n }\n}\nexport { Route };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { Route } from './Route.js';\nimport './_version.js';\n/**\n * RegExpRoute makes it easy to create a regular expression based\n * {@link workbox-routing.Route}.\n *\n * For same-origin requests the RegExp only needs to match part of the URL. For\n * requests against third-party servers, you must define a RegExp that matches\n * the start of the URL.\n *\n * @memberof workbox-routing\n * @extends workbox-routing.Route\n */\nclass RegExpRoute extends Route {\n /**\n * If the regular expression contains\n * [capture groups]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#grouping-back-references},\n * the captured values will be passed to the\n * {@link workbox-routing~handlerCallback} `params`\n * argument.\n *\n * @param {RegExp} regExp The regular expression to match against URLs.\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n */\n constructor(regExp, handler, method) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(regExp, RegExp, {\n moduleName: 'workbox-routing',\n className: 'RegExpRoute',\n funcName: 'constructor',\n paramName: 'pattern',\n });\n }\n const match = ({ url }) => {\n const result = regExp.exec(url.href);\n // Return immediately if there's no match.\n if (!result) {\n return;\n }\n // Require that the match start at the first character in the URL string\n // if it's a cross-origin request.\n // See https://github.com/GoogleChrome/workbox/issues/281 for the context\n // behind this behavior.\n if (url.origin !== location.origin && result.index !== 0) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`The regular expression '${regExp.toString()}' only partially matched ` +\n `against the cross-origin URL '${url.toString()}'. RegExpRoute's will only ` +\n `handle cross-origin requests if they match the entire URL.`);\n }\n return;\n }\n // If the route matches, but there aren't any capture groups defined, then\n // this will return [], which is truthy and therefore sufficient to\n // indicate a match.\n // If there are capture groups, then it will return their values.\n return result.slice(1);\n };\n super(match, handler, method);\n }\n}\nexport { RegExpRoute };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { defaultMethod } from './utils/constants.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { normalizeHandler } from './utils/normalizeHandler.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport './_version.js';\n/**\n * The Router can be used to process a `FetchEvent` using one or more\n * {@link workbox-routing.Route}, responding with a `Response` if\n * a matching route exists.\n *\n * If no route matches a given a request, the Router will use a \"default\"\n * handler if one is defined.\n *\n * Should the matching Route throw an error, the Router will use a \"catch\"\n * handler if one is defined to gracefully deal with issues and respond with a\n * Request.\n *\n * If a request matches multiple routes, the **earliest** registered route will\n * be used to respond to the request.\n *\n * @memberof workbox-routing\n */\nclass Router {\n /**\n * Initializes a new Router.\n */\n constructor() {\n this._routes = new Map();\n this._defaultHandlerMap = new Map();\n }\n /**\n * @return {Map<string, Array<workbox-routing.Route>>} routes A `Map` of HTTP\n * method name ('GET', etc.) to an array of all the corresponding `Route`\n * instances that are registered.\n */\n get routes() {\n return this._routes;\n }\n /**\n * Adds a fetch event listener to respond to events when a route matches\n * the event's request.\n */\n addFetchListener() {\n // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705\n self.addEventListener('fetch', ((event) => {\n const { request } = event;\n const responsePromise = this.handleRequest({ request, event });\n if (responsePromise) {\n event.respondWith(responsePromise);\n }\n }));\n }\n /**\n * Adds a message event listener for URLs to cache from the window.\n * This is useful to cache resources loaded on the page prior to when the\n * service worker started controlling it.\n *\n * The format of the message data sent from the window should be as follows.\n * Where the `urlsToCache` array may consist of URL strings or an array of\n * URL string + `requestInit` object (the same as you'd pass to `fetch()`).\n *\n * ```\n * {\n * type: 'CACHE_URLS',\n * payload: {\n * urlsToCache: [\n * './script1.js',\n * './script2.js',\n * ['./script3.js', {mode: 'no-cors'}],\n * ],\n * },\n * }\n * ```\n */\n addCacheListener() {\n // See https://github.com/Microsoft/TypeScript/issues/28357#issuecomment-436484705\n self.addEventListener('message', ((event) => {\n // event.data is type 'any'\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (event.data && event.data.type === 'CACHE_URLS') {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const { payload } = event.data;\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Caching URLs from the window`, payload.urlsToCache);\n }\n const requestPromises = Promise.all(payload.urlsToCache.map((entry) => {\n if (typeof entry === 'string') {\n entry = [entry];\n }\n const request = new Request(...entry);\n return this.handleRequest({ request, event });\n // TODO(philipwalton): TypeScript errors without this typecast for\n // some reason (probably a bug). The real type here should work but\n // doesn't: `Array<Promise<Response> | undefined>`.\n })); // TypeScript\n event.waitUntil(requestPromises);\n // If a MessageChannel was used, reply to the message on success.\n if (event.ports && event.ports[0]) {\n void requestPromises.then(() => event.ports[0].postMessage(true));\n }\n }\n }));\n }\n /**\n * Apply the routing rules to a FetchEvent object to get a Response from an\n * appropriate Route's handler.\n *\n * @param {Object} options\n * @param {Request} options.request The request to handle.\n * @param {ExtendableEvent} options.event The event that triggered the\n * request.\n * @return {Promise<Response>|undefined} A promise is returned if a\n * registered route can handle the request. If there is no matching\n * route and there's no `defaultHandler`, `undefined` is returned.\n */\n handleRequest({ request, event, }) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(request, Request, {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'handleRequest',\n paramName: 'options.request',\n });\n }\n const url = new URL(request.url, location.href);\n if (!url.protocol.startsWith('http')) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Workbox Router only supports URLs that start with 'http'.`);\n }\n return;\n }\n const sameOrigin = url.origin === location.origin;\n const { params, route } = this.findMatchingRoute({\n event,\n request,\n sameOrigin,\n url,\n });\n let handler = route && route.handler;\n const debugMessages = [];\n if (process.env.NODE_ENV !== 'production') {\n if (handler) {\n debugMessages.push([`Found a route to handle this request:`, route]);\n if (params) {\n debugMessages.push([\n `Passing the following params to the route's handler:`,\n params,\n ]);\n }\n }\n }\n // If we don't have a handler because there was no matching route, then\n // fall back to defaultHandler if that's defined.\n const method = request.method;\n if (!handler && this._defaultHandlerMap.has(method)) {\n if (process.env.NODE_ENV !== 'production') {\n debugMessages.push(`Failed to find a matching route. Falling ` +\n `back to the default handler for ${method}.`);\n }\n handler = this._defaultHandlerMap.get(method);\n }\n if (!handler) {\n if (process.env.NODE_ENV !== 'production') {\n // No handler so Workbox will do nothing. If logs is set of debug\n // i.e. verbose, we should print out this information.\n logger.debug(`No route found for: ${getFriendlyURL(url)}`);\n }\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // We have a handler, meaning Workbox is going to handle the route.\n // print the routing details to the console.\n logger.groupCollapsed(`Router is responding to: ${getFriendlyURL(url)}`);\n debugMessages.forEach((msg) => {\n if (Array.isArray(msg)) {\n logger.log(...msg);\n }\n else {\n logger.log(msg);\n }\n });\n logger.groupEnd();\n }\n // Wrap in try and catch in case the handle method throws a synchronous\n // error. It should still callback to the catch handler.\n let responsePromise;\n try {\n responsePromise = handler.handle({ url, request, event, params });\n }\n catch (err) {\n responsePromise = Promise.reject(err);\n }\n // Get route's catch handler, if it exists\n const catchHandler = route && route.catchHandler;\n if (responsePromise instanceof Promise &&\n (this._catchHandler || catchHandler)) {\n responsePromise = responsePromise.catch(async (err) => {\n // If there's a route catch handler, process that first\n if (catchHandler) {\n if (process.env.NODE_ENV !== 'production') {\n // Still include URL here as it will be async from the console group\n // and may not make sense without the URL\n logger.groupCollapsed(`Error thrown when responding to: ` +\n ` ${getFriendlyURL(url)}. Falling back to route's Catch Handler.`);\n logger.error(`Error thrown by:`, route);\n logger.error(err);\n logger.groupEnd();\n }\n try {\n return await catchHandler.handle({ url, request, event, params });\n }\n catch (catchErr) {\n if (catchErr instanceof Error) {\n err = catchErr;\n }\n }\n }\n if (this._catchHandler) {\n if (process.env.NODE_ENV !== 'production') {\n // Still include URL here as it will be async from the console group\n // and may not make sense without the URL\n logger.groupCollapsed(`Error thrown when responding to: ` +\n ` ${getFriendlyURL(url)}. Falling back to global Catch Handler.`);\n logger.error(`Error thrown by:`, route);\n logger.error(err);\n logger.groupEnd();\n }\n return this._catchHandler.handle({ url, request, event });\n }\n throw err;\n });\n }\n return responsePromise;\n }\n /**\n * Checks a request and URL (and optionally an event) against the list of\n * registered routes, and if there's a match, returns the corresponding\n * route along with any params generated by the match.\n *\n * @param {Object} options\n * @param {URL} options.url\n * @param {boolean} options.sameOrigin The result of comparing `url.origin`\n * against the current origin.\n * @param {Request} options.request The request to match.\n * @param {Event} options.event The corresponding event.\n * @return {Object} An object with `route` and `params` properties.\n * They are populated if a matching route was found or `undefined`\n * otherwise.\n */\n findMatchingRoute({ url, sameOrigin, request, event, }) {\n const routes = this._routes.get(request.method) || [];\n for (const route of routes) {\n let params;\n // route.match returns type any, not possible to change right now.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n const matchResult = route.match({ url, sameOrigin, request, event });\n if (matchResult) {\n if (process.env.NODE_ENV !== 'production') {\n // Warn developers that using an async matchCallback is almost always\n // not the right thing to do.\n if (matchResult instanceof Promise) {\n logger.warn(`While routing ${getFriendlyURL(url)}, an async ` +\n `matchCallback function was used. Please convert the ` +\n `following route to use a synchronous matchCallback function:`, route);\n }\n }\n // See https://github.com/GoogleChrome/workbox/issues/2079\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n params = matchResult;\n if (Array.isArray(params) && params.length === 0) {\n // Instead of passing an empty array in as params, use undefined.\n params = undefined;\n }\n else if (matchResult.constructor === Object && // eslint-disable-line\n Object.keys(matchResult).length === 0) {\n // Instead of passing an empty object in as params, use undefined.\n params = undefined;\n }\n else if (typeof matchResult === 'boolean') {\n // For the boolean value true (rather than just something truth-y),\n // don't set params.\n // See https://github.com/GoogleChrome/workbox/pull/2134#issuecomment-513924353\n params = undefined;\n }\n // Return early if have a match.\n return { route, params };\n }\n }\n // If no match was found above, return and empty object.\n return {};\n }\n /**\n * Define a default `handler` that's called when no routes explicitly\n * match the incoming request.\n *\n * Each HTTP method ('GET', 'POST', etc.) gets its own default handler.\n *\n * Without a default handler, unmatched requests will go against the\n * network as if there were no service worker present.\n *\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n * @param {string} [method='GET'] The HTTP method to associate with this\n * default handler. Each method has its own default.\n */\n setDefaultHandler(handler, method = defaultMethod) {\n this._defaultHandlerMap.set(method, normalizeHandler(handler));\n }\n /**\n * If a Route throws an error while handling a request, this `handler`\n * will be called and given a chance to provide a response.\n *\n * @param {workbox-routing~handlerCallback} handler A callback\n * function that returns a Promise resulting in a Response.\n */\n setCatchHandler(handler) {\n this._catchHandler = normalizeHandler(handler);\n }\n /**\n * Registers a route with the router.\n *\n * @param {workbox-routing.Route} route The route to register.\n */\n registerRoute(route) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isType(route, 'object', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.hasMethod(route, 'match', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.isType(route.handler, 'object', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route',\n });\n assert.hasMethod(route.handler, 'handle', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route.handler',\n });\n assert.isType(route.method, 'string', {\n moduleName: 'workbox-routing',\n className: 'Router',\n funcName: 'registerRoute',\n paramName: 'route.method',\n });\n }\n if (!this._routes.has(route.method)) {\n this._routes.set(route.method, []);\n }\n // Give precedence to all of the earlier routes by adding this additional\n // route to the end of the array.\n this._routes.get(route.method).push(route);\n }\n /**\n * Unregisters a route with the router.\n *\n * @param {workbox-routing.Route} route The route to unregister.\n */\n unregisterRoute(route) {\n if (!this._routes.has(route.method)) {\n throw new WorkboxError('unregister-route-but-not-found-with-method', {\n method: route.method,\n });\n }\n const routeIndex = this._routes.get(route.method).indexOf(route);\n if (routeIndex > -1) {\n this._routes.get(route.method).splice(routeIndex, 1);\n }\n else {\n throw new WorkboxError('unregister-route-route-not-registered');\n }\n }\n}\nexport { Router };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { Router } from '../Router.js';\nimport '../_version.js';\nlet defaultRouter;\n/**\n * Creates a new, singleton Router instance if one does not exist. If one\n * does already exist, that instance is returned.\n *\n * @private\n * @return {Router}\n */\nexport const getOrCreateDefaultRouter = () => {\n if (!defaultRouter) {\n defaultRouter = new Router();\n // The helpers that use the default Router assume these listeners exist.\n defaultRouter.addFetchListener();\n defaultRouter.addCacheListener();\n }\n return defaultRouter;\n};\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst _cacheNameDetails = {\n googleAnalytics: 'googleAnalytics',\n precache: 'precache-v2',\n prefix: 'workbox',\n runtime: 'runtime',\n suffix: typeof registration !== 'undefined' ? registration.scope : '',\n};\nconst _createCacheName = (cacheName) => {\n return [_cacheNameDetails.prefix, cacheName, _cacheNameDetails.suffix]\n .filter((value) => value && value.length > 0)\n .join('-');\n};\nconst eachCacheNameDetail = (fn) => {\n for (const key of Object.keys(_cacheNameDetails)) {\n fn(key);\n }\n};\nexport const cacheNames = {\n updateDetails: (details) => {\n eachCacheNameDetail((key) => {\n if (typeof details[key] === 'string') {\n _cacheNameDetails[key] = details[key];\n }\n });\n },\n getGoogleAnalyticsName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.googleAnalytics);\n },\n getPrecacheName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.precache);\n },\n getPrefix: () => {\n return _cacheNameDetails.prefix;\n },\n getRuntimeName: (userCacheName) => {\n return userCacheName || _createCacheName(_cacheNameDetails.runtime);\n },\n getSuffix: () => {\n return _cacheNameDetails.suffix;\n },\n};\n","/*\n Copyright 2020 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A utility method that makes it easier to use `event.waitUntil` with\n * async functions and return the result.\n *\n * @param {ExtendableEvent} event\n * @param {Function} asyncFn\n * @return {Function}\n * @private\n */\nfunction waitUntil(event, asyncFn) {\n const returnPromise = asyncFn();\n event.waitUntil(returnPromise);\n return returnPromise;\n}\nexport { waitUntil };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:precaching:7.2.0'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport '../_version.js';\n// Name of the search parameter used to store revision info.\nconst REVISION_SEARCH_PARAM = '__WB_REVISION__';\n/**\n * Converts a manifest entry into a versioned URL suitable for precaching.\n *\n * @param {Object|string} entry\n * @return {string} A URL with versioning info.\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function createCacheKey(entry) {\n if (!entry) {\n throw new WorkboxError('add-to-cache-list-unexpected-type', { entry });\n }\n // If a precache manifest entry is a string, it's assumed to be a versioned\n // URL, like '/app.abcd1234.js'. Return as-is.\n if (typeof entry === 'string') {\n const urlObject = new URL(entry, location.href);\n return {\n cacheKey: urlObject.href,\n url: urlObject.href,\n };\n }\n const { revision, url } = entry;\n if (!url) {\n throw new WorkboxError('add-to-cache-list-unexpected-type', { entry });\n }\n // If there's just a URL and no revision, then it's also assumed to be a\n // versioned URL.\n if (!revision) {\n const urlObject = new URL(url, location.href);\n return {\n cacheKey: urlObject.href,\n url: urlObject.href,\n };\n }\n // Otherwise, construct a properly versioned URL using the custom Workbox\n // search parameter along with the revision info.\n const cacheKeyURL = new URL(url, location.href);\n const originalURL = new URL(url, location.href);\n cacheKeyURL.searchParams.set(REVISION_SEARCH_PARAM, revision);\n return {\n cacheKey: cacheKeyURL.href,\n url: originalURL.href,\n };\n}\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A plugin, designed to be used with PrecacheController, to determine the\n * of assets that were updated (or not updated) during the install event.\n *\n * @private\n */\nclass PrecacheInstallReportPlugin {\n constructor() {\n this.updatedURLs = [];\n this.notUpdatedURLs = [];\n this.handlerWillStart = async ({ request, state, }) => {\n // TODO: `state` should never be undefined...\n if (state) {\n state.originalRequest = request;\n }\n };\n this.cachedResponseWillBeUsed = async ({ event, state, cachedResponse, }) => {\n if (event.type === 'install') {\n if (state &&\n state.originalRequest &&\n state.originalRequest instanceof Request) {\n // TODO: `state` should never be undefined...\n const url = state.originalRequest.url;\n if (cachedResponse) {\n this.notUpdatedURLs.push(url);\n }\n else {\n this.updatedURLs.push(url);\n }\n }\n }\n return cachedResponse;\n };\n }\n}\nexport { PrecacheInstallReportPlugin };\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * A plugin, designed to be used with PrecacheController, to translate URLs into\n * the corresponding cache key, based on the current revision info.\n *\n * @private\n */\nclass PrecacheCacheKeyPlugin {\n constructor({ precacheController }) {\n this.cacheKeyWillBeUsed = async ({ request, params, }) => {\n // Params is type any, can't change right now.\n /* eslint-disable */\n const cacheKey = (params === null || params === void 0 ? void 0 : params.cacheKey) ||\n this._precacheController.getCacheKeyForURL(request.url);\n /* eslint-enable */\n return cacheKey\n ? new Request(cacheKey, { headers: request.headers })\n : request;\n };\n this._precacheController = precacheController;\n }\n}\nexport { PrecacheCacheKeyPlugin };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nlet supportStatus;\n/**\n * A utility function that determines whether the current browser supports\n * constructing a new `Response` from a `response.body` stream.\n *\n * @return {boolean} `true`, if the current browser can successfully\n * construct a `Response` from a `response.body` stream, `false` otherwise.\n *\n * @private\n */\nfunction canConstructResponseFromBodyStream() {\n if (supportStatus === undefined) {\n const testResponse = new Response('');\n if ('body' in testResponse) {\n try {\n new Response(testResponse.body);\n supportStatus = true;\n }\n catch (error) {\n supportStatus = false;\n }\n }\n supportStatus = false;\n }\n return supportStatus;\n}\nexport { canConstructResponseFromBodyStream };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { canConstructResponseFromBodyStream } from './_private/canConstructResponseFromBodyStream.js';\nimport { WorkboxError } from './_private/WorkboxError.js';\nimport './_version.js';\n/**\n * Allows developers to copy a response and modify its `headers`, `status`,\n * or `statusText` values (the values settable via a\n * [`ResponseInit`]{@link https://developer.mozilla.org/en-US/docs/Web/API/Response/Response#Syntax}\n * object in the constructor).\n * To modify these values, pass a function as the second argument. That\n * function will be invoked with a single object with the response properties\n * `{headers, status, statusText}`. The return value of this function will\n * be used as the `ResponseInit` for the new `Response`. To change the values\n * either modify the passed parameter(s) and return it, or return a totally\n * new object.\n *\n * This method is intentionally limited to same-origin responses, regardless of\n * whether CORS was used or not.\n *\n * @param {Response} response\n * @param {Function} modifier\n * @memberof workbox-core\n */\nasync function copyResponse(response, modifier) {\n let origin = null;\n // If response.url isn't set, assume it's cross-origin and keep origin null.\n if (response.url) {\n const responseURL = new URL(response.url);\n origin = responseURL.origin;\n }\n if (origin !== self.location.origin) {\n throw new WorkboxError('cross-origin-copy-response', { origin });\n }\n const clonedResponse = response.clone();\n // Create a fresh `ResponseInit` object by cloning the headers.\n const responseInit = {\n headers: new Headers(clonedResponse.headers),\n status: clonedResponse.status,\n statusText: clonedResponse.statusText,\n };\n // Apply any user modifications.\n const modifiedResponseInit = modifier ? modifier(responseInit) : responseInit;\n // Create the new response from the body stream and `ResponseInit`\n // modifications. Note: not all browsers support the Response.body stream,\n // so fall back to reading the entire body into memory as a blob.\n const body = canConstructResponseFromBodyStream()\n ? clonedResponse.body\n : await clonedResponse.blob();\n return new Response(body, modifiedResponseInit);\n}\nexport { copyResponse };\n","/*\n Copyright 2020 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nfunction stripParams(fullURL, ignoreParams) {\n const strippedURL = new URL(fullURL);\n for (const param of ignoreParams) {\n strippedURL.searchParams.delete(param);\n }\n return strippedURL.href;\n}\n/**\n * Matches an item in the cache, ignoring specific URL params. This is similar\n * to the `ignoreSearch` option, but it allows you to ignore just specific\n * params (while continuing to match on the others).\n *\n * @private\n * @param {Cache} cache\n * @param {Request} request\n * @param {Object} matchOptions\n * @param {Array<string>} ignoreParams\n * @return {Promise<Response|undefined>}\n */\nasync function cacheMatchIgnoreParams(cache, request, ignoreParams, matchOptions) {\n const strippedRequestURL = stripParams(request.url, ignoreParams);\n // If the request doesn't include any ignored params, match as normal.\n if (request.url === strippedRequestURL) {\n return cache.match(request, matchOptions);\n }\n // Otherwise, match by comparing keys\n const keysOptions = Object.assign(Object.assign({}, matchOptions), { ignoreSearch: true });\n const cacheKeys = await cache.keys(request, keysOptions);\n for (const cacheKey of cacheKeys) {\n const strippedCacheKeyURL = stripParams(cacheKey.url, ignoreParams);\n if (strippedRequestURL === strippedCacheKeyURL) {\n return cache.match(cacheKey, matchOptions);\n }\n }\n return;\n}\nexport { cacheMatchIgnoreParams };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * The Deferred class composes Promises in a way that allows for them to be\n * resolved or rejected from outside the constructor. In most cases promises\n * should be used directly, but Deferreds can be necessary when the logic to\n * resolve a promise must be separate.\n *\n * @private\n */\nclass Deferred {\n /**\n * Creates a promise and exposes its resolve and reject functions as methods.\n */\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n }\n}\nexport { Deferred };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n// Callbacks to be executed whenever there's a quota error.\n// Can't change Function type right now.\n// eslint-disable-next-line @typescript-eslint/ban-types\nconst quotaErrorCallbacks = new Set();\nexport { quotaErrorCallbacks };\n","\"use strict\";\n// @ts-ignore\ntry {\n self['workbox:strategies:7.2.0'] && _();\n}\ncatch (e) { }\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { cacheMatchIgnoreParams } from 'workbox-core/_private/cacheMatchIgnoreParams.js';\nimport { Deferred } from 'workbox-core/_private/Deferred.js';\nimport { executeQuotaErrorCallbacks } from 'workbox-core/_private/executeQuotaErrorCallbacks.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { timeout } from 'workbox-core/_private/timeout.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport './_version.js';\nfunction toRequest(input) {\n return typeof input === 'string' ? new Request(input) : input;\n}\n/**\n * A class created every time a Strategy instance instance calls\n * {@link workbox-strategies.Strategy~handle} or\n * {@link workbox-strategies.Strategy~handleAll} that wraps all fetch and\n * cache actions around plugin callbacks and keeps track of when the strategy\n * is \"done\" (i.e. all added `event.waitUntil()` promises have resolved).\n *\n * @memberof workbox-strategies\n */\nclass StrategyHandler {\n /**\n * Creates a new instance associated with the passed strategy and event\n * that's handling the request.\n *\n * The constructor also initializes the state that will be passed to each of\n * the plugins handling this request.\n *\n * @param {workbox-strategies.Strategy} strategy\n * @param {Object} options\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params] The return value from the\n * {@link workbox-routing~matchCallback} (if applicable).\n */\n constructor(strategy, options) {\n this._cacheKeys = {};\n /**\n * The request the strategy is performing (passed to the strategy's\n * `handle()` or `handleAll()` method).\n * @name request\n * @instance\n * @type {Request}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * The event associated with this request.\n * @name event\n * @instance\n * @type {ExtendableEvent}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * A `URL` instance of `request.url` (if passed to the strategy's\n * `handle()` or `handleAll()` method).\n * Note: the `url` param will be present if the strategy was invoked\n * from a workbox `Route` object.\n * @name url\n * @instance\n * @type {URL|undefined}\n * @memberof workbox-strategies.StrategyHandler\n */\n /**\n * A `param` value (if passed to the strategy's\n * `handle()` or `handleAll()` method).\n * Note: the `param` param will be present if the strategy was invoked\n * from a workbox `Route` object and the\n * {@link workbox-routing~matchCallback} returned\n * a truthy value (it will be that value).\n * @name params\n * @instance\n * @type {*|undefined}\n * @memberof workbox-strategies.StrategyHandler\n */\n if (process.env.NODE_ENV !== 'production') {\n assert.isInstance(options.event, ExtendableEvent, {\n moduleName: 'workbox-strategies',\n className: 'StrategyHandler',\n funcName: 'constructor',\n paramName: 'options.event',\n });\n }\n Object.assign(this, options);\n this.event = options.event;\n this._strategy = strategy;\n this._handlerDeferred = new Deferred();\n this._extendLifetimePromises = [];\n // Copy the plugins list (since it's mutable on the strategy),\n // so any mutations don't affect this handler instance.\n this._plugins = [...strategy.plugins];\n this._pluginStateMap = new Map();\n for (const plugin of this._plugins) {\n this._pluginStateMap.set(plugin, {});\n }\n this.event.waitUntil(this._handlerDeferred.promise);\n }\n /**\n * Fetches a given request (and invokes any applicable plugin callback\n * methods) using the `fetchOptions` (for non-navigation requests) and\n * `plugins` defined on the `Strategy` object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - `requestWillFetch()`\n * - `fetchDidSucceed()`\n * - `fetchDidFail()`\n *\n * @param {Request|string} input The URL or request to fetch.\n * @return {Promise<Response>}\n */\n async fetch(input) {\n const { event } = this;\n let request = toRequest(input);\n if (request.mode === 'navigate' &&\n event instanceof FetchEvent &&\n event.preloadResponse) {\n const possiblePreloadResponse = (await event.preloadResponse);\n if (possiblePreloadResponse) {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`Using a preloaded navigation response for ` +\n `'${getFriendlyURL(request.url)}'`);\n }\n return possiblePreloadResponse;\n }\n }\n // If there is a fetchDidFail plugin, we need to save a clone of the\n // original request before it's either modified by a requestWillFetch\n // plugin or before the original request's body is consumed via fetch().\n const originalRequest = this.hasCallback('fetchDidFail')\n ? request.clone()\n : null;\n try {\n for (const cb of this.iterateCallbacks('requestWillFetch')) {\n request = await cb({ request: request.clone(), event });\n }\n }\n catch (err) {\n if (err instanceof Error) {\n throw new WorkboxError('plugin-error-request-will-fetch', {\n thrownErrorMessage: err.message,\n });\n }\n }\n // The request can be altered by plugins with `requestWillFetch` making\n // the original request (most likely from a `fetch` event) different\n // from the Request we make. Pass both to `fetchDidFail` to aid debugging.\n const pluginFilteredRequest = request.clone();\n try {\n let fetchResponse;\n // See https://github.com/GoogleChrome/workbox/issues/1796\n fetchResponse = await fetch(request, request.mode === 'navigate' ? undefined : this._strategy.fetchOptions);\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Network request for ` +\n `'${getFriendlyURL(request.url)}' returned a response with ` +\n `status '${fetchResponse.status}'.`);\n }\n for (const callback of this.iterateCallbacks('fetchDidSucceed')) {\n fetchResponse = await callback({\n event,\n request: pluginFilteredRequest,\n response: fetchResponse,\n });\n }\n return fetchResponse;\n }\n catch (error) {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`Network request for ` +\n `'${getFriendlyURL(request.url)}' threw an error.`, error);\n }\n // `originalRequest` will only exist if a `fetchDidFail` callback\n // is being used (see above).\n if (originalRequest) {\n await this.runCallbacks('fetchDidFail', {\n error: error,\n event,\n originalRequest: originalRequest.clone(),\n request: pluginFilteredRequest.clone(),\n });\n }\n throw error;\n }\n }\n /**\n * Calls `this.fetch()` and (in the background) runs `this.cachePut()` on\n * the response generated by `this.fetch()`.\n *\n * The call to `this.cachePut()` automatically invokes `this.waitUntil()`,\n * so you do not have to manually call `waitUntil()` on the event.\n *\n * @param {Request|string} input The request or URL to fetch and cache.\n * @return {Promise<Response>}\n */\n async fetchAndCachePut(input) {\n const response = await this.fetch(input);\n const responseClone = response.clone();\n void this.waitUntil(this.cachePut(input, responseClone));\n return response;\n }\n /**\n * Matches a request from the cache (and invokes any applicable plugin\n * callback methods) using the `cacheName`, `matchOptions`, and `plugins`\n * defined on the strategy object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - cacheKeyWillBeUsed()\n * - cachedResponseWillBeUsed()\n *\n * @param {Request|string} key The Request or URL to use as the cache key.\n * @return {Promise<Response|undefined>} A matching response, if found.\n */\n async cacheMatch(key) {\n const request = toRequest(key);\n let cachedResponse;\n const { cacheName, matchOptions } = this._strategy;\n const effectiveRequest = await this.getCacheKey(request, 'read');\n const multiMatchOptions = Object.assign(Object.assign({}, matchOptions), { cacheName });\n cachedResponse = await caches.match(effectiveRequest, multiMatchOptions);\n if (process.env.NODE_ENV !== 'production') {\n if (cachedResponse) {\n logger.debug(`Found a cached response in '${cacheName}'.`);\n }\n else {\n logger.debug(`No cached response found in '${cacheName}'.`);\n }\n }\n for (const callback of this.iterateCallbacks('cachedResponseWillBeUsed')) {\n cachedResponse =\n (await callback({\n cacheName,\n matchOptions,\n cachedResponse,\n request: effectiveRequest,\n event: this.event,\n })) || undefined;\n }\n return cachedResponse;\n }\n /**\n * Puts a request/response pair in the cache (and invokes any applicable\n * plugin callback methods) using the `cacheName` and `plugins` defined on\n * the strategy object.\n *\n * The following plugin lifecycle methods are invoked when using this method:\n * - cacheKeyWillBeUsed()\n * - cacheWillUpdate()\n * - cacheDidUpdate()\n *\n * @param {Request|string} key The request or URL to use as the cache key.\n * @param {Response} response The response to cache.\n * @return {Promise<boolean>} `false` if a cacheWillUpdate caused the response\n * not be cached, and `true` otherwise.\n */\n async cachePut(key, response) {\n const request = toRequest(key);\n // Run in the next task to avoid blocking other cache reads.\n // https://github.com/w3c/ServiceWorker/issues/1397\n await timeout(0);\n const effectiveRequest = await this.getCacheKey(request, 'write');\n if (process.env.NODE_ENV !== 'production') {\n if (effectiveRequest.method && effectiveRequest.method !== 'GET') {\n throw new WorkboxError('attempt-to-cache-non-get-request', {\n url: getFriendlyURL(effectiveRequest.url),\n method: effectiveRequest.method,\n });\n }\n // See https://github.com/GoogleChrome/workbox/issues/2818\n const vary = response.headers.get('Vary');\n if (vary) {\n logger.debug(`The response for ${getFriendlyURL(effectiveRequest.url)} ` +\n `has a 'Vary: ${vary}' header. ` +\n `Consider setting the {ignoreVary: true} option on your strategy ` +\n `to ensure cache matching and deletion works as expected.`);\n }\n }\n if (!response) {\n if (process.env.NODE_ENV !== 'production') {\n logger.error(`Cannot cache non-existent response for ` +\n `'${getFriendlyURL(effectiveRequest.url)}'.`);\n }\n throw new WorkboxError('cache-put-with-no-response', {\n url: getFriendlyURL(effectiveRequest.url),\n });\n }\n const responseToCache = await this._ensureResponseSafeToCache(response);\n if (!responseToCache) {\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Response '${getFriendlyURL(effectiveRequest.url)}' ` +\n `will not be cached.`, responseToCache);\n }\n return false;\n }\n const { cacheName, matchOptions } = this._strategy;\n const cache = await self.caches.open(cacheName);\n const hasCacheUpdateCallback = this.hasCallback('cacheDidUpdate');\n const oldResponse = hasCacheUpdateCallback\n ? await cacheMatchIgnoreParams(\n // TODO(philipwalton): the `__WB_REVISION__` param is a precaching\n // feature. Consider into ways to only add this behavior if using\n // precaching.\n cache, effectiveRequest.clone(), ['__WB_REVISION__'], matchOptions)\n : null;\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Updating the '${cacheName}' cache with a new Response ` +\n `for ${getFriendlyURL(effectiveRequest.url)}.`);\n }\n try {\n await cache.put(effectiveRequest, hasCacheUpdateCallback ? responseToCache.clone() : responseToCache);\n }\n catch (error) {\n if (error instanceof Error) {\n // See https://developer.mozilla.org/en-US/docs/Web/API/DOMException#exception-QuotaExceededError\n if (error.name === 'QuotaExceededError') {\n await executeQuotaErrorCallbacks();\n }\n throw error;\n }\n }\n for (const callback of this.iterateCallbacks('cacheDidUpdate')) {\n await callback({\n cacheName,\n oldResponse,\n newResponse: responseToCache.clone(),\n request: effectiveRequest,\n event: this.event,\n });\n }\n return true;\n }\n /**\n * Checks the list of plugins for the `cacheKeyWillBeUsed` callback, and\n * executes any of those callbacks found in sequence. The final `Request`\n * object returned by the last plugin is treated as the cache key for cache\n * reads and/or writes. If no `cacheKeyWillBeUsed` plugin callbacks have\n * been registered, the passed request is returned unmodified\n *\n * @param {Request} request\n * @param {string} mode\n * @return {Promise<Request>}\n */\n async getCacheKey(request, mode) {\n const key = `${request.url} | ${mode}`;\n if (!this._cacheKeys[key]) {\n let effectiveRequest = request;\n for (const callback of this.iterateCallbacks('cacheKeyWillBeUsed')) {\n effectiveRequest = toRequest(await callback({\n mode,\n request: effectiveRequest,\n event: this.event,\n // params has a type any can't change right now.\n params: this.params, // eslint-disable-line\n }));\n }\n this._cacheKeys[key] = effectiveRequest;\n }\n return this._cacheKeys[key];\n }\n /**\n * Returns true if the strategy has at least one plugin with the given\n * callback.\n *\n * @param {string} name The name of the callback to check for.\n * @return {boolean}\n */\n hasCallback(name) {\n for (const plugin of this._strategy.plugins) {\n if (name in plugin) {\n return true;\n }\n }\n return false;\n }\n /**\n * Runs all plugin callbacks matching the given name, in order, passing the\n * given param object (merged ith the current plugin state) as the only\n * argument.\n *\n * Note: since this method runs all plugins, it's not suitable for cases\n * where the return value of a callback needs to be applied prior to calling\n * the next callback. See\n * {@link workbox-strategies.StrategyHandler#iterateCallbacks}\n * below for how to handle that case.\n *\n * @param {string} name The name of the callback to run within each plugin.\n * @param {Object} param The object to pass as the first (and only) param\n * when executing each callback. This object will be merged with the\n * current plugin state prior to callback execution.\n */\n async runCallbacks(name, param) {\n for (const callback of this.iterateCallbacks(name)) {\n // TODO(philipwalton): not sure why `any` is needed. It seems like\n // this should work with `as WorkboxPluginCallbackParam[C]`.\n await callback(param);\n }\n }\n /**\n * Accepts a callback and returns an iterable of matching plugin callbacks,\n * where each callback is wrapped with the current handler state (i.e. when\n * you call each callback, whatever object parameter you pass it will\n * be merged with the plugin's current state).\n *\n * @param {string} name The name fo the callback to run\n * @return {Array<Function>}\n */\n *iterateCallbacks(name) {\n for (const plugin of this._strategy.plugins) {\n if (typeof plugin[name] === 'function') {\n const state = this._pluginStateMap.get(plugin);\n const statefulCallback = (param) => {\n const statefulParam = Object.assign(Object.assign({}, param), { state });\n // TODO(philipwalton): not sure why `any` is needed. It seems like\n // this should work with `as WorkboxPluginCallbackParam[C]`.\n return plugin[name](statefulParam);\n };\n yield statefulCallback;\n }\n }\n }\n /**\n * Adds a promise to the\n * [extend lifetime promises]{@link https://w3c.github.io/ServiceWorker/#extendableevent-extend-lifetime-promises}\n * of the event event associated with the request being handled (usually a\n * `FetchEvent`).\n *\n * Note: you can await\n * {@link workbox-strategies.StrategyHandler~doneWaiting}\n * to know when all added promises have settled.\n *\n * @param {Promise} promise A promise to add to the extend lifetime promises\n * of the event that triggered the request.\n */\n waitUntil(promise) {\n this._extendLifetimePromises.push(promise);\n return promise;\n }\n /**\n * Returns a promise that resolves once all promises passed to\n * {@link workbox-strategies.StrategyHandler~waitUntil}\n * have settled.\n *\n * Note: any work done after `doneWaiting()` settles should be manually\n * passed to an event's `waitUntil()` method (not this handler's\n * `waitUntil()` method), otherwise the service worker thread my be killed\n * prior to your work completing.\n */\n async doneWaiting() {\n let promise;\n while ((promise = this._extendLifetimePromises.shift())) {\n await promise;\n }\n }\n /**\n * Stops running the strategy and immediately resolves any pending\n * `waitUntil()` promises.\n */\n destroy() {\n this._handlerDeferred.resolve(null);\n }\n /**\n * This method will call cacheWillUpdate on the available plugins (or use\n * status === 200) to determine if the Response is safe and valid to cache.\n *\n * @param {Request} options.request\n * @param {Response} options.response\n * @return {Promise<Response|undefined>}\n *\n * @private\n */\n async _ensureResponseSafeToCache(response) {\n let responseToCache = response;\n let pluginsUsed = false;\n for (const callback of this.iterateCallbacks('cacheWillUpdate')) {\n responseToCache =\n (await callback({\n request: this.request,\n response: responseToCache,\n event: this.event,\n })) || undefined;\n pluginsUsed = true;\n if (!responseToCache) {\n break;\n }\n }\n if (!pluginsUsed) {\n if (responseToCache && responseToCache.status !== 200) {\n responseToCache = undefined;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (responseToCache) {\n if (responseToCache.status !== 200) {\n if (responseToCache.status === 0) {\n logger.warn(`The response for '${this.request.url}' ` +\n `is an opaque response. The caching strategy that you're ` +\n `using will not cache opaque responses by default.`);\n }\n else {\n logger.debug(`The response for '${this.request.url}' ` +\n `returned a status code of '${response.status}' and won't ` +\n `be cached as a result.`);\n }\n }\n }\n }\n }\n return responseToCache;\n }\n}\nexport { StrategyHandler };\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * Returns a promise that resolves and the passed number of milliseconds.\n * This utility is an async/await-friendly version of `setTimeout`.\n *\n * @param {number} ms\n * @return {Promise}\n * @private\n */\nexport function timeout(ms) {\n return new Promise((resolve) => setTimeout(resolve, ms));\n}\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\nconst getFriendlyURL = (url) => {\n const urlObj = new URL(String(url), location.href);\n // See https://github.com/GoogleChrome/workbox/issues/2323\n // We want to include everything, except for the origin if it's same-origin.\n return urlObj.href.replace(new RegExp(`^${location.origin}`), '');\n};\nexport { getFriendlyURL };\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from '../_private/logger.js';\nimport { quotaErrorCallbacks } from '../models/quotaErrorCallbacks.js';\nimport '../_version.js';\n/**\n * Runs all of the callback functions, one at a time sequentially, in the order\n * in which they were registered.\n *\n * @memberof workbox-core\n * @private\n */\nasync function executeQuotaErrorCallbacks() {\n if (process.env.NODE_ENV !== 'production') {\n logger.log(`About to run ${quotaErrorCallbacks.size} ` +\n `callbacks to clean up caches.`);\n }\n for (const callback of quotaErrorCallbacks) {\n await callback();\n if (process.env.NODE_ENV !== 'production') {\n logger.log(callback, 'is complete.');\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n logger.log('Finished running callbacks.');\n }\n}\nexport { executeQuotaErrorCallbacks };\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { StrategyHandler } from './StrategyHandler.js';\nimport './_version.js';\n/**\n * An abstract base class that all other strategy classes must extend from:\n *\n * @memberof workbox-strategies\n */\nclass Strategy {\n /**\n * Creates a new instance of the strategy and sets all documented option\n * properties as public instance properties.\n *\n * Note: if a custom strategy class extends the base Strategy class and does\n * not need more than these properties, it does not need to define its own\n * constructor.\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n * @param {Array<Object>} [options.plugins] [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins}\n * to use in conjunction with this caching strategy.\n * @param {Object} [options.fetchOptions] Values passed along to the\n * [`init`](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters)\n * of [non-navigation](https://github.com/GoogleChrome/workbox/issues/1796)\n * `fetch()` requests made by this strategy.\n * @param {Object} [options.matchOptions] The\n * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n */\n constructor(options = {}) {\n /**\n * Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n *\n * @type {string}\n */\n this.cacheName = cacheNames.getRuntimeName(options.cacheName);\n /**\n * The list\n * [Plugins]{@link https://developers.google.com/web/tools/workbox/guides/using-plugins}\n * used by this strategy.\n *\n * @type {Array<Object>}\n */\n this.plugins = options.plugins || [];\n /**\n * Values passed along to the\n * [`init`]{@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters}\n * of all fetch() requests made by this strategy.\n *\n * @type {Object}\n */\n this.fetchOptions = options.fetchOptions;\n /**\n * The\n * [`CacheQueryOptions`]{@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n *\n * @type {Object}\n */\n this.matchOptions = options.matchOptions;\n }\n /**\n * Perform a request strategy and returns a `Promise` that will resolve with\n * a `Response`, invoking all relevant plugin callbacks.\n *\n * When a strategy instance is registered with a Workbox\n * {@link workbox-routing.Route}, this method is automatically\n * called when the route matches.\n *\n * Alternatively, this method can be used in a standalone `FetchEvent`\n * listener by passing it to `event.respondWith()`.\n *\n * @param {FetchEvent|Object} options A `FetchEvent` or an object with the\n * properties listed below.\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params]\n */\n handle(options) {\n const [responseDone] = this.handleAll(options);\n return responseDone;\n }\n /**\n * Similar to {@link workbox-strategies.Strategy~handle}, but\n * instead of just returning a `Promise` that resolves to a `Response` it\n * it will return an tuple of `[response, done]` promises, where the former\n * (`response`) is equivalent to what `handle()` returns, and the latter is a\n * Promise that will resolve once any promises that were added to\n * `event.waitUntil()` as part of performing the strategy have completed.\n *\n * You can await the `done` promise to ensure any extra work performed by\n * the strategy (usually caching responses) completes successfully.\n *\n * @param {FetchEvent|Object} options A `FetchEvent` or an object with the\n * properties listed below.\n * @param {Request|string} options.request A request to run this strategy for.\n * @param {ExtendableEvent} options.event The event associated with the\n * request.\n * @param {URL} [options.url]\n * @param {*} [options.params]\n * @return {Array<Promise>} A tuple of [response, done]\n * promises that can be used to determine when the response resolves as\n * well as when the handler has completed all its work.\n */\n handleAll(options) {\n // Allow for flexible options to be passed.\n if (options instanceof FetchEvent) {\n options = {\n event: options,\n request: options.request,\n };\n }\n const event = options.event;\n const request = typeof options.request === 'string'\n ? new Request(options.request)\n : options.request;\n const params = 'params' in options ? options.params : undefined;\n const handler = new StrategyHandler(this, { event, request, params });\n const responseDone = this._getResponse(handler, request, event);\n const handlerDone = this._awaitComplete(responseDone, handler, request, event);\n // Return an array of promises, suitable for use with Promise.all().\n return [responseDone, handlerDone];\n }\n async _getResponse(handler, request, event) {\n await handler.runCallbacks('handlerWillStart', { event, request });\n let response = undefined;\n try {\n response = await this._handle(request, handler);\n // The \"official\" Strategy subclasses all throw this error automatically,\n // but in case a third-party Strategy doesn't, ensure that we have a\n // consistent failure when there's no response or an error response.\n if (!response || response.type === 'error') {\n throw new WorkboxError('no-response', { url: request.url });\n }\n }\n catch (error) {\n if (error instanceof Error) {\n for (const callback of handler.iterateCallbacks('handlerDidError')) {\n response = await callback({ error, event, request });\n if (response) {\n break;\n }\n }\n }\n if (!response) {\n throw error;\n }\n else if (process.env.NODE_ENV !== 'production') {\n logger.log(`While responding to '${getFriendlyURL(request.url)}', ` +\n `an ${error instanceof Error ? error.toString() : ''} error occurred. Using a fallback response provided by ` +\n `a handlerDidError plugin.`);\n }\n }\n for (const callback of handler.iterateCallbacks('handlerWillRespond')) {\n response = await callback({ event, request, response });\n }\n return response;\n }\n async _awaitComplete(responseDone, handler, request, event) {\n let response;\n let error;\n try {\n response = await responseDone;\n }\n catch (error) {\n // Ignore errors, as response errors should be caught via the `response`\n // promise above. The `done` promise will only throw for errors in\n // promises passed to `handler.waitUntil()`.\n }\n try {\n await handler.runCallbacks('handlerDidRespond', {\n event,\n request,\n response,\n });\n await handler.doneWaiting();\n }\n catch (waitUntilError) {\n if (waitUntilError instanceof Error) {\n error = waitUntilError;\n }\n }\n await handler.runCallbacks('handlerDidComplete', {\n event,\n request,\n response,\n error: error,\n });\n handler.destroy();\n if (error) {\n throw error;\n }\n }\n}\nexport { Strategy };\n/**\n * Classes extending the `Strategy` based class should implement this method,\n * and leverage the {@link workbox-strategies.StrategyHandler}\n * arg to perform all fetching and cache logic, which will ensure all relevant\n * cache, cache options, fetch options and plugins are used (per the current\n * strategy instance).\n *\n * @name _handle\n * @instance\n * @abstract\n * @function\n * @param {Request} request\n * @param {workbox-strategies.StrategyHandler} handler\n * @return {Promise<Response>}\n *\n * @memberof workbox-strategies.Strategy\n */\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { copyResponse } from 'workbox-core/copyResponse.js';\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { Strategy } from 'workbox-strategies/Strategy.js';\nimport './_version.js';\n/**\n * A {@link workbox-strategies.Strategy} implementation\n * specifically designed to work with\n * {@link workbox-precaching.PrecacheController}\n * to both cache and fetch precached assets.\n *\n * Note: an instance of this class is created automatically when creating a\n * `PrecacheController`; it's generally not necessary to create this yourself.\n *\n * @extends workbox-strategies.Strategy\n * @memberof workbox-precaching\n */\nclass PrecacheStrategy extends Strategy {\n /**\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] Cache name to store and retrieve\n * requests. Defaults to the cache names provided by\n * {@link workbox-core.cacheNames}.\n * @param {Array<Object>} [options.plugins] {@link https://developers.google.com/web/tools/workbox/guides/using-plugins|Plugins}\n * to use in conjunction with this caching strategy.\n * @param {Object} [options.fetchOptions] Values passed along to the\n * {@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters|init}\n * of all fetch() requests made by this strategy.\n * @param {Object} [options.matchOptions] The\n * {@link https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions|CacheQueryOptions}\n * for any `cache.match()` or `cache.put()` calls made by this strategy.\n * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to\n * get the response from the network if there's a precache miss.\n */\n constructor(options = {}) {\n options.cacheName = cacheNames.getPrecacheName(options.cacheName);\n super(options);\n this._fallbackToNetwork =\n options.fallbackToNetwork === false ? false : true;\n // Redirected responses cannot be used to satisfy a navigation request, so\n // any redirected response must be \"copied\" rather than cloned, so the new\n // response doesn't contain the `redirected` flag. See:\n // https://bugs.chromium.org/p/chromium/issues/detail?id=669363&desc=2#c1\n this.plugins.push(PrecacheStrategy.copyRedirectedCacheableResponsesPlugin);\n }\n /**\n * @private\n * @param {Request|string} request A request to run this strategy for.\n * @param {workbox-strategies.StrategyHandler} handler The event that\n * triggered the request.\n * @return {Promise<Response>}\n */\n async _handle(request, handler) {\n const response = await handler.cacheMatch(request);\n if (response) {\n return response;\n }\n // If this is an `install` event for an entry that isn't already cached,\n // then populate the cache.\n if (handler.event && handler.event.type === 'install') {\n return await this._handleInstall(request, handler);\n }\n // Getting here means something went wrong. An entry that should have been\n // precached wasn't found in the cache.\n return await this._handleFetch(request, handler);\n }\n async _handleFetch(request, handler) {\n let response;\n const params = (handler.params || {});\n // Fall back to the network if we're configured to do so.\n if (this._fallbackToNetwork) {\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(`The precached response for ` +\n `${getFriendlyURL(request.url)} in ${this.cacheName} was not ` +\n `found. Falling back to the network.`);\n }\n const integrityInManifest = params.integrity;\n const integrityInRequest = request.integrity;\n const noIntegrityConflict = !integrityInRequest || integrityInRequest === integrityInManifest;\n // Do not add integrity if the original request is no-cors\n // See https://github.com/GoogleChrome/workbox/issues/3096\n response = await handler.fetch(new Request(request, {\n integrity: request.mode !== 'no-cors'\n ? integrityInRequest || integrityInManifest\n : undefined,\n }));\n // It's only \"safe\" to repair the cache if we're using SRI to guarantee\n // that the response matches the precache manifest's expectations,\n // and there's either a) no integrity property in the incoming request\n // or b) there is an integrity, and it matches the precache manifest.\n // See https://github.com/GoogleChrome/workbox/issues/2858\n // Also if the original request users no-cors we don't use integrity.\n // See https://github.com/GoogleChrome/workbox/issues/3096\n if (integrityInManifest &&\n noIntegrityConflict &&\n request.mode !== 'no-cors') {\n this._useDefaultCacheabilityPluginIfNeeded();\n const wasCached = await handler.cachePut(request, response.clone());\n if (process.env.NODE_ENV !== 'production') {\n if (wasCached) {\n logger.log(`A response for ${getFriendlyURL(request.url)} ` +\n `was used to \"repair\" the precache.`);\n }\n }\n }\n }\n else {\n // This shouldn't normally happen, but there are edge cases:\n // https://github.com/GoogleChrome/workbox/issues/1441\n throw new WorkboxError('missing-precache-entry', {\n cacheName: this.cacheName,\n url: request.url,\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n const cacheKey = params.cacheKey || (await handler.getCacheKey(request, 'read'));\n // Workbox is going to handle the route.\n // print the routing details to the console.\n logger.groupCollapsed(`Precaching is responding to: ` + getFriendlyURL(request.url));\n logger.log(`Serving the precached url: ${getFriendlyURL(cacheKey instanceof Request ? cacheKey.url : cacheKey)}`);\n logger.groupCollapsed(`View request details here.`);\n logger.log(request);\n logger.groupEnd();\n logger.groupCollapsed(`View response details here.`);\n logger.log(response);\n logger.groupEnd();\n logger.groupEnd();\n }\n return response;\n }\n async _handleInstall(request, handler) {\n this._useDefaultCacheabilityPluginIfNeeded();\n const response = await handler.fetch(request);\n // Make sure we defer cachePut() until after we know the response\n // should be cached; see https://github.com/GoogleChrome/workbox/issues/2737\n const wasCached = await handler.cachePut(request, response.clone());\n if (!wasCached) {\n // Throwing here will lead to the `install` handler failing, which\n // we want to do if *any* of the responses aren't safe to cache.\n throw new WorkboxError('bad-precaching-response', {\n url: request.url,\n status: response.status,\n });\n }\n return response;\n }\n /**\n * This method is complex, as there a number of things to account for:\n *\n * The `plugins` array can be set at construction, and/or it might be added to\n * to at any time before the strategy is used.\n *\n * At the time the strategy is used (i.e. during an `install` event), there\n * needs to be at least one plugin that implements `cacheWillUpdate` in the\n * array, other than `copyRedirectedCacheableResponsesPlugin`.\n *\n * - If this method is called and there are no suitable `cacheWillUpdate`\n * plugins, we need to add `defaultPrecacheCacheabilityPlugin`.\n *\n * - If this method is called and there is exactly one `cacheWillUpdate`, then\n * we don't have to do anything (this might be a previously added\n * `defaultPrecacheCacheabilityPlugin`, or it might be a custom plugin).\n *\n * - If this method is called and there is more than one `cacheWillUpdate`,\n * then we need to check if one is `defaultPrecacheCacheabilityPlugin`. If so,\n * we need to remove it. (This situation is unlikely, but it could happen if\n * the strategy is used multiple times, the first without a `cacheWillUpdate`,\n * and then later on after manually adding a custom `cacheWillUpdate`.)\n *\n * See https://github.com/GoogleChrome/workbox/issues/2737 for more context.\n *\n * @private\n */\n _useDefaultCacheabilityPluginIfNeeded() {\n let defaultPluginIndex = null;\n let cacheWillUpdatePluginCount = 0;\n for (const [index, plugin] of this.plugins.entries()) {\n // Ignore the copy redirected plugin when determining what to do.\n if (plugin === PrecacheStrategy.copyRedirectedCacheableResponsesPlugin) {\n continue;\n }\n // Save the default plugin's index, in case it needs to be removed.\n if (plugin === PrecacheStrategy.defaultPrecacheCacheabilityPlugin) {\n defaultPluginIndex = index;\n }\n if (plugin.cacheWillUpdate) {\n cacheWillUpdatePluginCount++;\n }\n }\n if (cacheWillUpdatePluginCount === 0) {\n this.plugins.push(PrecacheStrategy.defaultPrecacheCacheabilityPlugin);\n }\n else if (cacheWillUpdatePluginCount > 1 && defaultPluginIndex !== null) {\n // Only remove the default plugin; multiple custom plugins are allowed.\n this.plugins.splice(defaultPluginIndex, 1);\n }\n // Nothing needs to be done if cacheWillUpdatePluginCount is 1\n }\n}\nPrecacheStrategy.defaultPrecacheCacheabilityPlugin = {\n async cacheWillUpdate({ response }) {\n if (!response || response.status >= 400) {\n return null;\n }\n return response;\n },\n};\nPrecacheStrategy.copyRedirectedCacheableResponsesPlugin = {\n async cacheWillUpdate({ response }) {\n return response.redirected ? await copyResponse(response) : response;\n },\n};\nexport { PrecacheStrategy };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { assert } from 'workbox-core/_private/assert.js';\nimport { cacheNames } from 'workbox-core/_private/cacheNames.js';\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { waitUntil } from 'workbox-core/_private/waitUntil.js';\nimport { createCacheKey } from './utils/createCacheKey.js';\nimport { PrecacheInstallReportPlugin } from './utils/PrecacheInstallReportPlugin.js';\nimport { PrecacheCacheKeyPlugin } from './utils/PrecacheCacheKeyPlugin.js';\nimport { printCleanupDetails } from './utils/printCleanupDetails.js';\nimport { printInstallDetails } from './utils/printInstallDetails.js';\nimport { PrecacheStrategy } from './PrecacheStrategy.js';\nimport './_version.js';\n/**\n * Performs efficient precaching of assets.\n *\n * @memberof workbox-precaching\n */\nclass PrecacheController {\n /**\n * Create a new PrecacheController.\n *\n * @param {Object} [options]\n * @param {string} [options.cacheName] The cache to use for precaching.\n * @param {string} [options.plugins] Plugins to use when precaching as well\n * as responding to fetch events for precached assets.\n * @param {boolean} [options.fallbackToNetwork=true] Whether to attempt to\n * get the response from the network if there's a precache miss.\n */\n constructor({ cacheName, plugins = [], fallbackToNetwork = true, } = {}) {\n this._urlsToCacheKeys = new Map();\n this._urlsToCacheModes = new Map();\n this._cacheKeysToIntegrities = new Map();\n this._strategy = new PrecacheStrategy({\n cacheName: cacheNames.getPrecacheName(cacheName),\n plugins: [\n ...plugins,\n new PrecacheCacheKeyPlugin({ precacheController: this }),\n ],\n fallbackToNetwork,\n });\n // Bind the install and activate methods to the instance.\n this.install = this.install.bind(this);\n this.activate = this.activate.bind(this);\n }\n /**\n * @type {workbox-precaching.PrecacheStrategy} The strategy created by this controller and\n * used to cache assets and respond to fetch events.\n */\n get strategy() {\n return this._strategy;\n }\n /**\n * Adds items to the precache list, removing any duplicates and\n * stores the files in the\n * {@link workbox-core.cacheNames|\"precache cache\"} when the service\n * worker installs.\n *\n * This method can be called multiple times.\n *\n * @param {Array<Object|string>} [entries=[]] Array of entries to precache.\n */\n precache(entries) {\n this.addToCacheList(entries);\n if (!this._installAndActiveListenersAdded) {\n self.addEventListener('install', this.install);\n self.addEventListener('activate', this.activate);\n this._installAndActiveListenersAdded = true;\n }\n }\n /**\n * This method will add items to the precache list, removing duplicates\n * and ensuring the information is valid.\n *\n * @param {Array<workbox-precaching.PrecacheController.PrecacheEntry|string>} entries\n * Array of entries to precache.\n */\n addToCacheList(entries) {\n if (process.env.NODE_ENV !== 'production') {\n assert.isArray(entries, {\n moduleName: 'workbox-precaching',\n className: 'PrecacheController',\n funcName: 'addToCacheList',\n paramName: 'entries',\n });\n }\n const urlsToWarnAbout = [];\n for (const entry of entries) {\n // See https://github.com/GoogleChrome/workbox/issues/2259\n if (typeof entry === 'string') {\n urlsToWarnAbout.push(entry);\n }\n else if (entry && entry.revision === undefined) {\n urlsToWarnAbout.push(entry.url);\n }\n const { cacheKey, url } = createCacheKey(entry);\n const cacheMode = typeof entry !== 'string' && entry.revision ? 'reload' : 'default';\n if (this._urlsToCacheKeys.has(url) &&\n this._urlsToCacheKeys.get(url) !== cacheKey) {\n throw new WorkboxError('add-to-cache-list-conflicting-entries', {\n firstEntry: this._urlsToCacheKeys.get(url),\n secondEntry: cacheKey,\n });\n }\n if (typeof entry !== 'string' && entry.integrity) {\n if (this._cacheKeysToIntegrities.has(cacheKey) &&\n this._cacheKeysToIntegrities.get(cacheKey) !== entry.integrity) {\n throw new WorkboxError('add-to-cache-list-conflicting-integrities', {\n url,\n });\n }\n this._cacheKeysToIntegrities.set(cacheKey, entry.integrity);\n }\n this._urlsToCacheKeys.set(url, cacheKey);\n this._urlsToCacheModes.set(url, cacheMode);\n if (urlsToWarnAbout.length > 0) {\n const warningMessage = `Workbox is precaching URLs without revision ` +\n `info: ${urlsToWarnAbout.join(', ')}\\nThis is generally NOT safe. ` +\n `Learn more at https://bit.ly/wb-precache`;\n if (process.env.NODE_ENV === 'production') {\n // Use console directly to display this warning without bloating\n // bundle sizes by pulling in all of the logger codebase in prod.\n console.warn(warningMessage);\n }\n else {\n logger.warn(warningMessage);\n }\n }\n }\n }\n /**\n * Precaches new and updated assets. Call this method from the service worker\n * install event.\n *\n * Note: this method calls `event.waitUntil()` for you, so you do not need\n * to call it yourself in your event handlers.\n *\n * @param {ExtendableEvent} event\n * @return {Promise<workbox-precaching.InstallResult>}\n */\n install(event) {\n // waitUntil returns Promise<any>\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return waitUntil(event, async () => {\n const installReportPlugin = new PrecacheInstallReportPlugin();\n this.strategy.plugins.push(installReportPlugin);\n // Cache entries one at a time.\n // See https://github.com/GoogleChrome/workbox/issues/2528\n for (const [url, cacheKey] of this._urlsToCacheKeys) {\n const integrity = this._cacheKeysToIntegrities.get(cacheKey);\n const cacheMode = this._urlsToCacheModes.get(url);\n const request = new Request(url, {\n integrity,\n cache: cacheMode,\n credentials: 'same-origin',\n });\n await Promise.all(this.strategy.handleAll({\n params: { cacheKey },\n request,\n event,\n }));\n }\n const { updatedURLs, notUpdatedURLs } = installReportPlugin;\n if (process.env.NODE_ENV !== 'production') {\n printInstallDetails(updatedURLs, notUpdatedURLs);\n }\n return { updatedURLs, notUpdatedURLs };\n });\n }\n /**\n * Deletes assets that are no longer present in the current precache manifest.\n * Call this method from the service worker activate event.\n *\n * Note: this method calls `event.waitUntil()` for you, so you do not need\n * to call it yourself in your event handlers.\n *\n * @param {ExtendableEvent} event\n * @return {Promise<workbox-precaching.CleanupResult>}\n */\n activate(event) {\n // waitUntil returns Promise<any>\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return waitUntil(event, async () => {\n const cache = await self.caches.open(this.strategy.cacheName);\n const currentlyCachedRequests = await cache.keys();\n const expectedCacheKeys = new Set(this._urlsToCacheKeys.values());\n const deletedURLs = [];\n for (const request of currentlyCachedRequests) {\n if (!expectedCacheKeys.has(request.url)) {\n await cache.delete(request);\n deletedURLs.push(request.url);\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n printCleanupDetails(deletedURLs);\n }\n return { deletedURLs };\n });\n }\n /**\n * Returns a mapping of a precached URL to the corresponding cache key, taking\n * into account the revision information for the URL.\n *\n * @return {Map<string, string>} A URL to cache key mapping.\n */\n getURLsToCacheKeys() {\n return this._urlsToCacheKeys;\n }\n /**\n * Returns a list of all the URLs that have been precached by the current\n * service worker.\n *\n * @return {Array<string>} The precached URLs.\n */\n getCachedURLs() {\n return [...this._urlsToCacheKeys.keys()];\n }\n /**\n * Returns the cache key used for storing a given URL. If that URL is\n * unversioned, like `/index.html', then the cache key will be the original\n * URL with a search parameter appended to it.\n *\n * @param {string} url A URL whose cache key you want to look up.\n * @return {string} The versioned URL that corresponds to a cache key\n * for the original URL, or undefined if that URL isn't precached.\n */\n getCacheKeyForURL(url) {\n const urlObject = new URL(url, location.href);\n return this._urlsToCacheKeys.get(urlObject.href);\n }\n /**\n * @param {string} url A cache key whose SRI you want to look up.\n * @return {string} The subresource integrity associated with the cache key,\n * or undefined if it's not set.\n */\n getIntegrityForCacheKey(cacheKey) {\n return this._cacheKeysToIntegrities.get(cacheKey);\n }\n /**\n * This acts as a drop-in replacement for\n * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)\n * with the following differences:\n *\n * - It knows what the name of the precache is, and only checks in that cache.\n * - It allows you to pass in an \"original\" URL without versioning parameters,\n * and it will automatically look up the correct cache key for the currently\n * active revision of that URL.\n *\n * E.g., `matchPrecache('index.html')` will find the correct precached\n * response for the currently active service worker, even if the actual cache\n * key is `'/index.html?__WB_REVISION__=1234abcd'`.\n *\n * @param {string|Request} request The key (without revisioning parameters)\n * to look up in the precache.\n * @return {Promise<Response|undefined>}\n */\n async matchPrecache(request) {\n const url = request instanceof Request ? request.url : request;\n const cacheKey = this.getCacheKeyForURL(url);\n if (cacheKey) {\n const cache = await self.caches.open(this.strategy.cacheName);\n return cache.match(cacheKey);\n }\n return undefined;\n }\n /**\n * Returns a function that looks up `url` in the precache (taking into\n * account revision information), and returns the corresponding `Response`.\n *\n * @param {string} url The precached URL which will be used to lookup the\n * `Response`.\n * @return {workbox-routing~handlerCallback}\n */\n createHandlerBoundToURL(url) {\n const cacheKey = this.getCacheKeyForURL(url);\n if (!cacheKey) {\n throw new WorkboxError('non-precached-url', { url });\n }\n return (options) => {\n options.request = new Request(url);\n options.params = Object.assign({ cacheKey }, options.params);\n return this.strategy.handle(options);\n };\n }\n}\nexport { PrecacheController };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { PrecacheController } from '../PrecacheController.js';\nimport '../_version.js';\nlet precacheController;\n/**\n * @return {PrecacheController}\n * @private\n */\nexport const getOrCreatePrecacheController = () => {\n if (!precacheController) {\n precacheController = new PrecacheController();\n }\n return precacheController;\n};\n","/*\n Copyright 2020 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { getFriendlyURL } from 'workbox-core/_private/getFriendlyURL.js';\nimport { Route } from 'workbox-routing/Route.js';\nimport { generateURLVariations } from './utils/generateURLVariations.js';\nimport './_version.js';\n/**\n * A subclass of {@link workbox-routing.Route} that takes a\n * {@link workbox-precaching.PrecacheController}\n * instance and uses it to match incoming requests and handle fetching\n * responses from the precache.\n *\n * @memberof workbox-precaching\n * @extends workbox-routing.Route\n */\nclass PrecacheRoute extends Route {\n /**\n * @param {PrecacheController} precacheController A `PrecacheController`\n * instance used to both match requests and respond to fetch events.\n * @param {Object} [options] Options to control how requests are matched\n * against the list of precached URLs.\n * @param {string} [options.directoryIndex=index.html] The `directoryIndex` will\n * check cache entries for a URLs ending with '/' to see if there is a hit when\n * appending the `directoryIndex` value.\n * @param {Array<RegExp>} [options.ignoreURLParametersMatching=[/^utm_/, /^fbclid$/]] An\n * array of regex's to remove search params when looking for a cache match.\n * @param {boolean} [options.cleanURLs=true] The `cleanURLs` option will\n * check the cache for the URL with a `.html` added to the end of the end.\n * @param {workbox-precaching~urlManipulation} [options.urlManipulation]\n * This is a function that should take a URL and return an array of\n * alternative URLs that should be checked for precache matches.\n */\n constructor(precacheController, options) {\n const match = ({ request, }) => {\n const urlsToCacheKeys = precacheController.getURLsToCacheKeys();\n for (const possibleURL of generateURLVariations(request.url, options)) {\n const cacheKey = urlsToCacheKeys.get(possibleURL);\n if (cacheKey) {\n const integrity = precacheController.getIntegrityForCacheKey(cacheKey);\n return { cacheKey, integrity };\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n logger.debug(`Precaching did not find a match for ` + getFriendlyURL(request.url));\n }\n return;\n };\n super(match, precacheController.strategy);\n }\n}\nexport { PrecacheRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { removeIgnoredSearchParams } from './removeIgnoredSearchParams.js';\nimport '../_version.js';\n/**\n * Generator function that yields possible variations on the original URL to\n * check, one at a time.\n *\n * @param {string} url\n * @param {Object} options\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function* generateURLVariations(url, { ignoreURLParametersMatching = [/^utm_/, /^fbclid$/], directoryIndex = 'index.html', cleanURLs = true, urlManipulation, } = {}) {\n const urlObject = new URL(url, location.href);\n urlObject.hash = '';\n yield urlObject.href;\n const urlWithoutIgnoredParams = removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching);\n yield urlWithoutIgnoredParams.href;\n if (directoryIndex && urlWithoutIgnoredParams.pathname.endsWith('/')) {\n const directoryURL = new URL(urlWithoutIgnoredParams.href);\n directoryURL.pathname += directoryIndex;\n yield directoryURL.href;\n }\n if (cleanURLs) {\n const cleanURL = new URL(urlWithoutIgnoredParams.href);\n cleanURL.pathname += '.html';\n yield cleanURL.href;\n }\n if (urlManipulation) {\n const additionalURLs = urlManipulation({ url: urlObject });\n for (const urlToAttempt of additionalURLs) {\n yield urlToAttempt.href;\n }\n }\n}\n","/*\n Copyright 2018 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport '../_version.js';\n/**\n * Removes any URL search parameters that should be ignored.\n *\n * @param {URL} urlObject The original URL.\n * @param {Array<RegExp>} ignoreURLParametersMatching RegExps to test against\n * each search parameter name. Matches mean that the search parameter should be\n * ignored.\n * @return {URL} The URL with any ignored search parameters removed.\n *\n * @private\n * @memberof workbox-precaching\n */\nexport function removeIgnoredSearchParams(urlObject, ignoreURLParametersMatching = []) {\n // Convert the iterable into an array at the start of the loop to make sure\n // deletion doesn't mess up iteration.\n for (const paramName of [...urlObject.searchParams.keys()]) {\n if (ignoreURLParametersMatching.some((regExp) => regExp.test(paramName))) {\n urlObject.searchParams.delete(paramName);\n }\n }\n return urlObject;\n}\n","/*\n Copyright 2019 Google LLC\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { registerRoute } from 'workbox-routing/registerRoute.js';\nimport { getOrCreatePrecacheController } from './utils/getOrCreatePrecacheController.js';\nimport { PrecacheRoute } from './PrecacheRoute.js';\nimport './_version.js';\n/**\n * Add a `fetch` listener to the service worker that will\n * respond to\n * [network requests]{@link https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Custom_responses_to_requests}\n * with precached assets.\n *\n * Requests for assets that aren't precached, the `FetchEvent` will not be\n * responded to, allowing the event to fall through to other `fetch` event\n * listeners.\n *\n * @param {Object} [options] See the {@link workbox-precaching.PrecacheRoute}\n * options.\n *\n * @memberof workbox-precaching\n */\nfunction addRoute(options) {\n const precacheController = getOrCreatePrecacheController();\n const precacheRoute = new PrecacheRoute(precacheController, options);\n registerRoute(precacheRoute);\n}\nexport { addRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { logger } from 'workbox-core/_private/logger.js';\nimport { WorkboxError } from 'workbox-core/_private/WorkboxError.js';\nimport { Route } from './Route.js';\nimport { RegExpRoute } from './RegExpRoute.js';\nimport { getOrCreateDefaultRouter } from './utils/getOrCreateDefaultRouter.js';\nimport './_version.js';\n/**\n * Easily register a RegExp, string, or function with a caching\n * strategy to a singleton Router instance.\n *\n * This method will generate a Route for you if needed and\n * call {@link workbox-routing.Router#registerRoute}.\n *\n * @param {RegExp|string|workbox-routing.Route~matchCallback|workbox-routing.Route} capture\n * If the capture param is a `Route`, all other arguments will be ignored.\n * @param {workbox-routing~handlerCallback} [handler] A callback\n * function that returns a Promise resulting in a Response. This parameter\n * is required if `capture` is not a `Route` object.\n * @param {string} [method='GET'] The HTTP method to match the Route\n * against.\n * @return {workbox-routing.Route} The generated `Route`.\n *\n * @memberof workbox-routing\n */\nfunction registerRoute(capture, handler, method) {\n let route;\n if (typeof capture === 'string') {\n const captureUrl = new URL(capture, location.href);\n if (process.env.NODE_ENV !== 'production') {\n if (!(capture.startsWith('/') || capture.startsWith('http'))) {\n throw new WorkboxError('invalid-string', {\n moduleName: 'workbox-routing',\n funcName: 'registerRoute',\n paramName: 'capture',\n });\n }\n // We want to check if Express-style wildcards are in the pathname only.\n // TODO: Remove this log message in v4.\n const valueToCheck = capture.startsWith('http')\n ? captureUrl.pathname\n : capture;\n // See https://github.com/pillarjs/path-to-regexp#parameters\n const wildcards = '[*:?+]';\n if (new RegExp(`${wildcards}`).exec(valueToCheck)) {\n logger.debug(`The '$capture' parameter contains an Express-style wildcard ` +\n `character (${wildcards}). Strings are now always interpreted as ` +\n `exact matches; use a RegExp for partial or wildcard matches.`);\n }\n }\n const matchCallback = ({ url }) => {\n if (process.env.NODE_ENV !== 'production') {\n if (url.pathname === captureUrl.pathname &&\n url.origin !== captureUrl.origin) {\n logger.debug(`${capture} only partially matches the cross-origin URL ` +\n `${url.toString()}. This route will only handle cross-origin requests ` +\n `if they match the entire URL.`);\n }\n }\n return url.href === captureUrl.href;\n };\n // If `capture` is a string then `handler` and `method` must be present.\n route = new Route(matchCallback, handler, method);\n }\n else if (capture instanceof RegExp) {\n // If `capture` is a `RegExp` then `handler` and `method` must be present.\n route = new RegExpRoute(capture, handler, method);\n }\n else if (typeof capture === 'function') {\n // If `capture` is a function then `handler` and `method` must be present.\n route = new Route(capture, handler, method);\n }\n else if (capture instanceof Route) {\n route = capture;\n }\n else {\n throw new WorkboxError('unsupported-route-type', {\n moduleName: 'workbox-routing',\n funcName: 'registerRoute',\n paramName: 'capture',\n });\n }\n const defaultRouter = getOrCreateDefaultRouter();\n defaultRouter.registerRoute(route);\n return route;\n}\nexport { registerRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { addRoute } from './addRoute.js';\nimport { precache } from './precache.js';\nimport './_version.js';\n/**\n * This method will add entries to the precache list and add a route to\n * respond to fetch events.\n *\n * This is a convenience method that will call\n * {@link workbox-precaching.precache} and\n * {@link workbox-precaching.addRoute} in a single call.\n *\n * @param {Array<Object|string>} entries Array of entries to precache.\n * @param {Object} [options] See the\n * {@link workbox-precaching.PrecacheRoute} options.\n *\n * @memberof workbox-precaching\n */\nfunction precacheAndRoute(entries, options) {\n precache(entries);\n addRoute(options);\n}\nexport { precacheAndRoute };\n","/*\n Copyright 2019 Google LLC\n\n Use of this source code is governed by an MIT-style\n license that can be found in the LICENSE file or at\n https://opensource.org/licenses/MIT.\n*/\nimport { getOrCreatePrecacheController } from './utils/getOrCreatePrecacheController.js';\nimport './_version.js';\n/**\n * Adds items to the precache list, removing any duplicates and\n * stores the files in the\n * {@link workbox-core.cacheNames|\"precache cache\"} when the service\n * worker installs.\n *\n * This method can be called multiple times.\n *\n * Please note: This method **will not** serve any of the cached files for you.\n * It only precaches files. To respond to a network request you call\n * {@link workbox-precaching.addRoute}.\n *\n * If you have a single array of files to precache, you can just call\n * {@link workbox-precaching.precacheAndRoute}.\n *\n * @param {Array<Object|string>} [entries=[]] Array of entries to precache.\n *\n * @memberof workbox-precaching\n */\nfunction precache(entries) {\n const precacheController = getOrCreatePrecacheController();\n precacheController.precache(entries);\n}\nexport { precache };\n"],"names":["self","_","e","messageGenerator","fallback","code","args","msg","length","JSON","stringify","WorkboxError","Error","constructor","errorCode","details","super","this","name","normalizeHandler","handler","handle","Route","match","method","setCatchHandler","catchHandler","RegExpRoute","regExp","url","result","exec","href","origin","location","index","slice","Router","_routes","Map","_defaultHandlerMap","routes","addFetchListener","addEventListener","event","request","responsePromise","handleRequest","respondWith","addCacheListener","data","type","payload","requestPromises","Promise","all","urlsToCache","map","entry","Request","waitUntil","ports","then","postMessage","URL","protocol","startsWith","sameOrigin","params","route","findMatchingRoute","has","get","err","reject","_catchHandler","catch","async","catchErr","matchResult","Array","isArray","Object","keys","undefined","setDefaultHandler","set","registerRoute","push","unregisterRoute","routeIndex","indexOf","splice","defaultRouter","_cacheNameDetails","googleAnalytics","precache","prefix","runtime","suffix","registration","scope","_createCacheName","cacheName","filter","value","join","cacheNames","userCacheName","asyncFn","returnPromise","createCacheKey","urlObject","cacheKey","revision","cacheKeyURL","originalURL","searchParams","PrecacheInstallReportPlugin","updatedURLs","notUpdatedURLs","handlerWillStart","state","originalRequest","cachedResponseWillBeUsed","cachedResponse","PrecacheCacheKeyPlugin","precacheController","cacheKeyWillBeUsed","_precacheController","getCacheKeyForURL","headers","supportStatus","copyResponse","response","modifier","clonedResponse","clone","responseInit","Headers","status","statusText","modifiedResponseInit","body","testResponse","Response","error","canConstructResponseFromBodyStream","blob","stripParams","fullURL","ignoreParams","strippedURL","param","delete","Deferred","promise","resolve","quotaErrorCallbacks","Set","toRequest","input","StrategyHandler","strategy","options","_cacheKeys","assign","_strategy","_handlerDeferred","_extendLifetimePromises","_plugins","plugins","_pluginStateMap","plugin","fetch","mode","FetchEvent","preloadResponse","possiblePreloadResponse","hasCallback","cb","iterateCallbacks","thrownErrorMessage","message","pluginFilteredRequest","fetchResponse","fetchOptions","callback","runCallbacks","fetchAndCachePut","responseClone","cachePut","cacheMatch","key","matchOptions","effectiveRequest","getCacheKey","multiMatchOptions","caches","ms","setTimeout","String","replace","RegExp","responseToCache","_ensureResponseSafeToCache","cache","open","hasCacheUpdateCallback","oldResponse","strippedRequestURL","keysOptions","ignoreSearch","cacheKeys","cacheMatchIgnoreParams","put","executeQuotaErrorCallbacks","newResponse","statefulCallback","statefulParam","doneWaiting","shift","destroy","pluginsUsed","Strategy","responseDone","handleAll","_getResponse","_awaitComplete","_handle","waitUntilError","PrecacheStrategy","_fallbackToNetwork","fallbackToNetwork","copyRedirectedCacheableResponsesPlugin","_handleInstall","_handleFetch","integrityInManifest","integrity","integrityInRequest","noIntegrityConflict","_useDefaultCacheabilityPluginIfNeeded","defaultPluginIndex","cacheWillUpdatePluginCount","entries","defaultPrecacheCacheabilityPlugin","cacheWillUpdate","redirected","PrecacheController","_urlsToCacheKeys","_urlsToCacheModes","_cacheKeysToIntegrities","install","bind","activate","addToCacheList","_installAndActiveListenersAdded","urlsToWarnAbout","cacheMode","firstEntry","secondEntry","warningMessage","console","warn","installReportPlugin","credentials","currentlyCachedRequests","expectedCacheKeys","values","deletedURLs","getURLsToCacheKeys","getCachedURLs","getIntegrityForCacheKey","matchPrecache","createHandlerBoundToURL","getOrCreatePrecacheController","PrecacheRoute","urlsToCacheKeys","possibleURL","ignoreURLParametersMatching","directoryIndex","cleanURLs","urlManipulation","hash","urlWithoutIgnoredParams","paramName","some","test","removeIgnoredSearchParams","pathname","endsWith","directoryURL","cleanURL","additionalURLs","urlToAttempt","generateURLVariations","addRoute","capture","captureUrl","matchCallback","moduleName","funcName"],"mappings":"6CAEA,IACIA,KAAK,uBAAyBC,GAClC,CACA,MAAOC,GAAG,CCEV,MCgBaC,EAdIC,CAACC,KAASC,KACvB,IAAIC,EAAMF,EAIV,OAHIC,EAAKE,OAAS,IACdD,GAAO,OAAOE,KAAKC,UAAUJ,MAE1BC,CAAG,ECId,MAAMI,UAAqBC,MASvBC,WAAAA,CAAYC,EAAWC,GAEnBC,MADgBb,EAAiBW,EAAWC,IAE5CE,KAAKC,KAAOJ,EACZG,KAAKF,QAAUA,CACnB,EC9BJ,IACIf,KAAK,0BAA4BC,GACrC,CACA,MAAOC,GAAG,CCWH,MCAMiB,EAAoBC,GACzBA,GAA8B,iBAAZA,EASXA,EAWA,CAAEC,OAAQD,GCjBzB,MAAME,EAYFT,WAAAA,CAAYU,EAAOH,EAASI,EFhBH,OE8BrBP,KAAKG,QAAUD,EAAiBC,GAChCH,KAAKM,MAAQA,EACbN,KAAKO,OAASA,CAClB,CAMAC,eAAAA,CAAgBL,GACZH,KAAKS,aAAeP,EAAiBC,EACzC,ECnCJ,MAAMO,UAAoBL,EActBT,WAAAA,CAAYe,EAAQR,EAASI,GAiCzBR,OAxBcO,EAAGM,UACb,MAAMC,EAASF,EAAOG,KAAKF,EAAIG,MAE/B,GAAKF,IAODD,EAAII,SAAWC,SAASD,QAA2B,IAAjBH,EAAOK,OAY7C,OAAOL,EAAOM,MAAM,EAAE,GAEbhB,EAASI,EAC1B,ECvCJ,MAAMa,EAIFxB,WAAAA,GACII,KAAKqB,EAAU,IAAIC,IACnBtB,KAAKuB,EAAqB,IAAID,GAClC,CAMA,UAAIE,GACA,OAAOxB,KAAKqB,CAChB,CAKAI,gBAAAA,GAEI1C,KAAK2C,iBAAiB,SAAWC,IAC7B,MAAMC,QAAEA,GAAYD,EACdE,EAAkB7B,KAAK8B,cAAc,CAAEF,UAASD,UAClDE,GACAF,EAAMI,YAAYF,EACtB,GAER,CAuBAG,gBAAAA,GAEIjD,KAAK2C,iBAAiB,WAAaC,IAG/B,GAAIA,EAAMM,MAA4B,eAApBN,EAAMM,KAAKC,KAAuB,CAEhD,MAAMC,QAAEA,GAAYR,EAAMM,KAIpBG,EAAkBC,QAAQC,IAAIH,EAAQI,YAAYC,KAAKC,IACpC,iBAAVA,IACPA,EAAQ,CAACA,IAEb,MAAMb,EAAU,IAAIc,WAAWD,GAC/B,OAAOzC,KAAK8B,cAAc,CAAEF,UAASD,SAAQ,KAKjDA,EAAMgB,UAAUP,GAEZT,EAAMiB,OAASjB,EAAMiB,MAAM,IACtBR,EAAgBS,MAAK,IAAMlB,EAAMiB,MAAM,GAAGE,aAAY,IAEnE,IAER,CAaAhB,aAAAA,EAAcF,QAAEA,EAAOD,MAAEA,IASrB,MAAMf,EAAM,IAAImC,IAAInB,EAAQhB,IAAKK,SAASF,MAC1C,IAAKH,EAAIoC,SAASC,WAAW,QAIzB,OAEJ,MAAMC,EAAatC,EAAII,SAAWC,SAASD,QACrCmC,OAAEA,EAAMC,MAAEA,GAAUpD,KAAKqD,kBAAkB,CAC7C1B,QACAC,UACAsB,aACAtC,QAEJ,IAAIT,EAAUiD,GAASA,EAAMjD,QAe7B,MAAMI,EAASqB,EAAQrB,OAQvB,IAPKJ,GAAWH,KAAKuB,EAAmB+B,IAAI/C,KAKxCJ,EAAUH,KAAKuB,EAAmBgC,IAAIhD,KAErCJ,EAMD,OAkBJ,IAAI0B,EACJ,IACIA,EAAkB1B,EAAQC,OAAO,CAAEQ,MAAKgB,UAASD,QAAOwB,UAC3D,CACD,MAAOK,GACH3B,EAAkBQ,QAAQoB,OAAOD,EACrC,CAEA,MAAM/C,EAAe2C,GAASA,EAAM3C,aAuCpC,OAtCIoB,aAA2BQ,UAC1BrC,KAAK0D,GAAiBjD,KACvBoB,EAAkBA,EAAgB8B,OAAMC,UAEpC,GAAInD,EAUA,IACI,aAAaA,EAAaL,OAAO,CAAEQ,MAAKgB,UAASD,QAAOwB,UAC3D,CACD,MAAOU,GACCA,aAAoBlE,QACpB6D,EAAMK,EAEd,CAEJ,GAAI7D,KAAK0D,EAUL,OAAO1D,KAAK0D,EAActD,OAAO,CAAEQ,MAAKgB,UAASD,UAErD,MAAM6B,CAAG,KAGV3B,CACX,CAgBAwB,iBAAAA,EAAkBzC,IAAEA,EAAGsC,WAAEA,EAAUtB,QAAEA,EAAOD,MAAEA,IAC1C,MAAMH,EAASxB,KAAKqB,EAAQkC,IAAI3B,EAAQrB,SAAW,GACnD,IAAK,MAAM6C,KAAS5B,EAAQ,CACxB,IAAI2B,EAGJ,MAAMW,EAAcV,EAAM9C,MAAM,CAAEM,MAAKsC,aAAYtB,UAASD,UAC5D,GAAImC,EA6BA,OAjBAX,EAASW,GACLC,MAAMC,QAAQb,IAA6B,IAAlBA,EAAO5D,QAI3BuE,EAAYlE,cAAgBqE,QACG,IAApCA,OAAOC,KAAKJ,GAAavE,QAIG,kBAAhBuE,KAPZX,OAASgB,GAcN,CAAEf,QAAOD,SAExB,CAEA,MAAO,EACX,CAeAiB,iBAAAA,CAAkBjE,EAASI,EJ1SF,OI2SrBP,KAAKuB,EAAmB8C,IAAI9D,EAAQL,EAAiBC,GACzD,CAQAK,eAAAA,CAAgBL,GACZH,KAAK0D,EAAgBxD,EAAiBC,EAC1C,CAMAmE,aAAAA,CAAclB,GAiCLpD,KAAKqB,EAAQiC,IAAIF,EAAM7C,SACxBP,KAAKqB,EAAQgD,IAAIjB,EAAM7C,OAAQ,IAInCP,KAAKqB,EAAQkC,IAAIH,EAAM7C,QAAQgE,KAAKnB,EACxC,CAMAoB,eAAAA,CAAgBpB,GACZ,IAAKpD,KAAKqB,EAAQiC,IAAIF,EAAM7C,QACxB,MAAM,IAAIb,EAAa,6CAA8C,CACjEa,OAAQ6C,EAAM7C,SAGtB,MAAMkE,EAAazE,KAAKqB,EAAQkC,IAAIH,EAAM7C,QAAQmE,QAAQtB,GAC1D,KAAIqB,GAAc,GAId,MAAM,IAAI/E,EAAa,yCAHvBM,KAAKqB,EAAQkC,IAAIH,EAAM7C,QAAQoE,OAAOF,EAAY,EAK1D,EC7XJ,IAAIG,ECDJ,MAAMC,EAAoB,CACtBC,gBAAiB,kBACjBC,SAAU,cACVC,OAAQ,UACRC,QAAS,UACTC,OAAgC,oBAAjBC,aAA+BA,aAAaC,MAAQ,IAEjEC,EAAoBC,GACf,CAACT,EAAkBG,OAAQM,EAAWT,EAAkBK,QAC1DK,QAAQC,GAAUA,GAASA,EAAMjG,OAAS,IAC1CkG,KAAK,KAODC,EAWSC,GACPA,GAAiBN,EAAiBR,EAAkBE,UAZtDW,EAiBQC,GACNA,GAAiBN,EAAiBR,EAAkBI,SC3BnE,SAAStC,EAAUhB,EAAOiE,GACtB,MAAMC,EAAgBD,IAEtB,OADAjE,EAAMgB,UAAUkD,GACTA,CACX,CClBA,IACI9G,KAAK,6BAA+BC,GACxC,CACA,MAAOC,GAAG,CCeH,SAAS6G,EAAerD,GAC3B,IAAKA,EACD,MAAM,IAAI/C,EAAa,oCAAqC,CAAE+C,UAIlE,GAAqB,iBAAVA,EAAoB,CAC3B,MAAMsD,EAAY,IAAIhD,IAAIN,EAAOxB,SAASF,MAC1C,MAAO,CACHiF,SAAUD,EAAUhF,KACpBH,IAAKmF,EAAUhF,KAEvB,CACA,MAAMkF,SAAEA,EAAQrF,IAAEA,GAAQ6B,EAC1B,IAAK7B,EACD,MAAM,IAAIlB,EAAa,oCAAqC,CAAE+C,UAIlE,IAAKwD,EAAU,CACX,MAAMF,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACxC,MAAO,CACHiF,SAAUD,EAAUhF,KACpBH,IAAKmF,EAAUhF,KAEvB,CAGA,MAAMmF,EAAc,IAAInD,IAAInC,EAAKK,SAASF,MACpCoF,EAAc,IAAIpD,IAAInC,EAAKK,SAASF,MAE1C,OADAmF,EAAYE,aAAa/B,IAxCC,kBAwC0B4B,GAC7C,CACHD,SAAUE,EAAYnF,KACtBH,IAAKuF,EAAYpF,KAEzB,CCzCA,MAAMsF,EACFzG,WAAAA,GACII,KAAKsG,YAAc,GACnBtG,KAAKuG,eAAiB,GACtBvG,KAAKwG,iBAAmB5C,OAAShC,UAAS6E,YAElCA,IACAA,EAAMC,gBAAkB9E,EAC5B,EAEJ5B,KAAK2G,yBAA2B/C,OAASjC,QAAO8E,QAAOG,qBACnD,GAAmB,YAAfjF,EAAMO,MACFuE,GACAA,EAAMC,iBACND,EAAMC,2BAA2BhE,QAAS,CAE1C,MAAM9B,EAAM6F,EAAMC,gBAAgB9F,IAC9BgG,EACA5G,KAAKuG,eAAehC,KAAK3D,GAGzBZ,KAAKsG,YAAY/B,KAAK3D,EAE9B,CAEJ,OAAOgG,CAAc,CAE7B,EC3BJ,MAAMC,EACFjH,WAAAA,EAAYkH,mBAAEA,IACV9G,KAAK+G,mBAAqBnD,OAAShC,UAASuB,aAGxC,MAAM6C,GAAY7C,aAAuC,EAASA,EAAO6C,WACrEhG,KAAKgH,EAAoBC,kBAAkBrF,EAAQhB,KAEvD,OAAOoF,EACD,IAAItD,QAAQsD,EAAU,CAAEkB,QAAStF,EAAQsF,UACzCtF,CAAO,EAEjB5B,KAAKgH,EAAsBF,CAC/B,ECnBJ,IAAIK,ECqBJvD,eAAewD,EAAaC,EAAUC,GAClC,IAAItG,EAAS,KAEb,GAAIqG,EAASzG,IAAK,CAEdI,EADoB,IAAI+B,IAAIsE,EAASzG,KAChBI,MACzB,CACA,GAAIA,IAAWjC,KAAKkC,SAASD,OACzB,MAAM,IAAItB,EAAa,6BAA8B,CAAEsB,WAE3D,MAAMuG,EAAiBF,EAASG,QAE1BC,EAAe,CACjBP,QAAS,IAAIQ,QAAQH,EAAeL,SACpCS,OAAQJ,EAAeI,OACvBC,WAAYL,EAAeK,YAGzBC,EAAuBP,EAAWA,EAASG,GAAgBA,EAI3DK,EDjCV,WACI,QAAsB3D,IAAlBgD,EAA6B,CAC7B,MAAMY,EAAe,IAAIC,SAAS,IAClC,GAAI,SAAUD,EACV,IACI,IAAIC,SAASD,EAAaD,MAC1BX,GAAgB,CACnB,CACD,MAAOc,GACHd,GAAgB,CACpB,CAEJA,GAAgB,CACpB,CACA,OAAOA,CACX,CCkBiBe,GACPX,EAAeO,WACTP,EAAeY,OAC3B,OAAO,IAAIH,SAASF,EAAMD,EAC9B,CChDA,SAASO,EAAYC,EAASC,GAC1B,MAAMC,EAAc,IAAIxF,IAAIsF,GAC5B,IAAK,MAAMG,KAASF,EAChBC,EAAYnC,aAAaqC,OAAOD,GAEpC,OAAOD,EAAYxH,IACvB,CCGA,MAAM2H,EAIF9I,WAAAA,GACII,KAAK2I,QAAU,IAAItG,SAAQ,CAACuG,EAASnF,KACjCzD,KAAK4I,QAAUA,EACf5I,KAAKyD,OAASA,CAAM,GAE5B,ECdJ,MAAMoF,EAAsB,IAAIC,ICThC,IACI/J,KAAK,6BAA+BC,GACxC,CACA,MAAOC,GAAG,CCWV,SAAS8J,EAAUC,GACf,MAAwB,iBAAVA,EAAqB,IAAItG,QAAQsG,GAASA,CAC5D,CAUA,MAAMC,EAiBFrJ,WAAAA,CAAYsJ,EAAUC,GAClBnJ,KAAKoJ,EAAa,GA8ClBnF,OAAOoF,OAAOrJ,KAAMmJ,GACpBnJ,KAAK2B,MAAQwH,EAAQxH,MACrB3B,KAAKsJ,EAAYJ,EACjBlJ,KAAKuJ,EAAmB,IAAIb,EAC5B1I,KAAKwJ,EAA0B,GAG/BxJ,KAAKyJ,EAAW,IAAIP,EAASQ,SAC7B1J,KAAK2J,EAAkB,IAAIrI,IAC3B,IAAK,MAAMsI,KAAU5J,KAAKyJ,EACtBzJ,KAAK2J,EAAgBtF,IAAIuF,EAAQ,CAAE,GAEvC5J,KAAK2B,MAAMgB,UAAU3C,KAAKuJ,EAAiBZ,QAC/C,CAcA,WAAMkB,CAAMb,GACR,MAAMrH,MAAEA,GAAU3B,KAClB,IAAI4B,EAAUmH,EAAUC,GACxB,GAAqB,aAAjBpH,EAAQkI,MACRnI,aAAiBoI,YACjBpI,EAAMqI,gBAAiB,CACvB,MAAMC,QAAiCtI,EAAMqI,gBAC7C,GAAIC,EAKA,OAAOA,CAEf,CAIA,MAAMvD,EAAkB1G,KAAKkK,YAAY,gBACnCtI,EAAQ4F,QACR,KACN,IACI,IAAK,MAAM2C,KAAMnK,KAAKoK,iBAAiB,oBACnCxI,QAAgBuI,EAAG,CAAEvI,QAASA,EAAQ4F,QAAS7F,SAEtD,CACD,MAAO6B,GACH,GAAIA,aAAe7D,MACf,MAAM,IAAID,EAAa,kCAAmC,CACtD2K,mBAAoB7G,EAAI8G,SAGpC,CAIA,MAAMC,EAAwB3I,EAAQ4F,QACtC,IACI,IAAIgD,EAEJA,QAAsBX,MAAMjI,EAA0B,aAAjBA,EAAQkI,UAAsB3F,EAAYnE,KAAKsJ,EAAUmB,cAM9F,IAAK,MAAMC,KAAY1K,KAAKoK,iBAAiB,mBACzCI,QAAsBE,EAAS,CAC3B/I,QACAC,QAAS2I,EACTlD,SAAUmD,IAGlB,OAAOA,CACV,CACD,MAAOvC,GAeH,MARIvB,SACM1G,KAAK2K,aAAa,eAAgB,CACpC1C,MAAOA,EACPtG,QACA+E,gBAAiBA,EAAgBc,QACjC5F,QAAS2I,EAAsB/C,UAGjCS,CACV,CACJ,CAWA,sBAAM2C,CAAiB5B,GACnB,MAAM3B,QAAiBrH,KAAK6J,MAAMb,GAC5B6B,EAAgBxD,EAASG,QAE/B,OADKxH,KAAK2C,UAAU3C,KAAK8K,SAAS9B,EAAO6B,IAClCxD,CACX,CAaA,gBAAM0D,CAAWC,GACb,MAAMpJ,EAAUmH,EAAUiC,GAC1B,IAAIpE,EACJ,MAAMtB,UAAEA,EAAS2F,aAAEA,GAAiBjL,KAAKsJ,EACnC4B,QAAyBlL,KAAKmL,YAAYvJ,EAAS,QACnDwJ,EAAoBnH,OAAOoF,OAAOpF,OAAOoF,OAAO,CAAA,EAAI4B,GAAe,CAAE3F,cAC3EsB,QAAuByE,OAAO/K,MAAM4K,EAAkBE,GAStD,IAAK,MAAMV,KAAY1K,KAAKoK,iBAAiB,4BACzCxD,QACW8D,EAAS,CACZpF,YACA2F,eACArE,iBACAhF,QAASsJ,EACTvJ,MAAO3B,KAAK2B,cACTwC,EAEf,OAAOyC,CACX,CAgBA,cAAMkE,CAASE,EAAK3D,GAChB,MAAMzF,EAAUmH,EAAUiC,GCxP3B,IAAiBM,UD2PF,EC1PX,IAAIjJ,SAASuG,GAAY2C,WAAW3C,EAAS0C,MD2PhD,MAAMJ,QAAyBlL,KAAKmL,YAAYvJ,EAAS,SAiBzD,IAAKyF,EAKD,MAAM,IAAI3H,EAAa,6BAA8B,CACjDkB,KE1RQA,EF0RYsK,EAAiBtK,IEzRlC,IAAImC,IAAIyI,OAAO5K,GAAMK,SAASF,MAG/BA,KAAK0K,QAAQ,IAAIC,OAAO,IAAIzK,SAASD,UAAW,OAJ1CJ,MF6RhB,MAAM+K,QAAwB3L,KAAK4L,EAA2BvE,GAC9D,IAAKsE,EAKD,OAAO,EAEX,MAAMrG,UAAEA,EAAS2F,aAAEA,GAAiBjL,KAAKsJ,EACnCuC,QAAc9M,KAAKsM,OAAOS,KAAKxG,GAC/ByG,EAAyB/L,KAAKkK,YAAY,kBAC1C8B,EAAcD,QJtR5BnI,eAAsCiI,EAAOjK,EAAS0G,EAAc2C,GAChE,MAAMgB,EAAqB7D,EAAYxG,EAAQhB,IAAK0H,GAEpD,GAAI1G,EAAQhB,MAAQqL,EAChB,OAAOJ,EAAMvL,MAAMsB,EAASqJ,GAGhC,MAAMiB,EAAcjI,OAAOoF,OAAOpF,OAAOoF,OAAO,CAAA,EAAI4B,GAAe,CAAEkB,cAAc,IAC7EC,QAAkBP,EAAM3H,KAAKtC,EAASsK,GAC5C,IAAK,MAAMlG,KAAYoG,EAEnB,GAAIH,IADwB7D,EAAYpC,EAASpF,IAAK0H,GAElD,OAAOuD,EAAMvL,MAAM0F,EAAUiF,EAIzC,CIuQoBoB,CAIRR,EAAOX,EAAiB1D,QAAS,CAAC,mBAAoByD,GACpD,KAKN,UACUY,EAAMS,IAAIpB,EAAkBa,EAAyBJ,EAAgBnE,QAAUmE,EACxF,CACD,MAAO1D,GACH,GAAIA,aAAiBtI,MAKjB,KAHmB,uBAAfsI,EAAMhI,YGhT1B2D,iBAKI,IAAK,MAAM8G,KAAY7B,QACb6B,GAQd,CHmS0B6B,GAEJtE,CAEd,CACA,IAAK,MAAMyC,KAAY1K,KAAKoK,iBAAiB,wBACnCM,EAAS,CACXpF,YACA0G,cACAQ,YAAab,EAAgBnE,QAC7B5F,QAASsJ,EACTvJ,MAAO3B,KAAK2B,QAGpB,OAAO,CACX,CAYA,iBAAMwJ,CAAYvJ,EAASkI,GACvB,MAAMkB,EAAM,GAAGpJ,EAAQhB,SAASkJ,IAChC,IAAK9J,KAAKoJ,EAAW4B,GAAM,CACvB,IAAIE,EAAmBtJ,EACvB,IAAK,MAAM8I,KAAY1K,KAAKoK,iBAAiB,sBACzCc,EAAmBnC,QAAgB2B,EAAS,CACxCZ,OACAlI,QAASsJ,EACTvJ,MAAO3B,KAAK2B,MAEZwB,OAAQnD,KAAKmD,UAGrBnD,KAAKoJ,EAAW4B,GAAOE,CAC3B,CACA,OAAOlL,KAAKoJ,EAAW4B,EAC3B,CAQAd,WAAAA,CAAYjK,GACR,IAAK,MAAM2J,KAAU5J,KAAKsJ,EAAUI,QAChC,GAAIzJ,KAAQ2J,EACR,OAAO,EAGf,OAAO,CACX,CAiBA,kBAAMe,CAAa1K,EAAMuI,GACrB,IAAK,MAAMkC,KAAY1K,KAAKoK,iBAAiBnK,SAGnCyK,EAASlC,EAEvB,CAUA,iBAAC4B,CAAiBnK,GACd,IAAK,MAAM2J,KAAU5J,KAAKsJ,EAAUI,QAChC,GAA4B,mBAAjBE,EAAO3J,GAAsB,CACpC,MAAMwG,EAAQzG,KAAK2J,EAAgBpG,IAAIqG,GACjC6C,EAAoBjE,IACtB,MAAMkE,EAAgBzI,OAAOoF,OAAOpF,OAAOoF,OAAO,CAAA,EAAIb,GAAQ,CAAE/B,UAGhE,OAAOmD,EAAO3J,GAAMyM,EAAc,QAEhCD,CACV,CAER,CAcA9J,SAAAA,CAAUgG,GAEN,OADA3I,KAAKwJ,EAAwBjF,KAAKoE,GAC3BA,CACX,CAWA,iBAAMgE,GACF,IAAIhE,EACJ,KAAQA,EAAU3I,KAAKwJ,EAAwBoD,eACrCjE,CAEd,CAKAkE,OAAAA,GACI7M,KAAKuJ,EAAiBX,QAAQ,KAClC,CAWA,OAAMgD,CAA2BvE,GAC7B,IAAIsE,EAAkBtE,EAClByF,GAAc,EAClB,IAAK,MAAMpC,KAAY1K,KAAKoK,iBAAiB,mBAQzC,GAPAuB,QACWjB,EAAS,CACZ9I,QAAS5B,KAAK4B,QACdyF,SAAUsE,EACVhK,MAAO3B,KAAK2B,cACTwC,EACX2I,GAAc,GACTnB,EACD,MAwBR,OArBKmB,GACGnB,GAA8C,MAA3BA,EAAgBhE,SACnCgE,OAAkBxH,GAmBnBwH,CACX,EIhfJ,MAAMoB,EAuBFnN,WAAAA,CAAYuJ,EAAU,IAQlBnJ,KAAKsF,UAAYI,EAA0ByD,EAAQ7D,WAQnDtF,KAAK0J,QAAUP,EAAQO,SAAW,GAQlC1J,KAAKyK,aAAetB,EAAQsB,aAQ5BzK,KAAKiL,aAAe9B,EAAQ8B,YAChC,CAoBA7K,MAAAA,CAAO+I,GACH,MAAO6D,GAAgBhN,KAAKiN,UAAU9D,GACtC,OAAO6D,CACX,CAuBAC,SAAAA,CAAU9D,GAEFA,aAAmBY,aACnBZ,EAAU,CACNxH,MAAOwH,EACPvH,QAASuH,EAAQvH,UAGzB,MAAMD,EAAQwH,EAAQxH,MAChBC,EAAqC,iBAApBuH,EAAQvH,QACzB,IAAIc,QAAQyG,EAAQvH,SACpBuH,EAAQvH,QACRuB,EAAS,WAAYgG,EAAUA,EAAQhG,YAASgB,EAChDhE,EAAU,IAAI8I,EAAgBjJ,KAAM,CAAE2B,QAAOC,UAASuB,WACtD6J,EAAehN,KAAKkN,EAAa/M,EAASyB,EAASD,GAGzD,MAAO,CAACqL,EAFYhN,KAAKmN,EAAeH,EAAc7M,EAASyB,EAASD,GAG5E,CACA,OAAMuL,CAAa/M,EAASyB,EAASD,GAEjC,IAAI0F,QADElH,EAAQwK,aAAa,mBAAoB,CAAEhJ,QAAOC,YAExD,IAKI,GAJAyF,QAAiBrH,KAAKoN,EAAQxL,EAASzB,IAIlCkH,GAA8B,UAAlBA,EAASnF,KACtB,MAAM,IAAIxC,EAAa,cAAe,CAAEkB,IAAKgB,EAAQhB,KAE5D,CACD,MAAOqH,GACH,GAAIA,aAAiBtI,MACjB,IAAK,MAAM+K,KAAYvK,EAAQiK,iBAAiB,mBAE5C,GADA/C,QAAiBqD,EAAS,CAAEzC,QAAOtG,QAAOC,YACtCyF,EACA,MAIZ,IAAKA,EACD,MAAMY,CAOd,CACA,IAAK,MAAMyC,KAAYvK,EAAQiK,iBAAiB,sBAC5C/C,QAAiBqD,EAAS,CAAE/I,QAAOC,UAASyF,aAEhD,OAAOA,CACX,CACA,OAAM8F,CAAeH,EAAc7M,EAASyB,EAASD,GACjD,IAAI0F,EACAY,EACJ,IACIZ,QAAiB2F,CACpB,CACD,MAAO/E,GAGH,CAEJ,UACU9H,EAAQwK,aAAa,oBAAqB,CAC5ChJ,QACAC,UACAyF,mBAEElH,EAAQwM,aACjB,CACD,MAAOU,GACCA,aAA0B1N,QAC1BsI,EAAQoF,EAEhB,CAQA,SAPMlN,EAAQwK,aAAa,qBAAsB,CAC7ChJ,QACAC,UACAyF,WACAY,MAAOA,IAEX9H,EAAQ0M,UACJ5E,EACA,MAAMA,CAEd,ECtLJ,MAAMqF,UAAyBP,EAkB3BnN,WAAAA,CAAYuJ,EAAU,IAClBA,EAAQ7D,UAAYI,EAA2ByD,EAAQ7D,WACvDvF,MAAMoJ,GACNnJ,KAAKuN,GAC6B,IAA9BpE,EAAQqE,kBAKZxN,KAAK0J,QAAQnF,KAAK+I,EAAiBG,uCACvC,CAQA,OAAML,CAAQxL,EAASzB,GACnB,MAAMkH,QAAiBlH,EAAQ4K,WAAWnJ,GAC1C,OAAIyF,IAKAlH,EAAQwB,OAAgC,YAAvBxB,EAAQwB,MAAMO,WAClBlC,KAAK0N,EAAe9L,EAASzB,SAIjCH,KAAK2N,EAAa/L,EAASzB,GAC5C,CACA,OAAMwN,CAAa/L,EAASzB,GACxB,IAAIkH,EACJ,MAAMlE,EAAUhD,EAAQgD,QAAU,GAElC,IAAInD,KAAKuN,EAuCL,MAAM,IAAI7N,EAAa,yBAA0B,CAC7C4F,UAAWtF,KAAKsF,UAChB1E,IAAKgB,EAAQhB,MAzCQ,CAMzB,MAAMgN,EAAsBzK,EAAO0K,UAC7BC,EAAqBlM,EAAQiM,UAC7BE,GAAuBD,GAAsBA,IAAuBF,EAG1EvG,QAAiBlH,EAAQ0J,MAAM,IAAInH,QAAQd,EAAS,CAChDiM,UAA4B,YAAjBjM,EAAQkI,KACbgE,GAAsBF,OACtBzJ,KASNyJ,GACAG,GACiB,YAAjBnM,EAAQkI,OACR9J,KAAKgO,UACmB7N,EAAQ2K,SAASlJ,EAASyF,EAASG,SAQnE,CAuBA,OAAOH,CACX,CACA,OAAMqG,CAAe9L,EAASzB,GAC1BH,KAAKgO,IACL,MAAM3G,QAAiBlH,EAAQ0J,MAAMjI,GAIrC,UADwBzB,EAAQ2K,SAASlJ,EAASyF,EAASG,SAIvD,MAAM,IAAI9H,EAAa,0BAA2B,CAC9CkB,IAAKgB,EAAQhB,IACb+G,OAAQN,EAASM,SAGzB,OAAON,CACX,CA4BA2G,CAAAA,GACI,IAAIC,EAAqB,KACrBC,EAA6B,EACjC,IAAK,MAAOhN,EAAO0I,KAAW5J,KAAK0J,QAAQyE,UAEnCvE,IAAW0D,EAAiBG,yCAI5B7D,IAAW0D,EAAiBc,oCAC5BH,EAAqB/M,GAErB0I,EAAOyE,iBACPH,KAG2B,IAA/BA,EACAlO,KAAK0J,QAAQnF,KAAK+I,EAAiBc,mCAE9BF,EAA6B,GAA4B,OAAvBD,GAEvCjO,KAAK0J,QAAQ/E,OAAOsJ,EAAoB,EAGhD,EAEJX,EAAiBc,kCAAoC,CACjDxK,gBAAqByK,OAAChH,SAAEA,MACfA,GAAYA,EAASM,QAAU,IACzB,KAEJN,GAGfiG,EAAiBG,uCAAyC,CACtD7J,gBAAqByK,OAAChH,SAAEA,KACbA,EAASiH,iBAAmBlH,EAAaC,GAAYA,GCnMpE,MAAMkH,EAWF3O,WAAAA,EAAY0F,UAAEA,EAASoE,QAAEA,EAAU,GAAE8D,kBAAEA,GAAoB,GAAU,IACjExN,KAAKwO,EAAmB,IAAIlN,IAC5BtB,KAAKyO,EAAoB,IAAInN,IAC7BtB,KAAK0O,EAA0B,IAAIpN,IACnCtB,KAAKsJ,EAAY,IAAIgE,EAAiB,CAClChI,UAAWI,EAA2BJ,GACtCoE,QAAS,IACFA,EACH,IAAI7C,EAAuB,CAAEC,mBAAoB9G,QAErDwN,sBAGJxN,KAAK2O,QAAU3O,KAAK2O,QAAQC,KAAK5O,MACjCA,KAAK6O,SAAW7O,KAAK6O,SAASD,KAAK5O,KACvC,CAKA,YAAIkJ,GACA,OAAOlJ,KAAKsJ,CAChB,CAWAvE,QAAAA,CAASoJ,GACLnO,KAAK8O,eAAeX,GACfnO,KAAK+O,IACNhQ,KAAK2C,iBAAiB,UAAW1B,KAAK2O,SACtC5P,KAAK2C,iBAAiB,WAAY1B,KAAK6O,UACvC7O,KAAK+O,GAAkC,EAE/C,CAQAD,cAAAA,CAAeX,GASX,MAAMa,EAAkB,GACxB,IAAK,MAAMvM,KAAS0L,EAAS,CAEJ,iBAAV1L,EACPuM,EAAgBzK,KAAK9B,GAEhBA,QAA4B0B,IAAnB1B,EAAMwD,UACpB+I,EAAgBzK,KAAK9B,EAAM7B,KAE/B,MAAMoF,SAAEA,EAAQpF,IAAEA,GAAQkF,EAAerD,GACnCwM,EAA6B,iBAAVxM,GAAsBA,EAAMwD,SAAW,SAAW,UAC3E,GAAIjG,KAAKwO,EAAiBlL,IAAI1C,IAC1BZ,KAAKwO,EAAiBjL,IAAI3C,KAASoF,EACnC,MAAM,IAAItG,EAAa,wCAAyC,CAC5DwP,WAAYlP,KAAKwO,EAAiBjL,IAAI3C,GACtCuO,YAAanJ,IAGrB,GAAqB,iBAAVvD,GAAsBA,EAAMoL,UAAW,CAC9C,GAAI7N,KAAK0O,EAAwBpL,IAAI0C,IACjChG,KAAK0O,EAAwBnL,IAAIyC,KAAcvD,EAAMoL,UACrD,MAAM,IAAInO,EAAa,4CAA6C,CAChEkB,QAGRZ,KAAK0O,EAAwBrK,IAAI2B,EAAUvD,EAAMoL,UACrD,CAGA,GAFA7N,KAAKwO,EAAiBnK,IAAIzD,EAAKoF,GAC/BhG,KAAKyO,EAAkBpK,IAAIzD,EAAKqO,GAC5BD,EAAgBzP,OAAS,EAAG,CAC5B,MAAM6P,EACF,qDAASJ,EAAgBvJ,KAAK,8EAK9B4J,QAAQC,KAAKF,EAKrB,CACJ,CACJ,CAWAT,OAAAA,CAAQhN,GAGJ,OAAOgB,EAAUhB,GAAOiC,UACpB,MAAM2L,EAAsB,IAAIlJ,EAChCrG,KAAKkJ,SAASQ,QAAQnF,KAAKgL,GAG3B,IAAK,MAAO3O,EAAKoF,KAAahG,KAAKwO,EAAkB,CACjD,MAAMX,EAAY7N,KAAK0O,EAAwBnL,IAAIyC,GAC7CiJ,EAAYjP,KAAKyO,EAAkBlL,IAAI3C,GACvCgB,EAAU,IAAIc,QAAQ9B,EAAK,CAC7BiN,YACAhC,MAAOoD,EACPO,YAAa,sBAEXnN,QAAQC,IAAItC,KAAKkJ,SAAS+D,UAAU,CACtC9J,OAAQ,CAAE6C,YACVpE,UACAD,UAER,CACA,MAAM2E,YAAEA,EAAWC,eAAEA,GAAmBgJ,EAIxC,MAAO,CAAEjJ,cAAaC,iBAAgB,GAE9C,CAWAsI,QAAAA,CAASlN,GAGL,OAAOgB,EAAUhB,GAAOiC,UACpB,MAAMiI,QAAc9M,KAAKsM,OAAOS,KAAK9L,KAAKkJ,SAAS5D,WAC7CmK,QAAgC5D,EAAM3H,OACtCwL,EAAoB,IAAI5G,IAAI9I,KAAKwO,EAAiBmB,UAClDC,EAAc,GACpB,IAAK,MAAMhO,KAAW6N,EACbC,EAAkBpM,IAAI1B,EAAQhB,aACzBiL,EAAMpD,OAAO7G,GACnBgO,EAAYrL,KAAK3C,EAAQhB,MAMjC,MAAO,CAAEgP,cAAa,GAE9B,CAOAC,kBAAAA,GACI,OAAO7P,KAAKwO,CAChB,CAOAsB,aAAAA,GACI,MAAO,IAAI9P,KAAKwO,EAAiBtK,OACrC,CAUA+C,iBAAAA,CAAkBrG,GACd,MAAMmF,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACxC,OAAOf,KAAKwO,EAAiBjL,IAAIwC,EAAUhF,KAC/C,CAMAgP,uBAAAA,CAAwB/J,GACpB,OAAOhG,KAAK0O,EAAwBnL,IAAIyC,EAC5C,CAmBA,mBAAMgK,CAAcpO,GAChB,MAAMhB,EAAMgB,aAAmBc,QAAUd,EAAQhB,IAAMgB,EACjDoE,EAAWhG,KAAKiH,kBAAkBrG,GACxC,GAAIoF,EAAU,CAEV,aADoBjH,KAAKsM,OAAOS,KAAK9L,KAAKkJ,SAAS5D,YACtChF,MAAM0F,EACvB,CAEJ,CASAiK,uBAAAA,CAAwBrP,GACpB,MAAMoF,EAAWhG,KAAKiH,kBAAkBrG,GACxC,IAAKoF,EACD,MAAM,IAAItG,EAAa,oBAAqB,CAAEkB,QAElD,OAAQuI,IACJA,EAAQvH,QAAU,IAAIc,QAAQ9B,GAC9BuI,EAAQhG,OAASc,OAAOoF,OAAO,CAAErD,YAAYmD,EAAQhG,QAC9CnD,KAAKkJ,SAAS9I,OAAO+I,GAEpC,ECxRJ,IAAIrC,EAKG,MAAMoJ,EAAgCA,KACpCpJ,IACDA,EAAqB,IAAIyH,GAEtBzH,GCGX,MAAMqJ,UAAsB9P,EAiBxBT,WAAAA,CAAYkH,EAAoBqC,GAe5BpJ,OAdcO,EAAGsB,cACb,MAAMwO,EAAkBtJ,EAAmB+I,qBAC3C,IAAK,MAAMQ,KCtBhB,UAAgCzP,GAAK0P,4BAAEA,EAA8B,CAAC,QAAS,YAAWC,eAAEA,EAAiB,aAAYC,UAAEA,GAAY,EAAIC,gBAAEA,GAAqB,IACrK,MAAM1K,EAAY,IAAIhD,IAAInC,EAAKK,SAASF,MACxCgF,EAAU2K,KAAO,SACX3K,EAAUhF,KAChB,MAAM4P,ECHH,SAAmC5K,EAAWuK,EAA8B,IAG/E,IAAK,MAAMM,IAAa,IAAI7K,EAAUK,aAAalC,QAC3CoM,EAA4BO,MAAMlQ,GAAWA,EAAOmQ,KAAKF,MACzD7K,EAAUK,aAAaqC,OAAOmI,GAGtC,OAAO7K,CACX,CDNoCgL,CAA0BhL,EAAWuK,GAErE,SADMK,EAAwB5P,KAC1BwP,GAAkBI,EAAwBK,SAASC,SAAS,KAAM,CAClE,MAAMC,EAAe,IAAInO,IAAI4N,EAAwB5P,MACrDmQ,EAAaF,UAAYT,QACnBW,EAAanQ,IACvB,CACA,GAAIyP,EAAW,CACX,MAAMW,EAAW,IAAIpO,IAAI4N,EAAwB5P,MACjDoQ,EAASH,UAAY,cACfG,EAASpQ,IACnB,CACA,GAAI0P,EAAiB,CACjB,MAAMW,EAAiBX,EAAgB,CAAE7P,IAAKmF,IAC9C,IAAK,MAAMsL,KAAgBD,QACjBC,EAAatQ,IAE3B,CACJ,CDAsCuQ,CAAsB1P,EAAQhB,IAAKuI,GAAU,CACnE,MAAMnD,EAAWoK,EAAgB7M,IAAI8M,GACrC,GAAIrK,EAAU,CAEV,MAAO,CAAEA,WAAU6H,UADD/G,EAAmBiJ,wBAAwB/J,GAEjE,CACJ,CAIA,GAESc,EAAmBoC,SACpC,EG7BJ,SAASqI,EAASpI,GACd,MAAMrC,EAAqBoJ,KCK/B,SAAuBsB,EAASrR,EAASI,GACrC,IAAI6C,EACJ,GAAuB,iBAAZoO,EAAsB,CAC7B,MAAMC,EAAa,IAAI1O,IAAIyO,EAASvQ,SAASF,MAkC7CqC,EAAQ,IAAI/C,GAZUqR,EAAG9Q,SASdA,EAAIG,OAAS0Q,EAAW1Q,MAGFZ,EAASI,EAC9C,MACK,GAAIiR,aAAmB9F,OAExBtI,EAAQ,IAAI1C,EAAY8Q,EAASrR,EAASI,QAEzC,GAAuB,mBAAZiR,EAEZpO,EAAQ,IAAI/C,EAAMmR,EAASrR,EAASI,OAEnC,MAAIiR,aAAmBnR,GAIxB,MAAM,IAAIX,EAAa,yBAA0B,CAC7CiS,WAAY,kBACZC,SAAU,gBACVhB,UAAW,YANfxN,EAAQoO,CAQZ,EzBrEK5M,IACDA,EAAgB,IAAIxD,EAEpBwD,EAAcnD,mBACdmD,EAAc5C,oBAEX4C,GyBiEON,cAAclB,EAEhC,CD/DIkB,CADsB,IAAI6L,EAAcrJ,EAAoBqC,GAEhE,oBELA,SAA0BgF,EAAShF,ICInC,SAAkBgF,GACa+B,IACRnL,SAASoJ,EAChC,CDNIpJ,CAASoJ,GACToD,EAASpI,EACb"}\ No newline at end of file