7.4.4 release

This commit is contained in:
Gaudenz Alder 2017-09-22 18:13:16 +02:00
parent 81f43f69ab
commit 8be82dcd8f
19 changed files with 2435 additions and 1447 deletions

View file

@ -1,3 +1,9 @@
22-SEP-2017: 7.4.4
- Restores latest Dropbox SDK
- Improves CORS headers configuration
- Fixes ignored nav, highlight and page in tabbed lightbox for viewer
19-SEP-2017: 7.4.3
- Improvements for Trello integration

View file

@ -1 +1 @@
7.4.3
7.4.4

View file

@ -6,17 +6,17 @@
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask" classpath="${jscompiler}" />
<target name="merge">
<concat destfile="${basedir}/../../build/shapes.js" fixlastline="yes" append="no">
<fileset dir="${war.dir}/shapes" includes="**/*.js"/>
<fileset dir="${war.dir}/stencils" includes="**/*.js"/>
</concat>
<concat destfile="${basedir}/../../build/shapes.js" fixlastline="yes" append="no">
<fileset dir="${war.dir}/shapes" includes="**/*.js"/>
<fileset dir="${war.dir}/stencils" includes="**/*.js"/>
</concat>
<echo file="${war.dir}/stencils.xml" append="false"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>${line.separator}</echo>
<echo file="${war.dir}/stencils.xml" append="true"><![CDATA[<stencils>]]>${line.separator}</echo>
<concat destfile="${war.dir}/stencils.xml" fixlastline="yes" append="yes">
<fileset dir="${war.dir}/shapes" includes="**/*.xml"/>
<fileset dir="${war.dir}/stencils" includes="**/*.xml"/>
</concat>
<concat destfile="${war.dir}/stencils.xml" fixlastline="yes" append="yes">
<fileset dir="${war.dir}/shapes" includes="**/*.xml"/>
<fileset dir="${war.dir}/stencils" includes="**/*.xml"/>
</concat>
<echo file="${war.dir}/stencils.xml" append="true"><![CDATA[</stencils>]]></echo>
<jscomp compilationLevel="simple" debug="false" forceRecompile="true" output="${war.dir}/js/shapes.min.js">
@ -32,9 +32,9 @@
<echo file="${war.dir}/cache.manifest" append="false">CACHE MANIFEST${line.separator}${line.separator}</echo>
<echo file="${war.dir}/cache.manifest" append="true"># THIS FILE WAS GENERATED. DO NOT MODIFY!${line.separator}</echo>
<echo file="${war.dir}/cache.manifest" append="true"># ${time.stamp}${line.separator}${line.separator}</echo>
<concat destfile="${war.dir}/cache.manifest" fixlastline="yes" append="true">
<filelist dir="${basedir}" files="cache.txt"/>
</concat>
<concat destfile="${war.dir}/cache.manifest" fixlastline="yes" append="true">
<filelist dir="${basedir}" files="cache.txt"/>
</concat>
<delete dir="${basedir}/../../build"/>
</target>
@ -42,11 +42,9 @@
<target name="app" depends="merge">
<delete file="${basedir}/.tmp0.js"/>
<echo file="${basedir}/.tmp0.js">
if (typeof window.mxBasePath === 'undefined')
{
window.mxBasePath = 'https://www.draw.io/mxgraph/';
}
window.STENCIL_PATH = window.STENCIL_PATH || 'https://www.draw.io/stencils';
window.SHAPES_PATH = window.SHAPES_PATH || 'https://www.draw.io/shapes';
window.mxBasePath = window.mxBasePath || 'https://www.draw.io/mxgraph/';
window.mxLoadStylesheets = window.mxLoadStylesheets || false;
</echo>
@ -60,7 +58,7 @@
<echo file="${basedir}/Graph-Stylesheet.js">Graph.prototype.defaultThemes[Graph.prototype.defaultThemeName] = mxUtils.parseXml('</echo>
<concat destfile="${basedir}/Graph-Stylesheet.js" fixlastline="no" append="true">
<filelist dir="${basedir}" files=".tmp1.xml"/>
</concat>
</concat>
<echo file="${basedir}/Graph-Stylesheet.js" append="true">').documentElement;</echo>
<delete file="${basedir}/.tmp2.js"/>
@ -72,7 +70,7 @@
<echo file="${basedir}/Graph-Resources.js">mxResources.parse('</echo>
<concat destfile="${basedir}/Graph-Resources.js" fixlastline="no" append="true">
<filelist dir="${basedir}" files=".tmp2.xml"/>
</concat>
</concat>
<echo file="${basedir}/Graph-Resources.js" append="true">');</echo>
<jscomp compilationLevel="simple" forceRecompile="true" debug="false" output="${basedir}/grapheditor.min.js">
@ -188,14 +186,13 @@
<filelist dir="${war.dir}/js/sanitizer" files="sanitizer.min.js"/>
<filelist dir="${war.dir}/js/deflate" files="pako.min.js"/>
<filelist dir="${basedir}" files="client.min.js,.tmp1.js"/>
</concat>
</concat>
<echo file="${basedir}/.tmp2.js">
(function()
{
Editor.initMath();
GraphViewer.initCss();
mxStencilRegistry.dynamicLoading = false;
if (window.onDrawioViewerLoad != null)
{
@ -216,7 +213,7 @@
<concat destfile="${war.dir}/js/viewer.min.js" fixlastline="yes" append="no">
<filelist dir="${basedir}" files="base-viewer.min.js,.tmp2.min.js"/>
</concat>
</concat>
<delete file="${basedir}/.tmp0.js"/>
<delete file="${basedir}/.tmp0.min.js"/>
@ -336,7 +333,7 @@
<filelist dir="${war.dir}/js/sanitizer" files="sanitizer.min.js"/>
<filelist dir="${war.dir}/js/deflate" files="pako.min.js"/>
<filelist dir="${basedir}" files="client.min.js,grapheditor.min.js,sidebar.min.js,.tmp1.js"/>
</concat>
</concat>
<replace file="${war.dir}/js/app.min.js" token="@DRAWIO-VERSION@" value="${version}"/>

View file

@ -325,7 +325,7 @@ public class VsdxShape extends Shape
//several shapes have beginX/Y and also has a fill color, thus it is better to render it as a vertex
//vsdx can have an edge as a group!
this.vertex = vertex || (childShapes != null && !childShapes.isEmpty())
|| (geomList != null && !geomList.isNoFill());
|| (geomList != null && (!geomList.isNoFill() || geomList.getGeoCount() > 1)); //TODO is the assumption that shapes with more than one geometry are vertices correct?
}
/**

View file

@ -89,6 +89,11 @@ public class mxVsdxGeometryList
return !geomList.isEmpty();
}
public int getGeoCount()
{
return geomList.size();
}
private void rotatedPoint(mxPoint pt, double cos, double sin)
{
double x1 = pt.getX() * cos - pt.getY() * sin;

View file

@ -12,18 +12,11 @@
<sessions-enabled>false</sessions-enabled>
<threadsafe>false</threadsafe>
<!-- FOR LOCAL TESTING OF EMBED2 WITH DYNAMIC LOADING -->
<!-- Path patterns not supported in production -->
<static-files>
<include path="/styles/**">
<include path="/**">
<http-header name="Access-Control-Allow-Origin" value="*"/>
</include>
<include path="/stencils/**">
<http-header name="Access-Control-Allow-Origin" value="*"/>
</include>
<include path="/shapes/**">
<http-header name="Access-Control-Allow-Origin" value="*"/>
</include>
<include path="/**"/>
</include>
</static-files>
<instance-class>F2</instance-class>

View file

@ -1,7 +1,7 @@
CACHE MANIFEST
# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 09/19/2017 01:34 PM
# 09/22/2017 06:08 PM
app.html
index.html?offline=1

738
war/js/app.min.js vendored

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
"undefined"===typeof window.mxBasePath&&(window.mxBasePath="https://www.draw.io/mxgraph/");window.mxLoadStylesheets=window.mxLoadStylesheets||!1;
window.STENCIL_PATH=window.STENCIL_PATH||"https://www.draw.io/stencils";window.SHAPES_PATH=window.SHAPES_PATH||"https://www.draw.io/shapes";window.mxBasePath=window.mxBasePath||"https://www.draw.io/mxgraph/";window.mxLoadStylesheets=window.mxLoadStylesheets||!1;
//fgnass.github.com/spin.js#v2.0.0
!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return l[e]||(m.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",m.cssRules.length),l[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charAt(0).toUpperCase()+b.slice(1),d=0;d<k.length;d++)if(c=k[d]+b,void 0!==e[c])return c;return void 0!==e[b]?b:void 0}function e(a,b){for(var c in b)a.style[d(a,c)||c]=b[c];return a}function f(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)void 0===a[d]&&(a[d]=c[d])}return a}function g(a,b){return"string"==typeof a?a:a[b%a.length]}function h(a){this.opts=f(a||{},h.defaults,n)}function i(){function c(b,c){return a("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',c)}m.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d<e.childNodes.length&&(e=e.childNodes[b+d],e=e&&e.firstChild,e=e&&e.firstChild,e&&(e.opacity=c))}}var j,k=["webkit","Moz","ms","O"],l={},m=function(){var c=a("style",{type:"text/css"});return b(document.getElementsByTagName("head")[0],c),c.sheet||c.styleSheet}(),n={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};h.defaults={},f(h.prototype,{spin:function(b){this.stop();{var c=this,d=c.opts,f=c.el=e(a(0,{className:d.className}),{position:d.position,width:0,zIndex:d.zIndex});d.radius+d.length+d.width}if(b&&(b.insertBefore(f,b.firstChild||null),e(f,{left:d.left,top:d.top})),f.setAttribute("role","progressbar"),c.lines(f,c.opts),!j){var g,h=0,i=(d.lines-1)*(1-d.direction)/2,k=d.fps,l=k/d.speed,m=(1-d.opacity)/(l*d.trail/100),n=l/d.lines;!function o(){h++;for(var a=0;a<d.lines;a++)g=Math.max(1-(h+(d.lines-a)*n)%l*m,d.opacity),c.opacity(f,a*d.direction+i,g,d);c.timeout=c.el&&setTimeout(o,~~(1e3/k))}()}return c},stop:function(){var a=this.el;return a&&(clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=void 0),this},lines:function(d,f){function h(b,c){return e(a(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:b,boxShadow:c,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*k+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;k<f.lines;k++)i=e(a(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:j&&c(f.opacity,f.trail,l+k*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&b(i,e(h("#000","0 0 4px #000"),{top:"2px"})),b(d,b(i,h(g(f.color,k),"0 0 1px rgba(0,0,0,.1)")));return d},opacity:function(a,b,c){b<a.childNodes.length&&(a.childNodes[b].style.opacity=c)}});var o=e(a("group"),{behavior:"url(#default#VML)"});return!d(o,"transform")&&o.adj?i():j=d(o,"animation"),h});
// NOTE: Modified to support data URIs for images, ie. data:image/*
@ -2005,7 +2005,7 @@ c,b)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(a){d.pop
c.style[h]&&(b.push(c.style[h]),f.push(h));h=d.getModel().getStyle(c.cell);for(var e=null!=h?h.split(";"):[],k=0;k<e.length;k++){var q=e[k],p=q.indexOf("=");0<=p&&(h=q.substring(0,p),q=q.substring(p+1),null!=a[h]&&"none"==q&&(b.push(q),f.push(h)))}d.getModel().isEdge(c.cell)?d.currentEdgeStyle={}:d.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",f,"values",b,"cells",[c.cell]))}};this.clearDefaultStyle=function(){d.currentEdgeStyle=mxUtils.clone(d.defaultEdgeStyle);d.currentVertexStyle=
mxUtils.clone(d.defaultVertexStyle);this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};var x=["fontFamily","fontSize","fontColor"],u="edgeStyle startArrow startFill startSize endArrow endFill endSize jettySize orthogonalLoop".split(" "),B=["startArrow startFill startSize endArrow endFill endSize jettySize orthogonalLoop".split(" "),["strokeColor","strokeWidth"],["fillColor","gradientColor"],x,["align"],["html"]];for(a=0;a<B.length;a++)for(b=0;b<B[a].length;b++)t.push(B[a][b]);
for(a=0;a<D.length;a++)0>mxUtils.indexOf(t,D[a])&&t.push(D[a]);var A=function(a,c){d.getModel().beginUpdate();try{if(c)for(var b=d.getModel().isEdge(k),f=b?d.currentEdgeStyle:d.currentVertexStyle,b=["fontSize","fontFamily","fontColor"],h=0;h<b.length;h++){var e=f[b[h]];null!=e&&d.setCellStyles(b[h],e,a)}else for(e=0;e<a.length;e++){for(var k=a[e],q=d.getModel().getStyle(k),p=null!=q?q.split(";"):[],n=t.slice(),h=0;h<p.length;h++){var m=p[h],H=m.indexOf("=");if(0<=H){var w=m.substring(0,H),v=mxUtils.indexOf(n,
w);0<=v&&n.splice(v,1);for(var g=0;g<B.length;g++){var l=B[g];if(0<=mxUtils.indexOf(l,w))for(var u=0;u<l.length;u++){var r=mxUtils.indexOf(n,l[u]);0<=r&&n.splice(r,1)}}}}f=(b=d.getModel().isEdge(k))?d.currentEdgeStyle:d.currentVertexStyle;for(h=0;h<n.length;h++){var w=n[h],x=f[w];null==x||"shape"==w&&!b||(!b||0>mxUtils.indexOf(D,w))&&d.setCellStyles(w,x,[k])}}}finally{d.getModel().endUpdate()}};d.addListener("cellsInserted",function(a,c){A(c.getProperty("cells"))});d.addListener("textInserted",function(a,
w);0<=v&&n.splice(v,1);for(var g=0;g<B.length;g++){var l=B[g];if(0<=mxUtils.indexOf(l,w))for(var r=0;r<l.length;r++){var u=mxUtils.indexOf(n,l[r]);0<=u&&n.splice(u,1)}}}}f=(b=d.getModel().isEdge(k))?d.currentEdgeStyle:d.currentVertexStyle;for(h=0;h<n.length;h++){var w=n[h],x=f[w];null==x||"shape"==w&&!b||(!b||0>mxUtils.indexOf(D,w))&&d.setCellStyles(w,x,[k])}}}finally{d.getModel().endUpdate()}};d.addListener("cellsInserted",function(a,c){A(c.getProperty("cells"))});d.addListener("textInserted",function(a,
c){A(c.getProperty("cells"),!0)});d.connectionHandler.addListener(mxEvent.CONNECT,function(a,c){var b=[c.getProperty("cell")];c.getProperty("terminalInserted")&&b.push(c.getProperty("terminal"));A(b)});this.addListener("styleChanged",mxUtils.bind(this,function(a,c){var b=c.getProperty("cells"),f=!1,h=!1;if(0<b.length)for(var e=0;e<b.length&&(f=d.getModel().isVertex(b[e])||f,!(h=d.getModel().isEdge(b[e])||h)||!f);e++);else h=f=!0;for(var b=c.getProperty("keys"),k=c.getProperty("values"),e=0;e<b.length;e++){var q=
0<=mxUtils.indexOf(x,b[e]);if("strokeColor"!=b[e]||null!=k[e]&&"none"!=k[e])if(0<=mxUtils.indexOf(D,b[e]))h||0<=mxUtils.indexOf(u,b[e])?null==k[e]?delete d.currentEdgeStyle[b[e]]:d.currentEdgeStyle[b[e]]=k[e]:f&&0<=mxUtils.indexOf(t,b[e])&&(null==k[e]?delete d.currentVertexStyle[b[e]]:d.currentVertexStyle[b[e]]=k[e]);else if(0<=mxUtils.indexOf(t,b[e])){if(f||q)null==k[e]?delete d.currentVertexStyle[b[e]]:d.currentVertexStyle[b[e]]=k[e];if(h||q||0<=mxUtils.indexOf(u,b[e]))null==k[e]?delete d.currentEdgeStyle[b[e]]:
d.currentEdgeStyle[b[e]]=k[e]}}null!=this.toolbar&&(this.toolbar.setFontName(d.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(d.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0].className="orthogonalEdgeStyle"==d.currentEdgeStyle.edgeStyle&&"1"==d.currentEdgeStyle.curved?"geSprite geSprite-curved":"straight"==d.currentEdgeStyle.edgeStyle||"none"==d.currentEdgeStyle.edgeStyle||
@ -2166,8 +2166,8 @@ shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyy
/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(d.masks[b]||b||d.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),e=!0);var r=e?"getUTC":"get",c=a[r+"Date"](),f=a[r+"Day"](),h=a[r+"Month"](),p=a[r+"FullYear"](),n=a[r+"Hours"](),v=a[r+"Minutes"](),q=a[r+"Seconds"](),r=a[r+"Milliseconds"](),k=e?0:a.getTimezoneOffset(),w={d:c,dd:m(c),ddd:d.i18n.dayNames[f],dddd:d.i18n.dayNames[f+7],m:h+1,mm:m(h+1),mmm:d.i18n.monthNames[h],mmmm:d.i18n.monthNames[h+
12],yy:String(p).slice(2),yyyy:p,h:n%12||12,hh:m(n%12||12),H:n,HH:m(n),M:v,MM:m(v),s:q,ss:m(q),l:m(r,3),L:m(99<r?Math.round(r/10):r),t:12>n?"a":"p",tt:12>n?"am":"pm",T:12>n?"A":"P",TT:12>n?"AM":"PM",Z:e?"UTC":(String(a).match(g)||[""]).pop().replace(l,""),o:(0<k?"-":"+")+m(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][3<c%10?0:(10!=c%100-c%10)*c%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(a){return a in w?w[a]:a.slice(1,
a.length-1)})};
Graph.prototype.createLayersDialog=function(){var a=document.createElement("div");a.style.position="absolute";for(var b=this.getModel(),e=b.getChildCount(b.root),d=0;d<e;d++)(function(d){var e=document.createElement("div");e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.padding="2px";e.style.whiteSpace="nowrap";var m=document.createElement("input");m.setAttribute("type","checkbox");b.isVisible(d)&&(m.setAttribute("checked","checked"),m.defaultChecked=!0);e.appendChild(m);var g=d.value||
mxResources.get("background")||"Background";e.setAttribute("title",g);mxUtils.write(e,g);a.appendChild(e);mxEvent.addListener(m,"click",function(){null!=m.getAttribute("checked")?m.removeAttribute("checked"):m.setAttribute("checked","checked");b.setVisible(d,m.checked)})})(b.getChildAt(b.root,d));return a};
Graph.prototype.createLayersDialog=function(){var a=document.createElement("div");a.style.position="absolute";for(var b=this.getModel(),e=b.getChildCount(b.root),d=0;d<e;d++)(function(d){var e=document.createElement("div");e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.padding="2px";e.style.whiteSpace="nowrap";var m=document.createElement("input");m.style.display="inline-block";m.setAttribute("type","checkbox");b.isVisible(d)&&(m.setAttribute("checked","checked"),m.defaultChecked=
!0);e.appendChild(m);var g=d.value||mxResources.get("background")||"Background";e.setAttribute("title",g);mxUtils.write(e,g);a.appendChild(e);mxEvent.addListener(m,"click",function(){null!=m.getAttribute("checked")?m.removeAttribute("checked"):m.setAttribute("checked","checked");b.setVisible(d,m.checked)})})(b.getChildAt(b.root,d));return a};
Graph.prototype.replacePlaceholders=function(a,b){for(var e=[],d=0;match=this.placeholderPattern.exec(b);){var g=match[0];if(2<g.length&&"%label%"!=g&&"%tooltip%"!=g){var l=null;if(match.index>d&&"%"==b.charAt(match.index-1))l=g.substring(1);else{var m=g.substring(1,g.length-1);if(0>m.indexOf("{"))for(var r=a;null==l&&null!=r;)null!=r.value&&"object"==typeof r.value&&(l=r.hasAttribute(m)?null!=r.getAttribute(m)?r.getAttribute(m):"":null),r=this.model.getParent(r);null==l&&(l=this.getGlobalVariable(m))}e.push(b.substring(d,
match.index)+(null!=l?l:g));d=match.index+g.length}}e.push(b.substring(d));return e.join("")};Graph.prototype.selectCellsForConnectVertex=function(a,b,e){2==a.length&&this.model.isVertex(a[1])?(this.setSelectionCell(a[1]),null!=e&&(mxEvent.isTouchEvent(b)?e.update(e.getState(this.view.getState(a[1]))):e.reset()),this.scrollCellToVisible(a[1])):this.setSelectionCells(a)};
Graph.prototype.connectVertex=function(a,b,e,d,g,l){l=l?l:!1;var m=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(a.geometry.x,a.geometry.y);b==mxConstants.DIRECTION_NORTH?(m.x+=a.geometry.width/2,m.y-=e):b==mxConstants.DIRECTION_SOUTH?(m.x+=a.geometry.width/2,m.y+=a.geometry.height+e):(m.x=b==mxConstants.DIRECTION_WEST?m.x-e:m.x+(a.geometry.width+e),m.y+=a.geometry.height/2);e=this.view.getState(this.model.getParent(a));
@ -2656,104 +2656,104 @@ var f=g.getGlobalVariable,h=this.pages[0];g.getGlobalVariable=function(a){return
b.getBoundingBox(b.getSelectionCells()),h=b.view.scale;g=Math.floor(c.x/h-b.view.translate.x);h=Math.floor(c.y/h-b.view.translate.y);c=b.background;null==n&&(b=this.getBasenames().join(";"),0<b.length&&(f="https://www.draw.io/embed.js?s="+b));a.setAttribute("x0",g);a.setAttribute("y0",h)}null!=a&&(a.setAttribute("pan","1"),a.setAttribute("zoom","1"),a.setAttribute("resize","0"),a.setAttribute("fit","0"),a.setAttribute("border","20"),a.setAttribute("links","1"),null!=e&&a.setAttribute("edit",e));null!=
n&&(n=n.replace(/&/g,"&amp;"));a=null!=a?this.editor.graph.zapGremlins(mxUtils.getXml(a)):"";e=this.editor.graph.compress(a);this.editor.graph.decompress(e)!=a&&(e=encodeURIComponent(a));return(null==n?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=n?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==n?null!=d?"<title>"+mxUtils.htmlEntities(d)+"</title>\n":"":"<title>Draw.io Diagram</title>\n")+(null!=n?
'<meta http-equiv="refresh" content="0;URL=\''+n+"'\"/>\n":"")+"</head>\n<body"+(null==n&&null!=c&&c!=mxConstants.NONE?' style="background-color:'+c+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+e+"</div>\n</div>\n"+(null==n?'<script type="text/javascript" src="'+f+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+n+'" target="_blank"><img border="0" src="https://www.draw.io/images/drawlogo128.png"/></a>')+
"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(a,b,d,e,n){e="https://www.draw.io/js/viewer.min.js";null!=b&&null==n&&(b=this.getBasenames().join(";"),0<b.length&&(e="https://www.draw.io/embed2.js?s="+b));null!=n&&(n=n.replace(/&/g,"&amp;"));a={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,xml:this.editor.graph.zapGremlins(a),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(a.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==
n?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=n?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==n?null!=d?"<title>"+mxUtils.htmlEntities(d)+"</title>\n":"":"<title>Draw.io Diagram</title>\n")+(null!=n?'<meta http-equiv="refresh" content="0;URL=\''+n+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(a))+
'"></div>\n'+(null==n?'<script type="text/javascript" src="'+e+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+n+'" target="_blank"><img border="0" src="https://www.draw.io/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=function(a){a=this.validateFileData(a);this.pages=this.fileNode=this.currentPage=null;var c=null!=a&&0<a.length?mxUtils.parseXml(a).documentElement:null;a=null!=c?this.editor.extractGraphModel(c,
!0):null;null!=a&&(c=a);if(null!=c&&"mxfile"==c.nodeName&&(a=c.getElementsByTagName("diagram"),"0"!=urlParams.pages||1<a.length||1==a.length&&a[0].hasAttribute("name"))){this.fileNode=c;this.pages=[];for(c=0;c<a.length;c++){var b=new DiagramPage(a[c]);null==b.getName()&&b.setName(mxResources.get("pageWithNumber",[c+1]));this.pages.push(b)}this.currentPage=this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];c=this.currentPage.node}"0"!=urlParams.pages&&null==this.fileNode&&null!=
c&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(c);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root)};EditorUi.prototype.getBaseFilename=function(){var a=this.getCurrentFile(),a=null!=a&&null!=a.getTitle()?a.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(a)||/(\.html)$/i.test(a)||
/(\.svg)$/i.test(a))a=a.substring(0,a.lastIndexOf("."));return a};EditorUi.prototype.downloadFile=function(a,b,d,e,n,g){try{e=null!=e?e:this.editor.graph.isSelectionEmpty();var c=this.getBaseFilename(),f=c+"."+a;if("xml"==a){var h='<?xml version="1.0" encoding="UTF-8"?>\n'+(b?mxUtils.getXml(this.editor.getGraphXml(e)):this.getFileData(!0,null,null,null,e,n));this.saveData(f,a,h,"text/xml")}else if("html"==a)h=this.getHtml2(this.getFileData(!0),this.editor.graph,c),this.saveData(f,a,h,"text/html");
else if("svg"!=a&&"xmlsvg"!=a||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==a?f=c+".png":"jpeg"==a&&(f=c+".jpg"),this.saveRequest(f,a,mxUtils.bind(this,function(c,b){try{var d=this.editor.graph.pageVisible;null!=g&&(this.editor.graph.pageVisible=g);var f=this.createDownloadRequest(c,a,e,b);this.editor.graph.pageVisible=d;return f}catch(F){this.handleError(F)}}));else{var p=null,m=mxUtils.bind(this,function(a){a.length<=MAX_REQUEST_SIZE?this.saveData(f,"svg",a,"image/svg+xml"):
this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(p)}))});if("svg"==a){var l=this.editor.graph.background;l==mxConstants.NONE&&(l=null);var v=this.editor.graph.getSvg(l,null,null,null,null,e);d&&this.editor.graph.addSvgShadow(v);this.convertImages(v,mxUtils.bind(this,mxUtils.bind(this,function(a){this.spinner.stop();m('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'+
mxUtils.getXml(a))})))}else f=c+".svg",p=this.getFileData(!1,!0,null,mxUtils.bind(this,function(a){this.spinner.stop();m(a)}),e)}}catch(B){this.handleError(B)}};EditorUi.prototype.createDownloadRequest=function(a,b,d,e){var c=this.editor.graph.getGraphBounds();d=this.getFileData(!0,null,null,null,d,"xmlpng"!=b);var f="";if(c.width*c.height>MAX_AREA||d.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};c="0";if("xmlpng"==b&&(c="1",b="png",null!=this.pages&&null!=this.currentPage))for(var h=
0;h<this.pages.length;h++)if(this.pages[h]==this.currentPage){f="&from="+h;break}return new mxXmlRequest(EXPORT_URL,"format="+b+f+"&base64="+e+"&embedXml="+c+"&xml="+encodeURIComponent(d)+(null!=a?"&filename="+encodeURIComponent(a):""))};EditorUi.prototype.setMode=function(a,b){this.mode=a};EditorUi.prototype.fileLoaded=function(a){var c=!1;this.hideDialog();var b=this.getCurrentFile();this.setCurrentFile(null);null!=b&&(b.removeListener(this.descriptorChangedListener),b.close());this.editor.graph.model.clear();
this.editor.undoManager.clear();var d=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=b&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fnameWrapper.style.display="none",this.fname.innerHTML="",this.fname.setAttribute("title",mxResources.get("rename")));this.updateUi();this.showSplash()});if(null!=a)try{this.setCurrentFile(a);
a.addListener("descriptorChanged",this.descriptorChangedListener);a.addListener("contentChanged",this.descriptorChangedListener);a.open();this.setGraphEnabled(!0);this.setMode(a.getMode());this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();null==a.realtime&&(a.isEditable()?this.editor.setStatus(""):this.editor.setStatus('<span class="geStatusAlert" style="margin-left:8px;">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</span>"));this.editor.chromeless?this.editor.graph.lightbox&&
this.lightboxFit():(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus());this.chromelessResize&&this.chromelessResize();this.editor.fireEvent(new mxEventObject("fileLoaded"));c=!0;if(EditorUi.enableLogging&&!this.isOffline()&&null!=a.getMode())try{"function"===typeof window.ga&&ga("send","event","File","open",a.getMode())}catch(n){}if(this.mode==a.getMode()&&a.getMode()!=App.MODE_DEVICE&&null!=a.getMode())try{this.addRecent({id:a.getHash(),
title:a.getTitle(),mode:a.getMode()})}catch(n){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(n){}}catch(n){null!=window.console&&console.log("error in fileLoaded:",a,n);if(EditorUi.enableLogging&&!this.isOffline())try{(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?v="+encodeURIComponent(EditorUi.VERSION)+"&msg=errorInFileLoaded:url:"+encodeURIComponent(window.location.href)+(null!=n&&null!=n.message?":err:"+encodeURIComponent(n.message):
"")+(null!=n&&null!=n.stack?"&stack="+encodeURIComponent(n.stack):"")}catch(v){}this.handleError(n,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=b?b.constructor==DriveFile?this.loadFile(b.getHash()):this.fileLoaded(b):d()}))}else d();return c};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(a,b,d,e,n,
g,q){};EditorUi.prototype.toggleScratchpad=function(){if(isLocalStorage||mxClient.IS_CHROMEAPP)null==this.scratchpad?this.getLocalData(".scratchpad",mxUtils.bind(this,function(a){null==a&&(a=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,a,".scratchpad"))})):this.closeLibrary(this.scratchpad)};EditorUi.prototype.createLibraryDataFromImages=function(a){var c=mxUtils.createXmlDocument(),b=c.createElement("mxlibrary");mxUtils.setTextContent(b,JSON.stringify(a));c.appendChild(b);return mxUtils.getXml(c)};
EditorUi.prototype.closeLibrary=function(a){null!=a&&(this.removeLibrarySidebar(a.getHash()),a.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(a.getHash()),".scratchpad"==a.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(a){var c=this.sidebar.palettes[a];if(null!=c){for(var b=0;b<c.length;b++)c[b].parentNode.removeChild(c[b]);delete this.sidebar.palettes[a]}};EditorUi.prototype.repositionLibrary=function(a){var c=this.sidebar.container;if(null==a){var b=
this.sidebar.palettes["L.scratchpad"];null==b&&(b=this.sidebar.palettes.search);null!=b&&(a=b[b.length-1].nextSibling)}a=null!=a?a:c.firstChild.nextSibling.nextSibling;var b=c.lastChild,d=b.previousSibling;c.insertBefore(b,a);c.insertBefore(d,b)};EditorUi.prototype.loadLibrary=function(a){var c=mxUtils.parseXml(a.getData());if("mxlibrary"==c.documentElement.nodeName){var b=JSON.parse(mxUtils.getTextContent(c.documentElement));this.libraryLoaded(a,b,c.documentElement.getAttribute("title"))}else throw{message:mxResources.get("notALibraryFile")};
};EditorUi.prototype.getLibraryStorageHint=function(a){return""};EditorUi.prototype.libraryLoaded=function(a,b,d){a.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(a.getHash());".scratchpad"==a.title&&(this.scratchpad=a);var c=this.sidebar.palettes[a.getHash()],c=null!=c?c[c.length-1].nextSibling:null;this.removeLibrarySidebar(a.getHash());var f=null,e=mxUtils.bind(this,function(c,b){if(0==c.length&&a.isEditable())null==f&&(f=document.createElement("div"),mxUtils.setPrefixedStyle(f.style,"borderRadius",
"6px"),f.style.border="3px dotted lightGray",f.style.textAlign="center",f.style.padding="8px",f.style.color="#B3B3B3",mxUtils.write(f,mxResources.get("dragElementsHere"))),b.appendChild(f);else for(var d=0;d<c.length;d++){var e=c[d],h=e.data;if(null!=h){var h=this.convertDataUri(h),k="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==e.aspect&&(k+="aspect=fixed;");b.appendChild(this.sidebar.createVertexTemplate(k+"image="+h,e.w,e.h,"",e.title||"",!1,!1,!1))}else null!=
e.xml&&(h=this.stringToCells(this.editor.graph.decompress(e.xml)),0<h.length&&b.appendChild(this.sidebar.createVertexTemplateFromCells(h,e.w,e.h,e.title||"",!0,!1,!1)))}});d=null!=d&&0<d.length?d:a.getTitle();var h=this.sidebar.addPalette(a.getHash(),d,!0,mxUtils.bind(this,function(a){e(b,a)}));this.repositionLibrary(c);var k=h.parentNode.previousSibling;d=k.getAttribute("title");null!=d&&0<d.length&&".scratchpad"!=a.title&&k.setAttribute("title",this.getLibraryStorageHint(a)+"\n"+d);var g=document.createElement("div");
g.style.position="absolute";g.style.right="0px";g.style.top="5px";mxClient.IS_QUIRKS||8==document.documentMode||(g.style.backgroundColor="inherit");k.style.position="relative";var m=document.createElement("img");m.setAttribute("src",Dialog.prototype.closeImage);m.setAttribute("title",mxResources.get("close"));m.setAttribute("align","top");m.setAttribute("border","0");m.className="geButton";m.style.marginRight="1px";m.style.marginTop="-1px";g.appendChild(m);var l=null;mxEvent.addListener(m,"click",
mxUtils.bind(this,function(c){if(!mxEvent.isConsumed(c)){var b=mxUtils.bind(this,function(){this.closeLibrary(a)});null!=l?this.confirm(mxResources.get("allChangesLost"),null,b,mxResources.get("cancel"),mxResources.get("discardChanges")):b();mxEvent.consume(c)}}));mxEvent.addListener(h,"mousemove",mxUtils.bind(this,function(a){mxEvent.getSource(a)==h?h.setAttribute("title",mxResources.get("libraryTooltip")):h.removeAttribute("title")}));if(a.isEditable()){var r=this.editor.graph,u=mxUtils.bind(this,
function(c){this.showLibraryDialog(a.getTitle(),h,b,a,a.getMode());mxEvent.consume(c)}),B=mxUtils.bind(this,function(c){a.setModified(!0);a.isAutosave()?(null!=C&&null!=C.parentNode&&C.parentNode.removeChild(C),C=m.cloneNode(!1),C.setAttribute("src",Editor.spinImage),C.setAttribute("title",mxResources.get("saving")),C.style.cursor="default",C.style.marginRight="2px",C.style.marginTop="-2px",g.insertBefore(C,g.firstChild),k.style.paddingRight=18*g.childNodes.length+"px",this.saveLibrary(a.getTitle(),
b,a,a.getMode(),!0,!0,function(){null!=C&&null!=C.parentNode&&(C.parentNode.removeChild(C),k.style.paddingRight=18*g.childNodes.length+"px")})):null==l&&(l=m.cloneNode(!1),l.setAttribute("src",IMAGE_PATH+"/download.png"),l.setAttribute("title",mxResources.get("save")),g.insertBefore(l,g.firstChild),mxEvent.addListener(l,"click",mxUtils.bind(this,function(c){this.saveLibrary(a.getTitle(),b,a,a.getMode(),a.constructor==LocalLibrary,!0,function(){null==l||a.isModified()||(k.style.paddingRight=18*g.childNodes.length+
"px",l.parentNode.removeChild(l),l=null)});mxEvent.consume(c)})),k.style.paddingRight=18*g.childNodes.length+"px")}),A=mxUtils.bind(this,function(a,c,d,e){a=r.cloneCells(mxUtils.sortCells(r.model.getTopmostCells(a)));for(var k=0;k<a.length;k++){var p=r.getCellGeometry(a[k]);null!=p&&p.translate(-c.x,-c.y)}h.appendChild(this.sidebar.createVertexTemplateFromCells(a,c.width,c.height,e||"",!0,!1,!1));a={xml:this.editor.graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(a))),w:c.width,h:c.height};
null!=e&&(a.title=e);b.push(a);B(d);null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null)}),y=mxUtils.bind(this,function(a){if(r.isSelectionEmpty())r.getRubberband().isActive()?(r.getRubberband().execute(a),r.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var c=r.getSelectionCells(),b=r.view.getBounds(c),d=r.view.scale;b.x/=d;b.y/=d;b.width/=d;b.height/=d;b.x-=r.view.translate.x;b.y-=r.view.translate.y;
A(c,b)}mxEvent.consume(a)});h.style.border="3px solid transparent";mxEvent.addGestureListeners(h,function(){},mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.panningManager&&null!=r.graphHandler.shape&&(r.graphHandler.shape.node.style.visibility="hidden",null!=f?f.style.border="3px dotted rgb(254, 137, 12)":h.style.border="3px dotted rgb(254, 137, 12)",h.style.cursor="copy",r.panningManager.stop(),r.autoScroll=!1,null!=r.graphHandler.guide&&r.graphHandler.guide.setVisible(!1),null!=r.graphHandler.hint&&
(r.graphHandler.hint.style.visibility="hidden"),mxEvent.consume(a))}),mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.panningManager&&null!=r.graphHandler&&(h.style.border="3px solid transparent",null!=f&&(f.style.border="3px dotted lightGray"),h.style.cursor="default",this.sidebar.showTooltips=!0,r.panningManager.stop(),r.graphHandler.reset(),r.isMouseDown=!1,r.autoScroll=!0,y(a),mxEvent.consume(a))}));mxEvent.addListener(h,"mouseleave",mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.graphHandler.shape&&
(r.graphHandler.shape.node.style.visibility="visible",h.style.border="3px solid transparent",h.style.cursor="",r.autoScroll=!0,null!=r.graphHandler.guide&&r.graphHandler.guide.setVisible(!0),null!=r.graphHandler.hint&&(r.graphHandler.hint.style.visibility="visible"),null!=f&&(f.style.border="3px dotted lightGray"))}));Graph.fileSupport&&(mxEvent.addListener(h,"dragover",mxUtils.bind(this,function(a){null!=f?f.style.border="3px dotted rgb(254, 137, 12)":h.style.border="3px dotted rgb(254, 137, 12)";
a.dataTransfer.dropEffect="copy";h.style.cursor="copy";this.sidebar.hideTooltip();a.stopPropagation();a.preventDefault()})),mxEvent.addListener(h,"drop",mxUtils.bind(this,function(a){h.style.border="3px solid transparent";h.style.cursor="";null!=f&&(f.style.border="3px dotted lightGray");0<a.dataTransfer.files.length&&this.importFiles(a.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(c,d,k,p,n,q,g,m,l){if(null!=c&&"image/"==d.substring(0,6))c="shape=image;verticalLabelPosition=bottom;verticalAlign=top;aspect=fixed;image="+
this.convertDataUri(c),c=[new mxCell("",new mxGeometry(0,0,n,q),c)],c[0].vertex=!0,A(c,new mxRectangle(0,0,n,q),a,mxEvent.isAltDown(a)?null:g.substring(0,g.lastIndexOf(".")).replace(/_/g," ")),null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null);else{var t=!1,v=mxUtils.bind(this,function(c,d){if(null!=c&&"text/xml"==d){var k=mxUtils.parseXml(c);if("mxlibrary"==k.documentElement.nodeName)try{var p=JSON.parse(mxUtils.getTextContent(k.documentElement));e(p,h);b=b.concat(p);B(a);
this.spinner.stop();t=!0}catch(T){}else if("mxfile"==k.documentElement.nodeName)try{for(var n=k.documentElement.getElementsByTagName("diagram"),k=0;k<n.length;k++){var p=mxUtils.getTextContent(n[k]),q=this.stringToCells(this.editor.graph.decompress(p)),g=this.editor.graph.getBoundingBoxFromGeometry(q);A(q,new mxRectangle(0,0,g.width,g.height),a)}t=!0}catch(T){null!=window.console&&console.log("error in drop handler:",T)}}t||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));
null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null)});!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,g)&&null!=l?this.parseFile(l,mxUtils.bind(this,function(a){4==a.readyState&&(this.spinner.stop(),200<=a.status&&299>=a.status?v(a.responseText,"text/xml"):this.handleError({message:mxResources.get(413==a.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):v(c,d)}}));a.stopPropagation();a.preventDefault()})),
mxEvent.addListener(h,"dragleave",function(a){null!=f?f.style.border="3px dotted lightGray":(h.style.border="3px solid transparent",h.style.cursor="");a.stopPropagation();a.preventDefault()}));m=m.cloneNode(!1);m.setAttribute("src",IMAGE_PATH+"/edit.gif");m.setAttribute("title",mxResources.get("edit"));g.insertBefore(m,g.firstChild);mxEvent.addListener(m,"click",u);mxEvent.addListener(h,"dblclick",function(a){mxEvent.getSource(a)==h&&u(a)});m=m.cloneNode(!1);m.setAttribute("src",Editor.plusImage);
m.setAttribute("title",mxResources.get("add"));g.insertBefore(m,g.firstChild);this.isOffline()||".scratchpad"!=a.title||(d=document.createElement("span"),d.setAttribute("title",mxResources.get("help")),d.style.cssText="color:gray;text-decoration:none;",d.className="geButton",mxUtils.write(d,"?"),mxEvent.addGestureListeners(d,mxUtils.bind(this,function(a){window.open("https://desk.draw.io/support/solutions/articles/16000042367");mxEvent.consume(a)})),g.insertBefore(d,g.firstChild));var C=null;mxEvent.addListener(m,
"click",y)}k.appendChild(g);k.style.paddingRight=18*g.childNodes.length+"px"};"1"==urlParams.offline?EditorUi.prototype.footerHeight=4:("atlas"==uiTheme?("undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground=mxClient.IS_QUIRKS?"none":"linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38,EditorUi.prototype.hsplitPosition=
188,Sidebar.prototype.thumbWidth=46,Sidebar.prototype.thumbHeight=46,Sidebar.prototype.thumbPadding=5<=document.documentMode?0:1,Sidebar.prototype.thumbBorder=2):"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64),EditorUi.prototype.footerHeight=760<=screen.width&&240<=screen.height?46:0,EditorUi.prototype.createFooter=function(){var a=document.getElementById("geFooter");if(null!=a){a.style.visibility="visible";var b=document.createElement("img");b.setAttribute("border",
"0");b.setAttribute("src",Dialog.prototype.closeImage);b.setAttribute("title",mxResources.get("hide"));a.appendChild(b);mxClient.IS_QUIRKS&&(b.style.position="relative",b.style.styleFloat="right",b.style.top="-30px",b.style.left="164px",b.style.cursor="pointer");mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideFooter()}))}return a});EditorUi.prototype.hideFooter=function(){var a=document.getElementById("geFooter");null!=a&&(this.footerHeight=0,a.style.display="none",this.refresh())};
EditorUi.prototype.showImageDialog=function(a,b,d,e,n){a=new ImageDialog(this,a,b,d,e,n);this.showDialog(a.container,Graph.fileSupport?440:360,Graph.fileSupport?200:90,!0,!0);a.init()};EditorUi.prototype.showBackgroundImageDialog=function(a){a=null!=a?a:mxUtils.bind(this,function(a){a=new ChangePageSetup(this,null,a);a.ignoreColor=!0;this.editor.graph.model.execute(a)});var c=new BackgroundImageDialog(this,mxUtils.bind(this,function(c){a(c)}));this.showDialog(c.container,360,200,!0,!0);c.init()};
EditorUi.prototype.showLibraryDialog=function(a,b,d,e,n){a=new LibraryDialog(this,a,b,d,e,n);this.showDialog(a.container,620,440,!0,!1,mxUtils.bind(this,function(a){a&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));a.init()};EditorUi.prototype.createSidebarFooterContainer=function(){var a=this.createDiv("geSidebarContainer");a.style.position="absolute";a.style.overflow="hidden";a.style.borderWidth="3px";var b=document.createElement("a");b.setAttribute("href","javascript:void(0);");
b.className="geTitle";b.style.height="100%";b.style.paddingTop="9px";mxUtils.write(b,mxResources.get("moreShapes")+"...");mxEvent.addListener(b,"click",mxUtils.bind(this,function(a){this.actions.get("shapes").funct();mxEvent.consume(a)}));a.appendChild(b);return a};EditorUi.prototype.handleError=function(a,b,d){var c=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},f=null!=a&&null!=a.error?a.error:a;if(null!=f||null!=b){a=mxUtils.htmlEntities(mxResources.get("unknownError"));
var e=mxResources.get("ok"),h=null;b=null!=b?b:mxResources.get("error");if(null!=f)if(null!=f.retry&&(e=mxResources.get("cancel"),h=function(){c();f.retry()}),"undefined"!=typeof gapi&&"undefined"!=typeof gapi.drive&&"undefined"!=typeof gapi.drive.realtime&&f.type==gapi.drive.realtime.ErrorType.FORBIDDEN)a=mxUtils.htmlEntities(mxResources.get("forbidden"));else if(404==f.code||404==f.status||"undefined"!=typeof gapi&&"undefined"!=typeof gapi.drive&&"undefined"!=typeof gapi.drive.realtime&&f.type==
gapi.drive.realtime.ErrorType.NOT_FOUND){a=mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied"));var k=window.location.hash;null!=k&&"#G"==k.substring(0,2)&&(k=k.substring(2),a+=' <a href="https://drive.google.com/open?id='+k+'" target="_blank">'+mxUtils.htmlEntities(mxResources.get("tryOpeningViaThisPage"))+"</a>")}else f.code==App.ERROR_TIMEOUT?a=mxUtils.htmlEntities(mxResources.get("timeout")):f.code==App.ERROR_BUSY?a=mxUtils.htmlEntities(mxResources.get("busy")):null!=f.message?a=mxUtils.htmlEntities(f.message):
null!=f.response&&null!=f.response.error&&(a=mxUtils.htmlEntities(f.response.error));this.showError(b,a,e,d,h)}else null!=d&&d()};EditorUi.prototype.showError=function(a,b,d,e,n,g,q){a=new ErrorDialog(this,a,b,d,e,n,g,q);this.showDialog(a.container,340,150,!0,!1);a.init()};EditorUi.prototype.alert=function(a,b){var c=new ErrorDialog(this,null,a,mxResources.get("ok"),b);this.showDialog(c.container,340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(a,b,d,e,n){var c=null!=this.spinner&&null!=
this.spinner.pause?this.spinner.pause():function(){};this.showDialog((new ConfirmDialog(this,a,function(){c();null!=b&&b()},function(){c();null!=d&&d()},e,n)).container,340,90,!0,!1)};EditorUi.prototype.setCurrentFile=function(a){this.currentFile=a};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isDiagramEmpty=function(){var a=this.editor.graph.getModel();return 1==a.getChildCount(a.root)&&0==a.getChildCount(a.getChildAt(a.root,0))};EditorUi.prototype.isExportToCanvas=
function(){return mxClient.IS_CHROMEAPP||!this.editor.graph.mathEnabled&&this.useCanvasForExport};EditorUi.prototype.createSvgDataUri=function(a){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(a)))};EditorUi.prototype.createImageDataUri=function(a,b,d){var c=a.toDataURL("image/"+d);if(6>=c.length||c==a.cloneNode(!1).toDataURL("image/"+d))throw{message:"Invalid image"};null!=b&&(c=this.writeGraphModelToPng(c,"zTXt","mxGraphModel",atob(this.editor.graph.compress(b))));return c};
EditorUi.prototype.saveCanvas=function(a,b,d){var c="jpeg"==d?"jpg":d,f=this.getBaseFilename()+"."+c;a=this.createImageDataUri(a,b,d);this.saveData(f,c,a.substring(a.lastIndexOf(",")+1),"image/"+d,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode&&!mxClient.IS_QUIRKS||this.isOfflineApp()||mxClient.IS_IOS};
EditorUi.prototype.doSaveLocalFile=function(a,b,d,e,n){if(window.Blob&&navigator.msSaveOrOpenBlob)a=e?this.base64ToBlob(a,d):new Blob([a],{type:d}),navigator.msSaveOrOpenBlob(a,b);else if(mxClient.IS_IE)d=window.open("about:blank","_blank"),null==d?mxUtils.popup(a,!0):(d.document.write(a),d.document.close(),d.document.execCommand("SaveAs",!0,b),d.close());else if(mxClient.IS_IOS)b=new TextareaDialog(this,b+":",a,null,null,mxResources.get("close")),b.textarea.style.width="600px",b.textarea.style.height=
"380px",this.showDialog(b.container,620,460,!0,!0),b.init(),document.execCommand("selectall",!1,null);else{var c=document.createElement("a"),f=!mxClient.IS_SF&&"undefined"!==typeof c.download;if(f||this.isOffline()){c.href=URL.createObjectURL(e?this.base64ToBlob(a,d):new Blob([a],{type:d}));f?c.download=b:c.setAttribute("target","_blank");document.body.appendChild(c);try{window.setTimeout(function(){URL.revokeObjectURL(c.href)},0),c.click(),c.parentNode.removeChild(c)}catch(k){}}else this.createEchoRequest(a,
b,d,e,n).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(a,b,d,e,n,g){a="xml="+encodeURIComponent(a);return new mxXmlRequest(SAVE_URL,a+(null!=d?"&mime="+d:"")+(null!=n?"&format="+n:"")+(null!=g?"&base64="+g:"")+(null!=b?"&filename="+encodeURIComponent(b):"")+(e?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";for(var c=atob(a),d=c.length,f=Math.ceil(d/1024),e=Array(f),q=0;q<f;++q){for(var k=1024*q,g=Math.min(k+1024,d),m=Array(g-k),l=0;k<g;++l,++k)m[l]=
c[k].charCodeAt(0);e[q]=new Uint8Array(m)}return new Blob(e,{type:b})};EditorUi.prototype.saveLocalFile=function(a,b,d,e,n,g){g=null!=g?g:!1;var c="vsdx"!=n&&(!mxClient.IS_IOS||!navigator.standalone);n=this.getServiceCount(g);b=new CreateDialog(this,b,mxUtils.bind(this,function(c,b){try{if("_blank"==b)if(null==d||"image/"!=d.substring(0,6)||"image/svg"==d.substring(0,9)&&!mxClient.IS_SVG){var f=window.open("about:blank");null==f?mxUtils.popup(a,!0):(f.document.write(mxUtils.htmlEntities(a,!1)),f.document.close())}else this.openInNewWindow(a,
d,e);else b==App.MODE_DEVICE?this.doSaveLocalFile(a,c,d,e):null!=c&&0<c.length&&this.pickFolder(b,mxUtils.bind(this,function(f){try{this.exportFile(a,c,d,e,b,f)}catch(x){this.handleError(x)}}))}catch(D){this.handleError(D)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,g,c,null,null,4<n?3:4,a,d,e);this.showDialog(b.container,380,4<n?390:270,!0,!0);b.init()};EditorUi.prototype.openInNewWindow=function(a,b,d){if(mxClient.IS_GC||mxClient.IS_EDGE||
11==document.documentMode||10==document.documentMode){var c=window.open("about:blank");null==c?mxUtils.popup(a,!0):(c.document.write('<html><img src="data:'+b+(d?";base64,"+a:";charset=utf8,"+encodeURIComponent(a))+'"/></html>'),c.document.close())}else c=window.open("data:"+b+(d?";base64,"+a:";charset=utf8,"+encodeURIComponent(a))),null==c&&mxUtils.popup(a,!0)};var b=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.addChromelessToolbarItems=function(a){if(this.isExportToCanvas()){this.exportDialog=
null;var c=a(mxUtils.bind(this,function(a){var b=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",b);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)b.apply(this);else{this.exportDialog=document.createElement("div");var d=c.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign=
"center";this.exportDialog.style.fontFamily="Helvetica,Arial";this.exportDialog.style.backgroundColor="#000000";this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,70);this.exportDialog.style.left=d.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";d=mxUtils.getCurrentStyle(this.editor.graph.container);
this.exportDialog.style.zIndex=d.zIndex;var f=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"#fff",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});f.spin(this.exportDialog);this.exportToCanvas(mxUtils.bind(this,function(a){f.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var c=this.createImageDataUri(a,null,"png");a=document.createElement("img");a.style.maxWidth="140px";a.style.maxHeight="140px";
a.style.cursor="pointer";a.setAttribute("title",mxResources.get("openInNewWindow"));a.setAttribute("border","0");a.setAttribute("src",c);this.exportDialog.appendChild(a);mxEvent.addListener(a,"click",mxUtils.bind(this,function(){this.openInNewWindow(c.substring(c.indexOf(",")+1),"image/png",!0);b.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(a){this.spinner.stop();this.handleError(a)}));mxEvent.addListener(this.editor.graph.container,"click",b);document.body.appendChild(this.exportDialog)}mxEvent.consume(a)}),
Editor.cameraLargeImage,mxResources.get("export"))}b.apply(this,arguments)};EditorUi.prototype.saveData=function(a,b,d,e,n){this.isLocalFileSave()?this.saveLocalFile(d,a,e,n,b):this.saveRequest(a,b,mxUtils.bind(this,function(a,c){return this.createEchoRequest(d,a,e,n,b,c)}),d,n,e)};EditorUi.prototype.saveRequest=function(a,b,d,e,n,g){var c=!mxClient.IS_IOS||!navigator.standalone,f=this.getServiceCount(!1);a=new CreateDialog(this,a,mxUtils.bind(this,function(a,c){if("_blank"==c||null!=a&&0<a.length){var f=
d("_blank"==c?null:a,c==App.MODE_DEVICE||null==c||"_blank"==c?"0":"1");null!=f&&(c==App.MODE_DEVICE||"_blank"==c?f.simulate(document,"_blank"):this.pickFolder(c,mxUtils.bind(this,function(d){g=null!=g?g:"pdf"==b?"application/pdf":"image/"+b;if(null!=e)try{this.exportFile(e,a,g,!0,c,d)}catch(u){this.handleError(u)}else this.spinner.spin(document.body,mxResources.get("saving"))&&f.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=f.getStatus()&&299>=f.getStatus())try{this.exportFile(f.getText(),
a,g,!0,c,d)}catch(u){this.handleError(u)}else this.handleError({message:mxResources.get("errorSavingFile")})}),function(a){this.spinner.stop();this.handleError(a)})})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,c,null,null,4<f?3:4,e,g,n);this.showDialog(a.container,380,4<f?390:270,!0,!0);a.init()};EditorUi.prototype.exportFile=function(a,b,d,e,n,g){};EditorUi.prototype.pickFolder=function(a,b,d){b(null)};EditorUi.prototype.exportSvg=
function(a,b,d,e,n,g,q,k,m){if(this.spinner.spin(document.body,mxResources.get("export"))){var c=this.editor.graph.isSelectionEmpty();d=null!=d?d:c;c=b?null:this.editor.graph.background;c==mxConstants.NONE&&(c=null);null==c&&0==b&&(c="#ffffff");var f=this.editor.graph.getSvg(c,a,q,k,null,d);e&&this.editor.graph.addSvgShadow(f);var h=this.getBaseFilename()+".svg",p=mxUtils.bind(this,function(a){this.spinner.stop();n&&a.setAttribute("content",this.getFileData(!0,null,null,null,d,m));var c='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'+
mxUtils.getXml(a);this.isLocalFileSave()||c.length<=MAX_REQUEST_SIZE?this.saveData(h,"svg",c,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(c)}))});this.convertMath(this.editor.graph,f,!1,mxUtils.bind(this,function(){g?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.convertImages(f,p,this.thumbImageCache)):p(f)}))}};EditorUi.prototype.addCheckbox=function(a,b,d,e,n,g){g=null!=g?g:!0;var c=
document.createElement("input");c.style.marginRight="8px";c.style.marginTop="16px";c.setAttribute("type","checkbox");d&&(c.setAttribute("checked","checked"),c.defaultChecked=!0);e&&c.setAttribute("disabled","disabled");g&&(a.appendChild(c),mxUtils.write(a,b),n||mxUtils.br(a));return c};EditorUi.prototype.addEditButton=function(a,b){var c=this.addCheckbox(a,mxResources.get("edit")+":",!0,null,!0);c.style.marginLeft="24px";var d=this.getCurrentFile(),f="";null!=d&&d.getMode()!=App.MODE_DEVICE&&d.getMode()!=
App.MODE_BROWSER&&(f=window.location.href);var e=document.createElement("select");e.style.width="120px";e.style.marginLeft="8px";e.style.marginRight="10px";e.className="geBtn";d=document.createElement("option");d.setAttribute("value","blank");mxUtils.write(d,mxResources.get("makeCopy"));e.appendChild(d);d=document.createElement("option");d.setAttribute("value","custom");mxUtils.write(d,mxResources.get("custom")+"...");e.appendChild(d);a.appendChild(e);mxEvent.addListener(e,"change",mxUtils.bind(this,
function(){if("custom"==e.value){var a=new FilenameDialog(this,f,mxResources.get("ok"),function(a){null!=a?f=a:e.value="blank"},mxResources.get("url"),null,null,null,null,function(){e.value="blank"});this.showDialog(a.container,300,80,!0,!1);a.init()}}));mxEvent.addListener(c,"change",mxUtils.bind(this,function(){c.checked&&(null==b||b.checked)?e.removeAttribute("disabled"):e.setAttribute("disabled","disabled")}));mxUtils.br(a);return{getLink:function(){return c.checked?"blank"===e.value?"_blank":
f:null},getEditInput:function(){return c},getEditSelect:function(){return e}}};EditorUi.prototype.addLinkSection=function(a,b){function c(){g.innerHTML='<div style="width:100%;height:100%;box-sizing:border-box;'+(null!=e&&e!=mxConstants.NONE?"border:1px solid black;background-color:"+e:"background-position:center center;background-repeat:no-repeat;background-image:url('"+Dialog.prototype.closeImage+"')")+';"></div>'}mxUtils.write(a,mxResources.get("links")+":");var d=document.createElement("select");
d.style.width="100px";d.style.marginLeft="8px";d.style.marginRight="10px";d.className="geBtn";var f=document.createElement("option");f.setAttribute("value","auto");mxUtils.write(f,mxResources.get("automatic"));d.appendChild(f);f=document.createElement("option");f.setAttribute("value","blank");mxUtils.write(f,mxResources.get("openInNewWindow"));d.appendChild(f);f=document.createElement("option");f.setAttribute("value","self");mxUtils.write(f,mxResources.get("openInThisWindow"));d.appendChild(f);b&&
(f=document.createElement("option"),f.setAttribute("value","frame"),mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),d.appendChild(f));a.appendChild(d);mxUtils.write(a,mxResources.get("borderColor")+":");var e="#0000ff",g=null,g=mxUtils.button("",mxUtils.bind(this,function(a){this.pickColor(e||"none",function(a){e=a;c()});mxEvent.consume(a)}));c();g.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";g.style.marginLeft="4px";g.style.height="22px";g.style.width=
"22px";g.style.position="relative";g.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";g.className="geColorBtn";a.appendChild(g);mxUtils.br(a);return{getColor:function(){return e},getTarget:function(){return d.value},focus:function(){d.focus()}}};EditorUi.prototype.createLink=function(a,b,d,e,g,m,q,k){var c=this.getCurrentFile(),f=[];e&&(f.push("lightbox=1"),"auto"!=a&&f.push("target="+a),null!=b&&b!=mxConstants.NONE&&f.push("highlight="+("#"==b.charAt(0)?b.substring(1):b)),
null!=g&&0<g.length&&f.push("edit="+encodeURIComponent(g)),m&&f.push("layers=1"),this.editor.graph.foldingEnabled&&f.push("nav=1"));if(d&&null!=this.pages&&null!=this.currentPage)for(a=0;a<this.pages.length;a++)if(this.pages[a]==this.currentPage){0<a&&f.push("page="+a);break}a=!0;null!=q?d="#U"+encodeURIComponent(q):(c=this.getCurrentFile(),k||null==c||c.constructor!=window.DriveFile?d="#R"+encodeURIComponent(d?this.getFileData(!0,null,null,null,null,null,null,!0):this.editor.graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):
(d="#"+c.getHash(),a=!1));a&&null!=c&&null!=c.getTitle()&&c.getTitle()!=this.defaultFilename&&f.push("title="+encodeURIComponent(c.getTitle()));return(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?"https://www.draw.io/":"https://"+location.host+"/")+(0<f.length?"?"+f.join("&"):"")+d};EditorUi.prototype.createHtml=function(a,b,d,e,g,m,q,k,l,t,r){var c=this.getBasenames(),f={};""!=g&&g!=mxConstants.NONE&&(f.highlight=g);"auto"!==e&&(f.target=e);l||(f.lightbox=!1);f.nav=this.editor.graph.foldingEnabled;
d=parseInt(d);isNaN(d)||100==d||(f.zoom=d/100);d=[];q&&(d.push("pages"),f.resize=!0,null!=this.pages&&null!=this.currentPage&&(f.page=mxUtils.indexOf(this.pages,this.currentPage)));b&&(d.push("zoom"),f.resize=!0);k&&d.push("layers");0<d.length&&(l&&d.push("lightbox"),f.toolbar=d.join(" "));null!=t&&0<t.length&&(f.edit=t);null!=a?f.url=a:f.xml=this.getFileData(!0,null,null,null,null,!q);b='<div class="mxgraph" style="'+(m?"max-width:100%;":"")+(""!=d?"border:1px solid transparent;":"")+'" data-mxgraph="'+
mxUtils.htmlEntities(JSON.stringify(f))+'"></div>';c=0<c.length?"s="+c.join(";"):"";a=null!=a?"fetch="+encodeURIComponent(a):"";r(b,'<script type="text/javascript" src="'+(0<c.length||0<a.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1&"+c:"https://www.draw.io/embed2.js?"+c)+"&"+a:"1"==urlParams.dev?"https://test.draw.io/js/viewer.min.js":"https://www.draw.io/js/viewer.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(a,b,d,e){var c=document.createElement("div");
c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("html"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";c.appendChild(f);var h=document.createElement("div");h.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var k=document.createElement("input");k.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";k.setAttribute("value","url");k.setAttribute("type","radio");k.setAttribute("name",
"type-embedhtmldialog");f=k.cloneNode(!0);f.setAttribute("value","copy");h.appendChild(f);var p=document.createElement("span");mxUtils.write(p,mxResources.get("includeCopyOfMyDiagram"));h.appendChild(p);mxUtils.br(h);h.appendChild(k);p=document.createElement("span");mxUtils.write(p,mxResources.get("publicDiagramUrl"));h.appendChild(p);var g=this.getCurrentFile();null==d&&null!=g&&g.constructor==window.DriveFile&&(p=document.createElement("a"),p.style.paddingLeft="12px",p.style.color="gray",p.setAttribute("href",
"javascript:void(0);"),mxUtils.write(p,mxResources.get("share")),h.appendChild(p),mxEvent.addListener(p,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(g.getId())})));f.setAttribute("checked","checked");null==d&&k.setAttribute("disabled","disabled");c.appendChild(h);var m=this.addLinkSection(c),l=this.addCheckbox(c,mxResources.get("zoom"),!0,null,!0);mxUtils.write(c,":");var r=document.createElement("input");r.setAttribute("type","text");r.style.marginRight="16px";
r.style.width="60px";r.style.marginLeft="4px";r.style.marginRight="12px";r.value="100%";c.appendChild(r);var B=this.addCheckbox(c,mxResources.get("fit"),!0),h=null!=this.pages&&1<this.pages.length,A=A=this.addCheckbox(c,mxResources.get("allPages"),h,!h),y=this.addCheckbox(c,mxResources.get("layers"),!0),C=this.addCheckbox(c,mxResources.get("lightbox"),!0),F=this.addEditButton(c,C),z=F.getEditInput();z.style.marginBottom="16px";mxEvent.addListener(C,"change",function(){C.checked?z.removeAttribute("disabled"):
z.setAttribute("disabled","disabled");z.checked&&C.checked?F.getEditSelect().removeAttribute("disabled"):F.getEditSelect().setAttribute("disabled","disabled")});a=new CustomDialog(this,c,mxUtils.bind(this,function(){e(k.checked?d:null,l.checked,r.value,m.getTarget(),m.getColor(),B.checked,A.checked,y.checked,C.checked,F.getLink())}),null,a,b);this.showDialog(a.container,340,360,!0,!0);f.focus()};EditorUi.prototype.showPublishLinkDialog=function(a,b,d,e,g,m){var c=document.createElement("div");c.style.whiteSpace=
"nowrap";var f=document.createElement("h3");mxUtils.write(f,a||mxResources.get("link"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";c.appendChild(f);var h=this.getCurrentFile(),f="https://desk.draw.io/support/solutions/articles/16000051941";a=0;if(null!=h&&h.constructor==window.DriveFile&&!b){a=80;var f="https://desk.draw.io/support/solutions/articles/16000039384",p=document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";
var n=document.createElement("div");n.style.whiteSpace="normal";mxUtils.write(n,mxResources.get("linkAccountRequired"));p.appendChild(n);n=mxUtils.button(mxResources.get("share"),mxUtils.bind(this,function(){this.drive.showPermissions(h.getId())}));n.style.marginTop="12px";n.className="geBtn";p.appendChild(n);c.appendChild(p);n=document.createElement("a");n.style.paddingLeft="12px";n.style.color="gray";n.style.fontSize="11px";n.setAttribute("href","javascript:void(0);");mxUtils.write(n,mxResources.get("check"));
p.appendChild(n);mxEvent.addListener(n,"click",mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&this.getPublicUrl(this.getCurrentFile(),mxUtils.bind(this,function(a){this.spinner.stop();a=new ErrorDialog(this,null,mxResources.get(null!=a?"diagramIsPublic":"diagramIsNotPublic"),mxResources.get("ok"));this.showDialog(a.container,300,80,!0,!1);a.init()}))}))}var l=null,r=null;if(null!=d||null!=e)a+=30,mxUtils.write(c,mxResources.get("width")+":"),l=document.createElement("input"),
l.setAttribute("type","text"),l.style.marginRight="16px",l.style.width="50px",l.style.marginLeft="6px",l.style.marginRight="16px",l.style.marginBottom="10px",l.value="100%",c.appendChild(l),mxUtils.write(c,mxResources.get("height")+":"),r=document.createElement("input"),r.setAttribute("type","text"),r.style.width="50px",r.style.marginLeft="6px",r.style.marginBottom="10px",r.value=e+"px",c.appendChild(r),mxUtils.br(c);var v=this.addLinkSection(c,m);d=null!=this.pages&&1<this.pages.length;var A=null;
if(null==h||h.constructor!=window.DriveFile||b)A=this.addCheckbox(c,mxResources.get("allPages"),d,!d);var y=this.addCheckbox(c,mxResources.get("lightbox"),!0),C=this.addEditButton(c,y),F=C.getEditInput(),z=this.addCheckbox(c,mxResources.get("layers"),!0);z.style.marginLeft=F.style.marginLeft;z.style.marginBottom="16px";z.style.marginTop="8px";mxEvent.addListener(y,"change",function(){y.checked?(z.removeAttribute("disabled"),F.removeAttribute("disabled")):(z.setAttribute("disabled","disabled"),F.setAttribute("disabled",
"disabled"));F.checked&&y.checked?C.getEditSelect().removeAttribute("disabled"):C.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,c,mxUtils.bind(this,function(){g(v.getTarget(),v.getColor(),null==A?!0:A.checked,y.checked,C.getLink(),z.checked,null!=l?l.value:null,null!=r?r.value:null)}),null,mxResources.get("create"),f);this.showDialog(b.container,340,246+a,!0,!0);null!=l?(l.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?l.select():document.execCommand("selectAll",
!1,null)):v.focus()};EditorUi.prototype.showRemoteExportDialog=function(a,b,d,e){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("image"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";c.appendChild(f);var h=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),k=e?null:this.addCheckbox(c,mxResources.get("includeCopyOfMyDiagram"),!0);null!=k&&
(k.style.marginBottom="16px");a=new CustomDialog(this,c,mxUtils.bind(this,function(){d(!h.checked,null!=k?k.checked:!1)}),null,a,b);this.showDialog(a.container,300,e?100:146,!0,!0)};EditorUi.prototype.showExportDialog=function(a,b,d,e,g,m,q,k){q=null!=q?q:!0;var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=this.editor.graph,h="jpeg"==k?170:280,p=document.createElement("h3");mxUtils.write(p,a);p.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";c.appendChild(p);
mxUtils.write(c,mxResources.get("zoom")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.marginRight="16px";n.style.width="60px";n.style.marginLeft="4px";n.style.marginRight="12px";n.value=this.lastExportZoom||"100%";c.appendChild(n);mxUtils.write(c,mxResources.get("borderWidth")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.marginRight="16px";l.style.width="60px";l.style.marginLeft="4px";l.value=this.lastExportBorder||"0";c.appendChild(l);
mxUtils.br(c);var r=this.addCheckbox(c,mxResources.get("transparentBackground"),f.background==mxConstants.NONE||null==f.background,null,null,"jpeg"!=k),v=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,f.isSelectionEmpty()),C=document.createElement("input");C.style.marginTop="16px";C.style.marginRight="8px";C.style.marginLeft="24px";C.setAttribute("disabled","disabled");C.setAttribute("type","checkbox");m&&(c.appendChild(C),mxUtils.write(c,mxResources.get("crop")),mxUtils.br(c),h+=26,mxEvent.addListener(v,
"change",function(){v.checked?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}));f.isSelectionEmpty()||(C.setAttribute("checked","checked"),C.defaultChecked=!0);var F=this.addCheckbox(c,mxResources.get("shadow"),f.shadowVisible),z=document.createElement("input");z.style.marginTop="16px";z.style.marginRight="8px";z.setAttribute("type","checkbox");!this.isOffline()&&this.canvasSupported||z.setAttribute("disabled","disabled");b&&(c.appendChild(z),mxUtils.write(c,mxResources.get("embedImages")),
mxUtils.br(c),h+=26);var G=this.addCheckbox(c,mxResources.get("includeCopyOfMyDiagram"),q,null,null,"jpeg"!=k),J=null!=this.pages&&1<this.pages.length,K=this.addCheckbox(c,J?mxResources.get("allPages"):"",J,!J,null,"jpeg"!=k);K.style.marginLeft="24px";K.style.marginBottom="16px";J||(K.style.visibility="hidden");mxEvent.addListener(G,"change",function(){G.checked&&J?K.removeAttribute("disabled"):K.setAttribute("disabled","disabled")});q&&J||K.setAttribute("disabled","disabled");a=new CustomDialog(this,
c,mxUtils.bind(this,function(){this.lastExportBorder=l.value;this.lastExportZoom=n.value;g(n.value,r.checked,!v.checked,F.checked,G.checked,z.checked,l.value,C.checked,!K.checked)}),null,d,e);this.showDialog(a.container,320,h,!0,!0);n.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?n.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(a,b,d,e,g){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=this.editor.graph;
if(null!=b){var h=document.createElement("h3");mxUtils.write(h,b);h.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";c.appendChild(h)}var p=this.addCheckbox(c,mxResources.get("fit"),!0),n=this.addCheckbox(c,mxResources.get("shadow"),f.shadowVisible&&e,!e),m=this.addCheckbox(c,d),l=this.addCheckbox(c,mxResources.get("lightbox"),!0),r=this.addEditButton(c,l),B=r.getEditInput(),A=1<f.model.getChildCount(f.model.getRoot()),y=this.addCheckbox(c,mxResources.get("layers"),A,
!A);y.style.marginLeft=B.style.marginLeft;y.style.marginBottom="12px";y.style.marginTop="8px";mxEvent.addListener(l,"change",function(){l.checked?(A&&y.removeAttribute("disabled"),B.removeAttribute("disabled")):(y.setAttribute("disabled","disabled"),B.setAttribute("disabled","disabled"));B.checked&&l.checked?r.getEditSelect().removeAttribute("disabled"):r.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,c,mxUtils.bind(this,function(){a(p.checked,n.checked,m.checked,l.checked,
r.getLink(),y.checked)}),null,mxResources.get("embed"),g);this.showDialog(b.container,280,280,!0,!0)};EditorUi.prototype.createEmbedImage=function(a,b,d,e,g,m,q,k){function c(c){var b=" ",h="";e&&(b=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('https://www.draw.io/?client=1&lightbox=1"+
(g?"&edit=_blank":"")+(m?"&layers=1":"")+"');}})(this);\"",h+="cursor:pointer;");a&&(h+="max-width:100%;");var k="";d&&(k=' width="'+Math.round(f.width)+'" height="'+Math.round(f.height)+'"');q('<img src="'+c+'"'+k+(""!=h?' style="'+h+'"':"")+b+"/>")}var f=this.editor.graph.getGraphBounds();if(this.isExportToCanvas())this.exportToCanvas(mxUtils.bind(this,function(a){var b=e?this.getFileData(!0):null;a=this.createImageDataUri(a,b,"png");c(a)}),null,null,null,mxUtils.bind(this,function(a){k({message:mxResources.get("unknownError")})}),
null,!0,d?2:1,null,b);else if(b=this.getFileData(!0),f.width*f.height<=MAX_AREA&&b.length<=MAX_REQUEST_SIZE){var h="";d&&(h="&w="+Math.round(2*f.width)+"&h="+Math.round(2*f.height));var p=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(e?"1":"0")+h+"&xml="+encodeURIComponent(b));p.send(mxUtils.bind(this,function(){200<=p.getStatus()&&299>=p.getStatus()?c("data:image/png;base64,"+p.getText()):k({message:mxResources.get("unknownError")})}))}else k({message:mxResources.get("drawingTooLarge")})};
EditorUi.prototype.createEmbedSvg=function(a,b,d,e,g,m,q){var c=this.editor.graph.getSvg(),f=c.getElementsByTagName("a");if(null!=f)for(var h=0;h<f.length;h++){var p=f[h].getAttribute("href");null!=p&&"#"==p.charAt(0)&&"_blank"==f[h].getAttribute("target")&&f[h].removeAttribute("target")}e&&c.setAttribute("content",this.getFileData(!0));b&&this.editor.graph.addSvgShadow(c);if(d){var n=" ",l="";e&&(n="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('https://www.draw.io/?client=1&lightbox=1"+
"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(a,b,d,e,n){null!=n&&(n=n.replace(/&/g,"&amp;"));a={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,xml:this.editor.graph.zapGremlins(a),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(a.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==n?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=n?' xmlns="http://www.w3.org/1999/xhtml">':
">")+"\n<head>\n"+(null==n?null!=d?"<title>"+mxUtils.htmlEntities(d)+"</title>\n":"":"<title>Draw.io Diagram</title>\n")+(null!=n?'<meta http-equiv="refresh" content="0;URL=\''+n+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(a))+'"></div>\n'+(null==n?'<script type="text/javascript" src="https://www.draw.io/js/viewer.min.js">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+
n+'" target="_blank"><img border="0" src="https://www.draw.io/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=function(a){a=this.validateFileData(a);this.pages=this.fileNode=this.currentPage=null;var c=null!=a&&0<a.length?mxUtils.parseXml(a).documentElement:null;a=null!=c?this.editor.extractGraphModel(c,!0):null;null!=a&&(c=a);if(null!=c&&"mxfile"==c.nodeName&&(a=c.getElementsByTagName("diagram"),"0"!=urlParams.pages||1<a.length||1==a.length&&a[0].hasAttribute("name"))){this.fileNode=
c;this.pages=[];for(c=0;c<a.length;c++){var b=new DiagramPage(a[c]);null==b.getName()&&b.setName(mxResources.get("pageWithNumber",[c+1]));this.pages.push(b)}this.currentPage=this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];c=this.currentPage.node}"0"!=urlParams.pages&&null==this.fileNode&&null!=c&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",
[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(c);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root)};EditorUi.prototype.getBaseFilename=function(){var a=this.getCurrentFile(),a=null!=a&&null!=a.getTitle()?a.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(a)||/(\.html)$/i.test(a)||/(\.svg)$/i.test(a))a=a.substring(0,a.lastIndexOf("."));return a};EditorUi.prototype.downloadFile=function(a,b,d,e,n,g){try{e=null!=e?e:this.editor.graph.isSelectionEmpty();var c=
this.getBaseFilename(),f=c+"."+a;if("xml"==a){var h='<?xml version="1.0" encoding="UTF-8"?>\n'+(b?mxUtils.getXml(this.editor.getGraphXml(e)):this.getFileData(!0,null,null,null,e,n));this.saveData(f,a,h,"text/xml")}else if("html"==a)h=this.getHtml2(this.getFileData(!0),this.editor.graph,c),this.saveData(f,a,h,"text/html");else if("svg"!=a&&"xmlsvg"!=a||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==a?f=c+".png":"jpeg"==a&&(f=c+".jpg"),this.saveRequest(f,a,mxUtils.bind(this,function(c,
b){try{var d=this.editor.graph.pageVisible;null!=g&&(this.editor.graph.pageVisible=g);var f=this.createDownloadRequest(c,a,e,b);this.editor.graph.pageVisible=d;return f}catch(F){this.handleError(F)}}));else{var p=null,m=mxUtils.bind(this,function(a){a.length<=MAX_REQUEST_SIZE?this.saveData(f,"svg",a,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(p)}))});if("svg"==a){var l=this.editor.graph.background;
l==mxConstants.NONE&&(l=null);var v=this.editor.graph.getSvg(l,null,null,null,null,e);d&&this.editor.graph.addSvgShadow(v);this.convertImages(v,mxUtils.bind(this,mxUtils.bind(this,function(a){this.spinner.stop();m('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'+mxUtils.getXml(a))})))}else f=c+".svg",p=this.getFileData(!1,!0,null,mxUtils.bind(this,function(a){this.spinner.stop();m(a)}),e)}}catch(B){this.handleError(B)}};
EditorUi.prototype.createDownloadRequest=function(a,b,d,e){var c=this.editor.graph.getGraphBounds();d=this.getFileData(!0,null,null,null,d,"xmlpng"!=b);var f="";if(c.width*c.height>MAX_AREA||d.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};c="0";if("xmlpng"==b&&(c="1",b="png",null!=this.pages&&null!=this.currentPage))for(var h=0;h<this.pages.length;h++)if(this.pages[h]==this.currentPage){f="&from="+h;break}return new mxXmlRequest(EXPORT_URL,"format="+b+f+"&base64="+e+"&embedXml="+
c+"&xml="+encodeURIComponent(d)+(null!=a?"&filename="+encodeURIComponent(a):""))};EditorUi.prototype.setMode=function(a,b){this.mode=a};EditorUi.prototype.fileLoaded=function(a){var c=!1;this.hideDialog();var b=this.getCurrentFile();this.setCurrentFile(null);null!=b&&(b.removeListener(this.descriptorChangedListener),b.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var d=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=b&&this.updateDocumentTitle();
this.editor.graph.model.clear();this.editor.undoManager.clear();null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fnameWrapper.style.display="none",this.fname.innerHTML="",this.fname.setAttribute("title",mxResources.get("rename")));this.updateUi();this.showSplash()});if(null!=a)try{this.setCurrentFile(a);a.addListener("descriptorChanged",this.descriptorChangedListener);a.addListener("contentChanged",this.descriptorChangedListener);a.open();
this.setGraphEnabled(!0);this.setMode(a.getMode());this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();null==a.realtime&&(a.isEditable()?this.editor.setStatus(""):this.editor.setStatus('<span class="geStatusAlert" style="margin-left:8px;">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</span>"));this.editor.chromeless?this.editor.graph.lightbox&&this.lightboxFit():(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&
window.focus());this.chromelessResize&&this.chromelessResize();this.editor.fireEvent(new mxEventObject("fileLoaded"));c=!0;if(EditorUi.enableLogging&&!this.isOffline()&&null!=a.getMode())try{"function"===typeof window.ga&&ga("send","event","File","open",a.getMode())}catch(n){}if(this.mode==a.getMode()&&a.getMode()!=App.MODE_DEVICE&&null!=a.getMode())try{this.addRecent({id:a.getHash(),title:a.getTitle(),mode:a.getMode()})}catch(n){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(n){}}catch(n){null!=
window.console&&console.log("error in fileLoaded:",a,n);if(EditorUi.enableLogging&&!this.isOffline())try{(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?v="+encodeURIComponent(EditorUi.VERSION)+"&msg=errorInFileLoaded:url:"+encodeURIComponent(window.location.href)+(null!=n&&null!=n.message?":err:"+encodeURIComponent(n.message):"")+(null!=n&&null!=n.stack?"&stack="+encodeURIComponent(n.stack):"")}catch(v){}this.handleError(n,mxResources.get("errorLoadingFile"),mxUtils.bind(this,
function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=b?b.constructor==DriveFile?this.loadFile(b.getHash()):this.fileLoaded(b):d()}))}else d();return c};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(a,b,d,e,n,g,q){};EditorUi.prototype.toggleScratchpad=function(){if(isLocalStorage||mxClient.IS_CHROMEAPP)null==this.scratchpad?this.getLocalData(".scratchpad",mxUtils.bind(this,
function(a){null==a&&(a=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,a,".scratchpad"))})):this.closeLibrary(this.scratchpad)};EditorUi.prototype.createLibraryDataFromImages=function(a){var c=mxUtils.createXmlDocument(),b=c.createElement("mxlibrary");mxUtils.setTextContent(b,JSON.stringify(a));c.appendChild(b);return mxUtils.getXml(c)};EditorUi.prototype.closeLibrary=function(a){null!=a&&(this.removeLibrarySidebar(a.getHash()),a.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(a.getHash()),
".scratchpad"==a.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(a){var c=this.sidebar.palettes[a];if(null!=c){for(var b=0;b<c.length;b++)c[b].parentNode.removeChild(c[b]);delete this.sidebar.palettes[a]}};EditorUi.prototype.repositionLibrary=function(a){var c=this.sidebar.container;if(null==a){var b=this.sidebar.palettes["L.scratchpad"];null==b&&(b=this.sidebar.palettes.search);null!=b&&(a=b[b.length-1].nextSibling)}a=null!=a?a:c.firstChild.nextSibling.nextSibling;
var b=c.lastChild,d=b.previousSibling;c.insertBefore(b,a);c.insertBefore(d,b)};EditorUi.prototype.loadLibrary=function(a){var c=mxUtils.parseXml(a.getData());if("mxlibrary"==c.documentElement.nodeName){var b=JSON.parse(mxUtils.getTextContent(c.documentElement));this.libraryLoaded(a,b,c.documentElement.getAttribute("title"))}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(a){return""};EditorUi.prototype.libraryLoaded=function(a,b,d){a.constructor!=
LocalLibrary&&mxSettings.addCustomLibrary(a.getHash());".scratchpad"==a.title&&(this.scratchpad=a);var c=this.sidebar.palettes[a.getHash()],c=null!=c?c[c.length-1].nextSibling:null;this.removeLibrarySidebar(a.getHash());var f=null,e=mxUtils.bind(this,function(c,b){if(0==c.length&&a.isEditable())null==f&&(f=document.createElement("div"),mxUtils.setPrefixedStyle(f.style,"borderRadius","6px"),f.style.border="3px dotted lightGray",f.style.textAlign="center",f.style.padding="8px",f.style.color="#B3B3B3",
mxUtils.write(f,mxResources.get("dragElementsHere"))),b.appendChild(f);else for(var d=0;d<c.length;d++){var e=c[d],h=e.data;if(null!=h){var h=this.convertDataUri(h),k="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==e.aspect&&(k+="aspect=fixed;");b.appendChild(this.sidebar.createVertexTemplate(k+"image="+h,e.w,e.h,"",e.title||"",!1,!1,!1))}else null!=e.xml&&(h=this.stringToCells(this.editor.graph.decompress(e.xml)),0<h.length&&b.appendChild(this.sidebar.createVertexTemplateFromCells(h,
e.w,e.h,e.title||"",!0,!1,!1)))}});d=null!=d&&0<d.length?d:a.getTitle();var h=this.sidebar.addPalette(a.getHash(),d,!0,mxUtils.bind(this,function(a){e(b,a)}));this.repositionLibrary(c);var k=h.parentNode.previousSibling;d=k.getAttribute("title");null!=d&&0<d.length&&".scratchpad"!=a.title&&k.setAttribute("title",this.getLibraryStorageHint(a)+"\n"+d);var g=document.createElement("div");g.style.position="absolute";g.style.right="0px";g.style.top="5px";mxClient.IS_QUIRKS||8==document.documentMode||(g.style.backgroundColor=
"inherit");k.style.position="relative";var m=document.createElement("img");m.setAttribute("src",Dialog.prototype.closeImage);m.setAttribute("title",mxResources.get("close"));m.setAttribute("align","top");m.setAttribute("border","0");m.className="geButton";m.style.marginRight="1px";m.style.marginTop="-1px";g.appendChild(m);var l=null;mxEvent.addListener(m,"click",mxUtils.bind(this,function(c){if(!mxEvent.isConsumed(c)){var b=mxUtils.bind(this,function(){this.closeLibrary(a)});null!=l?this.confirm(mxResources.get("allChangesLost"),
null,b,mxResources.get("cancel"),mxResources.get("discardChanges")):b();mxEvent.consume(c)}}));mxEvent.addListener(h,"mousemove",mxUtils.bind(this,function(a){mxEvent.getSource(a)==h?h.setAttribute("title",mxResources.get("libraryTooltip")):h.removeAttribute("title")}));if(a.isEditable()){var r=this.editor.graph,u=mxUtils.bind(this,function(c){this.showLibraryDialog(a.getTitle(),h,b,a,a.getMode());mxEvent.consume(c)}),B=mxUtils.bind(this,function(c){a.setModified(!0);a.isAutosave()?(null!=C&&null!=
C.parentNode&&C.parentNode.removeChild(C),C=m.cloneNode(!1),C.setAttribute("src",Editor.spinImage),C.setAttribute("title",mxResources.get("saving")),C.style.cursor="default",C.style.marginRight="2px",C.style.marginTop="-2px",g.insertBefore(C,g.firstChild),k.style.paddingRight=18*g.childNodes.length+"px",this.saveLibrary(a.getTitle(),b,a,a.getMode(),!0,!0,function(){null!=C&&null!=C.parentNode&&(C.parentNode.removeChild(C),k.style.paddingRight=18*g.childNodes.length+"px")})):null==l&&(l=m.cloneNode(!1),
l.setAttribute("src",IMAGE_PATH+"/download.png"),l.setAttribute("title",mxResources.get("save")),g.insertBefore(l,g.firstChild),mxEvent.addListener(l,"click",mxUtils.bind(this,function(c){this.saveLibrary(a.getTitle(),b,a,a.getMode(),a.constructor==LocalLibrary,!0,function(){null==l||a.isModified()||(k.style.paddingRight=18*g.childNodes.length+"px",l.parentNode.removeChild(l),l=null)});mxEvent.consume(c)})),k.style.paddingRight=18*g.childNodes.length+"px")}),A=mxUtils.bind(this,function(a,c,d,e){a=
r.cloneCells(mxUtils.sortCells(r.model.getTopmostCells(a)));for(var k=0;k<a.length;k++){var p=r.getCellGeometry(a[k]);null!=p&&p.translate(-c.x,-c.y)}h.appendChild(this.sidebar.createVertexTemplateFromCells(a,c.width,c.height,e||"",!0,!1,!1));a={xml:this.editor.graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(a))),w:c.width,h:c.height};null!=e&&(a.title=e);b.push(a);B(d);null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null)}),y=mxUtils.bind(this,function(a){if(r.isSelectionEmpty())r.getRubberband().isActive()?
(r.getRubberband().execute(a),r.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var c=r.getSelectionCells(),b=r.view.getBounds(c),d=r.view.scale;b.x/=d;b.y/=d;b.width/=d;b.height/=d;b.x-=r.view.translate.x;b.y-=r.view.translate.y;A(c,b)}mxEvent.consume(a)});h.style.border="3px solid transparent";mxEvent.addGestureListeners(h,function(){},mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.panningManager&&null!=r.graphHandler.shape&&
(r.graphHandler.shape.node.style.visibility="hidden",null!=f?f.style.border="3px dotted rgb(254, 137, 12)":h.style.border="3px dotted rgb(254, 137, 12)",h.style.cursor="copy",r.panningManager.stop(),r.autoScroll=!1,null!=r.graphHandler.guide&&r.graphHandler.guide.setVisible(!1),null!=r.graphHandler.hint&&(r.graphHandler.hint.style.visibility="hidden"),mxEvent.consume(a))}),mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.panningManager&&null!=r.graphHandler&&(h.style.border="3px solid transparent",
null!=f&&(f.style.border="3px dotted lightGray"),h.style.cursor="default",this.sidebar.showTooltips=!0,r.panningManager.stop(),r.graphHandler.reset(),r.isMouseDown=!1,r.autoScroll=!0,y(a),mxEvent.consume(a))}));mxEvent.addListener(h,"mouseleave",mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.graphHandler.shape&&(r.graphHandler.shape.node.style.visibility="visible",h.style.border="3px solid transparent",h.style.cursor="",r.autoScroll=!0,null!=r.graphHandler.guide&&r.graphHandler.guide.setVisible(!0),
null!=r.graphHandler.hint&&(r.graphHandler.hint.style.visibility="visible"),null!=f&&(f.style.border="3px dotted lightGray"))}));Graph.fileSupport&&(mxEvent.addListener(h,"dragover",mxUtils.bind(this,function(a){null!=f?f.style.border="3px dotted rgb(254, 137, 12)":h.style.border="3px dotted rgb(254, 137, 12)";a.dataTransfer.dropEffect="copy";h.style.cursor="copy";this.sidebar.hideTooltip();a.stopPropagation();a.preventDefault()})),mxEvent.addListener(h,"drop",mxUtils.bind(this,function(a){h.style.border=
"3px solid transparent";h.style.cursor="";null!=f&&(f.style.border="3px dotted lightGray");0<a.dataTransfer.files.length&&this.importFiles(a.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(c,d,k,p,n,q,g,m,l){if(null!=c&&"image/"==d.substring(0,6))c="shape=image;verticalLabelPosition=bottom;verticalAlign=top;aspect=fixed;image="+this.convertDataUri(c),c=[new mxCell("",new mxGeometry(0,0,n,q),c)],c[0].vertex=!0,A(c,new mxRectangle(0,0,n,q),a,mxEvent.isAltDown(a)?null:g.substring(0,
g.lastIndexOf(".")).replace(/_/g," ")),null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null);else{var t=!1,v=mxUtils.bind(this,function(c,d){if(null!=c&&"text/xml"==d){var k=mxUtils.parseXml(c);if("mxlibrary"==k.documentElement.nodeName)try{var p=JSON.parse(mxUtils.getTextContent(k.documentElement));e(p,h);b=b.concat(p);B(a);this.spinner.stop();t=!0}catch(T){}else if("mxfile"==k.documentElement.nodeName)try{for(var n=k.documentElement.getElementsByTagName("diagram"),k=0;k<
n.length;k++){var p=mxUtils.getTextContent(n[k]),q=this.stringToCells(this.editor.graph.decompress(p)),g=this.editor.graph.getBoundingBoxFromGeometry(q);A(q,new mxRectangle(0,0,g.width,g.height),a)}t=!0}catch(T){null!=window.console&&console.log("error in drop handler:",T)}}t||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null)});!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,
g)&&null!=l?this.parseFile(l,mxUtils.bind(this,function(a){4==a.readyState&&(this.spinner.stop(),200<=a.status&&299>=a.status?v(a.responseText,"text/xml"):this.handleError({message:mxResources.get(413==a.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):v(c,d)}}));a.stopPropagation();a.preventDefault()})),mxEvent.addListener(h,"dragleave",function(a){null!=f?f.style.border="3px dotted lightGray":(h.style.border="3px solid transparent",h.style.cursor="");a.stopPropagation();
a.preventDefault()}));m=m.cloneNode(!1);m.setAttribute("src",IMAGE_PATH+"/edit.gif");m.setAttribute("title",mxResources.get("edit"));g.insertBefore(m,g.firstChild);mxEvent.addListener(m,"click",u);mxEvent.addListener(h,"dblclick",function(a){mxEvent.getSource(a)==h&&u(a)});m=m.cloneNode(!1);m.setAttribute("src",Editor.plusImage);m.setAttribute("title",mxResources.get("add"));g.insertBefore(m,g.firstChild);this.isOffline()||".scratchpad"!=a.title||(d=document.createElement("span"),d.setAttribute("title",
mxResources.get("help")),d.style.cssText="color:gray;text-decoration:none;",d.className="geButton",mxUtils.write(d,"?"),mxEvent.addGestureListeners(d,mxUtils.bind(this,function(a){window.open("https://desk.draw.io/support/solutions/articles/16000042367");mxEvent.consume(a)})),g.insertBefore(d,g.firstChild));var C=null;mxEvent.addListener(m,"click",y)}k.appendChild(g);k.style.paddingRight=18*g.childNodes.length+"px"};"1"==urlParams.offline?EditorUi.prototype.footerHeight=4:("atlas"==uiTheme?("undefined"!==
typeof Toolbar&&(Toolbar.prototype.unselectedBackground=mxClient.IS_QUIRKS?"none":"linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38,EditorUi.prototype.hsplitPosition=188,Sidebar.prototype.thumbWidth=46,Sidebar.prototype.thumbHeight=46,Sidebar.prototype.thumbPadding=5<=document.documentMode?0:1,Sidebar.prototype.thumbBorder=
2):"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64),EditorUi.prototype.footerHeight=760<=screen.width&&240<=screen.height?46:0,EditorUi.prototype.createFooter=function(){var a=document.getElementById("geFooter");if(null!=a){a.style.visibility="visible";var b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("src",Dialog.prototype.closeImage);b.setAttribute("title",mxResources.get("hide"));a.appendChild(b);mxClient.IS_QUIRKS&&(b.style.position=
"relative",b.style.styleFloat="right",b.style.top="-30px",b.style.left="164px",b.style.cursor="pointer");mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideFooter()}))}return a});EditorUi.prototype.hideFooter=function(){var a=document.getElementById("geFooter");null!=a&&(this.footerHeight=0,a.style.display="none",this.refresh())};EditorUi.prototype.showImageDialog=function(a,b,d,e,n){a=new ImageDialog(this,a,b,d,e,n);this.showDialog(a.container,Graph.fileSupport?440:360,Graph.fileSupport?
200:90,!0,!0);a.init()};EditorUi.prototype.showBackgroundImageDialog=function(a){a=null!=a?a:mxUtils.bind(this,function(a){a=new ChangePageSetup(this,null,a);a.ignoreColor=!0;this.editor.graph.model.execute(a)});var c=new BackgroundImageDialog(this,mxUtils.bind(this,function(c){a(c)}));this.showDialog(c.container,360,200,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(a,b,d,e,n){a=new LibraryDialog(this,a,b,d,e,n);this.showDialog(a.container,620,440,!0,!1,mxUtils.bind(this,function(a){a&&
null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));a.init()};EditorUi.prototype.createSidebarFooterContainer=function(){var a=this.createDiv("geSidebarContainer");a.style.position="absolute";a.style.overflow="hidden";a.style.borderWidth="3px";var b=document.createElement("a");b.setAttribute("href","javascript:void(0);");b.className="geTitle";b.style.height="100%";b.style.paddingTop="9px";mxUtils.write(b,mxResources.get("moreShapes")+"...");mxEvent.addListener(b,"click",mxUtils.bind(this,
function(a){this.actions.get("shapes").funct();mxEvent.consume(a)}));a.appendChild(b);return a};EditorUi.prototype.handleError=function(a,b,d){var c=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},f=null!=a&&null!=a.error?a.error:a;if(null!=f||null!=b){a=mxUtils.htmlEntities(mxResources.get("unknownError"));var e=mxResources.get("ok"),h=null;b=null!=b?b:mxResources.get("error");if(null!=f)if(null!=f.retry&&(e=mxResources.get("cancel"),h=function(){c();f.retry()}),"undefined"!=
typeof gapi&&"undefined"!=typeof gapi.drive&&"undefined"!=typeof gapi.drive.realtime&&f.type==gapi.drive.realtime.ErrorType.FORBIDDEN)a=mxUtils.htmlEntities(mxResources.get("forbidden"));else if(404==f.code||404==f.status||"undefined"!=typeof gapi&&"undefined"!=typeof gapi.drive&&"undefined"!=typeof gapi.drive.realtime&&f.type==gapi.drive.realtime.ErrorType.NOT_FOUND){a=mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied"));var k=window.location.hash;null!=k&&"#G"==k.substring(0,2)&&(k=k.substring(2),
a+=' <a href="https://drive.google.com/open?id='+k+'" target="_blank">'+mxUtils.htmlEntities(mxResources.get("tryOpeningViaThisPage"))+"</a>")}else f.code==App.ERROR_TIMEOUT?a=mxUtils.htmlEntities(mxResources.get("timeout")):f.code==App.ERROR_BUSY?a=mxUtils.htmlEntities(mxResources.get("busy")):null!=f.message?a=mxUtils.htmlEntities(f.message):null!=f.response&&null!=f.response.error&&(a=mxUtils.htmlEntities(f.response.error));this.showError(b,a,e,d,h)}else null!=d&&d()};EditorUi.prototype.showError=
function(a,b,d,e,n,g,q){a=new ErrorDialog(this,a,b,d,e,n,g,q);this.showDialog(a.container,340,150,!0,!1);a.init()};EditorUi.prototype.alert=function(a,b){var c=new ErrorDialog(this,null,a,mxResources.get("ok"),b);this.showDialog(c.container,340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(a,b,d,e,n){var c=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){};this.showDialog((new ConfirmDialog(this,a,function(){c();null!=b&&b()},function(){c();null!=d&&d()},e,n)).container,
340,90,!0,!1)};EditorUi.prototype.setCurrentFile=function(a){this.currentFile=a};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isDiagramEmpty=function(){var a=this.editor.graph.getModel();return 1==a.getChildCount(a.root)&&0==a.getChildCount(a.getChildAt(a.root,0))};EditorUi.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||!this.editor.graph.mathEnabled&&this.useCanvasForExport};EditorUi.prototype.createSvgDataUri=function(a){return"data:image/svg+xml;base64,"+
btoa(unescape(encodeURIComponent(a)))};EditorUi.prototype.createImageDataUri=function(a,b,d){var c=a.toDataURL("image/"+d);if(6>=c.length||c==a.cloneNode(!1).toDataURL("image/"+d))throw{message:"Invalid image"};null!=b&&(c=this.writeGraphModelToPng(c,"zTXt","mxGraphModel",atob(this.editor.graph.compress(b))));return c};EditorUi.prototype.saveCanvas=function(a,b,d){var c="jpeg"==d?"jpg":d,f=this.getBaseFilename()+"."+c;a=this.createImageDataUri(a,b,d);this.saveData(f,c,a.substring(a.lastIndexOf(",")+
1),"image/"+d,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode&&!mxClient.IS_QUIRKS||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.doSaveLocalFile=function(a,b,d,e,n){if(window.Blob&&navigator.msSaveOrOpenBlob)a=e?this.base64ToBlob(a,d):new Blob([a],{type:d}),navigator.msSaveOrOpenBlob(a,b);else if(mxClient.IS_IE)d=
window.open("about:blank","_blank"),null==d?mxUtils.popup(a,!0):(d.document.write(a),d.document.close(),d.document.execCommand("SaveAs",!0,b),d.close());else if(mxClient.IS_IOS)b=new TextareaDialog(this,b+":",a,null,null,mxResources.get("close")),b.textarea.style.width="600px",b.textarea.style.height="380px",this.showDialog(b.container,620,460,!0,!0),b.init(),document.execCommand("selectall",!1,null);else{var c=document.createElement("a"),f=!mxClient.IS_SF&&"undefined"!==typeof c.download;if(f||this.isOffline()){c.href=
URL.createObjectURL(e?this.base64ToBlob(a,d):new Blob([a],{type:d}));f?c.download=b:c.setAttribute("target","_blank");document.body.appendChild(c);try{window.setTimeout(function(){URL.revokeObjectURL(c.href)},0),c.click(),c.parentNode.removeChild(c)}catch(k){}}else this.createEchoRequest(a,b,d,e,n).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(a,b,d,e,n,g){a="xml="+encodeURIComponent(a);return new mxXmlRequest(SAVE_URL,a+(null!=d?"&mime="+d:"")+(null!=n?"&format="+n:
"")+(null!=g?"&base64="+g:"")+(null!=b?"&filename="+encodeURIComponent(b):"")+(e?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";for(var c=atob(a),d=c.length,f=Math.ceil(d/1024),e=Array(f),q=0;q<f;++q){for(var k=1024*q,g=Math.min(k+1024,d),m=Array(g-k),l=0;k<g;++l,++k)m[l]=c[k].charCodeAt(0);e[q]=new Uint8Array(m)}return new Blob(e,{type:b})};EditorUi.prototype.saveLocalFile=function(a,b,d,e,n,g){g=null!=g?g:!1;var c="vsdx"!=n&&(!mxClient.IS_IOS||!navigator.standalone);n=this.getServiceCount(g);
b=new CreateDialog(this,b,mxUtils.bind(this,function(c,b){try{if("_blank"==b)if(null==d||"image/"!=d.substring(0,6)||"image/svg"==d.substring(0,9)&&!mxClient.IS_SVG){var f=window.open("about:blank");null==f?mxUtils.popup(a,!0):(f.document.write(mxUtils.htmlEntities(a,!1)),f.document.close())}else this.openInNewWindow(a,d,e);else b==App.MODE_DEVICE?this.doSaveLocalFile(a,c,d,e):null!=c&&0<c.length&&this.pickFolder(b,mxUtils.bind(this,function(f){try{this.exportFile(a,c,d,e,b,f)}catch(x){this.handleError(x)}}))}catch(D){this.handleError(D)}}),
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,g,c,null,null,4<n?3:4,a,d,e);this.showDialog(b.container,380,4<n?390:270,!0,!0);b.init()};EditorUi.prototype.openInNewWindow=function(a,b,d){if(mxClient.IS_GC||mxClient.IS_EDGE||11==document.documentMode||10==document.documentMode){var c=window.open("about:blank");null==c?mxUtils.popup(a,!0):(c.document.write('<html><img src="data:'+b+(d?";base64,"+a:";charset=utf8,"+encodeURIComponent(a))+'"/></html>'),
c.document.close())}else c=window.open("data:"+b+(d?";base64,"+a:";charset=utf8,"+encodeURIComponent(a))),null==c&&mxUtils.popup(a,!0)};var b=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.addChromelessToolbarItems=function(a){if(this.isExportToCanvas()){this.exportDialog=null;var c=a(mxUtils.bind(this,function(a){var b=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",b);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),
this.exportDialog=null)});if(null!=this.exportDialog)b.apply(this);else{this.exportDialog=document.createElement("div");var d=c.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";this.exportDialog.style.fontFamily="Helvetica,Arial";this.exportDialog.style.backgroundColor="#000000";this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding=
"4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,70);this.exportDialog.style.left=d.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";d=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=d.zIndex;var f=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"#fff",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});f.spin(this.exportDialog);
this.exportToCanvas(mxUtils.bind(this,function(a){f.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var c=this.createImageDataUri(a,null,"png");a=document.createElement("img");a.style.maxWidth="140px";a.style.maxHeight="140px";a.style.cursor="pointer";a.setAttribute("title",mxResources.get("openInNewWindow"));a.setAttribute("border","0");a.setAttribute("src",c);this.exportDialog.appendChild(a);mxEvent.addListener(a,"click",mxUtils.bind(this,
function(){this.openInNewWindow(c.substring(c.indexOf(",")+1),"image/png",!0);b.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(a){this.spinner.stop();this.handleError(a)}));mxEvent.addListener(this.editor.graph.container,"click",b);document.body.appendChild(this.exportDialog)}mxEvent.consume(a)}),Editor.cameraLargeImage,mxResources.get("export"))}b.apply(this,arguments)};EditorUi.prototype.saveData=function(a,b,d,e,n){this.isLocalFileSave()?this.saveLocalFile(d,
a,e,n,b):this.saveRequest(a,b,mxUtils.bind(this,function(a,c){return this.createEchoRequest(d,a,e,n,b,c)}),d,n,e)};EditorUi.prototype.saveRequest=function(a,b,d,e,n,g){var c=!mxClient.IS_IOS||!navigator.standalone,f=this.getServiceCount(!1);a=new CreateDialog(this,a,mxUtils.bind(this,function(a,c){if("_blank"==c||null!=a&&0<a.length){var f=d("_blank"==c?null:a,c==App.MODE_DEVICE||null==c||"_blank"==c?"0":"1");null!=f&&(c==App.MODE_DEVICE||"_blank"==c?f.simulate(document,"_blank"):this.pickFolder(c,
mxUtils.bind(this,function(d){g=null!=g?g:"pdf"==b?"application/pdf":"image/"+b;if(null!=e)try{this.exportFile(e,a,g,!0,c,d)}catch(u){this.handleError(u)}else this.spinner.spin(document.body,mxResources.get("saving"))&&f.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=f.getStatus()&&299>=f.getStatus())try{this.exportFile(f.getText(),a,g,!0,c,d)}catch(u){this.handleError(u)}else this.handleError({message:mxResources.get("errorSavingFile")})}),function(a){this.spinner.stop();this.handleError(a)})})))}}),
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,c,null,null,4<f?3:4,e,g,n);this.showDialog(a.container,380,4<f?390:270,!0,!0);a.init()};EditorUi.prototype.exportFile=function(a,b,d,e,n,g){};EditorUi.prototype.pickFolder=function(a,b,d){b(null)};EditorUi.prototype.exportSvg=function(a,b,d,e,n,g,q,k,m){if(this.spinner.spin(document.body,mxResources.get("export"))){var c=this.editor.graph.isSelectionEmpty();d=null!=d?d:c;c=b?null:this.editor.graph.background;
c==mxConstants.NONE&&(c=null);null==c&&0==b&&(c="#ffffff");var f=this.editor.graph.getSvg(c,a,q,k,null,d);e&&this.editor.graph.addSvgShadow(f);var h=this.getBaseFilename()+".svg",p=mxUtils.bind(this,function(a){this.spinner.stop();n&&a.setAttribute("content",this.getFileData(!0,null,null,null,d,m));var c='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'+mxUtils.getXml(a);this.isLocalFileSave()||c.length<=MAX_REQUEST_SIZE?this.saveData(h,"svg",c,
"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(c)}))});this.convertMath(this.editor.graph,f,!1,mxUtils.bind(this,function(){g?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.convertImages(f,p,this.thumbImageCache)):p(f)}))}};EditorUi.prototype.addCheckbox=function(a,b,d,e,n,g){g=null!=g?g:!0;var c=document.createElement("input");c.style.marginRight="8px";c.style.marginTop="16px";c.setAttribute("type",
"checkbox");d&&(c.setAttribute("checked","checked"),c.defaultChecked=!0);e&&c.setAttribute("disabled","disabled");g&&(a.appendChild(c),mxUtils.write(a,b),n||mxUtils.br(a));return c};EditorUi.prototype.addEditButton=function(a,b){var c=this.addCheckbox(a,mxResources.get("edit")+":",!0,null,!0);c.style.marginLeft="24px";var d=this.getCurrentFile(),f="";null!=d&&d.getMode()!=App.MODE_DEVICE&&d.getMode()!=App.MODE_BROWSER&&(f=window.location.href);var e=document.createElement("select");e.style.width=
"120px";e.style.marginLeft="8px";e.style.marginRight="10px";e.className="geBtn";d=document.createElement("option");d.setAttribute("value","blank");mxUtils.write(d,mxResources.get("makeCopy"));e.appendChild(d);d=document.createElement("option");d.setAttribute("value","custom");mxUtils.write(d,mxResources.get("custom")+"...");e.appendChild(d);a.appendChild(e);mxEvent.addListener(e,"change",mxUtils.bind(this,function(){if("custom"==e.value){var a=new FilenameDialog(this,f,mxResources.get("ok"),function(a){null!=
a?f=a:e.value="blank"},mxResources.get("url"),null,null,null,null,function(){e.value="blank"});this.showDialog(a.container,300,80,!0,!1);a.init()}}));mxEvent.addListener(c,"change",mxUtils.bind(this,function(){c.checked&&(null==b||b.checked)?e.removeAttribute("disabled"):e.setAttribute("disabled","disabled")}));mxUtils.br(a);return{getLink:function(){return c.checked?"blank"===e.value?"_blank":f:null},getEditInput:function(){return c},getEditSelect:function(){return e}}};EditorUi.prototype.addLinkSection=
function(a,b){function c(){g.innerHTML='<div style="width:100%;height:100%;box-sizing:border-box;'+(null!=e&&e!=mxConstants.NONE?"border:1px solid black;background-color:"+e:"background-position:center center;background-repeat:no-repeat;background-image:url('"+Dialog.prototype.closeImage+"')")+';"></div>'}mxUtils.write(a,mxResources.get("links")+":");var d=document.createElement("select");d.style.width="100px";d.style.marginLeft="8px";d.style.marginRight="10px";d.className="geBtn";var f=document.createElement("option");
f.setAttribute("value","auto");mxUtils.write(f,mxResources.get("automatic"));d.appendChild(f);f=document.createElement("option");f.setAttribute("value","blank");mxUtils.write(f,mxResources.get("openInNewWindow"));d.appendChild(f);f=document.createElement("option");f.setAttribute("value","self");mxUtils.write(f,mxResources.get("openInThisWindow"));d.appendChild(f);b&&(f=document.createElement("option"),f.setAttribute("value","frame"),mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+
")"),d.appendChild(f));a.appendChild(d);mxUtils.write(a,mxResources.get("borderColor")+":");var e="#0000ff",g=null,g=mxUtils.button("",mxUtils.bind(this,function(a){this.pickColor(e||"none",function(a){e=a;c()});mxEvent.consume(a)}));c();g.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";g.style.marginLeft="4px";g.style.height="22px";g.style.width="22px";g.style.position="relative";g.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";g.className="geColorBtn";a.appendChild(g);
mxUtils.br(a);return{getColor:function(){return e},getTarget:function(){return d.value},focus:function(){d.focus()}}};EditorUi.prototype.createLink=function(a,b,d,e,g,m,q,k){var c=this.getCurrentFile(),f=[];e&&(f.push("lightbox=1"),"auto"!=a&&f.push("target="+a),null!=b&&b!=mxConstants.NONE&&f.push("highlight="+("#"==b.charAt(0)?b.substring(1):b)),null!=g&&0<g.length&&f.push("edit="+encodeURIComponent(g)),m&&f.push("layers=1"),this.editor.graph.foldingEnabled&&f.push("nav=1"));if(d&&null!=this.pages&&
null!=this.currentPage)for(a=0;a<this.pages.length;a++)if(this.pages[a]==this.currentPage){0<a&&f.push("page="+a);break}a=!0;null!=q?d="#U"+encodeURIComponent(q):(c=this.getCurrentFile(),k||null==c||c.constructor!=window.DriveFile?d="#R"+encodeURIComponent(d?this.getFileData(!0,null,null,null,null,null,null,!0):this.editor.graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(d="#"+c.getHash(),a=!1));a&&null!=c&&null!=c.getTitle()&&c.getTitle()!=this.defaultFilename&&f.push("title="+encodeURIComponent(c.getTitle()));
return(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?"https://www.draw.io/":"https://"+location.host+"/")+(0<f.length?"?"+f.join("&"):"")+d};EditorUi.prototype.createHtml=function(a,b,d,e,g,m,q,k,l,t,r){this.getBasenames();var c={};""!=g&&g!=mxConstants.NONE&&(c.highlight=g);"auto"!==e&&(c.target=e);l||(c.lightbox=!1);c.nav=this.editor.graph.foldingEnabled;d=parseInt(d);isNaN(d)||100==d||(c.zoom=d/100);d=[];q&&(d.push("pages"),c.resize=!0,null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,
this.currentPage)));b&&(d.push("zoom"),c.resize=!0);k&&d.push("layers");0<d.length&&(l&&d.push("lightbox"),c.toolbar=d.join(" "));null!=t&&0<t.length&&(c.edit=t);null!=a?c.url=a:c.xml=this.getFileData(!0,null,null,null,null,!q);b='<div class="mxgraph" style="'+(m?"max-width:100%;":"")+(""!=d?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>';a=null!=a?"&fetch="+encodeURIComponent(a):"";r(b,'<script type="text/javascript" src="'+(0<a.length?("1"==
urlParams.dev?"https://test.draw.io/embed2.js?dev=1":"https://www.draw.io/embed2.js?")+a:"1"==urlParams.dev?"https://test.draw.io/js/viewer.min.js":"https://www.draw.io/js/viewer.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(a,b,d,e){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("html"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";c.appendChild(f);var h=
document.createElement("div");h.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var k=document.createElement("input");k.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";k.setAttribute("value","url");k.setAttribute("type","radio");k.setAttribute("name","type-embedhtmldialog");f=k.cloneNode(!0);f.setAttribute("value","copy");h.appendChild(f);var p=document.createElement("span");mxUtils.write(p,mxResources.get("includeCopyOfMyDiagram"));h.appendChild(p);
mxUtils.br(h);h.appendChild(k);p=document.createElement("span");mxUtils.write(p,mxResources.get("publicDiagramUrl"));h.appendChild(p);var g=this.getCurrentFile();null==d&&null!=g&&g.constructor==window.DriveFile&&(p=document.createElement("a"),p.style.paddingLeft="12px",p.style.color="gray",p.setAttribute("href","javascript:void(0);"),mxUtils.write(p,mxResources.get("share")),h.appendChild(p),mxEvent.addListener(p,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(g.getId())})));
f.setAttribute("checked","checked");null==d&&k.setAttribute("disabled","disabled");c.appendChild(h);var m=this.addLinkSection(c),l=this.addCheckbox(c,mxResources.get("zoom"),!0,null,!0);mxUtils.write(c,":");var r=document.createElement("input");r.setAttribute("type","text");r.style.marginRight="16px";r.style.width="60px";r.style.marginLeft="4px";r.style.marginRight="12px";r.value="100%";c.appendChild(r);var B=this.addCheckbox(c,mxResources.get("fit"),!0),h=null!=this.pages&&1<this.pages.length,A=
A=this.addCheckbox(c,mxResources.get("allPages"),h,!h),y=this.addCheckbox(c,mxResources.get("layers"),!0),C=this.addCheckbox(c,mxResources.get("lightbox"),!0),F=this.addEditButton(c,C),z=F.getEditInput();z.style.marginBottom="16px";mxEvent.addListener(C,"change",function(){C.checked?z.removeAttribute("disabled"):z.setAttribute("disabled","disabled");z.checked&&C.checked?F.getEditSelect().removeAttribute("disabled"):F.getEditSelect().setAttribute("disabled","disabled")});a=new CustomDialog(this,c,
mxUtils.bind(this,function(){e(k.checked?d:null,l.checked,r.value,m.getTarget(),m.getColor(),B.checked,A.checked,y.checked,C.checked,F.getLink())}),null,a,b);this.showDialog(a.container,340,360,!0,!0);f.focus()};EditorUi.prototype.showPublishLinkDialog=function(a,b,d,e,g,m){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,a||mxResources.get("link"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";c.appendChild(f);
var h=this.getCurrentFile(),f="https://desk.draw.io/support/solutions/articles/16000051941";a=0;if(null!=h&&h.constructor==window.DriveFile&&!b){a=80;var f="https://desk.draw.io/support/solutions/articles/16000039384",p=document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var n=document.createElement("div");n.style.whiteSpace="normal";mxUtils.write(n,mxResources.get("linkAccountRequired"));p.appendChild(n);
n=mxUtils.button(mxResources.get("share"),mxUtils.bind(this,function(){this.drive.showPermissions(h.getId())}));n.style.marginTop="12px";n.className="geBtn";p.appendChild(n);c.appendChild(p);n=document.createElement("a");n.style.paddingLeft="12px";n.style.color="gray";n.style.fontSize="11px";n.setAttribute("href","javascript:void(0);");mxUtils.write(n,mxResources.get("check"));p.appendChild(n);mxEvent.addListener(n,"click",mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&
this.getPublicUrl(this.getCurrentFile(),mxUtils.bind(this,function(a){this.spinner.stop();a=new ErrorDialog(this,null,mxResources.get(null!=a?"diagramIsPublic":"diagramIsNotPublic"),mxResources.get("ok"));this.showDialog(a.container,300,80,!0,!1);a.init()}))}))}var l=null,r=null;if(null!=d||null!=e)a+=30,mxUtils.write(c,mxResources.get("width")+":"),l=document.createElement("input"),l.setAttribute("type","text"),l.style.marginRight="16px",l.style.width="50px",l.style.marginLeft="6px",l.style.marginRight=
"16px",l.style.marginBottom="10px",l.value="100%",c.appendChild(l),mxUtils.write(c,mxResources.get("height")+":"),r=document.createElement("input"),r.setAttribute("type","text"),r.style.width="50px",r.style.marginLeft="6px",r.style.marginBottom="10px",r.value=e+"px",c.appendChild(r),mxUtils.br(c);var v=this.addLinkSection(c,m);d=null!=this.pages&&1<this.pages.length;var A=null;if(null==h||h.constructor!=window.DriveFile||b)A=this.addCheckbox(c,mxResources.get("allPages"),d,!d);var y=this.addCheckbox(c,
mxResources.get("lightbox"),!0),C=this.addEditButton(c,y),F=C.getEditInput(),z=this.addCheckbox(c,mxResources.get("layers"),!0);z.style.marginLeft=F.style.marginLeft;z.style.marginBottom="16px";z.style.marginTop="8px";mxEvent.addListener(y,"change",function(){y.checked?(z.removeAttribute("disabled"),F.removeAttribute("disabled")):(z.setAttribute("disabled","disabled"),F.setAttribute("disabled","disabled"));F.checked&&y.checked?C.getEditSelect().removeAttribute("disabled"):C.getEditSelect().setAttribute("disabled",
"disabled")});b=new CustomDialog(this,c,mxUtils.bind(this,function(){g(v.getTarget(),v.getColor(),null==A?!0:A.checked,y.checked,C.getLink(),z.checked,null!=l?l.value:null,null!=r?r.value:null)}),null,mxResources.get("create"),f);this.showDialog(b.container,340,246+a,!0,!0);null!=l?(l.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?l.select():document.execCommand("selectAll",!1,null)):v.focus()};EditorUi.prototype.showRemoteExportDialog=function(a,b,d,e){var c=document.createElement("div");
c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("image"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";c.appendChild(f);var h=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),k=e?null:this.addCheckbox(c,mxResources.get("includeCopyOfMyDiagram"),!0);null!=k&&(k.style.marginBottom="16px");a=new CustomDialog(this,c,mxUtils.bind(this,function(){d(!h.checked,null!=k?k.checked:!1)}),
null,a,b);this.showDialog(a.container,300,e?100:146,!0,!0)};EditorUi.prototype.showExportDialog=function(a,b,d,e,g,m,q,k){q=null!=q?q:!0;var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=this.editor.graph,h="jpeg"==k?170:280,p=document.createElement("h3");mxUtils.write(p,a);p.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";c.appendChild(p);mxUtils.write(c,mxResources.get("zoom")+":");var n=document.createElement("input");n.setAttribute("type","text");
n.style.marginRight="16px";n.style.width="60px";n.style.marginLeft="4px";n.style.marginRight="12px";n.value=this.lastExportZoom||"100%";c.appendChild(n);mxUtils.write(c,mxResources.get("borderWidth")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.marginRight="16px";l.style.width="60px";l.style.marginLeft="4px";l.value=this.lastExportBorder||"0";c.appendChild(l);mxUtils.br(c);var r=this.addCheckbox(c,mxResources.get("transparentBackground"),f.background==mxConstants.NONE||
null==f.background,null,null,"jpeg"!=k),v=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,f.isSelectionEmpty()),C=document.createElement("input");C.style.marginTop="16px";C.style.marginRight="8px";C.style.marginLeft="24px";C.setAttribute("disabled","disabled");C.setAttribute("type","checkbox");m&&(c.appendChild(C),mxUtils.write(c,mxResources.get("crop")),mxUtils.br(c),h+=26,mxEvent.addListener(v,"change",function(){v.checked?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}));
f.isSelectionEmpty()||(C.setAttribute("checked","checked"),C.defaultChecked=!0);var F=this.addCheckbox(c,mxResources.get("shadow"),f.shadowVisible),z=document.createElement("input");z.style.marginTop="16px";z.style.marginRight="8px";z.setAttribute("type","checkbox");!this.isOffline()&&this.canvasSupported||z.setAttribute("disabled","disabled");b&&(c.appendChild(z),mxUtils.write(c,mxResources.get("embedImages")),mxUtils.br(c),h+=26);var G=this.addCheckbox(c,mxResources.get("includeCopyOfMyDiagram"),
q,null,null,"jpeg"!=k),J=null!=this.pages&&1<this.pages.length,K=this.addCheckbox(c,J?mxResources.get("allPages"):"",J,!J,null,"jpeg"!=k);K.style.marginLeft="24px";K.style.marginBottom="16px";J||(K.style.visibility="hidden");mxEvent.addListener(G,"change",function(){G.checked&&J?K.removeAttribute("disabled"):K.setAttribute("disabled","disabled")});q&&J||K.setAttribute("disabled","disabled");a=new CustomDialog(this,c,mxUtils.bind(this,function(){this.lastExportBorder=l.value;this.lastExportZoom=n.value;
g(n.value,r.checked,!v.checked,F.checked,G.checked,z.checked,l.value,C.checked,!K.checked)}),null,d,e);this.showDialog(a.container,320,h,!0,!0);n.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?n.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(a,b,d,e,g){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=this.editor.graph;if(null!=b){var h=document.createElement("h3");mxUtils.write(h,b);h.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";
c.appendChild(h)}var p=this.addCheckbox(c,mxResources.get("fit"),!0),n=this.addCheckbox(c,mxResources.get("shadow"),f.shadowVisible&&e,!e),m=this.addCheckbox(c,d),l=this.addCheckbox(c,mxResources.get("lightbox"),!0),r=this.addEditButton(c,l),B=r.getEditInput(),A=1<f.model.getChildCount(f.model.getRoot()),y=this.addCheckbox(c,mxResources.get("layers"),A,!A);y.style.marginLeft=B.style.marginLeft;y.style.marginBottom="12px";y.style.marginTop="8px";mxEvent.addListener(l,"change",function(){l.checked?
(A&&y.removeAttribute("disabled"),B.removeAttribute("disabled")):(y.setAttribute("disabled","disabled"),B.setAttribute("disabled","disabled"));B.checked&&l.checked?r.getEditSelect().removeAttribute("disabled"):r.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,c,mxUtils.bind(this,function(){a(p.checked,n.checked,m.checked,l.checked,r.getLink(),y.checked)}),null,mxResources.get("embed"),g);this.showDialog(b.container,280,280,!0,!0)};EditorUi.prototype.createEmbedImage=
function(a,b,d,e,g,m,q,k){function c(c){var b=" ",h="";e&&(b=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('https://www.draw.io/?client=1&lightbox=1"+(g?"&edit=_blank":"")+(m?"&layers=1":"")+"');}})(this);\"",h+="cursor:pointer;");
a&&(h+="max-width:100%;");var k="";d&&(k=' width="'+Math.round(f.width)+'" height="'+Math.round(f.height)+'"');q('<img src="'+c+'"'+k+(""!=h?' style="'+h+'"':"")+b+"/>")}var f=this.editor.graph.getGraphBounds();if(this.isExportToCanvas())this.exportToCanvas(mxUtils.bind(this,function(a){var b=e?this.getFileData(!0):null;a=this.createImageDataUri(a,b,"png");c(a)}),null,null,null,mxUtils.bind(this,function(a){k({message:mxResources.get("unknownError")})}),null,!0,d?2:1,null,b);else if(b=this.getFileData(!0),
f.width*f.height<=MAX_AREA&&b.length<=MAX_REQUEST_SIZE){var h="";d&&(h="&w="+Math.round(2*f.width)+"&h="+Math.round(2*f.height));var p=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(e?"1":"0")+h+"&xml="+encodeURIComponent(b));p.send(mxUtils.bind(this,function(){200<=p.getStatus()&&299>=p.getStatus()?c("data:image/png;base64,"+p.getText()):k({message:mxResources.get("unknownError")})}))}else k({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(a,
b,d,e,g,m,q){var c=this.editor.graph.getSvg(),f=c.getElementsByTagName("a");if(null!=f)for(var h=0;h<f.length;h++){var p=f[h].getAttribute("href");null!=p&&"#"==p.charAt(0)&&"_blank"==f[h].getAttribute("target")&&f[h].removeAttribute("target")}e&&c.setAttribute("content",this.getFileData(!0));b&&this.editor.graph.addSvgShadow(c);if(d){var n=" ",l="";e&&(n="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('https://www.draw.io/?client=1&lightbox=1"+
(g?"&edit=_blank":"")+(m?"&layers=1":"")+"');}})(this);\"",l+="cursor:pointer;");a&&(l+="max-width:100%;");this.convertImages(c,mxUtils.bind(this,function(a){q('<img src="'+this.createSvgDataUri(mxUtils.getXml(a))+'"'+(""!=l?' style="'+l+'"':"")+n+"/>")}))}else l="",e&&(c.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('https://www.draw.io/?client=1&lightbox=1"+
(g?"&edit=_blank":"")+(m?"&layers=1":"")+"');}}})(this);"),l+="cursor:pointer;"),a&&(a=parseInt(c.getAttribute("width")),b=parseInt(c.getAttribute("height")),c.setAttribute("viewBox","0 0 "+a+" "+b),l+="max-width:100%;max-height:"+b+"px;",c.removeAttribute("height")),""!=l&&c.setAttribute("style",l),q(mxUtils.getXml(c))};EditorUi.prototype.timeSince=function(a){a=Math.floor((new Date-a)/1E3);var c=Math.floor(a/31536E3);if(1<c)return c+" "+mxResources.get("years");c=Math.floor(a/2592E3);if(1<c)return c+
" "+mxResources.get("months");c=Math.floor(a/86400);if(1<c)return c+" "+mxResources.get("days");c=Math.floor(a/3600);if(1<c)return c+" "+mxResources.get("hours");c=Math.floor(a/60);return 1<c?c+" "+mxResources.get("minutes"):1==c?c+" "+mxResources.get("minute"):null};EditorUi.prototype.convertMath=function(a,b,d,e){e()};EditorUi.prototype.decodeNodeIntoGraph=function(a,b){if(null!=a){var c=null;if("diagram"==a.nodeName)c=a;else if("mxfile"==a.nodeName){var d=a.getElementsByTagName("diagram");if(0<
@ -3019,8 +3019,8 @@ e.style.border="1px solid #d0d0d0";"bottom"==this.graphConfig["toolbar-position"
p=null),b.style.border=x)});mxEvent.addListener(document,"mousemove",function(a){for(a=mxEvent.getSource(a);null!=a;){if(a==b||a==e||a==p)return;a=a.parentNode}d()});mxEvent.addListener(document,"mouseleave",function(a){d()})});mxEvent.addListener(b,"mouseenter",f)};
GraphViewer.prototype.addClickHandler=function(a,b){a.linkPolicy=this.graphConfig.target||a.linkPolicy;a.addClickHandler(this.graphConfig.highlight,mxUtils.bind(this,function(e,d){if(null==d){var g=mxEvent.getSource(e);"a"==g.nodeName.toLowerCase()&&(d=g.getAttribute("href"))}null!=b?null==d||a.isExternalProtocol(d)||a.isBlankLink(d)||window.setTimeout(function(){b.destroy()},0):null!=d&&a.isPageLink(d)&&(g=d.indexOf(","),0<g&&(g=d.substring(g+1),this.selectPageById(g),mxEvent.consume(e)))}),mxUtils.bind(this,
function(a){null!=b||!this.lightboxClickEnabled||mxEvent.isTouchEvent(a)&&0!=this.toolbarItems.length||this.showLightbox()}))};
GraphViewer.prototype.showLightbox=function(){if("open"==this.graphConfig.lightbox||window.self!==window.top){var a;a="https://www.draw.io/?client=1&lightbox=1&close=1&edit=_blank&target=blank"+(this.layersEnabled?"&layers=1":"");if("undefined"!==typeof window.postMessage&&(null==document.documentMode||10<=document.documentMode)){var b=null,e=mxUtils.bind(this,function(a){"ready"==a.data&&a.source==b&&(b.postMessage(this.xml,"*"),mxEvent.removeListener(window,"message",e))});mxEvent.addListener(window,
"message",e);b=window.open(a)}else window.drawdata=this.xml,window.open(a)}else this.showLocalLightbox()};
GraphViewer.prototype.showLightbox=function(){if("open"==this.graphConfig.lightbox||window.self!==window.top){var a;a="https://www.draw.io/?client=1&lightbox=1&close=1&edit=_blank&target=blank"+(null!=this.graphConfig&&0!=this.graphConfig.nav?"&nav=1":"");a+=null!=this.graphConfig&&null!=this.graphConfig.highlight?"&highlight="+this.graphConfig.highlight.substring(1):"";a+=null!=this.currentPage?"&page="+this.currentPage:"";a+=this.layersEnabled?"&layers=1":"";if("undefined"!==typeof window.postMessage&&
(null==document.documentMode||10<=document.documentMode))if(null==this.lightboxWindow||this.lightboxWindow.closed){this.lightboxWindow=window.open(a);var b=mxUtils.bind(this,function(a){"ready"==a.data&&a.source==this.lightboxWindow&&(this.lightboxWindow.postMessage(this.xml,"*"),mxEvent.removeListener(window,"message",b))});mxEvent.addListener(window,"message",b)}else this.lightboxWindow.focus();else window.drawdata=this.xml,window.open(a)}else this.showLocalLightbox()};
GraphViewer.prototype.showLocalLightbox=function(){var a=mxUtils.getDocumentScrollOrigin(document),b=document.createElement("div");mxClient.IS_QUIRKS?(b.style.position="absolute",b.style.left=a.x+"px",b.style.top=a.y+"px",b.style.width=document.body.offsetWidth+"px",b.style.height=document.body.offsetHeight+"px"):b.style.cssText="position:fixed;top:0;left:0;bottom:0;right:0;";b.style.zIndex=this.lightboxZIndex;b.style.backgroundColor="#000000";mxUtils.setOpacity(b,70);document.body.appendChild(b);
var e=document.createElement("img");e.setAttribute("border","0");e.setAttribute("src",Editor.closeImage);mxClient.IS_QUIRKS?(e.style.position="absolute",e.style.right="32px",e.style.top=a.y+32+"px"):e.style.cssText="position:fixed;top:32px;right:32px;";e.style.cursor="pointer";mxEvent.addListener(e,"click",function(){d.destroy()});urlParams.pages="1";urlParams.page=this.currentPage;urlParams.nav=0!=this.graphConfig.nav?"1":"0";urlParams.layers=this.layersEnabled?"1":"0";if(null==document.documentMode||
10<=document.documentMode)Editor.prototype.editButtonLink=this.graphConfig.edit;EditorUi.prototype.updateActionStates=function(){};EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};Graph.prototype.shadowId="lightboxDropShadow";var d=new EditorUi(new Editor(!0),document.createElement("div"),!0);Graph.prototype.shadowId="dropShadow";d.refresh=function(){};mxEvent.addListener(b,"click",function(){d.destroy()});d.editor.editBlankUrl=this.editBlankUrl;

820
war/js/atlas.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -164,7 +164,7 @@ App.DROPBOX_APPKEY = 'libwls2fa9szdji';
/**
* Sets URL to load the Dropbox SDK from
*/
App.DROPBOX_URL = 'https://unpkg.com/dropbox@2.5.7/dist/Dropbox-sdk.min.js';
App.DROPBOX_URL = 'https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js';
/**
* Sets the delay for autosave in milliseconds. Default is 2000.

View file

@ -884,21 +884,6 @@
var js = 'https://www.draw.io/js/viewer.min.js';
var s = '';
// LATER: Merge common code with EmbedDialog
if (graph != null)
{
// Embed script only used if no redirect
if (redirect == null)
{
var s = this.getBasenames().join(';');
if (s.length > 0)
{
js = 'https://www.draw.io/embed2.js?s=' + s;
}
}
}
// Makes XHTML compatible
if (redirect != null)
{
@ -3516,12 +3501,11 @@
((tb != '') ? 'border:1px solid transparent;' : '') +
'" data-mxgraph="' + mxUtils.htmlEntities(JSON.stringify(data)) + '"></div>';
var sParam = (s.length > 0) ? 's=' + s.join(';') : '';
var fetchParam = (publicUrl != null) ? 'fetch=' + encodeURIComponent(publicUrl) : '';
var s2 = (sParam.length > 0 || fetchParam.length > 0) ?
var fetchParam = (publicUrl != null) ? '&fetch=' + encodeURIComponent(publicUrl) : '';
var s2 = (fetchParam.length > 0) ?
(((urlParams['dev'] == '1') ?
'https://test.draw.io/embed2.js?dev=1&' + sParam :
'https://www.draw.io/embed2.js?' + sParam)) + '&' + fetchParam :
'https://test.draw.io/embed2.js?dev=1' :
'https://www.draw.io/embed2.js?')) + fetchParam :
(((urlParams['dev'] == '1') ?
'https://test.draw.io/js/viewer.min.js' :
'https://www.draw.io/js/viewer.min.js'));

File diff suppressed because it is too large Load diff

View file

@ -1192,23 +1192,34 @@ GraphViewer.prototype.showLightbox = function()
if (this.graphConfig.lightbox == 'open' || window.self !== window.top)
{
var url = 'https://www.draw.io/?client=1&lightbox=1&close=1&edit=_blank&target=blank';
url += (this.graphConfig != null && this.graphConfig.nav != false) ? '&nav=1' : '';
url += (this.graphConfig != null && this.graphConfig.highlight != null) ?
'&highlight=' + this.graphConfig.highlight.substring(1) : '';
url += (this.currentPage != null) ? '&page=' + this.currentPage : '';
url += (this.layersEnabled) ? '&layers=1' : '';
if (typeof window.postMessage !== 'undefined' && (document.documentMode == null || document.documentMode >= 10))
{
var wnd = null;
var receive = mxUtils.bind(this, function(evt)
{
if (this.lightboxWindow != null && !this.lightboxWindow.closed)
{
if (evt.data == 'ready' && evt.source == wnd)
this.lightboxWindow.focus();
}
else
{
this.lightboxWindow = window.open(url);
var receive = mxUtils.bind(this, function(evt)
{
wnd.postMessage(this.xml, '*');
mxEvent.removeListener(window, 'message', receive);
}
});
mxEvent.addListener(window, 'message', receive);
wnd = window.open(url);
if (evt.data == 'ready' && evt.source == this.lightboxWindow)
{
this.lightboxWindow.postMessage(this.xml, '*');
mxEvent.removeListener(window, 'message', receive);
}
});
mxEvent.addListener(window, 'message', receive);
}
}
else
{

View file

@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+y.join(",")+"}";f=t;return l}}"function"!==typeof Date.prototy
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();"undefined"===typeof window.mxBasePath&&(window.mxBasePath="https://www.draw.io/mxgraph/");window.mxLoadStylesheets=window.mxLoadStylesheets||!1;window.mxLoadResources=window.mxLoadResources||!1;window.mxLanguage=window.mxLanguage||"en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.3",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
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||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.4",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT: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:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.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:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||
@ -1562,8 +1562,8 @@ shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyy
/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(d.masks[b]||b||d.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),c=!0);var h=c?"getUTC":"get",k=a[h+"Date"](),l=a[h+"Day"](),m=a[h+"Month"](),n=a[h+"FullYear"](),p=a[h+"Hours"](),r=a[h+"Minutes"](),q=a[h+"Seconds"](),h=a[h+"Milliseconds"](),t=c?0:a.getTimezoneOffset(),y={d:k,dd:g(k),ddd:d.i18n.dayNames[l],dddd:d.i18n.dayNames[l+7],m:m+1,mm:g(m+1),mmm:d.i18n.monthNames[m],mmmm:d.i18n.monthNames[m+
12],yy:String(n).slice(2),yyyy:n,h:p%12||12,hh:g(p%12||12),H:p,HH:g(p),M:r,MM:g(r),s:q,ss:g(q),l:g(h,3),L:g(99<h?Math.round(h/10):h),t:12>p?"a":"p",tt:12>p?"am":"pm",T:12>p?"A":"P",TT:12>p?"AM":"PM",Z:c?"UTC":(String(a).match(e)||[""]).pop().replace(f,""),o:(0<t?"-":"+")+g(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4),S:["th","st","nd","rd"][3<k%10?0:(10!=k%100-k%10)*k%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(a){return a in y?y[a]:a.slice(1,
a.length-1)})};
Graph.prototype.createLayersDialog=function(){var a=document.createElement("div");a.style.position="absolute";for(var b=this.getModel(),c=b.getChildCount(b.root),d=0;d<c;d++)(function(c){var d=document.createElement("div");d.style.overflow="hidden";d.style.textOverflow="ellipsis";d.style.padding="2px";d.style.whiteSpace="nowrap";var e=document.createElement("input");e.setAttribute("type","checkbox");b.isVisible(c)&&(e.setAttribute("checked","checked"),e.defaultChecked=!0);d.appendChild(e);var h=c.value||
mxResources.get("background")||"Background";d.setAttribute("title",h);mxUtils.write(d,h);a.appendChild(d);mxEvent.addListener(e,"click",function(){null!=e.getAttribute("checked")?e.removeAttribute("checked"):e.setAttribute("checked","checked");b.setVisible(c,e.checked)})})(b.getChildAt(b.root,d));return a};
Graph.prototype.createLayersDialog=function(){var a=document.createElement("div");a.style.position="absolute";for(var b=this.getModel(),c=b.getChildCount(b.root),d=0;d<c;d++)(function(c){var d=document.createElement("div");d.style.overflow="hidden";d.style.textOverflow="ellipsis";d.style.padding="2px";d.style.whiteSpace="nowrap";var e=document.createElement("input");e.style.display="inline-block";e.setAttribute("type","checkbox");b.isVisible(c)&&(e.setAttribute("checked","checked"),e.defaultChecked=
!0);d.appendChild(e);var h=c.value||mxResources.get("background")||"Background";d.setAttribute("title",h);mxUtils.write(d,h);a.appendChild(d);mxEvent.addListener(e,"click",function(){null!=e.getAttribute("checked")?e.removeAttribute("checked"):e.setAttribute("checked","checked");b.setVisible(c,e.checked)})})(b.getChildAt(b.root,d));return a};
Graph.prototype.replacePlaceholders=function(a,b){for(var c=[],d=0;match=this.placeholderPattern.exec(b);){var e=match[0];if(2<e.length&&"%label%"!=e&&"%tooltip%"!=e){var f=null;if(match.index>d&&"%"==b.charAt(match.index-1))f=e.substring(1);else{var g=e.substring(1,e.length-1);if(0>g.indexOf("{"))for(var h=a;null==f&&null!=h;)null!=h.value&&"object"==typeof h.value&&(f=h.hasAttribute(g)?null!=h.getAttribute(g)?h.getAttribute(g):"":null),h=this.model.getParent(h);null==f&&(f=this.getGlobalVariable(g))}c.push(b.substring(d,
match.index)+(null!=f?f:e));d=match.index+e.length}}c.push(b.substring(d));return c.join("")};Graph.prototype.selectCellsForConnectVertex=function(a,b,c){2==a.length&&this.model.isVertex(a[1])?(this.setSelectionCell(a[1]),null!=c&&(mxEvent.isTouchEvent(b)?c.update(c.getState(this.view.getState(a[1]))):c.reset()),this.scrollCellToVisible(a[1])):this.setSelectionCells(a)};
Graph.prototype.connectVertex=function(a,b,c,d,e,f){f=f?f:!1;var g=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(a.geometry.x,a.geometry.y);b==mxConstants.DIRECTION_NORTH?(g.x+=a.geometry.width/2,g.y-=c):b==mxConstants.DIRECTION_SOUTH?(g.x+=a.geometry.width/2,g.y+=a.geometry.height+c):(g.x=b==mxConstants.DIRECTION_WEST?g.x-c:g.x+(a.geometry.width+c),g.y+=a.geometry.height/2);c=this.view.getState(this.model.getParent(a));

View file

@ -1,205 +1,235 @@
(function(){function g(f){var n=null!=f.Text?f.Text:null!=f.Value?f.Value:f.Lane_0;null==n&&null!=f.State?null!=f.State.t&&(n=f.State):null==n&&null!=f.Note?null!=f.Note.t&&(n=f.Note):null==n&&null!=f.Title?null!=f.Title.t&&(n=f.Title):null!=f.t&&(n=f);null==n&&null!=f.TextAreas&&null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&null!=f.TextAreas.Text.Value.t&&(n=f.TextAreas.Text.Value);if(null!=n){if(null!=n.t)return n.t=n.t.replace(/</g,"&lt;"),n.t=n.t.replace(/>/g,"&gt;"),n.t;if(null!=n.Value&&
null!=n.Value.t)return n.Value.t=n.Value.t.replace(/</g,"&lt;"),n.Value.t=n.Value.t.replace(/>/g,"&gt;"),n.Value.t}return""}function Ka(f){return null!=f.Action?f.Action:f}function da(f){if(null!=f.Text){if(null!=f.Text.m)return f.Text.m}else if(null!=f.TextAreas){if(null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&null!=f.TextAreas.Text.Value.m)return f.TextAreas.Text.Value.m}else if(null!=f.m)return f.m;return null}function k(f){return D(f)+I(f)+J(f)+ba(f)+ea(f)+fa(f)+Ba(f)+ga(f)+ha(f)+Ga(f)}
function D(f){f=da(f);if(null!=f)for(var n=0;n<f.length;){var g=f[n];if("s"==g.n&&null!=g.v)return"fontSize="+Math.round(.6*g.v)+";";n++}return"fontSize=10;"}function I(f){f=da(f);if(null!=f)for(var g=0;g<f.length;){var l=f[g];if("c"==l.n&&null!=l.v)return f=l.v,"#"!=f.charAt(0)&&(f="#"+f),f=f.substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+f+";";g++}return""}function J(f){f=da(f);if(null!=f){var g=0,l=!1;if(null!=f)for(var d=0;!l&&d<f.length;){var a=f[d];"b"==a.n&&null!=a.v&&a.v&&(l=!0,g+=1);d++}l=
!1;if(null!=f)for(d=0;!l&&d<f.length;)a=f[d],"i"==a.n&&null!=a.v&&a.v&&(l=!0,g+=2),d++;l=!1;if(null!=f)for(d=0;!l&&d<f.length;)a=f[d],"u"==a.n&&null!=a.v&&a.v&&(l=!0,g+=4),d++;if(0<g)return"fontStyle="+g+";"}return""}function ba(f){f=da(f);if(null!=f)for(var g=0;g<f.length;){var l=f[g];if("a"==l.n&&null!=l.v)return"align="+l.v+";";g++}return"align=center;"}function ea(f){var g=da(f);if(null!=g)for(var l=0;l<g.length;){var d=g[l];if("il"==d.n){if(null!=d.v)return"spacingLeft="+.6*d.v+";"}else if("s"==
d.n&&"align=center;"!=ba(f)&&null!=d.v)return"spacingLeft="+.6*d.v+";";l++}return""}function fa(f){f=da(f);if(null!=f)for(var g=0;g<f.length;){var l=f[g];if("ir"==l.n&&null!=l.v)return"spacingRight="+l.v+";";g++}return""}function Ba(f){f=da(f);if(null!=f)for(var g=0;g<f.length;){var l=f[g];if("mt"==l.n&&null!=l.v)return"spacingTop="+l.v+";";g++}return""}function ga(f){f=da(f);if(null!=f)for(var g=0;g<f.length;){var l=f[g];if("mb"==l.n&&null!=l.v)return"spacingBottom="+l.v+";";g++}return""}function ha(f){return"number"===
typeof f.InsetMargin?"spacing="+parseInt(f.InsetMargin)+";":""}function Ga(f){return null!=f.Text_VAlign&&"string"===typeof f.Text_VAlign?"verticalAlign="+f.Text_VAlign+";":X(mxConstants.STYLE_VERTICAL_ALIGN,f.TextVAlign,"middle")}function m(f,g){return zb.includes(g.Class)?"Venn"==g.Class.substring(0,4)?X(mxConstants.STYLE_STROKECOLOR,f.FillColor.substring(0,7),"#FFFFFF"):"":0==f.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":X(mxConstants.STYLE_STROKECOLOR,f.LineColor.substring(0,7),"#000000")}
function t(f,g){var l="";Hb.includes(g.Class)||(l+=X(mxConstants.STYLE_OPACITY,f.Opacity,"100"));if("string"===typeof f.LineColor&&7<f.LineColor.length)var d="0x"+f.LineColor.substring(f.LineColor.length-2,f.LineColor.length),l=l+("strokeOpacity="+Math.round(parseInt(d)/2.55)+";");"string"===typeof f.FillColor&&7<f.FillColor.length&&(d="0x"+f.FillColor.substring(f.FillColor.length-2,f.FillColor.length),l+="fillOpacity="+Math.round(parseInt(d)/2.55)+";");return l}function Ab(f,g){if(null!=f.Rounding&&
!Ib.includes(g.Class)){if(0<f.Rounding)return"rounded=1;absoluteArcSize=1;arcSize="+.6*f.Rounding+";"}else if(null==f.Rounding&&Jb.includes(g.Class))return"rounded=1;absoluteArcSize=1;arcSize=8;";return""}function ub(f,g,l){return null!=f.Rotation&&(f=mxUtils.toDegree(parseFloat(f.Rotation)),"AdvancedSwimLaneBlockRotated"==g.Class?(f+=90,l.geometry.rotate90()):Kb.includes(g.Class)&&(f-=90,l.geometry.rotate90(),l.geometry.rotate90(),l.geometry.rotate90()),0!=f)?"rotation="+f+";":""}function u(f){return null!=
f.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function q(f,g){if(null!=f.FillColor&&!Lb.includes(g.Class))if("object"===typeof f.FillColor){if(null!=f.FillColor.cs&&1<f.FillColor.cs.length)return X(mxConstants.STYLE_FILLCOLOR,f.FillColor.cs[0].c.substring(0,7))+X(mxConstants.STYLE_GRADIENTCOLOR,f.FillColor.cs[1].c.substring(0,7))}else return"string"===typeof f.FillColor?X(mxConstants.STYLE_FILLCOLOR,f.FillColor.substring(0,7),"#FFFFFF"):X(mxConstants.STYLE_FILLCOLOR,"none");return""}function y(f){return"dashed"==
f.StrokeStyle?"dashed=1;":"dotted"==f.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==f.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dotdotdot"==f.StrokeStyle?"dashed=1;dashPattern=1 1;":""}function r(f){return X(mxConstants.STYLE_STROKEWIDTH,.6*parseFloat(f.LineWidth),"1")}function Xa(f,k){var l=Ka(k);if(null!=l){var d=La[l.Class]+";";null!=d&&(f.style+=d);d=null!=l.Properties?l.Properties:l;if(null!=d){f.value=g(d);var a=f.style,n=D(d)+I(d)+J(d)+ba(d,f)+ea(d)+fa(d)+Ba(d)+ga(d)+ha(d)+Ga(d)+m(d,
l)+t(d,l)+Ab(d,l)+ub(d,l,f)+(d.FlipX?"flipH=1;":"")+(d.FlipY?"flipV=1;":"")+u(d)+q(d,l)+y(d)+r(d);l="ImageSearchBlock2"==l.Class?"image="+d.URL+";":"";f.style=a+(n+l);if(f.edge){f.style+="rounded=1;arcSize=6;";if("diagonal"!=d.Shape)if(null!=d.ElbowPoints)for(f.geometry.points=[],l=0;l<d.ElbowPoints.length;l++)f.geometry.points.push(new mxPoint(Math.round(.6*d.ElbowPoints[l].x+0),Math.round(.6*d.ElbowPoints[l].y+0)));else"elbow"==d.Shape?f.style=null!=d.Endpoint1.Block&&null!=d.Endpoint1.Block?f.style+
"edgeStyle=orthogonalEdgeStyle;":f.style+"edgeStyle=elbowEdgeStyle;":null!=d.Endpoint1.Block&&null!=d.Endpoint1.Block&&(f.style+="edgeStyle=orthogonalEdgeStyle;","curve"==d.Shape&&(f.style+="curved=1;"));null!=d.Endpoint1.Style&&(f.style+="startArrow="+Ya[d.Endpoint1.Style]+";");null!=d.Endpoint2.Style&&(f.style+="endArrow="+Ya[d.Endpoint2.Style].replace(/startSize/g,"endSize")+";");Za(f,d.Endpoint1,!0);Za(f,d.Endpoint2,!1)}}}}function $a(f){var g=Ka(f).Properties.BoundingBox;null!=f.Class&&"AWS"===
f.Class.substring(0,3)&&(g.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*g.x+0),Math.round(.6*g.y+0),Math.round(.6*g.w),Math.round(.6*g.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;Xa(v,f);return v}function Ha(f,k,l){l=2*(parseFloat(f.Location)-.5);f=new mxCell(g(f),new mxGeometry(l,0,0,0),"text;html=1;resizable=0;labelBackgroundColor=#ffffff;");f.geometry.relative=!0;f.vertex=!0;k.insert(f);return k}function X(f,g,l,d){null!=g&&null!=d&&(g=d(g));return null!=g&&g!=l?f+"="+g+";":""}function Za(f,
g,l){null!=g&&null!=g.LinkX&&null!=g.LinkY&&(f.style+=(l?"exitX":"entryX")+"="+g.LinkX+";"+(l?"exitY":"entryY")+"="+g.LinkY+";"+(l?"exitPerimeter":"entryPerimeter")+"=0;")}function Aa(f,g,l,d,a,k,c,b){f=new mxCell("",new mxGeometry(f,g,0,0),"strokeColor=none;fillColor=none;");f.vertex=!0;c.insert(f);k=[f];l=sb.cloneCell(l);b.insertEdge(l,!1);f.insertEdge(l,!0);k.push(l);d.push(a.addCell(l,null,null,null,null))}function ia(f,g,l,d,a,k,c,b,m){f=new mxCell("",new mxGeometry(f,g,0,0),"strokeColor=none;fillColor=none;");
f.vertex=!0;m.insert(f);l=new mxCell("",new mxGeometry(l,d,0,0),"strokeColor=none;fillColor=none;");l.vertex=!0;m.insert(l);b=[l];a=sb.cloneCell(a);f.insertEdge(a,!0);l.insertEdge(a,!1);b.push(a);k.push(c.addCell(a,null,null,null,null))}function Mb(f,n,l){var d=Ka(f),a=d.Properties,X=a.BoundingBox,c=Math.round(.6*X.w),b=Math.round(.6*X.h),vb=Math.round(.6*X.x+0),wb=Math.round(.6*X.y+0);v=new mxCell("",new mxGeometry(vb,wb,c,b),"html=1;whiteSpace=wrap;");v.vertex=!0;switch(f.Class){case "BraceNoteBlock":var Cb=
!1;null!=a.BraceDirection&&"Right"==a.BraceDirection&&(Cb=!0);var Ma=null,Y=null;Cb?(Ma=new mxCell("",new mxGeometry(c-.125*b,0,.125*b,b),"shape=curlyBracket;rounded=1;"),Y=new mxCell("",new mxGeometry(0,0,c-.125*b,b),"strokeColor=none;fillColor=none;")):(Ma=new mxCell("",new mxGeometry(0,0,.125*b,b),"shape=curlyBracket;rounded=1;flipH=1;"),Y=new mxCell("",new mxGeometry(.125*b,0,c-.125*b,b),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=ub(a,d,v);Ma.vertex=
!0;v.insert(Ma);Ma.style+=m(a,d)+t(a,d)+u(a)+y(a)+r(a);Y.vertex=!0;Y.value=g(a);v.insert(Y);Y.style+=D(a)+I(a)+J(a)+ba(a,Y)+ea(a)+fa(a)+Ba(a)+ga(a)+ha(a)+Ga(a);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var da=0;null!=a.Lanes&&(da=a.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var Db=0,Ea=[],h=0;h<da;h++){var Eb=parseFloat(a.Lanes[h].p);Ea.push(new mxCell("",new mxGeometry(c*Db,0,c*Eb,b),"shape=swimlane;startSize=25;"));Ea[h].vertex=!0;v.insert(Ea[h]);Ea[h].value=
g(a["Lane_"+h]);Ea[h].style+=D(a["Lane_"+h])+I(a["Lane_"+h])+J(a["Lane_"+h])+ba(a["Lane_"+h],Ea[h])+ea(a["Lane_"+h])+fa(a["Lane_"+h])+Ba(a["Lane_"+h])+ga(a["Lane_"+h])+ha(a["Lane_"+h])+Ga(a["Lane_"+h])+m(a,d)+t(a,d)+Ab(a,d)+ub(a,d,Ea[h])+(a.FlipX?"flipH=1;":"")+(a.FlipY?"flipV=1;":"")+u(a)+q(a,d)+y(a)+r(a);Db+=Eb}break;case "AndroidDevice":if(null!=a.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var Fa=null,ab=null,bb=null;if("Tablet"==a.AndroidDeviceName||"Mini Tablet"==a.AndroidDeviceName)v.style+=
"shape=mxgraph.android.tab2;",Fa=new mxCell("",new mxGeometry(.112*c,.077*b,.77*c,.85*b),""),a.KeyboardShown&&(ab=new mxCell("",new mxGeometry(.112*c,.727*b,.77*c,.2*b),"shape=mxgraph.android.keyboard;")),a.FullScreen||(bb=new mxCell("",new mxGeometry(.112*c,.077*b,.77*c,.03*b),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*b+";"));else if("Large Phone"==a.AndroidDeviceName||"Phone"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",
Fa=new mxCell("",new mxGeometry(.04*c,.092*b,.92*c,.816*b),""),a.KeyboardShown&&(ab=new mxCell("",new mxGeometry(.04*c,.708*b,.92*c,.2*b),"shape=mxgraph.android.keyboard;")),a.FullScreen||(bb=new mxCell("",new mxGeometry(.04*c,.092*b,.92*c,.03*b),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*b+";"));Fa.vertex=!0;v.insert(Fa);"Dark"==a.Scheme?Fa.style+="fillColor=#111111;":"Light"==a.Scheme&&(Fa.style+="fillColor=#ffffff;");null!=ab&&(ab.vertex=
!0,v.insert(ab));null!=bb&&(bb.vertex=!0,v.insert(bb))}break;case "AndroidAlertDialog":var ja=new mxCell("",new mxGeometry(0,0,c,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ja.vertex=!0;v.insert(ja);var G=new mxCell("",new mxGeometry(0,25,c,10),"shape=line;strokeColor=#33B5E5;");G.vertex=!0;v.insert(G);var cb=new mxCell("",new mxGeometry(0,30,c,b-30),"strokeColor=none;fillColor=none;verticalAlign=top;");cb.vertex=!0;v.insert(cb);var L=new mxCell("",new mxGeometry(0,b-25,.5*c,25),"fillColor=none;");
L.vertex=!0;v.insert(L);var M=new mxCell("",new mxGeometry(.5*c,b-25,.5*c,25),"fillColor=none;");M.vertex=!0;v.insert(M);ja.value=g(a.DialogTitle);ja.style+=k(a.DialogTitle);cb.value=g(a.DialogText);cb.style+=k(a.DialogText);L.value=g(a.Button_0);L.style+=k(a.Button_0);M.value=g(a.Button_1);M.style+=k(a.Button_1);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",L.style+="strokeColor=#353535;",M.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",
L.style+="strokeColor=#E2E2E2;",M.style+="strokeColor=#E2E2E2;");break;case "AndroidDateDialog":case "AndroidTimeDialog":ja=new mxCell("",new mxGeometry(0,0,c,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ja.vertex=!0;v.insert(ja);ja.value=g(a.DialogTitle);ja.style+=k(a.DialogTitle);G=new mxCell("",new mxGeometry(0,25,c,10),"shape=line;strokeColor=#33B5E5;");G.vertex=!0;v.insert(G);L=new mxCell("",new mxGeometry(0,b-25,.5*c,25),"fillColor=none;");L.vertex=!0;v.insert(L);L.value=g(a.Button_0);
L.style+=k(a.Button_0);M=new mxCell("",new mxGeometry(.5*c,b-25,.5*c,25),"fillColor=none;");M.vertex=!0;v.insert(M);M.value=g(a.Button_1);M.style+=k(a.Button_1);var Na=new mxCell("",new mxGeometry(.5*c-4,41,8,4),"shape=triangle;direction=north;");Na.vertex=!0;v.insert(Na);var Oa=new mxCell("",new mxGeometry(.25*c-4,41,8,4),"shape=triangle;direction=north;");Oa.vertex=!0;v.insert(Oa);var Pa=new mxCell("",new mxGeometry(.75*c-4,41,8,4),"shape=triangle;direction=north;");Pa.vertex=!0;v.insert(Pa);var db=
new mxCell("",new mxGeometry(.375*c,50,.2*c,15),"strokeColor=none;fillColor=none;");db.vertex=!0;v.insert(db);db.value=g(a.Label_1);db.style+=k(a.Label_1);var eb=new mxCell("",new mxGeometry(.125*c,50,.2*c,15),"strokeColor=none;fillColor=none;");eb.vertex=!0;v.insert(eb);eb.value=g(a.Label_0);eb.style+=k(a.Label_0);var Qa=null;"AndroidDateDialog"==f.Class&&(Qa=new mxCell("",new mxGeometry(.625*c,50,.2*c,15),"strokeColor=none;fillColor=none;"),Qa.vertex=!0,v.insert(Qa),Qa.value=g(a.Label_2),Qa.style+=
k(a.Label_2));var ka=new mxCell("",new mxGeometry(.43*c,60,.14*c,10),"shape=line;strokeColor=#33B5E5;");ka.vertex=!0;v.insert(ka);var la=new mxCell("",new mxGeometry(.18*c,60,.14*c,10),"shape=line;strokeColor=#33B5E5;");la.vertex=!0;v.insert(la);var Ha=new mxCell("",new mxGeometry(.68*c,60,.14*c,10),"shape=line;strokeColor=#33B5E5;");Ha.vertex=!0;v.insert(Ha);var fb=new mxCell("",new mxGeometry(.375*c,65,.2*c,15),"strokeColor=none;fillColor=none;");fb.vertex=!0;v.insert(fb);fb.value=g(a.Label_4);
fb.style+=k(a.Label_4);var Ra=null;"AndroidTimeDialog"==f.Class&&(Ra=new mxCell("",new mxGeometry(.3*c,65,.1*c,15),"strokeColor=none;fillColor=none;"),Ra.vertex=!0,v.insert(Ra),Ra.value=g(a.Label_Colon),Ra.style+=k(a.Label_Colon));var gb=new mxCell("",new mxGeometry(.125*c,65,.2*c,15),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=g(a.Label_3);gb.style+=k(a.Label_3);var hb=new mxCell("",new mxGeometry(.625*c,65,.2*c,15),"strokeColor=none;fillColor=none;");hb.vertex=!0;v.insert(hb);
hb.value=g(a.Label_5);hb.style+=k(a.Label_5);var La=new mxCell("",new mxGeometry(.43*c,75,.14*c,10),"shape=line;strokeColor=#33B5E5;");La.vertex=!0;v.insert(La);var Xa=new mxCell("",new mxGeometry(.18*c,75,.14*c,10),"shape=line;strokeColor=#33B5E5;");Xa.vertex=!0;v.insert(Xa);var Ya=new mxCell("",new mxGeometry(.68*c,75,.14*c,10),"shape=line;strokeColor=#33B5E5;");Ya.vertex=!0;v.insert(Ya);var ib=new mxCell("",new mxGeometry(.375*c,80,.2*c,15),"strokeColor=none;fillColor=none;");ib.vertex=!0;v.insert(ib);
ib.value=g(a.Label_7);ib.style+=k(a.Label_7);var jb=new mxCell("",new mxGeometry(.125*c,80,.2*c,15),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=g(a.Label_6);jb.style+=k(a.Label_6);var kb=new mxCell("",new mxGeometry(.625*c,80,.2*c,15),"strokeColor=none;fillColor=none;");kb.vertex=!0;v.insert(kb);kb.value=g(a.Label_8);kb.style+=k(a.Label_8);var Sa=new mxCell("",new mxGeometry(.5*c-4,99,8,4),"shape=triangle;direction=south;");Sa.vertex=!0;v.insert(Sa);var Ta=new mxCell("",
new mxGeometry(.25*c-4,99,8,4),"shape=triangle;direction=south;");Ta.vertex=!0;v.insert(Ta);var Ua=new mxCell("",new mxGeometry(.75*c-4,99,8,4),"shape=triangle;direction=south;");Ua.vertex=!0;v.insert(Ua);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",L.style+="strokeColor=#353535;",M.style+="strokeColor=#353535;",Na.style+="strokeColor=none;fillColor=#7E7E7E;",Oa.style+="strokeColor=none;fillColor=#7E7E7E;",Pa.style+="strokeColor=none;fillColor=#7E7E7E;",Sa.style+="strokeColor=none;fillColor=#7E7E7E;",
Ta.style+="strokeColor=none;fillColor=#7E7E7E;",Ua.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",L.style+="strokeColor=#E2E2E2;",M.style+="strokeColor=#E2E2E2;",Na.style+="strokeColor=none;fillColor=#939393;",Oa.style+="strokeColor=none;fillColor=#939393;",Pa.style+="strokeColor=none;fillColor=#939393;",Sa.style+="strokeColor=none;fillColor=#939393;",Ta.style+="strokeColor=none;fillColor=#939393;",Ua.style+="strokeColor=none;fillColor=#939393;");
break;case "AndroidListItems":var U=b,Va=0;if(a.ShowHeader){var Va=8,lb=new mxCell("",new mxGeometry(0,0,c,Va),"strokeColor=none;fillColor=none;");lb.vertex=!0;v.insert(lb);lb.value=g(a.Header);lb.style+=k(a.Header);var U=U-Va,Za=new mxCell("",new mxGeometry(0,Va-2,c,4),"shape=line;strokeColor=#999999;");Za.vertex=!0;v.insert(Za)}var ma=parseInt(a.Items);0<ma&&(U/=ma);for(var O=[],G=[],h=0;h<ma;h++)O[h]=new mxCell("",new mxGeometry(0,Va+h*U,c,U),"strokeColor=none;fillColor=none;"),O[h].vertex=!0,
v.insert(O[h]),O[h].value=g(a["Item_"+h]),O[h].style+=k(a["Item_"+h]),0<h&&(G[h]=new mxCell("",new mxGeometry(0,Va+h*U-2,c,4),"shape=line;"),G[h].vertex=!0,v.insert(G[h]),G[h].style="Dark"==a.Scheme?G[h].style+"strokeColor=#ffffff;":G[h].style+"strokeColor=#D9D9D9;");v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";break;case "AndroidTabs":var na=parseInt(a.Tabs),Z=c;0<na&&(Z/=na);for(var B=[],G=[],h=0;h<na;h++)B[h]=new mxCell("",
new mxGeometry(h*Z,0,Z,b),"strokeColor=none;fillColor=none;"),B[h].vertex=!0,v.insert(B[h]),B[h].value=g(a["Tab_"+h]),B[h].style+=k(a["Tab_"+h]),0<h&&(G[h]=new mxCell("",new mxGeometry(h*Z-2,.2*b,4,.6*b),"shape=line;direction=north;"),G[h].vertex=!0,v.insert(G[h]),G[h].style="Dark"==a.Scheme?G[h].style+"strokeColor=#484848;":G[h].style+"strokeColor=#CCCCCC;");var $a=new mxCell("",new mxGeometry(a.Selected*Z+2,b-3,Z-4,3),"strokeColor=none;fillColor=#33B5E5;");$a.vertex=!0;v.insert($a);v.style="Dark"==
a.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(vb),Math.round(wb+.25*b),Math.round(c),Math.round(.5*b)),"html=1;whiteSpace=wrap;");v.vertex=!0;var mb=new mxCell("",new mxGeometry(0,0,c*a.BarPosition,Math.round(.5*b)),"strokeColor=none;fillColor=#33B5E5;");mb.vertex=!0;v.insert(mb);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";
break;case "AndroidImageBlock":v.style="Dark"==a.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";break;case "AndroidTextBlock":v.style="Dark"==a.Scheme?a.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":a.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";
v.value=g(a.Label);v.style+=k(a.Label);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(a.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";break;case "Dark Gray":v.style+="fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(a.HighlightShow){var Ca=null,Ca=a.HighlightTop?new mxCell("",new mxGeometry(0,0,c,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,b-2,c,2),"strokeColor=none;");Ca.vertex=!0;v.insert(Ca);
switch(a.HighlightColor){case "Blue":Ca.style+="fillColor=#33B5E5;";break;case "Dark Gray":Ca.style+="fillColor=#B0B0B0;";break;case "White":Ca.style+="fillColor=#ffffff;"}}if(a.VlignShow){var Wa=new mxCell("",new mxGeometry(20,5,2,b-10),"shape=line;direction=north;");Wa.vertex=!0;v.insert(Wa);switch(a.VlignColor){case "Blue":Wa.style+="strokeColor=#244C5A;";break;case "White":Wa.style+="strokeColor=#ffffff;"}}break;case "AndroidButton":v.value=g(a.Label);v.style+=k(a.Label)+"shape=partialRectangle;left=0;right=0;";
v.style="Dark"==a.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";break;case "AndroidTextBox":v.value=g(a.Label);v.style+=k(a.Label);var nb=new mxCell("",new mxGeometry(2,b-6,c-4,4),"shape=partialRectangle;top=0;fillColor=none;");nb.vertex=!0;v.insert(nb);v.style="Dark"==a.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";nb.style=a.TextFocused?nb.style+"strokeColor=#33B5E5;":nb.style+
"strokeColor=#A9A9A9;";break;case "AndroidRadioButton":var Ia=null;a.Checked&&(Ia=new mxCell("",new mxGeometry(.15*c,.15*b,.7*c,.7*b),"shape=ellipse;fillColor=#33B5E5;strokeWidth=0.6;"),Ia.vertex=!0,v.insert(Ia));"Dark"==a.Scheme?(v.style+="shape=ellipse;strokeWidth=0.6;strokeColor=#272727;",a.Checked?(Ia.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;strokeWidth=0.6;fillColor=#ffffff;strokeColor=#5C5C5C;",a.Checked&&(Ia.style+=
"strokeColor=#999999;"));break;case "AndroidCheckBox":var Bb=null;a.Checked&&(Bb=new mxCell("",new mxGeometry(.25*c,.05*-b,c,.8*b),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),Bb.vertex=!0,v.insert(Bb));v.style="Dark"==a.Scheme?v.style+"strokeWidth=0.6;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=0.6;strokeColor=#5C5C5C;fillColor=#ffffff;";break;case "AndroidToggle":v.style="Dark"==a.Scheme?a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":
v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+a.BarPosition+";fillColor=#33b5e5;";break;case "iOSSegmentedControl":na=parseInt(a.Tabs);Z=c;v.style+="strokeColor=none;fillColor=none;";0<na&&(Z/=na);B=[];G=[];for(h=0;h<na;h++)B[h]=new mxCell("",new mxGeometry(h*Z,0,
Z,b),"strokeColor="+a.FillColor+";"),B[h].vertex=!0,v.insert(B[h]),B[h].value=g(a["Tab_"+h]),B[h].style+=k(a["Tab_"+h]),B[h].style=a.Selected==h?B[h].style+q(a,d):B[h].style+"fillColor=none;";break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+a.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*a.BarPosition+";";break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(vb),Math.round(wb+.25*b),Math.round(c),Math.round(.5*b)),"html=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");
v.vertex=!0;mb=new mxCell("",new mxGeometry(0,0,c*a.BarPosition,Math.round(.5*b)),"strokeColor=none;"+q(a,d));mb.vertex=!0;v.insert(mb);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;"+q(a,d)+"strokeColor=#D6D6D6;";break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;"+q(a,d)+"strokeColor=#000000;";var w=new mxCell(g(a.Text),new mxGeometry(.35*c,0,.3*c,b),"strokeColor=none;fillColor=none;");w.vertex=!0;v.insert(w);w.style+=k(a.Text);var V=new mxCell(g(a.Carrier),
new mxGeometry(.09*c,0,.2*c,b),"strokeColor=none;fillColor=none;");V.vertex=!0;v.insert(V);V.style+=k(a.Carrier);break;case "iOSSearchBar":v.style+="strokeColor=none;"+q(a,d)+t(a,d)+Ab(a,d)+k(a.Search);v.value=g(a.Search);var x=new mxCell("",new mxGeometry(.3*c,.3*b,.4*b,.4*b),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");x.vertex=!0;v.insert(x);break;case "iOSNavBar":v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+q(a,d)+t(a,d)+k(a.Title);
v.value=g(a.Title);w=new mxCell(g(a.LeftText),new mxGeometry(.03*c,0,.3*c,b),"strokeColor=none;fillColor=none;");w.vertex=!0;v.insert(w);w.style+=k(a.LeftText);V=new mxCell(g(a.RightText),new mxGeometry(.65*c,0,.3*c,b),"strokeColor=none;fillColor=none;");V.vertex=!0;v.insert(V);V.style+=k(a.RightText);x=new mxCell("",new mxGeometry(.02*c,.2*b,.3*b,.5*b),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");x.vertex=!0;v.insert(x);break;case "iOSTabs":na=parseInt(a.Tabs);Z=c;v.style+=
"shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;"+q(a,d)+t(a,d);0<na&&(Z/=na);B=[];G=[];for(h=0;h<na;h++)B[h]=new mxCell("",new mxGeometry(h*Z,0,Z,b),"strokeColor=none;"),B[h].vertex=!0,v.insert(B[h]),B[h].value=g(a["Tab_"+h]),B[h].style+=D(a["Tab_"+h]),B[h].style+=I(a["Tab_"+h])+J(a["Tab_"+h])+ba(a["Tab_"+h])+ea(a["Tab_"+h])+fa(a["Tab_"+h])+Ba(a["Tab_"+h])+ga(a["Tab_"+h])+ha(a["Tab_"+h]),B[h].style+="verticalAlign=bottom;",B[h].style=a.Selected==h?B[h].style+"fillColor=#BBBBBB;":
B[h].style+"fillColor=none;";break;case "iOSDatePicker":var oa=new mxCell("",new mxGeometry(0,0,.5*c,.2*b),"strokeColor=none;fillColor=none;");oa.vertex=!0;v.insert(oa);oa.value=g(a.Option11);oa.style+=k(a.Option11);var pa=new mxCell("",new mxGeometry(.5*c,0,.15*c,.2*b),"strokeColor=none;fillColor=none;");pa.vertex=!0;v.insert(pa);pa.value=g(a.Option21);pa.style+=k(a.Option21);var qa=new mxCell("",new mxGeometry(.65*c,0,.15*c,.2*b),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=
g(a.Option31);qa.style+=k(a.Option31);var ra=new mxCell("",new mxGeometry(0,.2*b,.5*c,.2*b),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=g(a.Option12);ra.style+=k(a.Option12);var sa=new mxCell("",new mxGeometry(.5*c,.2*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=g(a.Option22);sa.style+=k(a.Option22);var ta=new mxCell("",new mxGeometry(.65*c,.2*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");ta.vertex=!0;v.insert(ta);ta.value=g(a.Option32);
ta.style+=k(a.Option32);var P=new mxCell("",new mxGeometry(0,.4*b,.5*c,.2*b),"strokeColor=none;fillColor=none;");P.vertex=!0;v.insert(P);P.value=g(a.Option13);P.style+=k(a.Option13);var Q=new mxCell("",new mxGeometry(.5*c,.4*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");Q.vertex=!0;v.insert(Q);Q.value=g(a.Option23);Q.style+=k(a.Option23);var ua=new mxCell("",new mxGeometry(.65*c,.4*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");ua.vertex=!0;v.insert(ua);ua.value=g(a.Option33);ua.style+=k(a.Option33);
var R=new mxCell("",new mxGeometry(.8*c,.4*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");R.vertex=!0;v.insert(R);R.value=g(a.Option43);R.style+=k(a.Option43);var S=new mxCell("",new mxGeometry(0,.6*b,.5*c,.2*b),"strokeColor=none;fillColor=none;");S.vertex=!0;v.insert(S);S.value=g(a.Option14);S.style+=k(a.Option14);var va=new mxCell("",new mxGeometry(.5*c,.6*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");va.vertex=!0;v.insert(va);va.value=g(a.Option24);va.style+=k(a.Option24);var wa=new mxCell("",
new mxGeometry(.65*c,.6*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");wa.vertex=!0;v.insert(wa);wa.value=g(a.Option34);wa.style+=k(a.Option34);var xa=new mxCell("",new mxGeometry(.8*c,.6*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");xa.vertex=!0;v.insert(xa);xa.value=g(a.Option44);xa.style+=k(a.Option44);var T=new mxCell("",new mxGeometry(0,.8*b,.5*c,.2*b),"strokeColor=none;fillColor=none;");T.vertex=!0;v.insert(T);T.value=g(a.Option15);T.style+=k(a.Option15);var ya=new mxCell("",new mxGeometry(.5*
c,.8*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");ya.vertex=!0;v.insert(ya);ya.value=g(a.Option25);ya.style+=k(a.Option25);var za=new mxCell("",new mxGeometry(.65*c,.8*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");za.vertex=!0;v.insert(za);za.value=g(a.Option35);za.style+=k(a.Option35);ka=new mxCell("",new mxGeometry(0,.4*b-2,c,4),"shape=line;strokeColor=#888888;");ka.vertex=!0;v.insert(ka);la=new mxCell("",new mxGeometry(0,.6*b-2,c,4),"shape=line;strokeColor=#888888;");la.vertex=!0;v.insert(la);
v.style+=q(a,d)+t(a,d)+"strokeColor=none;";break;case "iOSTimePicker":oa=new mxCell("",new mxGeometry(0,0,.25*c,.2*b),"strokeColor=none;fillColor=none;");oa.vertex=!0;v.insert(oa);oa.value=g(a.Option11);oa.style+=k(a.Option11);pa=new mxCell("",new mxGeometry(.25*c,0,.3*c,.2*b),"strokeColor=none;fillColor=none;");pa.vertex=!0;v.insert(pa);pa.value=g(a.Option21);pa.style+=k(a.Option21);ra=new mxCell("",new mxGeometry(0,.2*b,.25*c,.2*b),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=
g(a.Option12);ra.style+=k(a.Option12);sa=new mxCell("",new mxGeometry(.25*c,.2*b,.3*c,.2*b),"strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=g(a.Option22);sa.style+=k(a.Option22);P=new mxCell("",new mxGeometry(0,.4*b,.25*c,.2*b),"strokeColor=none;fillColor=none;");P.vertex=!0;v.insert(P);P.value=g(a.Option13);P.style+=k(a.Option13);Q=new mxCell("",new mxGeometry(.25*c,.4*b,.3*c,.2*b),"strokeColor=none;fillColor=none;");Q.vertex=!0;v.insert(Q);Q.value=g(a.Option23);Q.style+=k(a.Option23);
R=new mxCell("",new mxGeometry(.7*c,.4*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");R.vertex=!0;v.insert(R);R.value=g(a.Option33);R.style+=k(a.Option33);S=new mxCell("",new mxGeometry(0,.6*b,.25*c,.2*b),"strokeColor=none;fillColor=none;");S.vertex=!0;v.insert(S);S.value=g(a.Option14);S.style+=k(a.Option14);va=new mxCell("",new mxGeometry(.25*c,.6*b,.3*c,.2*b),"strokeColor=none;fillColor=none;");va.vertex=!0;v.insert(va);va.value=g(a.Option24);va.style+=k(a.Option24);xa=new mxCell("",new mxGeometry(.7*
c,.6*b,.15*c,.2*b),"strokeColor=none;fillColor=none;");xa.vertex=!0;v.insert(xa);xa.value=g(a.Option34);xa.style+=k(a.Option34);T=new mxCell("",new mxGeometry(0,.8*b,.25*c,.2*b),"strokeColor=none;fillColor=none;");T.vertex=!0;v.insert(T);T.value=g(a.Option15);T.style+=k(a.Option15);ya=new mxCell("",new mxGeometry(.25*c,.8*b,.3*c,.2*b),"strokeColor=none;fillColor=none;");ya.vertex=!0;v.insert(ya);ya.value=g(a.Option25);ya.style+=k(a.Option25);ka=new mxCell("",new mxGeometry(0,.4*b-2,c,4),"shape=line;strokeColor=#888888;");
ka.vertex=!0;v.insert(ka);la=new mxCell("",new mxGeometry(0,.6*b-2,c,4),"shape=line;strokeColor=#888888;");la.vertex=!0;v.insert(la);v.style+=q(a,d)+t(a,d)+"strokeColor=none;";break;case "iOSCountdownPicker":qa=new mxCell("",new mxGeometry(.45*c,0,.2*c,.2*b),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=g(a.Option31);qa.style+=k(a.Option31);ta=new mxCell("",new mxGeometry(.45*c,.2*b,.2*c,.2*b),"strokeColor=none;fillColor=none;");ta.vertex=!0;v.insert(ta);ta.value=g(a.Option32);
ta.style+=k(a.Option32);P=new mxCell("",new mxGeometry(0,.4*b,.25*c,.2*b),"strokeColor=none;fillColor=none;");P.vertex=!0;v.insert(P);P.value=g(a.Option13);P.style+=k(a.Option13);Q=new mxCell("",new mxGeometry(.2*c,.4*b,.25*c,.2*b),"strokeColor=none;fillColor=none;");Q.vertex=!0;v.insert(Q);Q.value=g(a.Option23);Q.style+=k(a.Option23);ua=new mxCell("",new mxGeometry(.45*c,.4*b,.2*c,.2*b),"strokeColor=none;fillColor=none;");ua.vertex=!0;v.insert(ua);ua.value=g(a.Option33);ua.style+=k(a.Option33);R=
new mxCell("",new mxGeometry(.6*c,.4*b,.2*c,.2*b),"strokeColor=none;fillColor=none;");R.vertex=!0;v.insert(R);R.value=g(a.Option43);R.style+=k(a.Option43);S=new mxCell("",new mxGeometry(0,.6*b,.25*c,.2*b),"strokeColor=none;fillColor=none;");S.vertex=!0;v.insert(S);S.value=g(a.Option14);S.style+=k(a.Option14);wa=new mxCell("",new mxGeometry(.45*c,.6*b,.2*c,.2*b),"strokeColor=none;fillColor=none;");wa.vertex=!0;v.insert(wa);wa.value=g(a.Option34);wa.style+=k(a.Option34);T=new mxCell("",new mxGeometry(0,
.8*b,.25*c,.2*b),"strokeColor=none;fillColor=none;");T.vertex=!0;v.insert(T);T.value=g(a.Option15);T.style+=k(a.Option15);za=new mxCell("",new mxGeometry(.45*c,.8*b,.2*c,.2*b),"strokeColor=none;fillColor=none;");za.vertex=!0;v.insert(za);za.value=g(a.Option35);za.style+=k(a.Option35);ka=new mxCell("",new mxGeometry(0,.4*b-2,c,4),"shape=line;strokeColor=#888888;");ka.vertex=!0;v.insert(ka);la=new mxCell("",new mxGeometry(0,.6*b-2,c,4),"shape=line;strokeColor=#888888;");la.vertex=!0;v.insert(la);v.style+=
q(a,d)+t(a,d)+"strokeColor=none;";break;case "iOSBasicCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.6*a.SeparatorInset+";";v.style+=D(a.text)+I(a.text)+J(a.text)+Ga(a.text);v.value=g(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":x=new mxCell("",new mxGeometry(.91*c,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");x.vertex=!0;v.insert(x);break;case "DetailDisclosure":x=new mxCell("",
new mxGeometry(.91*c,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");x.vertex=!0;v.insert(x);var E=new mxCell("",new mxGeometry(.79*c,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");E.vertex=!0;v.insert(E);break;case "DetailIndicator":E=new mxCell("",new mxGeometry(.87*c,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");E.vertex=!0;v.insert(E);break;case "CheckMark":x=new mxCell("",new mxGeometry(.89*
c,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),x.vertex=!0,v.insert(x)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.6*a.SeparatorInset+";";v.style+=D(a.subtext)+I(a.subtext)+J(a.subtext);v.value=g(a.subtext);var H=new mxCell("",new mxGeometry(0,.4*b,c,.6*b),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+
.6*a.SeparatorInset+";");H.vertex=!0;v.insert(H);H.style+=D(a.text)+I(a.text)+J(a.text);H.value=g(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":x=new mxCell("",new mxGeometry(.91*c,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");x.vertex=!0;v.insert(x);break;case "DetailDisclosure":x=new mxCell("",new mxGeometry(.91*c,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");x.vertex=!0;v.insert(x);E=new mxCell("",new mxGeometry(.79*c,.25*b,.5*b,
.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");E.vertex=!0;v.insert(E);break;case "DetailIndicator":E=new mxCell("",new mxGeometry(.87*c,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");E.vertex=!0;v.insert(E);break;case "CheckMark":x=new mxCell("",new mxGeometry(.89*c,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),x.vertex=!0,v.insert(x)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+
.6*a.SeparatorInset+";";v.style+=D(a.subtext)+I(a.subtext)+J(a.subtext);v.value=g(a.subtext);H=null;switch(a.AccessoryIndicatorType){case "Disclosure":x=new mxCell("",new mxGeometry(.91*c,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");x.vertex=!0;v.insert(x);H=new mxCell("",new mxGeometry(.55*c,0,.3*c,b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":x=new mxCell("",new mxGeometry(.91*c,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
x.vertex=!0;v.insert(x);E=new mxCell("",new mxGeometry(.79*c,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");E.vertex=!0;v.insert(E);H=new mxCell("",new mxGeometry(.45*c,0,.3*c,b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":E=new mxCell("",new mxGeometry(.87*c,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");E.vertex=!0;v.insert(E);H=new mxCell("",new mxGeometry(.52*c,0,.3*c,
b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":x=new mxCell("",new mxGeometry(.89*c,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");x.vertex=!0;v.insert(x);H=new mxCell("",new mxGeometry(.55*c,0,.3*c,b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:H=new mxCell("",new mxGeometry(.65*c,0,.3*c,b),"fillColor=none;strokeColor=none;spacing=0;align=right;")}H.vertex=!0;v.insert(H);H.style+=D(a.text)+I(a.text)+
J(a.text);H.value=g(a.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";var ca=new mxCell("",new mxGeometry(0,0,.25*c,b),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");ca.vertex=!0;v.insert(ca);ca.style+=D(a.subtext)+I(a.subtext)+J(a.subtext);ca.value=g(a.subtext);H=new mxCell("",new mxGeometry(.25*c,0,.5*c,b),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");
H.vertex=!0;v.insert(H);H.style+=D(a.text)+I(a.text)+J(a.text);H.value=g(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":x=new mxCell("",new mxGeometry(.91*c,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");x.vertex=!0;v.insert(x);break;case "DetailDisclosure":x=new mxCell("",new mxGeometry(.91*c,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");x.vertex=!0;v.insert(x);E=new mxCell("",new mxGeometry(.79*c,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
E.vertex=!0;v.insert(E);break;case "DetailIndicator":E=new mxCell("",new mxGeometry(.87*c,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");E.vertex=!0;v.insert(E);break;case "CheckMark":x=new mxCell("",new mxGeometry(.89*c,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),x.vertex=!0,v.insert(x)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";
w=new mxCell("",new mxGeometry(0,0,c,.4*b),"fillColor=none;strokeColor=none;spacing=10;align=left;");w.vertex=!0;v.insert(w);w.style+=D(a.text)+I(a.text)+J(a.text);w.value=g(a.text);V=new mxCell("",new mxGeometry(0,.6*b,c,.4*b),"fillColor=none;strokeColor=none;spacing=10;align=left;");V.vertex=!0;v.insert(V);V.style+=D(a["bottom-text"])+I(a["bottom-text"])+J(a["bottom-text"]);V.value=g(a["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";
v.style+=D(a.text)+I(a.text)+J(a.text);v.value=g(a.text);break;case "SMPage":if(a.Group){v.style+="strokeColor=none;fillColor=none;";var e=new mxCell("",new mxGeometry(0,0,.9*c,.9*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a);var p=new mxCell("",new mxGeometry(.1*c,.1*b,.9*c,.9*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+k(a);p.value=g(a.Text);a.Future&&(e.style+="dashed=1;",p.style+="dashed=1;")}else a.Future&&(v.style+="dashed=1;"),
v.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+k(a),v.value=g(a.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a);e=null;switch(f.Class){case "SMHome":e=new mxCell("",new mxGeometry(.5*c-.4*b,.1*b,.8*b,.8*b),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMPrint":e=new mxCell("",new mxGeometry(.5*c-.4*b,.19*b,.8*b,.62*b),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":e=new mxCell("",new mxGeometry(.5*c-.4*b,.1*b,.8*b,.8*b),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSettings":e=new mxCell("",new mxGeometry(.5*c-.35*b,.15*b,.7*b,.7*b),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMSitemap":e=new mxCell("",new mxGeometry(.5*c-.35*b,.2*b,.7*b,.6*b),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":e=new mxCell("",new mxGeometry(.5*c-.3*b,.25*b,.6*b,.5*b),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMVideo":e=new mxCell("",new mxGeometry(.5*c-.4*b,.2*b,.8*b,.6*b),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMAudio":e=new mxCell("",new mxGeometry(.5*c-.3*b,.2*b,.6*b,.6*b),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":e=new mxCell("",new mxGeometry(.5*c-.4*b,.15*b,.8*b,.7*b),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMChart":var C=q(a,d),C=""==C?"#ffffff;":C.replace("fillColor=",""),e=new mxCell("",new mxGeometry(.5*c-.35*b,.15*b,.7*b,.7*b),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+
C);break;case "SMCloud":e=new mxCell("",new mxGeometry(.5*c-.4*b,.27*b,.8*b,.46*b),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":e=new mxCell("",new mxGeometry(.5*c-.25*b,.15*b,.5*b,.7*b),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMForm":e=new mxCell("",new mxGeometry(.5*c-.4*b,.15*b,.8*b,.7*b),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMGame":e=new mxCell("",new mxGeometry(.5*c-.4*b,.2*b,.8*b,.6*b),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":e=new mxCell("",new mxGeometry(.5*c-.4*b,.2*b,.8*b,.6*b),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}e.vertex=!0;v.insert(e);e.style+=k(a);e.value=g(a.Text);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",
new mxGeometry(.1*c,0,.9*c,.9*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a);p=new mxCell("",new mxGeometry(0,.1*b,.9*c,.9*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+k(a.Text);p.value=g(a.Text);break;case "UMLConstraintBlock":var xb=new mxCell("",new mxGeometry(0,0,.25*b,b),"shape=curlyBracket;rounded=1;");xb.vertex=!0;v.insert(xb);var yb=new mxCell("",new mxGeometry(c-.25*b,0,.25*b,b),"shape=curlyBracket;rounded=1;flipH=1;");yb.vertex=
!0;v.insert(yb);Y=new mxCell("",new mxGeometry(.25*b,0,c-.5*b,b),"strokeColor=none;fillColor=none;");Y.vertex=!0;Y.value=g(a);v.insert(Y);v.style="strokeColor=none;fillColor=none;";v.style+=ub(a,d,v);xb.style+=m(a,d)+t(a,d)+u(a)+y(a)+r(a);yb.style+=m(a,d)+t(a,d)+u(a)+y(a)+r(a);Y.style+=D(a)+I(a)+J(a)+ba(a)+ea(a)+fa(a)+Ba(a)+ga(a)+ha(a)+Ga(a);break;case "UMLTextBlock":v.style+="strokeColor=none;"+t(a,d)+u(a)+y(a)+r(a)+k(a.Text);v.value=g(a.Text);break;case "BPMNActivity":switch(a.bpmnActivityType){case 1:v.style+=
q(a,d)+m(a,d)+t(a,d)+u(a)+y(a)+r(a)+k(a.Text);v.value=g(a.Text);break;case 2:v.style+="shape=ext;double=1;"+q(a,d)+m(a,d)+t(a,d)+u(a)+y(a)+r(a)+k(a.Text);v.value=g(a.Text);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 1;"+q(a,d)+m(a,d)+t(a,d)+u(a)+r(a)+k(a.Text);v.value=g(a.Text);break;case 4:v.style+="shape=ext;strokeWidth=2;"+q(a,d)+m(a,d)+t(a,d)+u(a)+y(a)+k(a.Text),v.value=g(a.Text)}if(0!=a.bpmnTaskType){switch(a.bpmnTaskType){case 1:e=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");
(function(){function k(f){var l=null!=f.Text?f.Text:null!=f.Value?f.Value:f.Lane_0;null==l&&null!=f.State?null!=f.State.t&&(l=f.State):null==l&&null!=f.Note?null!=f.Note.t&&(l=f.Note):null==l&&null!=f.Title?null!=f.Title.t&&(l=f.Title):null!=f.t&&(l=f);null==l&&null!=f.TextAreas&&null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&null!=f.TextAreas.Text.Value.t&&(l=f.TextAreas.Text.Value);if(null!=l){if(null!=l.t)return l.t=l.t.replace(/</g,"&lt;"),l.t=l.t.replace(/>/g,"&gt;"),l.t;if(null!=l.Value&&
null!=l.Value.t)return l.Value.t=l.Value.t.replace(/</g,"&lt;"),l.Value.t=l.Value.t.replace(/>/g,"&gt;"),l.Value.t}return""}function Ua(f){return null!=f.Action?f.Action:f}function la(f){if(null!=f.Text){if(null!=f.Text.m)return f.Text.m}else if(null!=f.TextAreas){if(null!=f.TextAreas.Text&&null!=f.TextAreas.Text.Value&&null!=f.TextAreas.Text.Value.m)return f.TextAreas.Text.Value.m}else if(null!=f.m)return f.m;return null}function n(f){return I(f)+J(f)+K(f)+ea(f)+ma(f)+na(f)+Ka(f)+oa(f)+pa(f)+Qa(f)}
function I(f){f=la(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("s"==m.n&&null!=m.v)return"fontSize="+Math.round(.6*m.v)+";";l++}return"fontSize=10;"}function J(f){f=la(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("c"==m.n&&null!=m.v)return f=m.v,"#"!=f.charAt(0)&&(f="#"+f),f=f.substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+f+";";l++}return""}function K(f){f=la(f);if(null!=f){var l=0,m=!1;if(null!=f)for(var c=0;!m&&c<f.length;){var a=f[c];"b"==a.n&&null!=a.v&&a.v&&(m=!0,l+=1);c++}m=
!1;if(null!=f)for(c=0;!m&&c<f.length;)a=f[c],"i"==a.n&&null!=a.v&&a.v&&(m=!0,l+=2),c++;m=!1;if(null!=f)for(c=0;!m&&c<f.length;)a=f[c],"u"==a.n&&null!=a.v&&a.v&&(m=!0,l+=4),c++;if(0<l)return"fontStyle="+l+";"}return""}function ea(f){f=la(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("a"==m.n&&null!=m.v)return"align="+m.v+";";l++}return"align=center;"}function ma(f){var l=la(f);if(null!=l)for(var m=0;m<l.length;){var c=l[m];if("il"==c.n){if(null!=c.v)return"spacingLeft="+.6*c.v+";"}else if("s"==
c.n&&"align=center;"!=ea(f)&&null!=c.v)return"spacingLeft="+.6*c.v+";";m++}return""}function na(f){f=la(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("ir"==m.n&&null!=m.v)return"spacingRight="+m.v+";";l++}return""}function Ka(f){f=la(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("mt"==m.n&&null!=m.v)return"spacingTop="+m.v+";";l++}return""}function oa(f){f=la(f);if(null!=f)for(var l=0;l<f.length;){var m=f[l];if("mb"==m.n&&null!=m.v)return"spacingBottom="+m.v+";";l++}return""}function pa(f){return"number"===
typeof f.InsetMargin?"spacing="+parseInt(f.InsetMargin)+";":""}function Qa(f){return null!=f.Text_VAlign&&"string"===typeof f.Text_VAlign?"verticalAlign="+f.Text_VAlign+";":fa(mxConstants.STYLE_VERTICAL_ALIGN,f.TextVAlign,"middle")}function h(f,l){return Qb.includes(l.Class)?"Venn"==l.Class.substring(0,4)?fa(mxConstants.STYLE_STROKECOLOR,f.FillColor.substring(0,7),"#FFFFFF"):"":0==f.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":fa(mxConstants.STYLE_STROKECOLOR,f.LineColor.substring(0,7),"#000000")}
function r(f,l){var m="";dc.includes(l.Class)||(m+=fa(mxConstants.STYLE_OPACITY,f.Opacity,"100"));if("string"===typeof f.LineColor&&7<f.LineColor.length)var c="0x"+f.LineColor.substring(f.LineColor.length-2,f.LineColor.length),m=m+("strokeOpacity="+Math.round(parseInt(c)/2.55)+";");"string"===typeof f.FillColor&&7<f.FillColor.length&&(c="0x"+f.FillColor.substring(f.FillColor.length-2,f.FillColor.length),m+="fillOpacity="+Math.round(parseInt(c)/2.55)+";");return m}function Rb(f,l){if(null!=f.Rounding&&
!ec.includes(l.Class)){if(0<f.Rounding)return"rounded=1;absoluteArcSize=1;arcSize="+.6*f.Rounding+";"}else if(null==f.Rounding&&fc.includes(l.Class))return"rounded=1;absoluteArcSize=1;arcSize=8;";return""}function ja(f,l,m){return null!=f.Rotation&&(f=mxUtils.toDegree(parseFloat(f.Rotation)),"AdvancedSwimLaneBlockRotated"==l.Class?(f+=90,m.geometry.rotate90()):gc.includes(l.Class)?(f-=90,m.geometry.rotate90(),m.geometry.rotate90(),m.geometry.rotate90()):hc.includes(l.Class)&&(f+=180,m.geometry.rotate90(),
m.geometry.rotate90()),0!=f)?"rotation="+f+";":""}function u(f){return null!=f.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function t(f,l){if(null!=f.FillColor&&!ic.includes(l.Class))if("object"===typeof f.FillColor){if(null!=f.FillColor.cs&&1<f.FillColor.cs.length)return fa(mxConstants.STYLE_FILLCOLOR,f.FillColor.cs[0].c.substring(0,7))+fa(mxConstants.STYLE_GRADIENTCOLOR,f.FillColor.cs[1].c.substring(0,7))}else return"string"===typeof f.FillColor?fa(mxConstants.STYLE_FILLCOLOR,f.FillColor.substring(0,
7),"#FFFFFF"):fa(mxConstants.STYLE_FILLCOLOR,"none");return""}function y(f){return"dashed"==f.StrokeStyle?"dashed=1;":"dotted"==f.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==f.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dotdotdot"==f.StrokeStyle?"dashed=1;dashPattern=1 1;":""}function q(f){return fa(mxConstants.STYLE_STROKEWIDTH,.6*parseFloat(f.LineWidth),"1")}function ib(f,l){var m=Ua(l);if(null!=m){var c=Va[m.Class]+";";null!=c&&(f.style+=c);c=null!=m.Properties?m.Properties:m;if(null!=
c){f.value=k(c);var a=f.style,n=I(c)+J(c)+K(c)+ea(c,f)+ma(c)+na(c)+Ka(c)+oa(c)+pa(c)+Qa(c)+h(c,m)+r(c,m)+Rb(c,m)+ja(c,m,f)+(c.FlipX?"flipH=1;":"")+(c.FlipY?"flipV=1;":"")+u(c)+t(c,m)+y(c)+q(c);m="ImageSearchBlock2"==m.Class?"image="+c.URL+";":"";f.style=a+(n+m);if(f.edge){f.style+="rounded=1;arcSize=6;";if("diagonal"!=c.Shape)if(null!=c.ElbowPoints)for(f.geometry.points=[],m=0;m<c.ElbowPoints.length;m++)f.geometry.points.push(new mxPoint(Math.round(.6*c.ElbowPoints[m].x+0),Math.round(.6*c.ElbowPoints[m].y+
0)));else"elbow"==c.Shape?f.style=null!=c.Endpoint1.Block&&null!=c.Endpoint1.Block?f.style+"edgeStyle=orthogonalEdgeStyle;":f.style+"edgeStyle=elbowEdgeStyle;":null!=c.Endpoint1.Block&&null!=c.Endpoint1.Block&&(f.style+="edgeStyle=orthogonalEdgeStyle;","curve"==c.Shape&&(f.style+="curved=1;"));null!=c.Endpoint1.Style&&(f.style+="startArrow="+jb[c.Endpoint1.Style]+";");null!=c.Endpoint2.Style&&(f.style+="endArrow="+jb[c.Endpoint2.Style].replace(/startSize/g,"endSize")+";");kb(f,c.Endpoint1,!0);kb(f,
c.Endpoint2,!1)}}}}function lb(f){var l=Ua(f).Properties.BoundingBox;null!=f.Class&&"AWS"===f.Class.substring(0,3)&&(l.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*l.x+0),Math.round(.6*l.y+0),Math.round(.6*l.w),Math.round(.6*l.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;ib(v,f);return v}function Ra(f,l,m){m=2*(parseFloat(f.Location)-.5);f=new mxCell(k(f),new mxGeometry(m,0,0,0),"text;html=1;resizable=0;labelBackgroundColor=#ffffff;");f.geometry.relative=!0;f.vertex=!0;l.insert(f);return l}function fa(f,
l,m,c){null!=l&&null!=c&&(l=c(l));return null!=l&&l!=m?f+"="+l+";":""}function kb(f,l,m){null!=l&&null!=l.LinkX&&null!=l.LinkY&&(f.style+=(m?"exitX":"entryX")+"="+l.LinkX+";"+(m?"exitY":"entryY")+"="+l.LinkY+";"+(m?"exitPerimeter":"entryPerimeter")+"=0;")}function Ja(f,l,m,c,a,k,d,b){f=new mxCell("",new mxGeometry(f,l,0,0),"strokeColor=none;fillColor=none;");f.vertex=!0;d.insert(f);k=[f];m=sb.cloneCell(m);b.insertEdge(m,!1);f.insertEdge(m,!0);k.push(m);c.push(a.addCell(m,null,null,null,null))}function Q(f,
l,k,c,a,h,d,b,n){f=new mxCell("",new mxGeometry(f,l,0,0),"strokeColor=none;fillColor=none;");f.vertex=!0;n.insert(f);k=new mxCell("",new mxGeometry(k,c,0,0),"strokeColor=none;fillColor=none;");k.vertex=!0;n.insert(k);b=[k];a=sb.cloneCell(a);f.insertEdge(a,!0);k.insertEdge(a,!1);b.push(a);h.push(d.addCell(a,null,null,null,null))}function jc(f,l,m){var c=Ua(f),a=c.Properties,fa=a.BoundingBox,d=Math.round(.6*fa.w),b=Math.round(.6*fa.h),qa=Math.round(.6*fa.x+0),ra=Math.round(.6*fa.y+0);v=new mxCell("",
new mxGeometry(qa,ra,d,b),"html=1;whiteSpace=wrap;");v.vertex=!0;switch(f.Class){case "BraceNoteBlock":var Yb=!1;null!=a.BraceDirection&&"Right"==a.BraceDirection&&(Yb=!0);var Wa=null,ga=null;Yb?(Wa=new mxCell("",new mxGeometry(d-.125*b,0,.125*b,b),"shape=curlyBracket;rounded=1;"),ga=new mxCell("",new mxGeometry(0,0,d-.125*b,b),"strokeColor=none;fillColor=none;")):(Wa=new mxCell("",new mxGeometry(0,0,.125*b,b),"shape=curlyBracket;rounded=1;flipH=1;"),ga=new mxCell("",new mxGeometry(.125*b,0,d-.125*
b,b),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=ja(a,c,v);Wa.vertex=!0;v.insert(Wa);Wa.style+=h(a,c)+r(a,c)+u(a)+y(a)+q(a);ga.vertex=!0;ga.value=k(a);v.insert(ga);ga.style+=I(a)+J(a)+K(a)+ea(a,ga)+ma(a)+na(a)+Ka(a)+oa(a)+pa(a)+Qa(a);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var la=0;null!=a.Lanes&&(la=a.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var Zb=0,Ma=[],g=0;g<la;g++){var $b=parseFloat(a.Lanes[g].p);
Ma.push(new mxCell("",new mxGeometry(d*Zb,0,d*$b,b),"shape=swimlane;startSize=25;"));Ma[g].vertex=!0;v.insert(Ma[g]);Ma[g].value=k(a["Lane_"+g]);Ma[g].style+=I(a["Lane_"+g])+J(a["Lane_"+g])+K(a["Lane_"+g])+ea(a["Lane_"+g],Ma[g])+ma(a["Lane_"+g])+na(a["Lane_"+g])+Ka(a["Lane_"+g])+oa(a["Lane_"+g])+pa(a["Lane_"+g])+Qa(a["Lane_"+g])+h(a,c)+r(a,c)+Rb(a,c)+ja(a,c,Ma[g])+(a.FlipX?"flipH=1;":"")+(a.FlipY?"flipV=1;":"")+u(a)+t(a,c)+y(a)+q(a);Zb+=$b}break;case "AndroidDevice":if(null!=a.AndroidDeviceName){v.style=
"fillColor=#000000;strokeColor=#000000;";var Na=null,mb=null,nb=null;if("Tablet"==a.AndroidDeviceName||"Mini Tablet"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.tab2;",Na=new mxCell("",new mxGeometry(.112*d,.077*b,.77*d,.85*b),""),a.KeyboardShown&&(mb=new mxCell("",new mxGeometry(.112*d,.727*b,.77*d,.2*b),"shape=mxgraph.android.keyboard;")),a.FullScreen||(nb=new mxCell("",new mxGeometry(.112*d,.077*b,.77*d,.03*b),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+
.015*b+";"));else if("Large Phone"==a.AndroidDeviceName||"Phone"==a.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",Na=new mxCell("",new mxGeometry(.04*d,.092*b,.92*d,.816*b),""),a.KeyboardShown&&(mb=new mxCell("",new mxGeometry(.04*d,.708*b,.92*d,.2*b),"shape=mxgraph.android.keyboard;")),a.FullScreen||(nb=new mxCell("",new mxGeometry(.04*d,.092*b,.92*d,.03*b),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*b+";"));Na.vertex=!0;v.insert(Na);
"Dark"==a.Scheme?Na.style+="fillColor=#111111;":"Light"==a.Scheme&&(Na.style+="fillColor=#ffffff;");null!=mb&&(mb.vertex=!0,v.insert(mb));null!=nb&&(nb.vertex=!0,v.insert(nb))}break;case "AndroidAlertDialog":var sa=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");sa.vertex=!0;v.insert(sa);var M=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");M.vertex=!0;v.insert(M);var ob=new mxCell("",new mxGeometry(0,30,d,b-30),"strokeColor=none;fillColor=none;verticalAlign=top;");
ob.vertex=!0;v.insert(ob);var S=new mxCell("",new mxGeometry(0,b-25,.5*d,25),"fillColor=none;");S.vertex=!0;v.insert(S);var T=new mxCell("",new mxGeometry(.5*d,b-25,.5*d,25),"fillColor=none;");T.vertex=!0;v.insert(T);sa.value=k(a.DialogTitle);sa.style+=n(a.DialogTitle);ob.value=k(a.DialogText);ob.style+=n(a.DialogText);S.value=k(a.Button_0);S.style+=n(a.Button_0);T.value=k(a.Button_1);T.style+=n(a.Button_1);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",S.style+="strokeColor=#353535;",
T.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",S.style+="strokeColor=#E2E2E2;",T.style+="strokeColor=#E2E2E2;");break;case "AndroidDateDialog":case "AndroidTimeDialog":sa=new mxCell("",new mxGeometry(0,0,d,30),"strokeColor=none;fillColor=none;spacingLeft=9;");sa.vertex=!0;v.insert(sa);sa.value=k(a.DialogTitle);sa.style+=n(a.DialogTitle);M=new mxCell("",new mxGeometry(0,25,d,10),"shape=line;strokeColor=#33B5E5;");M.vertex=!0;v.insert(M);S=new mxCell("",new mxGeometry(0,
b-25,.5*d,25),"fillColor=none;");S.vertex=!0;v.insert(S);S.value=k(a.Button_0);S.style+=n(a.Button_0);T=new mxCell("",new mxGeometry(.5*d,b-25,.5*d,25),"fillColor=none;");T.vertex=!0;v.insert(T);T.value=k(a.Button_1);T.style+=n(a.Button_1);var Xa=new mxCell("",new mxGeometry(.5*d-4,41,8,4),"shape=triangle;direction=north;");Xa.vertex=!0;v.insert(Xa);var Ya=new mxCell("",new mxGeometry(.25*d-4,41,8,4),"shape=triangle;direction=north;");Ya.vertex=!0;v.insert(Ya);var Za=new mxCell("",new mxGeometry(.75*
d-4,41,8,4),"shape=triangle;direction=north;");Za.vertex=!0;v.insert(Za);var pb=new mxCell("",new mxGeometry(.375*d,50,.2*d,15),"strokeColor=none;fillColor=none;");pb.vertex=!0;v.insert(pb);pb.value=k(a.Label_1);pb.style+=n(a.Label_1);var qb=new mxCell("",new mxGeometry(.125*d,50,.2*d,15),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=k(a.Label_0);qb.style+=n(a.Label_0);var $a=null;"AndroidDateDialog"==f.Class&&($a=new mxCell("",new mxGeometry(.625*d,50,.2*d,15),"strokeColor=none;fillColor=none;"),
$a.vertex=!0,v.insert($a),$a.value=k(a.Label_2),$a.style+=n(a.Label_2));var ta=new mxCell("",new mxGeometry(.43*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");ta.vertex=!0;v.insert(ta);var ua=new mxCell("",new mxGeometry(.18*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");ua.vertex=!0;v.insert(ua);var Ra=new mxCell("",new mxGeometry(.68*d,60,.14*d,10),"shape=line;strokeColor=#33B5E5;");Ra.vertex=!0;v.insert(Ra);var rb=new mxCell("",new mxGeometry(.375*d,65,.2*d,15),"strokeColor=none;fillColor=none;");
rb.vertex=!0;v.insert(rb);rb.value=k(a.Label_4);rb.style+=n(a.Label_4);var ab=null;"AndroidTimeDialog"==f.Class&&(ab=new mxCell("",new mxGeometry(.3*d,65,.1*d,15),"strokeColor=none;fillColor=none;"),ab.vertex=!0,v.insert(ab),ab.value=k(a.Label_Colon),ab.style+=n(a.Label_Colon));var tb=new mxCell("",new mxGeometry(.125*d,65,.2*d,15),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=k(a.Label_3);tb.style+=n(a.Label_3);var ub=new mxCell("",new mxGeometry(.625*d,65,.2*d,15),"strokeColor=none;fillColor=none;");
ub.vertex=!0;v.insert(ub);ub.value=k(a.Label_5);ub.style+=n(a.Label_5);var Va=new mxCell("",new mxGeometry(.43*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");Va.vertex=!0;v.insert(Va);var ib=new mxCell("",new mxGeometry(.18*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");ib.vertex=!0;v.insert(ib);var jb=new mxCell("",new mxGeometry(.68*d,75,.14*d,10),"shape=line;strokeColor=#33B5E5;");jb.vertex=!0;v.insert(jb);var vb=new mxCell("",new mxGeometry(.375*d,80,.2*d,15),"strokeColor=none;fillColor=none;");
vb.vertex=!0;v.insert(vb);vb.value=k(a.Label_7);vb.style+=n(a.Label_7);var wb=new mxCell("",new mxGeometry(.125*d,80,.2*d,15),"strokeColor=none;fillColor=none;");wb.vertex=!0;v.insert(wb);wb.value=k(a.Label_6);wb.style+=n(a.Label_6);var xb=new mxCell("",new mxGeometry(.625*d,80,.2*d,15),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.value=k(a.Label_8);xb.style+=n(a.Label_8);var bb=new mxCell("",new mxGeometry(.5*d-4,99,8,4),"shape=triangle;direction=south;");bb.vertex=!0;v.insert(bb);
var cb=new mxCell("",new mxGeometry(.25*d-4,99,8,4),"shape=triangle;direction=south;");cb.vertex=!0;v.insert(cb);var db=new mxCell("",new mxGeometry(.75*d-4,99,8,4),"shape=triangle;direction=south;");db.vertex=!0;v.insert(db);"Dark"==a.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",S.style+="strokeColor=#353535;",T.style+="strokeColor=#353535;",Xa.style+="strokeColor=none;fillColor=#7E7E7E;",Ya.style+="strokeColor=none;fillColor=#7E7E7E;",Za.style+="strokeColor=none;fillColor=#7E7E7E;",
bb.style+="strokeColor=none;fillColor=#7E7E7E;",cb.style+="strokeColor=none;fillColor=#7E7E7E;",db.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",S.style+="strokeColor=#E2E2E2;",T.style+="strokeColor=#E2E2E2;",Xa.style+="strokeColor=none;fillColor=#939393;",Ya.style+="strokeColor=none;fillColor=#939393;",Za.style+="strokeColor=none;fillColor=#939393;",bb.style+="strokeColor=none;fillColor=#939393;",cb.style+="strokeColor=none;fillColor=#939393;",
db.style+="strokeColor=none;fillColor=#939393;");break;case "AndroidListItems":var aa=b,eb=0;if(a.ShowHeader){var eb=8,yb=new mxCell("",new mxGeometry(0,0,d,eb),"strokeColor=none;fillColor=none;");yb.vertex=!0;v.insert(yb);yb.value=k(a.Header);yb.style+=n(a.Header);var aa=aa-eb,kb=new mxCell("",new mxGeometry(0,eb-2,d,4),"shape=line;strokeColor=#999999;");kb.vertex=!0;v.insert(kb)}var va=parseInt(a.Items);0<va&&(aa/=va);for(var U=[],M=[],g=0;g<va;g++)U[g]=new mxCell("",new mxGeometry(0,eb+g*aa,d,
aa),"strokeColor=none;fillColor=none;"),U[g].vertex=!0,v.insert(U[g]),U[g].value=k(a["Item_"+g]),U[g].style+=n(a["Item_"+g]),0<g&&(M[g]=new mxCell("",new mxGeometry(0,eb+g*aa-2,d,4),"shape=line;"),M[g].vertex=!0,v.insert(M[g]),M[g].style="Dark"==a.Scheme?M[g].style+"strokeColor=#ffffff;":M[g].style+"strokeColor=#D9D9D9;");v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";break;case "AndroidTabs":var wa=parseInt(a.Tabs),ha=d;0<wa&&
(ha/=wa);for(var H=[],M=[],g=0;g<wa;g++)H[g]=new mxCell("",new mxGeometry(g*ha,0,ha,b),"strokeColor=none;fillColor=none;"),H[g].vertex=!0,v.insert(H[g]),H[g].value=k(a["Tab_"+g]),H[g].style+=n(a["Tab_"+g]),0<g&&(M[g]=new mxCell("",new mxGeometry(g*ha-2,.2*b,4,.6*b),"shape=line;direction=north;"),M[g].vertex=!0,v.insert(M[g]),M[g].style="Dark"==a.Scheme?M[g].style+"strokeColor=#484848;":M[g].style+"strokeColor=#CCCCCC;");var lb=new mxCell("",new mxGeometry(a.Selected*ha+2,b-3,ha-4,3),"strokeColor=none;fillColor=#33B5E5;");
lb.vertex=!0;v.insert(lb);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(qa),Math.round(ra+.25*b),Math.round(d),Math.round(.5*b)),"html=1;whiteSpace=wrap;");v.vertex=!0;var zb=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*b)),"strokeColor=none;fillColor=#33B5E5;");zb.vertex=!0;v.insert(zb);v.style="Dark"==a.Scheme?v.style+"strokeColor=none;fillColor=#474747;":
v.style+"strokeColor=none;fillColor=#BBBBBB;";break;case "AndroidImageBlock":v.style="Dark"==a.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";break;case "AndroidTextBlock":v.style="Dark"==a.Scheme?a.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":a.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":
v.style+"fillColor=#ffffff;strokeColor=none;";v.value=k(a.Label);v.style+=n(a.Label);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(a.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";break;case "Dark Gray":v.style+="fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(a.HighlightShow){var La=null,La=a.HighlightTop?new mxCell("",new mxGeometry(0,0,d,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,b-
2,d,2),"strokeColor=none;");La.vertex=!0;v.insert(La);switch(a.HighlightColor){case "Blue":La.style+="fillColor=#33B5E5;";break;case "Dark Gray":La.style+="fillColor=#B0B0B0;";break;case "White":La.style+="fillColor=#ffffff;"}}if(a.VlignShow){var fb=new mxCell("",new mxGeometry(20,5,2,b-10),"shape=line;direction=north;");fb.vertex=!0;v.insert(fb);switch(a.VlignColor){case "Blue":fb.style+="strokeColor=#244C5A;";break;case "White":fb.style+="strokeColor=#ffffff;"}}break;case "AndroidButton":v.value=
k(a.Label);v.style+=n(a.Label)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==a.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";break;case "AndroidTextBox":v.value=k(a.Label);v.style+=n(a.Label);var Ab=new mxCell("",new mxGeometry(2,b-6,d-4,4),"shape=partialRectangle;top=0;fillColor=none;");Ab.vertex=!0;v.insert(Ab);v.style="Dark"==a.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";
Ab.style=a.TextFocused?Ab.style+"strokeColor=#33B5E5;":Ab.style+"strokeColor=#A9A9A9;";break;case "AndroidRadioButton":var Sa=null;a.Checked&&(Sa=new mxCell("",new mxGeometry(.15*d,.15*b,.7*d,.7*b),"shape=ellipse;fillColor=#33B5E5;strokeWidth=0.6;"),Sa.vertex=!0,v.insert(Sa));"Dark"==a.Scheme?(v.style+="shape=ellipse;strokeWidth=0.6;strokeColor=#272727;",a.Checked?(Sa.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;strokeWidth=0.6;fillColor=#ffffff;strokeColor=#5C5C5C;",
a.Checked&&(Sa.style+="strokeColor=#999999;"));break;case "AndroidCheckBox":var Sb=null;a.Checked&&(Sb=new mxCell("",new mxGeometry(.25*d,.05*-b,d,.8*b),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),Sb.vertex=!0,v.insert(Sb));v.style="Dark"==a.Scheme?v.style+"strokeWidth=0.6;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=0.6;strokeColor=#5C5C5C;fillColor=#ffffff;";break;case "AndroidToggle":v.style="Dark"==a.Scheme?a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":
v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":a.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+a.BarPosition+";fillColor=#33b5e5;";break;case "iOSSegmentedControl":wa=parseInt(a.Tabs);ha=d;v.style+="strokeColor=none;fillColor=none;";0<wa&&(ha/=wa);H=[];M=[];for(g=0;g<wa;g++)H[g]=new mxCell("",new mxGeometry(g*ha,
0,ha,b),"strokeColor="+a.FillColor+";"),H[g].vertex=!0,v.insert(H[g]),H[g].value=k(a["Tab_"+g]),H[g].style+=n(a["Tab_"+g]),H[g].style=a.Selected==g?H[g].style+t(a,c):H[g].style+"fillColor=none;";break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+a.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*a.BarPosition+";";break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(qa),Math.round(ra+.25*b),Math.round(d),Math.round(.5*b)),"html=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");
v.vertex=!0;zb=new mxCell("",new mxGeometry(0,0,d*a.BarPosition,Math.round(.5*b)),"strokeColor=none;"+t(a,c));zb.vertex=!0;v.insert(zb);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;"+t(a,c)+"strokeColor=#D6D6D6;";break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;"+t(a,c)+"strokeColor=#000000;";var z=new mxCell(k(a.Text),new mxGeometry(.35*d,0,.3*d,b),"strokeColor=none;fillColor=none;");z.vertex=!0;v.insert(z);z.style+=n(a.Text);var ba=new mxCell(k(a.Carrier),
new mxGeometry(.09*d,0,.2*d,b),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.style+=n(a.Carrier);break;case "iOSSearchBar":v.style+="strokeColor=none;"+t(a,c)+r(a,c)+Rb(a,c)+n(a.Search);v.value=k(a.Search);var C=new mxCell("",new mxGeometry(.3*d,.3*b,.4*b,.4*b),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");C.vertex=!0;v.insert(C);break;case "iOSNavBar":v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+t(a,c)+r(a,c)+n(a.Title);
v.value=k(a.Title);z=new mxCell(k(a.LeftText),new mxGeometry(.03*d,0,.3*d,b),"strokeColor=none;fillColor=none;");z.vertex=!0;v.insert(z);z.style+=n(a.LeftText);ba=new mxCell(k(a.RightText),new mxGeometry(.65*d,0,.3*d,b),"strokeColor=none;fillColor=none;");ba.vertex=!0;v.insert(ba);ba.style+=n(a.RightText);C=new mxCell("",new mxGeometry(.02*d,.2*b,.3*b,.5*b),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");C.vertex=!0;v.insert(C);break;case "iOSTabs":wa=parseInt(a.Tabs);ha=d;v.style+=
"shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;"+t(a,c)+r(a,c);0<wa&&(ha/=wa);H=[];M=[];for(g=0;g<wa;g++)H[g]=new mxCell("",new mxGeometry(g*ha,0,ha,b),"strokeColor=none;"),H[g].vertex=!0,v.insert(H[g]),H[g].value=k(a["Tab_"+g]),H[g].style+=I(a["Tab_"+g]),H[g].style+=J(a["Tab_"+g])+K(a["Tab_"+g])+ea(a["Tab_"+g])+ma(a["Tab_"+g])+na(a["Tab_"+g])+Ka(a["Tab_"+g])+oa(a["Tab_"+g])+pa(a["Tab_"+g]),H[g].style+="verticalAlign=bottom;",H[g].style=a.Selected==g?H[g].style+"fillColor=#BBBBBB;":
H[g].style+"fillColor=none;";break;case "iOSDatePicker":var xa=new mxCell("",new mxGeometry(0,0,.5*d,.2*b),"strokeColor=none;fillColor=none;");xa.vertex=!0;v.insert(xa);xa.value=k(a.Option11);xa.style+=n(a.Option11);var ya=new mxCell("",new mxGeometry(.5*d,0,.15*d,.2*b),"strokeColor=none;fillColor=none;");ya.vertex=!0;v.insert(ya);ya.value=k(a.Option21);ya.style+=n(a.Option21);var za=new mxCell("",new mxGeometry(.65*d,0,.15*d,.2*b),"strokeColor=none;fillColor=none;");za.vertex=!0;v.insert(za);za.value=
k(a.Option31);za.style+=n(a.Option31);var Aa=new mxCell("",new mxGeometry(0,.2*b,.5*d,.2*b),"strokeColor=none;fillColor=none;");Aa.vertex=!0;v.insert(Aa);Aa.value=k(a.Option12);Aa.style+=n(a.Option12);var Ba=new mxCell("",new mxGeometry(.5*d,.2*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ba.vertex=!0;v.insert(Ba);Ba.value=k(a.Option22);Ba.style+=n(a.Option22);var Ca=new mxCell("",new mxGeometry(.65*d,.2*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ca.vertex=!0;v.insert(Ca);Ca.value=k(a.Option32);
Ca.style+=n(a.Option32);var V=new mxCell("",new mxGeometry(0,.4*b,.5*d,.2*b),"strokeColor=none;fillColor=none;");V.vertex=!0;v.insert(V);V.value=k(a.Option13);V.style+=n(a.Option13);var W=new mxCell("",new mxGeometry(.5*d,.4*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");W.vertex=!0;v.insert(W);W.value=k(a.Option23);W.style+=n(a.Option23);var Da=new mxCell("",new mxGeometry(.65*d,.4*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=k(a.Option33);Da.style+=n(a.Option33);
var X=new mxCell("",new mxGeometry(.8*d,.4*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");X.vertex=!0;v.insert(X);X.value=k(a.Option43);X.style+=n(a.Option43);var Y=new mxCell("",new mxGeometry(0,.6*b,.5*d,.2*b),"strokeColor=none;fillColor=none;");Y.vertex=!0;v.insert(Y);Y.value=k(a.Option14);Y.style+=n(a.Option14);var Ea=new mxCell("",new mxGeometry(.5*d,.6*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=k(a.Option24);Ea.style+=n(a.Option24);var Fa=new mxCell("",
new mxGeometry(.65*d,.6*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=k(a.Option34);Fa.style+=n(a.Option34);var Ga=new mxCell("",new mxGeometry(.8*d,.6*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=k(a.Option44);Ga.style+=n(a.Option44);var Z=new mxCell("",new mxGeometry(0,.8*b,.5*d,.2*b),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=k(a.Option15);Z.style+=n(a.Option15);var Ha=new mxCell("",new mxGeometry(.5*
d,.8*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=k(a.Option25);Ha.style+=n(a.Option25);var Ia=new mxCell("",new mxGeometry(.65*d,.8*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ia.vertex=!0;v.insert(Ia);Ia.value=k(a.Option35);Ia.style+=n(a.Option35);ta=new mxCell("",new mxGeometry(0,.4*b-2,d,4),"shape=line;strokeColor=#888888;");ta.vertex=!0;v.insert(ta);ua=new mxCell("",new mxGeometry(0,.6*b-2,d,4),"shape=line;strokeColor=#888888;");ua.vertex=!0;v.insert(ua);
v.style+=t(a,c)+r(a,c)+"strokeColor=none;";break;case "iOSTimePicker":xa=new mxCell("",new mxGeometry(0,0,.25*d,.2*b),"strokeColor=none;fillColor=none;");xa.vertex=!0;v.insert(xa);xa.value=k(a.Option11);xa.style+=n(a.Option11);ya=new mxCell("",new mxGeometry(.25*d,0,.3*d,.2*b),"strokeColor=none;fillColor=none;");ya.vertex=!0;v.insert(ya);ya.value=k(a.Option21);ya.style+=n(a.Option21);Aa=new mxCell("",new mxGeometry(0,.2*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");Aa.vertex=!0;v.insert(Aa);Aa.value=
k(a.Option12);Aa.style+=n(a.Option12);Ba=new mxCell("",new mxGeometry(.25*d,.2*b,.3*d,.2*b),"strokeColor=none;fillColor=none;");Ba.vertex=!0;v.insert(Ba);Ba.value=k(a.Option22);Ba.style+=n(a.Option22);V=new mxCell("",new mxGeometry(0,.4*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");V.vertex=!0;v.insert(V);V.value=k(a.Option13);V.style+=n(a.Option13);W=new mxCell("",new mxGeometry(.25*d,.4*b,.3*d,.2*b),"strokeColor=none;fillColor=none;");W.vertex=!0;v.insert(W);W.value=k(a.Option23);W.style+=n(a.Option23);
X=new mxCell("",new mxGeometry(.7*d,.4*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");X.vertex=!0;v.insert(X);X.value=k(a.Option33);X.style+=n(a.Option33);Y=new mxCell("",new mxGeometry(0,.6*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");Y.vertex=!0;v.insert(Y);Y.value=k(a.Option14);Y.style+=n(a.Option14);Ea=new mxCell("",new mxGeometry(.25*d,.6*b,.3*d,.2*b),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=k(a.Option24);Ea.style+=n(a.Option24);Ga=new mxCell("",new mxGeometry(.7*
d,.6*b,.15*d,.2*b),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=k(a.Option34);Ga.style+=n(a.Option34);Z=new mxCell("",new mxGeometry(0,.8*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=k(a.Option15);Z.style+=n(a.Option15);Ha=new mxCell("",new mxGeometry(.25*d,.8*b,.3*d,.2*b),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=k(a.Option25);Ha.style+=n(a.Option25);ta=new mxCell("",new mxGeometry(0,.4*b-2,d,4),"shape=line;strokeColor=#888888;");
ta.vertex=!0;v.insert(ta);ua=new mxCell("",new mxGeometry(0,.6*b-2,d,4),"shape=line;strokeColor=#888888;");ua.vertex=!0;v.insert(ua);v.style+=t(a,c)+r(a,c)+"strokeColor=none;";break;case "iOSCountdownPicker":za=new mxCell("",new mxGeometry(.45*d,0,.2*d,.2*b),"strokeColor=none;fillColor=none;");za.vertex=!0;v.insert(za);za.value=k(a.Option31);za.style+=n(a.Option31);Ca=new mxCell("",new mxGeometry(.45*d,.2*b,.2*d,.2*b),"strokeColor=none;fillColor=none;");Ca.vertex=!0;v.insert(Ca);Ca.value=k(a.Option32);
Ca.style+=n(a.Option32);V=new mxCell("",new mxGeometry(0,.4*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");V.vertex=!0;v.insert(V);V.value=k(a.Option13);V.style+=n(a.Option13);W=new mxCell("",new mxGeometry(.2*d,.4*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");W.vertex=!0;v.insert(W);W.value=k(a.Option23);W.style+=n(a.Option23);Da=new mxCell("",new mxGeometry(.45*d,.4*b,.2*d,.2*b),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=k(a.Option33);Da.style+=n(a.Option33);X=
new mxCell("",new mxGeometry(.6*d,.4*b,.2*d,.2*b),"strokeColor=none;fillColor=none;");X.vertex=!0;v.insert(X);X.value=k(a.Option43);X.style+=n(a.Option43);Y=new mxCell("",new mxGeometry(0,.6*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");Y.vertex=!0;v.insert(Y);Y.value=k(a.Option14);Y.style+=n(a.Option14);Fa=new mxCell("",new mxGeometry(.45*d,.6*b,.2*d,.2*b),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=k(a.Option34);Fa.style+=n(a.Option34);Z=new mxCell("",new mxGeometry(0,
.8*b,.25*d,.2*b),"strokeColor=none;fillColor=none;");Z.vertex=!0;v.insert(Z);Z.value=k(a.Option15);Z.style+=n(a.Option15);Ia=new mxCell("",new mxGeometry(.45*d,.8*b,.2*d,.2*b),"strokeColor=none;fillColor=none;");Ia.vertex=!0;v.insert(Ia);Ia.value=k(a.Option35);Ia.style+=n(a.Option35);ta=new mxCell("",new mxGeometry(0,.4*b-2,d,4),"shape=line;strokeColor=#888888;");ta.vertex=!0;v.insert(ta);ua=new mxCell("",new mxGeometry(0,.6*b-2,d,4),"shape=line;strokeColor=#888888;");ua.vertex=!0;v.insert(ua);v.style+=
t(a,c)+r(a,c)+"strokeColor=none;";break;case "iOSBasicCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.6*a.SeparatorInset+";";v.style+=I(a.text)+J(a.text)+K(a.text)+Qa(a.text);v.value=k(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);break;case "DetailDisclosure":C=new mxCell("",
new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);var L=new mxCell("",new mxGeometry(.79*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);break;case "DetailIndicator":L=new mxCell("",new mxGeometry(.87*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);break;case "CheckMark":C=new mxCell("",new mxGeometry(.89*
d,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),C.vertex=!0,v.insert(C)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.6*a.SeparatorInset+";";v.style+=I(a.subtext)+J(a.subtext)+K(a.subtext);v.value=k(a.subtext);var N=new mxCell("",new mxGeometry(0,.4*b,d,.6*b),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+
.6*a.SeparatorInset+";");N.vertex=!0;v.insert(N);N.style+=I(a.text)+J(a.text)+K(a.text);N.value=k(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);break;case "DetailDisclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);L=new mxCell("",new mxGeometry(.79*d,.25*b,.5*b,
.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);break;case "DetailIndicator":L=new mxCell("",new mxGeometry(.87*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);break;case "CheckMark":C=new mxCell("",new mxGeometry(.89*d,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),C.vertex=!0,v.insert(C)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+
.6*a.SeparatorInset+";";v.style+=I(a.subtext)+J(a.subtext)+K(a.subtext);v.value=k(a.subtext);N=null;switch(a.AccessoryIndicatorType){case "Disclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);N=new mxCell("",new mxGeometry(.55*d,0,.3*d,b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
C.vertex=!0;v.insert(C);L=new mxCell("",new mxGeometry(.79*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);N=new mxCell("",new mxGeometry(.45*d,0,.3*d,b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":L=new mxCell("",new mxGeometry(.87*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);N=new mxCell("",new mxGeometry(.52*d,0,.3*d,
b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":C=new mxCell("",new mxGeometry(.89*d,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");C.vertex=!0;v.insert(C);N=new mxCell("",new mxGeometry(.55*d,0,.3*d,b),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:N=new mxCell("",new mxGeometry(.65*d,0,.3*d,b),"fillColor=none;strokeColor=none;spacing=0;align=right;")}N.vertex=!0;v.insert(N);N.style+=I(a.text)+J(a.text)+
K(a.text);N.value=k(a.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";var ka=new mxCell("",new mxGeometry(0,0,.25*d,b),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");ka.vertex=!0;v.insert(ka);ka.style+=I(a.subtext)+J(a.subtext)+K(a.subtext);ka.value=k(a.subtext);N=new mxCell("",new mxGeometry(.25*d,0,.5*d,b),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");
N.vertex=!0;v.insert(N);N.style+=I(a.text)+J(a.text)+K(a.text);N.value=k(a.text);switch(a.AccessoryIndicatorType){case "Disclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);break;case "DetailDisclosure":C=new mxCell("",new mxGeometry(.91*d,.35*b,.15*b,.3*b),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");C.vertex=!0;v.insert(C);L=new mxCell("",new mxGeometry(.79*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
L.vertex=!0;v.insert(L);break;case "DetailIndicator":L=new mxCell("",new mxGeometry(.87*d,.25*b,.5*b,.5*b),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");L.vertex=!0;v.insert(L);break;case "CheckMark":C=new mxCell("",new mxGeometry(.89*d,.37*b,.4*b,.26*b),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),C.vertex=!0,v.insert(C)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";
z=new mxCell("",new mxGeometry(0,0,d,.4*b),"fillColor=none;strokeColor=none;spacing=10;align=left;");z.vertex=!0;v.insert(z);z.style+=I(a.text)+J(a.text)+K(a.text);z.value=k(a.text);ba=new mxCell("",new mxGeometry(0,.6*b,d,.4*b),"fillColor=none;strokeColor=none;spacing=10;align=left;");ba.vertex=!0;v.insert(ba);ba.style+=I(a["bottom-text"])+J(a["bottom-text"])+K(a["bottom-text"]);ba.value=k(a["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";
v.style+=I(a.text)+J(a.text)+K(a.text);v.value=k(a.text);break;case "SMPage":if(a.Group){v.style+="strokeColor=none;fillColor=none;";var e=new mxCell("",new mxGeometry(0,0,.9*d,.9*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a);var p=new mxCell("",new mxGeometry(.1*d,.1*b,.9*d,.9*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a);p.value=k(a.Text);a.Future&&(e.style+="dashed=1;",p.style+="dashed=1;")}else a.Future&&(v.style+="dashed=1;"),
v.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a),v.value=k(a.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a);e=null;switch(f.Class){case "SMHome":e=new mxCell("",new mxGeometry(.5*d-.4*b,.1*b,.8*b,.8*b),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMPrint":e=new mxCell("",new mxGeometry(.5*d-.4*b,.19*b,.8*b,.62*b),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":e=new mxCell("",new mxGeometry(.5*d-.4*b,.1*b,.8*b,.8*b),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSettings":e=new mxCell("",new mxGeometry(.5*d-.35*b,.15*b,.7*b,.7*b),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMSitemap":e=new mxCell("",new mxGeometry(.5*d-.35*b,.2*b,.7*b,.6*b),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":e=new mxCell("",new mxGeometry(.5*d-.3*b,.25*b,.6*b,.5*b),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMVideo":e=new mxCell("",new mxGeometry(.5*d-.4*b,.2*b,.8*b,.6*b),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMAudio":e=new mxCell("",new mxGeometry(.5*d-.3*b,.2*b,.6*b,.6*b),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":e=new mxCell("",new mxGeometry(.5*d-.4*b,.15*b,.8*b,.7*b),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMChart":var A=t(a,c),A=""==A?"#ffffff;":A.replace("fillColor=",""),e=new mxCell("",new mxGeometry(.5*d-.35*b,.15*b,.7*b,.7*b),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+
A);break;case "SMCloud":e=new mxCell("",new mxGeometry(.5*d-.4*b,.27*b,.8*b,.46*b),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":e=new mxCell("",new mxGeometry(.5*d-.25*b,.15*b,.5*b,.7*b),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMForm":e=new mxCell("",new mxGeometry(.5*d-.4*b,.15*b,.8*b,.7*b),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMGame":e=new mxCell("",new mxGeometry(.5*d-.4*b,.2*b,.8*b,.6*b),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":e=new mxCell("",new mxGeometry(.5*d-.4*b,.2*b,.8*b,.6*b),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}e.vertex=!0;v.insert(e);e.style+=n(a);e.value=k(a.Text);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",
new mxGeometry(.1*d,0,.9*d,.9*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a);p=new mxCell("",new mxGeometry(0,.1*b,.9*d,.9*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a.Text);p.value=k(a.Text);break;case "UMLConstraintBlock":var Kb=new mxCell("",new mxGeometry(0,0,.25*b,b),"shape=curlyBracket;rounded=1;");Kb.vertex=!0;v.insert(Kb);var Lb=new mxCell("",new mxGeometry(d-.25*b,0,.25*b,b),"shape=curlyBracket;rounded=1;flipH=1;");Lb.vertex=
!0;v.insert(Lb);ga=new mxCell("",new mxGeometry(.25*b,0,d-.5*b,b),"strokeColor=none;fillColor=none;");ga.vertex=!0;ga.value=k(a);v.insert(ga);v.style="strokeColor=none;fillColor=none;";v.style+=ja(a,c,v);Kb.style+=h(a,c)+r(a,c)+u(a)+y(a)+q(a);Lb.style+=h(a,c)+r(a,c)+u(a)+y(a)+q(a);ga.style+=I(a)+J(a)+K(a)+ea(a)+ma(a)+na(a)+Ka(a)+oa(a)+pa(a)+Qa(a);break;case "UMLTextBlock":v.style+="strokeColor=none;"+r(a,c)+u(a)+y(a)+q(a)+n(a.Text);v.value=k(a.Text);break;case "BPMNActivity":switch(a.bpmnActivityType){case 1:v.style+=
t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+q(a)+n(a.Text);v.value=k(a.Text);break;case 2:v.style+="shape=ext;double=1;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+q(a)+n(a.Text);v.value=k(a.Text);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 1;"+t(a,c)+h(a,c)+r(a,c)+u(a)+q(a)+n(a.Text);v.value=k(a.Text);break;case 4:v.style+="shape=ext;strokeWidth=2;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+n(a.Text),v.value=k(a.Text)}if(0!=a.bpmnTaskType){switch(a.bpmnTaskType){case 1:e=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");
e.geometry.offset=new mxPoint(4,7);break;case 2:e=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");e.geometry.offset=new mxPoint(4,7);break;case 3:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");e.geometry.offset=new mxPoint(4,5);break;case 4:e=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");e.geometry.offset=new mxPoint(4,7);break;case 5:e=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");e.geometry.offset=
new mxPoint(4,7);break;case 6:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");e.geometry.offset=new mxPoint(4,5);break;case 7:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),e.geometry.offset=new mxPoint(4,5)}if(1==a.bpmnTaskType){var ob=q(a,d),C=m(a,d),C=C.replace("strokeColor","fillColor"),ob=ob.replace("fillColor","strokeColor");""==C&&(C="fillColor=#000000;");""==ob&&(ob="strokeColor=#ffffff;");e.style+=ob+C+"part=1;"}else e.style+=q(a,
d)+m(a,d)+"part=1;";e.geometry.relative=!0;e.vertex=!0;v.insert(e)}var pb=0;0!=a.bpmnActivityMarker1&&pb++;0!=a.bpmnActivityMarker2&&pb++;var W=0;1==pb?W=-7.5:2==pb&&(W=-19);if(0!=a.bpmnActivityMarker1){switch(a.bpmnActivityMarker1){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(W,-20);e.style+=q(a,d)+m(a,d);break;case 2:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(W,-20);e.style+=
q(a,d)+m(a,d);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(W,-20);e.style+=q(a,d)+m(a,d);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(W,-20);e.style+=q(a,d)+m(a,d);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");e.geometry.offset=new mxPoint(W,-17);C=m(a,d);C=C.replace("strokeColor",
"fillColor");""==C&&(C="fillColor=#000000;");e.style+=C;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(W,-18),e.style+=q(a,d)+m(a,d)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}2==pb&&(W=5);if(0!=a.bpmnActivityMarker2){switch(a.bpmnActivityMarker2){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(W,-20);e.style+=q(a,d)+m(a,d);break;case 2:e=new mxCell("",new mxGeometry(.5,
1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(W,-20);e.style+=q(a,d)+m(a,d);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(W,-20);e.style+=q(a,d)+m(a,d);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(W,-20);e.style+=q(a,d)+m(a,d);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");
e.geometry.offset=new mxPoint(W,-17);C=m(a,d);C=C.replace("strokeColor","fillColor");""==C&&(C="fillColor=#000000;");e.style+=C;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(W,-18),e.style+=q(a,d)+m(a,d)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;"+q(a,d)+m(a,d)+t(a,d)+u(a)+y(a)+r(a)+D(a)+I(a)+J(a)+ba(a)+ea(a)+
fa(a)+Ba(a)+ga(a)+ha(a);v.value=g(a.Text);if(1==a.bpmnDashed)switch(a.bpmnEventGroup){case 0:v.style+="outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(a.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(a.bpmnEventType){case 1:v.style+="symbol=message;";break;case 2:v.style+="symbol=timer;";break;case 3:v.style+="symbol=escalation;";break;case 4:v.style+=
"symbol=conditional;";break;case 5:v.style+="symbol=link;";break;case 6:v.style+="symbol=error;";break;case 7:v.style+="symbol=cancel;";break;case 8:v.style+="symbol=compensation;";break;case 9:v.style+="symbol=signal;";break;case 10:v.style+="symbol=multiple;";break;case 11:v.style+="symbol=parallelMultiple;";break;case 12:v.style+="symbol=terminate;"}break;case "BPMNConversation":v.style+="shape=hexagon;"+q(a,d)+m(a,d)+t(a,d)+u(a)+y(a)+k(a);v.value=g(a.Text);v.style=0==a.bpmnConversationType?v.style+
r(a):v.style+"strokeWidth=2;";a.bpmnIsSubConversation&&(e=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),e.geometry.offset=new mxPoint(-6,-17),e.style+=q(a,d)+m(a,d),e.geometry.relative=!0,e.vertex=!0,v.insert(e));break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;"+q(a,d)+m(a,d)+t(a,d)+u(a)+y(a)+k(a);switch(a.bpmnGatewayType){case 0:v.style+="outline=none;symbol=general;";break;case 1:v.style+="outline=none;symbol=exclusiveGw;";
break;case 2:v.style+="outline=catching;symbol=multiple;";break;case 3:v.style+="outline=none;symbol=parallelGw;";break;case 4:v.style+="outline=end;symbol=general;";break;case 5:v.style+="outline=standard;symbol=multiple;";break;case 6:v.style+="outline=none;symbol=complexGw;";break;case 7:v.style+="outline=standard;symbol=parallelMultiple;"}break;case "BPMNData":v.style+="shape=note;size=14;"+q(a,d)+m(a,d)+t(a,d)+u(a)+y(a)+k(a);switch(a.bpmnDataType){case 1:e=new mxCell("",new mxGeometry(.5,1,12,
10),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(-6,-15);e.style+=q(a,d)+m(a,d);e.geometry.relative=!0;e.vertex=!0;v.insert(e);break;case 2:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");e.geometry.offset=new mxPoint(3,3);e.style+=q(a,d)+m(a,d);e.geometry.relative=!0;e.vertex=!0;v.insert(e);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";w=new mxCell("",new mxGeometry(0,0,c,20),"strokeColor=none;fillColor=none;");w.geometry.offset=
new mxPoint(0,14);w.geometry.relative=!0;w.vertex=!0;v.insert(w);w.value=g(a.Text);w.style+=k(a);break;case 3:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),e.geometry.offset=new mxPoint(3,3),e.style+=m(a,d),e.geometry.relative=!0,e.vertex=!0,v.insert(e),C=m(a,d),C=C.replace("strokeColor","fillColor"),""==C&&(C="fillColor=#000000;"),e.style+=C,w=new mxCell("",new mxGeometry(0,0,c,20),"strokeColor=none;fillColor=none;"),w.geometry.offset=new mxPoint(0,
14),w.geometry.relative=!0,w.vertex=!0,v.insert(w),w.value=g(a.Text),w.style+=k(a)}break;case "BPMNBlackPool":v.style+=q(a,d)+m(a,d)+t(a,d)+u(a)+y(a)+k(a);v.value=g(a.Text);e=new mxCell("",new mxGeometry(0,0,c,b),"fillColor=#000000;strokeColor=none;opacity=30;");e.vertex=!0;v.insert(e);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",new mxGeometry(0,0,.95*c,.95*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a);p=new mxCell("",
new mxGeometry(.05*c,.05*b,.95*c,.95*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+k(a.Text);p.value=g(a.Text);break;case "GSDFDDataStoreBlock":v.style+="shape=partialRectangle;right=0;"+m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+k(a.Text);v.value=g(a.Text);e=new mxCell("",new mxGeometry(0,0,.2*c,b),"part=1;");e.vertex=!0;v.insert(e);e.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+k(a.Number);e.value=g(a.Number);break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+=
"shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==f.Class?v.value=g(a.Text):"VSMProductionControlBlock"==f.Class&&(v.value=g(a.Resources));v.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+D(a)+I(a)+J(a)+ba(a)+ea(a)+fa(a)+ga(a)+ha(a)+Ga(a);"VSMDedicatedProcessBlock"==f.Class&&(e=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),e.geometry.relative=!0,e.geometry.offset=new mxPoint(4,-13),e.vertex=!0,v.insert(e),e.style+=m(a,d)+q(a,
d)+t(a,d)+u(a)+r(a));w=new mxCell("",new mxGeometry(0,0,c,15),"strokeColor=none;fillColor=none;part=1;");w.vertex=!0;v.insert(w);w.value=g(a.Title);w.style+=k(a.Title);break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=g(a.Text);v.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+D(a)+I(a)+J(a)+ba(a)+ea(a)+fa(a)+ga(a)+Ba(a)+ha(a);w=new mxCell("",new mxGeometry(.1*c,.3*b,.8*c,.6*b),"part=1;");w.vertex=!0;v.insert(w);w.value=
g(a.Resource);w.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+k(a.Resource);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+D(a)+I(a)+J(a)+ba(a)+ea(a)+fa(a)+ga(a)+ha(a);v.value=g(a.Text);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";var U=b,ma=parseInt(a.Cells),Ja=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+"part=1;";0<ma&&(U/=ma);O=[];G=[];for(h=1;h<=ma;h++)O[h]=
new mxCell("",new mxGeometry(0,(h-1)*U,c,U),Ja),O[h].vertex=!0,v.insert(O[h]),O[h].value=g(a["cell_"+h]),O[h].style+=k(a["cell_"+h]);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;"+m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+D(a)+I(a)+J(a)+ba(a)+ea(a)+fa(a)+Ba(a)+ga(a)+ha(a);v.value=g(a.Text);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;"+q(a,d);U=b;ma=parseInt(a.Cells);Ja=m(a,d)+t(a,d)+r(a)+"part=1;fillColor=none;";
0<ma&&(U/=ma);O=[];ca=[];for(h=1;h<=ma;h++)O[h]=new mxCell("",new mxGeometry(.5*c,(h-1)*U,.5*c,U),"shape=partialRectangle;left=0;"+Ja),O[h].vertex=!0,v.insert(O[h]),ca[h]=new mxCell("",new mxGeometry(0,(h-1)*U,c,U),"strokeColor=none;fillColor=none;part=1;"),ca[h].vertex=!0,v.insert(ca[h]),ca[h].value=g(a["cell_"+h]),ca[h].style+=k(a["cell_"+h]);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+=
"shape=ellipse;"+m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+k(a);v.value=g(a.Text);e=new mxCell("",new mxGeometry(.17*c,.2*b,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");e.vertex=!0;v.insert(e);e.style+=m(a,d)+q(a,d)+t(a,d)+r(a);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";Ja="shape=card;size=18;flipH=1;part=1;"+m(a,d)+q(a,d)+t(a,d)+r(a);e=new mxCell("",new mxGeometry(.1*c,0,.9*c,.8*b),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");
e.vertex=!0;v.insert(e);e.style+=Ja;p=new mxCell("",new mxGeometry(.05*c,.1*b,.9*c,.8*b),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");p.vertex=!0;v.insert(p);p.style+=Ja;var aa=new mxCell("",new mxGeometry(0,.2*b,.9*c,.8*b),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;");aa.vertex=!0;v.insert(aa);aa.style+=Ja+k(a);aa.value=g(a.Text);break;case "AWSRoundedRectangleContainerBlock2":v.style+="strokeColor=none;fillColor=none;";
a.Spotfleet?(e=new mxCell("",new mxGeometry(0,0,c,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=m(a,d)+k(a.Title)+y(a)+r(a),e.value=g(a.Title),p=new mxCell("",new mxGeometry(0,0,35,40),"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):
a.Beanstalk?(e=new mxCell("",new mxGeometry(0,0,c,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=m(a,d)+k(a.Title)+y(a)+r(a),e.value=g(a.Title),p=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):
a.EC2?(e=new mxCell("",new mxGeometry(0,0,c,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=m(a,d)+k(a.Title)+y(a)+r(a),e.value=g(a.Title),p=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.Subnet?(e=
new mxCell("",new mxGeometry(0,0,c,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=m(a,d)+k(a.Title)+y(a)+r(a),e.value=g(a.Title),p=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.VPC?(e=new mxCell("",
new mxGeometry(0,0,c,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=m(a,d)+k(a.Title)+y(a)+r(a),e.value=g(a.Title),p=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.AWS?(e=new mxCell("",
new mxGeometry(0,0,c,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=m(a,d)+k(a.Title)+y(a)+r(a),e.value=g(a.Title),p=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.Corporate?(e=new mxCell("",new mxGeometry(0,
0,c,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=m(a,d)+k(a.Title)+y(a)+r(a),e.value=g(a.Title),p=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"+
m(a,d)+k(a.Title)+y(a)+r(a),v.value=g(a.Title));break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";var A=new mxCell("",new mxGeometry(.25*c,.25*b,.5*c,.5*b),"html=1;shape=ellipse;perimeter=ellipsePerimeter;strokeColor=#29AAE1;strokeWidth=2;");A.vertex=!0;v.insert(A);var F=[A];A.style+=q(a,d);var z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");z.geometry.relative=!0;z.edge=!0;Aa(.5*c,0,z,n,l,
F,v,A);Aa(.855*c,.145*b,z,n,l,F,v,A);Aa(c,.5*b,z,n,l,F,v,A);Aa(.855*c,.855*b,z,n,l,F,v,A);Aa(.5*c,b,z,n,l,F,v,A);Aa(.145*c,.855*b,z,n,l,F,v,A);Aa(0,.5*b,z,n,l,F,v,A);Aa(.145*c,.145*b,z,n,l,F,v,A);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";A=new mxCell("",new mxGeometry(0,.5*b-10,c,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");A.vertex=!0;v.insert(A);
F=[A];z=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");z.geometry.relative=!0;z.edge=!0;for(var F=[A],qb=c/a.NumTopNodes,h=0;h<a.NumTopNodes;h++)Aa(.5*qb+h*qb,0,z,n,l,F,v,A);qb=c/a.NumBottomNodes;for(h=0;h<a.NumBottomNodes;h++)Aa(.5*qb+h*qb,b,z,n,l,F,v,A);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;"+m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+k(a);v.value=g(a.Title);a.ToggleCharge&&(v.style+="flipV=1;");
break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+y(a)+k(a);v.value=g(a.Text);"EIMessageChannelBlock"==f.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*c,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-c,0)):"EIDatatypeChannelBlock"==f.Class?
(e=new mxCell("",new mxGeometry(.5,.5,.9*c,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-c,0)):"EIInvalidMessageChannelBlock"==f.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*c,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-c,0)):"EIDeadLetterChannelBlock"==f.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*c,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),e.geometry.offset=
new mxPoint(.45*-c,0)):"EIGuaranteedDeliveryBlock"==f.Class&&(e=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(-10,-7));e.geometry.relative=!0;e.vertex=!0;v.insert(e);e.style+=m(a,d)+t(a,d)+r(a);z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");z.geometry.relative=!0;z.edge=!0;ia(.15*c,.25*b,.85*c,.25*b,z,n,l,F,v,A);break;case "EIChannelAdapterBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+y(a)+k(a);v.value=g(a.Text);e=new mxCell("",new mxGeometry(0,.07*b,.21*c,.86*b),"fillColor=#FFFF33;part=1;");e.vertex=!0;v.insert(e);e.style+=m(a,d)+t(a,d)+r(a)+y(a);p=new mxCell("",new mxGeometry(.26*c,.09*b,.2*c,.82*b),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");p.vertex=!0;v.insert(p);p.style+=m(a,d)+t(a,d)+r(a)+y(a);aa=new mxCell("",new mxGeometry(1,.5,.35*c,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
aa.geometry.relative=!0;aa.geometry.offset=new mxPoint(.4*-c,-10);aa.vertex=!0;v.insert(aa);aa.style+=m(a,d)+t(a,d)+r(a)+y(a);K=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=none;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=2;");K.geometry.relative=!0;K.edge=!0;e.insertEdge(K,!0);p.insertEdge(K,!1);K.style+=m(a,d);n.push(l.addCell(K,null,null,null,null));N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=block;startArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=2;startFill=1;startSize=2;");
N.geometry.relative=!0;N.edge=!0;p.insertEdge(N,!0);aa.insertEdge(N,!1);n.push(l.addCell(N,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+k(a);v.value=g(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=m(a,d)+r(a);for(var tb=a.Messages,zb=(b-17)/
tb,p=[],z=[],h=0;h<tb;h++){var Fb=zb*(h+1)-3;p[h]=new mxCell("",new mxGeometry(c-20,Fb,20,20),"part=1;");p[h].vertex=!0;v.insert(p[h]);p[h].style+=m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+y(a);switch(f.Class){case "EIMessageBlock":p[h].value=g(a["message_"+(h+1)]);p.style+=k(a["message_"+(h+1)]);break;case "EICommandMessageBlock":p[h].value="C";p[h].style+="fontStyle=1;fontSize=10;";break;case "EIDocumentMessageBlock":p[h].value="D";p[h].style+="fontStyle=1;fontSize=10;";break;case "EIEventMessageBlock":p[h].value=
"E",p[h].style+="fontStyle=1;fontSize=10;"}z[h]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");z[h].geometry.relative=!0;z[h].edge=!0;e.insertEdge(z[h],!1);p[h].insertEdge(z[h],!0);z[h].style+=m(a,d)+r(a);var Gb=[];Gb.push(new mxPoint(vb+8.5,wb+Fb+10));z[h].geometry.points=Gb;n.push(l.addCell(z[h],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+m(a,
d)+q(a,d)+t(a,d)+u(a)+r(a)+y(a)+k(a);v.value=g(a.Text);e=new mxCell("",new mxGeometry(.45*c,.25*b,.3*c,.5*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=m(a,d)+t(a,d)+r(a);z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");z.geometry.relative=!0;z.edge=!0;ia(0,.5*b,.4*c,.5*b,z,n,l,F,v,A);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+m(a,d)+
q(a,d)+t(a,d)+u(a)+r(a)+y(a)+k(a);v.value=g(a.Text);var K=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");K.geometry.relative=!0;K.edge=!0;ia(.05*c,.5*b,.85*c,.5*b,K,n,l,F,v,A);var N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");N.geometry.relative=!0;N.edge=!0;ia(.05*c,.5*b,.85*c,
.15*b,N,n,l,F,v,A);var Da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");Da.geometry.relative=!0;Da.edge=!0;ia(.05*c,.5*b,.85*c,.85*b,Da,n,l,F,v,A);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+y(a)+k(a);v.value=g(a.Text);K=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
K.geometry.relative=!0;K.edge=!0;K.style+=m(a,d);ia(.05*c,.5*b,.95*c,.5*b,K,n,l,F,v,A);N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");N.geometry.relative=!0;N.edge=!0;N.style+=m(a,d);ia(.3*c,.1*b,.3*c,.5*b,N,n,l,F,v,A);Da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
Da.geometry.relative=!0;Da.edge=!0;Da.style+=m(a,d);ia(.7*c,.1*b,.7*c,.5*b,Da,n,l,F,v,A);var rb=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");rb.geometry.relative=!0;rb.edge=!0;rb.style+=m(a,d);ia(.5*c,.5*b,.5*c,.9*b,rb,n,l,F,v,A);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+y(a)+k(a);
v.value=g(a.Text);e=new mxCell("",new mxGeometry(.2*c,.21*b,.16*c,.24*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=m(a,d)+t(a,d)+r(a);K=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");K.geometry.relative=!0;K.edge=!0;ia(.45*c,.33*b,.8*c,.33*b,K,n,l,F,v,A);p=new mxCell("",new mxGeometry(.64*c,.55*b,.16*c,.24*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=m(a,d)+t(a,d)+r(a);N=new mxCell("",new mxGeometry(0,
0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");N.geometry.relative=!0;N.edge=!0;ia(.55*c,.67*b,.2*c,.67*b,N,n,l,F,v,A);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+m(a,d)+q(a,d)+t(a,d)+u(a)+r(a)+y(a)+k(a),v.value=g(a.Text),e=new mxCell("",new mxGeometry(.1*c,.15*b,.8*c,.7*b),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;"),e.vertex=!0,v.insert(e),e.style+=m(a,d)+t(a,d)+r(a)}return v}
var Ib=["GSDFDProcessBlock","GSDFDProcessBlock2","RoundedRectangleContainerBlock","UI2ButtonBlock","UMLStateBlock"],Jb=["ProcessBlock","UMLActivationBlock"],zb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8 UMLEndBlock DefaultTextBlockNew iOSButton".split(" "),Lb="AWSAndroidBlock3 AWSiOSBlock3 AWSJavaBlock3 AWSJavaScript AWSNetBlock3 AWSNodeJSBlock3 AWSPHPBlock3 AWSPythonBlock3 AWSRubyBlock3 AWSXamarin AWSCLIBlock3 AWSEclipseToolkitBlock3 AWSVisualStudioToolkitBlock3 AWSWindowsPowershellToolkitBlock3 DefaultTextBlock RectangleContainerBlock UMLStartBlock UMLEndBlock DefaultTextBlockNew UMLHForkJoinBlock iOSButton".split(" "),
Hb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8".split(" "),Kb=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],Ya={None:"none",Arrow:"block;endFill=1","Hollow Arrow":"block;endFill=0","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;startSize=10",
"CFN ERD One Or More Arrow":"ERoneToMany;startSize=10","CFN ERD Many Arrow":"ERmany;startSize=10","CFN ERD Exactly One Arrow":"ERmandOne;startSize=10","CFN ERD Zero Or One Arrow":"ERzeroToOne;startSize=10","CFN ERD One Arrow":"ERone;startSize=16",Generalization:"block;endFill=0;startSize=12","Big Open Arrow":"open;startSize=10",Asynch1:"openAsync;flipH=1;startSize=10",Asynch2:"openAsync;startSize=10",Aggregation:"diamond;endFill=0;startSize=16",Composition:"diamond;endFill=1;startSize=16",BlockEnd:"none;endFill=1;startSize=16"},
La={DefaultTextBlockNew:"text;strokeColor=none;fillColor=none",DefaultTextBlock:"text;strokeColor=none;fillColor=none",DefaultSquareBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;opacity=50",ImageSearchBlock2:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",
ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon",DataBlock:"shape=parallelogram",DataBlockNew:"shape=parallelogram",DatabaseBlock:"shape=cylinder",DirectAccessStorageBlock:"shape=mxgraph.flowchart.direct_data",InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=dataStorage",MergeBlock:"triangle;direction=south",ConnectorBlock:"ellipse",
OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"shape=mxgraph.flowchart.annotation_1",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"fillColor=none;container=1",DiamondContainerBlock:"shape=rhombus;fillColor=none;container=1",RoundedRectangleContainerBlock:"fillColor=none;container=1;rounded=1;absoluteArcSize=1;arcSize=24",
CircleContainerBlock:"shape=ellipse;fillColor=none;container=1",PillContainerBlock:"arcSize=50;fillColor=none;container=1",IsoscelesTriangleBlock:"triangle;direction=north",RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",PentagonBlock:"shape=mxgraph.basic.pentagon",HexagonBlock:"shape=hexagon",OctagonBlock:"shape=mxgraph.basic.octagon",CrossBlock:"shape=cross;size=0.6",CloudBlock:"ellipse;shape=cloud",HeartBlock:"shape=mxgraph.basic.heart",RightArrowBlock:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.3",
DoubleArrowBlock:"shape=doubleArrow;arrowWidth=0.5;arrowSize=0.3",CalloutBlock:"shape=mxgraph.basic.rectangular_callout",ShapeCircleBlock:"ellipse",ShapePolyStarBlock:"shape=mxgraph.basic.star",ShapeDiamondBlock:"rhombus",UI2HotspotBlock:"opacity=50;strokeColor=none",AndroidDevice:"mxCompositeShape",AndroidAlertDialog:"mxCompositeShape",AndroidDateDialog:"mxCompositeShape",AndroidTimeDialog:"mxCompositeShape",AndroidListItems:"mxCompositeShape",AndroidTabs:"mxCompositeShape",AndroidProgressBar:"mxCompositeShape",
AndroidImageBlock:"mxCompositeShape",AndroidTextBlock:"mxCompositeShape",AndroidActionBar:"mxCompositeShape",AndroidButton:"mxCompositeShape",AndroidTextBox:"mxCompositeShape",AndroidRadioButton:"mxCompositeShape",AndroidCheckBox:"mxCompositeShape",AndroidToggle:"mxCompositeShape",AndroidSlider:"mxCompositeShape",AndroidIconCheck:"shape=mxgraph.ios7.misc.check",AndroidIconCancel:"shape=mxgraph.atlassian.x",AndroidIconCollapse:"shape=mxgraph.ios7.misc.up",AndroidIconExpand:"shape=mxgraph.ios7.misc.down",
AndroidIconNext:"shape=mxgraph.ios7.misc.right",AndroidIconPrevious:"shape=mxgraph.ios7.misc.left",AndroidIconRefresh:NaN,AndroidIconInformation:"shape=mxgraph.ios7.icons.info",AndroidIconSearch:"shape=mxgraph.ios7.icons.looking_glass",AndroidIconSettings:"shape=mxgraph.ios7.icons.volume;direction=south",AndroidIconTrash:"shape=mxgraph.ios7.icons.trashcan",AndroidIconEmail:"shape=mxgraph.mockup.misc.mail2",AndroidIconNew:"shape=mxgraph.ios7.misc.flagged",iOSDeviceiPhoneSE:"shape=mxgraph.ios7.misc.iphone",
iOSDeviceiPhone6s:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6sPlus:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPadPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadLandscape:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProLandscape:"shape=mxgraph.ios7.misc.ipad10inch",iOSButton:"fillColor=none;strokeColor=none;",iOSSegmentedControl:"mxCompositeShape",iOSStepper:"shape=mxgraph.ios7.misc.adjust",iOSToggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor2=#aaaaaa;fillColor2=#ffffff",
iOSSlider:"mxCompositeShape",iOSProgressBar:"mxCompositeShape",iOSPageControls:"mxCompositeShape",iOSStatusBar:"mxCompositeShape",iOSSearchBar:"mxCompositeShape",iOSNavBar:"mxCompositeShape",iOSTabs:"mxCompositeShape",iOSUniversalKeyboard:"shape=mxgraph.ios.iKeybLett",iOSDatePicker:"mxCompositeShape",iOSTimePicker:"mxCompositeShape",iOSCountdownPicker:"mxCompositeShape",iOSBasicCell:"mxCompositeShape",iOSSubtitleCell:"mxCompositeShape",iOSRightDetailCell:"mxCompositeShape",iOSLeftDetailCell:"mxCompositeShape",
iOSTableGroupedSectionBreak:"mxCompositeShape",iOSTablePlainHeaderFooter:"mxCompositeShape",MindMapBlock:"",MindMapStadiumBlock:"arcSize=50",MindMapCloud:"shape=cloud",MindMapCircle:"shape=ellipse",MindMapIsoscelesTriangleBlock:"shape=triangle;direction=north",MindMapDiamondBlock:"shape=rhombus",MindMapPentagonBlock:"shape=mxgraph.basic.pentagon",MindMapHexagonBlock:"shape=hexagon",MindMapOctagonBlock:"shape=mxgraph.basic.octagon",MindMapCrossBlock:"shape=mxgraph.basic.cross2;dx=20",ERDEntityBlock:"mxCompositeShape",
ERDEntityBlock2:"mxCompositeShape",ERDEntityBlock3:"mxCompositeShape",ERDEntityBlock4:"mxCompositeShape",SMPage:"mxCompositeShape",SMHome:"mxCompositeShape",SMPrint:"mxCompositeShape",SMSearch:"mxCompositeShape",SMSettings:"mxCompositeShape",SMSitemap:"mxCompositeShape",SMSuccess:"mxCompositeShape",SMVideo:"mxCompositeShape",SMAudio:"mxCompositeShape",SMCalendar:"mxCompositeShape",SMChart:"mxCompositeShape",SMCloud:"mxCompositeShape",SMDocument:"mxCompositeShape",SMForm:"mxCompositeShape",SMGame:"mxCompositeShape",
SMUpload:"mxCompositeShape",UMLClassBlock:"",UMLActiveClassBlock:"shape=process",UMLMultiplicityBlock:"mxCompositeShape",UMLPackageBlock:"shape=folder;tabPosition=left",UMLConstraintBlock:"mxCompositeShape",UMLNoteBlock:"shape=note;size=15",UMLTextBlock:"mxCompositeShape",UMLActorBlock:"shape=umlActor;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;whiteSpace=nowrap",UMLUseCaseBlock:"shape=ellipse",UMLCircleContainerBlock:"shape=ellipse;container=1",UMLRectangleContainerBlock:"container=1",
UMLOptionLoopBlock:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLAlternativeBlock2:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLStartBlock:"shape=ellipse;fillColor=#000000",UMLStateBlock:"rounded=1;arcSize=20",UMLDecisionBlock:"shape=rhombus;",UMLHForkJoinBlock:"fillColor=#000000",UMLVForkJoinBlock:"fillColor=#000000",UMLFlowFinalBlock:"shape=mxgraph.flowchart.or",UMLHistoryStateBlock:"shape=ellipse",UMLEndBlock:"shape=mxgraph.bpmn.shape;outline=end;symbol=terminate;strokeColor=#000000;fillColor=#ffffff",
UMLObjectBlock:"",UMLSendSignalBlock:"shape=mxgraph.sysml.sendSigAct",UMLReceiveSignalBlock:"shape=mxgraph.sysml.accEvent;flipH=1",UMLAcceptTimeEventActionBlock:"shape=mxgraph.sysml.timeEvent",UMLOffPageLinkBlock:"shape=mxgraph.sysml.sendSigAct;direction=south",UMLMultiLanePoolBlock:"mxCompositeShape",UMLMultiLanePoolRotatedBlock:"mxCompositeShape",UMLMultidimensionalSwimlane:"mxCompositeShape",UMLActivationBlock:"",UMLDeletionBlock:"shape=mxgraph.sysml.x;strokeWidth=4",UMLSeqEntityBlock:"shape=mxgraph.electrical.radio.microphone_1;direction=north",
UMLComponentBlock:"shape=component;align=left;spacingLeft=36",UMLNodeBlock:"shape=cube;size=12;flipH=1",UMLComponentInterfaceBlock:"shape=ellipse",UMLComponentBoxBlock:"mxCompositeShape",UMLProvidedInterfaceBlock:"shape=lollipop;direction=south",UMLRequiredInterfaceBlock:"shape=requires;direction=north",UMLEntityBlock:"",UMLWeakEntityBlock:"shape=ext;double=1",UMLAttributeBlock:"shape=ellipse",UMLMultivaluedAttributeBlock:"shape=doubleEllipse",UMLRelationshipBlock:"shape=rhombus",UMLWeakRelationshipBlock:"shape=rhombus;double=1",
BPMNActivity:"mxCompositeShape",BPMNEvent:"mxCompositeShape",BPMNChoreography:"mxCompositeShape",BPMNConversation:"mxCompositeShape",BPMNGateway:"mxCompositeShape",BPMNData:"mxCompositeShape",BPMNDataStore:"shape=datastore",BPMNAdvancedPoolBlock:"mxCompositeShape",BPMNAdvancedPoolBlockRotated:"mxCompositeShape",BPMNBlackPool:"mxCompositeShape",DFDExternalEntityBlock:"mxCompositeShape",DFDExternalEntityBlock2:"",YDMDFDProcessBlock:"shape=ellipse",YDMDFDDataStoreBlock:"shape=partialRectangle;right=0;left=0",
GSDFDProcessBlock:"shape=swimlane;rounded=1;arcSize=10",GSDFDProcessBlock2:"rounded=1;arcSize=10;",GSDFDDataStoreBlock:"mxCompositeShape",GSDFDDataStoreBlock2:"shape=partialRectangle;right=0",OrgBlock:"",DefaultTableBlock:"mxCompositeShape",VSMCustomerSupplierBlock:"shape=mxgraph.lean_mapping.outside_sources",VSMDedicatedProcessBlock:"mxCompositeShape",VSMSharedProcessBlock:"mxCompositeShape",VSMWorkcellBlock:"mxCompositeShape",VSMDatacellBlock:"mxCompositeShape",VSMInventoryBlock:"mxCompositeShape",
VSMSupermarketBlock:"mxCompositeShape",VSMPhysicalPullBlock:"shape=mxgraph.lean_mapping.physical_pull;direction=south",VSMFIFOLaneBlock:"mxCompositeShape",VSMSafetyBufferStockBlock:"mxCompositeShape",VSMExternalShipmentAirplaneBlock:"shape=mxgraph.lean_mapping.airplane_7",VSMExternalShipmentForkliftBlock:"shape=mxgraph.lean_mapping.move_by_forklift",VSMExternalShipmentTruckBlock:"shape=mxgraph.lean_mapping.truck_shipment",VSMExternalShipmentBoatBlock:"shape=mxgraph.lean_mapping.boat_shipment",VSMProductionControlBlock:"mxCompositeShape",
VSMOtherInformationBlock:"",VSMSequencedPullBallBlock:"shape=mxgraph.lean_mapping.sequenced_pull_ball",VSMMRPERPBlock:"shape=mxgraph.lean_mapping.mrp_erp;whiteSpace=wrap",VSMLoadLevelingBlock:"shape=mxgraph.lean_mapping.load_leveling",VSMGoSeeBlock:"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1",VSMGoSeeProductionBlock:"mxCompositeShape",VSMVerbalInfoBlock:"shape=mxgraph.lean_mapping.verbal",VSMKaizenBurstBlock:"shape=mxgraph.lean_mapping.kaizen_lightening_burst",VSMOperatorBlock:"shape=mxgraph.lean_mapping.operator;flipV=1",
VSMTimelineBlock:"mxCompositeShape",VSMQualityProblemBlock:"shape=mxgraph.lean_mapping.quality_problem",VSMProductionKanbanSingleBlock:"shape=card;size=18;flipH=1;",VSMProductionKanbanBatchBlock:"mxCompositeShape",VSMWithdrawalKanbanBlock:"shape=mxgraph.lean_mapping.withdrawal_kanban",VSMSignalKanbanBlock:"shape=triangle;direction=south",VSMKanbanPostBlock:"shape=mxgraph.lean_mapping.kanban_post",VSMShipmentArrow:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.13",VSMPushArrow:"shape=mxgraph.lean_mapping.push_arrow",
AWSElasticComputeCloudBlock2:"strokeColor=none;shape=mxgraph.aws3.ec2",AWSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.instance",AWSInstancesBlock2:"strokeColor=none;shape=mxgraph.aws3.instances",AWSAMIBlock2:"strokeColor=none;shape=mxgraph.aws3.ami",AWSDBonInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.db_on_instance",AWSInstanceCloudWatchBlock2:"strokeColor=none;shape=mxgraph.aws3.instance_with_cloudwatch",AWSElasticIPBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_ip",AWSHDFSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.hdfs_cluster",
AWSAutoScalingBlock2:"strokeColor=none;shape=mxgraph.aws3.auto_scaling",AWSEC2OptimizedInstance2:"strokeColor=none;shape=mxgraph.aws3.optimized_instance","AWSAmazonEC2(Spotinstance)":"strokeColor=none;shape=mxgraph.aws3.spot_instance",AWSAmazonECR:"strokeColor=none;shape=mxgraph.aws3.ecr",AWSAmazonECS:"strokeColor=none;shape=mxgraph.aws3.ecs",AWSLambda2:"strokeColor=none;shape=mxgraph.aws3.lambda",AWSElasticLoadBalancing:"strokeColor=none;shape=mxgraph.aws3.elastic_load_balancing",AWSElasticLoadBlock2:"strokeColor=none;shape=mxgraph.aws3.classic_load_balancer",
AWSDirectConnectBlock3:"strokeColor=none;shape=mxgraph.aws3.direct_connect",AWSElasticNetworkBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_network_interface",AWSRoute53Block2:"strokeColor=none;shape=mxgraph.aws3.route_53",AWSHostedZoneBlock2:"strokeColor=none;shape=mxgraph.aws3.hosted_zone;fontColor=#FFFFFF;fontStyle=1",AWSRouteTableBlock2:"strokeColor=none;shape=mxgraph.aws3.route_table",AWSVPCBlock2:"strokeColor=none;shape=mxgraph.aws3.vpc",AWSVPNConnectionBlock2:"strokeColor=none;shape=mxgraph.aws3.vpn_connection",
AWSVPNGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.vpn_gateway",AWSCustomerGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.customer_gateway",AWSCustomerGatewayBlock3:"strokeColor=none;shape=mxgraph.aws3.customer_gateway",AWSInternetGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.internet_gateway",AWSRouterBlock2:"strokeColor=none;shape=mxgraph.aws3.router",AWSRouterBlock3:"strokeColor=none;shape=mxgraph.aws3.router","AWSAmazonVPC(endpoints)":"strokeColor=none;shape=mxgraph.aws3.endpoints",
"AWSAmazonVPC(flowlogs)":"strokeColor=none;shape=mxgraph.aws3.flow_logs","AWSAmazonVPC(VPCNATgateway)":"strokeColor=none;shape=mxgraph.aws3.vpc_nat_gateway",AWSVPCPeering3:"strokeColor=none;shape=mxgraph.aws3.vpc_peering",AWSSimpleStorageBlock2:"strokeColor=none;shape=mxgraph.aws3.s3",AWSBucketBlock2:"strokeColor=none;shape=mxgraph.aws3.bucket;fontStyle=1;fontColor=#ffffff",AWSBuckethWithObjectsBlock2:"strokeColor=none;shape=mxgraph.aws3.bucket_with_objects",AWSObjectBlock2:"strokeColor=none;shape=mxgraph.aws3.object;fontStyle=1;fontColor=#ffffff",
AWSImportExportBlock2:"strokeColor=none;shape=mxgraph.aws3.import_export",AWSStorageGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.storage_gateway",AWSElasticBlockStorageBlock2:"strokeColor=none;shape=mxgraph.aws3.volume;fontStyle=1;fontColor=#ffffff",AWSVolumeBlock3:"strokeColor=none;shape=mxgraph.aws3.volume;fontStyle=1;fontColor=#ffffff",AWSSnapshotBlock2:"strokeColor=none;shape=mxgraph.aws3.snapshot;fontStyle=1;fontColor=#ffffff",AWSGlacierArchiveBlock3:"strokeColor=none;shape=mxgraph.aws3.archive",
AWSGlacierVaultBlock3:"strokeColor=none;shape=mxgraph.aws3.vault",AWSAmazonEFS:"strokeColor=none;shape=mxgraph.aws3.efs",AWSGlacierBlock2:"strokeColor=none;shape=mxgraph.aws3.glacier",AWSAWSImportExportSnowball:"strokeColor=none;shape=mxgraph.aws3.snowball",AWSStorageGatewayCachedVolumn2:"strokeColor=none;shape=mxgraph.aws3.cached_volume","AWSStorageGatewayNon-CachedVolumn2":"strokeColor=none;shape=mxgraph.aws3.non_cached_volume",AWSStorageGatewayVirtualTapeLibrary2:"strokeColor=none;shape=mxgraph.aws3.virtual_tape_library",
AWSCloudFrontBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudfront",AWSDownloadDistBlock2:"strokeColor=none;shape=mxgraph.aws3.download_distribution",AWSStreamingBlock2:"strokeColor=none;shape=mxgraph.aws3.streaming_distribution",AWSEdgeLocationBlock2:"strokeColor=none;shape=mxgraph.aws3.edge_location",AWSItemBlock2:"strokeColor=none;shape=mxgraph.aws3.item",AWSItemsBlock2:"strokeColor=none;shape=mxgraph.aws3.items",AWSAttributeBlock2:"strokeColor=none;shape=mxgraph.aws3.attribute",AWSAttributesBlock2:"strokeColor=none;shape=mxgraph.aws3.attributes",
AWSRDBSBlock2:"strokeColor=none;shape=mxgraph.aws3.rds",AWSRDSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance",AWSRDSStandbyBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance_standby_multi_az",AWSRDSInstanceReadBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance_read_replica",AWSOracleDBBlock2:"strokeColor=none;shape=mxgraph.aws3.oracle_db_instance",AWSMySQLDBBlock2:"strokeColor=none;shape=mxgraph.aws3.mysql_db_instance",AWSDynamoDBBlock2:"strokeColor=none;shape=mxgraph.aws3.dynamo_db",
AWSSimpleDatabaseBlock3:"strokeColor=none;shape=mxgraph.aws2.database.simpledb",AWSSimpleDatabaseDomainBlock3:"strokeColor=none;shape=mxgraph.aws2.database.simpledb_domain",AWSTableBlock2:"strokeColor=none;shape=mxgraph.aws3.table",AWSAmazonRedShiftBlock3:"strokeColor=none;shape=mxgraph.aws3.redshift",AWSElastiCacheNodeBlock2:"strokeColor=none;shape=mxgraph.aws3.cache_node",AWSElastiCacheBlock2:"strokeColor=none;shape=mxgraph.aws3.elasticache",AWSDynamoDBGlobalSecondaryIndexes2:"strokeColor=none;shape=mxgraph.aws3.global_secondary_index",
AWSAmazonElastiCacheMemcache2:"strokeColor=none;shape=mxgraph.aws3.memcached",AWSAmazonElastiCacheRedis2:"strokeColor=none;shape=mxgraph.aws3.redis",AWSAmazonRDSMSSQLInstance2:"strokeColor=none;shape=mxgraph.aws3.ms_sql_instance_2",AWSMSSQLDBBlock3:"strokeColor=none;shape=mxgraph.aws3.ms_sql_instance",AWSAmazonRDSMySQLDBInstance2:"strokeColor=none;shape=mxgraph.aws3.mysql_db_instance_2",AWSAmazonRDSOracleDBInstance2:"strokeColor=none;shape=mxgraph.aws3.oracle_db_instance_2",AWSRDSReplicasetswithPIOP2:"strokeColor=none;shape=mxgraph.aws3.piop",
AWSAmazonRDSPostgreSQL2:"strokeColor=none;shape=mxgraph.aws3.postgre_sql_instance",AWSRDSMasterSQL2:"strokeColor=none;shape=mxgraph.aws3.sql_master",AWSRDSSlaveSQL2:"strokeColor=none;shape=mxgraph.aws3.sql_slave","AWSAmazonRedshift(densecomputenode)":"strokeColor=none;shape=mxgraph.aws3.dense_compute_node","AWSAmazonRedshift(densestoragenode)":"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAWSDatabaseMigrationService:"strokeColor=none;shape=mxgraph.aws3.database_migration_service",AWSACM:"strokeColor=none;shape=mxgraph.aws3.certificate_manager",
AWSAmazonInspector:"strokeColor=none;shape=mxgraph.aws3.inspector",AWSAWSCloudHSM:"strokeColor=none;shape=mxgraph.aws3.cloudhsm",AWSDirectoryService2:"strokeColor=none;shape=mxgraph.aws3.directory_service",AWSAWSKMS:"strokeColor=none;shape=mxgraph.aws3.kms",AWSAWSWAF:"strokeColor=none;shape=mxgraph.aws3.waf","AWSACM(certificate-manager)":"strokeColor=none;shape=mxgraph.aws3.certificate_manager_2",AWSSESBlock2:"strokeColor=none;shape=mxgraph.aws3.ses",AWSEmailBlock2:"strokeColor=none;shape=mxgraph.aws3.email",
AWSSNSBlock2:"strokeColor=none;shape=mxgraph.aws3.sns",AWSSQSBlock3:"strokeColor=none;shape=mxgraph.aws3.sqs",AWSQueueBlock2:"strokeColor=none;shape=mxgraph.aws3.queue",AWSMessageBlock2:"strokeColor=none;shape=mxgraph.aws3.message",AWSDeciderBlock2:"strokeColor=none;shape=mxgraph.aws3.decider",AWSSWFBlock2:"strokeColor=none;shape=mxgraph.aws3.swf",AWSWorkerBlock2:"strokeColor=none;shape=mxgraph.aws3.worker",AWSCloudSearchBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudsearch",AWSCloudSearchMetadataBlock3:"strokeColor=none;shape=mxgraph.aws3.search_documents",
AWSElasticTranscoder3:"strokeColor=none;shape=mxgraph.aws3.elastic_transcoder",AWSAmazonAPIGateway:"strokeColor=none;shape=mxgraph.aws3.api_gateway",AWSAppStream2:"strokeColor=none;shape=mxgraph.aws3.appstream",AWSCloudFormationBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudformation",AWSDataPipelineBlock3:"strokeColor=none;shape=mxgraph.aws3.data_pipeline",AWSDataPipelineBlock2:"strokeColor=none;shape=mxgraph.aws3.data_pipeline",AWSTemplageBlock2:"strokeColor=none;shape=mxgraph.aws3.template",
AWSStackBlock2:"strokeColor=none;shape=mxgraph.aws3.stack_aws_cloudformation",AWSBeanStockBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk",AWSApplicationBlock2:"strokeColor=none;shape=mxgraph.aws3.application",AWSBeanstalkDeploymentBlock3:"strokeColor=none;shape=mxgraph.aws3.deployment",AWSIAMBlock3:"strokeColor=none;shape=mxgraph.aws3.iam",AWSIAMSTSBlock3:"strokeColor=none;shape=mxgraph.aws3.sts",AWSIAMAddonBlock2:"strokeColor=none;shape=mxgraph.aws3.add_on",AWSCloudWatchBlock3:"strokeColor=none;shape=mxgraph.aws3.cloudwatch",
AWSCloudWatchAlarmBlock2:"strokeColor=none;shape=mxgraph.aws3.alarm",AWSIAMSecurityTokenService2:"strokeColor=none;shape=mxgraph.aws3.sts_2",AWSIAMDataEncryptionKey2:"strokeColor=none;shape=mxgraph.aws3.data_encryption_key",AWSIAMEncryptedData2:"strokeColor=none;shape=mxgraph.aws3.encrypted_data","AWSAWSIAM(long-termsecuritycredential)":"strokeColor=none;shape=mxgraph.aws3.long_term_security_credential",AWSIAMMFAToken2:"strokeColor=none;shape=mxgraph.aws3.mfa_token",AWSIAMPermissions2:"strokeColor=none;shape=mxgraph.aws3.permissions_2",
AWSIAMRoles2:"strokeColor=none;shape=mxgraph.aws3.role","AWSAWSIAM(temporarysecuritycredential)":"strokeColor=none;shape=mxgraph.aws3.long_term_security_credential",AWSCloudTrail2:"strokeColor=none;shape=mxgraph.aws3.cloudtrail",AWSConfig2:"strokeColor=none;shape=mxgraph.aws3.config",AWSOpsWorksBlock3:"strokeColor=none;shape=mxgraph.aws3.opsworks",AWSAWSServiceCatalog:"strokeColor=none;shape=mxgraph.aws3.service_catalog",AWSTrustedAdvisor2:"strokeColor=none;shape=mxgraph.aws3.trusted_advisor",AWSOpsWorksApps2:"strokeColor=none;shape=mxgraph.aws3.apps",
AWSOpsWorksDeployments2:"strokeColor=none;shape=mxgraph.aws3.deployments",AWSOpsWorksInstances2:"strokeColor=none;shape=mxgraph.aws3.instances_2",AWSOpsWorksLayers2:"strokeColor=none;shape=mxgraph.aws3.layers",AWSOpsWorksMonitoring2:"strokeColor=none;shape=mxgraph.aws3.monitoring",AWSOpsWorksPermissions2:"strokeColor=none;shape=mxgraph.aws3.permissions",AWSOpsWorksResources2:"strokeColor=none;shape=mxgraph.aws3.resources",AWSOpsWorksStack2:"strokeColor=none;shape=mxgraph.aws3.stack_aws_opsworks",
AWSMechanicalTurkBlock3:"strokeColor=none;shape=mxgraph.aws3.mechanical_turk",AWSHumanITBlock2:"strokeColor=none;shape=mxgraph.aws3.human_intelligence_tasks_hit",AWSAssignmentTaskBlock2:"strokeColor=none;shape=mxgraph.aws3.requester",AWSWorkersBlock2:"strokeColor=none;shape=mxgraph.aws3.users",AWSRequesterBlock2:"strokeColor=none;shape=mxgraph.aws3.assignment_task",AWSAndroidBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#96BF3D",AWSiOSBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#CFCFCF",
AWSJavaBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#EE472A",AWSJavaScript:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#205E00",AWSNetBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#115193",AWSNodeJSBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#8CC64F",AWSPHPBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#5A69A4",AWSPythonBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#FFD44F",AWSRubyBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#AE1F23",
AWSXamarin:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#4090D7",AWSCLIBlock3:"strokeColor=none;shape=mxgraph.aws3.cli;fillColor=#444444",AWSEclipseToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_eclipse;fillColor=#342074",AWSVisualStudioToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_visual_studio;fillColor=#53B1CB",AWSWindowsPowershellToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_windows_powershell;fillColor=#737373",AWSAmazonElasticsearchService:"strokeColor=none;shape=mxgraph.aws3.elasticsearch_service",
AWSElasticMapReduceBlock2:"strokeColor=none;shape=mxgraph.aws3.emr",AWSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.emr_cluster",AWSEMREngine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine",AWSEMRMapRM3Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m3",AWSEMRMapRM5Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m5",AWSEMRMapRM7Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m7",AWSKinesis2:"strokeColor=none;shape=mxgraph.aws3.kinesis","AWSAmazonKinesis(AmazonKinesisAnalytics)":"strokeColor=none;shape=mxgraph.aws3.kinesis",
AWSKinesisEnabledApp2:"strokeColor=none;shape=mxgraph.aws3.kinesis_enabled_app","AWSAmazonKinesis(AmazonKinesisFirehose)":"strokeColor=none;shape=mxgraph.aws3.kinesis_firehose","AWSAmazonKinesis(AmazonKinesisStreams)":"strokeColor=none;shape=mxgraph.aws3.kinesis_streams",AWSAmazonMachineLearning:"strokeColor=none;shape=mxgraph.aws3.machine_learning",AWSAmazonQuickSight:"strokeColor=none;shape=mxgraph.aws3.quicksight",AWSCognito2:"strokeColor=none;shape=mxgraph.aws3.cognito",AWSMobileAnalytics2:"strokeColor=none;shape=mxgraph.aws3.mobile_analytics",
AWSAWSDeviceFarm:"strokeColor=none;shape=mxgraph.aws3.device_farm",AWSAWSMobileHub:"strokeColor=none;shape=mxgraph.aws3.mobile_hub;gradientColor=#AD688A;gradientDirection=east",AWSTopicBlock2:"strokeColor=none;shape=mxgraph.aws3.topic_2;fontStyle=1;fontColor=#ffffff;verticalAlign=top;spacingTop=-5",AWSEmailNotificationBlock2:"strokeColor=none;shape=mxgraph.aws3.email_notification",AWSHTTPNotificationBlock2:"strokeColor=none;shape=mxgraph.aws3.http_notification",AWSAWSCodeCommit:"strokeColor=none;shape=mxgraph.aws3.codecommit",
AWSCodeDeploy2:"strokeColor=none;shape=mxgraph.aws3.codedeploy",AWSAWSCodePipeline:"strokeColor=none;shape=mxgraph.aws3.codepipeline",AWSWorkDocs2:"strokeColor=none;shape=mxgraph.aws3.workdocs",AWSAmazonWorkMail:"strokeColor=none;shape=mxgraph.aws3.workmail",AWSAmazonWorkSpaces2:"strokeColor=none;shape=mxgraph.aws3.workspaces",AWSAWSIoT:"strokeColor=none;shape=mxgraph.aws3.aws_iot","AWSAWSIoT(action)":"strokeColor=none;shape=mxgraph.aws3.action","AWSAWSIoT(actuator)":"strokeColor=none;shape=mxgraph.aws3.actuator",
"AWSAWSIoT(certificate)":"strokeColor=none;shape=mxgraph.aws3.certificate","AWSAWSIoT(desiredstate)":"strokeColor=none;shape=mxgraph.aws3.desired_state","AWSAWSIoT(hardwareboard)":"strokeColor=none;shape=mxgraph.aws3.hardware_board","AWSAWSIoT(HTTP2protocol)":"strokeColor=none;shape=mxgraph.aws3.http_2_protocol","AWSAWSIoT(HTTPprotocol)":"strokeColor=none;shape=mxgraph.aws3.http_protocol","AWSAWSIoT(MQTTprotocol)":"strokeColor=none;shape=mxgraph.aws3.mqtt_protocol","AWSAWSIoT(policy)":"strokeColor=none;shape=mxgraph.aws3.policy",
"AWSAWSIoT(reportedstate)":"strokeColor=none;shape=mxgraph.aws3.reported_state","AWSAWSIoT(rule)":"strokeColor=none;shape=mxgraph.aws3.rule","AWSAWSIoT(sensor)":"strokeColor=none;shape=mxgraph.aws3.sensor","AWSAWSIoT(servo)":"strokeColor=none;shape=mxgraph.aws3.servo","AWSAWSIoT(shadow)":"strokeColor=none;shape=mxgraph.aws3.shadow","AWSAWSIoT(simulator)":"strokeColor=none;shape=mxgraph.aws3.simulator","AWSAWSIoT(thingbank)":"strokeColor=none;shape=mxgraph.aws3.bank","AWSAWSIoT(thingbicycle)":"strokeColor=none;shape=mxgraph.aws3.bicycle",
"AWSAWSIoT(thingcamera)":"strokeColor=none;shape=mxgraph.aws3.camera","AWSAWSIoT(thingcar)":"strokeColor=none;shape=mxgraph.aws3.car","AWSAWSIoT(thingcart)":"strokeColor=none;shape=mxgraph.aws3.cart","AWSAWSIoT(thingcoffeepot)":"strokeColor=none;shape=mxgraph.aws3.coffee_pot","AWSAWSIoT(thingdoorlock)":"strokeColor=none;shape=mxgraph.aws3.door_lock","AWSAWSIoT(thingfactory)":"strokeColor=none;shape=mxgraph.aws3.factory","AWSAWSIoT(thinggeneric)":"strokeColor=none;shape=mxgraph.aws3.generic","AWSAWSIoT(thinghouse)":"strokeColor=none;shape=mxgraph.aws3.house",
"AWSAWSIoT(thinglightbulb)":"strokeColor=none;shape=mxgraph.aws3.lightbulb","AWSAWSIoT(thingmedicalemergency)":"strokeColor=none;shape=mxgraph.aws3.medical_emergency","AWSAWSIoT(thingpoliceemergency)":"strokeColor=none;shape=mxgraph.aws3.police_emergency","AWSAWSIoT(thingthermostat)":"strokeColor=none;shape=mxgraph.aws3.thermostat","AWSAWSIoT(thingtravel)":"strokeColor=none;shape=mxgraph.aws3.travel","AWSAWSIoT(thingutility)":"strokeColor=none;shape=mxgraph.aws3.utility","AWSAWSIoT(thingwindfarm)":"strokeColor=none;shape=mxgraph.aws3.windfarm",
"AWSAWSIoT(topic)":"strokeColor=none;shape=mxgraph.aws3.topic",AWSCloudBlock2:"strokeColor=none;shape=mxgraph.aws3.cloud",AWSVPCloudBlock3:"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud",AWSUserBlock2:"strokeColor=none;shape=mxgraph.aws3.user",AWSUsersBlock2:"strokeColor=none;shape=mxgraph.aws3.users",AWSClientBlock2:"strokeColor=none;shape=mxgraph.aws3.management_console",AWSMobileClientBlock2:"strokeColor=none;shape=mxgraph.aws3.mobile_client",AWSGenericDatabaseBlock3:"strokeColor=none;shape=mxgraph.aws3.generic_database",
AWSDiskBlock3:"strokeColor=none;shape=mxgraph.aws3.disk",AWSTapeStorageBlock3:"strokeColor=none;shape=mxgraph.aws3.tape_storage",AWSMediaBlock2:"strokeColor=none;shape=mxgraph.aws3.multimedia",AWSDataCenterBlock2:"strokeColor=none;shape=mxgraph.aws3.corporate_data_center",AWSServerBlock2:"strokeColor=none;shape=mxgraph.aws3.traditional_server",AWSInternetBlock2:"strokeColor=none;shape=mxgraph.aws2.non-service_specific.internet",AWSForumsBlock3:"strokeColor=none;shape=mxgraph.aws3.forums",AWSManagementBlock2:"strokeColor=none;shape=mxgraph.aws3.management_console",
AWSAmazonElasticCacheNode2:"strokeColor=none;shape=mxgraph.aws3.cache_node",AWSAmazonRedshiftDW1Cluster2:"strokeColor=none;shape=mxgraph.aws3.dense_compute_node",AWSAmazonRedshiftDW2Cluster2:"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAmazonRedshiftSSDFamilyCluster2:"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAmazonRoute53RouteTable2:"strokeColor=none;shape=mxgraph.aws3.route_table",AWSSubnetBlock2:"strokeColor=none;shape=mxgraph.aws3.permissions",AWSRoundedRectangleContainerBlock2:"mxCompositeShape",
ACAccessControlBlock:"strokeColor=none;shape=mxgraph.azure.access_control",ACAPIAppsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.api_app",ACAPIManagementBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.api_management",ACAppInsightsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.application_insights",ACAppServicesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.app_service",ACAutoscalingBlock:"strokeColor=none;shape=mxgraph.azure.autoscale",ACAzureActiveDirectoryBlock:"strokeColor=none;shape=mxgraph.azure.azure_active_directory",
ACAzurealertBlock:"strokeColor=none;shape=mxgraph.azure.azure_alert",ACAzureAutomationBlock:"strokeColor=none;shape=mxgraph.azure.automation",ACAzureBatchBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_batch",ACAzureRedisBlock:"strokeColor=none;shape=mxgraph.azure.azure_cache",ACAzureFilesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_files_service",ACAzureloadbalancerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_automatic_load_balancer",ACAzureMarketplaceBlock:"strokeColor=none;shape=mxgraph.azure.azure_marketplace",
ACAzureRightManagementRMSBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_rights_management_rms",ACAzureSDKBlock:"strokeColor=none;shape=mxgraph.azure.azure_sdk",ACAzureSearchBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_search",ACAzureSQLdatabaseBlock:"strokeColor=none;shape=mxgraph.azure.sql_database_sql_azure",ACAzuresubscriptionBlock:"strokeColor=none;shape=mxgraph.azure.azure_subscription",ACAzureWebsitesBlock:"strokeColor=none;shape=mxgraph.azure.azure_website",ACBackupServiceBlock:"strokeColor=none;shape=mxgraph.azure.backup_service",
ACBitbucketcodesourceBlock:"strokeColor=none;shape=mxgraph.azure.bitbucket_code_source",ACBizTalkServicesBlock:"strokeColor=none;shape=mxgraph.azure.biztalk_services",ACCloudServiceBlock:"strokeColor=none;shape=mxgraph.azure.cloud_service",ACCodePlexBlock:"strokeColor=none;shape=mxgraph.azure.codeplex_code_source",ACContentDeliveryNetworkBlock:"strokeColor=none;shape=mxgraph.azure.content_delivery_network",ACDataFactoryBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.data_factory",ACDocumentDBBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.documentdb",
ACDropboxcodesourceBlock:"strokeColor=none;shape=mxgraph.azure.dropbox_code_source",ACEventsHubBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.event_hubs",ACExpressRouteBlock:"strokeColor=none;shape=mxgraph.azure.express_route",ACGitHubBlock:"strokeColor=none;shape=mxgraph.azure.github_code",ACGitrepositoryBlock:"strokeColor=none;shape=mxgraph.azure.git_repository",ACHDInsightBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hdinsight",ACHealthmonitoringBlock:"strokeColor=none;shape=mxgraph.azure.health_monitoring",
ACHealthyBlock:"strokeColor=none;shape=mxgraph.azure.healthy",ACHybridConnectionBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hybrid_connections",ACBizTalkhybridconnectionBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hybrid_connection_manager",ACKeyVaultBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.key_vault",ACLogicAppBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.logic_app",ACMachineLearningBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.machine_learning",ACMediaServicesBlock:"strokeColor=none;shape=mxgraph.azure.media_service",
ACMicrosoftaccountBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.microsoft_account",ACMicrosoftAzureBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.microsoft_azure",ACMobileEngagementBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.mobile_engagement",ACMobileServicesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.mobile_app",ACMultiFactorAuthBlock:"strokeColor=none;shape=mxgraph.azure.multi_factor_authentication",ACMySQLdatabaseBlock:"strokeColor=none;shape=mxgraph.azure.mysql_database",ACNotificationHubsBlock:"strokeColor=none;shape=mxgraph.azure.notification_hub",
ACNotificationtopicBlock:"strokeColor=none;shape=mxgraph.azure.notification_topic",ACOperationalInsightsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.operational_insights",ACOSimageBlock:"strokeColor=none;shape=mxgraph.azure.operating_system_image",ACRemoteAppBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.remoteapp",ACrpdRemotingfileBlock:"strokeColor=none;shape=mxgraph.azure.rdp_remoting_file",ACSchedulerBlock:"strokeColor=none;shape=mxgraph.azure.scheduler",ACServiceBusBlock:"strokeColor=none;shape=mxgraph.azure.service_bus",
ACServiceBusQueueBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_queues",ACServiceBusRelayBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_relay",ACServiceBusTopicBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_topics_and_subscriptions",ACServiceEndpointBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.service_endpoint",ACServicepackageBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.service_package",ACSiteRecoveryBlock:"strokeColor=none;shape=mxgraph.azure.hyper_v_recovery_manager",
ACSQLdatabasegenericBlock:"strokeColor=none;shape=mxgraph.azure.sql_database",ACSQLdatasyncBlock:"strokeColor=none;shape=mxgraph.azure.sql_datasync",ACSQLreportingdeprecatedBlock:"strokeColor=none;shape=mxgraph.azure.sql_reporting",ACStartuptaskBlock:"strokeColor=none;shape=mxgraph.azure.startup_task",ACStorageAzureBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_storage",ACStorageblobBlock:"strokeColor=none;shape=mxgraph.azure.storage_blob",ACStoragequeueBlock:"strokeColor=none;shape=mxgraph.azure.storage_queue",
ACStoragetableBlock:"strokeColor=none;shape=mxgraph.azure.storage_table",ACStorSimpleBlock:"strokeColor=none;shape=mxgraph.azure.storsimple",ACStreamAnalyticsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.stream_analytics",ACTrafficManagerBlock:"strokeColor=none;shape=mxgraph.azure.traffic_manager",ACAlienBlock:"strokeColor=none;shape=mxgraph.azure.unidentified_code_object",ACVHDBlock:"strokeColor=none;shape=mxgraph.azure.vhd",ACVHDdatadiskBlock:"strokeColor=none;shape=mxgraph.azure.vhd_data_disk",
ACVirtualmachineBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine",ACVirtualmachinecontainerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.virtual_machine_container",ACVirtualnetworkBlock:"strokeColor=none;shape=mxgraph.azure.virtual_network",ACVisualStudioOnlineBlock:"strokeColor=none;shape=mxgraph.azure.visual_studio_online",ACVMsymbolonlyBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine_feature",ACWebJobsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.webjobs",ACWebroleBlock:"strokeColor=none;shape=mxgraph.azure.web_role",
ACWebrolesBlock:"strokeColor=none;shape=mxgraph.azure.web_roles",ACWorkaccountBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.work_account",ACWorkerroleBlock:"strokeColor=none;shape=mxgraph.azure.worker_role",ACWorkerrolesBlock:"strokeColor=none;shape=mxgraph.azure.worker_roles",ADNSBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_dns",ACLoadBalancerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_load_balancer_feature",ACResourceGroupBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.resource_group",
ACVPNGatewayBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.vpn_gateway",AEActiveDirectoryFSPBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.d",AEADFSBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.ad_fs",AEAndroidPhoneBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.android_phone",AEappblankfortextBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.application_blank",AEAppGenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.app_generic",AEAppserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.application_server",
AEBackuplocalBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.backup_local",AEBackuponlineBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.backup_online",AECalendarBlock:"strokeColor=none;shape=mxgraph.mscae.general.calendar",AECertificateBlock:"strokeColor=none;shape=mxgraph.azure.certificate",AEClientAppBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.client_application",AECloudBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.internet",AEClusterserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.cluster_server",
AECodefileBlock:"strokeColor=none;shape=mxgraph.azure.code_file",AEConnectorsBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.connectors",AEDatabasegenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_generic",AEDatabaseserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_server",AEDatabasesyncBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_synchronization",AEDeviceBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.device",AEDirectaccessBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.direct_access_feature",
new mxPoint(4,7);break;case 6:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");e.geometry.offset=new mxPoint(4,5);break;case 7:e=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),e.geometry.offset=new mxPoint(4,5)}if(1==a.bpmnTaskType){var Bb=t(a,c),A=h(a,c),A=A.replace("strokeColor","fillColor"),Bb=Bb.replace("fillColor","strokeColor");""==A&&(A="fillColor=#000000;");""==Bb&&(Bb="strokeColor=#ffffff;");e.style+=Bb+A+"part=1;"}else e.style+=t(a,
c)+h(a,c)+"part=1;";e.geometry.relative=!0;e.vertex=!0;v.insert(e)}var Cb=0;0!=a.bpmnActivityMarker1&&Cb++;0!=a.bpmnActivityMarker2&&Cb++;var ca=0;1==Cb?ca=-7.5:2==Cb&&(ca=-19);if(0!=a.bpmnActivityMarker1){switch(a.bpmnActivityMarker1){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(ca,-20);e.style+=t(a,c)+h(a,c);break;case 2:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(ca,-20);e.style+=
t(a,c)+h(a,c);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(ca,-20);e.style+=t(a,c)+h(a,c);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(ca,-20);e.style+=t(a,c)+h(a,c);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");e.geometry.offset=new mxPoint(ca,-17);A=h(a,c);A=A.replace("strokeColor",
"fillColor");""==A&&(A="fillColor=#000000;");e.style+=A;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(ca,-18),e.style+=t(a,c)+h(a,c)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}2==Cb&&(ca=5);if(0!=a.bpmnActivityMarker2){switch(a.bpmnActivityMarker2){case 1:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");e.geometry.offset=new mxPoint(ca,-20);e.style+=t(a,c)+h(a,c);break;case 2:e=new mxCell("",new mxGeometry(.5,
1,15,15),"shape=mxgraph.bpmn.loop;part=1;");e.geometry.offset=new mxPoint(ca,-20);e.style+=t(a,c)+h(a,c);break;case 3:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(ca,-20);e.style+=t(a,c)+h(a,c);break;case 4:e=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");e.geometry.offset=new mxPoint(ca,-20);e.style+=t(a,c)+h(a,c);break;case 5:e=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");
e.geometry.offset=new mxPoint(ca,-17);A=h(a,c);A=A.replace("strokeColor","fillColor");""==A&&(A="fillColor=#000000;");e.style+=A;break;case 6:e=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),e.geometry.offset=new mxPoint(ca,-18),e.style+=t(a,c)+h(a,c)}e.geometry.relative=!0;e.vertex=!0;v.insert(e)}break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+q(a)+I(a)+J(a)+K(a)+ea(a)+ma(a)+
na(a)+Ka(a)+oa(a)+pa(a);v.value=k(a.Text);if(1==a.bpmnDashed)switch(a.bpmnEventGroup){case 0:v.style+="outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(a.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(a.bpmnEventType){case 1:v.style+="symbol=message;";break;case 2:v.style+="symbol=timer;";break;case 3:v.style+="symbol=escalation;";break;case 4:v.style+=
"symbol=conditional;";break;case 5:v.style+="symbol=link;";break;case 6:v.style+="symbol=error;";break;case 7:v.style+="symbol=cancel;";break;case 8:v.style+="symbol=compensation;";break;case 9:v.style+="symbol=signal;";break;case 10:v.style+="symbol=multiple;";break;case 11:v.style+="symbol=parallelMultiple;";break;case 12:v.style+="symbol=terminate;"}break;case "BPMNConversation":v.style+="shape=hexagon;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+n(a);v.value=k(a.Text);v.style=0==a.bpmnConversationType?v.style+
q(a):v.style+"strokeWidth=2;";a.bpmnIsSubConversation&&(e=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),e.geometry.offset=new mxPoint(-6,-17),e.style+=t(a,c)+h(a,c),e.geometry.relative=!0,e.vertex=!0,v.insert(e));break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+n(a);switch(a.bpmnGatewayType){case 0:v.style+="outline=none;symbol=general;";break;case 1:v.style+="outline=none;symbol=exclusiveGw;";
break;case 2:v.style+="outline=catching;symbol=multiple;";break;case 3:v.style+="outline=none;symbol=parallelGw;";break;case 4:v.style+="outline=end;symbol=general;";break;case 5:v.style+="outline=standard;symbol=multiple;";break;case 6:v.style+="outline=none;symbol=complexGw;";break;case 7:v.style+="outline=standard;symbol=parallelMultiple;"}break;case "BPMNData":v.style+="shape=note;size=14;"+t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+n(a);switch(a.bpmnDataType){case 1:e=new mxCell("",new mxGeometry(.5,1,12,
10),"shape=parallelMarker;part=1;");e.geometry.offset=new mxPoint(-6,-15);e.style+=t(a,c)+h(a,c);e.geometry.relative=!0;e.vertex=!0;v.insert(e);break;case 2:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");e.geometry.offset=new mxPoint(3,3);e.style+=t(a,c)+h(a,c);e.geometry.relative=!0;e.vertex=!0;v.insert(e);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";z=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;");z.geometry.offset=
new mxPoint(0,14);z.geometry.relative=!0;z.vertex=!0;v.insert(z);z.value=k(a.Text);z.style+=n(a);break;case 3:e=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),e.geometry.offset=new mxPoint(3,3),e.style+=h(a,c),e.geometry.relative=!0,e.vertex=!0,v.insert(e),A=h(a,c),A=A.replace("strokeColor","fillColor"),""==A&&(A="fillColor=#000000;"),e.style+=A,z=new mxCell("",new mxGeometry(0,0,d,20),"strokeColor=none;fillColor=none;"),z.geometry.offset=new mxPoint(0,
14),z.geometry.relative=!0,z.vertex=!0,v.insert(z),z.value=k(a.Text),z.style+=n(a)}break;case "BPMNBlackPool":v.style+=t(a,c)+h(a,c)+r(a,c)+u(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,d,b),"fillColor=#000000;strokeColor=none;opacity=30;");e.vertex=!0;v.insert(e);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";e=new mxCell("",new mxGeometry(0,0,.95*d,.95*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a);p=new mxCell("",
new mxGeometry(.05*d,.05*b,.95*d,.95*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a.Text);p.value=k(a.Text);break;case "GSDFDDataStoreBlock":v.style+="shape=partialRectangle;right=0;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a.Text);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,.2*d,b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a.Number);e.value=k(a.Number);break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+=
"shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==f.Class?v.value=k(a.Text):"VSMProductionControlBlock"==f.Class&&(v.value=k(a.Resources));v.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+I(a)+J(a)+K(a)+ea(a)+ma(a)+na(a)+oa(a)+pa(a)+Qa(a);"VSMDedicatedProcessBlock"==f.Class&&(e=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),e.geometry.relative=!0,e.geometry.offset=new mxPoint(4,-13),e.vertex=!0,v.insert(e),e.style+=h(a,c)+t(a,
c)+r(a,c)+u(a)+q(a));z=new mxCell("",new mxGeometry(0,0,d,15),"strokeColor=none;fillColor=none;part=1;");z.vertex=!0;v.insert(z);z.value=k(a.Title);z.style+=n(a.Title);break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=k(a.Text);v.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+I(a)+J(a)+K(a)+ea(a)+ma(a)+na(a)+oa(a)+Ka(a)+pa(a);z=new mxCell("",new mxGeometry(.1*d,.3*b,.8*d,.6*b),"part=1;");z.vertex=!0;v.insert(z);z.value=
k(a.Resource);z.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a.Resource);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+I(a)+J(a)+K(a)+ea(a)+ma(a)+na(a)+oa(a)+pa(a);v.value=k(a.Text);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";var aa=b,va=parseInt(a.Cells),O=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+"part=1;";0<va&&(aa/=va);U=[];M=[];for(g=1;g<=va;g++)U[g]=
new mxCell("",new mxGeometry(0,(g-1)*aa,d,aa),O),U[g].vertex=!0,v.insert(U[g]),U[g].value=k(a["cell_"+g]),U[g].style+=n(a["cell_"+g]);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+I(a)+J(a)+K(a)+ea(a)+ma(a)+na(a)+Ka(a)+oa(a)+pa(a);v.value=k(a.Text);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;"+t(a,c);aa=b;va=parseInt(a.Cells);O=h(a,c)+r(a,c)+q(a)+"part=1;fillColor=none;";
0<va&&(aa/=va);U=[];ka=[];for(g=1;g<=va;g++)U[g]=new mxCell("",new mxGeometry(.5*d,(g-1)*aa,.5*d,aa),"shape=partialRectangle;left=0;"+O),U[g].vertex=!0,v.insert(U[g]),ka[g]=new mxCell("",new mxGeometry(0,(g-1)*aa,d,aa),"strokeColor=none;fillColor=none;part=1;"),ka[g].vertex=!0,v.insert(ka[g]),ka[g].value=k(a["cell_"+g]),ka[g].style+=n(a["cell_"+g]);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+=
"shape=ellipse;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.17*d,.2*b,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+r(a,c)+q(a);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";O="shape=card;size=18;flipH=1;part=1;"+h(a,c)+t(a,c)+r(a,c)+q(a);e=new mxCell("",new mxGeometry(.1*d,0,.9*d,.8*b),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");
e.vertex=!0;v.insert(e);e.style+=O;p=new mxCell("",new mxGeometry(.05*d,.1*b,.9*d,.8*b),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");p.vertex=!0;v.insert(p);p.style+=O;var F=new mxCell("",new mxGeometry(0,.2*b,.9*d,.8*b),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;");F.vertex=!0;v.insert(F);F.style+=O+n(a);F.value=k(a.Text);break;case "AWSRoundedRectangleContainerBlock2":v.style+="strokeColor=none;fillColor=none;";
a.Spotfleet?(e=new mxCell("",new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,35,40),"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):
a.Beanstalk?(e=new mxCell("",new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):
a.EC2?(e=new mxCell("",new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.Subnet?(e=
new mxCell("",new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.VPC?(e=new mxCell("",
new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.AWS?(e=new mxCell("",
new mxGeometry(0,0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):a.Corporate?(e=new mxCell("",new mxGeometry(0,
0,d,b-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),e.geometry.offset=new mxPoint(0,20),e.geometry.relative=!0,e.vertex=!0,v.insert(e),e.style+=h(a,c)+n(a.Title)+y(a)+q(a),e.value=k(a.Title),p=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),p.geometry.relative=!0,p.geometry.offset=new mxPoint(30,0),p.vertex=!0,v.insert(p)):(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"+
h(a,c)+n(a.Title)+y(a)+q(a),v.value=k(a.Title));break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";var D=new mxCell("",new mxGeometry(.25*d,.25*b,.5*d,.5*b),"html=1;shape=ellipse;perimeter=ellipsePerimeter;strokeColor=#29AAE1;strokeWidth=2;");D.vertex=!0;v.insert(D);var G=[D];D.style+=t(a,c);var B=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");B.geometry.relative=!0;B.edge=!0;Ja(.5*d,0,B,l,m,
G,v,D);Ja(.855*d,.145*b,B,l,m,G,v,D);Ja(d,.5*b,B,l,m,G,v,D);Ja(.855*d,.855*b,B,l,m,G,v,D);Ja(.5*d,b,B,l,m,G,v,D);Ja(.145*d,.855*b,B,l,m,G,v,D);Ja(0,.5*b,B,l,m,G,v,D);Ja(.145*d,.145*b,B,l,m,G,v,D);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";D=new mxCell("",new mxGeometry(0,.5*b-10,d,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");D.vertex=!0;v.insert(D);
G=[D];B=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");B.geometry.relative=!0;B.edge=!0;for(var G=[D],Db=d/a.NumTopNodes,g=0;g<a.NumTopNodes;g++)Ja(.5*Db+g*Db,0,B,l,m,G,v,D);Db=d/a.NumBottomNodes;for(g=0;g<a.NumBottomNodes;g++)Ja(.5*Db+g*Db,b,B,l,m,G,v,D);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+n(a);v.value=k(a.Title);a.ToggleCharge&&(v.style+="flipV=1;");
break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);"EIMessageChannelBlock"==f.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-d,0)):"EIDatatypeChannelBlock"==f.Class?
(e=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-d,0)):"EIInvalidMessageChannelBlock"==f.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(.45*-d,0)):"EIDeadLetterChannelBlock"==f.Class?(e=new mxCell("",new mxGeometry(.5,.5,.9*d,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),e.geometry.offset=
new mxPoint(.45*-d,0)):"EIGuaranteedDeliveryBlock"==f.Class&&(e=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),e.geometry.offset=new mxPoint(-10,-7));e.geometry.relative=!0;e.vertex=!0;v.insert(e);e.style+=h(a,c)+r(a,c)+q(a);B=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");B.geometry.relative=!0;B.edge=!0;Q(.15*d,.25*b,.85*d,.25*b,B,l,m,G,v,D);break;case "EIChannelAdapterBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,.07*b,.21*d,.86*b),"fillColor=#FFFF33;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+r(a,c)+q(a)+y(a);p=new mxCell("",new mxGeometry(.26*d,.09*b,.2*d,.82*b),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+r(a,c)+q(a)+y(a);F=new mxCell("",new mxGeometry(1,.5,.35*d,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
F.geometry.relative=!0;F.geometry.offset=new mxPoint(.4*-d,-10);F.vertex=!0;v.insert(F);F.style+=h(a,c)+r(a,c)+q(a)+y(a);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=none;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=2;");x.geometry.relative=!0;x.edge=!0;e.insertEdge(x,!0);p.insertEdge(x,!1);x.style+=h(a,c);l.push(m.addCell(x,null,null,null,null));w=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=block;startArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=2;startFill=1;startSize=2;");
w.geometry.relative=!0;w.edge=!0;p.insertEdge(w,!0);F.insertEdge(w,!1);l.push(m.addCell(w,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);for(var Eb=a.Messages,Tb=(b-17)/
Eb,p=[],B=[],g=0;g<Eb;g++){var Fb=Tb*(g+1)-3;p[g]=new mxCell("",new mxGeometry(d-20,Fb,20,20),"part=1;");p[g].vertex=!0;v.insert(p[g]);p[g].style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a);switch(f.Class){case "EIMessageBlock":p[g].value=k(a["message_"+(g+1)]);p.style+=n(a["message_"+(g+1)]);break;case "EICommandMessageBlock":p[g].value="C";p[g].style+="fontStyle=1;fontSize=10;";break;case "EIDocumentMessageBlock":p[g].value="D";p[g].style+="fontStyle=1;fontSize=10;";break;case "EIEventMessageBlock":p[g].value=
"E",p[g].style+="fontStyle=1;fontSize=10;"}B[g]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");B[g].geometry.relative=!0;B[g].edge=!0;e.insertEdge(B[g],!1);p[g].insertEdge(B[g],!0);B[g].style+=h(a,c)+q(a);var Oa=[];Oa.push(new mxPoint(qa+8.5,ra+Fb+10));B[g].geometry.points=Oa;l.push(m.addCell(B[g],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,
c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.45*d,.25*b,.3*d,.5*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+r(a,c)+q(a);B=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");B.geometry.relative=!0;B.edge=!0;Q(0,.5*b,.4*d,.5*b,B,l,m,G,v,D);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+
t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);var x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;Q(.05*d,.5*b,.85*d,.5*b,x,l,m,G,v,D);var w=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");w.geometry.relative=!0;w.edge=!0;Q(.05*d,.5*b,.85*d,.15*
b,w,l,m,G,v,D);var E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");E.geometry.relative=!0;E.edge=!0;Q(.05*d,.5*b,.85*d,.85*b,E,l,m,G,v,D);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
x.geometry.relative=!0;x.edge=!0;x.style+=h(a,c);Q(.05*d,.5*b,.95*d,.5*b,x,l,m,G,v,D);w=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");w.geometry.relative=!0;w.edge=!0;w.style+=h(a,c);Q(.3*d,.1*b,.3*d,.5*b,w,l,m,G,v,D);E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
E.geometry.relative=!0;E.edge=!0;E.style+=h(a,c);Q(.7*d,.1*b,.7*d,.5*b,E,l,m,G,v,D);var R=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");R.geometry.relative=!0;R.edge=!0;R.style+=h(a,c);Q(.5*d,.5*b,.5*d,.9*b,R,l,m,G,v,D);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);
e=new mxCell("",new mxGeometry(.2*d,.21*b,.16*d,.24*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+r(a,c)+q(a);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;Q(.45*d,.33*b,.8*d,.33*b,x,l,m,G,v,D);p=new mxCell("",new mxGeometry(.64*d,.55*b,.16*d,.24*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+r(a,c)+q(a);w=new mxCell("",new mxGeometry(0,0,0,0),
"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");w.geometry.relative=!0;w.edge=!0;Q(.55*d,.67*b,.2*d,.67*b,w,l,m,G,v,D);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.1*d,.15*b,.8*d,.7*b),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+r(a,c)+q(a);break;
case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.04*d,.06*b,.18*d,.28*b),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);p=new mxCell("",new mxGeometry(.2*d,.56*b,.2*d,.32*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+r(a,c)+q(a)+y(a);p.value="A";p.style+="fontStyle=1;fontSize=10;";x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");
x.geometry.relative=!0;x.edge=!0;e.insertEdge(x,!1);p.insertEdge(x,!0);x.style+=h(a,c)+q(a);Oa=[];Oa.push(new mxPoint(qa+.13*d,ra+.72*b));x.geometry.points=Oa;l.push(m.addCell(x,null,null,null,null));F=new mxCell("",new mxGeometry(.6*d,.06*b,.18*d,.28*b),"shape=ellipse;fillColor=#808080;part=1;");F.vertex=!0;v.insert(F);F.style+=h(a,c)+q(a);P=new mxCell("",new mxGeometry(.76*d,.56*b,.2*d,.32*b),"part=1;");P.vertex=!0;v.insert(P);P.style+=h(a,c)+r(a,c)+q(a)+y(a);P.value="B";P.style+="fontStyle=1;fontSize=10;";
w=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");w.geometry.relative=!0;w.edge=!0;F.insertEdge(w,!1);P.insertEdge(w,!0);w.style+=h(a,c)+q(a);var Jb=[];Jb.push(new mxPoint(qa+.69*d,ra+.72*b));w.geometry.points=Jb;l.push(m.addCell(w,null,null,null,null));E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");E.geometry.relative=!0;E.edge=!0;e.insertEdge(E,
!1);F.insertEdge(E,!0);E.style+=h(a,c)+q(a);l.push(m.addCell(E,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("1",new mxGeometry(.2*d,.4*b,.1*d,.19*b),"fontStyle=1;fontSize=10;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);p=new mxCell("2",new mxGeometry(.45*d,.4*b,.1*d,.19*b),"fontStyle=1;fontSize=10;part=1;");p.vertex=!0;v.insert(p);p.style+=h(a,c)+
q(a);F=new mxCell("3",new mxGeometry(.7*d,.4*b,.1*d,.19*b),"fontStyle=1;fontSize=10;part=1;");F.vertex=!0;v.insert(F);F.style+=h(a,c)+q(a);x=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");e.insertEdge(x,!1);p.insertEdge(x,!0);x.geometry.points=[new mxPoint(qa+.375*d,ra+.15*b)];x.geometry.relative=!0;x.edge=!0;x.style+=h(a,c)+q(a);l.push(m.addCell(x,null,null,null,null));w=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");
p.insertEdge(w,!1);F.insertEdge(w,!0);w.geometry.points=[new mxPoint(qa+.675*d,ra+.15*b)];w.geometry.relative=!0;w.edge=!0;w.style+=h(a,c)+q(a);l.push(m.addCell(w,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.3*d,.2*b,.4*d,.6*b),"shape=mxgraph.ios7.icons.clock;flipH=1;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);break;case "EIMessageBrokerBlock":v.style+=
"strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+I(a)+J(a)+K(a)+ea(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.38*d,.42*b,.24*d,.16*b),"part=1;fillColor=#aefe7d;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);p=new mxCell("",new mxGeometry(.38*d,0,.24*d,.16*b),"part=1;");p.vertex=!0;v.insert(p);p.style+=t(a,c)+h(a,c)+q(a);F=new mxCell("",new mxGeometry(.76*d,.23*b,.24*d,.16*b),"part=1;");F.vertex=!0;v.insert(F);F.style=p.style;var P=new mxCell("",new mxGeometry(.76*
d,.61*b,.24*d,.16*b),"part=1;");P.vertex=!0;v.insert(P);P.style=p.style;var Mb=new mxCell("",new mxGeometry(.38*d,.84*b,.24*d,.16*b),"part=1;");Mb.vertex=!0;v.insert(Mb);Mb.style=p.style;var Nb=new mxCell("",new mxGeometry(0,.61*b,.24*d,.16*b),"part=1;");Nb.vertex=!0;v.insert(Nb);Nb.style=p.style;var Ob=new mxCell("",new mxGeometry(0,.23*b,.24*d,.16*b),"part=1;");Ob.vertex=!0;v.insert(Ob);Ob.style=p.style;x=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(x,!1);p.insertEdge(x,
!0);x.edge=!0;x.style+=h(a,c)+q(a);l.push(m.addCell(x,null,null,null,null));w=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(w,!1);F.insertEdge(w,!0);w.edge=!0;w.style+=h(a,c)+q(a);l.push(m.addCell(w,null,null,null,null));E=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(E,!1);P.insertEdge(E,!0);E.edge=!0;E.style+=h(a,c)+q(a);l.push(m.addCell(E,null,null,null,null));R=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(R,
!1);Mb.insertEdge(R,!0);R.edge=!0;R.style+=h(a,c)+q(a);l.push(m.addCell(R,null,null,null,null));var gb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(gb,!1);Nb.insertEdge(gb,!0);gb.edge=!0;gb.style+=h(a,c)+q(a);l.push(m.addCell(gb,null,null,null,null));var hb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");e.insertEdge(hb,!1);Ob.insertEdge(hb,!0);hb.edge=!0;hb.style+=h(a,c)+q(a);l.push(m.addCell(hb,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);x=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");x.geometry.relative=!0;x.edge=!0;Q(.05*d,.5*b,.6*d,.25*b,x,l,m,G,v,D);w=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");w.geometry.relative=!0;w.edge=!0;Q(.05*d,.5*b,.6*d,.75*b,w,l,m,G,v,D);e=new mxCell("",new mxGeometry(.7*
d,.1*b,.15*d,.32*b),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.25*d,.25*b,.5*d,.5*b),"shape=mxgraph.eip.control_bus;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+
n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);F=new mxCell("",new mxGeometry(d-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");F.vertex=!0;v.insert(F);F.style+=h(a,c)+q(a);E=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");E.geometry.relative=!0;E.edge=!0;e.insertEdge(E,!1);F.insertEdge(E,
!0);E.style+=h(a,c)+q(a);E.geometry.points=[new mxPoint(qa+8.5,ra+40)];l.push(m.addCell(E,null,null,null,null));P=new mxCell("",new mxGeometry(d-45,b-20,20,20),"part=1;");P.vertex=!0;v.insert(P);P.value=k(a.message_0);P.style+=n(a.message_0);P.style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a);R=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");R.geometry.relative=!0;R.edge=!0;e.insertEdge(R,!1);P.insertEdge(R,!0);R.style+=h(a,
c)+q(a);R.geometry.points=[new mxPoint(qa+8.5,ra+b-10)];l.push(m.addCell(R,null,null,null,null));Eb=a.HistoryMessages;Tb=(b-75)/Eb;p=[];B=[];for(g=0;g<Eb;g++)Fb=Tb*(g+1)+30,p[g]=new mxCell("",new mxGeometry(d-20,Fb,20,20),"part=1;"),p[g].vertex=!0,p[g].value=k(a["message_"+(g+1)]),p.style+=n(a["message_"+(g+1)]),v.insert(p[g]),p[g].style+=h(a,c)+t(a,c)+r(a,c)+u(a)+q(a)+y(a),B[g]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),
B[g].geometry.relative=!0,B[g].edge=!0,F.insertEdge(B[g],!1),p[g].insertEdge(B[g],!0),B[g].style+=h(a,c)+q(a),Oa=[],Oa.push(new mxPoint(qa+d-30,ra+Fb+10)),B[g].geometry.points=Oa,l.push(m.addCell(B[g],null,null,null,null));break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;"+h(a,c)+r(a,c)+u(a)+q(a)+ja(a,c,v);y(a);0>a.DoorAngle&&(v.style+="flipV=1;");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;"+h(a,c)+r(a,c)+u(a)+q(a)+ja(a,c,v)+y(a);0<a.DoorAngle&&(v.style+=
"flipV=1;");break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;"+ja(a,c,v);e=new mxCell("",new mxGeometry(0,0,d,.25*b),"part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a);for(var p=[],ac=.02*d,Ub=(d-2*ac)/a.LightCount,bc=.8*Ub,g=0;g<a.LightCount;g++)p[g]=new mxCell("",new mxGeometry(ac+Ub*g+(Ub-bc)/2,.25*b,bc,.75*b),"part=1;shape=ellipse;"),p[g].vertex=!0,v.insert(p[g]),p[g].style+=h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a);break;case "fpRestroomSinks":v.style+=
"strokeColor=none;fillColor=none;"+ja(a,c,v);for(var e=[],cc=d/a.SinkCount,g=0;g<a.SinkCount;g++)e[g]=new mxCell("",new mxGeometry(cc*g,0,cc,b),"part=1;shape=mxgraph.floorplan.sink_2;"),e[g].vertex=!0,v.insert(e[g]),e[g].style+=h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var da=.1*d/a.StallCount,e=new mxCell("",new mxGeometry(0,0,da,b),"fillColor=#000000;part=1;");e.vertex=!0;v.insert(e);e.style+=h(a,c)+q(a);for(var ia=(d-da)/a.StallCount,
Vb=[],Gb=[],Hb=[],Ib=[],A=h(a,c),A=""==A?"#000000;":A.replace("stokreColor=",""),Qb="part=1;fillColor="+A+h(a,c)+q(a),Wb=t(a,c)+h(a,c)+q(a),g=0;g<a.StallCount;g++)Vb[g]=new mxCell("",new mxGeometry((g+1)*ia,0,da,b),Qb),Vb[g].vertex=!0,v.insert(Vb[g]),Hb[g]=new mxCell("",new mxGeometry(da+g*ia+.05*(ia-da),b-.92*(ia-da),.9*(ia-da),.92*(ia-da)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Hb[g].vertex=!0,v.insert(Hb[g]),Hb[g].style+=Wb,Gb[g]=new mxCell("",new mxGeometry(da+g*ia+.2*(ia-da),0,
.6*(ia-da),.8*(ia-da)),"shape=mxgraph.floorplan.toilet;part=1;"),Gb[g].vertex=!0,v.insert(Gb[g]),Gb[g].style+=Wb,Ib[g]=new mxCell("",new mxGeometry(da+g*ia,.42*b,.15*(ia-da),.12*(ia-da)),"part=1;"),Ib[g].vertex=!0,v.insert(Ib[g]),Ib[g].style+=Wb;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var Pb="edgeStyle=none;endArrow=none;part=1;"+h(a,c)+q(a)+r(a,c)+u(a)+y(a),A=h(a,c),A=""==A?"#000000;":A.replace("stokreColor=",""),Xb="shape=triangle;part=1;fillColor="+A+h(a,c)+q(a)+r(a,
c)+u(a)+y(a),x=new mxCell("",new mxGeometry(0,0,0,0),Pb);x.geometry.relative=!0;x.edge=!0;Q(0,.5*b,.65*d,.5*b,x,l,m,G,v,D);for(var Pa=b/a.numLines,w=[],Ta=[],g=0;g<a.numLines;g++)w[g]=new mxCell("",new mxGeometry(0,0,0,0),Pb),w[g].geometry.relative=!0,w[g].edge=!0,Q(.65*d,.5*b,.96*d,(g+.5)*Pa,w[g],l,m,G,v,D),Ta[g]=new mxCell("",new mxGeometry(.95*d,(g+.2)*Pa,.05*d,.6*Pa),Xb),Ta[g].vertex=!0,v.insert(Ta[g]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";Pb="edgeStyle=none;endArrow=none;part=1;"+
h(a,c)+q(a)+r(a,c)+u(a)+y(a);A=h(a,c);A=""==A?"#000000;":A.replace("stokreColor=","");Xb="shape=triangle;part=1;fillColor="+A+h(a,c)+q(a)+r(a,c)+u(a)+y(a);Pa=b/a.numLines;w=[];Ta=[];for(g=0;g<a.numLines;g++)w[g]=new mxCell("",new mxGeometry(0,0,0,0),Pb),w[g].geometry.relative=!0,w[g].edge=!0,Q(0,(g+.5)*Pa,.96*d,(g+.5)*Pa,w[g],l,m,G,v,D),Ta[g]=new mxCell("",new mxGeometry(.95*d,(g+.2)*Pa,.05*d,.6*Pa),Xb),Ta[g].vertex=!0,v.insert(Ta[g]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a)+n(a);v.value=k(a.Text);switch(a.vesselType){case 1:v.style+="shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+="shape=hexagon;size=0.10;direction=south;"}break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a)+n(a);v.value=k(a.Text);1==a.peakedRoof&&0==a.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==a.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");
break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a)+n(a);v.value=k(a.Text);v.style=0==a.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;"+ja(a,c,v)+n(a);v.value=k(a.Text);O=h(a,c)+t(a,c)+q(a)+r(a,c)+u(a)+y(a);e=new mxCell("",new mxGeometry(0,.2*b,d,.6*b),"part=1;shape=trapezoid;direction=south;");
e.vertex=!0;v.insert(e);e.style+=O;O+="endSize=4;endArrow=block;endFill=1;";0==a.compressorType?(x=new mxCell("",new mxGeometry(0,0,0,0),""),x.geometry.relative=!0,x.edge=!0,x.style+=O,Q(0,0,0,.2*b,x,l,m,G,v,D),w=new mxCell("",new mxGeometry(0,0,0,0),""),w.geometry.relative=!0,w.edge=!0,w.style+=O,Q(d,.67*b,d,b,w,l,m,G,v,D)):(e.style+="flipH=1;",x=new mxCell("",new mxGeometry(0,0,0,0),""),x.geometry.relative=!0,x.edge=!0,x.style+=O,Q(0,0,0,.33*b,x,l,m,G,v,D),w=new mxCell("",new mxGeometry(0,0,0,0),
""),w.geometry.relative=!0,w.edge=!0,w.style+=O,Q(d,.8*b,d,b,w,l,m,G,v,D));1==a.centerLineType&&(E=new mxCell("",new mxGeometry(0,0,0,0),""),E.geometry.relative=!0,E.edge=!0,E.style+=O,Q(.2*d,.5*b,.8*d,.5*b,E,l,m,G,v,D));break;case "PEMotorDrivenTurbineBlock":O=h(a,c)+t(a,c)+q(a)+r(a,c)+y(a);v.style+="shape=ellipse;"+u(a)+ja(a,c,v)+n(a);v.value=k(a.Text);e=new mxCell("",new mxGeometry(.2*d,.2*b,.6*d,.6*b),"part=1;shape=trapezoid;direction=south;");e.vertex=!0;v.insert(e);e.style+=O;break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":O=
r(a,c);v.style+=O+h(a,c)+t(a,c)+q(a)+y(a)+u(a)+ja(a,c,v);switch(f.Class){case "PEIndicatorBlock":v.style+="shape=mxgraph.pid2inst.discInst;";break;case "PEIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=inst;";break;case "PESharedIndicatorBlock":v.style+="shape=mxgraph.pid2inst.sharedCont;";break;case "PEComputerIndicatorBlock":v.style+="shape=mxgraph.pid2inst.compFunc;";break;case "PESharedIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=ctrl;";break;case "PEProgrammableIndicatorBlock":v.style+=
"shape=mxgraph.pid2inst.progLogCont;"}"PEIndicator2Block"==f.Class||"PESharedIndicator2Block"==f.Class?(e=new mxCell("",new mxGeometry(0,0,d,.5*d),"part=1;strokeColor=none;fillColor=none;"),e.vertex=!0,v.insert(e),e.style+=O+n(a.TopText),e.value=k(a.TopText),p=new mxCell("",new mxGeometry(0,.5*d,d,.5*d),"part=1;strokeColor=none;fillColor=none;")):(e=new mxCell("",new mxGeometry(0,0,d,.5*b),"part=1;strokeColor=none;fillColor=none;"),e.vertex=!0,v.insert(e),e.style+=O+n(a.TopText),e.value=k(a.TopText),
p=new mxCell("",new mxGeometry(0,.5*b,d,.5*b),"part=1;strokeColor=none;fillColor=none;"));p.vertex=!0;v.insert(p);p.style+=O;n(a.BotText);p.value=k(a.BotText);switch(a.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+="mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;",r(a,c)+h(a,c)+t(a,c)+q(a)+y(a)+u(a)+ja(a,c,v)+I(a)+J(a)+K(a)+ea(a),
v.style=1==a.handOperated?v.style+"shape=mxgraph.pid2valves.valve;valveType=gate;actuator=man;":v.style+"shape=mxgraph.pid2valves.valve;valveType=gate"}return v}var ec=["GSDFDProcessBlock","GSDFDProcessBlock2","RoundedRectangleContainerBlock","UI2ButtonBlock","UMLStateBlock"],fc=["ProcessBlock","UMLActivationBlock"],Qb="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8 UMLEndBlock DefaultTextBlockNew iOSButton".split(" "),
ic="AWSAndroidBlock3 AWSiOSBlock3 AWSJavaBlock3 AWSJavaScript AWSNetBlock3 AWSNodeJSBlock3 AWSPHPBlock3 AWSPythonBlock3 AWSRubyBlock3 AWSXamarin AWSCLIBlock3 AWSEclipseToolkitBlock3 AWSVisualStudioToolkitBlock3 AWSWindowsPowershellToolkitBlock3 DefaultTextBlock RectangleContainerBlock UMLStartBlock UMLEndBlock DefaultTextBlockNew UMLHForkJoinBlock iOSButton".split(" "),dc="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8".split(" "),
gc=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],hc=["fpDoor"],jb={None:"none",Arrow:"block;endFill=1","Hollow Arrow":"block;endFill=0","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;startSize=10","CFN ERD One Or More Arrow":"ERoneToMany;startSize=10","CFN ERD Many Arrow":"ERmany;startSize=10","CFN ERD Exactly One Arrow":"ERmandOne;startSize=10","CFN ERD Zero Or One Arrow":"ERzeroToOne;startSize=10","CFN ERD One Arrow":"ERone;startSize=16",
Generalization:"block;endFill=0;startSize=12","Big Open Arrow":"open;startSize=10",Asynch1:"openAsync;flipH=1;startSize=10",Asynch2:"openAsync;startSize=10",Aggregation:"diamond;endFill=0;startSize=16",Composition:"diamond;endFill=1;startSize=16",BlockEnd:"none;endFill=1;startSize=16"},Va={DefaultTextBlockNew:"text;strokeColor=none;fillColor=none",DefaultTextBlock:"text;strokeColor=none;fillColor=none",DefaultSquareBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",
HotspotBlock:"strokeColor=none;opacity=50",ImageSearchBlock2:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon",DataBlock:"shape=parallelogram",DataBlockNew:"shape=parallelogram",DatabaseBlock:"shape=cylinder",DirectAccessStorageBlock:"shape=mxgraph.flowchart.direct_data",
InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=dataStorage",MergeBlock:"triangle;direction=south",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"shape=mxgraph.flowchart.annotation_1",
AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"fillColor=none;container=1",DiamondContainerBlock:"shape=rhombus;fillColor=none;container=1",RoundedRectangleContainerBlock:"fillColor=none;container=1;rounded=1;absoluteArcSize=1;arcSize=24",CircleContainerBlock:"shape=ellipse;fillColor=none;container=1",PillContainerBlock:"arcSize=50;fillColor=none;container=1",IsoscelesTriangleBlock:"triangle;direction=north",RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",
PentagonBlock:"shape=mxgraph.basic.pentagon",HexagonBlock:"shape=hexagon",OctagonBlock:"shape=mxgraph.basic.octagon",CrossBlock:"shape=cross;size=0.6",CloudBlock:"ellipse;shape=cloud",HeartBlock:"shape=mxgraph.basic.heart",RightArrowBlock:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.3",DoubleArrowBlock:"shape=doubleArrow;arrowWidth=0.5;arrowSize=0.3",CalloutBlock:"shape=mxgraph.basic.rectangular_callout",ShapeCircleBlock:"ellipse",ShapePolyStarBlock:"shape=mxgraph.basic.star",ShapeDiamondBlock:"rhombus",
UI2HotspotBlock:"opacity=50;strokeColor=none",AndroidDevice:"mxCompositeShape",AndroidAlertDialog:"mxCompositeShape",AndroidDateDialog:"mxCompositeShape",AndroidTimeDialog:"mxCompositeShape",AndroidListItems:"mxCompositeShape",AndroidTabs:"mxCompositeShape",AndroidProgressBar:"mxCompositeShape",AndroidImageBlock:"mxCompositeShape",AndroidTextBlock:"mxCompositeShape",AndroidActionBar:"mxCompositeShape",AndroidButton:"mxCompositeShape",AndroidTextBox:"mxCompositeShape",AndroidRadioButton:"mxCompositeShape",
AndroidCheckBox:"mxCompositeShape",AndroidToggle:"mxCompositeShape",AndroidSlider:"mxCompositeShape",AndroidIconCheck:"shape=mxgraph.ios7.misc.check",AndroidIconCancel:"shape=mxgraph.atlassian.x",AndroidIconCollapse:"shape=mxgraph.ios7.misc.up",AndroidIconExpand:"shape=mxgraph.ios7.misc.down",AndroidIconNext:"shape=mxgraph.ios7.misc.right",AndroidIconPrevious:"shape=mxgraph.ios7.misc.left",AndroidIconRefresh:NaN,AndroidIconInformation:"shape=mxgraph.ios7.icons.info",AndroidIconSearch:"shape=mxgraph.ios7.icons.looking_glass",
AndroidIconSettings:"shape=mxgraph.ios7.icons.volume;direction=south",AndroidIconTrash:"shape=mxgraph.ios7.icons.trashcan",AndroidIconEmail:"shape=mxgraph.mockup.misc.mail2",AndroidIconNew:"shape=mxgraph.ios7.misc.flagged",iOSDeviceiPhoneSE:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6s:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6sPlus:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPadPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadLandscape:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProPortrait:"shape=mxgraph.ios7.misc.ipad7inch",
iOSDeviceiPadProLandscape:"shape=mxgraph.ios7.misc.ipad10inch",iOSButton:"fillColor=none;strokeColor=none;",iOSSegmentedControl:"mxCompositeShape",iOSStepper:"shape=mxgraph.ios7.misc.adjust",iOSToggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor2=#aaaaaa;fillColor2=#ffffff",iOSSlider:"mxCompositeShape",iOSProgressBar:"mxCompositeShape",iOSPageControls:"mxCompositeShape",iOSStatusBar:"mxCompositeShape",iOSSearchBar:"mxCompositeShape",iOSNavBar:"mxCompositeShape",iOSTabs:"mxCompositeShape",
iOSUniversalKeyboard:"shape=mxgraph.ios.iKeybLett",iOSDatePicker:"mxCompositeShape",iOSTimePicker:"mxCompositeShape",iOSCountdownPicker:"mxCompositeShape",iOSBasicCell:"mxCompositeShape",iOSSubtitleCell:"mxCompositeShape",iOSRightDetailCell:"mxCompositeShape",iOSLeftDetailCell:"mxCompositeShape",iOSTableGroupedSectionBreak:"mxCompositeShape",iOSTablePlainHeaderFooter:"mxCompositeShape",MindMapBlock:"",MindMapStadiumBlock:"arcSize=50",MindMapCloud:"shape=cloud",MindMapCircle:"shape=ellipse",MindMapIsoscelesTriangleBlock:"shape=triangle;direction=north",
MindMapDiamondBlock:"shape=rhombus",MindMapPentagonBlock:"shape=mxgraph.basic.pentagon",MindMapHexagonBlock:"shape=hexagon",MindMapOctagonBlock:"shape=mxgraph.basic.octagon",MindMapCrossBlock:"shape=mxgraph.basic.cross2;dx=20",ERDEntityBlock:"mxCompositeShape",ERDEntityBlock2:"mxCompositeShape",ERDEntityBlock3:"mxCompositeShape",ERDEntityBlock4:"mxCompositeShape",SMPage:"mxCompositeShape",SMHome:"mxCompositeShape",SMPrint:"mxCompositeShape",SMSearch:"mxCompositeShape",SMSettings:"mxCompositeShape",
SMSitemap:"mxCompositeShape",SMSuccess:"mxCompositeShape",SMVideo:"mxCompositeShape",SMAudio:"mxCompositeShape",SMCalendar:"mxCompositeShape",SMChart:"mxCompositeShape",SMCloud:"mxCompositeShape",SMDocument:"mxCompositeShape",SMForm:"mxCompositeShape",SMGame:"mxCompositeShape",SMUpload:"mxCompositeShape",UMLClassBlock:"",UMLActiveClassBlock:"shape=process",UMLMultiplicityBlock:"mxCompositeShape",UMLPackageBlock:"shape=folder;tabPosition=left",UMLConstraintBlock:"mxCompositeShape",UMLNoteBlock:"shape=note;size=15",
UMLTextBlock:"mxCompositeShape",UMLActorBlock:"shape=umlActor;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;whiteSpace=nowrap",UMLUseCaseBlock:"shape=ellipse",UMLCircleContainerBlock:"shape=ellipse;container=1",UMLRectangleContainerBlock:"container=1",UMLOptionLoopBlock:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLAlternativeBlock2:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLStartBlock:"shape=ellipse;fillColor=#000000",UMLStateBlock:"rounded=1;arcSize=20",
UMLDecisionBlock:"shape=rhombus;",UMLHForkJoinBlock:"fillColor=#000000",UMLVForkJoinBlock:"fillColor=#000000",UMLFlowFinalBlock:"shape=mxgraph.flowchart.or",UMLHistoryStateBlock:"shape=ellipse",UMLEndBlock:"shape=mxgraph.bpmn.shape;outline=end;symbol=terminate;strokeColor=#000000;fillColor=#ffffff",UMLObjectBlock:"",UMLSendSignalBlock:"shape=mxgraph.sysml.sendSigAct",UMLReceiveSignalBlock:"shape=mxgraph.sysml.accEvent;flipH=1",UMLAcceptTimeEventActionBlock:"shape=mxgraph.sysml.timeEvent",UMLOffPageLinkBlock:"shape=mxgraph.sysml.sendSigAct;direction=south",
UMLMultiLanePoolBlock:"mxCompositeShape",UMLMultiLanePoolRotatedBlock:"mxCompositeShape",UMLMultidimensionalSwimlane:"mxCompositeShape",UMLActivationBlock:"",UMLDeletionBlock:"shape=mxgraph.sysml.x;strokeWidth=4",UMLSeqEntityBlock:"shape=mxgraph.electrical.radio.microphone_1;direction=north",UMLComponentBlock:"shape=component;align=left;spacingLeft=36",UMLNodeBlock:"shape=cube;size=12;flipH=1",UMLComponentInterfaceBlock:"shape=ellipse",UMLComponentBoxBlock:"mxCompositeShape",UMLProvidedInterfaceBlock:"shape=lollipop;direction=south",
UMLRequiredInterfaceBlock:"shape=requires;direction=north",UMLEntityBlock:"",UMLWeakEntityBlock:"shape=ext;double=1",UMLAttributeBlock:"shape=ellipse",UMLMultivaluedAttributeBlock:"shape=doubleEllipse",UMLRelationshipBlock:"shape=rhombus",UMLWeakRelationshipBlock:"shape=rhombus;double=1",BPMNActivity:"mxCompositeShape",BPMNEvent:"mxCompositeShape",BPMNChoreography:"mxCompositeShape",BPMNConversation:"mxCompositeShape",BPMNGateway:"mxCompositeShape",BPMNData:"mxCompositeShape",BPMNDataStore:"shape=datastore",
BPMNAdvancedPoolBlock:"mxCompositeShape",BPMNAdvancedPoolBlockRotated:"mxCompositeShape",BPMNBlackPool:"mxCompositeShape",DFDExternalEntityBlock:"mxCompositeShape",DFDExternalEntityBlock2:"",YDMDFDProcessBlock:"shape=ellipse",YDMDFDDataStoreBlock:"shape=partialRectangle;right=0;left=0",GSDFDProcessBlock:"shape=swimlane;rounded=1;arcSize=10",GSDFDProcessBlock2:"rounded=1;arcSize=10;",GSDFDDataStoreBlock:"mxCompositeShape",GSDFDDataStoreBlock2:"shape=partialRectangle;right=0",OrgBlock:"",DefaultTableBlock:"mxCompositeShape",
VSMCustomerSupplierBlock:"shape=mxgraph.lean_mapping.outside_sources",VSMDedicatedProcessBlock:"mxCompositeShape",VSMSharedProcessBlock:"mxCompositeShape",VSMWorkcellBlock:"mxCompositeShape",VSMDatacellBlock:"mxCompositeShape",VSMInventoryBlock:"mxCompositeShape",VSMSupermarketBlock:"mxCompositeShape",VSMPhysicalPullBlock:"shape=mxgraph.lean_mapping.physical_pull;direction=south",VSMFIFOLaneBlock:"mxCompositeShape",VSMSafetyBufferStockBlock:"mxCompositeShape",VSMExternalShipmentAirplaneBlock:"shape=mxgraph.lean_mapping.airplane_7",
VSMExternalShipmentForkliftBlock:"shape=mxgraph.lean_mapping.move_by_forklift",VSMExternalShipmentTruckBlock:"shape=mxgraph.lean_mapping.truck_shipment",VSMExternalShipmentBoatBlock:"shape=mxgraph.lean_mapping.boat_shipment",VSMProductionControlBlock:"mxCompositeShape",VSMOtherInformationBlock:"",VSMSequencedPullBallBlock:"shape=mxgraph.lean_mapping.sequenced_pull_ball",VSMMRPERPBlock:"shape=mxgraph.lean_mapping.mrp_erp;whiteSpace=wrap",VSMLoadLevelingBlock:"shape=mxgraph.lean_mapping.load_leveling",
VSMGoSeeBlock:"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1",VSMGoSeeProductionBlock:"mxCompositeShape",VSMVerbalInfoBlock:"shape=mxgraph.lean_mapping.verbal",VSMKaizenBurstBlock:"shape=mxgraph.lean_mapping.kaizen_lightening_burst",VSMOperatorBlock:"shape=mxgraph.lean_mapping.operator;flipV=1",VSMTimelineBlock:"mxCompositeShape",VSMQualityProblemBlock:"shape=mxgraph.lean_mapping.quality_problem",VSMProductionKanbanSingleBlock:"shape=card;size=18;flipH=1;",VSMProductionKanbanBatchBlock:"mxCompositeShape",
VSMWithdrawalKanbanBlock:"shape=mxgraph.lean_mapping.withdrawal_kanban",VSMSignalKanbanBlock:"shape=triangle;direction=south",VSMKanbanPostBlock:"shape=mxgraph.lean_mapping.kanban_post",VSMShipmentArrow:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.13",VSMPushArrow:"shape=mxgraph.lean_mapping.push_arrow",AWSElasticComputeCloudBlock2:"strokeColor=none;shape=mxgraph.aws3.ec2",AWSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.instance",AWSInstancesBlock2:"strokeColor=none;shape=mxgraph.aws3.instances",
AWSAMIBlock2:"strokeColor=none;shape=mxgraph.aws3.ami",AWSDBonInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.db_on_instance",AWSInstanceCloudWatchBlock2:"strokeColor=none;shape=mxgraph.aws3.instance_with_cloudwatch",AWSElasticIPBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_ip",AWSHDFSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.hdfs_cluster",AWSAutoScalingBlock2:"strokeColor=none;shape=mxgraph.aws3.auto_scaling",AWSEC2OptimizedInstance2:"strokeColor=none;shape=mxgraph.aws3.optimized_instance",
"AWSAmazonEC2(Spotinstance)":"strokeColor=none;shape=mxgraph.aws3.spot_instance",AWSAmazonECR:"strokeColor=none;shape=mxgraph.aws3.ecr",AWSAmazonECS:"strokeColor=none;shape=mxgraph.aws3.ecs",AWSLambda2:"strokeColor=none;shape=mxgraph.aws3.lambda",AWSElasticLoadBalancing:"strokeColor=none;shape=mxgraph.aws3.elastic_load_balancing",AWSElasticLoadBlock2:"strokeColor=none;shape=mxgraph.aws3.classic_load_balancer",AWSDirectConnectBlock3:"strokeColor=none;shape=mxgraph.aws3.direct_connect",AWSElasticNetworkBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_network_interface",
AWSRoute53Block2:"strokeColor=none;shape=mxgraph.aws3.route_53",AWSHostedZoneBlock2:"strokeColor=none;shape=mxgraph.aws3.hosted_zone;fontColor=#FFFFFF;fontStyle=1",AWSRouteTableBlock2:"strokeColor=none;shape=mxgraph.aws3.route_table",AWSVPCBlock2:"strokeColor=none;shape=mxgraph.aws3.vpc",AWSVPNConnectionBlock2:"strokeColor=none;shape=mxgraph.aws3.vpn_connection",AWSVPNGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.vpn_gateway",AWSCustomerGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.customer_gateway",
AWSCustomerGatewayBlock3:"strokeColor=none;shape=mxgraph.aws3.customer_gateway",AWSInternetGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.internet_gateway",AWSRouterBlock2:"strokeColor=none;shape=mxgraph.aws3.router",AWSRouterBlock3:"strokeColor=none;shape=mxgraph.aws3.router","AWSAmazonVPC(endpoints)":"strokeColor=none;shape=mxgraph.aws3.endpoints","AWSAmazonVPC(flowlogs)":"strokeColor=none;shape=mxgraph.aws3.flow_logs","AWSAmazonVPC(VPCNATgateway)":"strokeColor=none;shape=mxgraph.aws3.vpc_nat_gateway",
AWSVPCPeering3:"strokeColor=none;shape=mxgraph.aws3.vpc_peering",AWSSimpleStorageBlock2:"strokeColor=none;shape=mxgraph.aws3.s3",AWSBucketBlock2:"strokeColor=none;shape=mxgraph.aws3.bucket;fontStyle=1;fontColor=#ffffff",AWSBuckethWithObjectsBlock2:"strokeColor=none;shape=mxgraph.aws3.bucket_with_objects",AWSObjectBlock2:"strokeColor=none;shape=mxgraph.aws3.object;fontStyle=1;fontColor=#ffffff",AWSImportExportBlock2:"strokeColor=none;shape=mxgraph.aws3.import_export",AWSStorageGatewayBlock2:"strokeColor=none;shape=mxgraph.aws3.storage_gateway",
AWSElasticBlockStorageBlock2:"strokeColor=none;shape=mxgraph.aws3.volume;fontStyle=1;fontColor=#ffffff",AWSVolumeBlock3:"strokeColor=none;shape=mxgraph.aws3.volume;fontStyle=1;fontColor=#ffffff",AWSSnapshotBlock2:"strokeColor=none;shape=mxgraph.aws3.snapshot;fontStyle=1;fontColor=#ffffff",AWSGlacierArchiveBlock3:"strokeColor=none;shape=mxgraph.aws3.archive",AWSGlacierVaultBlock3:"strokeColor=none;shape=mxgraph.aws3.vault",AWSAmazonEFS:"strokeColor=none;shape=mxgraph.aws3.efs",AWSGlacierBlock2:"strokeColor=none;shape=mxgraph.aws3.glacier",
AWSAWSImportExportSnowball:"strokeColor=none;shape=mxgraph.aws3.snowball",AWSStorageGatewayCachedVolumn2:"strokeColor=none;shape=mxgraph.aws3.cached_volume","AWSStorageGatewayNon-CachedVolumn2":"strokeColor=none;shape=mxgraph.aws3.non_cached_volume",AWSStorageGatewayVirtualTapeLibrary2:"strokeColor=none;shape=mxgraph.aws3.virtual_tape_library",AWSCloudFrontBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudfront",AWSDownloadDistBlock2:"strokeColor=none;shape=mxgraph.aws3.download_distribution",AWSStreamingBlock2:"strokeColor=none;shape=mxgraph.aws3.streaming_distribution",
AWSEdgeLocationBlock2:"strokeColor=none;shape=mxgraph.aws3.edge_location",AWSItemBlock2:"strokeColor=none;shape=mxgraph.aws3.item",AWSItemsBlock2:"strokeColor=none;shape=mxgraph.aws3.items",AWSAttributeBlock2:"strokeColor=none;shape=mxgraph.aws3.attribute",AWSAttributesBlock2:"strokeColor=none;shape=mxgraph.aws3.attributes",AWSRDBSBlock2:"strokeColor=none;shape=mxgraph.aws3.rds",AWSRDSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance",AWSRDSStandbyBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance_standby_multi_az",
AWSRDSInstanceReadBlock2:"strokeColor=none;shape=mxgraph.aws3.rds_db_instance_read_replica",AWSOracleDBBlock2:"strokeColor=none;shape=mxgraph.aws3.oracle_db_instance",AWSMySQLDBBlock2:"strokeColor=none;shape=mxgraph.aws3.mysql_db_instance",AWSDynamoDBBlock2:"strokeColor=none;shape=mxgraph.aws3.dynamo_db",AWSSimpleDatabaseBlock3:"strokeColor=none;shape=mxgraph.aws2.database.simpledb",AWSSimpleDatabaseDomainBlock3:"strokeColor=none;shape=mxgraph.aws2.database.simpledb_domain",AWSTableBlock2:"strokeColor=none;shape=mxgraph.aws3.table",
AWSAmazonRedShiftBlock3:"strokeColor=none;shape=mxgraph.aws3.redshift",AWSElastiCacheNodeBlock2:"strokeColor=none;shape=mxgraph.aws3.cache_node",AWSElastiCacheBlock2:"strokeColor=none;shape=mxgraph.aws3.elasticache",AWSDynamoDBGlobalSecondaryIndexes2:"strokeColor=none;shape=mxgraph.aws3.global_secondary_index",AWSAmazonElastiCacheMemcache2:"strokeColor=none;shape=mxgraph.aws3.memcached",AWSAmazonElastiCacheRedis2:"strokeColor=none;shape=mxgraph.aws3.redis",AWSAmazonRDSMSSQLInstance2:"strokeColor=none;shape=mxgraph.aws3.ms_sql_instance_2",
AWSMSSQLDBBlock3:"strokeColor=none;shape=mxgraph.aws3.ms_sql_instance",AWSAmazonRDSMySQLDBInstance2:"strokeColor=none;shape=mxgraph.aws3.mysql_db_instance_2",AWSAmazonRDSOracleDBInstance2:"strokeColor=none;shape=mxgraph.aws3.oracle_db_instance_2",AWSRDSReplicasetswithPIOP2:"strokeColor=none;shape=mxgraph.aws3.piop",AWSAmazonRDSPostgreSQL2:"strokeColor=none;shape=mxgraph.aws3.postgre_sql_instance",AWSRDSMasterSQL2:"strokeColor=none;shape=mxgraph.aws3.sql_master",AWSRDSSlaveSQL2:"strokeColor=none;shape=mxgraph.aws3.sql_slave",
"AWSAmazonRedshift(densecomputenode)":"strokeColor=none;shape=mxgraph.aws3.dense_compute_node","AWSAmazonRedshift(densestoragenode)":"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAWSDatabaseMigrationService:"strokeColor=none;shape=mxgraph.aws3.database_migration_service",AWSACM:"strokeColor=none;shape=mxgraph.aws3.certificate_manager",AWSAmazonInspector:"strokeColor=none;shape=mxgraph.aws3.inspector",AWSAWSCloudHSM:"strokeColor=none;shape=mxgraph.aws3.cloudhsm",AWSDirectoryService2:"strokeColor=none;shape=mxgraph.aws3.directory_service",
AWSAWSKMS:"strokeColor=none;shape=mxgraph.aws3.kms",AWSAWSWAF:"strokeColor=none;shape=mxgraph.aws3.waf","AWSACM(certificate-manager)":"strokeColor=none;shape=mxgraph.aws3.certificate_manager_2",AWSSESBlock2:"strokeColor=none;shape=mxgraph.aws3.ses",AWSEmailBlock2:"strokeColor=none;shape=mxgraph.aws3.email",AWSSNSBlock2:"strokeColor=none;shape=mxgraph.aws3.sns",AWSSQSBlock3:"strokeColor=none;shape=mxgraph.aws3.sqs",AWSQueueBlock2:"strokeColor=none;shape=mxgraph.aws3.queue",AWSMessageBlock2:"strokeColor=none;shape=mxgraph.aws3.message",
AWSDeciderBlock2:"strokeColor=none;shape=mxgraph.aws3.decider",AWSSWFBlock2:"strokeColor=none;shape=mxgraph.aws3.swf",AWSWorkerBlock2:"strokeColor=none;shape=mxgraph.aws3.worker",AWSCloudSearchBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudsearch",AWSCloudSearchMetadataBlock3:"strokeColor=none;shape=mxgraph.aws3.search_documents",AWSElasticTranscoder3:"strokeColor=none;shape=mxgraph.aws3.elastic_transcoder",AWSAmazonAPIGateway:"strokeColor=none;shape=mxgraph.aws3.api_gateway",AWSAppStream2:"strokeColor=none;shape=mxgraph.aws3.appstream",
AWSCloudFormationBlock2:"strokeColor=none;shape=mxgraph.aws3.cloudformation",AWSDataPipelineBlock3:"strokeColor=none;shape=mxgraph.aws3.data_pipeline",AWSDataPipelineBlock2:"strokeColor=none;shape=mxgraph.aws3.data_pipeline",AWSTemplageBlock2:"strokeColor=none;shape=mxgraph.aws3.template",AWSStackBlock2:"strokeColor=none;shape=mxgraph.aws3.stack_aws_cloudformation",AWSBeanStockBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk",AWSApplicationBlock2:"strokeColor=none;shape=mxgraph.aws3.application",
AWSBeanstalkDeploymentBlock3:"strokeColor=none;shape=mxgraph.aws3.deployment",AWSIAMBlock3:"strokeColor=none;shape=mxgraph.aws3.iam",AWSIAMSTSBlock3:"strokeColor=none;shape=mxgraph.aws3.sts",AWSIAMAddonBlock2:"strokeColor=none;shape=mxgraph.aws3.add_on",AWSCloudWatchBlock3:"strokeColor=none;shape=mxgraph.aws3.cloudwatch",AWSCloudWatchAlarmBlock2:"strokeColor=none;shape=mxgraph.aws3.alarm",AWSIAMSecurityTokenService2:"strokeColor=none;shape=mxgraph.aws3.sts_2",AWSIAMDataEncryptionKey2:"strokeColor=none;shape=mxgraph.aws3.data_encryption_key",
AWSIAMEncryptedData2:"strokeColor=none;shape=mxgraph.aws3.encrypted_data","AWSAWSIAM(long-termsecuritycredential)":"strokeColor=none;shape=mxgraph.aws3.long_term_security_credential",AWSIAMMFAToken2:"strokeColor=none;shape=mxgraph.aws3.mfa_token",AWSIAMPermissions2:"strokeColor=none;shape=mxgraph.aws3.permissions_2",AWSIAMRoles2:"strokeColor=none;shape=mxgraph.aws3.role","AWSAWSIAM(temporarysecuritycredential)":"strokeColor=none;shape=mxgraph.aws3.long_term_security_credential",AWSCloudTrail2:"strokeColor=none;shape=mxgraph.aws3.cloudtrail",
AWSConfig2:"strokeColor=none;shape=mxgraph.aws3.config",AWSOpsWorksBlock3:"strokeColor=none;shape=mxgraph.aws3.opsworks",AWSAWSServiceCatalog:"strokeColor=none;shape=mxgraph.aws3.service_catalog",AWSTrustedAdvisor2:"strokeColor=none;shape=mxgraph.aws3.trusted_advisor",AWSOpsWorksApps2:"strokeColor=none;shape=mxgraph.aws3.apps",AWSOpsWorksDeployments2:"strokeColor=none;shape=mxgraph.aws3.deployments",AWSOpsWorksInstances2:"strokeColor=none;shape=mxgraph.aws3.instances_2",AWSOpsWorksLayers2:"strokeColor=none;shape=mxgraph.aws3.layers",
AWSOpsWorksMonitoring2:"strokeColor=none;shape=mxgraph.aws3.monitoring",AWSOpsWorksPermissions2:"strokeColor=none;shape=mxgraph.aws3.permissions",AWSOpsWorksResources2:"strokeColor=none;shape=mxgraph.aws3.resources",AWSOpsWorksStack2:"strokeColor=none;shape=mxgraph.aws3.stack_aws_opsworks",AWSMechanicalTurkBlock3:"strokeColor=none;shape=mxgraph.aws3.mechanical_turk",AWSHumanITBlock2:"strokeColor=none;shape=mxgraph.aws3.human_intelligence_tasks_hit",AWSAssignmentTaskBlock2:"strokeColor=none;shape=mxgraph.aws3.requester",
AWSWorkersBlock2:"strokeColor=none;shape=mxgraph.aws3.users",AWSRequesterBlock2:"strokeColor=none;shape=mxgraph.aws3.assignment_task",AWSAndroidBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#96BF3D",AWSiOSBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#CFCFCF",AWSJavaBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#EE472A",AWSJavaScript:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#205E00",AWSNetBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#115193",
AWSNodeJSBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#8CC64F",AWSPHPBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#5A69A4",AWSPythonBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#FFD44F",AWSRubyBlock3:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#AE1F23",AWSXamarin:"strokeColor=none;shape=mxgraph.aws3.android;fillColor=#4090D7",AWSCLIBlock3:"strokeColor=none;shape=mxgraph.aws3.cli;fillColor=#444444",AWSEclipseToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_eclipse;fillColor=#342074",
AWSVisualStudioToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_visual_studio;fillColor=#53B1CB",AWSWindowsPowershellToolkitBlock3:"strokeColor=none;shape=mxgraph.aws3.toolkit_for_windows_powershell;fillColor=#737373",AWSAmazonElasticsearchService:"strokeColor=none;shape=mxgraph.aws3.elasticsearch_service",AWSElasticMapReduceBlock2:"strokeColor=none;shape=mxgraph.aws3.emr",AWSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.emr_cluster",AWSEMREngine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine",
AWSEMRMapRM3Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m3",AWSEMRMapRM5Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m5",AWSEMRMapRM7Engine2:"strokeColor=none;shape=mxgraph.aws3.emr_engine_mapr_m7",AWSKinesis2:"strokeColor=none;shape=mxgraph.aws3.kinesis","AWSAmazonKinesis(AmazonKinesisAnalytics)":"strokeColor=none;shape=mxgraph.aws3.kinesis",AWSKinesisEnabledApp2:"strokeColor=none;shape=mxgraph.aws3.kinesis_enabled_app","AWSAmazonKinesis(AmazonKinesisFirehose)":"strokeColor=none;shape=mxgraph.aws3.kinesis_firehose",
"AWSAmazonKinesis(AmazonKinesisStreams)":"strokeColor=none;shape=mxgraph.aws3.kinesis_streams",AWSAmazonMachineLearning:"strokeColor=none;shape=mxgraph.aws3.machine_learning",AWSAmazonQuickSight:"strokeColor=none;shape=mxgraph.aws3.quicksight",AWSCognito2:"strokeColor=none;shape=mxgraph.aws3.cognito",AWSMobileAnalytics2:"strokeColor=none;shape=mxgraph.aws3.mobile_analytics",AWSAWSDeviceFarm:"strokeColor=none;shape=mxgraph.aws3.device_farm",AWSAWSMobileHub:"strokeColor=none;shape=mxgraph.aws3.mobile_hub;gradientColor=#AD688A;gradientDirection=east",
AWSTopicBlock2:"strokeColor=none;shape=mxgraph.aws3.topic_2;fontStyle=1;fontColor=#ffffff;verticalAlign=top;spacingTop=-5",AWSEmailNotificationBlock2:"strokeColor=none;shape=mxgraph.aws3.email_notification",AWSHTTPNotificationBlock2:"strokeColor=none;shape=mxgraph.aws3.http_notification",AWSAWSCodeCommit:"strokeColor=none;shape=mxgraph.aws3.codecommit",AWSCodeDeploy2:"strokeColor=none;shape=mxgraph.aws3.codedeploy",AWSAWSCodePipeline:"strokeColor=none;shape=mxgraph.aws3.codepipeline",AWSWorkDocs2:"strokeColor=none;shape=mxgraph.aws3.workdocs",
AWSAmazonWorkMail:"strokeColor=none;shape=mxgraph.aws3.workmail",AWSAmazonWorkSpaces2:"strokeColor=none;shape=mxgraph.aws3.workspaces",AWSAWSIoT:"strokeColor=none;shape=mxgraph.aws3.aws_iot","AWSAWSIoT(action)":"strokeColor=none;shape=mxgraph.aws3.action","AWSAWSIoT(actuator)":"strokeColor=none;shape=mxgraph.aws3.actuator","AWSAWSIoT(certificate)":"strokeColor=none;shape=mxgraph.aws3.certificate","AWSAWSIoT(desiredstate)":"strokeColor=none;shape=mxgraph.aws3.desired_state","AWSAWSIoT(hardwareboard)":"strokeColor=none;shape=mxgraph.aws3.hardware_board",
"AWSAWSIoT(HTTP2protocol)":"strokeColor=none;shape=mxgraph.aws3.http_2_protocol","AWSAWSIoT(HTTPprotocol)":"strokeColor=none;shape=mxgraph.aws3.http_protocol","AWSAWSIoT(MQTTprotocol)":"strokeColor=none;shape=mxgraph.aws3.mqtt_protocol","AWSAWSIoT(policy)":"strokeColor=none;shape=mxgraph.aws3.policy","AWSAWSIoT(reportedstate)":"strokeColor=none;shape=mxgraph.aws3.reported_state","AWSAWSIoT(rule)":"strokeColor=none;shape=mxgraph.aws3.rule","AWSAWSIoT(sensor)":"strokeColor=none;shape=mxgraph.aws3.sensor",
"AWSAWSIoT(servo)":"strokeColor=none;shape=mxgraph.aws3.servo","AWSAWSIoT(shadow)":"strokeColor=none;shape=mxgraph.aws3.shadow","AWSAWSIoT(simulator)":"strokeColor=none;shape=mxgraph.aws3.simulator","AWSAWSIoT(thingbank)":"strokeColor=none;shape=mxgraph.aws3.bank","AWSAWSIoT(thingbicycle)":"strokeColor=none;shape=mxgraph.aws3.bicycle","AWSAWSIoT(thingcamera)":"strokeColor=none;shape=mxgraph.aws3.camera","AWSAWSIoT(thingcar)":"strokeColor=none;shape=mxgraph.aws3.car","AWSAWSIoT(thingcart)":"strokeColor=none;shape=mxgraph.aws3.cart",
"AWSAWSIoT(thingcoffeepot)":"strokeColor=none;shape=mxgraph.aws3.coffee_pot","AWSAWSIoT(thingdoorlock)":"strokeColor=none;shape=mxgraph.aws3.door_lock","AWSAWSIoT(thingfactory)":"strokeColor=none;shape=mxgraph.aws3.factory","AWSAWSIoT(thinggeneric)":"strokeColor=none;shape=mxgraph.aws3.generic","AWSAWSIoT(thinghouse)":"strokeColor=none;shape=mxgraph.aws3.house","AWSAWSIoT(thinglightbulb)":"strokeColor=none;shape=mxgraph.aws3.lightbulb","AWSAWSIoT(thingmedicalemergency)":"strokeColor=none;shape=mxgraph.aws3.medical_emergency",
"AWSAWSIoT(thingpoliceemergency)":"strokeColor=none;shape=mxgraph.aws3.police_emergency","AWSAWSIoT(thingthermostat)":"strokeColor=none;shape=mxgraph.aws3.thermostat","AWSAWSIoT(thingtravel)":"strokeColor=none;shape=mxgraph.aws3.travel","AWSAWSIoT(thingutility)":"strokeColor=none;shape=mxgraph.aws3.utility","AWSAWSIoT(thingwindfarm)":"strokeColor=none;shape=mxgraph.aws3.windfarm","AWSAWSIoT(topic)":"strokeColor=none;shape=mxgraph.aws3.topic",AWSCloudBlock2:"strokeColor=none;shape=mxgraph.aws3.cloud",
AWSVPCloudBlock3:"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud",AWSUserBlock2:"strokeColor=none;shape=mxgraph.aws3.user",AWSUsersBlock2:"strokeColor=none;shape=mxgraph.aws3.users",AWSClientBlock2:"strokeColor=none;shape=mxgraph.aws3.management_console",AWSMobileClientBlock2:"strokeColor=none;shape=mxgraph.aws3.mobile_client",AWSGenericDatabaseBlock3:"strokeColor=none;shape=mxgraph.aws3.generic_database",AWSDiskBlock3:"strokeColor=none;shape=mxgraph.aws3.disk",AWSTapeStorageBlock3:"strokeColor=none;shape=mxgraph.aws3.tape_storage",
AWSMediaBlock2:"strokeColor=none;shape=mxgraph.aws3.multimedia",AWSDataCenterBlock2:"strokeColor=none;shape=mxgraph.aws3.corporate_data_center",AWSServerBlock2:"strokeColor=none;shape=mxgraph.aws3.traditional_server",AWSInternetBlock2:"strokeColor=none;shape=mxgraph.aws2.non-service_specific.internet",AWSForumsBlock3:"strokeColor=none;shape=mxgraph.aws3.forums",AWSManagementBlock2:"strokeColor=none;shape=mxgraph.aws3.management_console",AWSAmazonElasticCacheNode2:"strokeColor=none;shape=mxgraph.aws3.cache_node",
AWSAmazonRedshiftDW1Cluster2:"strokeColor=none;shape=mxgraph.aws3.dense_compute_node",AWSAmazonRedshiftDW2Cluster2:"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAmazonRedshiftSSDFamilyCluster2:"strokeColor=none;shape=mxgraph.aws3.dense_storage_node",AWSAmazonRoute53RouteTable2:"strokeColor=none;shape=mxgraph.aws3.route_table",AWSSubnetBlock2:"strokeColor=none;shape=mxgraph.aws3.permissions",AWSRoundedRectangleContainerBlock2:"mxCompositeShape",ACAccessControlBlock:"strokeColor=none;shape=mxgraph.azure.access_control",
ACAPIAppsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.api_app",ACAPIManagementBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.api_management",ACAppInsightsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.application_insights",ACAppServicesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.app_service",ACAutoscalingBlock:"strokeColor=none;shape=mxgraph.azure.autoscale",ACAzureActiveDirectoryBlock:"strokeColor=none;shape=mxgraph.azure.azure_active_directory",ACAzurealertBlock:"strokeColor=none;shape=mxgraph.azure.azure_alert",
ACAzureAutomationBlock:"strokeColor=none;shape=mxgraph.azure.automation",ACAzureBatchBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_batch",ACAzureRedisBlock:"strokeColor=none;shape=mxgraph.azure.azure_cache",ACAzureFilesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_files_service",ACAzureloadbalancerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_automatic_load_balancer",ACAzureMarketplaceBlock:"strokeColor=none;shape=mxgraph.azure.azure_marketplace",ACAzureRightManagementRMSBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_rights_management_rms",
ACAzureSDKBlock:"strokeColor=none;shape=mxgraph.azure.azure_sdk",ACAzureSearchBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_search",ACAzureSQLdatabaseBlock:"strokeColor=none;shape=mxgraph.azure.sql_database_sql_azure",ACAzuresubscriptionBlock:"strokeColor=none;shape=mxgraph.azure.azure_subscription",ACAzureWebsitesBlock:"strokeColor=none;shape=mxgraph.azure.azure_website",ACBackupServiceBlock:"strokeColor=none;shape=mxgraph.azure.backup_service",ACBitbucketcodesourceBlock:"strokeColor=none;shape=mxgraph.azure.bitbucket_code_source",
ACBizTalkServicesBlock:"strokeColor=none;shape=mxgraph.azure.biztalk_services",ACCloudServiceBlock:"strokeColor=none;shape=mxgraph.azure.cloud_service",ACCodePlexBlock:"strokeColor=none;shape=mxgraph.azure.codeplex_code_source",ACContentDeliveryNetworkBlock:"strokeColor=none;shape=mxgraph.azure.content_delivery_network",ACDataFactoryBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.data_factory",ACDocumentDBBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.documentdb",ACDropboxcodesourceBlock:"strokeColor=none;shape=mxgraph.azure.dropbox_code_source",
ACEventsHubBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.event_hubs",ACExpressRouteBlock:"strokeColor=none;shape=mxgraph.azure.express_route",ACGitHubBlock:"strokeColor=none;shape=mxgraph.azure.github_code",ACGitrepositoryBlock:"strokeColor=none;shape=mxgraph.azure.git_repository",ACHDInsightBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hdinsight",ACHealthmonitoringBlock:"strokeColor=none;shape=mxgraph.azure.health_monitoring",ACHealthyBlock:"strokeColor=none;shape=mxgraph.azure.healthy",
ACHybridConnectionBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hybrid_connections",ACBizTalkhybridconnectionBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.hybrid_connection_manager",ACKeyVaultBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.key_vault",ACLogicAppBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.logic_app",ACMachineLearningBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.machine_learning",ACMediaServicesBlock:"strokeColor=none;shape=mxgraph.azure.media_service",ACMicrosoftaccountBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.microsoft_account",
ACMicrosoftAzureBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.microsoft_azure",ACMobileEngagementBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.mobile_engagement",ACMobileServicesBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.mobile_app",ACMultiFactorAuthBlock:"strokeColor=none;shape=mxgraph.azure.multi_factor_authentication",ACMySQLdatabaseBlock:"strokeColor=none;shape=mxgraph.azure.mysql_database",ACNotificationHubsBlock:"strokeColor=none;shape=mxgraph.azure.notification_hub",ACNotificationtopicBlock:"strokeColor=none;shape=mxgraph.azure.notification_topic",
ACOperationalInsightsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.operational_insights",ACOSimageBlock:"strokeColor=none;shape=mxgraph.azure.operating_system_image",ACRemoteAppBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.remoteapp",ACrpdRemotingfileBlock:"strokeColor=none;shape=mxgraph.azure.rdp_remoting_file",ACSchedulerBlock:"strokeColor=none;shape=mxgraph.azure.scheduler",ACServiceBusBlock:"strokeColor=none;shape=mxgraph.azure.service_bus",ACServiceBusQueueBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_queues",
ACServiceBusRelayBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_relay",ACServiceBusTopicBlock:"strokeColor=none;shape=mxgraph.azure.service_bus_topics_and_subscriptions",ACServiceEndpointBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.service_endpoint",ACServicepackageBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.service_package",ACSiteRecoveryBlock:"strokeColor=none;shape=mxgraph.azure.hyper_v_recovery_manager",ACSQLdatabasegenericBlock:"strokeColor=none;shape=mxgraph.azure.sql_database",
ACSQLdatasyncBlock:"strokeColor=none;shape=mxgraph.azure.sql_datasync",ACSQLreportingdeprecatedBlock:"strokeColor=none;shape=mxgraph.azure.sql_reporting",ACStartuptaskBlock:"strokeColor=none;shape=mxgraph.azure.startup_task",ACStorageAzureBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_storage",ACStorageblobBlock:"strokeColor=none;shape=mxgraph.azure.storage_blob",ACStoragequeueBlock:"strokeColor=none;shape=mxgraph.azure.storage_queue",ACStoragetableBlock:"strokeColor=none;shape=mxgraph.azure.storage_table",
ACStorSimpleBlock:"strokeColor=none;shape=mxgraph.azure.storsimple",ACStreamAnalyticsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.stream_analytics",ACTrafficManagerBlock:"strokeColor=none;shape=mxgraph.azure.traffic_manager",ACAlienBlock:"strokeColor=none;shape=mxgraph.azure.unidentified_code_object",ACVHDBlock:"strokeColor=none;shape=mxgraph.azure.vhd",ACVHDdatadiskBlock:"strokeColor=none;shape=mxgraph.azure.vhd_data_disk",ACVirtualmachineBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine",
ACVirtualmachinecontainerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.virtual_machine_container",ACVirtualnetworkBlock:"strokeColor=none;shape=mxgraph.azure.virtual_network",ACVisualStudioOnlineBlock:"strokeColor=none;shape=mxgraph.azure.visual_studio_online",ACVMsymbolonlyBlock:"strokeColor=none;shape=mxgraph.azure.virtual_machine_feature",ACWebJobsBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.webjobs",ACWebroleBlock:"strokeColor=none;shape=mxgraph.azure.web_role",ACWebrolesBlock:"strokeColor=none;shape=mxgraph.azure.web_roles",
ACWorkaccountBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.work_account",ACWorkerroleBlock:"strokeColor=none;shape=mxgraph.azure.worker_role",ACWorkerrolesBlock:"strokeColor=none;shape=mxgraph.azure.worker_roles",ADNSBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_dns",ACLoadBalancerBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.azure_load_balancer_feature",ACResourceGroupBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.resource_group",ACVPNGatewayBlock:"strokeColor=none;shape=mxgraph.mscae.cloud.vpn_gateway",
AEActiveDirectoryFSPBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.d",AEADFSBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.ad_fs",AEAndroidPhoneBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.android_phone",AEappblankfortextBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.application_blank",AEAppGenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.app_generic",AEAppserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.application_server",AEBackuplocalBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.backup_local",
AEBackuponlineBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.backup_online",AECalendarBlock:"strokeColor=none;shape=mxgraph.mscae.general.calendar",AECertificateBlock:"strokeColor=none;shape=mxgraph.azure.certificate",AEClientAppBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.client_application",AECloudBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.internet",AEClusterserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.cluster_server",AECodefileBlock:"strokeColor=none;shape=mxgraph.azure.code_file",
AEConnectorsBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.connectors",AEDatabasegenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_generic",AEDatabaseserverBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_server",AEDatabasesyncBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.database_synchronization",AEDeviceBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.device",AEDirectaccessBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.direct_access_feature",
AEDocumentBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.document",AEDomaincontrollerBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.domain_controller",AEEnterpriseBuildingBlock:"strokeColor=none;shape=mxgraph.azure.enterprise",AEFilegeneralBlock:"strokeColor=none;shape=mxgraph.azure.file",AEFilterBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.filter",AEFirewallBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.firewall",AEFolderBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.folder",
AEGatewayBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.gateway",AEGenericcodeBlock:"strokeColor=none;shape=mxgraph.azure.code_file",AEGraphBlock:"strokeColor=none;shape=mxgraph.mscae.general.graph",AEHealthmonitoringBlock:"strokeColor=none;shape=mxgraph.azure.health_monitoring",AEHealthyBlock:"strokeColor=none;shape=mxgraph.azure.healthy",AEImportgenericBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.import_generic",AEInternetBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.internet",
AEKeyboardBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.keyboard",AEKeypermissionsBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.key_permissions",AELaptopcomputerBlock:"strokeColor=none;shape=mxgraph.azure.laptop",AELoadbalancerBlock:"strokeColor=none;shape=mxgraph.azure.load_balancer_generic",AELoadTestingBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.load_testing",AELockprotectedBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.lock",AELockunprotectedBlock:"strokeColor=none;shape=mxgraph.mscae.enterprise.lock_unlocked",
@ -288,53 +318,59 @@ EE_MOSFET_P2:"shape=mxgraph.electrical.mosfets1.mosfet_p_no_bulk",EE_MOSFET_P3:"
EE_NOR:"shape=mxgraph.electrical.logic_gates.nor",EE_XOR:"shape=mxgraph.electrical.logic_gates.xor",EE_NXOR:"shape=mxgraph.electrical.logic_gates.xnor",EE_DTypeRSFlipFlop:"shape=mxgraph.electrical.logic_gates.d_type_rs_flip-flop",EE_DTypeFlipFlop:"shape=mxgraph.electrical.logic_gates.d_type_flip-flop",EE_DTypeFlipFlopWithClear:"shape=mxgraph.electrical.logic_gates.d_type_flip-flop_with_clear",EE_RSLatch:"shape=mxgraph.electrical.logic_gates.rs_latch",EE_SyncRSLatch:"shape=mxgraph.electrical.logic_gates.synchronous_rs_latch",
EE_TTypeFlipFlop:"shape=mxgraph.electrical.logic_gates.t_type_flip-flop",EE_Plus:"shape=mxgraph.ios7.misc.flagged",EE_Negative:"shape=line",EE_InverterContact:"shape=ellipse",EE_Voltmeter:"shape=mxgraph.electrical.instruments.voltmeter",EE_Ammeter:"shape=mxgraph.electrical.instruments.ampermeter",EE_SineWave:"shape=mxgraph.electrical.waveforms.sine_wave",EE_Sawtooth:"shape=mxgraph.electrical.waveforms.sawtooth",EE_SquareWave:"shape=mxgraph.electrical.waveforms.square_wave",EIChannelBlock:"shape=mxgraph.eip.messageChannel;verticalLabelPosition=bottom;verticalAlign=top",
EIMessageChannelBlock:"mxCompositeShape",EIMessageBlock:"mxCompositeShape",EIMessageRouterBlock:"shape=mxgraph.eip.content_based_router;verticalLabelPosition=bottom;verticalAlign=top",EIMessageTranslatorBlock:"shape=mxgraph.eip.message_translator;verticalLabelPosition=bottom;verticalAlign=top",EIMessageEndpointBlock:"mxCompositeShape",EIPublishSubscribeChannelBlock:"mxCompositeShape",EIDatatypeChannelBlock:"mxCompositeShape",EIInvalidMessageChannelBlock:"mxCompositeShape",EIDeadLetterChannelBlock:"mxCompositeShape",
EIGuaranteedDeliveryBlock:"mxCompositeShape",EIChannelAdapterBlock:"mxCompositeShape",EIMessagingBridgeBlock:"shape=mxgraph.eip.messaging_bridge;verticalLabelPosition=bottom;verticalAlign=top",EIMessageBusBlock:"mxCompositeShape",EICommandMessageBlock:"mxCompositeShape",EIDocumentMessageBlock:"mxCompositeShape",EIEventMessageBlock:"mxCompositeShape",EIRequestReplyBlock:"mxCompositeShape",EIReturnAddressBlock:"mxCompositeShape",EICorrelationIDBlock:"mxCompositeShape",EIContentBasedRouterBlock:"shape=mxgraph.eip.content_based_router",
EIMessageFilterBlock:"shape=mxgraph.eip.message_filter",EIDynamicRouterBlock:"shape=mxgraph.eip.dynamic_router",EIRecipientListBlock:"shape=mxgraph.eip.recipient_list",EISplitterBlock:"shape=mxgraph.eip.splitter",EIAggregatorBlock:"shape=mxgraph.eip.aggregator",EIResequencerBlock:"shape=mxgraph.eip.resequencer",EIComposedMessageBlock:"shape=mxgraph.eip.composed_message_processor",EIRoutingSlipBlock:"shape=mxgraph.eip.routing_slip",EIProcessManagerBlock:"shape=mxgraph.eip.process_manager",EIMessageBrokerBlock:"mxCompositeShape",
EIEnvelopeWrapperBlock:"shape=mxgraph.eip.envelope_wrapper",EIContentEnricherBlock:"shape=mxgraph.eip.content_enricher",EIContentFilterBlock:"shape=mxgraph.eip.content_filter",EIClaimCheckBlock:"shape=mxgraph.eip.claim_check",EINormalizerBlock:"shape=mxgraph.eip.normalizer",EIMessagingGatewayBlock:"shape=mxgraph.eip.messaging_gateway",EITransactionalClientBlock:"shape=mxgraph.eip.transactional_client",EIPollingConsumerBlock:"shape=mxgraph.eip.polling_consumer",EIEventDrivenConsumerBlock:"shape=mxgraph.eip.event_driven_consumer",
EICompetingConsumersBlock:"shape=mxgraph.eip.competing_consumers",EIMessageDispatcherBlock:"shape=mxgraph.eip.message_dispatcher",EISelectiveConsumerBlock:"shape=mxgraph.eip.selective_consumer",EIServiceActivatorBlock:"shape=mxgraph.eip.service_activator",EIDetourBlock:"shape=mxgraph.eip.detour",EIWireTapBlock:"shape=mxgraph.eip.wire_tap",EIMessageHistoryBlock:"mxCompositeShape",EIMessageStoreBlock:"shape=mxgraph.eip.message_store",EISmartProxyBlock:"shape=mxgraph.eip.smart_proxy",EITestMessageBlock:"shape=mxgraph.eip.test_message",
EIChannelPurgerBlock:"shape=mxgraph.eip.channel_purger",GCPIconComputeEngineBlock:"strokeColor=none;shape=mxgraph.gcp.compute.compute_engine",GCPIconAppEngineBlock:"strokeColor=none;shape=mxgraph.gcp.compute.app_engine",GCPIconContainerEngineBlock:"strokeColor=none;shape=mxgraph.gcp.compute.container_engine",GCPIconContainerRegistryBlock:"strokeColor=none;shape=mxgraph.gcp.compute.container_registry",GCPIconCloudFunctionsBlock:"strokeColor=none;shape=mxgraph.gcp.compute.cloud_functions",GCPIconCloudStorageBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_storage",
GCPIconCloudSQLBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_sql",GCPIconCloudBigtableBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_bigtable",GCPIconCloudDatastoreBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_datastore",GCPIconPersistentDiskBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.persistent_disk",GCPIconCloudVirtualNetworkBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_virtual_network",GCPIconCloudLoadBalancingBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_load_balancing",
GCPIconCloudCDNBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_cdn",GCPIconCloudInterconnectBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_interconnect",GCPIconCloudDNSBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_dns",GCPIconBigQueryBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.bigquery",GCPIconCloudDataflowBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_dataflow",GCPIconCloudDataprocBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_dataproc",
GCPIconCloudDatalabBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_datalab",GCPIconCloudPubSubBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_pubsub",GCPIconGenomicsBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.genomics",GCPIconCloudMachineLearningServicesBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.cloud_machine_learning",GCPIconVisionAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.vision_api",GCPIconSpeechAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.speech_api",
GCPIconNaturalLanguageAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.natural_language_api",GCPIconTranslateAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.translation_api",GCPIconStackdriverOverviewBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.stackdriver",GCPIconMonitoringBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.monitoring",GCPIconErrorReportingBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.error_reporting",GCPIconTraceBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.trace",
GCPIconDebuggerBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.debugger",GCPIconDeploymentManagerBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.deployment_manager",GCPIconCloudEndpointsBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.cloud_endpoints",GCPIconCloudToolsForPowerShellBlock:"strokeColor=none;shape=mxgraph.gcp.developer_tools.cloud_tools_for_powershell",GCPIconCloudToolsForVisualStudioBlock:"strokeColor=none;shape=mxgraph.gcp.developer_tools.cloud_tools_for_visual_studio",
GCPIconCloudIAMBlock:"strokeColor=none;shape=mxgraph.gcp.identity_and_security.cloud_iam",GCPIconGCPLogoBlock:"strokeColor=none;shape=mxgraph.gcp.extras.generic_gcp",GCPIconBlankBlock:"strokeColor=none;shape=mxgraph.gcp.extras.blue_hexagon",Equation:"mxCompositeShape",fpWall:"",fpWindow:"shape=mxgraph.floorplan.window",fpOpening:"shape=rect",fpDoor:"shape=mxgraph.floorplan.doorLeft;flipV=1",fpDoubleDoor:"shape=mxgraph.floorplan.doorDouble;flipV=1",fpStairs:"shape=mxgraph.floorplan.stairs;direction=north",
fpStairsDirectional:"shape=mxgraph.floorplan.stairs;direction=north",fpStairsCurved:"mxCompositeShape",fpStairsCurvedWide:"mxCompositeShape",fpDeskLongSegment:"",fpDeskShortSegment:"",fpDeskLargeCornerSegment:"shape=mxgraph.floorplan.desk_corner",fpCubiclePanel:"shape=mxgraph.floorplan.wall;wallThickness=3",fpCubicleWorkstation:"shape=mxgraph.floorplan.wallU;wallThickness=3",fpCubicleCorner5x5:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCorner6x6:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",
fpCubicleCorner8x8:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCorner8x6:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCornerOpen6x4:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleDouble14x8:"shape=mxgraph.floorplan.wallU;wallThickness=3",fpCubicleEnclosed11x9:"shape=mxgraph.floorplan.wallU;wallThickness=3",fpTableConferenceOval:"shape=ellipse",fpTableConferenceBoat:"",fpTableConferenceRectangle:"",fpTableDiningRound:"shape=ellipse",fpTableDiningSquare:"",
fpChairOffice:"shape=mxgraph.floorplan.office_chair",fpChairExecutive:"shape=mxgraph.floorplan.office_chair",fpChairLobby:"shape=mxgraph.floorplan.office_chair",fpChairDining:"shape=mxgraph.floorplan.chair",fpChairBarstool:"shape=ellipse",fpCabinetBasic:"",fpCabinetDoubleWide:"",fpCabinetDoubleWithShelves:"",fpCabinetShelvesBasic:"",fpCabinetShelvesDouble:"",fpCabinetBasicWithShelves:"",fpCabinetsAboveDeskShelves:"",fpRestroomToiletPrivate:"shape=mxgraph.floorplan.toilet",fpRestroomToiletPublic:"shape=mxgraph.floorplan.toilet",
fpRestroomLights:"mxCompositeShape",fpRestroomSinks:"mxCompositeShape",fpRestroomBathtub:"shape=mxgraph.floorplan.bathtub;direction=south",fpRestroomShower:"shape=mxgraph.floorplan.shower;flipH=1",fpRestroomPedastalSink:"shape=mxgraph.floorplan.sink_1",fpRestroomCountertop:"",fpRestroomMirror:"shape=line;strokeWidth=3",fpBedDouble:"shape=mxgraph.floorplan.bed_double",fpBedSingle:"shape=mxgraph.floorplan.bed_single",fpBedQueen:"shape=mxgraph.floorplan.bed_double",fpBedKing:"shape=mxgraph.floorplan.bed_double",
fpBedDoubleWithTrundle:"shape=mxgraph.floorplan.bed_double",fpBedBunk:"shape=mxgraph.floorplan.bed_double",fpBedBassinet:"shape=mxgraph.pid.fittings.compensator",fpApplianceWasher:"",fpApplianceDryer:"",fpApplianceWaterHeater:"shape=ellipse",fpApplianceStoveOven:"shape=mxgraph.floorplan.range_1",fpStoveOvenSixBurner:"shape=mxgraph.floorplan.range_2",fpApplianceDishwasher:"",fpKitchenSink:"shape=mxgraph.floorplan.sink_2",fpKitchenDoubleSink:"shape=mxgraph.floorplan.sink_double",fpKitchenCountertop:"",
fpKitchenCountertopCorner:"shape=mxgraph.floorplan.desk_corner",fpCouchLoveSeat:"shape=mxgraph.floorplan.couch",fpCouchSofa:"shape=mxgraph.floorplan.couch",fpCouchOttoman:"",fpMiscDesktopComputer:"shape=mxgraph.floorplan.workstation",fpMiscLaptopComputer:"shape=mxgraph.floorplan.laptop",fpComputerMonitor:"shape=mxgraph.floorplan.flat_tv",fpCRTTelevision:"shape=mxgraph.floorplan.flat_tv",fpMiscIndoorPlant:"shape=mxgraph.floorplan.plant",fpPiano:"shape=mxgraph.floorplan.piano",PEAxialCompressor:"shape=mxgraph.pid.compressors.centrifugal_compressor_-_turbine_driven",
PECentrifugalCompressor:"shape=mxgraph.pid.compressors.centrifugal_compressor",PECentrifugalCompressor2:"shape=mxgraph.pid.compressors.centrifugal_compressor_-_turbine_driven",PEReciprocationCompressor:"shape=mxgraph.pid.compressors.reciprocating_compressor",PERotaryCompressorBlock:"shape=mxgraph.pid.compressors.rotary_compressor",PERotaryCompressor2Block:"shape=mxgraph.pid.compressors.compressor_and_silencers",PEConveyorBlock:"shape=mxgraph.pid2misc.conveyor",PEElevator1Block:"shape=mxgraph.pid.misc.bucket_elevator;flipH=1",
PEAgitatorMixerBlock:"shape=mxgraph.pid.agitators.agitator_(propeller)",PEDrumBlock:"shape=mxgraph.pid.vessels.drum_or_condenser",PETankEquipmentBlock:"shape=mxgraph.pid.vessels.tank",PEMixingReactorBlock:"shape=mxgraph.pid.vessels.mixing_reactor",PEPlateTowerBlock:"shape=mxgraph.pid2misc.column;columnType=baffle",PEPackedTowerBlock:"shape=mxgraph.pid2misc.column;columnType=fixed",PEFurnaceBlock:"shape=mxgraph.pid.vessels.furnace",PEOneToMany:"mxCompositeShape",PEMultilines:"mxCompositeShape",PEMidArrow:"shape=triangle",
PEButtWeld:"shape=mxgraph.sysml.x",PETopToTop:"shape=mxgraph.pid.vessels.container,_tank,_cistern",PENuclear:"shape=mxgraph.electrical.waveforms.sine_wave",PEMechanicalLink:"shape=ellipse",PESolderedSolvent:"shape=ellipse",PEDoubleContainment:"shape=hexagon",PEFlange:"shape=mxgraph.pid.piping.double_flange",PEFlange2:"shape=mxgraph.pid.piping.flange_in;flipH=1",PEEndCap:"shape=mxgraph.pid.piping.cap",PEEndCap2:"shape=mxgraph.pid.vessels.container,_tank,_cistern;direction=north",PEBreather:"shape=mxgraph.pid.piping.breather",
PEElectronicallyInsulated:"shape=mxgraph.pid.piping.double_flange",PEReducer:"shape=mxgraph.pid.piping.concentric_reducer",PEInlineMixer:"shape=mxgraph.pid.piping.in-line_mixer",PEFlameArrester:"shape=mxgraph.pid.piping.flame_arrestor",PEDetonationArrester:"shape=mxgraph.pid.piping.detonation_arrestor",PETriangleSeparator:"shape=triangle;direction=west",PETundish:"shape=mxgraph.ios7.misc.left",PEOpenVent:"shape=mxgraph.pid.vessels.vent_(bent)",PERemovableSpool:"shape=mxgraph.pid.piping.removable_spool",
PEYTypeStrainer:"shape=mxgraph.pid.piping.y-type_strainer",PEDiverterValve:"shape=mxgraph.pid.piping.diverter_valve",PEPulsationDampener:"shape=mxgraph.pid.piping.pulsation_dampener",PEDuplexStrainer:"shape=mxgraph.pid.piping.duplex_strainer",PEBasketStrainer:"shape=mxgraph.pid.piping.basket_strainer",PEVentSilencer:"shape=mxgraph.pid.piping.vent_silencer",PEInlineSilencer:"shape=mxgraph.pid.piping.in-line_silencer",PESteamTrap:"shape=mxgraph.pid.piping.steam_trap",PEDesuperheater:"shape=mxgraph.pid.piping.desuper_heater",
PEEjectorOrEductor:"shape=mxgraph.pid.fittings.injector",PEExhaustHead:"shape=mxgraph.pid.piping.exhaust_head",PERotaryValve:"shape=mxgraph.pid.piping.rotary_valve",PEExpansionJoint:"shape=mxgraph.pid.piping.expansion_joint",PEVesselBlock:"mxCompositeShape",PEOpenTankBlock:"shape=mxgraph.pid.vessels.container,_tank,_cistern",PEOpenTopTank:"shape=mxgraph.pid.vessels.container,_tank,_cistern",PEClosedTankBlock:"mxCompositeShape",PEStorageSphereBlock:"shape=mxgraph.pid.vessels.storage_sphere",PEColumnBlock:"shape=mxgraph.pid.vessels.pressurized_vessel",
PEBagBlock:"shape=mxgraph.pid.vessels.bag",PEGasCylinderBlock:"shape=mxgraph.pid.vessels.gas_bottle",PEGasHolderBlock:"shape=mxgraph.pid.vessels.gas_holder",PEClarifierBlock:"shape=mxgraph.pid.vessels.bunker_(conical_bottom)",PETrayColumnBlock:"shape=mxgraph.pid2misc.column;columnType=tray",PEReactionVesselBlock:"shape=mxgraph.pid.vessels.reactor",PEBin:"shape=mxgraph.pid.vessels.tank_(conical_bottom)",PEDomeRoofTank:"shape=mxgraph.pid.vessels.tank_(dished_roof)",PEConeRoofTank:"shape=mxgraph.pid.vessels.tank_(conical_roof)",
PEBoilerBlock:"shape=mxgraph.pid.misc.boiler_(dome)",PEEquipmentBoilerBlock:"shape=mxgraph.pid.misc.boiler_(dome)",PEReboilerBlock:"shape=mxgraph.pid.heat_exchangers.reboiler",PECondenserBlock:"shape=mxgraph.pid.heat_exchangers.heat_exchanger_(straight_tubes)",PEEquipmentCondenserBlock:"shape=mxgraph.pid.heat_exchangers.condenser",PECoolingTowerBlock:"shape=mxgraph.pid.misc.cooling_tower",PEHeatExchangerBlock:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_1",PEHairpinExchangerBlock:"shape=mxgraph.pid.heat_exchangers.hairpin_exchanger",
PEPlateAndFrameHeatExchangerBlock:"shape=mxgraph.pid.heat_exchangers.plate_and_frame_heat_exchanger",PESpiralHeatExchanger:"shape=mxgraph.pid.heat_exchangers.spiral_heat_exchanger",PEUTubeHeatExchangerBlock:"shape=mxgraph.pid.heat_exchangers.u-tube_heat_exchanger",PEDoublePipeHeatBlock:"shape=mxgraph.pid.heat_exchangers.double_pipe_heat_exchanger",PEShellAndTubeHeat1Block:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_1",PEShellAndTubeHeat2Block:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_2",
PEShellAndTubeHeat3Block:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_1;direction=north",PESinglePassHeatBlock:"shape=mxgraph.pid.heat_exchangers.single_pass_heat_exchanger",PEHeaterBlock:"shape=mxgraph.pid.heat_exchangers.heater",PEEjectorInjectorBlock:"shape=mxgraph.pid.fittings.injector",PECompressorTurbineBlock:"shape=mxgraph.pid.engines.turbine;flipH=1",PETripleFanBlades2Block:"shape=mxgraph.pid2misc.fan;fanType=common",PEFanBlades2Block:"shape=mxgraph.pid2misc.fan;fanType=common",
PECentrifugalPumpBlock:"shape=mxgraph.pid.pumps.centrifugal_pump_1",PECentrifugalPump:"shape=mxgraph.pid.pumps.centrifugal_pump_1",PECentrifugalPump2:"shape=mxgraph.pid.pumps.centrifugal_pump_2",PECentrifugalPump3:"shape=mxgraph.pid.pumps.centrifugal_pump_1;flipH=1",PEGearPumpBlock:"shape=mxgraph.pid.pumps.gear_pump",PEHorizontalPump:"shape=mxgraph.pid.pumps.horizontal_pump",PEProgressiveCavityPump:"shape=mxgraph.pid.pumps.cavity_pump;flipH=1;flipV=1",PEScrewPump:"shape=mxgraph.pid.pumps.screw_pump",
PEScrewPump2:"shape=mxgraph.pid.pumps.screw_pump_2;flipH=1",PESumpPump:"shape=mxgraph.pid.pumps.sump_pump",PEVacuumPump:"shape=mxgraph.pid.pumps.vacuum_pump",PEVerticalPump:"shape=mxgraph.pid.pumps.vertical_pump",PEVerticalPump2:"shape=mxgraph.pid.pumps.vertical_pump",PEIndicatorBlock:"shape=mxgraph.pid2inst.discInst;mounting=room",PEIndicator2Block:"shape=mxgraph.pid2inst.indicator;mounting=room;indType=inst",PEIndicator3Block:"shape=mxgraph.pid2inst.discInst;mounting=field",PEIndicator4Block:"shape=mxgraph.pid2inst.indicator;mounting=field;indType=inst",
PESharedIndicatorBlock:"shape=mxgraph.pid2inst.sharedCont;mounting=room",PESharedIndicator2Block:"shape=mxgraph.pid2inst.indicator;mounting=room;indType=ctrl",PEProgrammableIndicatorBlock:"shape=mxgraph.pid2inst.progLogCont;mounting=room",PEGateValveBlock:"shape=mxgraph.pid2valves.valve;valveType=gate",PEGlobeValveBlock:"shape=mxgraph.pid2valves.valve;valveType=globe",PEControlValveBlock:"shape=mxgraph.pid2valves.valve;valveType=gate;actuator=diaph",PENeedleValveBlock:"shape=mxgraph.pid2valves.valve;valveType=needle",
PEButterflyValve2Block:"shape=mxgraph.pid2valves.valve;valveType=butterfly",PEDiaphragmBlock:"shape=mxgraph.pid2valves.valve;valveType=ball",PECheckValveBlock:"shape=mxgraph.pid2valves.valve;valveType=check",PECheckValve2Block:"shape=mxgraph.pid2valves.valve;valveType=check",PEAngleValveBlock:"shape=mxgraph.pid2valves.valve;valveType=angle;actuator=none",PEAngleGlobeValveBlock:"shape=mxgraph.pid2valves.valve;valveType=angleGlobe;actuator=man;flipH=1",PEPoweredValveBlock:"shape=mxgraph.pid2valves.valve;valveType=gate;actuator=digital",
PEFloatOperatedValveBlock:"shape=mxgraph.pid2valves.valve;valveType=gate;actuator=singActing",PEThreeWayValveBlock:"shape=mxgraph.pid2valves.valve;valveType=threeWay;actuator=none",PEBleederValveBlock:"shape=mxgraph.pid2valves.blockBleedValve;actuator=none",PERotameterBlock:"shape=mxgraph.pid.flow_sensors.rotameter;flipH=1",VennGradientColor1:"shape=ellipse;fillOpacity=35",VennGradientColor2:"shape=ellipse;fillOpacity=35",VennGradientColor3:"shape=ellipse;fillOpacity=35",VennGradientColor4:"shape=ellipse;fillOpacity=35",
VennGradientColor5:"shape=ellipse;fillOpacity=35",VennGradientColor6:"shape=ellipse;fillOpacity=35",VennGradientColor7:"shape=ellipse;fillOpacity=35",VennGradientColor8:"shape=ellipse;fillOpacity=35",VennPlainColor1:"shape=ellipse;fillOpacity=35",VennPlainColor2:"shape=ellipse;fillOpacity=35",VennPlainColor3:"shape=ellipse;fillOpacity=35",VennPlainColor4:"shape=ellipse;fillOpacity=35",VennPlainColor5:"shape=ellipse;fillOpacity=35",VennPlainColor6:"shape=ellipse;fillOpacity=35",VennPlainColor7:"shape=ellipse;fillOpacity=35",
VennPlainColor8:"shape=ellipse;fillOpacity=35",iOS7DeviceiPhone5Portrait:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPhone5Landscape:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPadPortrait:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iOS7DeviceiPadLandscape:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iOS7DeviceiPhone6Portrait:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPhone6Landscape:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPhone6PlusPortrait:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",
iOS7DeviceiPhone6PlusLandscape:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7StatusBariPhone:"shape=mxgraph.ios7ui.appBar",iOS7TabsiPhone:"mxCompositeShape",iOS7iPhoneActionSheet:"mxCompositeShape",iOS7iPhoneKeyboard:"shape=mxgraph.ios7.misc.keyboard_(letters)",iOS7TableView:"mxCompositeShape",iOS7StatusBariPad:"shape=mxgraph.ios7ui.appBar",iOS7NavBariPad:"mxCompositeShape",iOS7TabsiPad:"mxCompositeShape",iOS7iPadActionSheet:"mxCompositeShape",iOS7iPadKeyboard:"shape=mxgraph.ios7.misc.keyboard_(letters)",
iOS7AlertDialog:"mxCompositeShape",iOS7ProgressBar:"shape=mxgraph.ios7ui.downloadBar",iOS7Slider:"shape=mxgraph.ios7ui.searchBox",iOS7SearchBar:"shape=mxgraph.ios7ui.searchBox",iOS7Button:"",iOS7TextField:"",iOS7TextView:"",iOS7SegmentedControl:"mxCompositeShape",iOS7Toggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor=#38D145;strokeColor2=#aaaaaa;fillColor=#38D145;fillColor2=#ffffff",iOS7Stepper:"shape=mxgraph.ios7.misc.adjust;fillColor=#ffffff;gradientColor=none",iOS7PageControls:"shape=mxgraph.ios7ui.pageControl;fillColor=#666666;strokeColor=#bbbbbb",
iOS7Block:"",iOS7DatePicker:"mxCompositeShape",iOS7TimePicker:"mxCompositeShape",iOS7CountdownPicker:"mxCompositeShape","iOS7IconArrow left":"shape=mxgraph.ios7.misc.left",iOS7IconArrow:"shape=mxgraph.ios7.misc.right","iOS7IconArrow up":"shape=mxgraph.ios7.misc.up","iOS7IconArrow down":"shape=mxgraph.ios7.misc.down",iOS7IconWifi:"shape=mxgraph.ios7.icons.wifi",iOS7IconBluetooth:"shape=mxgraph.ios7.icons.bluetooth",iOS7IconBattery:"shape=mxgraph.ios7.icons.battery",iOS7IconSiri:"shape=mxgraph.ios7.icons.microphone",
iOS7IconCheck:"shape=mxgraph.ios7.icons.select",iOS7IconCreate:"shape=mxgraph.ios7.icons.add",iOS7IconInfo:"shape=mxgraph.ios7.icons.info",iOS7IconLocation:"shape=mxgraph.ios7.icons.location_2",iOS7IconQuestion:"shape=mxgraph.ios7.icons.help",iOS7IconSearch:"shape=mxgraph.ios7.icons.looking_glass",iOS7IconToolbox:"shape=mxgraph.ios7.icons.briefcase",iOS7IconOptions:"shape=mxgraph.ios7.icons.options",iOS7IconShare:"shape=mxgraph.ios7.icons.share",iOS7IconTyping:"shape=mxgraph.ios7.icons.message",iOS7IconCopy:"shape=mxgraph.ios7.icons.folders_2",
iOS7IconChat:"shape=mxgraph.ios7.icons.messages",iOS7IconOrganize:"shape=mxgraph.ios7.icons.folder",iOS7IconTrash:"shape=mxgraph.ios7.icons.trashcan",iOS7IconReply:"shape=mxgraph.ios7.icons.back",iOS7IconArchive:"shape=mxgraph.ios7.icons.box",iOS7IconCompose:"shape=mxgraph.ios7.icons.compose",iOS7IconSend:"shape=mxgraph.ios7.icons.pointer",iOS7IconDrawer:"shape=mxgraph.ios7.icons.storage",iOS7IconMail:"shape=mxgraph.ios7.icons.mail",iOS7IconDocument:"shape=mxgraph.ios7.icons.document",iOS7IconFlag:"shape=mxgraph.ios7.icons.flag",
iOS7IconBookmarks:"shape=mxgraph.ios7.icons.book",iOS7IconGlasses:"shape=mxgraph.ios7.icons.glasses",iOS7IconFiles:"shape=mxgraph.ios7.icons.folders",iOS7IconDownloads:"shape=mxgraph.ios7.icons.down",iOS7IconLock:"shape=mxgraph.ios7.icons.locked",iOS7IconCloud:"shape=mxgraph.ios7.icons.cloud","iOS7IconOrientation Lock":"shape=mxgraph.ios7.icons.orientation_lock",iOS7IconContacts:"shape=mxgraph.ios7.icons.user",iOS7IconGlobal:"shape=mxgraph.ios7.icons.globe",iOS7IconSettings:"shape=mxgraph.ios7.icons.settings",
iOS7IconAirplay:"shape=mxgraph.ios7.icons.move_to_folder",iOS7IconCamera:"shape=mxgraph.ios7.icons.camera",iOS7IconAirplane:"shape=mxgraph.signs.transportation.airplane_6;direction=south",iOS7IconCalculator:"shape=mxgraph.ios7.icons.calculator",iOS7IconPreferences:"shape=mxgraph.ios7.icons.most_viewed",iOS7IconPhone:"shape=mxgraph.signs.tech.telephone_3",iOS7IconKeypad:"shape=mxgraph.ios7.icons.keypad",iOS7IconVoicemail:"shape=mxgraph.ios7.icons.tape",iOS7IconStar:"shape=mxgraph.ios7.icons.star",
"iOS7IconMost Viewed":"shape=mxgraph.ios7.icons.most_viewed",iOS7IconVideo:"shape=mxgraph.ios7.icons.video_conversation","iOS7IconVolumne Controls":"shape=mxgraph.ios7.icons.volume","iOS7IconLocation pin":"shape=mxgraph.ios7.icons.location",iOS7IconCalendar:"shape=mxgraph.ios7.icons.calendar",iOS7IconAlarm:"shape=mxgraph.ios7.icons.alarm_clock",iOS7IconClock:"shape=mxgraph.ios7.icons.clock",iOS7IconTimer:"shape=mxgraph.ios7.icons.gauge","iOS7IconVolume down":"shape=mxgraph.ios7.icons.silent",iOS7IconVolume:"shape=mxgraph.ios7.icons.volume_2",
"iOS7IconVolume up":"shape=mxgraph.ios7.icons.loud",iOS7IconRepeat:"shape=mxgraph.ios7.icons.reload",iOS7IconRewind:"shape=mxgraph.ios7.icons.backward",iOS7IconPlay:"shape=mxgraph.ios7.icons.play",iOS7IconPause:"shape=mxgraph.ios7.icons.pause","iOS7IconFast forward":"shape=mxgraph.ios7.icons.forward",iOS7IconControls:"shape=mxgraph.ios7.icons.controls",iOS7IconPrivacy:"shape=mxgraph.ios7.icons.privacy",iOS7IconLink:"shape=mxgraph.ios7.icons.link",iOS7IconLight:"shape=mxgraph.ios7.icons.flashlight",
iOS7IconBrightness:"shape=mxgraph.ios7.icons.sun",iOS7IconHeart:"shape=mxgraph.ios7.icons.heart",iOS7IconJava:"shape=mxgraph.ios7.icons.cup",iOS7IconBox:"shape=mxgraph.ios7.icons.bag",iOS7IconEye:"shape=mxgraph.ios7.icons.eye","iOS7IconDo not disturb":"shape=mxgraph.ios7.icons.moon",UI2BrowserBlock:"shape=mxgraph.mockup.containers.browserWindow;mainText=,",UI2WindowBlock:"shape=mxgraph.mockup.containers.window;strokeColor2=#008cff;strokeColor3=#c4c4c4;fontColor=#666666;mainText=",UI2DialogBlock:"mxCompositeShape",
UI2AreaBlock:"",UI2ElementBlock:"",UI2AccordionBlock:"mxCompositeShape",UI2TabBarContainerBlock:"mxCompositeShape",UI2TabBar2ContainerBlock:"mxCompositeShape",UI2VTabBarContainerBlock:"mxCompositeShape",UI2VScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar;direction=north",UI2HScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar",UI2VerticalSplitterBlock:"shape=mxgraph.mockup.forms.splitter;direction=north",UI2HorizontalSplitterBlock:"shape=mxgraph.mockup.forms.splitter",UI2ImageBlock:"shape=mxgraph.mockup.graphics.simpleIcon",
UI2VideoBlock:"shape=mxgraph.mockup.containers.videoPlayer;barHeight=30",UI2AudioBlock:"shape=mxgraph.mockup.misc.playbackControls",UI2MapBlock:"shape=mxgraph.mockup.misc.map",UI2BarChartBlock:"shape=mxgraph.mockup.graphics.barChart;strokeColor=none;strokeColor2=none",UI2ColumnChartBlock:"shape=mxgraph.mockup.graphics.columnChart;strokeColor=none;strokeColor2=none",UI2LineChartBlock:"shape=mxgraph.mockup.graphics.lineChart;strokeColor=none",UI2PieChartBlock:"shape=mxgraph.mockup.graphics.pieChart;parts=10,20,35",
UI2WebcamBlock:"shape=mxgraph.mockup.containers.userMale",UI2CaptchaBlock:"shape=mxgraph.mockup.text.captcha;mainText=",UI2ButtonBlock:"rounded=1;arcSize=25;",UI2CheckBoxBlock:"mxCompositeShape",UI2HorizontalCheckBoxBlock:"mxCompositeShape",UI2RadioBlock:"mxCompositeShape",UI2HorizontalRadioBlock:"mxCompositeShape",UI2ColorPickerBlock:"shape=mxgraph.mockup.forms.colorPicker;chosenColor=#aaddff",UI2TextInputBlock:"",UI2SelectBlock:"shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666",
EIGuaranteedDeliveryBlock:"mxCompositeShape",EIChannelAdapterBlock:"mxCompositeShape",EIMessagingBridgeBlock:"shape=mxgraph.eip.messaging_bridge;verticalLabelPosition=bottom;verticalAlign=top",EIMessageBusBlock:"mxCompositeShape",EICommandMessageBlock:"mxCompositeShape",EIDocumentMessageBlock:"mxCompositeShape",EIEventMessageBlock:"mxCompositeShape",EIRequestReplyBlock:"mxCompositeShape",EIReturnAddressBlock:"mxCompositeShape",EICorrelationIDBlock:"mxCompositeShape",EIMessageSequenceBlock:"mxCompositeShape",
EIMessageExpirationBlock:"mxCompositeShape",EIContentBasedRouterBlock:"shape=mxgraph.eip.content_based_router;verticalLabelPosition=bottom;verticalAlign=top",EIMessageFilterBlock:"shape=mxgraph.eip.message_filter;verticalLabelPosition=bottom;verticalAlign=top",EIDynamicRouterBlock:"shape=mxgraph.eip.dynamic_router;verticalLabelPosition=bottom;verticalAlign=top",EIRecipientListBlock:"shape=mxgraph.eip.recipient_list;verticalLabelPosition=bottom;verticalAlign=top",EISplitterBlock:"shape=mxgraph.eip.splitter;verticalLabelPosition=bottom;verticalAlign=top",
EIAggregatorBlock:"shape=mxgraph.eip.aggregator;verticalLabelPosition=bottom;verticalAlign=top",EIResequencerBlock:"shape=mxgraph.eip.resequencer;verticalLabelPosition=bottom;verticalAlign=top",EIComposedMessageBlock:"shape=mxgraph.eip.composed_message_processor;verticalLabelPosition=bottom;verticalAlign=top",EIRoutingSlipBlock:"shape=mxgraph.eip.routing_slip;verticalLabelPosition=bottom;verticalAlign=top",EIProcessManagerBlock:"shape=mxgraph.eip.process_manager;verticalLabelPosition=bottom;verticalAlign=top",
EIMessageBrokerBlock:"mxCompositeShape",EIEnvelopeWrapperBlock:"shape=mxgraph.eip.envelope_wrapper;verticalLabelPosition=bottom;verticalAlign=top",EIContentEnricherBlock:"shape=mxgraph.eip.content_enricher;verticalLabelPosition=bottom;verticalAlign=top",EIContentFilterBlock:"shape=mxgraph.eip.content_filter;verticalLabelPosition=bottom;verticalAlign=top",EIClaimCheckBlock:"shape=mxgraph.eip.claim_check;verticalLabelPosition=bottom;verticalAlign=top",EINormalizerBlock:"shape=mxgraph.eip.normalizer;verticalLabelPosition=bottom;verticalAlign=top",
EIMessagingGatewayBlock:"shape=mxgraph.eip.messaging_gateway;verticalLabelPosition=bottom;verticalAlign=top",EITransactionalClientBlock:"shape=mxgraph.eip.transactional_client;verticalLabelPosition=bottom;verticalAlign=top",EIPollingConsumerBlock:"shape=mxgraph.eip.polling_consumer;verticalLabelPosition=bottom;verticalAlign=top",EIEventDrivenConsumerBlock:"shape=mxgraph.eip.event_driven_consumer;verticalLabelPosition=bottom;verticalAlign=top",EICompetingConsumersBlock:"shape=mxgraph.eip.competing_consumers;verticalLabelPosition=bottom;verticalAlign=top",
EIMessageDispatcherBlock:"shape=mxgraph.eip.message_dispatcher;verticalLabelPosition=bottom;verticalAlign=top",EISelectiveConsumerBlock:"shape=mxgraph.eip.selective_consumer;verticalLabelPosition=bottom;verticalAlign=top",EIDurableSubscriberBlock:"mxCompositeShape",EIServiceActivatorBlock:"shape=mxgraph.eip.service_activator;verticalLabelPosition=bottom;verticalAlign=top",EIControlBusBlock:"mxCompositeShape",EIDetourBlock:"shape=mxgraph.eip.detour;verticalLabelPosition=bottom;verticalAlign=top",EIWireTapBlock:"shape=mxgraph.eip.wire_tap;verticalLabelPosition=bottom;verticalAlign=top",
EIMessageHistoryBlock:"mxCompositeShape",EIMessageStoreBlock:"shape=mxgraph.eip.message_store;verticalLabelPosition=bottom;verticalAlign=top",EISmartProxyBlock:"shape=mxgraph.eip.smart_proxy;verticalLabelPosition=bottom;verticalAlign=top",EITestMessageBlock:"shape=mxgraph.eip.test_message;verticalLabelPosition=bottom;verticalAlign=top",EIChannelPurgerBlock:"shape=mxgraph.eip.channel_purger;verticalLabelPosition=bottom;verticalAlign=top",GCPIconComputeEngineBlock:"strokeColor=none;shape=mxgraph.gcp.compute.compute_engine",
GCPIconAppEngineBlock:"strokeColor=none;shape=mxgraph.gcp.compute.app_engine",GCPIconContainerEngineBlock:"strokeColor=none;shape=mxgraph.gcp.compute.container_engine",GCPIconContainerRegistryBlock:"strokeColor=none;shape=mxgraph.gcp.compute.container_registry",GCPIconCloudFunctionsBlock:"strokeColor=none;shape=mxgraph.gcp.compute.cloud_functions",GCPIconCloudStorageBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_storage",GCPIconCloudSQLBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_sql",
GCPIconCloudBigtableBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_bigtable",GCPIconCloudDatastoreBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.cloud_datastore",GCPIconPersistentDiskBlock:"strokeColor=none;shape=mxgraph.gcp.storage_databases.persistent_disk",GCPIconCloudVirtualNetworkBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_virtual_network",GCPIconCloudLoadBalancingBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_load_balancing",GCPIconCloudCDNBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_cdn",
GCPIconCloudInterconnectBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_interconnect",GCPIconCloudDNSBlock:"strokeColor=none;shape=mxgraph.gcp.networking.cloud_dns",GCPIconBigQueryBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.bigquery",GCPIconCloudDataflowBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_dataflow",GCPIconCloudDataprocBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_dataproc",GCPIconCloudDatalabBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_datalab",
GCPIconCloudPubSubBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.cloud_pubsub",GCPIconGenomicsBlock:"strokeColor=none;shape=mxgraph.gcp.big_data.genomics",GCPIconCloudMachineLearningServicesBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.cloud_machine_learning",GCPIconVisionAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.vision_api",GCPIconSpeechAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.speech_api",GCPIconNaturalLanguageAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.natural_language_api",
GCPIconTranslateAPIBlock:"strokeColor=none;shape=mxgraph.gcp.machine_learning.translation_api",GCPIconStackdriverOverviewBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.stackdriver",GCPIconMonitoringBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.monitoring",GCPIconErrorReportingBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.error_reporting",GCPIconTraceBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.trace",GCPIconDebuggerBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.debugger",
GCPIconDeploymentManagerBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.deployment_manager",GCPIconCloudEndpointsBlock:"strokeColor=none;shape=mxgraph.gcp.management_tools.cloud_endpoints",GCPIconCloudToolsForPowerShellBlock:"strokeColor=none;shape=mxgraph.gcp.developer_tools.cloud_tools_for_powershell",GCPIconCloudToolsForVisualStudioBlock:"strokeColor=none;shape=mxgraph.gcp.developer_tools.cloud_tools_for_visual_studio",GCPIconCloudIAMBlock:"strokeColor=none;shape=mxgraph.gcp.identity_and_security.cloud_iam",
GCPIconGCPLogoBlock:"strokeColor=none;shape=mxgraph.gcp.extras.generic_gcp",GCPIconBlankBlock:"strokeColor=none;shape=mxgraph.gcp.extras.blue_hexagon",Equation:"mxCompositeShape",fpWall:"",fpWindow:"shape=mxgraph.floorplan.window",fpOpening:"shape=rect",fpDoor:"mxCompositeShape",fpDoubleDoor:"mxCompositeShape",fpStairs:"shape=mxgraph.floorplan.stairs;direction=north",fpStairsDirectional:"shape=mxgraph.floorplan.stairs;direction=north;verticalAlign=bottom",fpDeskLongSegment:"",fpDeskShortSegment:"",
fpDeskLargeCornerSegment:"shape=mxgraph.floorplan.desk_corner",fpCubiclePanel:"shape=mxgraph.floorplan.wall;wallThickness=3",fpCubicleWorkstation:"shape=mxgraph.floorplan.wallU;wallThickness=3",fpCubicleCorner5x5:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCorner6x6:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCorner8x8:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCorner8x6:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",fpCubicleCornerOpen6x4:"shape=mxgraph.floorplan.wallCorner;wallThickness=3",
fpCubicleDouble14x8:"shape=mxgraph.floorplan.wallU;wallThickness=3",fpCubicleEnclosed11x9:"shape=mxgraph.floorplan.wallU;wallThickness=3",fpTableConferenceOval:"shape=ellipse",fpTableConferenceBoat:"",fpTableConferenceRectangle:"",fpTableDiningRound:"shape=ellipse",fpTableDiningSquare:"",fpChairOffice:"shape=mxgraph.floorplan.office_chair",fpChairExecutive:"shape=mxgraph.floorplan.office_chair",fpChairLobby:"shape=mxgraph.floorplan.office_chair",fpChairDining:"shape=mxgraph.floorplan.chair",fpChairBarstool:"shape=ellipse",
fpCabinetBasic:"",fpCabinetDoubleWide:"",fpCabinetDoubleWithShelves:"",fpCabinetShelvesBasic:"",fpCabinetShelvesDouble:"",fpCabinetBasicWithShelves:"",fpCabinetsAboveDeskShelves:"",fpRestroomToiletPrivate:"shape=mxgraph.floorplan.toilet",fpRestroomToiletPublic:"shape=mxgraph.floorplan.toilet",fpRestroomLights:"mxCompositeShape",fpRestroomSinks:"mxCompositeShape",fpRestroomBathtub:"shape=mxgraph.floorplan.bathtub;direction=south",fpRestroomShower:"shape=mxgraph.floorplan.shower;flipH=1",fpRestroomPedastalSink:"shape=mxgraph.floorplan.sink_1",
fpRestroomCountertop:"",fpRestroomMirror:"shape=line;strokeWidth=3",fpRestroomStalls:"mxCompositeShape",fpBedDouble:"shape=mxgraph.floorplan.bed_double",fpBedSingle:"shape=mxgraph.floorplan.bed_single",fpBedQueen:"shape=mxgraph.floorplan.bed_double",fpBedKing:"shape=mxgraph.floorplan.bed_double",fpBedDoubleWithTrundle:"shape=mxgraph.floorplan.bed_double",fpBedBunk:"shape=mxgraph.floorplan.bed_double",fpBedBassinet:"shape=mxgraph.pid.fittings.compensator",fpApplianceWasher:"",fpApplianceDryer:"",fpApplianceWaterHeater:"shape=ellipse",
fpApplianceStoveOven:"shape=mxgraph.floorplan.range_1",fpStoveOvenSixBurner:"shape=mxgraph.floorplan.range_2",fpApplianceDishwasher:"",fpKitchenSink:"shape=mxgraph.floorplan.sink_2",fpKitchenDoubleSink:"shape=mxgraph.floorplan.sink_double",fpKitchenCountertop:"",fpKitchenCountertopCorner:"shape=mxgraph.floorplan.desk_corner",fpCouchLoveSeat:"shape=mxgraph.floorplan.couch",fpCouchSofa:"shape=mxgraph.floorplan.couch",fpCouchOttoman:"",fpMiscDesktopComputer:"shape=mxgraph.floorplan.workstation",fpMiscLaptopComputer:"shape=mxgraph.floorplan.laptop",
fpComputerMonitor:"shape=mxgraph.floorplan.flat_tv",fpCRTTelevision:"shape=mxgraph.floorplan.flat_tv",fpMiscIndoorPlant:"shape=mxgraph.floorplan.plant",fpPiano:"shape=mxgraph.floorplan.piano",PEAxialCompressor:"shape=mxgraph.pid.compressors.centrifugal_compressor_-_turbine_driven;verticalLabelPosition=bottom;verticalAlign=top",PECentrifugalCompressor:"shape=mxgraph.pid.compressors.centrifugal_compressor;verticalLabelPosition=bottom;verticalAlign=top",PECentrifugalCompressor2:"shape=mxgraph.pid.compressors.centrifugal_compressor_-_turbine_driven;verticalLabelPosition=bottom;verticalAlign=top",
PEReciprocationCompressor:"shape=mxgraph.pid.compressors.reciprocating_compressor;verticalLabelPosition=bottom;verticalAlign=top",PERotaryCompressorBlock:"shape=mxgraph.pid.compressors.rotary_compressor;verticalLabelPosition=bottom;verticalAlign=top",PERotaryCompressor2Block:"shape=mxgraph.pid.compressors.compressor_and_silencers;verticalLabelPosition=bottom;verticalAlign=top",PEConveyorBlock:"shape=mxgraph.pid2misc.conveyor;verticalLabelPosition=bottom;verticalAlign=top",PEElevator1Block:"shape=mxgraph.pid.misc.bucket_elevator;flipH=1;verticalLabelPosition=bottom;verticalAlign=top",
PEAgitatorMixerBlock:"shape=mxgraph.pid.agitators.agitator_(propeller);verticalLabelPosition=bottom;verticalAlign=top",PEDrumBlock:"shape=mxgraph.pid.vessels.drum_or_condenser;verticalLabelPosition=bottom;verticalAlign=top",PETankEquipmentBlock:"shape=mxgraph.pid.vessels.tank;verticalLabelPosition=bottom;verticalAlign=top",PEMixingReactorBlock:"shape=mxgraph.pid.vessels.mixing_reactor;verticalLabelPosition=bottom;verticalAlign=top",PEPlateTowerBlock:"shape=mxgraph.pid2misc.column;columnType=baffle;verticalLabelPosition=bottom;verticalAlign=top",
PEPackedTowerBlock:"shape=mxgraph.pid2misc.column;columnType=fixed;verticalLabelPosition=bottom;verticalAlign=top",PEFurnaceBlock:"shape=mxgraph.pid.vessels.furnace;verticalLabelPosition=bottom;verticalAlign=top",PEOneToMany:"mxCompositeShape",PEMultilines:"mxCompositeShape",PEMidArrow:"shape=triangle",PEButtWeld:"shape=mxgraph.sysml.x",PETopToTop:"shape=mxgraph.pid.vessels.container,_tank,_cistern",PENuclear:"shape=mxgraph.electrical.waveforms.sine_wave",PEMechanicalLink:"shape=ellipse",PESolderedSolvent:"shape=ellipse",
PEDoubleContainment:"shape=hexagon",PEFlange:"shape=mxgraph.pid.piping.double_flange",PEFlange2:"shape=mxgraph.pid.piping.flange_in;flipH=1",PEEndCap:"shape=mxgraph.pid.piping.cap",PEEndCap2:"shape=mxgraph.pid.vessels.container,_tank,_cistern;direction=north",PEBreather:"shape=mxgraph.pid.piping.breather",PEElectronicallyInsulated:"shape=mxgraph.pid.piping.double_flange",PEReducer:"shape=mxgraph.pid.piping.concentric_reducer",PEInlineMixer:"shape=mxgraph.pid.piping.in-line_mixer",PEFlameArrester:"shape=mxgraph.pid.piping.flame_arrestor",
PEDetonationArrester:"shape=mxgraph.pid.piping.detonation_arrestor",PETriangleSeparator:"shape=triangle;direction=west",PETundish:"shape=mxgraph.ios7.misc.left",PEOpenVent:"shape=mxgraph.pid.vessels.vent_(bent)",PERemovableSpool:"shape=mxgraph.pid.piping.removable_spool",PEYTypeStrainer:"shape=mxgraph.pid.piping.y-type_strainer",PEDiverterValve:"shape=mxgraph.pid.piping.diverter_valve",PEPulsationDampener:"shape=mxgraph.pid.piping.pulsation_dampener",PEDuplexStrainer:"shape=mxgraph.pid.piping.duplex_strainer",
PEBasketStrainer:"shape=mxgraph.pid.piping.basket_strainer",PEVentSilencer:"shape=mxgraph.pid.piping.vent_silencer",PEInlineSilencer:"shape=mxgraph.pid.piping.in-line_silencer",PESteamTrap:"shape=mxgraph.pid.piping.steam_trap",PEDesuperheater:"shape=mxgraph.pid.piping.desuper_heater",PEEjectorOrEductor:"shape=mxgraph.pid.fittings.injector",PEExhaustHead:"shape=mxgraph.pid.piping.exhaust_head",PERotaryValve:"shape=mxgraph.pid.piping.rotary_valve",PEExpansionJoint:"shape=mxgraph.pid.piping.expansion_joint",
PEVesselBlock:"mxCompositeShape",PEOpenTankBlock:"shape=mxgraph.pid.vessels.container,_tank,_cistern;verticalLabelPosition=bottom;verticalAlign=top",PEOpenTopTank:"shape=mxgraph.pid.vessels.container,_tank,_cistern;verticalLabelPosition=bottom;verticalAlign=top",PEClosedTankBlock:"mxCompositeShape",PEStorageSphereBlock:"shape=mxgraph.pid.vessels.storage_sphere;verticalLabelPosition=bottom;verticalAlign=top",PEColumnBlock:"mxCompositeShape",PEBagBlock:"shape=mxgraph.pid.vessels.bag;verticalLabelPosition=bottom;verticalAlign=top",
PEGasCylinderBlock:"shape=mxgraph.pid.vessels.gas_bottle;verticalLabelPosition=bottom;verticalAlign=top",PEGasHolderBlock:"shape=mxgraph.pid.vessels.gas_holder;verticalLabelPosition=bottom;verticalAlign=top",PEClarifierBlock:"shape=mxgraph.pid.vessels.bunker_(conical_bottom);verticalLabelPosition=bottom;verticalAlign=top",PETankBlock:"shape=mxgraph.pid.vessels.tank_(conical_roof);verticalLabelPosition=bottom;verticalAlign=top",PETrayColumnBlock:"shape=mxgraph.pid2misc.column;columnType=tray;verticalLabelPosition=bottom;verticalAlign=top",
PEReactionVesselBlock:"shape=mxgraph.pid.vessels.reactor",PEBin:"shape=mxgraph.pid.vessels.tank_(conical_bottom)",PEDomeRoofTank:"shape=mxgraph.pid.vessels.tank_(dished_roof)",PEConeRoofTank:"shape=mxgraph.pid.vessels.tank_(conical_roof)",PEBoilerBlock:"shape=mxgraph.pid.misc.boiler_(dome);verticalLabelPosition=bottom;verticalAlign=top",PEEquipmentBoilerBlock:"shape=mxgraph.pid.misc.boiler_(dome);verticalLabelPosition=bottom;verticalAlign=top",PEReboilerBlock:"shape=mxgraph.pid.heat_exchangers.reboiler;verticalLabelPosition=bottom;verticalAlign=top",
PECondenserBlock:"shape=mxgraph.pid.heat_exchangers.heat_exchanger_(straight_tubes);verticalLabelPosition=bottom;verticalAlign=top",PEEquipmentCondenserBlock:"shape=mxgraph.pid.heat_exchangers.condenser;verticalLabelPosition=bottom;verticalAlign=top",PECoolingTowerBlock:"shape=mxgraph.pid.misc.cooling_tower;verticalLabelPosition=bottom;verticalAlign=top",PEHeatExchangerBlock:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_1;verticalLabelPosition=bottom;verticalAlign=top",PEHairpinExchangerBlock:"shape=mxgraph.pid.heat_exchangers.hairpin_exchanger;verticalLabelPosition=bottom;verticalAlign=top",
PEPlateAndFrameHeatExchangerBlock:"shape=mxgraph.pid.heat_exchangers.plate_and_frame_heat_exchanger;verticalLabelPosition=bottom;verticalAlign=top",PESpiralHeatExchanger:"shape=mxgraph.pid.heat_exchangers.spiral_heat_exchanger;verticalLabelPosition=bottom;verticalAlign=top",PEUTubeHeatExchangerBlock:"shape=mxgraph.pid.heat_exchangers.u-tube_heat_exchanger;verticalLabelPosition=bottom;verticalAlign=top",PEDoublePipeHeatBlock:"shape=mxgraph.pid.heat_exchangers.double_pipe_heat_exchanger;verticalLabelPosition=bottom;verticalAlign=top",
PEShellAndTubeHeat1Block:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_1;verticalLabelPosition=bottom;verticalAlign=top",PEShellAndTubeHeat2Block:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_2;verticalLabelPosition=bottom;verticalAlign=top",PEShellAndTubeHeat3Block:"shape=mxgraph.pid.heat_exchangers.shell_and_tube_heat_exchanger_1;direction=north;verticalLabelPosition=bottom;verticalAlign=top",PESinglePassHeatBlock:"shape=mxgraph.pid.heat_exchangers.single_pass_heat_exchanger;verticalLabelPosition=bottom;verticalAlign=top",
PEHeaterBlock:"shape=mxgraph.pid.heat_exchangers.heater",PEEjectorInjectorBlock:"shape=mxgraph.pid.fittings.injector;verticalLabelPosition=bottom;verticalAlign=top",PECompressorTurbineBlock:"mxCompositeShape",PEMotorDrivenTurbineBlock:"mxCompositeShape",PECentrifugalPumpBlock:"shape=mxgraph.pid.pumps.gas_blower;flipH=1;verticalLabelPosition=bottom;verticalAlign=top",PECentrifugalPump:"shape=mxgraph.pid.pumps.centrifugal_pump_1;verticalLabelPosition=bottom;verticalAlign=top",PECentrifugalPump2:"shape=mxgraph.pid.pumps.centrifugal_pump_2;verticalLabelPosition=bottom;verticalAlign=top",
PECentrifugalPump3:"shape=mxgraph.pid.pumps.centrifugal_pump_1;flipH=1;verticalLabelPosition=bottom;verticalAlign=top",PEGearPumpBlock:"shape=mxgraph.pid.pumps.gear_pump;verticalLabelPosition=bottom;verticalAlign=top",PEHorizontalPump:"shape=mxgraph.pid.pumps.horizontal_pump;verticalLabelPosition=bottom;verticalAlign=top",PEProgressiveCavityPump:"shape=mxgraph.pid.pumps.cavity_pump;flipH=1;flipV=1;verticalLabelPosition=bottom;verticalAlign=top",PEScrewPump:"shape=mxgraph.pid.pumps.screw_pump;verticalLabelPosition=bottom;verticalAlign=top",
PEScrewPump2:"shape=mxgraph.pid.pumps.screw_pump_2;flipH=1;verticalLabelPosition=bottom;verticalAlign=top",PESumpPump:"shape=mxgraph.pid.pumps.sump_pump;verticalLabelPosition=bottom;verticalAlign=top",PEVacuumPump:"shape=mxgraph.pid.pumps.vacuum_pump;verticalLabelPosition=bottom;verticalAlign=top",PEVerticalPump:"shape=mxgraph.pid.pumps.vertical_pump;verticalLabelPosition=bottom;verticalAlign=top",PEVerticalPump2:"shape=mxgraph.pid.pumps.vertical_pump;verticalLabelPosition=bottom;verticalAlign=top",
PEIndicatorBlock:"mxCompositeShape",PEIndicator2Block:"mxCompositeShape",PEIndicator3Block:"shape=mxgraph.pid2inst.discInst;mounting=field",PEIndicator4Block:"shape=mxgraph.pid2inst.indicator;mounting=field;indType=inst",PESharedIndicatorBlock:"mxCompositeShape",PESharedIndicator2Block:"mxCompositeShape",PEComputerIndicatorBlock:"mxCompositeShape",PEProgrammableIndicatorBlock:"mxCompositeShape",PEGateValveBlock:"mxCompositeShape",PEGlobeValveBlock:"shape=mxgraph.pid2valves.valve;valveType=globe",
PEControlValveBlock:"shape=mxgraph.pid2valves.valve;valveType=gate;actuator=diaph",PENeedleValveBlock:"shape=mxgraph.pid2valves.valve;valveType=needle",PEButterflyValve2Block:"shape=mxgraph.pid2valves.valve;valveType=butterfly",PEDiaphragmBlock:"shape=mxgraph.pid2valves.valve;valveType=ball",PECheckValveBlock:"shape=mxgraph.pid2valves.valve;valveType=check",PECheckValve2Block:"shape=mxgraph.pid2valves.valve;valveType=check",PEAngleValveBlock:"shape=mxgraph.pid2valves.valve;valveType=angle;actuator=none",
PEAngleGlobeValveBlock:"shape=mxgraph.pid2valves.valve;valveType=angleGlobe;actuator=man;flipH=1",PEPoweredValveBlock:"shape=mxgraph.pid2valves.valve;valveType=gate;actuator=digital",PEFloatOperatedValveBlock:"shape=mxgraph.pid2valves.valve;valveType=gate;actuator=singActing",PEThreeWayValveBlock:"shape=mxgraph.pid2valves.valve;valveType=threeWay;actuator=none",PEBleederValveBlock:"shape=mxgraph.pid2valves.blockBleedValve;actuator=none",PERotameterBlock:"shape=mxgraph.pid.flow_sensors.rotameter;flipH=1",
VennGradientColor1:"shape=ellipse;fillOpacity=35",VennGradientColor2:"shape=ellipse;fillOpacity=35",VennGradientColor3:"shape=ellipse;fillOpacity=35",VennGradientColor4:"shape=ellipse;fillOpacity=35",VennGradientColor5:"shape=ellipse;fillOpacity=35",VennGradientColor6:"shape=ellipse;fillOpacity=35",VennGradientColor7:"shape=ellipse;fillOpacity=35",VennGradientColor8:"shape=ellipse;fillOpacity=35",VennPlainColor1:"shape=ellipse;fillOpacity=35",VennPlainColor2:"shape=ellipse;fillOpacity=35",VennPlainColor3:"shape=ellipse;fillOpacity=35",
VennPlainColor4:"shape=ellipse;fillOpacity=35",VennPlainColor5:"shape=ellipse;fillOpacity=35",VennPlainColor6:"shape=ellipse;fillOpacity=35",VennPlainColor7:"shape=ellipse;fillOpacity=35",VennPlainColor8:"shape=ellipse;fillOpacity=35",iOS7DeviceiPhone5Portrait:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPhone5Landscape:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPadPortrait:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iOS7DeviceiPadLandscape:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",
iOS7DeviceiPhone6Portrait:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPhone6Landscape:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPhone6PlusPortrait:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7DeviceiPhone6PlusLandscape:"shape=mxgraph.ios.iPhone;bgStyle=bgGreen",iOS7StatusBariPhone:"shape=mxgraph.ios7ui.appBar",iOS7TabsiPhone:"mxCompositeShape",iOS7iPhoneActionSheet:"mxCompositeShape",iOS7iPhoneKeyboard:"shape=mxgraph.ios7.misc.keyboard_(letters)",iOS7TableView:"mxCompositeShape",
iOS7StatusBariPad:"shape=mxgraph.ios7ui.appBar",iOS7NavBariPad:"mxCompositeShape",iOS7TabsiPad:"mxCompositeShape",iOS7iPadActionSheet:"mxCompositeShape",iOS7iPadKeyboard:"shape=mxgraph.ios7.misc.keyboard_(letters)",iOS7AlertDialog:"mxCompositeShape",iOS7ProgressBar:"shape=mxgraph.ios7ui.downloadBar",iOS7Slider:"shape=mxgraph.ios7ui.searchBox",iOS7SearchBar:"shape=mxgraph.ios7ui.searchBox",iOS7Button:"",iOS7TextField:"",iOS7TextView:"",iOS7SegmentedControl:"mxCompositeShape",iOS7Toggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor=#38D145;strokeColor2=#aaaaaa;fillColor=#38D145;fillColor2=#ffffff",
iOS7Stepper:"shape=mxgraph.ios7.misc.adjust;fillColor=#ffffff;gradientColor=none",iOS7PageControls:"shape=mxgraph.ios7ui.pageControl;fillColor=#666666;strokeColor=#bbbbbb",iOS7Block:"",iOS7DatePicker:"mxCompositeShape",iOS7TimePicker:"mxCompositeShape",iOS7CountdownPicker:"mxCompositeShape","iOS7IconArrow left":"shape=mxgraph.ios7.misc.left",iOS7IconArrow:"shape=mxgraph.ios7.misc.right","iOS7IconArrow up":"shape=mxgraph.ios7.misc.up","iOS7IconArrow down":"shape=mxgraph.ios7.misc.down",iOS7IconWifi:"shape=mxgraph.ios7.icons.wifi",
iOS7IconBluetooth:"shape=mxgraph.ios7.icons.bluetooth",iOS7IconBattery:"shape=mxgraph.ios7.icons.battery",iOS7IconSiri:"shape=mxgraph.ios7.icons.microphone",iOS7IconCheck:"shape=mxgraph.ios7.icons.select",iOS7IconCreate:"shape=mxgraph.ios7.icons.add",iOS7IconInfo:"shape=mxgraph.ios7.icons.info",iOS7IconLocation:"shape=mxgraph.ios7.icons.location_2",iOS7IconQuestion:"shape=mxgraph.ios7.icons.help",iOS7IconSearch:"shape=mxgraph.ios7.icons.looking_glass",iOS7IconToolbox:"shape=mxgraph.ios7.icons.briefcase",
iOS7IconOptions:"shape=mxgraph.ios7.icons.options",iOS7IconShare:"shape=mxgraph.ios7.icons.share",iOS7IconTyping:"shape=mxgraph.ios7.icons.message",iOS7IconCopy:"shape=mxgraph.ios7.icons.folders_2",iOS7IconChat:"shape=mxgraph.ios7.icons.messages",iOS7IconOrganize:"shape=mxgraph.ios7.icons.folder",iOS7IconTrash:"shape=mxgraph.ios7.icons.trashcan",iOS7IconReply:"shape=mxgraph.ios7.icons.back",iOS7IconArchive:"shape=mxgraph.ios7.icons.box",iOS7IconCompose:"shape=mxgraph.ios7.icons.compose",iOS7IconSend:"shape=mxgraph.ios7.icons.pointer",
iOS7IconDrawer:"shape=mxgraph.ios7.icons.storage",iOS7IconMail:"shape=mxgraph.ios7.icons.mail",iOS7IconDocument:"shape=mxgraph.ios7.icons.document",iOS7IconFlag:"shape=mxgraph.ios7.icons.flag",iOS7IconBookmarks:"shape=mxgraph.ios7.icons.book",iOS7IconGlasses:"shape=mxgraph.ios7.icons.glasses",iOS7IconFiles:"shape=mxgraph.ios7.icons.folders",iOS7IconDownloads:"shape=mxgraph.ios7.icons.down",iOS7IconLock:"shape=mxgraph.ios7.icons.locked",iOS7IconCloud:"shape=mxgraph.ios7.icons.cloud","iOS7IconOrientation Lock":"shape=mxgraph.ios7.icons.orientation_lock",
iOS7IconContacts:"shape=mxgraph.ios7.icons.user",iOS7IconGlobal:"shape=mxgraph.ios7.icons.globe",iOS7IconSettings:"shape=mxgraph.ios7.icons.settings",iOS7IconAirplay:"shape=mxgraph.ios7.icons.move_to_folder",iOS7IconCamera:"shape=mxgraph.ios7.icons.camera",iOS7IconAirplane:"shape=mxgraph.signs.transportation.airplane_6;direction=south",iOS7IconCalculator:"shape=mxgraph.ios7.icons.calculator",iOS7IconPreferences:"shape=mxgraph.ios7.icons.most_viewed",iOS7IconPhone:"shape=mxgraph.signs.tech.telephone_3",
iOS7IconKeypad:"shape=mxgraph.ios7.icons.keypad",iOS7IconVoicemail:"shape=mxgraph.ios7.icons.tape",iOS7IconStar:"shape=mxgraph.ios7.icons.star","iOS7IconMost Viewed":"shape=mxgraph.ios7.icons.most_viewed",iOS7IconVideo:"shape=mxgraph.ios7.icons.video_conversation","iOS7IconVolumne Controls":"shape=mxgraph.ios7.icons.volume","iOS7IconLocation pin":"shape=mxgraph.ios7.icons.location",iOS7IconCalendar:"shape=mxgraph.ios7.icons.calendar",iOS7IconAlarm:"shape=mxgraph.ios7.icons.alarm_clock",iOS7IconClock:"shape=mxgraph.ios7.icons.clock",
iOS7IconTimer:"shape=mxgraph.ios7.icons.gauge","iOS7IconVolume down":"shape=mxgraph.ios7.icons.silent",iOS7IconVolume:"shape=mxgraph.ios7.icons.volume_2","iOS7IconVolume up":"shape=mxgraph.ios7.icons.loud",iOS7IconRepeat:"shape=mxgraph.ios7.icons.reload",iOS7IconRewind:"shape=mxgraph.ios7.icons.backward",iOS7IconPlay:"shape=mxgraph.ios7.icons.play",iOS7IconPause:"shape=mxgraph.ios7.icons.pause","iOS7IconFast forward":"shape=mxgraph.ios7.icons.forward",iOS7IconControls:"shape=mxgraph.ios7.icons.controls",
iOS7IconPrivacy:"shape=mxgraph.ios7.icons.privacy",iOS7IconLink:"shape=mxgraph.ios7.icons.link",iOS7IconLight:"shape=mxgraph.ios7.icons.flashlight",iOS7IconBrightness:"shape=mxgraph.ios7.icons.sun",iOS7IconHeart:"shape=mxgraph.ios7.icons.heart",iOS7IconJava:"shape=mxgraph.ios7.icons.cup",iOS7IconBox:"shape=mxgraph.ios7.icons.bag",iOS7IconEye:"shape=mxgraph.ios7.icons.eye","iOS7IconDo not disturb":"shape=mxgraph.ios7.icons.moon",UI2BrowserBlock:"shape=mxgraph.mockup.containers.browserWindow;mainText=,",
UI2WindowBlock:"shape=mxgraph.mockup.containers.window;strokeColor2=#008cff;strokeColor3=#c4c4c4;fontColor=#666666;mainText=",UI2DialogBlock:"mxCompositeShape",UI2AreaBlock:"",UI2ElementBlock:"",UI2AccordionBlock:"mxCompositeShape",UI2TabBarContainerBlock:"mxCompositeShape",UI2TabBar2ContainerBlock:"mxCompositeShape",UI2VTabBarContainerBlock:"mxCompositeShape",UI2VScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar;direction=north",UI2HScrollBlock:"shape=mxgraph.mockup.navigation.scrollBar",UI2VerticalSplitterBlock:"shape=mxgraph.mockup.forms.splitter;direction=north",
UI2HorizontalSplitterBlock:"shape=mxgraph.mockup.forms.splitter",UI2ImageBlock:"shape=mxgraph.mockup.graphics.simpleIcon",UI2VideoBlock:"shape=mxgraph.mockup.containers.videoPlayer;barHeight=30",UI2AudioBlock:"shape=mxgraph.mockup.misc.playbackControls",UI2MapBlock:"shape=mxgraph.mockup.misc.map",UI2BarChartBlock:"shape=mxgraph.mockup.graphics.barChart;strokeColor=none;strokeColor2=none",UI2ColumnChartBlock:"shape=mxgraph.mockup.graphics.columnChart;strokeColor=none;strokeColor2=none",UI2LineChartBlock:"shape=mxgraph.mockup.graphics.lineChart;strokeColor=none",
UI2PieChartBlock:"shape=mxgraph.mockup.graphics.pieChart;parts=10,20,35",UI2WebcamBlock:"shape=mxgraph.mockup.containers.userMale",UI2CaptchaBlock:"shape=mxgraph.mockup.text.captcha;mainText=",UI2ButtonBlock:"rounded=1;arcSize=25;",UI2CheckBoxBlock:"mxCompositeShape",UI2HorizontalCheckBoxBlock:"mxCompositeShape",UI2RadioBlock:"mxCompositeShape",UI2HorizontalRadioBlock:"mxCompositeShape",UI2ColorPickerBlock:"shape=mxgraph.mockup.forms.colorPicker;chosenColor=#aaddff",UI2TextInputBlock:"",UI2SelectBlock:"shape=mxgraph.mockup.forms.comboBox;strokeColor=#999999;fillColor=#ddeeff;align=left;fillColor2=#aaddff;mainText=;fontColor=#666666",
UI2VSliderBlock:"shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;sliderPos=20;handleStyle=circle;direction=north",UI2HSliderBlock:"shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;sliderPos=20;handleStyle=circle",UI2SearchBlock:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",UI2NumericStepperBlock:"shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;fillColor=#000000;mainText=",UI2TableBlock:"mxCompositeShape",UI2ButtonBarBlock:"mxCompositeShape",
UI2VerticalButtonBarBlock:"mxCompositeShape",UI2LinkBarBlock:"mxCompositeShape",UI2BreadCrumbsBlock:"mxCompositeShape",UI2MenuBarBlock:"mxCompositeShape",UI2AtoZBlock:"shape=mxgraph.mockup.text.alphanumeric;linkText=;fontStyle=4",UI2PaginationBlock:"shape=mxgraph.mockup.navigation.pagination;linkText=;fontStyle=4",UI2ContextMenuBlock:"mxCompositeShape",UI2TreePaneBlock:"mxCompositeShape",UI2PlaybackControlsBlock:"shape=mxgraph.mockup.misc.playbackControls;fillColor=#ffffff;strokeColor=#999999;fillColor2=#99ddff;strokeColor2=none;fillColor3=#ffffff;strokeColor3=none",
Image_ui_formatting_toolbar:"shape=mxgraph.mockup.menus_and_buttons.font_style_selector_2",UI2ProgressBarBlock:"shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos=25",UI2HelpIconBlock:"shape=mxgraph.mockup.misc.help_icon",UI2BraceNoteBlock:"shape=mxgraph.mockup.markup.curlyBrace;direction=north",UI2TooltipBlock:"shape=mxgraph.basic.rectangular_callout;flipV=1",UI2CalloutBlock:"shape=ellipse",UI2AlertBlock:"mxCompositeShape",Image_ipad_ipad:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iPadGrayBackgroundBlock:"",
@ -348,9 +384,9 @@ Image_iphone_table_w_buttons:"mxCompositeShape",Image_iphone_table_w_icons:"mxCo
Image_iphone_button_lg_red:"",Image_iphone_button_lg_yellow:"",Image_iphone_button_xl_green:"",Image_iphone_back_button:"shape=mxgraph.ios.iButtonBack;strokeColor=#444444;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_iphone_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",Image_iphone_sort_handle:"shape=mxgraph.ios7.icons.options",Image_iphone_slider:"shape=mxgraph.ios.iSlider;barPos=60",Image_iphone_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",
Image_iphone_email_name:"",Image_iphone_switch_off:"shape=mxgraph.android.switch_off;fillColor=#666666",Image_iphone_keyboard_button_blue:"",Image_iphone_keyboard_letters:"shape=mxgraph.ios.iKeybLett",Image_iphone_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",Image_iphone_large_tabbed_button:"mxCompositeShape",Image_iphone_sort_button:"mxCompositeShape",Image_iphone_tab_bar:"mxCompositeShape",Image_iphone_picker_multi:"mxCompositeShape",Image_iphone_picker_web:"mxCompositeShape",Image_iphone_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",
Image_iphone_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_iphone_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",Image_iphone_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_iphone_arrow:"shape=mxgraph.ios7.misc.more",Image_iphone_checkmark:"shape=mxgraph.ios7.misc.check",Image_iphone_check_off:"shape=ellipse",Image_iphone_location_dot:"shape=ellipse",
Image_iphone_mark_as_read:"shape=ellipse",Image_iphone_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_iphone_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",Image_iphone_radio_off:"shape=ellipse",Image_iphone_checkbox_off:"",Image_iphone_indicator:"fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_thread_count:""},tb=function(f,g,k){k.includes(f)||k.push(f);if(f in g){var d=g[f];
d.id=f;if(null!=d.Members)for(var a in d.Members)k=tb(a,g,k)}return k};EditorUi.prototype.pasteLucidChart=function(f,g,k,d){var a=this.editor.graph;a.getModel().beginUpdate();try{var l=function(d,f){var g=null!=f.Endpoint1.Block?b[f.Endpoint1.Block]:null,h=null!=f.Endpoint2.Block?b[f.Endpoint2.Block]:null,k;k=new mxCell("",new mxGeometry(0,0,100,100),"html=1;");k.geometry.relative=!0;k.edge=!0;Xa(k,d);var l=Ka(d).Properties,m=null!=l?l.TextAreas:d.TextAreas;if(null!=m){for(var n=0;null!=m["t"+n];){var q=
m["t"+n];k=Ha(q,k);n++}for(n=1;null!=m["m"+n];)q=m["m"+n],k=Ha(q,k,d),n++;null!=m.Text&&(k=Ha(m,k,d));m=null!=l?l.TextAreas:d.TextAreas;null!=m.Message&&(k=Ha(m.Message,k,d))}null==g&&null!=f.Endpoint1&&k.geometry.setTerminalPoint(new mxPoint(Math.round(.6*f.Endpoint1.x),Math.round(.6*f.Endpoint1.y)),!0);null==h&&null!=f.Endpoint2&&k.geometry.setTerminalPoint(new mxPoint(Math.round(.6*f.Endpoint2.x),Math.round(.6*f.Endpoint2.y)),!1);c.push(a.addCell(k,null,null,g,h))},c=[],b={},m=[],q=[],t=0;if(null!=
f.Groups)for(var r in f.Groups){var n=f.Groups[r];n.id=r;if(1==n.Hidden&&null!=n.Members){q.includes(r)||q.push(r);for(var u in n.Members)q=tb(u,f.Groups,q)}}if(null!=f.Blocks)for(r in f.Blocks)n=f.Blocks[r],n.id=r,q.includes(r)||(u=!1,null!=La[n.Class]&&"mxCompositeShape"==La[n.Class]&&(b[n.id]=Mb(n,c,a),m.push(n),u=!0),u||(b[n.id]=$a(n),m.push(n)));else for(t=0;t<f.Objects.length;t++)n=f.Objects[t],n.IsBlock&&null!=n.Action&&null!=n.Action.Properties&&(b[n.id]=$a(n)),m.push(n);m.sort(function(a,
b){a=Ka(a);b=Ka(b);return null!=a.Properties&&null!=b.Properties?a.Properties.ZOrder-b.Properties.ZOrder:0});for(t=0;t<m.length;t++){var n=m[t],y=b[n.id];null!=y?c.push(a.addCell(y)):n.IsLine&&null!=n.Action&&null!=n.Action.Properties&&l(n,n.Action.Properties)}if(null!=f.Lines)for(r in f.Lines)q.includes(r)||(n=f.Lines[r],l(n,n));if(d&&null!=g&&null!=k){a.isGridEnabled()&&(g=a.snap(g),k=a.snap(k));var D=a.getBoundingBoxFromGeometry(c,!0);null!=D&&a.moveCells(c,g-D.x,k-D.y)}a.setSelectionCells(c)}finally{a.getModel().endUpdate()}a.isSelectionEmpty()||
Image_iphone_mark_as_read:"shape=ellipse",Image_iphone_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_iphone_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",Image_iphone_radio_off:"shape=ellipse",Image_iphone_checkbox_off:"",Image_iphone_indicator:"fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_thread_count:""},Jb=function(f,k,h){h.includes(f)||h.push(f);if(f in k){var c=k[f];
c.id=f;if(null!=c.Members)for(var a in c.Members)h=Jb(a,k,h)}return h};EditorUi.prototype.pasteLucidChart=function(f,k,h,c){var a=this.editor.graph;a.getModel().beginUpdate();try{var l=function(c,f){var g=null!=f.Endpoint1.Block?b[f.Endpoint1.Block]:null,k=null!=f.Endpoint2.Block?b[f.Endpoint2.Block]:null,h;h=new mxCell("",new mxGeometry(0,0,100,100),"html=1;");h.geometry.relative=!0;h.edge=!0;ib(h,c);var l=Ua(c).Properties,m=null!=l?l.TextAreas:c.TextAreas;if(null!=m){for(var n=0;null!=m["t"+n];){var q=
m["t"+n];h=Ra(q,h);n++}for(n=1;null!=m["m"+n];)q=m["m"+n],h=Ra(q,h,c),n++;null!=m.Text&&(h=Ra(m,h,c));m=null!=l?l.TextAreas:c.TextAreas;null!=m.Message&&(h=Ra(m.Message,h,c))}null==g&&null!=f.Endpoint1&&h.geometry.setTerminalPoint(new mxPoint(Math.round(.6*f.Endpoint1.x),Math.round(.6*f.Endpoint1.y)),!0);null==k&&null!=f.Endpoint2&&h.geometry.setTerminalPoint(new mxPoint(Math.round(.6*f.Endpoint2.x),Math.round(.6*f.Endpoint2.y)),!1);d.push(a.addCell(h,null,null,g,k))},d=[],b={},m=[],n=[],q=0;if(null!=
f.Groups)for(var t in f.Groups){var r=f.Groups[t];r.id=t;if(1==r.Hidden&&null!=r.Members){n.includes(t)||n.push(t);for(var u in r.Members)n=Jb(u,f.Groups,n)}}if(null!=f.Blocks)for(t in f.Blocks)r=f.Blocks[t],r.id=t,n.includes(t)||(u=!1,null!=Va[r.Class]&&"mxCompositeShape"==Va[r.Class]&&(b[r.id]=jc(r,d,a),m.push(r),u=!0),u||(b[r.id]=lb(r),m.push(r)));else for(q=0;q<f.Objects.length;q++)r=f.Objects[q],r.IsBlock&&null!=r.Action&&null!=r.Action.Properties&&(b[r.id]=lb(r)),m.push(r);m.sort(function(a,
b){a=Ua(a);b=Ua(b);return null!=a.Properties&&null!=b.Properties?a.Properties.ZOrder-b.Properties.ZOrder:0});for(q=0;q<m.length;q++){var r=m[q],y=b[r.id];null!=y?d.push(a.addCell(y)):r.IsLine&&null!=r.Action&&null!=r.Action.Properties&&l(r,r.Action.Properties)}if(null!=f.Lines)for(t in f.Lines)n.includes(t)||(r=f.Lines[t],l(r,r));if(c&&null!=k&&null!=h){a.isGridEnabled()&&(k=a.snap(k),h=a.snap(h));var I=a.getBoundingBoxFromGeometry(d,!0);null!=I&&a.moveCells(d,k-I.x,h-I.y)}a.setSelectionCells(d)}finally{a.getModel().endUpdate()}a.isSelectionEmpty()||
(a.scrollCellToVisible(a.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(a.view.getState(a.getSelectionCell())))}})();

View file

@ -1470,6 +1470,7 @@ Graph.prototype.createLayersDialog = function()
span.style.whiteSpace = 'nowrap';
var cb = document.createElement('input');
cb.style.display = 'inline-block';
cb.setAttribute('type', 'checkbox');
if (model.isVisible(layer))

View file

@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+y.join(",")+"}";f=t;return l}}"function"!==typeof Date.prototy
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();"undefined"===typeof window.mxBasePath&&(window.mxBasePath="https://www.draw.io/mxgraph/");window.mxLoadStylesheets=window.mxLoadStylesheets||!1;window.mxLoadResources=window.mxLoadResources||!1;window.mxLanguage=window.mxLanguage||"en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.3",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
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||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"7.4.4",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT: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:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.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:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||
@ -1562,8 +1562,8 @@ shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyy
/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(d.masks[b]||b||d.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),c=!0);var h=c?"getUTC":"get",k=a[h+"Date"](),l=a[h+"Day"](),m=a[h+"Month"](),n=a[h+"FullYear"](),p=a[h+"Hours"](),r=a[h+"Minutes"](),q=a[h+"Seconds"](),h=a[h+"Milliseconds"](),t=c?0:a.getTimezoneOffset(),y={d:k,dd:g(k),ddd:d.i18n.dayNames[l],dddd:d.i18n.dayNames[l+7],m:m+1,mm:g(m+1),mmm:d.i18n.monthNames[m],mmmm:d.i18n.monthNames[m+
12],yy:String(n).slice(2),yyyy:n,h:p%12||12,hh:g(p%12||12),H:p,HH:g(p),M:r,MM:g(r),s:q,ss:g(q),l:g(h,3),L:g(99<h?Math.round(h/10):h),t:12>p?"a":"p",tt:12>p?"am":"pm",T:12>p?"A":"P",TT:12>p?"AM":"PM",Z:c?"UTC":(String(a).match(e)||[""]).pop().replace(f,""),o:(0<t?"-":"+")+g(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4),S:["th","st","nd","rd"][3<k%10?0:(10!=k%100-k%10)*k%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(a){return a in y?y[a]:a.slice(1,
a.length-1)})};
Graph.prototype.createLayersDialog=function(){var a=document.createElement("div");a.style.position="absolute";for(var b=this.getModel(),c=b.getChildCount(b.root),d=0;d<c;d++)(function(c){var d=document.createElement("div");d.style.overflow="hidden";d.style.textOverflow="ellipsis";d.style.padding="2px";d.style.whiteSpace="nowrap";var e=document.createElement("input");e.setAttribute("type","checkbox");b.isVisible(c)&&(e.setAttribute("checked","checked"),e.defaultChecked=!0);d.appendChild(e);var h=c.value||
mxResources.get("background")||"Background";d.setAttribute("title",h);mxUtils.write(d,h);a.appendChild(d);mxEvent.addListener(e,"click",function(){null!=e.getAttribute("checked")?e.removeAttribute("checked"):e.setAttribute("checked","checked");b.setVisible(c,e.checked)})})(b.getChildAt(b.root,d));return a};
Graph.prototype.createLayersDialog=function(){var a=document.createElement("div");a.style.position="absolute";for(var b=this.getModel(),c=b.getChildCount(b.root),d=0;d<c;d++)(function(c){var d=document.createElement("div");d.style.overflow="hidden";d.style.textOverflow="ellipsis";d.style.padding="2px";d.style.whiteSpace="nowrap";var e=document.createElement("input");e.style.display="inline-block";e.setAttribute("type","checkbox");b.isVisible(c)&&(e.setAttribute("checked","checked"),e.defaultChecked=
!0);d.appendChild(e);var h=c.value||mxResources.get("background")||"Background";d.setAttribute("title",h);mxUtils.write(d,h);a.appendChild(d);mxEvent.addListener(e,"click",function(){null!=e.getAttribute("checked")?e.removeAttribute("checked"):e.setAttribute("checked","checked");b.setVisible(c,e.checked)})})(b.getChildAt(b.root,d));return a};
Graph.prototype.replacePlaceholders=function(a,b){for(var c=[],d=0;match=this.placeholderPattern.exec(b);){var e=match[0];if(2<e.length&&"%label%"!=e&&"%tooltip%"!=e){var f=null;if(match.index>d&&"%"==b.charAt(match.index-1))f=e.substring(1);else{var g=e.substring(1,e.length-1);if(0>g.indexOf("{"))for(var h=a;null==f&&null!=h;)null!=h.value&&"object"==typeof h.value&&(f=h.hasAttribute(g)?null!=h.getAttribute(g)?h.getAttribute(g):"":null),h=this.model.getParent(h);null==f&&(f=this.getGlobalVariable(g))}c.push(b.substring(d,
match.index)+(null!=f?f:e));d=match.index+e.length}}c.push(b.substring(d));return c.join("")};Graph.prototype.selectCellsForConnectVertex=function(a,b,c){2==a.length&&this.model.isVertex(a[1])?(this.setSelectionCell(a[1]),null!=c&&(mxEvent.isTouchEvent(b)?c.update(c.getState(this.view.getState(a[1]))):c.reset()),this.scrollCellToVisible(a[1])):this.setSelectionCells(a)};
Graph.prototype.connectVertex=function(a,b,c,d,e,f){f=f?f:!1;var g=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(a.geometry.x,a.geometry.y);b==mxConstants.DIRECTION_NORTH?(g.x+=a.geometry.width/2,g.y-=c):b==mxConstants.DIRECTION_SOUTH?(g.x+=a.geometry.width/2,g.y+=a.geometry.height+c):(g.x=b==mxConstants.DIRECTION_WEST?g.x-c:g.x+(a.geometry.width+c),g.y+=a.geometry.height/2);c=this.view.getState(this.model.getParent(a));

210
war/js/viewer.min.js vendored
View file

@ -1,4 +1,4 @@
"undefined"===typeof window.mxBasePath&&(window.mxBasePath="https://www.draw.io/mxgraph/");window.mxLoadStylesheets=window.mxLoadStylesheets||!1;
window.STENCIL_PATH=window.STENCIL_PATH||"https://www.draw.io/stencils";window.SHAPES_PATH=window.SHAPES_PATH||"https://www.draw.io/shapes";window.mxBasePath=window.mxBasePath||"https://www.draw.io/mxgraph/";window.mxLoadStylesheets=window.mxLoadStylesheets||!1;
//fgnass.github.com/spin.js#v2.0.0
!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return l[e]||(m.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",m.cssRules.length),l[e]=1),e}function d(a,b){var c,d,e=a.style;for(b=b.charAt(0).toUpperCase()+b.slice(1),d=0;d<k.length;d++)if(c=k[d]+b,void 0!==e[c])return c;return void 0!==e[b]?b:void 0}function e(a,b){for(var c in b)a.style[d(a,c)||c]=b[c];return a}function f(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)void 0===a[d]&&(a[d]=c[d])}return a}function g(a,b){return"string"==typeof a?a:a[b%a.length]}function h(a){this.opts=f(a||{},h.defaults,n)}function i(){function c(b,c){return a("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',c)}m.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.width,left:d.radius,top:-d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.length+d.width,k=2*j,l=2*-(d.width+d.length)+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d<e.childNodes.length&&(e=e.childNodes[b+d],e=e&&e.firstChild,e=e&&e.firstChild,e&&(e.opacity=c))}}var j,k=["webkit","Moz","ms","O"],l={},m=function(){var c=a("style",{type:"text/css"});return b(document.getElementsByTagName("head")[0],c),c.sheet||c.styleSheet}(),n={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};h.defaults={},f(h.prototype,{spin:function(b){this.stop();{var c=this,d=c.opts,f=c.el=e(a(0,{className:d.className}),{position:d.position,width:0,zIndex:d.zIndex});d.radius+d.length+d.width}if(b&&(b.insertBefore(f,b.firstChild||null),e(f,{left:d.left,top:d.top})),f.setAttribute("role","progressbar"),c.lines(f,c.opts),!j){var g,h=0,i=(d.lines-1)*(1-d.direction)/2,k=d.fps,l=k/d.speed,m=(1-d.opacity)/(l*d.trail/100),n=l/d.lines;!function o(){h++;for(var a=0;a<d.lines;a++)g=Math.max(1-(h+(d.lines-a)*n)%l*m,d.opacity),c.opacity(f,a*d.direction+i,g,d);c.timeout=c.el&&setTimeout(o,~~(1e3/k))}()}return c},stop:function(){var a=this.el;return a&&(clearTimeout(this.timeout),a.parentNode&&a.parentNode.removeChild(a),this.el=void 0),this},lines:function(d,f){function h(b,c){return e(a(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:b,boxShadow:c,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*k+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;k<f.lines;k++)i=e(a(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:j&&c(f.opacity,f.trail,l+k*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&b(i,e(h("#000","0 0 4px #000"),{top:"2px"})),b(d,b(i,h(g(f.color,k),"0 0 1px rgba(0,0,0,.1)")));return d},opacity:function(a,b,c){b<a.childNodes.length&&(a.childNodes[b].style.opacity=c)}});var o=e(a("group"),{behavior:"url(#default#VML)"});return!d(o,"transform")&&o.adj?i():j=d(o,"animation"),h});
// NOTE: Modified to support data URIs for images, ie. data:image/*
@ -2005,7 +2005,7 @@ c,b)}));mxEvent.addGestureListeners(document,mxUtils.bind(this,function(a){d.pop
c.style[h]&&(b.push(c.style[h]),f.push(h));h=d.getModel().getStyle(c.cell);for(var e=null!=h?h.split(";"):[],k=0;k<e.length;k++){var q=e[k],p=q.indexOf("=");0<=p&&(h=q.substring(0,p),q=q.substring(p+1),null!=a[h]&&"none"==q&&(b.push(q),f.push(h)))}d.getModel().isEdge(c.cell)?d.currentEdgeStyle={}:d.currentVertexStyle={};this.fireEvent(new mxEventObject("styleChanged","keys",f,"values",b,"cells",[c.cell]))}};this.clearDefaultStyle=function(){d.currentEdgeStyle=mxUtils.clone(d.defaultEdgeStyle);d.currentVertexStyle=
mxUtils.clone(d.defaultVertexStyle);this.fireEvent(new mxEventObject("styleChanged","keys",[],"values",[],"cells",[]))};var x=["fontFamily","fontSize","fontColor"],u="edgeStyle startArrow startFill startSize endArrow endFill endSize jettySize orthogonalLoop".split(" "),B=["startArrow startFill startSize endArrow endFill endSize jettySize orthogonalLoop".split(" "),["strokeColor","strokeWidth"],["fillColor","gradientColor"],x,["align"],["html"]];for(a=0;a<B.length;a++)for(b=0;b<B[a].length;b++)t.push(B[a][b]);
for(a=0;a<D.length;a++)0>mxUtils.indexOf(t,D[a])&&t.push(D[a]);var A=function(a,c){d.getModel().beginUpdate();try{if(c)for(var b=d.getModel().isEdge(k),f=b?d.currentEdgeStyle:d.currentVertexStyle,b=["fontSize","fontFamily","fontColor"],h=0;h<b.length;h++){var e=f[b[h]];null!=e&&d.setCellStyles(b[h],e,a)}else for(e=0;e<a.length;e++){for(var k=a[e],q=d.getModel().getStyle(k),p=null!=q?q.split(";"):[],n=t.slice(),h=0;h<p.length;h++){var m=p[h],H=m.indexOf("=");if(0<=H){var w=m.substring(0,H),v=mxUtils.indexOf(n,
w);0<=v&&n.splice(v,1);for(var g=0;g<B.length;g++){var l=B[g];if(0<=mxUtils.indexOf(l,w))for(var u=0;u<l.length;u++){var r=mxUtils.indexOf(n,l[u]);0<=r&&n.splice(r,1)}}}}f=(b=d.getModel().isEdge(k))?d.currentEdgeStyle:d.currentVertexStyle;for(h=0;h<n.length;h++){var w=n[h],x=f[w];null==x||"shape"==w&&!b||(!b||0>mxUtils.indexOf(D,w))&&d.setCellStyles(w,x,[k])}}}finally{d.getModel().endUpdate()}};d.addListener("cellsInserted",function(a,c){A(c.getProperty("cells"))});d.addListener("textInserted",function(a,
w);0<=v&&n.splice(v,1);for(var g=0;g<B.length;g++){var l=B[g];if(0<=mxUtils.indexOf(l,w))for(var r=0;r<l.length;r++){var u=mxUtils.indexOf(n,l[r]);0<=u&&n.splice(u,1)}}}}f=(b=d.getModel().isEdge(k))?d.currentEdgeStyle:d.currentVertexStyle;for(h=0;h<n.length;h++){var w=n[h],x=f[w];null==x||"shape"==w&&!b||(!b||0>mxUtils.indexOf(D,w))&&d.setCellStyles(w,x,[k])}}}finally{d.getModel().endUpdate()}};d.addListener("cellsInserted",function(a,c){A(c.getProperty("cells"))});d.addListener("textInserted",function(a,
c){A(c.getProperty("cells"),!0)});d.connectionHandler.addListener(mxEvent.CONNECT,function(a,c){var b=[c.getProperty("cell")];c.getProperty("terminalInserted")&&b.push(c.getProperty("terminal"));A(b)});this.addListener("styleChanged",mxUtils.bind(this,function(a,c){var b=c.getProperty("cells"),f=!1,h=!1;if(0<b.length)for(var e=0;e<b.length&&(f=d.getModel().isVertex(b[e])||f,!(h=d.getModel().isEdge(b[e])||h)||!f);e++);else h=f=!0;for(var b=c.getProperty("keys"),k=c.getProperty("values"),e=0;e<b.length;e++){var q=
0<=mxUtils.indexOf(x,b[e]);if("strokeColor"!=b[e]||null!=k[e]&&"none"!=k[e])if(0<=mxUtils.indexOf(D,b[e]))h||0<=mxUtils.indexOf(u,b[e])?null==k[e]?delete d.currentEdgeStyle[b[e]]:d.currentEdgeStyle[b[e]]=k[e]:f&&0<=mxUtils.indexOf(t,b[e])&&(null==k[e]?delete d.currentVertexStyle[b[e]]:d.currentVertexStyle[b[e]]=k[e]);else if(0<=mxUtils.indexOf(t,b[e])){if(f||q)null==k[e]?delete d.currentVertexStyle[b[e]]:d.currentVertexStyle[b[e]]=k[e];if(h||q||0<=mxUtils.indexOf(u,b[e]))null==k[e]?delete d.currentEdgeStyle[b[e]]:
d.currentEdgeStyle[b[e]]=k[e]}}null!=this.toolbar&&(this.toolbar.setFontName(d.currentVertexStyle.fontFamily||Menus.prototype.defaultFont),this.toolbar.setFontSize(d.currentVertexStyle.fontSize||Menus.prototype.defaultFontSize),null!=this.toolbar.edgeStyleMenu&&(this.toolbar.edgeStyleMenu.getElementsByTagName("div")[0].className="orthogonalEdgeStyle"==d.currentEdgeStyle.edgeStyle&&"1"==d.currentEdgeStyle.curved?"geSprite geSprite-curved":"straight"==d.currentEdgeStyle.edgeStyle||"none"==d.currentEdgeStyle.edgeStyle||
@ -2166,8 +2166,8 @@ shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyy
/\d/.test(a)||(b=a,a=void 0);a=a?new Date(a):new Date;if(isNaN(a))throw SyntaxError("invalid date");b=String(d.masks[b]||b||d.masks["default"]);"UTC:"==b.slice(0,4)&&(b=b.slice(4),e=!0);var r=e?"getUTC":"get",c=a[r+"Date"](),f=a[r+"Day"](),h=a[r+"Month"](),p=a[r+"FullYear"](),n=a[r+"Hours"](),v=a[r+"Minutes"](),q=a[r+"Seconds"](),r=a[r+"Milliseconds"](),k=e?0:a.getTimezoneOffset(),w={d:c,dd:m(c),ddd:d.i18n.dayNames[f],dddd:d.i18n.dayNames[f+7],m:h+1,mm:m(h+1),mmm:d.i18n.monthNames[h],mmmm:d.i18n.monthNames[h+
12],yy:String(p).slice(2),yyyy:p,h:n%12||12,hh:m(n%12||12),H:n,HH:m(n),M:v,MM:m(v),s:q,ss:m(q),l:m(r,3),L:m(99<r?Math.round(r/10):r),t:12>n?"a":"p",tt:12>n?"am":"pm",T:12>n?"A":"P",TT:12>n?"AM":"PM",Z:e?"UTC":(String(a).match(g)||[""]).pop().replace(l,""),o:(0<k?"-":"+")+m(100*Math.floor(Math.abs(k)/60)+Math.abs(k)%60,4),S:["th","st","nd","rd"][3<c%10?0:(10!=c%100-c%10)*c%10]};return b.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(a){return a in w?w[a]:a.slice(1,
a.length-1)})};
Graph.prototype.createLayersDialog=function(){var a=document.createElement("div");a.style.position="absolute";for(var b=this.getModel(),e=b.getChildCount(b.root),d=0;d<e;d++)(function(d){var e=document.createElement("div");e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.padding="2px";e.style.whiteSpace="nowrap";var m=document.createElement("input");m.setAttribute("type","checkbox");b.isVisible(d)&&(m.setAttribute("checked","checked"),m.defaultChecked=!0);e.appendChild(m);var g=d.value||
mxResources.get("background")||"Background";e.setAttribute("title",g);mxUtils.write(e,g);a.appendChild(e);mxEvent.addListener(m,"click",function(){null!=m.getAttribute("checked")?m.removeAttribute("checked"):m.setAttribute("checked","checked");b.setVisible(d,m.checked)})})(b.getChildAt(b.root,d));return a};
Graph.prototype.createLayersDialog=function(){var a=document.createElement("div");a.style.position="absolute";for(var b=this.getModel(),e=b.getChildCount(b.root),d=0;d<e;d++)(function(d){var e=document.createElement("div");e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.padding="2px";e.style.whiteSpace="nowrap";var m=document.createElement("input");m.style.display="inline-block";m.setAttribute("type","checkbox");b.isVisible(d)&&(m.setAttribute("checked","checked"),m.defaultChecked=
!0);e.appendChild(m);var g=d.value||mxResources.get("background")||"Background";e.setAttribute("title",g);mxUtils.write(e,g);a.appendChild(e);mxEvent.addListener(m,"click",function(){null!=m.getAttribute("checked")?m.removeAttribute("checked"):m.setAttribute("checked","checked");b.setVisible(d,m.checked)})})(b.getChildAt(b.root,d));return a};
Graph.prototype.replacePlaceholders=function(a,b){for(var e=[],d=0;match=this.placeholderPattern.exec(b);){var g=match[0];if(2<g.length&&"%label%"!=g&&"%tooltip%"!=g){var l=null;if(match.index>d&&"%"==b.charAt(match.index-1))l=g.substring(1);else{var m=g.substring(1,g.length-1);if(0>m.indexOf("{"))for(var r=a;null==l&&null!=r;)null!=r.value&&"object"==typeof r.value&&(l=r.hasAttribute(m)?null!=r.getAttribute(m)?r.getAttribute(m):"":null),r=this.model.getParent(r);null==l&&(l=this.getGlobalVariable(m))}e.push(b.substring(d,
match.index)+(null!=l?l:g));d=match.index+g.length}}e.push(b.substring(d));return e.join("")};Graph.prototype.selectCellsForConnectVertex=function(a,b,e){2==a.length&&this.model.isVertex(a[1])?(this.setSelectionCell(a[1]),null!=e&&(mxEvent.isTouchEvent(b)?e.update(e.getState(this.view.getState(a[1]))):e.reset()),this.scrollCellToVisible(a[1])):this.setSelectionCells(a)};
Graph.prototype.connectVertex=function(a,b,e,d,g,l){l=l?l:!1;var m=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(a.geometry.x,a.geometry.y);b==mxConstants.DIRECTION_NORTH?(m.x+=a.geometry.width/2,m.y-=e):b==mxConstants.DIRECTION_SOUTH?(m.x+=a.geometry.width/2,m.y+=a.geometry.height+e):(m.x=b==mxConstants.DIRECTION_WEST?m.x-e:m.x+(a.geometry.width+e),m.y+=a.geometry.height/2);e=this.view.getState(this.model.getParent(a));
@ -2656,104 +2656,104 @@ var f=g.getGlobalVariable,h=this.pages[0];g.getGlobalVariable=function(a){return
b.getBoundingBox(b.getSelectionCells()),h=b.view.scale;g=Math.floor(c.x/h-b.view.translate.x);h=Math.floor(c.y/h-b.view.translate.y);c=b.background;null==n&&(b=this.getBasenames().join(";"),0<b.length&&(f="https://www.draw.io/embed.js?s="+b));a.setAttribute("x0",g);a.setAttribute("y0",h)}null!=a&&(a.setAttribute("pan","1"),a.setAttribute("zoom","1"),a.setAttribute("resize","0"),a.setAttribute("fit","0"),a.setAttribute("border","20"),a.setAttribute("links","1"),null!=e&&a.setAttribute("edit",e));null!=
n&&(n=n.replace(/&/g,"&amp;"));a=null!=a?this.editor.graph.zapGremlins(mxUtils.getXml(a)):"";e=this.editor.graph.compress(a);this.editor.graph.decompress(e)!=a&&(e=encodeURIComponent(a));return(null==n?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=n?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==n?null!=d?"<title>"+mxUtils.htmlEntities(d)+"</title>\n":"":"<title>Draw.io Diagram</title>\n")+(null!=n?
'<meta http-equiv="refresh" content="0;URL=\''+n+"'\"/>\n":"")+"</head>\n<body"+(null==n&&null!=c&&c!=mxConstants.NONE?' style="background-color:'+c+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+e+"</div>\n</div>\n"+(null==n?'<script type="text/javascript" src="'+f+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+n+'" target="_blank"><img border="0" src="https://www.draw.io/images/drawlogo128.png"/></a>')+
"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(a,b,d,e,n){e="https://www.draw.io/js/viewer.min.js";null!=b&&null==n&&(b=this.getBasenames().join(";"),0<b.length&&(e="https://www.draw.io/embed2.js?s="+b));null!=n&&(n=n.replace(/&/g,"&amp;"));a={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,xml:this.editor.graph.zapGremlins(a),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(a.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==
n?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=n?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==n?null!=d?"<title>"+mxUtils.htmlEntities(d)+"</title>\n":"":"<title>Draw.io Diagram</title>\n")+(null!=n?'<meta http-equiv="refresh" content="0;URL=\''+n+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(a))+
'"></div>\n'+(null==n?'<script type="text/javascript" src="'+e+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+n+'" target="_blank"><img border="0" src="https://www.draw.io/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=function(a){a=this.validateFileData(a);this.pages=this.fileNode=this.currentPage=null;var c=null!=a&&0<a.length?mxUtils.parseXml(a).documentElement:null;a=null!=c?this.editor.extractGraphModel(c,
!0):null;null!=a&&(c=a);if(null!=c&&"mxfile"==c.nodeName&&(a=c.getElementsByTagName("diagram"),"0"!=urlParams.pages||1<a.length||1==a.length&&a[0].hasAttribute("name"))){this.fileNode=c;this.pages=[];for(c=0;c<a.length;c++){var b=new DiagramPage(a[c]);null==b.getName()&&b.setName(mxResources.get("pageWithNumber",[c+1]));this.pages.push(b)}this.currentPage=this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];c=this.currentPage.node}"0"!=urlParams.pages&&null==this.fileNode&&null!=
c&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(c);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root)};EditorUi.prototype.getBaseFilename=function(){var a=this.getCurrentFile(),a=null!=a&&null!=a.getTitle()?a.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(a)||/(\.html)$/i.test(a)||
/(\.svg)$/i.test(a))a=a.substring(0,a.lastIndexOf("."));return a};EditorUi.prototype.downloadFile=function(a,b,d,e,n,g){try{e=null!=e?e:this.editor.graph.isSelectionEmpty();var c=this.getBaseFilename(),f=c+"."+a;if("xml"==a){var h='<?xml version="1.0" encoding="UTF-8"?>\n'+(b?mxUtils.getXml(this.editor.getGraphXml(e)):this.getFileData(!0,null,null,null,e,n));this.saveData(f,a,h,"text/xml")}else if("html"==a)h=this.getHtml2(this.getFileData(!0),this.editor.graph,c),this.saveData(f,a,h,"text/html");
else if("svg"!=a&&"xmlsvg"!=a||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==a?f=c+".png":"jpeg"==a&&(f=c+".jpg"),this.saveRequest(f,a,mxUtils.bind(this,function(c,b){try{var d=this.editor.graph.pageVisible;null!=g&&(this.editor.graph.pageVisible=g);var f=this.createDownloadRequest(c,a,e,b);this.editor.graph.pageVisible=d;return f}catch(F){this.handleError(F)}}));else{var p=null,m=mxUtils.bind(this,function(a){a.length<=MAX_REQUEST_SIZE?this.saveData(f,"svg",a,"image/svg+xml"):
this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(p)}))});if("svg"==a){var l=this.editor.graph.background;l==mxConstants.NONE&&(l=null);var v=this.editor.graph.getSvg(l,null,null,null,null,e);d&&this.editor.graph.addSvgShadow(v);this.convertImages(v,mxUtils.bind(this,mxUtils.bind(this,function(a){this.spinner.stop();m('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'+
mxUtils.getXml(a))})))}else f=c+".svg",p=this.getFileData(!1,!0,null,mxUtils.bind(this,function(a){this.spinner.stop();m(a)}),e)}}catch(B){this.handleError(B)}};EditorUi.prototype.createDownloadRequest=function(a,b,d,e){var c=this.editor.graph.getGraphBounds();d=this.getFileData(!0,null,null,null,d,"xmlpng"!=b);var f="";if(c.width*c.height>MAX_AREA||d.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};c="0";if("xmlpng"==b&&(c="1",b="png",null!=this.pages&&null!=this.currentPage))for(var h=
0;h<this.pages.length;h++)if(this.pages[h]==this.currentPage){f="&from="+h;break}return new mxXmlRequest(EXPORT_URL,"format="+b+f+"&base64="+e+"&embedXml="+c+"&xml="+encodeURIComponent(d)+(null!=a?"&filename="+encodeURIComponent(a):""))};EditorUi.prototype.setMode=function(a,b){this.mode=a};EditorUi.prototype.fileLoaded=function(a){var c=!1;this.hideDialog();var b=this.getCurrentFile();this.setCurrentFile(null);null!=b&&(b.removeListener(this.descriptorChangedListener),b.close());this.editor.graph.model.clear();
this.editor.undoManager.clear();var d=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=b&&this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fnameWrapper.style.display="none",this.fname.innerHTML="",this.fname.setAttribute("title",mxResources.get("rename")));this.updateUi();this.showSplash()});if(null!=a)try{this.setCurrentFile(a);
a.addListener("descriptorChanged",this.descriptorChangedListener);a.addListener("contentChanged",this.descriptorChangedListener);a.open();this.setGraphEnabled(!0);this.setMode(a.getMode());this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();null==a.realtime&&(a.isEditable()?this.editor.setStatus(""):this.editor.setStatus('<span class="geStatusAlert" style="margin-left:8px;">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</span>"));this.editor.chromeless?this.editor.graph.lightbox&&
this.lightboxFit():(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus());this.chromelessResize&&this.chromelessResize();this.editor.fireEvent(new mxEventObject("fileLoaded"));c=!0;if(EditorUi.enableLogging&&!this.isOffline()&&null!=a.getMode())try{"function"===typeof window.ga&&ga("send","event","File","open",a.getMode())}catch(n){}if(this.mode==a.getMode()&&a.getMode()!=App.MODE_DEVICE&&null!=a.getMode())try{this.addRecent({id:a.getHash(),
title:a.getTitle(),mode:a.getMode()})}catch(n){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(n){}}catch(n){null!=window.console&&console.log("error in fileLoaded:",a,n);if(EditorUi.enableLogging&&!this.isOffline())try{(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?v="+encodeURIComponent(EditorUi.VERSION)+"&msg=errorInFileLoaded:url:"+encodeURIComponent(window.location.href)+(null!=n&&null!=n.message?":err:"+encodeURIComponent(n.message):
"")+(null!=n&&null!=n.stack?"&stack="+encodeURIComponent(n.stack):"")}catch(v){}this.handleError(n,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=b?b.constructor==DriveFile?this.loadFile(b.getHash()):this.fileLoaded(b):d()}))}else d();return c};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(a,b,d,e,n,
g,q){};EditorUi.prototype.toggleScratchpad=function(){if(isLocalStorage||mxClient.IS_CHROMEAPP)null==this.scratchpad?this.getLocalData(".scratchpad",mxUtils.bind(this,function(a){null==a&&(a=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,a,".scratchpad"))})):this.closeLibrary(this.scratchpad)};EditorUi.prototype.createLibraryDataFromImages=function(a){var c=mxUtils.createXmlDocument(),b=c.createElement("mxlibrary");mxUtils.setTextContent(b,JSON.stringify(a));c.appendChild(b);return mxUtils.getXml(c)};
EditorUi.prototype.closeLibrary=function(a){null!=a&&(this.removeLibrarySidebar(a.getHash()),a.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(a.getHash()),".scratchpad"==a.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(a){var c=this.sidebar.palettes[a];if(null!=c){for(var b=0;b<c.length;b++)c[b].parentNode.removeChild(c[b]);delete this.sidebar.palettes[a]}};EditorUi.prototype.repositionLibrary=function(a){var c=this.sidebar.container;if(null==a){var b=
this.sidebar.palettes["L.scratchpad"];null==b&&(b=this.sidebar.palettes.search);null!=b&&(a=b[b.length-1].nextSibling)}a=null!=a?a:c.firstChild.nextSibling.nextSibling;var b=c.lastChild,d=b.previousSibling;c.insertBefore(b,a);c.insertBefore(d,b)};EditorUi.prototype.loadLibrary=function(a){var c=mxUtils.parseXml(a.getData());if("mxlibrary"==c.documentElement.nodeName){var b=JSON.parse(mxUtils.getTextContent(c.documentElement));this.libraryLoaded(a,b,c.documentElement.getAttribute("title"))}else throw{message:mxResources.get("notALibraryFile")};
};EditorUi.prototype.getLibraryStorageHint=function(a){return""};EditorUi.prototype.libraryLoaded=function(a,b,d){a.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(a.getHash());".scratchpad"==a.title&&(this.scratchpad=a);var c=this.sidebar.palettes[a.getHash()],c=null!=c?c[c.length-1].nextSibling:null;this.removeLibrarySidebar(a.getHash());var f=null,e=mxUtils.bind(this,function(c,b){if(0==c.length&&a.isEditable())null==f&&(f=document.createElement("div"),mxUtils.setPrefixedStyle(f.style,"borderRadius",
"6px"),f.style.border="3px dotted lightGray",f.style.textAlign="center",f.style.padding="8px",f.style.color="#B3B3B3",mxUtils.write(f,mxResources.get("dragElementsHere"))),b.appendChild(f);else for(var d=0;d<c.length;d++){var e=c[d],h=e.data;if(null!=h){var h=this.convertDataUri(h),k="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==e.aspect&&(k+="aspect=fixed;");b.appendChild(this.sidebar.createVertexTemplate(k+"image="+h,e.w,e.h,"",e.title||"",!1,!1,!1))}else null!=
e.xml&&(h=this.stringToCells(this.editor.graph.decompress(e.xml)),0<h.length&&b.appendChild(this.sidebar.createVertexTemplateFromCells(h,e.w,e.h,e.title||"",!0,!1,!1)))}});d=null!=d&&0<d.length?d:a.getTitle();var h=this.sidebar.addPalette(a.getHash(),d,!0,mxUtils.bind(this,function(a){e(b,a)}));this.repositionLibrary(c);var k=h.parentNode.previousSibling;d=k.getAttribute("title");null!=d&&0<d.length&&".scratchpad"!=a.title&&k.setAttribute("title",this.getLibraryStorageHint(a)+"\n"+d);var g=document.createElement("div");
g.style.position="absolute";g.style.right="0px";g.style.top="5px";mxClient.IS_QUIRKS||8==document.documentMode||(g.style.backgroundColor="inherit");k.style.position="relative";var m=document.createElement("img");m.setAttribute("src",Dialog.prototype.closeImage);m.setAttribute("title",mxResources.get("close"));m.setAttribute("align","top");m.setAttribute("border","0");m.className="geButton";m.style.marginRight="1px";m.style.marginTop="-1px";g.appendChild(m);var l=null;mxEvent.addListener(m,"click",
mxUtils.bind(this,function(c){if(!mxEvent.isConsumed(c)){var b=mxUtils.bind(this,function(){this.closeLibrary(a)});null!=l?this.confirm(mxResources.get("allChangesLost"),null,b,mxResources.get("cancel"),mxResources.get("discardChanges")):b();mxEvent.consume(c)}}));mxEvent.addListener(h,"mousemove",mxUtils.bind(this,function(a){mxEvent.getSource(a)==h?h.setAttribute("title",mxResources.get("libraryTooltip")):h.removeAttribute("title")}));if(a.isEditable()){var r=this.editor.graph,u=mxUtils.bind(this,
function(c){this.showLibraryDialog(a.getTitle(),h,b,a,a.getMode());mxEvent.consume(c)}),B=mxUtils.bind(this,function(c){a.setModified(!0);a.isAutosave()?(null!=C&&null!=C.parentNode&&C.parentNode.removeChild(C),C=m.cloneNode(!1),C.setAttribute("src",Editor.spinImage),C.setAttribute("title",mxResources.get("saving")),C.style.cursor="default",C.style.marginRight="2px",C.style.marginTop="-2px",g.insertBefore(C,g.firstChild),k.style.paddingRight=18*g.childNodes.length+"px",this.saveLibrary(a.getTitle(),
b,a,a.getMode(),!0,!0,function(){null!=C&&null!=C.parentNode&&(C.parentNode.removeChild(C),k.style.paddingRight=18*g.childNodes.length+"px")})):null==l&&(l=m.cloneNode(!1),l.setAttribute("src",IMAGE_PATH+"/download.png"),l.setAttribute("title",mxResources.get("save")),g.insertBefore(l,g.firstChild),mxEvent.addListener(l,"click",mxUtils.bind(this,function(c){this.saveLibrary(a.getTitle(),b,a,a.getMode(),a.constructor==LocalLibrary,!0,function(){null==l||a.isModified()||(k.style.paddingRight=18*g.childNodes.length+
"px",l.parentNode.removeChild(l),l=null)});mxEvent.consume(c)})),k.style.paddingRight=18*g.childNodes.length+"px")}),A=mxUtils.bind(this,function(a,c,d,e){a=r.cloneCells(mxUtils.sortCells(r.model.getTopmostCells(a)));for(var k=0;k<a.length;k++){var p=r.getCellGeometry(a[k]);null!=p&&p.translate(-c.x,-c.y)}h.appendChild(this.sidebar.createVertexTemplateFromCells(a,c.width,c.height,e||"",!0,!1,!1));a={xml:this.editor.graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(a))),w:c.width,h:c.height};
null!=e&&(a.title=e);b.push(a);B(d);null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null)}),y=mxUtils.bind(this,function(a){if(r.isSelectionEmpty())r.getRubberband().isActive()?(r.getRubberband().execute(a),r.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var c=r.getSelectionCells(),b=r.view.getBounds(c),d=r.view.scale;b.x/=d;b.y/=d;b.width/=d;b.height/=d;b.x-=r.view.translate.x;b.y-=r.view.translate.y;
A(c,b)}mxEvent.consume(a)});h.style.border="3px solid transparent";mxEvent.addGestureListeners(h,function(){},mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.panningManager&&null!=r.graphHandler.shape&&(r.graphHandler.shape.node.style.visibility="hidden",null!=f?f.style.border="3px dotted rgb(254, 137, 12)":h.style.border="3px dotted rgb(254, 137, 12)",h.style.cursor="copy",r.panningManager.stop(),r.autoScroll=!1,null!=r.graphHandler.guide&&r.graphHandler.guide.setVisible(!1),null!=r.graphHandler.hint&&
(r.graphHandler.hint.style.visibility="hidden"),mxEvent.consume(a))}),mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.panningManager&&null!=r.graphHandler&&(h.style.border="3px solid transparent",null!=f&&(f.style.border="3px dotted lightGray"),h.style.cursor="default",this.sidebar.showTooltips=!0,r.panningManager.stop(),r.graphHandler.reset(),r.isMouseDown=!1,r.autoScroll=!0,y(a),mxEvent.consume(a))}));mxEvent.addListener(h,"mouseleave",mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.graphHandler.shape&&
(r.graphHandler.shape.node.style.visibility="visible",h.style.border="3px solid transparent",h.style.cursor="",r.autoScroll=!0,null!=r.graphHandler.guide&&r.graphHandler.guide.setVisible(!0),null!=r.graphHandler.hint&&(r.graphHandler.hint.style.visibility="visible"),null!=f&&(f.style.border="3px dotted lightGray"))}));Graph.fileSupport&&(mxEvent.addListener(h,"dragover",mxUtils.bind(this,function(a){null!=f?f.style.border="3px dotted rgb(254, 137, 12)":h.style.border="3px dotted rgb(254, 137, 12)";
a.dataTransfer.dropEffect="copy";h.style.cursor="copy";this.sidebar.hideTooltip();a.stopPropagation();a.preventDefault()})),mxEvent.addListener(h,"drop",mxUtils.bind(this,function(a){h.style.border="3px solid transparent";h.style.cursor="";null!=f&&(f.style.border="3px dotted lightGray");0<a.dataTransfer.files.length&&this.importFiles(a.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(c,d,k,p,n,q,g,m,l){if(null!=c&&"image/"==d.substring(0,6))c="shape=image;verticalLabelPosition=bottom;verticalAlign=top;aspect=fixed;image="+
this.convertDataUri(c),c=[new mxCell("",new mxGeometry(0,0,n,q),c)],c[0].vertex=!0,A(c,new mxRectangle(0,0,n,q),a,mxEvent.isAltDown(a)?null:g.substring(0,g.lastIndexOf(".")).replace(/_/g," ")),null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null);else{var t=!1,v=mxUtils.bind(this,function(c,d){if(null!=c&&"text/xml"==d){var k=mxUtils.parseXml(c);if("mxlibrary"==k.documentElement.nodeName)try{var p=JSON.parse(mxUtils.getTextContent(k.documentElement));e(p,h);b=b.concat(p);B(a);
this.spinner.stop();t=!0}catch(T){}else if("mxfile"==k.documentElement.nodeName)try{for(var n=k.documentElement.getElementsByTagName("diagram"),k=0;k<n.length;k++){var p=mxUtils.getTextContent(n[k]),q=this.stringToCells(this.editor.graph.decompress(p)),g=this.editor.graph.getBoundingBoxFromGeometry(q);A(q,new mxRectangle(0,0,g.width,g.height),a)}t=!0}catch(T){null!=window.console&&console.log("error in drop handler:",T)}}t||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));
null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null)});!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,g)&&null!=l?this.parseFile(l,mxUtils.bind(this,function(a){4==a.readyState&&(this.spinner.stop(),200<=a.status&&299>=a.status?v(a.responseText,"text/xml"):this.handleError({message:mxResources.get(413==a.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):v(c,d)}}));a.stopPropagation();a.preventDefault()})),
mxEvent.addListener(h,"dragleave",function(a){null!=f?f.style.border="3px dotted lightGray":(h.style.border="3px solid transparent",h.style.cursor="");a.stopPropagation();a.preventDefault()}));m=m.cloneNode(!1);m.setAttribute("src",IMAGE_PATH+"/edit.gif");m.setAttribute("title",mxResources.get("edit"));g.insertBefore(m,g.firstChild);mxEvent.addListener(m,"click",u);mxEvent.addListener(h,"dblclick",function(a){mxEvent.getSource(a)==h&&u(a)});m=m.cloneNode(!1);m.setAttribute("src",Editor.plusImage);
m.setAttribute("title",mxResources.get("add"));g.insertBefore(m,g.firstChild);this.isOffline()||".scratchpad"!=a.title||(d=document.createElement("span"),d.setAttribute("title",mxResources.get("help")),d.style.cssText="color:gray;text-decoration:none;",d.className="geButton",mxUtils.write(d,"?"),mxEvent.addGestureListeners(d,mxUtils.bind(this,function(a){window.open("https://desk.draw.io/support/solutions/articles/16000042367");mxEvent.consume(a)})),g.insertBefore(d,g.firstChild));var C=null;mxEvent.addListener(m,
"click",y)}k.appendChild(g);k.style.paddingRight=18*g.childNodes.length+"px"};"1"==urlParams.offline?EditorUi.prototype.footerHeight=4:("atlas"==uiTheme?("undefined"!==typeof Toolbar&&(Toolbar.prototype.unselectedBackground=mxClient.IS_QUIRKS?"none":"linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38,EditorUi.prototype.hsplitPosition=
188,Sidebar.prototype.thumbWidth=46,Sidebar.prototype.thumbHeight=46,Sidebar.prototype.thumbPadding=5<=document.documentMode?0:1,Sidebar.prototype.thumbBorder=2):"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64),EditorUi.prototype.footerHeight=760<=screen.width&&240<=screen.height?46:0,EditorUi.prototype.createFooter=function(){var a=document.getElementById("geFooter");if(null!=a){a.style.visibility="visible";var b=document.createElement("img");b.setAttribute("border",
"0");b.setAttribute("src",Dialog.prototype.closeImage);b.setAttribute("title",mxResources.get("hide"));a.appendChild(b);mxClient.IS_QUIRKS&&(b.style.position="relative",b.style.styleFloat="right",b.style.top="-30px",b.style.left="164px",b.style.cursor="pointer");mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideFooter()}))}return a});EditorUi.prototype.hideFooter=function(){var a=document.getElementById("geFooter");null!=a&&(this.footerHeight=0,a.style.display="none",this.refresh())};
EditorUi.prototype.showImageDialog=function(a,b,d,e,n){a=new ImageDialog(this,a,b,d,e,n);this.showDialog(a.container,Graph.fileSupport?440:360,Graph.fileSupport?200:90,!0,!0);a.init()};EditorUi.prototype.showBackgroundImageDialog=function(a){a=null!=a?a:mxUtils.bind(this,function(a){a=new ChangePageSetup(this,null,a);a.ignoreColor=!0;this.editor.graph.model.execute(a)});var c=new BackgroundImageDialog(this,mxUtils.bind(this,function(c){a(c)}));this.showDialog(c.container,360,200,!0,!0);c.init()};
EditorUi.prototype.showLibraryDialog=function(a,b,d,e,n){a=new LibraryDialog(this,a,b,d,e,n);this.showDialog(a.container,620,440,!0,!1,mxUtils.bind(this,function(a){a&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));a.init()};EditorUi.prototype.createSidebarFooterContainer=function(){var a=this.createDiv("geSidebarContainer");a.style.position="absolute";a.style.overflow="hidden";a.style.borderWidth="3px";var b=document.createElement("a");b.setAttribute("href","javascript:void(0);");
b.className="geTitle";b.style.height="100%";b.style.paddingTop="9px";mxUtils.write(b,mxResources.get("moreShapes")+"...");mxEvent.addListener(b,"click",mxUtils.bind(this,function(a){this.actions.get("shapes").funct();mxEvent.consume(a)}));a.appendChild(b);return a};EditorUi.prototype.handleError=function(a,b,d){var c=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},f=null!=a&&null!=a.error?a.error:a;if(null!=f||null!=b){a=mxUtils.htmlEntities(mxResources.get("unknownError"));
var e=mxResources.get("ok"),h=null;b=null!=b?b:mxResources.get("error");if(null!=f)if(null!=f.retry&&(e=mxResources.get("cancel"),h=function(){c();f.retry()}),"undefined"!=typeof gapi&&"undefined"!=typeof gapi.drive&&"undefined"!=typeof gapi.drive.realtime&&f.type==gapi.drive.realtime.ErrorType.FORBIDDEN)a=mxUtils.htmlEntities(mxResources.get("forbidden"));else if(404==f.code||404==f.status||"undefined"!=typeof gapi&&"undefined"!=typeof gapi.drive&&"undefined"!=typeof gapi.drive.realtime&&f.type==
gapi.drive.realtime.ErrorType.NOT_FOUND){a=mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied"));var k=window.location.hash;null!=k&&"#G"==k.substring(0,2)&&(k=k.substring(2),a+=' <a href="https://drive.google.com/open?id='+k+'" target="_blank">'+mxUtils.htmlEntities(mxResources.get("tryOpeningViaThisPage"))+"</a>")}else f.code==App.ERROR_TIMEOUT?a=mxUtils.htmlEntities(mxResources.get("timeout")):f.code==App.ERROR_BUSY?a=mxUtils.htmlEntities(mxResources.get("busy")):null!=f.message?a=mxUtils.htmlEntities(f.message):
null!=f.response&&null!=f.response.error&&(a=mxUtils.htmlEntities(f.response.error));this.showError(b,a,e,d,h)}else null!=d&&d()};EditorUi.prototype.showError=function(a,b,d,e,n,g,q){a=new ErrorDialog(this,a,b,d,e,n,g,q);this.showDialog(a.container,340,150,!0,!1);a.init()};EditorUi.prototype.alert=function(a,b){var c=new ErrorDialog(this,null,a,mxResources.get("ok"),b);this.showDialog(c.container,340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(a,b,d,e,n){var c=null!=this.spinner&&null!=
this.spinner.pause?this.spinner.pause():function(){};this.showDialog((new ConfirmDialog(this,a,function(){c();null!=b&&b()},function(){c();null!=d&&d()},e,n)).container,340,90,!0,!1)};EditorUi.prototype.setCurrentFile=function(a){this.currentFile=a};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isDiagramEmpty=function(){var a=this.editor.graph.getModel();return 1==a.getChildCount(a.root)&&0==a.getChildCount(a.getChildAt(a.root,0))};EditorUi.prototype.isExportToCanvas=
function(){return mxClient.IS_CHROMEAPP||!this.editor.graph.mathEnabled&&this.useCanvasForExport};EditorUi.prototype.createSvgDataUri=function(a){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(a)))};EditorUi.prototype.createImageDataUri=function(a,b,d){var c=a.toDataURL("image/"+d);if(6>=c.length||c==a.cloneNode(!1).toDataURL("image/"+d))throw{message:"Invalid image"};null!=b&&(c=this.writeGraphModelToPng(c,"zTXt","mxGraphModel",atob(this.editor.graph.compress(b))));return c};
EditorUi.prototype.saveCanvas=function(a,b,d){var c="jpeg"==d?"jpg":d,f=this.getBaseFilename()+"."+c;a=this.createImageDataUri(a,b,d);this.saveData(f,c,a.substring(a.lastIndexOf(",")+1),"image/"+d,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode&&!mxClient.IS_QUIRKS||this.isOfflineApp()||mxClient.IS_IOS};
EditorUi.prototype.doSaveLocalFile=function(a,b,d,e,n){if(window.Blob&&navigator.msSaveOrOpenBlob)a=e?this.base64ToBlob(a,d):new Blob([a],{type:d}),navigator.msSaveOrOpenBlob(a,b);else if(mxClient.IS_IE)d=window.open("about:blank","_blank"),null==d?mxUtils.popup(a,!0):(d.document.write(a),d.document.close(),d.document.execCommand("SaveAs",!0,b),d.close());else if(mxClient.IS_IOS)b=new TextareaDialog(this,b+":",a,null,null,mxResources.get("close")),b.textarea.style.width="600px",b.textarea.style.height=
"380px",this.showDialog(b.container,620,460,!0,!0),b.init(),document.execCommand("selectall",!1,null);else{var c=document.createElement("a"),f=!mxClient.IS_SF&&"undefined"!==typeof c.download;if(f||this.isOffline()){c.href=URL.createObjectURL(e?this.base64ToBlob(a,d):new Blob([a],{type:d}));f?c.download=b:c.setAttribute("target","_blank");document.body.appendChild(c);try{window.setTimeout(function(){URL.revokeObjectURL(c.href)},0),c.click(),c.parentNode.removeChild(c)}catch(k){}}else this.createEchoRequest(a,
b,d,e,n).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(a,b,d,e,n,g){a="xml="+encodeURIComponent(a);return new mxXmlRequest(SAVE_URL,a+(null!=d?"&mime="+d:"")+(null!=n?"&format="+n:"")+(null!=g?"&base64="+g:"")+(null!=b?"&filename="+encodeURIComponent(b):"")+(e?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";for(var c=atob(a),d=c.length,f=Math.ceil(d/1024),e=Array(f),q=0;q<f;++q){for(var k=1024*q,g=Math.min(k+1024,d),m=Array(g-k),l=0;k<g;++l,++k)m[l]=
c[k].charCodeAt(0);e[q]=new Uint8Array(m)}return new Blob(e,{type:b})};EditorUi.prototype.saveLocalFile=function(a,b,d,e,n,g){g=null!=g?g:!1;var c="vsdx"!=n&&(!mxClient.IS_IOS||!navigator.standalone);n=this.getServiceCount(g);b=new CreateDialog(this,b,mxUtils.bind(this,function(c,b){try{if("_blank"==b)if(null==d||"image/"!=d.substring(0,6)||"image/svg"==d.substring(0,9)&&!mxClient.IS_SVG){var f=window.open("about:blank");null==f?mxUtils.popup(a,!0):(f.document.write(mxUtils.htmlEntities(a,!1)),f.document.close())}else this.openInNewWindow(a,
d,e);else b==App.MODE_DEVICE?this.doSaveLocalFile(a,c,d,e):null!=c&&0<c.length&&this.pickFolder(b,mxUtils.bind(this,function(f){try{this.exportFile(a,c,d,e,b,f)}catch(x){this.handleError(x)}}))}catch(D){this.handleError(D)}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,g,c,null,null,4<n?3:4,a,d,e);this.showDialog(b.container,380,4<n?390:270,!0,!0);b.init()};EditorUi.prototype.openInNewWindow=function(a,b,d){if(mxClient.IS_GC||mxClient.IS_EDGE||
11==document.documentMode||10==document.documentMode){var c=window.open("about:blank");null==c?mxUtils.popup(a,!0):(c.document.write('<html><img src="data:'+b+(d?";base64,"+a:";charset=utf8,"+encodeURIComponent(a))+'"/></html>'),c.document.close())}else c=window.open("data:"+b+(d?";base64,"+a:";charset=utf8,"+encodeURIComponent(a))),null==c&&mxUtils.popup(a,!0)};var b=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.addChromelessToolbarItems=function(a){if(this.isExportToCanvas()){this.exportDialog=
null;var c=a(mxUtils.bind(this,function(a){var b=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",b);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)b.apply(this);else{this.exportDialog=document.createElement("div");var d=c.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign=
"center";this.exportDialog.style.fontFamily="Helvetica,Arial";this.exportDialog.style.backgroundColor="#000000";this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,70);this.exportDialog.style.left=d.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";d=mxUtils.getCurrentStyle(this.editor.graph.container);
this.exportDialog.style.zIndex=d.zIndex;var f=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"#fff",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});f.spin(this.exportDialog);this.exportToCanvas(mxUtils.bind(this,function(a){f.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var c=this.createImageDataUri(a,null,"png");a=document.createElement("img");a.style.maxWidth="140px";a.style.maxHeight="140px";
a.style.cursor="pointer";a.setAttribute("title",mxResources.get("openInNewWindow"));a.setAttribute("border","0");a.setAttribute("src",c);this.exportDialog.appendChild(a);mxEvent.addListener(a,"click",mxUtils.bind(this,function(){this.openInNewWindow(c.substring(c.indexOf(",")+1),"image/png",!0);b.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(a){this.spinner.stop();this.handleError(a)}));mxEvent.addListener(this.editor.graph.container,"click",b);document.body.appendChild(this.exportDialog)}mxEvent.consume(a)}),
Editor.cameraLargeImage,mxResources.get("export"))}b.apply(this,arguments)};EditorUi.prototype.saveData=function(a,b,d,e,n){this.isLocalFileSave()?this.saveLocalFile(d,a,e,n,b):this.saveRequest(a,b,mxUtils.bind(this,function(a,c){return this.createEchoRequest(d,a,e,n,b,c)}),d,n,e)};EditorUi.prototype.saveRequest=function(a,b,d,e,n,g){var c=!mxClient.IS_IOS||!navigator.standalone,f=this.getServiceCount(!1);a=new CreateDialog(this,a,mxUtils.bind(this,function(a,c){if("_blank"==c||null!=a&&0<a.length){var f=
d("_blank"==c?null:a,c==App.MODE_DEVICE||null==c||"_blank"==c?"0":"1");null!=f&&(c==App.MODE_DEVICE||"_blank"==c?f.simulate(document,"_blank"):this.pickFolder(c,mxUtils.bind(this,function(d){g=null!=g?g:"pdf"==b?"application/pdf":"image/"+b;if(null!=e)try{this.exportFile(e,a,g,!0,c,d)}catch(u){this.handleError(u)}else this.spinner.spin(document.body,mxResources.get("saving"))&&f.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=f.getStatus()&&299>=f.getStatus())try{this.exportFile(f.getText(),
a,g,!0,c,d)}catch(u){this.handleError(u)}else this.handleError({message:mxResources.get("errorSavingFile")})}),function(a){this.spinner.stop();this.handleError(a)})})))}}),mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,c,null,null,4<f?3:4,e,g,n);this.showDialog(a.container,380,4<f?390:270,!0,!0);a.init()};EditorUi.prototype.exportFile=function(a,b,d,e,n,g){};EditorUi.prototype.pickFolder=function(a,b,d){b(null)};EditorUi.prototype.exportSvg=
function(a,b,d,e,n,g,q,k,m){if(this.spinner.spin(document.body,mxResources.get("export"))){var c=this.editor.graph.isSelectionEmpty();d=null!=d?d:c;c=b?null:this.editor.graph.background;c==mxConstants.NONE&&(c=null);null==c&&0==b&&(c="#ffffff");var f=this.editor.graph.getSvg(c,a,q,k,null,d);e&&this.editor.graph.addSvgShadow(f);var h=this.getBaseFilename()+".svg",p=mxUtils.bind(this,function(a){this.spinner.stop();n&&a.setAttribute("content",this.getFileData(!0,null,null,null,d,m));var c='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'+
mxUtils.getXml(a);this.isLocalFileSave()||c.length<=MAX_REQUEST_SIZE?this.saveData(h,"svg",c,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(c)}))});this.convertMath(this.editor.graph,f,!1,mxUtils.bind(this,function(){g?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.convertImages(f,p,this.thumbImageCache)):p(f)}))}};EditorUi.prototype.addCheckbox=function(a,b,d,e,n,g){g=null!=g?g:!0;var c=
document.createElement("input");c.style.marginRight="8px";c.style.marginTop="16px";c.setAttribute("type","checkbox");d&&(c.setAttribute("checked","checked"),c.defaultChecked=!0);e&&c.setAttribute("disabled","disabled");g&&(a.appendChild(c),mxUtils.write(a,b),n||mxUtils.br(a));return c};EditorUi.prototype.addEditButton=function(a,b){var c=this.addCheckbox(a,mxResources.get("edit")+":",!0,null,!0);c.style.marginLeft="24px";var d=this.getCurrentFile(),f="";null!=d&&d.getMode()!=App.MODE_DEVICE&&d.getMode()!=
App.MODE_BROWSER&&(f=window.location.href);var e=document.createElement("select");e.style.width="120px";e.style.marginLeft="8px";e.style.marginRight="10px";e.className="geBtn";d=document.createElement("option");d.setAttribute("value","blank");mxUtils.write(d,mxResources.get("makeCopy"));e.appendChild(d);d=document.createElement("option");d.setAttribute("value","custom");mxUtils.write(d,mxResources.get("custom")+"...");e.appendChild(d);a.appendChild(e);mxEvent.addListener(e,"change",mxUtils.bind(this,
function(){if("custom"==e.value){var a=new FilenameDialog(this,f,mxResources.get("ok"),function(a){null!=a?f=a:e.value="blank"},mxResources.get("url"),null,null,null,null,function(){e.value="blank"});this.showDialog(a.container,300,80,!0,!1);a.init()}}));mxEvent.addListener(c,"change",mxUtils.bind(this,function(){c.checked&&(null==b||b.checked)?e.removeAttribute("disabled"):e.setAttribute("disabled","disabled")}));mxUtils.br(a);return{getLink:function(){return c.checked?"blank"===e.value?"_blank":
f:null},getEditInput:function(){return c},getEditSelect:function(){return e}}};EditorUi.prototype.addLinkSection=function(a,b){function c(){g.innerHTML='<div style="width:100%;height:100%;box-sizing:border-box;'+(null!=e&&e!=mxConstants.NONE?"border:1px solid black;background-color:"+e:"background-position:center center;background-repeat:no-repeat;background-image:url('"+Dialog.prototype.closeImage+"')")+';"></div>'}mxUtils.write(a,mxResources.get("links")+":");var d=document.createElement("select");
d.style.width="100px";d.style.marginLeft="8px";d.style.marginRight="10px";d.className="geBtn";var f=document.createElement("option");f.setAttribute("value","auto");mxUtils.write(f,mxResources.get("automatic"));d.appendChild(f);f=document.createElement("option");f.setAttribute("value","blank");mxUtils.write(f,mxResources.get("openInNewWindow"));d.appendChild(f);f=document.createElement("option");f.setAttribute("value","self");mxUtils.write(f,mxResources.get("openInThisWindow"));d.appendChild(f);b&&
(f=document.createElement("option"),f.setAttribute("value","frame"),mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),d.appendChild(f));a.appendChild(d);mxUtils.write(a,mxResources.get("borderColor")+":");var e="#0000ff",g=null,g=mxUtils.button("",mxUtils.bind(this,function(a){this.pickColor(e||"none",function(a){e=a;c()});mxEvent.consume(a)}));c();g.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";g.style.marginLeft="4px";g.style.height="22px";g.style.width=
"22px";g.style.position="relative";g.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";g.className="geColorBtn";a.appendChild(g);mxUtils.br(a);return{getColor:function(){return e},getTarget:function(){return d.value},focus:function(){d.focus()}}};EditorUi.prototype.createLink=function(a,b,d,e,g,m,q,k){var c=this.getCurrentFile(),f=[];e&&(f.push("lightbox=1"),"auto"!=a&&f.push("target="+a),null!=b&&b!=mxConstants.NONE&&f.push("highlight="+("#"==b.charAt(0)?b.substring(1):b)),
null!=g&&0<g.length&&f.push("edit="+encodeURIComponent(g)),m&&f.push("layers=1"),this.editor.graph.foldingEnabled&&f.push("nav=1"));if(d&&null!=this.pages&&null!=this.currentPage)for(a=0;a<this.pages.length;a++)if(this.pages[a]==this.currentPage){0<a&&f.push("page="+a);break}a=!0;null!=q?d="#U"+encodeURIComponent(q):(c=this.getCurrentFile(),k||null==c||c.constructor!=window.DriveFile?d="#R"+encodeURIComponent(d?this.getFileData(!0,null,null,null,null,null,null,!0):this.editor.graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):
(d="#"+c.getHash(),a=!1));a&&null!=c&&null!=c.getTitle()&&c.getTitle()!=this.defaultFilename&&f.push("title="+encodeURIComponent(c.getTitle()));return(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?"https://www.draw.io/":"https://"+location.host+"/")+(0<f.length?"?"+f.join("&"):"")+d};EditorUi.prototype.createHtml=function(a,b,d,e,g,m,q,k,l,t,r){var c=this.getBasenames(),f={};""!=g&&g!=mxConstants.NONE&&(f.highlight=g);"auto"!==e&&(f.target=e);l||(f.lightbox=!1);f.nav=this.editor.graph.foldingEnabled;
d=parseInt(d);isNaN(d)||100==d||(f.zoom=d/100);d=[];q&&(d.push("pages"),f.resize=!0,null!=this.pages&&null!=this.currentPage&&(f.page=mxUtils.indexOf(this.pages,this.currentPage)));b&&(d.push("zoom"),f.resize=!0);k&&d.push("layers");0<d.length&&(l&&d.push("lightbox"),f.toolbar=d.join(" "));null!=t&&0<t.length&&(f.edit=t);null!=a?f.url=a:f.xml=this.getFileData(!0,null,null,null,null,!q);b='<div class="mxgraph" style="'+(m?"max-width:100%;":"")+(""!=d?"border:1px solid transparent;":"")+'" data-mxgraph="'+
mxUtils.htmlEntities(JSON.stringify(f))+'"></div>';c=0<c.length?"s="+c.join(";"):"";a=null!=a?"fetch="+encodeURIComponent(a):"";r(b,'<script type="text/javascript" src="'+(0<c.length||0<a.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1&"+c:"https://www.draw.io/embed2.js?"+c)+"&"+a:"1"==urlParams.dev?"https://test.draw.io/js/viewer.min.js":"https://www.draw.io/js/viewer.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(a,b,d,e){var c=document.createElement("div");
c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("html"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";c.appendChild(f);var h=document.createElement("div");h.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var k=document.createElement("input");k.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";k.setAttribute("value","url");k.setAttribute("type","radio");k.setAttribute("name",
"type-embedhtmldialog");f=k.cloneNode(!0);f.setAttribute("value","copy");h.appendChild(f);var p=document.createElement("span");mxUtils.write(p,mxResources.get("includeCopyOfMyDiagram"));h.appendChild(p);mxUtils.br(h);h.appendChild(k);p=document.createElement("span");mxUtils.write(p,mxResources.get("publicDiagramUrl"));h.appendChild(p);var g=this.getCurrentFile();null==d&&null!=g&&g.constructor==window.DriveFile&&(p=document.createElement("a"),p.style.paddingLeft="12px",p.style.color="gray",p.setAttribute("href",
"javascript:void(0);"),mxUtils.write(p,mxResources.get("share")),h.appendChild(p),mxEvent.addListener(p,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(g.getId())})));f.setAttribute("checked","checked");null==d&&k.setAttribute("disabled","disabled");c.appendChild(h);var m=this.addLinkSection(c),l=this.addCheckbox(c,mxResources.get("zoom"),!0,null,!0);mxUtils.write(c,":");var r=document.createElement("input");r.setAttribute("type","text");r.style.marginRight="16px";
r.style.width="60px";r.style.marginLeft="4px";r.style.marginRight="12px";r.value="100%";c.appendChild(r);var B=this.addCheckbox(c,mxResources.get("fit"),!0),h=null!=this.pages&&1<this.pages.length,A=A=this.addCheckbox(c,mxResources.get("allPages"),h,!h),y=this.addCheckbox(c,mxResources.get("layers"),!0),C=this.addCheckbox(c,mxResources.get("lightbox"),!0),F=this.addEditButton(c,C),z=F.getEditInput();z.style.marginBottom="16px";mxEvent.addListener(C,"change",function(){C.checked?z.removeAttribute("disabled"):
z.setAttribute("disabled","disabled");z.checked&&C.checked?F.getEditSelect().removeAttribute("disabled"):F.getEditSelect().setAttribute("disabled","disabled")});a=new CustomDialog(this,c,mxUtils.bind(this,function(){e(k.checked?d:null,l.checked,r.value,m.getTarget(),m.getColor(),B.checked,A.checked,y.checked,C.checked,F.getLink())}),null,a,b);this.showDialog(a.container,340,360,!0,!0);f.focus()};EditorUi.prototype.showPublishLinkDialog=function(a,b,d,e,g,m){var c=document.createElement("div");c.style.whiteSpace=
"nowrap";var f=document.createElement("h3");mxUtils.write(f,a||mxResources.get("link"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";c.appendChild(f);var h=this.getCurrentFile(),f="https://desk.draw.io/support/solutions/articles/16000051941";a=0;if(null!=h&&h.constructor==window.DriveFile&&!b){a=80;var f="https://desk.draw.io/support/solutions/articles/16000039384",p=document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";
var n=document.createElement("div");n.style.whiteSpace="normal";mxUtils.write(n,mxResources.get("linkAccountRequired"));p.appendChild(n);n=mxUtils.button(mxResources.get("share"),mxUtils.bind(this,function(){this.drive.showPermissions(h.getId())}));n.style.marginTop="12px";n.className="geBtn";p.appendChild(n);c.appendChild(p);n=document.createElement("a");n.style.paddingLeft="12px";n.style.color="gray";n.style.fontSize="11px";n.setAttribute("href","javascript:void(0);");mxUtils.write(n,mxResources.get("check"));
p.appendChild(n);mxEvent.addListener(n,"click",mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&this.getPublicUrl(this.getCurrentFile(),mxUtils.bind(this,function(a){this.spinner.stop();a=new ErrorDialog(this,null,mxResources.get(null!=a?"diagramIsPublic":"diagramIsNotPublic"),mxResources.get("ok"));this.showDialog(a.container,300,80,!0,!1);a.init()}))}))}var l=null,r=null;if(null!=d||null!=e)a+=30,mxUtils.write(c,mxResources.get("width")+":"),l=document.createElement("input"),
l.setAttribute("type","text"),l.style.marginRight="16px",l.style.width="50px",l.style.marginLeft="6px",l.style.marginRight="16px",l.style.marginBottom="10px",l.value="100%",c.appendChild(l),mxUtils.write(c,mxResources.get("height")+":"),r=document.createElement("input"),r.setAttribute("type","text"),r.style.width="50px",r.style.marginLeft="6px",r.style.marginBottom="10px",r.value=e+"px",c.appendChild(r),mxUtils.br(c);var v=this.addLinkSection(c,m);d=null!=this.pages&&1<this.pages.length;var A=null;
if(null==h||h.constructor!=window.DriveFile||b)A=this.addCheckbox(c,mxResources.get("allPages"),d,!d);var y=this.addCheckbox(c,mxResources.get("lightbox"),!0),C=this.addEditButton(c,y),F=C.getEditInput(),z=this.addCheckbox(c,mxResources.get("layers"),!0);z.style.marginLeft=F.style.marginLeft;z.style.marginBottom="16px";z.style.marginTop="8px";mxEvent.addListener(y,"change",function(){y.checked?(z.removeAttribute("disabled"),F.removeAttribute("disabled")):(z.setAttribute("disabled","disabled"),F.setAttribute("disabled",
"disabled"));F.checked&&y.checked?C.getEditSelect().removeAttribute("disabled"):C.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,c,mxUtils.bind(this,function(){g(v.getTarget(),v.getColor(),null==A?!0:A.checked,y.checked,C.getLink(),z.checked,null!=l?l.value:null,null!=r?r.value:null)}),null,mxResources.get("create"),f);this.showDialog(b.container,340,246+a,!0,!0);null!=l?(l.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?l.select():document.execCommand("selectAll",
!1,null)):v.focus()};EditorUi.prototype.showRemoteExportDialog=function(a,b,d,e){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("image"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";c.appendChild(f);var h=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),k=e?null:this.addCheckbox(c,mxResources.get("includeCopyOfMyDiagram"),!0);null!=k&&
(k.style.marginBottom="16px");a=new CustomDialog(this,c,mxUtils.bind(this,function(){d(!h.checked,null!=k?k.checked:!1)}),null,a,b);this.showDialog(a.container,300,e?100:146,!0,!0)};EditorUi.prototype.showExportDialog=function(a,b,d,e,g,m,q,k){q=null!=q?q:!0;var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=this.editor.graph,h="jpeg"==k?170:280,p=document.createElement("h3");mxUtils.write(p,a);p.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";c.appendChild(p);
mxUtils.write(c,mxResources.get("zoom")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.marginRight="16px";n.style.width="60px";n.style.marginLeft="4px";n.style.marginRight="12px";n.value=this.lastExportZoom||"100%";c.appendChild(n);mxUtils.write(c,mxResources.get("borderWidth")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.marginRight="16px";l.style.width="60px";l.style.marginLeft="4px";l.value=this.lastExportBorder||"0";c.appendChild(l);
mxUtils.br(c);var r=this.addCheckbox(c,mxResources.get("transparentBackground"),f.background==mxConstants.NONE||null==f.background,null,null,"jpeg"!=k),v=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,f.isSelectionEmpty()),C=document.createElement("input");C.style.marginTop="16px";C.style.marginRight="8px";C.style.marginLeft="24px";C.setAttribute("disabled","disabled");C.setAttribute("type","checkbox");m&&(c.appendChild(C),mxUtils.write(c,mxResources.get("crop")),mxUtils.br(c),h+=26,mxEvent.addListener(v,
"change",function(){v.checked?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}));f.isSelectionEmpty()||(C.setAttribute("checked","checked"),C.defaultChecked=!0);var F=this.addCheckbox(c,mxResources.get("shadow"),f.shadowVisible),z=document.createElement("input");z.style.marginTop="16px";z.style.marginRight="8px";z.setAttribute("type","checkbox");!this.isOffline()&&this.canvasSupported||z.setAttribute("disabled","disabled");b&&(c.appendChild(z),mxUtils.write(c,mxResources.get("embedImages")),
mxUtils.br(c),h+=26);var G=this.addCheckbox(c,mxResources.get("includeCopyOfMyDiagram"),q,null,null,"jpeg"!=k),J=null!=this.pages&&1<this.pages.length,K=this.addCheckbox(c,J?mxResources.get("allPages"):"",J,!J,null,"jpeg"!=k);K.style.marginLeft="24px";K.style.marginBottom="16px";J||(K.style.visibility="hidden");mxEvent.addListener(G,"change",function(){G.checked&&J?K.removeAttribute("disabled"):K.setAttribute("disabled","disabled")});q&&J||K.setAttribute("disabled","disabled");a=new CustomDialog(this,
c,mxUtils.bind(this,function(){this.lastExportBorder=l.value;this.lastExportZoom=n.value;g(n.value,r.checked,!v.checked,F.checked,G.checked,z.checked,l.value,C.checked,!K.checked)}),null,d,e);this.showDialog(a.container,320,h,!0,!0);n.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?n.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(a,b,d,e,g){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=this.editor.graph;
if(null!=b){var h=document.createElement("h3");mxUtils.write(h,b);h.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";c.appendChild(h)}var p=this.addCheckbox(c,mxResources.get("fit"),!0),n=this.addCheckbox(c,mxResources.get("shadow"),f.shadowVisible&&e,!e),m=this.addCheckbox(c,d),l=this.addCheckbox(c,mxResources.get("lightbox"),!0),r=this.addEditButton(c,l),B=r.getEditInput(),A=1<f.model.getChildCount(f.model.getRoot()),y=this.addCheckbox(c,mxResources.get("layers"),A,
!A);y.style.marginLeft=B.style.marginLeft;y.style.marginBottom="12px";y.style.marginTop="8px";mxEvent.addListener(l,"change",function(){l.checked?(A&&y.removeAttribute("disabled"),B.removeAttribute("disabled")):(y.setAttribute("disabled","disabled"),B.setAttribute("disabled","disabled"));B.checked&&l.checked?r.getEditSelect().removeAttribute("disabled"):r.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,c,mxUtils.bind(this,function(){a(p.checked,n.checked,m.checked,l.checked,
r.getLink(),y.checked)}),null,mxResources.get("embed"),g);this.showDialog(b.container,280,280,!0,!0)};EditorUi.prototype.createEmbedImage=function(a,b,d,e,g,m,q,k){function c(c){var b=" ",h="";e&&(b=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('https://www.draw.io/?client=1&lightbox=1"+
(g?"&edit=_blank":"")+(m?"&layers=1":"")+"');}})(this);\"",h+="cursor:pointer;");a&&(h+="max-width:100%;");var k="";d&&(k=' width="'+Math.round(f.width)+'" height="'+Math.round(f.height)+'"');q('<img src="'+c+'"'+k+(""!=h?' style="'+h+'"':"")+b+"/>")}var f=this.editor.graph.getGraphBounds();if(this.isExportToCanvas())this.exportToCanvas(mxUtils.bind(this,function(a){var b=e?this.getFileData(!0):null;a=this.createImageDataUri(a,b,"png");c(a)}),null,null,null,mxUtils.bind(this,function(a){k({message:mxResources.get("unknownError")})}),
null,!0,d?2:1,null,b);else if(b=this.getFileData(!0),f.width*f.height<=MAX_AREA&&b.length<=MAX_REQUEST_SIZE){var h="";d&&(h="&w="+Math.round(2*f.width)+"&h="+Math.round(2*f.height));var p=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(e?"1":"0")+h+"&xml="+encodeURIComponent(b));p.send(mxUtils.bind(this,function(){200<=p.getStatus()&&299>=p.getStatus()?c("data:image/png;base64,"+p.getText()):k({message:mxResources.get("unknownError")})}))}else k({message:mxResources.get("drawingTooLarge")})};
EditorUi.prototype.createEmbedSvg=function(a,b,d,e,g,m,q){var c=this.editor.graph.getSvg(),f=c.getElementsByTagName("a");if(null!=f)for(var h=0;h<f.length;h++){var p=f[h].getAttribute("href");null!=p&&"#"==p.charAt(0)&&"_blank"==f[h].getAttribute("target")&&f[h].removeAttribute("target")}e&&c.setAttribute("content",this.getFileData(!0));b&&this.editor.graph.addSvgShadow(c);if(d){var n=" ",l="";e&&(n="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('https://www.draw.io/?client=1&lightbox=1"+
"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(a,b,d,e,n){null!=n&&(n=n.replace(/&/g,"&amp;"));a={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,xml:this.editor.graph.zapGremlins(a),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(a.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==n?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=n?' xmlns="http://www.w3.org/1999/xhtml">':
">")+"\n<head>\n"+(null==n?null!=d?"<title>"+mxUtils.htmlEntities(d)+"</title>\n":"":"<title>Draw.io Diagram</title>\n")+(null!=n?'<meta http-equiv="refresh" content="0;URL=\''+n+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(a))+'"></div>\n'+(null==n?'<script type="text/javascript" src="https://www.draw.io/js/viewer.min.js">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+
n+'" target="_blank"><img border="0" src="https://www.draw.io/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=function(a){a=this.validateFileData(a);this.pages=this.fileNode=this.currentPage=null;var c=null!=a&&0<a.length?mxUtils.parseXml(a).documentElement:null;a=null!=c?this.editor.extractGraphModel(c,!0):null;null!=a&&(c=a);if(null!=c&&"mxfile"==c.nodeName&&(a=c.getElementsByTagName("diagram"),"0"!=urlParams.pages||1<a.length||1==a.length&&a[0].hasAttribute("name"))){this.fileNode=
c;this.pages=[];for(c=0;c<a.length;c++){var b=new DiagramPage(a[c]);null==b.getName()&&b.setName(mxResources.get("pageWithNumber",[c+1]));this.pages.push(b)}this.currentPage=this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];c=this.currentPage.node}"0"!=urlParams.pages&&null==this.fileNode&&null!=c&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",
[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(c);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root)};EditorUi.prototype.getBaseFilename=function(){var a=this.getCurrentFile(),a=null!=a&&null!=a.getTitle()?a.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(a)||/(\.html)$/i.test(a)||/(\.svg)$/i.test(a))a=a.substring(0,a.lastIndexOf("."));return a};EditorUi.prototype.downloadFile=function(a,b,d,e,n,g){try{e=null!=e?e:this.editor.graph.isSelectionEmpty();var c=
this.getBaseFilename(),f=c+"."+a;if("xml"==a){var h='<?xml version="1.0" encoding="UTF-8"?>\n'+(b?mxUtils.getXml(this.editor.getGraphXml(e)):this.getFileData(!0,null,null,null,e,n));this.saveData(f,a,h,"text/xml")}else if("html"==a)h=this.getHtml2(this.getFileData(!0),this.editor.graph,c),this.saveData(f,a,h,"text/html");else if("svg"!=a&&"xmlsvg"!=a||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==a?f=c+".png":"jpeg"==a&&(f=c+".jpg"),this.saveRequest(f,a,mxUtils.bind(this,function(c,
b){try{var d=this.editor.graph.pageVisible;null!=g&&(this.editor.graph.pageVisible=g);var f=this.createDownloadRequest(c,a,e,b);this.editor.graph.pageVisible=d;return f}catch(F){this.handleError(F)}}));else{var p=null,m=mxUtils.bind(this,function(a){a.length<=MAX_REQUEST_SIZE?this.saveData(f,"svg",a,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(p)}))});if("svg"==a){var l=this.editor.graph.background;
l==mxConstants.NONE&&(l=null);var v=this.editor.graph.getSvg(l,null,null,null,null,e);d&&this.editor.graph.addSvgShadow(v);this.convertImages(v,mxUtils.bind(this,mxUtils.bind(this,function(a){this.spinner.stop();m('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'+mxUtils.getXml(a))})))}else f=c+".svg",p=this.getFileData(!1,!0,null,mxUtils.bind(this,function(a){this.spinner.stop();m(a)}),e)}}catch(B){this.handleError(B)}};
EditorUi.prototype.createDownloadRequest=function(a,b,d,e){var c=this.editor.graph.getGraphBounds();d=this.getFileData(!0,null,null,null,d,"xmlpng"!=b);var f="";if(c.width*c.height>MAX_AREA||d.length>MAX_REQUEST_SIZE)throw{message:mxResources.get("drawingTooLarge")};c="0";if("xmlpng"==b&&(c="1",b="png",null!=this.pages&&null!=this.currentPage))for(var h=0;h<this.pages.length;h++)if(this.pages[h]==this.currentPage){f="&from="+h;break}return new mxXmlRequest(EXPORT_URL,"format="+b+f+"&base64="+e+"&embedXml="+
c+"&xml="+encodeURIComponent(d)+(null!=a?"&filename="+encodeURIComponent(a):""))};EditorUi.prototype.setMode=function(a,b){this.mode=a};EditorUi.prototype.fileLoaded=function(a){var c=!1;this.hideDialog();var b=this.getCurrentFile();this.setCurrentFile(null);null!=b&&(b.removeListener(this.descriptorChangedListener),b.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var d=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=b&&this.updateDocumentTitle();
this.editor.graph.model.clear();this.editor.undoManager.clear();null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fnameWrapper.style.display="none",this.fname.innerHTML="",this.fname.setAttribute("title",mxResources.get("rename")));this.updateUi();this.showSplash()});if(null!=a)try{this.setCurrentFile(a);a.addListener("descriptorChanged",this.descriptorChangedListener);a.addListener("contentChanged",this.descriptorChangedListener);a.open();
this.setGraphEnabled(!0);this.setMode(a.getMode());this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();null==a.realtime&&(a.isEditable()?this.editor.setStatus(""):this.editor.setStatus('<span class="geStatusAlert" style="margin-left:8px;">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</span>"));this.editor.chromeless?this.editor.graph.lightbox&&this.lightboxFit():(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&
window.focus());this.chromelessResize&&this.chromelessResize();this.editor.fireEvent(new mxEventObject("fileLoaded"));c=!0;if(EditorUi.enableLogging&&!this.isOffline()&&null!=a.getMode())try{"function"===typeof window.ga&&ga("send","event","File","open",a.getMode())}catch(n){}if(this.mode==a.getMode()&&a.getMode()!=App.MODE_DEVICE&&null!=a.getMode())try{this.addRecent({id:a.getHash(),title:a.getTitle(),mode:a.getMode()})}catch(n){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(n){}}catch(n){null!=
window.console&&console.log("error in fileLoaded:",a,n);if(EditorUi.enableLogging&&!this.isOffline())try{(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?v="+encodeURIComponent(EditorUi.VERSION)+"&msg=errorInFileLoaded:url:"+encodeURIComponent(window.location.href)+(null!=n&&null!=n.message?":err:"+encodeURIComponent(n.message):"")+(null!=n&&null!=n.stack?"&stack="+encodeURIComponent(n.stack):"")}catch(v){}this.handleError(n,mxResources.get("errorLoadingFile"),mxUtils.bind(this,
function(){null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=b?b.constructor==DriveFile?this.loadFile(b.getHash()):this.fileLoaded(b):d()}))}else d();return c};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(a,b,d,e,n,g,q){};EditorUi.prototype.toggleScratchpad=function(){if(isLocalStorage||mxClient.IS_CHROMEAPP)null==this.scratchpad?this.getLocalData(".scratchpad",mxUtils.bind(this,
function(a){null==a&&(a=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,a,".scratchpad"))})):this.closeLibrary(this.scratchpad)};EditorUi.prototype.createLibraryDataFromImages=function(a){var c=mxUtils.createXmlDocument(),b=c.createElement("mxlibrary");mxUtils.setTextContent(b,JSON.stringify(a));c.appendChild(b);return mxUtils.getXml(c)};EditorUi.prototype.closeLibrary=function(a){null!=a&&(this.removeLibrarySidebar(a.getHash()),a.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(a.getHash()),
".scratchpad"==a.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(a){var c=this.sidebar.palettes[a];if(null!=c){for(var b=0;b<c.length;b++)c[b].parentNode.removeChild(c[b]);delete this.sidebar.palettes[a]}};EditorUi.prototype.repositionLibrary=function(a){var c=this.sidebar.container;if(null==a){var b=this.sidebar.palettes["L.scratchpad"];null==b&&(b=this.sidebar.palettes.search);null!=b&&(a=b[b.length-1].nextSibling)}a=null!=a?a:c.firstChild.nextSibling.nextSibling;
var b=c.lastChild,d=b.previousSibling;c.insertBefore(b,a);c.insertBefore(d,b)};EditorUi.prototype.loadLibrary=function(a){var c=mxUtils.parseXml(a.getData());if("mxlibrary"==c.documentElement.nodeName){var b=JSON.parse(mxUtils.getTextContent(c.documentElement));this.libraryLoaded(a,b,c.documentElement.getAttribute("title"))}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(a){return""};EditorUi.prototype.libraryLoaded=function(a,b,d){a.constructor!=
LocalLibrary&&mxSettings.addCustomLibrary(a.getHash());".scratchpad"==a.title&&(this.scratchpad=a);var c=this.sidebar.palettes[a.getHash()],c=null!=c?c[c.length-1].nextSibling:null;this.removeLibrarySidebar(a.getHash());var f=null,e=mxUtils.bind(this,function(c,b){if(0==c.length&&a.isEditable())null==f&&(f=document.createElement("div"),mxUtils.setPrefixedStyle(f.style,"borderRadius","6px"),f.style.border="3px dotted lightGray",f.style.textAlign="center",f.style.padding="8px",f.style.color="#B3B3B3",
mxUtils.write(f,mxResources.get("dragElementsHere"))),b.appendChild(f);else for(var d=0;d<c.length;d++){var e=c[d],h=e.data;if(null!=h){var h=this.convertDataUri(h),k="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==e.aspect&&(k+="aspect=fixed;");b.appendChild(this.sidebar.createVertexTemplate(k+"image="+h,e.w,e.h,"",e.title||"",!1,!1,!1))}else null!=e.xml&&(h=this.stringToCells(this.editor.graph.decompress(e.xml)),0<h.length&&b.appendChild(this.sidebar.createVertexTemplateFromCells(h,
e.w,e.h,e.title||"",!0,!1,!1)))}});d=null!=d&&0<d.length?d:a.getTitle();var h=this.sidebar.addPalette(a.getHash(),d,!0,mxUtils.bind(this,function(a){e(b,a)}));this.repositionLibrary(c);var k=h.parentNode.previousSibling;d=k.getAttribute("title");null!=d&&0<d.length&&".scratchpad"!=a.title&&k.setAttribute("title",this.getLibraryStorageHint(a)+"\n"+d);var g=document.createElement("div");g.style.position="absolute";g.style.right="0px";g.style.top="5px";mxClient.IS_QUIRKS||8==document.documentMode||(g.style.backgroundColor=
"inherit");k.style.position="relative";var m=document.createElement("img");m.setAttribute("src",Dialog.prototype.closeImage);m.setAttribute("title",mxResources.get("close"));m.setAttribute("align","top");m.setAttribute("border","0");m.className="geButton";m.style.marginRight="1px";m.style.marginTop="-1px";g.appendChild(m);var l=null;mxEvent.addListener(m,"click",mxUtils.bind(this,function(c){if(!mxEvent.isConsumed(c)){var b=mxUtils.bind(this,function(){this.closeLibrary(a)});null!=l?this.confirm(mxResources.get("allChangesLost"),
null,b,mxResources.get("cancel"),mxResources.get("discardChanges")):b();mxEvent.consume(c)}}));mxEvent.addListener(h,"mousemove",mxUtils.bind(this,function(a){mxEvent.getSource(a)==h?h.setAttribute("title",mxResources.get("libraryTooltip")):h.removeAttribute("title")}));if(a.isEditable()){var r=this.editor.graph,u=mxUtils.bind(this,function(c){this.showLibraryDialog(a.getTitle(),h,b,a,a.getMode());mxEvent.consume(c)}),B=mxUtils.bind(this,function(c){a.setModified(!0);a.isAutosave()?(null!=C&&null!=
C.parentNode&&C.parentNode.removeChild(C),C=m.cloneNode(!1),C.setAttribute("src",Editor.spinImage),C.setAttribute("title",mxResources.get("saving")),C.style.cursor="default",C.style.marginRight="2px",C.style.marginTop="-2px",g.insertBefore(C,g.firstChild),k.style.paddingRight=18*g.childNodes.length+"px",this.saveLibrary(a.getTitle(),b,a,a.getMode(),!0,!0,function(){null!=C&&null!=C.parentNode&&(C.parentNode.removeChild(C),k.style.paddingRight=18*g.childNodes.length+"px")})):null==l&&(l=m.cloneNode(!1),
l.setAttribute("src",IMAGE_PATH+"/download.png"),l.setAttribute("title",mxResources.get("save")),g.insertBefore(l,g.firstChild),mxEvent.addListener(l,"click",mxUtils.bind(this,function(c){this.saveLibrary(a.getTitle(),b,a,a.getMode(),a.constructor==LocalLibrary,!0,function(){null==l||a.isModified()||(k.style.paddingRight=18*g.childNodes.length+"px",l.parentNode.removeChild(l),l=null)});mxEvent.consume(c)})),k.style.paddingRight=18*g.childNodes.length+"px")}),A=mxUtils.bind(this,function(a,c,d,e){a=
r.cloneCells(mxUtils.sortCells(r.model.getTopmostCells(a)));for(var k=0;k<a.length;k++){var p=r.getCellGeometry(a[k]);null!=p&&p.translate(-c.x,-c.y)}h.appendChild(this.sidebar.createVertexTemplateFromCells(a,c.width,c.height,e||"",!0,!1,!1));a={xml:this.editor.graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(a))),w:c.width,h:c.height};null!=e&&(a.title=e);b.push(a);B(d);null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null)}),y=mxUtils.bind(this,function(a){if(r.isSelectionEmpty())r.getRubberband().isActive()?
(r.getRubberband().execute(a),r.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var c=r.getSelectionCells(),b=r.view.getBounds(c),d=r.view.scale;b.x/=d;b.y/=d;b.width/=d;b.height/=d;b.x-=r.view.translate.x;b.y-=r.view.translate.y;A(c,b)}mxEvent.consume(a)});h.style.border="3px solid transparent";mxEvent.addGestureListeners(h,function(){},mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.panningManager&&null!=r.graphHandler.shape&&
(r.graphHandler.shape.node.style.visibility="hidden",null!=f?f.style.border="3px dotted rgb(254, 137, 12)":h.style.border="3px dotted rgb(254, 137, 12)",h.style.cursor="copy",r.panningManager.stop(),r.autoScroll=!1,null!=r.graphHandler.guide&&r.graphHandler.guide.setVisible(!1),null!=r.graphHandler.hint&&(r.graphHandler.hint.style.visibility="hidden"),mxEvent.consume(a))}),mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.panningManager&&null!=r.graphHandler&&(h.style.border="3px solid transparent",
null!=f&&(f.style.border="3px dotted lightGray"),h.style.cursor="default",this.sidebar.showTooltips=!0,r.panningManager.stop(),r.graphHandler.reset(),r.isMouseDown=!1,r.autoScroll=!0,y(a),mxEvent.consume(a))}));mxEvent.addListener(h,"mouseleave",mxUtils.bind(this,function(a){r.isMouseDown&&null!=r.graphHandler.shape&&(r.graphHandler.shape.node.style.visibility="visible",h.style.border="3px solid transparent",h.style.cursor="",r.autoScroll=!0,null!=r.graphHandler.guide&&r.graphHandler.guide.setVisible(!0),
null!=r.graphHandler.hint&&(r.graphHandler.hint.style.visibility="visible"),null!=f&&(f.style.border="3px dotted lightGray"))}));Graph.fileSupport&&(mxEvent.addListener(h,"dragover",mxUtils.bind(this,function(a){null!=f?f.style.border="3px dotted rgb(254, 137, 12)":h.style.border="3px dotted rgb(254, 137, 12)";a.dataTransfer.dropEffect="copy";h.style.cursor="copy";this.sidebar.hideTooltip();a.stopPropagation();a.preventDefault()})),mxEvent.addListener(h,"drop",mxUtils.bind(this,function(a){h.style.border=
"3px solid transparent";h.style.cursor="";null!=f&&(f.style.border="3px dotted lightGray");0<a.dataTransfer.files.length&&this.importFiles(a.dataTransfer.files,0,0,this.maxImageSize,mxUtils.bind(this,function(c,d,k,p,n,q,g,m,l){if(null!=c&&"image/"==d.substring(0,6))c="shape=image;verticalLabelPosition=bottom;verticalAlign=top;aspect=fixed;image="+this.convertDataUri(c),c=[new mxCell("",new mxGeometry(0,0,n,q),c)],c[0].vertex=!0,A(c,new mxRectangle(0,0,n,q),a,mxEvent.isAltDown(a)?null:g.substring(0,
g.lastIndexOf(".")).replace(/_/g," ")),null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null);else{var t=!1,v=mxUtils.bind(this,function(c,d){if(null!=c&&"text/xml"==d){var k=mxUtils.parseXml(c);if("mxlibrary"==k.documentElement.nodeName)try{var p=JSON.parse(mxUtils.getTextContent(k.documentElement));e(p,h);b=b.concat(p);B(a);this.spinner.stop();t=!0}catch(T){}else if("mxfile"==k.documentElement.nodeName)try{for(var n=k.documentElement.getElementsByTagName("diagram"),k=0;k<
n.length;k++){var p=mxUtils.getTextContent(n[k]),q=this.stringToCells(this.editor.graph.decompress(p)),g=this.editor.graph.getBoundingBoxFromGeometry(q);A(q,new mxRectangle(0,0,g.width,g.height),a)}t=!0}catch(T){null!=window.console&&console.log("error in drop handler:",T)}}t||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=f&&null!=f.parentNode&&0<b.length&&(f.parentNode.removeChild(f),f=null)});!this.isOffline()&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,
g)&&null!=l?this.parseFile(l,mxUtils.bind(this,function(a){4==a.readyState&&(this.spinner.stop(),200<=a.status&&299>=a.status?v(a.responseText,"text/xml"):this.handleError({message:mxResources.get(413==a.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):v(c,d)}}));a.stopPropagation();a.preventDefault()})),mxEvent.addListener(h,"dragleave",function(a){null!=f?f.style.border="3px dotted lightGray":(h.style.border="3px solid transparent",h.style.cursor="");a.stopPropagation();
a.preventDefault()}));m=m.cloneNode(!1);m.setAttribute("src",IMAGE_PATH+"/edit.gif");m.setAttribute("title",mxResources.get("edit"));g.insertBefore(m,g.firstChild);mxEvent.addListener(m,"click",u);mxEvent.addListener(h,"dblclick",function(a){mxEvent.getSource(a)==h&&u(a)});m=m.cloneNode(!1);m.setAttribute("src",Editor.plusImage);m.setAttribute("title",mxResources.get("add"));g.insertBefore(m,g.firstChild);this.isOffline()||".scratchpad"!=a.title||(d=document.createElement("span"),d.setAttribute("title",
mxResources.get("help")),d.style.cssText="color:gray;text-decoration:none;",d.className="geButton",mxUtils.write(d,"?"),mxEvent.addGestureListeners(d,mxUtils.bind(this,function(a){window.open("https://desk.draw.io/support/solutions/articles/16000042367");mxEvent.consume(a)})),g.insertBefore(d,g.firstChild));var C=null;mxEvent.addListener(m,"click",y)}k.appendChild(g);k.style.paddingRight=18*g.childNodes.length+"px"};"1"==urlParams.offline?EditorUi.prototype.footerHeight=4:("atlas"==uiTheme?("undefined"!==
typeof Toolbar&&(Toolbar.prototype.unselectedBackground=mxClient.IS_QUIRKS?"none":"linear-gradient(rgb(255, 255, 255) 0px, rgb(242, 242, 242) 100%)",Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38,EditorUi.prototype.hsplitPosition=188,Sidebar.prototype.thumbWidth=46,Sidebar.prototype.thumbHeight=46,Sidebar.prototype.thumbPadding=5<=document.documentMode?0:1,Sidebar.prototype.thumbBorder=
2):"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64),EditorUi.prototype.footerHeight=760<=screen.width&&240<=screen.height?46:0,EditorUi.prototype.createFooter=function(){var a=document.getElementById("geFooter");if(null!=a){a.style.visibility="visible";var b=document.createElement("img");b.setAttribute("border","0");b.setAttribute("src",Dialog.prototype.closeImage);b.setAttribute("title",mxResources.get("hide"));a.appendChild(b);mxClient.IS_QUIRKS&&(b.style.position=
"relative",b.style.styleFloat="right",b.style.top="-30px",b.style.left="164px",b.style.cursor="pointer");mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideFooter()}))}return a});EditorUi.prototype.hideFooter=function(){var a=document.getElementById("geFooter");null!=a&&(this.footerHeight=0,a.style.display="none",this.refresh())};EditorUi.prototype.showImageDialog=function(a,b,d,e,n){a=new ImageDialog(this,a,b,d,e,n);this.showDialog(a.container,Graph.fileSupport?440:360,Graph.fileSupport?
200:90,!0,!0);a.init()};EditorUi.prototype.showBackgroundImageDialog=function(a){a=null!=a?a:mxUtils.bind(this,function(a){a=new ChangePageSetup(this,null,a);a.ignoreColor=!0;this.editor.graph.model.execute(a)});var c=new BackgroundImageDialog(this,mxUtils.bind(this,function(c){a(c)}));this.showDialog(c.container,360,200,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(a,b,d,e,n){a=new LibraryDialog(this,a,b,d,e,n);this.showDialog(a.container,620,440,!0,!1,mxUtils.bind(this,function(a){a&&
null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));a.init()};EditorUi.prototype.createSidebarFooterContainer=function(){var a=this.createDiv("geSidebarContainer");a.style.position="absolute";a.style.overflow="hidden";a.style.borderWidth="3px";var b=document.createElement("a");b.setAttribute("href","javascript:void(0);");b.className="geTitle";b.style.height="100%";b.style.paddingTop="9px";mxUtils.write(b,mxResources.get("moreShapes")+"...");mxEvent.addListener(b,"click",mxUtils.bind(this,
function(a){this.actions.get("shapes").funct();mxEvent.consume(a)}));a.appendChild(b);return a};EditorUi.prototype.handleError=function(a,b,d){var c=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},f=null!=a&&null!=a.error?a.error:a;if(null!=f||null!=b){a=mxUtils.htmlEntities(mxResources.get("unknownError"));var e=mxResources.get("ok"),h=null;b=null!=b?b:mxResources.get("error");if(null!=f)if(null!=f.retry&&(e=mxResources.get("cancel"),h=function(){c();f.retry()}),"undefined"!=
typeof gapi&&"undefined"!=typeof gapi.drive&&"undefined"!=typeof gapi.drive.realtime&&f.type==gapi.drive.realtime.ErrorType.FORBIDDEN)a=mxUtils.htmlEntities(mxResources.get("forbidden"));else if(404==f.code||404==f.status||"undefined"!=typeof gapi&&"undefined"!=typeof gapi.drive&&"undefined"!=typeof gapi.drive.realtime&&f.type==gapi.drive.realtime.ErrorType.NOT_FOUND){a=mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied"));var k=window.location.hash;null!=k&&"#G"==k.substring(0,2)&&(k=k.substring(2),
a+=' <a href="https://drive.google.com/open?id='+k+'" target="_blank">'+mxUtils.htmlEntities(mxResources.get("tryOpeningViaThisPage"))+"</a>")}else f.code==App.ERROR_TIMEOUT?a=mxUtils.htmlEntities(mxResources.get("timeout")):f.code==App.ERROR_BUSY?a=mxUtils.htmlEntities(mxResources.get("busy")):null!=f.message?a=mxUtils.htmlEntities(f.message):null!=f.response&&null!=f.response.error&&(a=mxUtils.htmlEntities(f.response.error));this.showError(b,a,e,d,h)}else null!=d&&d()};EditorUi.prototype.showError=
function(a,b,d,e,n,g,q){a=new ErrorDialog(this,a,b,d,e,n,g,q);this.showDialog(a.container,340,150,!0,!1);a.init()};EditorUi.prototype.alert=function(a,b){var c=new ErrorDialog(this,null,a,mxResources.get("ok"),b);this.showDialog(c.container,340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(a,b,d,e,n){var c=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){};this.showDialog((new ConfirmDialog(this,a,function(){c();null!=b&&b()},function(){c();null!=d&&d()},e,n)).container,
340,90,!0,!1)};EditorUi.prototype.setCurrentFile=function(a){this.currentFile=a};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isDiagramEmpty=function(){var a=this.editor.graph.getModel();return 1==a.getChildCount(a.root)&&0==a.getChildCount(a.getChildAt(a.root,0))};EditorUi.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||!this.editor.graph.mathEnabled&&this.useCanvasForExport};EditorUi.prototype.createSvgDataUri=function(a){return"data:image/svg+xml;base64,"+
btoa(unescape(encodeURIComponent(a)))};EditorUi.prototype.createImageDataUri=function(a,b,d){var c=a.toDataURL("image/"+d);if(6>=c.length||c==a.cloneNode(!1).toDataURL("image/"+d))throw{message:"Invalid image"};null!=b&&(c=this.writeGraphModelToPng(c,"zTXt","mxGraphModel",atob(this.editor.graph.compress(b))));return c};EditorUi.prototype.saveCanvas=function(a,b,d){var c="jpeg"==d?"jpg":d,f=this.getBaseFilename()+"."+c;a=this.createImageDataUri(a,b,d);this.saveData(f,c,a.substring(a.lastIndexOf(",")+
1),"image/"+d,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode&&!mxClient.IS_QUIRKS||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.doSaveLocalFile=function(a,b,d,e,n){if(window.Blob&&navigator.msSaveOrOpenBlob)a=e?this.base64ToBlob(a,d):new Blob([a],{type:d}),navigator.msSaveOrOpenBlob(a,b);else if(mxClient.IS_IE)d=
window.open("about:blank","_blank"),null==d?mxUtils.popup(a,!0):(d.document.write(a),d.document.close(),d.document.execCommand("SaveAs",!0,b),d.close());else if(mxClient.IS_IOS)b=new TextareaDialog(this,b+":",a,null,null,mxResources.get("close")),b.textarea.style.width="600px",b.textarea.style.height="380px",this.showDialog(b.container,620,460,!0,!0),b.init(),document.execCommand("selectall",!1,null);else{var c=document.createElement("a"),f=!mxClient.IS_SF&&"undefined"!==typeof c.download;if(f||this.isOffline()){c.href=
URL.createObjectURL(e?this.base64ToBlob(a,d):new Blob([a],{type:d}));f?c.download=b:c.setAttribute("target","_blank");document.body.appendChild(c);try{window.setTimeout(function(){URL.revokeObjectURL(c.href)},0),c.click(),c.parentNode.removeChild(c)}catch(k){}}else this.createEchoRequest(a,b,d,e,n).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(a,b,d,e,n,g){a="xml="+encodeURIComponent(a);return new mxXmlRequest(SAVE_URL,a+(null!=d?"&mime="+d:"")+(null!=n?"&format="+n:
"")+(null!=g?"&base64="+g:"")+(null!=b?"&filename="+encodeURIComponent(b):"")+(e?"&binary=1":""))};EditorUi.prototype.base64ToBlob=function(a,b){b=b||"";for(var c=atob(a),d=c.length,f=Math.ceil(d/1024),e=Array(f),q=0;q<f;++q){for(var k=1024*q,g=Math.min(k+1024,d),m=Array(g-k),l=0;k<g;++l,++k)m[l]=c[k].charCodeAt(0);e[q]=new Uint8Array(m)}return new Blob(e,{type:b})};EditorUi.prototype.saveLocalFile=function(a,b,d,e,n,g){g=null!=g?g:!1;var c="vsdx"!=n&&(!mxClient.IS_IOS||!navigator.standalone);n=this.getServiceCount(g);
b=new CreateDialog(this,b,mxUtils.bind(this,function(c,b){try{if("_blank"==b)if(null==d||"image/"!=d.substring(0,6)||"image/svg"==d.substring(0,9)&&!mxClient.IS_SVG){var f=window.open("about:blank");null==f?mxUtils.popup(a,!0):(f.document.write(mxUtils.htmlEntities(a,!1)),f.document.close())}else this.openInNewWindow(a,d,e);else b==App.MODE_DEVICE?this.doSaveLocalFile(a,c,d,e):null!=c&&0<c.length&&this.pickFolder(b,mxUtils.bind(this,function(f){try{this.exportFile(a,c,d,e,b,f)}catch(x){this.handleError(x)}}))}catch(D){this.handleError(D)}}),
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,g,c,null,null,4<n?3:4,a,d,e);this.showDialog(b.container,380,4<n?390:270,!0,!0);b.init()};EditorUi.prototype.openInNewWindow=function(a,b,d){if(mxClient.IS_GC||mxClient.IS_EDGE||11==document.documentMode||10==document.documentMode){var c=window.open("about:blank");null==c?mxUtils.popup(a,!0):(c.document.write('<html><img src="data:'+b+(d?";base64,"+a:";charset=utf8,"+encodeURIComponent(a))+'"/></html>'),
c.document.close())}else c=window.open("data:"+b+(d?";base64,"+a:";charset=utf8,"+encodeURIComponent(a))),null==c&&mxUtils.popup(a,!0)};var b=EditorUi.prototype.addChromelessToolbarItems;EditorUi.prototype.addChromelessToolbarItems=function(a){if(this.isExportToCanvas()){this.exportDialog=null;var c=a(mxUtils.bind(this,function(a){var b=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",b);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),
this.exportDialog=null)});if(null!=this.exportDialog)b.apply(this);else{this.exportDialog=document.createElement("div");var d=c.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";this.exportDialog.style.fontFamily="Helvetica,Arial";this.exportDialog.style.backgroundColor="#000000";this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding=
"4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,70);this.exportDialog.style.left=d.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";d=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=d.zIndex;var f=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"#fff",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});f.spin(this.exportDialog);
this.exportToCanvas(mxUtils.bind(this,function(a){f.stop();this.exportDialog.style.width="auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var c=this.createImageDataUri(a,null,"png");a=document.createElement("img");a.style.maxWidth="140px";a.style.maxHeight="140px";a.style.cursor="pointer";a.setAttribute("title",mxResources.get("openInNewWindow"));a.setAttribute("border","0");a.setAttribute("src",c);this.exportDialog.appendChild(a);mxEvent.addListener(a,"click",mxUtils.bind(this,
function(){this.openInNewWindow(c.substring(c.indexOf(",")+1),"image/png",!0);b.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(a){this.spinner.stop();this.handleError(a)}));mxEvent.addListener(this.editor.graph.container,"click",b);document.body.appendChild(this.exportDialog)}mxEvent.consume(a)}),Editor.cameraLargeImage,mxResources.get("export"))}b.apply(this,arguments)};EditorUi.prototype.saveData=function(a,b,d,e,n){this.isLocalFileSave()?this.saveLocalFile(d,
a,e,n,b):this.saveRequest(a,b,mxUtils.bind(this,function(a,c){return this.createEchoRequest(d,a,e,n,b,c)}),d,n,e)};EditorUi.prototype.saveRequest=function(a,b,d,e,n,g){var c=!mxClient.IS_IOS||!navigator.standalone,f=this.getServiceCount(!1);a=new CreateDialog(this,a,mxUtils.bind(this,function(a,c){if("_blank"==c||null!=a&&0<a.length){var f=d("_blank"==c?null:a,c==App.MODE_DEVICE||null==c||"_blank"==c?"0":"1");null!=f&&(c==App.MODE_DEVICE||"_blank"==c?f.simulate(document,"_blank"):this.pickFolder(c,
mxUtils.bind(this,function(d){g=null!=g?g:"pdf"==b?"application/pdf":"image/"+b;if(null!=e)try{this.exportFile(e,a,g,!0,c,d)}catch(u){this.handleError(u)}else this.spinner.spin(document.body,mxResources.get("saving"))&&f.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=f.getStatus()&&299>=f.getStatus())try{this.exportFile(f.getText(),a,g,!0,c,d)}catch(u){this.handleError(u)}else this.handleError({message:mxResources.get("errorSavingFile")})}),function(a){this.spinner.stop();this.handleError(a)})})))}}),
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,c,null,null,4<f?3:4,e,g,n);this.showDialog(a.container,380,4<f?390:270,!0,!0);a.init()};EditorUi.prototype.exportFile=function(a,b,d,e,n,g){};EditorUi.prototype.pickFolder=function(a,b,d){b(null)};EditorUi.prototype.exportSvg=function(a,b,d,e,n,g,q,k,m){if(this.spinner.spin(document.body,mxResources.get("export"))){var c=this.editor.graph.isSelectionEmpty();d=null!=d?d:c;c=b?null:this.editor.graph.background;
c==mxConstants.NONE&&(c=null);null==c&&0==b&&(c="#ffffff");var f=this.editor.graph.getSvg(c,a,q,k,null,d);e&&this.editor.graph.addSvgShadow(f);var h=this.getBaseFilename()+".svg",p=mxUtils.bind(this,function(a){this.spinner.stop();n&&a.setAttribute("content",this.getFileData(!0,null,null,null,d,m));var c='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n'+mxUtils.getXml(a);this.isLocalFileSave()||c.length<=MAX_REQUEST_SIZE?this.saveData(h,"svg",c,
"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(c)}))});this.convertMath(this.editor.graph,f,!1,mxUtils.bind(this,function(){g?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.convertImages(f,p,this.thumbImageCache)):p(f)}))}};EditorUi.prototype.addCheckbox=function(a,b,d,e,n,g){g=null!=g?g:!0;var c=document.createElement("input");c.style.marginRight="8px";c.style.marginTop="16px";c.setAttribute("type",
"checkbox");d&&(c.setAttribute("checked","checked"),c.defaultChecked=!0);e&&c.setAttribute("disabled","disabled");g&&(a.appendChild(c),mxUtils.write(a,b),n||mxUtils.br(a));return c};EditorUi.prototype.addEditButton=function(a,b){var c=this.addCheckbox(a,mxResources.get("edit")+":",!0,null,!0);c.style.marginLeft="24px";var d=this.getCurrentFile(),f="";null!=d&&d.getMode()!=App.MODE_DEVICE&&d.getMode()!=App.MODE_BROWSER&&(f=window.location.href);var e=document.createElement("select");e.style.width=
"120px";e.style.marginLeft="8px";e.style.marginRight="10px";e.className="geBtn";d=document.createElement("option");d.setAttribute("value","blank");mxUtils.write(d,mxResources.get("makeCopy"));e.appendChild(d);d=document.createElement("option");d.setAttribute("value","custom");mxUtils.write(d,mxResources.get("custom")+"...");e.appendChild(d);a.appendChild(e);mxEvent.addListener(e,"change",mxUtils.bind(this,function(){if("custom"==e.value){var a=new FilenameDialog(this,f,mxResources.get("ok"),function(a){null!=
a?f=a:e.value="blank"},mxResources.get("url"),null,null,null,null,function(){e.value="blank"});this.showDialog(a.container,300,80,!0,!1);a.init()}}));mxEvent.addListener(c,"change",mxUtils.bind(this,function(){c.checked&&(null==b||b.checked)?e.removeAttribute("disabled"):e.setAttribute("disabled","disabled")}));mxUtils.br(a);return{getLink:function(){return c.checked?"blank"===e.value?"_blank":f:null},getEditInput:function(){return c},getEditSelect:function(){return e}}};EditorUi.prototype.addLinkSection=
function(a,b){function c(){g.innerHTML='<div style="width:100%;height:100%;box-sizing:border-box;'+(null!=e&&e!=mxConstants.NONE?"border:1px solid black;background-color:"+e:"background-position:center center;background-repeat:no-repeat;background-image:url('"+Dialog.prototype.closeImage+"')")+';"></div>'}mxUtils.write(a,mxResources.get("links")+":");var d=document.createElement("select");d.style.width="100px";d.style.marginLeft="8px";d.style.marginRight="10px";d.className="geBtn";var f=document.createElement("option");
f.setAttribute("value","auto");mxUtils.write(f,mxResources.get("automatic"));d.appendChild(f);f=document.createElement("option");f.setAttribute("value","blank");mxUtils.write(f,mxResources.get("openInNewWindow"));d.appendChild(f);f=document.createElement("option");f.setAttribute("value","self");mxUtils.write(f,mxResources.get("openInThisWindow"));d.appendChild(f);b&&(f=document.createElement("option"),f.setAttribute("value","frame"),mxUtils.write(f,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+
")"),d.appendChild(f));a.appendChild(d);mxUtils.write(a,mxResources.get("borderColor")+":");var e="#0000ff",g=null,g=mxUtils.button("",mxUtils.bind(this,function(a){this.pickColor(e||"none",function(a){e=a;c()});mxEvent.consume(a)}));c();g.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";g.style.marginLeft="4px";g.style.height="22px";g.style.width="22px";g.style.position="relative";g.style.top=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_EDGE?"6px":"1px";g.className="geColorBtn";a.appendChild(g);
mxUtils.br(a);return{getColor:function(){return e},getTarget:function(){return d.value},focus:function(){d.focus()}}};EditorUi.prototype.createLink=function(a,b,d,e,g,m,q,k){var c=this.getCurrentFile(),f=[];e&&(f.push("lightbox=1"),"auto"!=a&&f.push("target="+a),null!=b&&b!=mxConstants.NONE&&f.push("highlight="+("#"==b.charAt(0)?b.substring(1):b)),null!=g&&0<g.length&&f.push("edit="+encodeURIComponent(g)),m&&f.push("layers=1"),this.editor.graph.foldingEnabled&&f.push("nav=1"));if(d&&null!=this.pages&&
null!=this.currentPage)for(a=0;a<this.pages.length;a++)if(this.pages[a]==this.currentPage){0<a&&f.push("page="+a);break}a=!0;null!=q?d="#U"+encodeURIComponent(q):(c=this.getCurrentFile(),k||null==c||c.constructor!=window.DriveFile?d="#R"+encodeURIComponent(d?this.getFileData(!0,null,null,null,null,null,null,!0):this.editor.graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(d="#"+c.getHash(),a=!1));a&&null!=c&&null!=c.getTitle()&&c.getTitle()!=this.defaultFilename&&f.push("title="+encodeURIComponent(c.getTitle()));
return(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?"https://www.draw.io/":"https://"+location.host+"/")+(0<f.length?"?"+f.join("&"):"")+d};EditorUi.prototype.createHtml=function(a,b,d,e,g,m,q,k,l,t,r){this.getBasenames();var c={};""!=g&&g!=mxConstants.NONE&&(c.highlight=g);"auto"!==e&&(c.target=e);l||(c.lightbox=!1);c.nav=this.editor.graph.foldingEnabled;d=parseInt(d);isNaN(d)||100==d||(c.zoom=d/100);d=[];q&&(d.push("pages"),c.resize=!0,null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,
this.currentPage)));b&&(d.push("zoom"),c.resize=!0);k&&d.push("layers");0<d.length&&(l&&d.push("lightbox"),c.toolbar=d.join(" "));null!=t&&0<t.length&&(c.edit=t);null!=a?c.url=a:c.xml=this.getFileData(!0,null,null,null,null,!q);b='<div class="mxgraph" style="'+(m?"max-width:100%;":"")+(""!=d?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>';a=null!=a?"&fetch="+encodeURIComponent(a):"";r(b,'<script type="text/javascript" src="'+(0<a.length?("1"==
urlParams.dev?"https://test.draw.io/embed2.js?dev=1":"https://www.draw.io/embed2.js?")+a:"1"==urlParams.dev?"https://test.draw.io/js/viewer.min.js":"https://www.draw.io/js/viewer.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(a,b,d,e){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("html"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";c.appendChild(f);var h=
document.createElement("div");h.style.cssText="border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var k=document.createElement("input");k.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";k.setAttribute("value","url");k.setAttribute("type","radio");k.setAttribute("name","type-embedhtmldialog");f=k.cloneNode(!0);f.setAttribute("value","copy");h.appendChild(f);var p=document.createElement("span");mxUtils.write(p,mxResources.get("includeCopyOfMyDiagram"));h.appendChild(p);
mxUtils.br(h);h.appendChild(k);p=document.createElement("span");mxUtils.write(p,mxResources.get("publicDiagramUrl"));h.appendChild(p);var g=this.getCurrentFile();null==d&&null!=g&&g.constructor==window.DriveFile&&(p=document.createElement("a"),p.style.paddingLeft="12px",p.style.color="gray",p.setAttribute("href","javascript:void(0);"),mxUtils.write(p,mxResources.get("share")),h.appendChild(p),mxEvent.addListener(p,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(g.getId())})));
f.setAttribute("checked","checked");null==d&&k.setAttribute("disabled","disabled");c.appendChild(h);var m=this.addLinkSection(c),l=this.addCheckbox(c,mxResources.get("zoom"),!0,null,!0);mxUtils.write(c,":");var r=document.createElement("input");r.setAttribute("type","text");r.style.marginRight="16px";r.style.width="60px";r.style.marginLeft="4px";r.style.marginRight="12px";r.value="100%";c.appendChild(r);var B=this.addCheckbox(c,mxResources.get("fit"),!0),h=null!=this.pages&&1<this.pages.length,A=
A=this.addCheckbox(c,mxResources.get("allPages"),h,!h),y=this.addCheckbox(c,mxResources.get("layers"),!0),C=this.addCheckbox(c,mxResources.get("lightbox"),!0),F=this.addEditButton(c,C),z=F.getEditInput();z.style.marginBottom="16px";mxEvent.addListener(C,"change",function(){C.checked?z.removeAttribute("disabled"):z.setAttribute("disabled","disabled");z.checked&&C.checked?F.getEditSelect().removeAttribute("disabled"):F.getEditSelect().setAttribute("disabled","disabled")});a=new CustomDialog(this,c,
mxUtils.bind(this,function(){e(k.checked?d:null,l.checked,r.value,m.getTarget(),m.getColor(),B.checked,A.checked,y.checked,C.checked,F.getLink())}),null,a,b);this.showDialog(a.container,340,360,!0,!0);f.focus()};EditorUi.prototype.showPublishLinkDialog=function(a,b,d,e,g,m){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,a||mxResources.get("link"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";c.appendChild(f);
var h=this.getCurrentFile(),f="https://desk.draw.io/support/solutions/articles/16000051941";a=0;if(null!=h&&h.constructor==window.DriveFile&&!b){a=80;var f="https://desk.draw.io/support/solutions/articles/16000039384",p=document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var n=document.createElement("div");n.style.whiteSpace="normal";mxUtils.write(n,mxResources.get("linkAccountRequired"));p.appendChild(n);
n=mxUtils.button(mxResources.get("share"),mxUtils.bind(this,function(){this.drive.showPermissions(h.getId())}));n.style.marginTop="12px";n.className="geBtn";p.appendChild(n);c.appendChild(p);n=document.createElement("a");n.style.paddingLeft="12px";n.style.color="gray";n.style.fontSize="11px";n.setAttribute("href","javascript:void(0);");mxUtils.write(n,mxResources.get("check"));p.appendChild(n);mxEvent.addListener(n,"click",mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&
this.getPublicUrl(this.getCurrentFile(),mxUtils.bind(this,function(a){this.spinner.stop();a=new ErrorDialog(this,null,mxResources.get(null!=a?"diagramIsPublic":"diagramIsNotPublic"),mxResources.get("ok"));this.showDialog(a.container,300,80,!0,!1);a.init()}))}))}var l=null,r=null;if(null!=d||null!=e)a+=30,mxUtils.write(c,mxResources.get("width")+":"),l=document.createElement("input"),l.setAttribute("type","text"),l.style.marginRight="16px",l.style.width="50px",l.style.marginLeft="6px",l.style.marginRight=
"16px",l.style.marginBottom="10px",l.value="100%",c.appendChild(l),mxUtils.write(c,mxResources.get("height")+":"),r=document.createElement("input"),r.setAttribute("type","text"),r.style.width="50px",r.style.marginLeft="6px",r.style.marginBottom="10px",r.value=e+"px",c.appendChild(r),mxUtils.br(c);var v=this.addLinkSection(c,m);d=null!=this.pages&&1<this.pages.length;var A=null;if(null==h||h.constructor!=window.DriveFile||b)A=this.addCheckbox(c,mxResources.get("allPages"),d,!d);var y=this.addCheckbox(c,
mxResources.get("lightbox"),!0),C=this.addEditButton(c,y),F=C.getEditInput(),z=this.addCheckbox(c,mxResources.get("layers"),!0);z.style.marginLeft=F.style.marginLeft;z.style.marginBottom="16px";z.style.marginTop="8px";mxEvent.addListener(y,"change",function(){y.checked?(z.removeAttribute("disabled"),F.removeAttribute("disabled")):(z.setAttribute("disabled","disabled"),F.setAttribute("disabled","disabled"));F.checked&&y.checked?C.getEditSelect().removeAttribute("disabled"):C.getEditSelect().setAttribute("disabled",
"disabled")});b=new CustomDialog(this,c,mxUtils.bind(this,function(){g(v.getTarget(),v.getColor(),null==A?!0:A.checked,y.checked,C.getLink(),z.checked,null!=l?l.value:null,null!=r?r.value:null)}),null,mxResources.get("create"),f);this.showDialog(b.container,340,246+a,!0,!0);null!=l?(l.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?l.select():document.execCommand("selectAll",!1,null)):v.focus()};EditorUi.prototype.showRemoteExportDialog=function(a,b,d,e){var c=document.createElement("div");
c.style.whiteSpace="nowrap";var f=document.createElement("h3");mxUtils.write(f,mxResources.get("image"));f.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";c.appendChild(f);var h=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),k=e?null:this.addCheckbox(c,mxResources.get("includeCopyOfMyDiagram"),!0);null!=k&&(k.style.marginBottom="16px");a=new CustomDialog(this,c,mxUtils.bind(this,function(){d(!h.checked,null!=k?k.checked:!1)}),
null,a,b);this.showDialog(a.container,300,e?100:146,!0,!0)};EditorUi.prototype.showExportDialog=function(a,b,d,e,g,m,q,k){q=null!=q?q:!0;var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=this.editor.graph,h="jpeg"==k?170:280,p=document.createElement("h3");mxUtils.write(p,a);p.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";c.appendChild(p);mxUtils.write(c,mxResources.get("zoom")+":");var n=document.createElement("input");n.setAttribute("type","text");
n.style.marginRight="16px";n.style.width="60px";n.style.marginLeft="4px";n.style.marginRight="12px";n.value=this.lastExportZoom||"100%";c.appendChild(n);mxUtils.write(c,mxResources.get("borderWidth")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.marginRight="16px";l.style.width="60px";l.style.marginLeft="4px";l.value=this.lastExportBorder||"0";c.appendChild(l);mxUtils.br(c);var r=this.addCheckbox(c,mxResources.get("transparentBackground"),f.background==mxConstants.NONE||
null==f.background,null,null,"jpeg"!=k),v=this.addCheckbox(c,mxResources.get("selectionOnly"),!1,f.isSelectionEmpty()),C=document.createElement("input");C.style.marginTop="16px";C.style.marginRight="8px";C.style.marginLeft="24px";C.setAttribute("disabled","disabled");C.setAttribute("type","checkbox");m&&(c.appendChild(C),mxUtils.write(c,mxResources.get("crop")),mxUtils.br(c),h+=26,mxEvent.addListener(v,"change",function(){v.checked?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}));
f.isSelectionEmpty()||(C.setAttribute("checked","checked"),C.defaultChecked=!0);var F=this.addCheckbox(c,mxResources.get("shadow"),f.shadowVisible),z=document.createElement("input");z.style.marginTop="16px";z.style.marginRight="8px";z.setAttribute("type","checkbox");!this.isOffline()&&this.canvasSupported||z.setAttribute("disabled","disabled");b&&(c.appendChild(z),mxUtils.write(c,mxResources.get("embedImages")),mxUtils.br(c),h+=26);var G=this.addCheckbox(c,mxResources.get("includeCopyOfMyDiagram"),
q,null,null,"jpeg"!=k),J=null!=this.pages&&1<this.pages.length,K=this.addCheckbox(c,J?mxResources.get("allPages"):"",J,!J,null,"jpeg"!=k);K.style.marginLeft="24px";K.style.marginBottom="16px";J||(K.style.visibility="hidden");mxEvent.addListener(G,"change",function(){G.checked&&J?K.removeAttribute("disabled"):K.setAttribute("disabled","disabled")});q&&J||K.setAttribute("disabled","disabled");a=new CustomDialog(this,c,mxUtils.bind(this,function(){this.lastExportBorder=l.value;this.lastExportZoom=n.value;
g(n.value,r.checked,!v.checked,F.checked,G.checked,z.checked,l.value,C.checked,!K.checked)}),null,d,e);this.showDialog(a.container,320,h,!0,!0);n.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?n.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(a,b,d,e,g){var c=document.createElement("div");c.style.whiteSpace="nowrap";var f=this.editor.graph;if(null!=b){var h=document.createElement("h3");mxUtils.write(h,b);h.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";
c.appendChild(h)}var p=this.addCheckbox(c,mxResources.get("fit"),!0),n=this.addCheckbox(c,mxResources.get("shadow"),f.shadowVisible&&e,!e),m=this.addCheckbox(c,d),l=this.addCheckbox(c,mxResources.get("lightbox"),!0),r=this.addEditButton(c,l),B=r.getEditInput(),A=1<f.model.getChildCount(f.model.getRoot()),y=this.addCheckbox(c,mxResources.get("layers"),A,!A);y.style.marginLeft=B.style.marginLeft;y.style.marginBottom="12px";y.style.marginTop="8px";mxEvent.addListener(l,"change",function(){l.checked?
(A&&y.removeAttribute("disabled"),B.removeAttribute("disabled")):(y.setAttribute("disabled","disabled"),B.setAttribute("disabled","disabled"));B.checked&&l.checked?r.getEditSelect().removeAttribute("disabled"):r.getEditSelect().setAttribute("disabled","disabled")});b=new CustomDialog(this,c,mxUtils.bind(this,function(){a(p.checked,n.checked,m.checked,l.checked,r.getLink(),y.checked)}),null,mxResources.get("embed"),g);this.showDialog(b.container,280,280,!0,!0)};EditorUi.prototype.createEmbedImage=
function(a,b,d,e,g,m,q,k){function c(c){var b=" ",h="";e&&(b=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('https://www.draw.io/?client=1&lightbox=1"+(g?"&edit=_blank":"")+(m?"&layers=1":"")+"');}})(this);\"",h+="cursor:pointer;");
a&&(h+="max-width:100%;");var k="";d&&(k=' width="'+Math.round(f.width)+'" height="'+Math.round(f.height)+'"');q('<img src="'+c+'"'+k+(""!=h?' style="'+h+'"':"")+b+"/>")}var f=this.editor.graph.getGraphBounds();if(this.isExportToCanvas())this.exportToCanvas(mxUtils.bind(this,function(a){var b=e?this.getFileData(!0):null;a=this.createImageDataUri(a,b,"png");c(a)}),null,null,null,mxUtils.bind(this,function(a){k({message:mxResources.get("unknownError")})}),null,!0,d?2:1,null,b);else if(b=this.getFileData(!0),
f.width*f.height<=MAX_AREA&&b.length<=MAX_REQUEST_SIZE){var h="";d&&(h="&w="+Math.round(2*f.width)+"&h="+Math.round(2*f.height));var p=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(e?"1":"0")+h+"&xml="+encodeURIComponent(b));p.send(mxUtils.bind(this,function(){200<=p.getStatus()&&299>=p.getStatus()?c("data:image/png;base64,"+p.getText()):k({message:mxResources.get("unknownError")})}))}else k({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(a,
b,d,e,g,m,q){var c=this.editor.graph.getSvg(),f=c.getElementsByTagName("a");if(null!=f)for(var h=0;h<f.length;h++){var p=f[h].getAttribute("href");null!=p&&"#"==p.charAt(0)&&"_blank"==f[h].getAttribute("target")&&f[h].removeAttribute("target")}e&&c.setAttribute("content",this.getFileData(!0));b&&this.editor.graph.addSvgShadow(c);if(d){var n=" ",l="";e&&(n="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('https://www.draw.io/?client=1&lightbox=1"+
(g?"&edit=_blank":"")+(m?"&layers=1":"")+"');}})(this);\"",l+="cursor:pointer;");a&&(l+="max-width:100%;");this.convertImages(c,mxUtils.bind(this,function(a){q('<img src="'+this.createSvgDataUri(mxUtils.getXml(a))+'"'+(""!=l?' style="'+l+'"':"")+n+"/>")}))}else l="",e&&(c.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('https://www.draw.io/?client=1&lightbox=1"+
(g?"&edit=_blank":"")+(m?"&layers=1":"")+"');}}})(this);"),l+="cursor:pointer;"),a&&(a=parseInt(c.getAttribute("width")),b=parseInt(c.getAttribute("height")),c.setAttribute("viewBox","0 0 "+a+" "+b),l+="max-width:100%;max-height:"+b+"px;",c.removeAttribute("height")),""!=l&&c.setAttribute("style",l),q(mxUtils.getXml(c))};EditorUi.prototype.timeSince=function(a){a=Math.floor((new Date-a)/1E3);var c=Math.floor(a/31536E3);if(1<c)return c+" "+mxResources.get("years");c=Math.floor(a/2592E3);if(1<c)return c+
" "+mxResources.get("months");c=Math.floor(a/86400);if(1<c)return c+" "+mxResources.get("days");c=Math.floor(a/3600);if(1<c)return c+" "+mxResources.get("hours");c=Math.floor(a/60);return 1<c?c+" "+mxResources.get("minutes"):1==c?c+" "+mxResources.get("minute"):null};EditorUi.prototype.convertMath=function(a,b,d,e){e()};EditorUi.prototype.decodeNodeIntoGraph=function(a,b){if(null!=a){var c=null;if("diagram"==a.nodeName)c=a;else if("mxfile"==a.nodeName){var d=a.getElementsByTagName("diagram");if(0<
@ -3019,8 +3019,8 @@ e.style.border="1px solid #d0d0d0";"bottom"==this.graphConfig["toolbar-position"
p=null),b.style.border=x)});mxEvent.addListener(document,"mousemove",function(a){for(a=mxEvent.getSource(a);null!=a;){if(a==b||a==e||a==p)return;a=a.parentNode}d()});mxEvent.addListener(document,"mouseleave",function(a){d()})});mxEvent.addListener(b,"mouseenter",f)};
GraphViewer.prototype.addClickHandler=function(a,b){a.linkPolicy=this.graphConfig.target||a.linkPolicy;a.addClickHandler(this.graphConfig.highlight,mxUtils.bind(this,function(e,d){if(null==d){var g=mxEvent.getSource(e);"a"==g.nodeName.toLowerCase()&&(d=g.getAttribute("href"))}null!=b?null==d||a.isExternalProtocol(d)||a.isBlankLink(d)||window.setTimeout(function(){b.destroy()},0):null!=d&&a.isPageLink(d)&&(g=d.indexOf(","),0<g&&(g=d.substring(g+1),this.selectPageById(g),mxEvent.consume(e)))}),mxUtils.bind(this,
function(a){null!=b||!this.lightboxClickEnabled||mxEvent.isTouchEvent(a)&&0!=this.toolbarItems.length||this.showLightbox()}))};
GraphViewer.prototype.showLightbox=function(){if("open"==this.graphConfig.lightbox||window.self!==window.top){var a;a="https://www.draw.io/?client=1&lightbox=1&close=1&edit=_blank&target=blank"+(this.layersEnabled?"&layers=1":"");if("undefined"!==typeof window.postMessage&&(null==document.documentMode||10<=document.documentMode)){var b=null,e=mxUtils.bind(this,function(a){"ready"==a.data&&a.source==b&&(b.postMessage(this.xml,"*"),mxEvent.removeListener(window,"message",e))});mxEvent.addListener(window,
"message",e);b=window.open(a)}else window.drawdata=this.xml,window.open(a)}else this.showLocalLightbox()};
GraphViewer.prototype.showLightbox=function(){if("open"==this.graphConfig.lightbox||window.self!==window.top){var a;a="https://www.draw.io/?client=1&lightbox=1&close=1&edit=_blank&target=blank"+(null!=this.graphConfig&&0!=this.graphConfig.nav?"&nav=1":"");a+=null!=this.graphConfig&&null!=this.graphConfig.highlight?"&highlight="+this.graphConfig.highlight.substring(1):"";a+=null!=this.currentPage?"&page="+this.currentPage:"";a+=this.layersEnabled?"&layers=1":"";if("undefined"!==typeof window.postMessage&&
(null==document.documentMode||10<=document.documentMode))if(null==this.lightboxWindow||this.lightboxWindow.closed){this.lightboxWindow=window.open(a);var b=mxUtils.bind(this,function(a){"ready"==a.data&&a.source==this.lightboxWindow&&(this.lightboxWindow.postMessage(this.xml,"*"),mxEvent.removeListener(window,"message",b))});mxEvent.addListener(window,"message",b)}else this.lightboxWindow.focus();else window.drawdata=this.xml,window.open(a)}else this.showLocalLightbox()};
GraphViewer.prototype.showLocalLightbox=function(){var a=mxUtils.getDocumentScrollOrigin(document),b=document.createElement("div");mxClient.IS_QUIRKS?(b.style.position="absolute",b.style.left=a.x+"px",b.style.top=a.y+"px",b.style.width=document.body.offsetWidth+"px",b.style.height=document.body.offsetHeight+"px"):b.style.cssText="position:fixed;top:0;left:0;bottom:0;right:0;";b.style.zIndex=this.lightboxZIndex;b.style.backgroundColor="#000000";mxUtils.setOpacity(b,70);document.body.appendChild(b);
var e=document.createElement("img");e.setAttribute("border","0");e.setAttribute("src",Editor.closeImage);mxClient.IS_QUIRKS?(e.style.position="absolute",e.style.right="32px",e.style.top=a.y+32+"px"):e.style.cssText="position:fixed;top:32px;right:32px;";e.style.cursor="pointer";mxEvent.addListener(e,"click",function(){d.destroy()});urlParams.pages="1";urlParams.page=this.currentPage;urlParams.nav=0!=this.graphConfig.nav?"1":"0";urlParams.layers=this.layersEnabled?"1":"0";if(null==document.documentMode||
10<=document.documentMode)Editor.prototype.editButtonLink=this.graphConfig.edit;EditorUi.prototype.updateActionStates=function(){};EditorUi.prototype.addBeforeUnloadListener=function(){};EditorUi.prototype.addChromelessClickHandler=function(){};Graph.prototype.shadowId="lightboxDropShadow";var d=new EditorUi(new Editor(!0),document.createElement("div"),!0);Graph.prototype.shadowId="dropShadow";d.refresh=function(){};mxEvent.addListener(b,"click",function(){d.destroy()});d.editor.editBlankUrl=this.editBlankUrl;
@ -3039,4 +3039,4 @@ new g,b.resizedAttached.add(c);else if(b.resizedAttached){b.resizedAttached.add(
b.appendChild(b.resizeSensor);"static"==l(b,"position")&&(b.style.position="relative");var d=b.resizeSensor.childNodes[0],e=d.childNodes[0],f=b.resizeSensor.childNodes[1],h=function(){e.style.width="100000px";e.style.height="100000px";d.scrollLeft=1E5;d.scrollTop=1E5;f.scrollLeft=1E5;f.scrollTop=1E5};h();var m=!1,n=function(){b.resizedAttached&&(m&&(b.resizedAttached.call(),m=!1),a(n))};a(n);var p,r,B,A,y=function(){if((B=b.offsetWidth)!=p||(A=b.offsetHeight)!=r)m=!0,p=B,r=A;h()},C=function(a,b,c){a.attachEvent?
a.attachEvent("on"+b,c):a.addEventListener(b,c)};C(d,"scroll",y);C(f,"scroll",y)}var r=function(){GraphViewer.resizeSensorEnabled&&d()},c=Object.prototype.toString.call(e),f="[object Array]"===c||"[object NodeList]"===c||"[object HTMLCollection]"===c||"undefined"!==typeof jQuery&&e instanceof jQuery||"undefined"!==typeof Elements&&e instanceof Elements;if(f)for(var c=0,h=e.length;c<h;c++)m(e[c],r);else m(e,r);this.detach=function(){if(f)for(var a=0,c=e.length;a<c;a++)b.detach(e[a]);else b.detach(e)}};
b.detach=function(a){a.resizeSensor&&(a.removeChild(a.resizeSensor),delete a.resizeSensor,delete a.resizedAttached)};window.ResizeSensor=b})();
(function(){Editor.initMath();GraphViewer.initCss();mxStencilRegistry.dynamicLoading=!1;if(null!=window.onDrawioViewerLoad)window.onDrawioViewerLoad();else GraphViewer.processElements()})();
(function(){Editor.initMath();GraphViewer.initCss();if(null!=window.onDrawioViewerLoad)window.onDrawioViewerLoad();else GraphViewer.processElements()})();