13.10.9 release

This commit is contained in:
David Benson [draw.io] 2020-12-04 13:13:18 +00:00
parent cc7c53044f
commit 45b2f079d4
15 changed files with 2030 additions and 319 deletions

View file

@ -1,3 +1,15 @@
04-DEC-2020: 13.10.9
- Hardens servlets
03-DEC-2020: 13.10.8
- Reverts UML 2.5 release
03-DEC-2020: 13.10.7
- Improves Lucidchart import
02-DEC-2020: 13.10.6
- Adds auto-crop, origin for visible layers [688]

View file

@ -1 +1 @@
13.10.6
13.10.9

View file

@ -219,6 +219,9 @@
<filelist dir="${basedir}" files="client.min.js,.tmp1.js"/>
</concat>
<loadfile property="version" srcFile="../../VERSION"/>
<replace file="${basedir}/base-viewer.min.js" token="@DRAWIO-VERSION@" value="${version}"/>
<echo file="${basedir}/.tmp2.js">
(function()
{
@ -329,7 +332,6 @@
<filelist dir="${basedir}" files="client.min.js,grapheditor.min.js,sidebar.min.js,.tmp1.js"/>
</concat>
<loadfile property="version" srcFile="../../VERSION"/>
<replace file="${basedir}/base.min.js" token="@DRAWIO-VERSION@" value="${version}"/>
<jscomp compilationLevel="simple" debug="false" forceRecompile="true" output="${war.dir}/js/extensions.min.js">

View file

@ -48,11 +48,7 @@ public class SaveServlet extends HttpServlet
}
/**
*
* @param request
* @param response
* @throws ServletException
* @throws IOException
* Validates the given filename.
*/
protected static String validateFilename(String filename)
{
@ -70,7 +66,7 @@ public class SaveServlet extends HttpServlet
if (filename.length() == 0)
{
filename = "export.xml";
filename = "export.txt";
}
else if (!filename.toLowerCase().endsWith(".svg") &&
!filename.toLowerCase().endsWith(".html") &&
@ -81,7 +77,7 @@ public class SaveServlet extends HttpServlet
!filename.toLowerCase().endsWith(".vsdx") &&
!filename.toLowerCase().endsWith(".txt"))
{
filename = filename + ".xml";
filename = filename + ".txt";
}
filename = Utils.encodeURIComponent(filename, "UTF-8");
@ -130,24 +126,15 @@ public class SaveServlet extends HttpServlet
&& (mime != null || filename != null))
{
response.setStatus(HttpServletResponse.SC_OK);
if (filename != null)
{
filename = validateFilename(filename);
response.setContentType("application/x-unknown");
response.setHeader("Content-Disposition",
"attachment; filename=\"" + filename
+ "\"; filename*=UTF-8''" + filename);
}
else if (mime != null)
{
response.setContentType(mime);
}
response.getOutputStream()
.write(mxBase64.decodeFast(URLDecoder.decode(xml,
Utils.CHARSET_FOR_URL_ENCODING)));
response.setContentType("application/octet-stream");
filename = validateFilename((filename != null) ?
filename : "export.txt");
response.setHeader("Content-Disposition",
"attachment; filename=\"" + filename +
"\"; filename*=UTF-8''" + filename);
response.getOutputStream().write(
mxBase64.decodeFast(URLDecoder.decode(xml,
Utils.CHARSET_FOR_URL_ENCODING)));
}
else if (xml != null)
{
@ -159,44 +146,31 @@ public class SaveServlet extends HttpServlet
format = "xml";
}
if (filename != null && filename.length() > 0
&& !filename.toLowerCase().endsWith(".svg")
&& !filename.toLowerCase().endsWith(".html")
&& !filename.toLowerCase().endsWith(".png")
&& !filename.toLowerCase().endsWith("." + format))
{
filename += "." + format;
}
response.setStatus(HttpServletResponse.SC_OK);
if (filename != null)
{
if (filename.length() > 0 &&
!filename.toLowerCase().endsWith(".svg") &&
!filename.toLowerCase().endsWith(".html") &&
!filename.toLowerCase().endsWith(".png") &&
!filename.toLowerCase().endsWith("." + format))
{
filename += "." + format;
}
filename = validateFilename(filename);
if (mime != null)
{
response.setContentType(mime);
}
else
{
response.setContentType("application/x-unknown");
}
response.setHeader("Content-Disposition",
"attachment; filename=\"" + filename
+ "\"; filename*=UTF-8''" + filename);
}
else if (mime != null && mime.equals("image/svg+xml"))
{
response.setContentType("image/svg+xml");
}
else
{
// Required to avoid download of file
response.setContentType("text/plain");
filename = "export.txt";
}
response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition",
"attachment; filename=\"" + filename +
"\"; filename*=UTF-8''" + filename);
OutputStream out = response.getOutputStream();
out.write(data);
out.close();

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View file

@ -9731,17 +9731,17 @@ this.table.clientWidth));b=Math.max(0,Math.min(b,e-this.table.clientHeight-48));
n.setAttribute("title",mxResources.get("stopDrawing"));n.style.marginTop="4px";mxEvent.addListener(n,"click",function(){f.freehand.stopDrawing()});a.appendChild(n);this.window=new mxWindow(mxResources.get("freehand"),a,d,c,b,g,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);f.addListener("freehandStateChanged",mxUtils.bind(this,function(){n.className="geBtn"+(f.freehand.isDrawing()?" gePrimaryBtn":"")}));this.window.addListener("show",
mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){f.freehand.isDrawing()&&f.freehand.stopDrawing()}));this.window.setLocation=function(a,b){var e=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;a=Math.max(0,Math.min(a,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.table.clientWidth));b=Math.max(0,Math.min(b,e-this.table.clientHeight-48));this.getX()==a&&this.getY()==
b||mxWindow.prototype.setLocation.apply(this,arguments)};var e=mxUtils.bind(this,function(){var a=this.window.getX(),b=this.window.getY();this.window.setLocation(a,b)});mxEvent.addListener(window,"resize",e);this.destroy=function(){mxEvent.removeListener(window,"resize",e);this.window.destroy()}},TagsWindow=function(a,d,c,b,g){var f=a.editor.graph,l="tags",n=document.createElement("div");n.style.userSelect="none";n.style.overflow="hidden";n.style.padding="10px";n.style.height="100%";var e=document.createElement("input");
e.setAttribute("placeholder",mxResources.get("allTags"));e.setAttribute("type","text");e.style.marginTop="4px";e.style.width="260px";e.style.fontSize="12px";e.style.borderRadius="4px";e.style.padding="6px";n.appendChild(e);if(!a.isOffline()||mxClient.IS_CHROMEAPP){e.style.width="240px";var k=a.menus.createHelpLink("https://desk.draw.io/support/solutions/articles/16000046966");k.firstChild.style.marginBottom="6px";k.style.marginLeft="6px";n.appendChild(k)}mxEvent.addListener(e,"dblclick",function(){var b=
new FilenameDialog(a,l,mxResources.get("ok"),mxUtils.bind(this,function(a){null!=a&&0<a.length&&(l=a)}),mxResources.get("enterPropertyName"));a.showDialog(b.container,300,80,!0,!0);b.init()});e.setAttribute("title",mxResources.get("doubleClickChangeProperty"));mxUtils.br(n);k=mxUtils.button(mxResources.get("hide"),function(){var a=f.getCellsForTags(e.value.split(" "),void 0,l,!0);f.setCellsVisible(a,!1)});k.setAttribute("title",mxResources.get("hide"));k.style.marginTop="8px";k.style.marginRight=
"4px";k.className="geBtn";n.appendChild(k);k=mxUtils.button(mxResources.get("show"),function(){var a=f.getCellsForTags(e.value.split(" "),void 0,l,!0);f.setCellsVisible(a,!0);if(f.isEnabled()){for(var b=[],c=0;c<a.length;c++)(f.model.isVertex(a[c])||f.model.isEdge(a[c]))&&b.push(a[c]);f.setSelectionCells(b)}else for(c=0;c<a.length;c++)f.highlightCell(a[c])});k.setAttribute("title",mxResources.get("show"));k.style.marginTop="8px";k.style.marginRight="4px";k.className="geBtn";n.appendChild(k);var m=
a.actions.get("tags"),k=mxUtils.button(mxResources.get("close"),function(){m.funct()});k.setAttribute("title",mxResources.get("close")+" (Enter/Esc)");k.style.marginTop="8px";k.className="geBtn gePrimaryBtn";n.appendChild(k);mxEvent.addListener(e,"keyup",function(a){13!=a.keyCode&&27!=a.keyCode||m.funct()});this.window=new mxWindow(mxResources.get("tags"),n,d,c,b,g,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",
mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(e.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?e.select():document.execCommand("selectAll",!1,null)):f.container.focus()}));this.window.setLocation=function(a,b){var e=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;a=Math.max(0,Math.min(a,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.table.clientWidth));b=
Math.max(0,Math.min(b,e-this.table.clientHeight-48));this.getX()==a&&this.getY()==b||mxWindow.prototype.setLocation.apply(this,arguments)};var p=mxUtils.bind(this,function(){var a=this.window.getX(),b=this.window.getY();this.window.setLocation(a,b)});mxEvent.addListener(window,"resize",p);this.destroy=function(){mxEvent.removeListener(window,"resize",p);this.window.destroy()}},AuthDialog=function(a,d,c,b){var g=document.createElement("div");g.style.textAlign="center";var f=document.createElement("p");
f.style.fontSize="16pt";f.style.padding="0px";f.style.margin="0px";f.style.color="gray";mxUtils.write(f,mxResources.get("authorizationRequired"));var l="Unknown",n=document.createElement("img");n.setAttribute("border","0");n.setAttribute("align","absmiddle");n.style.marginRight="10px";d==a.drive?(l=mxResources.get("googleDrive"),n.src=IMAGE_PATH+"/google-drive-logo-white.svg"):d==a.dropbox?(l=mxResources.get("dropbox"),n.src=IMAGE_PATH+"/dropbox-logo-white.svg"):d==a.oneDrive?(l=mxResources.get("oneDrive"),
n.src=IMAGE_PATH+"/onedrive-logo-white.svg"):d==a.gitHub?(l=mxResources.get("github"),n.src=IMAGE_PATH+"/github-logo-white.svg"):d==a.gitLab?(l=mxResources.get("gitlab"),n.src=IMAGE_PATH+"/gitlab-logo.svg",n.style.width="32px"):d==a.trello&&(l=mxResources.get("trello"),n.src=IMAGE_PATH+"/trello-logo-white.svg");a=document.createElement("p");mxUtils.write(a,mxResources.get("authorizeThisAppIn",[l]));var e=document.createElement("input");e.setAttribute("type","checkbox");l=mxUtils.button(mxResources.get("authorize"),
function(){b(e.checked)});l.insertBefore(n,l.firstChild);l.style.marginTop="6px";l.className="geBigButton";l.style.fontSize="18px";l.style.padding="14px";g.appendChild(f);g.appendChild(a);g.appendChild(l);c&&(c=document.createElement("p"),c.style.marginTop="20px",c.appendChild(e),f=document.createElement("span"),mxUtils.write(f," "+mxResources.get("rememberMe")),c.appendChild(f),g.appendChild(c),e.checked=!0,e.defaultChecked=!0,mxEvent.addListener(f,"click",function(a){e.checked=!e.checked;mxEvent.consume(a)}));
this.container=g},MoreShapesDialog=function(a,d,c){c=null!=c?c:a.sidebar.entries;var b=document.createElement("div"),g=[];if(null!=a.sidebar.customEntries)for(var f=0;f<a.sidebar.customEntries.length;f++){for(var l=a.sidebar.customEntries[f],n={title:a.getResource(l.title),entries:[]},e=0;e<l.entries.length;e++){var k=l.entries[e];n.entries.push({id:k.id,title:a.getResource(k.title),desc:a.getResource(k.desc),image:k.preview})}g.push(n)}for(f=0;f<c.length;f++)if(null==a.sidebar.enabledLibraries)g.push(c[f]);
else{n={title:c[f].title,entries:[]};for(e=0;e<c[f].entries.length;e++)0<=mxUtils.indexOf(a.sidebar.enabledLibraries,c[f].entries[e].id)&&n.entries.push(c[f].entries[e]);0<n.entries.length&&g.push(n)}c=g;if(d){e=mxUtils.bind(this,function(b){for(var e=0;e<b.length;e++)(function(b){var c=q.cloneNode(!1);c.style.fontWeight="bold";c.style.backgroundColor="dark"==uiTheme?"#505759":"#e5e5e5";c.style.padding="6px 0px 6px 20px";mxUtils.write(c,b.title);m.appendChild(c);for(var d=0;d<b.entries.length;d++)(function(b){var c=
e.setAttribute("placeholder",mxResources.get("allTags"));e.setAttribute("type","text");e.style.marginTop="4px";e.style.width="260px";e.style.fontSize="12px";e.style.borderRadius="4px";e.style.padding="6px";n.appendChild(e);if(!a.isOffline()||mxClient.IS_CHROMEAPP){e.style.width="240px";var k=a.menus.createHelpLink("https://www.diagrams.net/doc/faq/tags-plugin");k.firstChild.style.marginBottom="6px";k.style.marginLeft="6px";n.appendChild(k)}mxEvent.addListener(e,"dblclick",function(){var b=new FilenameDialog(a,
l,mxResources.get("ok"),mxUtils.bind(this,function(a){null!=a&&0<a.length&&(l=a)}),mxResources.get("enterPropertyName"));a.showDialog(b.container,300,80,!0,!0);b.init()});e.setAttribute("title",mxResources.get("doubleClickChangeProperty"));mxUtils.br(n);k=mxUtils.button(mxResources.get("hide"),function(){var a=f.getCellsForTags(e.value.split(" "),void 0,l,!0);f.setCellsVisible(a,!1)});k.setAttribute("title",mxResources.get("hide"));k.style.marginTop="8px";k.style.marginRight="4px";k.className="geBtn";
n.appendChild(k);k=mxUtils.button(mxResources.get("show"),function(){var a=f.getCellsForTags(e.value.split(" "),void 0,l,!0);f.setCellsVisible(a,!0);if(f.isEnabled()){for(var b=[],c=0;c<a.length;c++)(f.model.isVertex(a[c])||f.model.isEdge(a[c]))&&b.push(a[c]);f.setSelectionCells(b)}else for(c=0;c<a.length;c++)f.highlightCell(a[c])});k.setAttribute("title",mxResources.get("show"));k.style.marginTop="8px";k.style.marginRight="4px";k.className="geBtn";n.appendChild(k);var m=a.actions.get("tags"),k=mxUtils.button(mxResources.get("close"),
function(){m.funct()});k.setAttribute("title",mxResources.get("close")+" (Enter/Esc)");k.style.marginTop="8px";k.className="geBtn gePrimaryBtn";n.appendChild(k);mxEvent.addListener(e,"keyup",function(a){13!=a.keyCode&&27!=a.keyCode||m.funct()});this.window=new mxWindow(mxResources.get("tags"),n,d,c,b,g,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();
this.window.isVisible()?(e.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?e.select():document.execCommand("selectAll",!1,null)):f.container.focus()}));this.window.setLocation=function(a,b){var e=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight;a=Math.max(0,Math.min(a,(window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth)-this.table.clientWidth));b=Math.max(0,Math.min(b,e-this.table.clientHeight-
48));this.getX()==a&&this.getY()==b||mxWindow.prototype.setLocation.apply(this,arguments)};var p=mxUtils.bind(this,function(){var a=this.window.getX(),b=this.window.getY();this.window.setLocation(a,b)});mxEvent.addListener(window,"resize",p);this.destroy=function(){mxEvent.removeListener(window,"resize",p);this.window.destroy()}},AuthDialog=function(a,d,c,b){var g=document.createElement("div");g.style.textAlign="center";var f=document.createElement("p");f.style.fontSize="16pt";f.style.padding="0px";
f.style.margin="0px";f.style.color="gray";mxUtils.write(f,mxResources.get("authorizationRequired"));var l="Unknown",n=document.createElement("img");n.setAttribute("border","0");n.setAttribute("align","absmiddle");n.style.marginRight="10px";d==a.drive?(l=mxResources.get("googleDrive"),n.src=IMAGE_PATH+"/google-drive-logo-white.svg"):d==a.dropbox?(l=mxResources.get("dropbox"),n.src=IMAGE_PATH+"/dropbox-logo-white.svg"):d==a.oneDrive?(l=mxResources.get("oneDrive"),n.src=IMAGE_PATH+"/onedrive-logo-white.svg"):
d==a.gitHub?(l=mxResources.get("github"),n.src=IMAGE_PATH+"/github-logo-white.svg"):d==a.gitLab?(l=mxResources.get("gitlab"),n.src=IMAGE_PATH+"/gitlab-logo.svg",n.style.width="32px"):d==a.trello&&(l=mxResources.get("trello"),n.src=IMAGE_PATH+"/trello-logo-white.svg");a=document.createElement("p");mxUtils.write(a,mxResources.get("authorizeThisAppIn",[l]));var e=document.createElement("input");e.setAttribute("type","checkbox");l=mxUtils.button(mxResources.get("authorize"),function(){b(e.checked)});
l.insertBefore(n,l.firstChild);l.style.marginTop="6px";l.className="geBigButton";l.style.fontSize="18px";l.style.padding="14px";g.appendChild(f);g.appendChild(a);g.appendChild(l);c&&(c=document.createElement("p"),c.style.marginTop="20px",c.appendChild(e),f=document.createElement("span"),mxUtils.write(f," "+mxResources.get("rememberMe")),c.appendChild(f),g.appendChild(c),e.checked=!0,e.defaultChecked=!0,mxEvent.addListener(f,"click",function(a){e.checked=!e.checked;mxEvent.consume(a)}));this.container=
g},MoreShapesDialog=function(a,d,c){c=null!=c?c:a.sidebar.entries;var b=document.createElement("div"),g=[];if(null!=a.sidebar.customEntries)for(var f=0;f<a.sidebar.customEntries.length;f++){for(var l=a.sidebar.customEntries[f],n={title:a.getResource(l.title),entries:[]},e=0;e<l.entries.length;e++){var k=l.entries[e];n.entries.push({id:k.id,title:a.getResource(k.title),desc:a.getResource(k.desc),image:k.preview})}g.push(n)}for(f=0;f<c.length;f++)if(null==a.sidebar.enabledLibraries)g.push(c[f]);else{n=
{title:c[f].title,entries:[]};for(e=0;e<c[f].entries.length;e++)0<=mxUtils.indexOf(a.sidebar.enabledLibraries,c[f].entries[e].id)&&n.entries.push(c[f].entries[e]);0<n.entries.length&&g.push(n)}c=g;if(d){e=mxUtils.bind(this,function(b){for(var e=0;e<b.length;e++)(function(b){var c=q.cloneNode(!1);c.style.fontWeight="bold";c.style.backgroundColor="dark"==uiTheme?"#505759":"#e5e5e5";c.style.padding="6px 0px 6px 20px";mxUtils.write(c,b.title);m.appendChild(c);for(var d=0;d<b.entries.length;d++)(function(b){var c=
q.cloneNode(!1);c.style.cursor="pointer";c.style.padding="4px 0px 4px 20px";c.style.whiteSpace="nowrap";c.style.overflow="hidden";c.style.textOverflow="ellipsis";c.setAttribute("title",b.title+" ("+b.id+")");var k=document.createElement("input");k.setAttribute("type","checkbox");k.checked=a.sidebar.isEntryVisible(b.id);k.defaultChecked=k.checked;c.appendChild(k);mxUtils.write(c," "+b.title);m.appendChild(c);var f=function(a){if(null==a||"INPUT"!=mxEvent.getSource(a).nodeName){p.style.textAlign="center";
p.style.padding="0px";p.style.color="";p.innerHTML="";if(null!=b.desc){var e=document.createElement("pre");e.style.boxSizing="border-box";e.style.fontFamily="inherit";e.style.margin="20px";e.style.right="0px";e.style.textAlign="left";mxUtils.write(e,b.desc);p.appendChild(e)}null!=b.imageCallback?b.imageCallback(p):null!=b.image?p.innerHTML+='<img border="0" src="'+b.image+'"/>':null==b.desc&&(p.style.padding="20px",p.style.color="rgb(179, 179, 179)",mxUtils.write(p,mxResources.get("noPreview")));
null!=u&&(u.style.backgroundColor="");u=c;u.style.backgroundColor="dark"==uiTheme?"#000000":"#ebf2f9";null!=a&&mxEvent.consume(a)}};mxEvent.addListener(c,"click",f);mxEvent.addListener(c,"dblclick",function(a){k.checked=!k.checked;mxEvent.consume(a)});t.push(function(){return k.checked?b.id:null});0==e&&0==d&&f()})(b.entries[d])})(b[e])});f=document.createElement("div");f.className="geDialogTitle";mxUtils.write(f,mxResources.get("shapes"));f.style.position="absolute";f.style.top="0px";f.style.left=
@ -9966,7 +9966,7 @@ f,C));a<g;a+=C)for(var e=b;e<l;e+=C)q.drawImage(N,a/f,e/f);m()}catch(ma){null!=d
function(a){try{null!=a&&this.addFontCss(e,a),this.loadFonts(m)}catch(ia){null!=d&&d(ia)}}))}catch(ha){null!=d&&d(ha)}}),e,l)}catch(ca){null!=d&&d(ca)}};Editor.crcTable=[];for(var g=0;256>g;g++)for(var f=g,l=0;8>l;l++)f=1==(f&1)?3988292384^f>>>1:f>>>1,Editor.crcTable[g]=f;Editor.updateCRC=function(a,b,e,c){for(var d=0;d<c;d++)a=Editor.crcTable[(a^b.charCodeAt(e+d))&255]^a>>>8;return a};Editor.crc32=function(a){for(var b=-1,e=0;e<a.length;e++)b=b>>>8^Editor.crcTable[(b^a.charCodeAt(e))&255];return(b^
-1)>>>0};Editor.writeGraphModelToPng=function(a,b,e,c,d){function k(a,b){var e=p;p+=b;return a.substring(e,p)}function m(a){a=k(a,4);return a.charCodeAt(3)+(a.charCodeAt(2)<<8)+(a.charCodeAt(1)<<16)+(a.charCodeAt(0)<<24)}function f(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}a=a.substring(a.indexOf(",")+1);a=window.atob?atob(a):Base64.decode(a,!0);var p=0;if(k(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=d&&d();else if(k(a,4),"IHDR"!=k(a,4))null!=
d&&d();else{k(a,17);d=a.substring(0,p);do{var g=m(a);if("IDAT"==k(a,4)){d=a.substring(0,p-8);"pHYs"==b&&"dpi"==e?(e=Math.round(c/.0254),e=f(e)+f(e)+String.fromCharCode(1)):e=e+String.fromCharCode(0)+("zTXt"==b?String.fromCharCode(0):"")+c;c=4294967295;c=Editor.updateCRC(c,b,0,4);c=Editor.updateCRC(c,e,0,e.length);d+=f(e.length)+b+e+f(c^4294967295);d+=a.substring(p-8,a.length);break}d+=a.substring(p-8,p-4+g);k(a,g);k(a,4)}while(g);return"data:image/png;base64,"+(window.btoa?btoa(d):Base64.encode(d,
!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://desk.draw.io/support/solutions/articles/16000091426";var n=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(a,b){n.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var e=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){e.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=
!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.diagrams.net/doc/faq/save-file-formats";var n=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(a,b){n.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var e=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){e.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=
function(a,b){var e=null;null!=a.editor.graph.getModel().getParent(b)?e=b.getId():null!=a.currentPage&&(e=a.currentPage.getId());return e});if(null!=window.StyleFormatPanel){var k=Format.prototype.init;Format.prototype.init=function(){k.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var m=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?m.apply(this,arguments):
this.clear()};DiagramFormatPanel.prototype.isShadowOptionVisible=function(){var a=this.editorUi.getCurrentFile();return"1"==urlParams.embed||null!=a&&a.isEditable()};DiagramFormatPanel.prototype.isMathOptionVisible=function(a){return!1};var p=DiagramFormatPanel.prototype.addView;DiagramFormatPanel.prototype.addView=function(a){a=p.apply(this,arguments);this.editorUi.getCurrentFile();if(mxClient.IS_SVG&&this.isShadowOptionVisible()){var b=this.editorUi,e=b.editor.graph,c=this.createOption(mxResources.get("shadow"),
function(){return e.shadowVisible},function(a){var c=new ChangePageSetup(b);c.ignoreColor=!0;c.ignoreImage=!0;c.shadowVisible=a;e.model.execute(c)},{install:function(a){this.listener=function(){a(e.shadowVisible)};b.addListener("shadowVisibleChanged",this.listener)},destroy:function(){b.removeListener(this.listener)}});Editor.shadowOptionEnabled||(c.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(c,60));a.appendChild(c)}return a};var u=DiagramFormatPanel.prototype.addOptions;
@ -10092,7 +10092,7 @@ g=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});g.classNa
(this.page.viewState.pageFormat=this.format),null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled),null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)):(I.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),
this.shadowVisible=!this.shadowVisible))};Editor.prototype.useCanvasForExport=!1;try{var J=document.createElement("canvas"),F=new Image;F.onload=function(){try{J.getContext("2d").drawImage(F,0,0);var a=J.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=a&&6<a.length}catch(M){}};F.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(L){}})();
(function(){var a=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);a.beforeDecode=function(a,c,b){b.ui=a.ui;return c};a.afterDecode=function(a,c,b){b.previousColor=b.color;b.previousImage=b.image;b.previousFormat=b.format;null!=b.foldingEnabled&&(b.foldingEnabled=!b.foldingEnabled);null!=b.mathEnabled&&(b.mathEnabled=!b.mathEnabled);null!=b.shadowVisible&&(b.shadowVisible=!b.shadowVisible);return b};mxCodecRegistry.register(a)})();
(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);a.beforeDecode=function(a,c,b){b.ui=a.ui;return c};mxCodecRegistry.register(a)})();(function(){EditorUi.VERSION="13.10.6";EditorUi.compactUi="atlas"!=uiTheme;mxGraphView.prototype.defaultDarkGridColor="#6e6e6e";"dark"==uiTheme&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;
(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);a.beforeDecode=function(a,c,b){b.ui=a.ui;return c};mxCodecRegistry.register(a)})();(function(){EditorUi.VERSION="13.10.9";EditorUi.compactUi="atlas"!=uiTheme;mxGraphView.prototype.defaultDarkGridColor="#6e6e6e";"dark"==uiTheme&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;
EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl="1"==urlParams.dev?"/cache":window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;
EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://desk.draw.io/support/solutions/articles/16000042367";EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},
gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};EditorUi.logError=function(a,b,c,d,f,g,l){g=null!=g?g:0<=a.indexOf("NetworkError")||0<=a.indexOf("SecurityError")||0<=a.indexOf("NS_ERROR_FAILURE")||0<=a.indexOf("out of memory")?"CONFIG":"SEVERE";if(EditorUi.enableLogging&&"1"!=urlParams.dev)try{if(a!=EditorUi.lastErrorMessage&&(null==a||null==b||-1==a.indexOf("Script error")&&
@ -10239,7 +10239,7 @@ k.appendChild(g);mxUtils.br(k);k.appendChild(m);g=document.createElement("span")
f.setAttribute("checked","checked");null==c&&m.setAttribute("disabled","disabled");e.appendChild(k);var p=this.addLinkSection(e),n=this.addCheckbox(e,mxResources.get("zoom"),!0,null,!0);mxUtils.write(e,":");var A=document.createElement("input");A.setAttribute("type","text");A.style.marginRight="16px";A.style.width="60px";A.style.marginLeft="4px";A.style.marginRight="12px";A.value="100%";e.appendChild(A);var C=this.addCheckbox(e,mxResources.get("fit"),!0),k=null!=this.pages&&1<this.pages.length,D=
D=this.addCheckbox(e,mxResources.get("allPages"),k,!k),E=this.addCheckbox(e,mxResources.get("layers"),!0),H=this.addCheckbox(e,mxResources.get("lightbox"),!0),G=this.addEditButton(e,H),I=G.getEditInput();I.style.marginBottom="16px";mxEvent.addListener(H,"change",function(){H.checked?I.removeAttribute("disabled"):I.setAttribute("disabled","disabled");I.checked&&H.checked?G.getEditSelect().removeAttribute("disabled"):G.getEditSelect().setAttribute("disabled","disabled")});a=new CustomDialog(this,e,
mxUtils.bind(this,function(){d(m.checked?c:null,n.checked,A.value,p.getTarget(),p.getColor(),C.checked,D.checked,E.checked,H.checked,G.getLink())}),null,a,b);this.showDialog(a.container,340,384,!0,!0);f.focus()};EditorUi.prototype.showPublishLinkDialog=function(a,b,c,d,f,g){var e=document.createElement("div");e.style.whiteSpace="nowrap";var k=document.createElement("h3");mxUtils.write(k,a||mxResources.get("link"));k.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";e.appendChild(k);
var m=this.getCurrentFile(),k="https://desk.draw.io/support/solutions/articles/16000051941";a=0;if(null!=m&&m.constructor==window.DriveFile&&!b){a=80;var k="https://desk.draw.io/support/solutions/articles/16000039384",l=document.createElement("div");l.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var p=document.createElement("div");p.style.whiteSpace="normal";mxUtils.write(p,mxResources.get("linkAccountRequired"));l.appendChild(p);
var m=this.getCurrentFile(),k="https://www.diagrams.net/doc/faq/publish-diagram-as-link";a=0;if(null!=m&&m.constructor==window.DriveFile&&!b){a=80;var k="https://desk.draw.io/support/solutions/articles/16000039384",l=document.createElement("div");l.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var p=document.createElement("div");p.style.whiteSpace="normal";mxUtils.write(p,mxResources.get("linkAccountRequired"));l.appendChild(p);
p=mxUtils.button(mxResources.get("share"),mxUtils.bind(this,function(){this.drive.showPermissions(m.getId())}));p.style.marginTop="12px";p.className="geBtn";l.appendChild(p);e.appendChild(l);p=document.createElement("a");p.style.paddingLeft="12px";p.style.color="gray";p.style.fontSize="11px";p.style.cursor="pointer";mxUtils.write(p,mxResources.get("check"));l.appendChild(p);mxEvent.addListener(p,"click",mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&this.getPublicUrl(this.getCurrentFile(),
mxUtils.bind(this,function(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 n=null,u=null;if(null!=c||null!=d)a+=30,mxUtils.write(e,mxResources.get("width")+":"),n=document.createElement("input"),n.setAttribute("type","text"),n.style.marginRight="16px",n.style.width="50px",n.style.marginLeft="6px",n.style.marginRight="16px",n.style.marginBottom="10px",
n.value="100%",e.appendChild(n),mxUtils.write(e,mxResources.get("height")+":"),u=document.createElement("input"),u.setAttribute("type","text"),u.style.width="50px",u.style.marginLeft="6px",u.style.marginBottom="10px",u.value=d+"px",e.appendChild(u),mxUtils.br(e);var t=this.addLinkSection(e,g);c=null!=this.pages&&1<this.pages.length;var D=null;if(null==m||m.constructor!=window.DriveFile||b)D=this.addCheckbox(e,mxResources.get("allPages"),c,!c);var E=this.addCheckbox(e,mxResources.get("lightbox"),!0,
@ -10323,7 +10323,7 @@ var a=this,b=this.editor.graph;"dark"==uiTheme&&(b.view.defaultGridColor=mxGraph
else{b.setCellStyles("image",a.convertDataUri(d),[c]);var m=b.model.getGeometry(c);null!=m&&(m=m.clone(),m.width=g,m.height=k,b.cellsResized([c],[m],!1))}b.setAttributeForCell(c,"plantUmlData",JSON.stringify({data:e,format:f.format}))}finally{b.getModel().endUpdate()}},function(b){a.handleError(b)})},null,null,400,220);a.showDialog(e.container,420,300,!0,!0);e.init()};b.cellEditor.editMermaidData=function(c,e,d){var f=JSON.parse(d);e=new TextareaDialog(a,mxResources.get("mermaid")+":",f.data,function(e){null!=
e&&a.spinner.spin(document.body,mxResources.get("inserting"))&&a.generateMermaidImage(e,f.config,function(d,g,k){a.spinner.stop();b.getModel().beginUpdate();try{b.setCellStyles("image",d,[c]);var m=b.model.getGeometry(c);null!=m&&(m=m.clone(),m.width=Math.max(m.width,g),m.height=Math.max(m.height,k),b.cellsResized([c],[m],!1));b.setAttributeForCell(c,"mermaidData",JSON.stringify({data:e,config:f.config},null,2))}finally{b.getModel().endUpdate()}},function(b){a.handleError(b)})},null,null,400,220);
a.showDialog(e.container,420,300,!0,!0);e.init()};var c=b.cellEditor.startEditing;b.cellEditor.startEditing=function(e,d){try{var f=this.graph.getAttributeForCell(e,"plantUmlData");if(null!=f)this.editPlantUmlData(e,d,f);else if(f=this.graph.getAttributeForCell(e,"mermaidData"),null!=f)this.editMermaidData(e,d,f);else{var g=b.getCellStyle(e);"1"==mxUtils.getValue(g,"metaEdit","0")?a.showDataDialog(e):c.apply(this,arguments)}}catch(H){a.handleError(H)}};b.getLinkTitle=function(b){return a.getLinkTitle(b)};
b.customLinkClicked=function(b){var c=!1;try{a.handleCustomLink(b),c=!0}catch(D){a.handleError(D)}return c};var d=this.clearDefaultStyle;this.clearDefaultStyle=function(){d.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://desk.draw.io/support/solutions/articles/16000051979");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";
b.customLinkClicked=function(b){var c=!1;try{a.handleCustomLink(b),c=!0}catch(D){a.handleError(D)}return c};var d=this.clearDefaultStyle;this.clearDefaultStyle=function(){d.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.diagrams.net/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";
var f=a.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(a){a=null!=a?a:"";"1"==urlParams.dev&&(a+=(0<a.length?"&":"?")+"dev=1");return f.apply(this,arguments)};var l=b.addClickHandler;b.addClickHandler=function(a,c,e){var d=c;c=function(a,c){if(null==c){var e=mxEvent.getSource(a);"a"==e.nodeName.toLowerCase()&&(c=e.getAttribute("href"))}null!=c&&b.isCustomLink(c)&&(mxEvent.isTouchEvent(a)||!mxEvent.isPopupTrigger(a))&&b.customLinkClicked(c)&&mxEvent.consume(a);null!=d&&d(a,c)};l.call(this,
a,c,e)};g.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(b.view.canvas.ownerSVGElement,null,!0);a.actions.get("print").funct=function(){a.showDialog((new PrintDialog(a)).container,360,null!=a.pages&&1<a.pages.length?450:370,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var n=b.getExportVariables;b.getExportVariables=function(){var b=n.apply(this,arguments),c=a.getCurrentFile();null!=c&&(b.filename=c.getTitle());b.pagecount=null!=a.pages?a.pages.length:1;b.page=
null!=a.currentPage?a.currentPage.getName():"";b.pagenumber=null!=a.pages&&null!=a.currentPage?mxUtils.indexOf(a.pages,a.currentPage)+1:1;return b};var v=b.getGlobalVariable;b.getGlobalVariable=function(b){var c=a.getCurrentFile();return"filename"==b&&null!=c?c.getTitle():"page"==b&&null!=a.currentPage?a.currentPage.getName():"pagenumber"==b?null!=a.currentPage&&null!=a.pages?mxUtils.indexOf(a.pages,a.currentPage)+1:1:"pagecount"==b?null!=a.pages?a.pages.length:1:v.apply(this,arguments)};var y=b.labelLinkClicked;

View file

@ -6583,7 +6583,7 @@ var TagsWindow = function(editorUi, x, y, w, h)
if (!editorUi.isOffline() || mxClient.IS_CHROMEAPP)
{
searchInput.style.width = '240px';
var elt = editorUi.menus.createHelpLink('https://desk.draw.io/support/solutions/articles/16000046966');
var elt = editorUi.menus.createHelpLink('https://www.diagrams.net/doc/faq/tags-plugin');
elt.firstChild.style.marginBottom = '6px';
elt.style.marginLeft = '6px';
div.appendChild(elt);

View file

@ -3474,7 +3474,7 @@
*/
if (window.ColorDialog)
{
FilenameDialog.filenameHelpLink = 'https://desk.draw.io/support/solutions/articles/16000091426';
FilenameDialog.filenameHelpLink = 'https://www.diagrams.net/doc/faq/save-file-formats';
var colorDialogAddRecentColor = ColorDialog.addRecentColor;

View file

@ -5478,7 +5478,7 @@
div.appendChild(hd);
var file = this.getCurrentFile();
var helpLink = 'https://desk.draw.io/support/solutions/articles/16000051941';
var helpLink = 'https://www.diagrams.net/doc/faq/publish-diagram-as-link';
var dy = 0;
if (file != null && file.constructor == window.DriveFile && !hideShare)
@ -8874,7 +8874,7 @@
// Sets help link for placeholders
if (!this.isOffline() && typeof window.EditDataDialog !== 'undefined')
{
EditDataDialog.placeholderHelpLink = 'https://desk.draw.io/support/solutions/articles/16000051979';
EditDataDialog.placeholderHelpLink = 'https://www.diagrams.net/doc/faq/predefined-placeholders';
}
if (/viewer\.diagrams\.net$/.test(window.location.hostname) ||

View file

@ -298,7 +298,7 @@ LucidImporter = {};
//BPMN 2.0
'BPMNActivity' : cs,
'BPMNEvent' : cs,
'BPMNChoreography' : cs, //TODO
// 'BPMNChoreography' : cs, //TODO
'BPMNConversation' : cs,
'BPMNGateway' : cs,
'BPMNData' : cs,
@ -351,7 +351,7 @@ LucidImporter = {};
//Value Stream Mapping
'VSMKaizenBurstBlock' : s + 'lean_mapping.kaizen_lightening_burst',
'VSMOperatorBlock' : s + 'lean_mapping.operator;flipV=1',
'VSMTimelineBlock' : cs, //TODO
// 'VSMTimelineBlock' : cs, //TODO
'VSMQualityProblemBlock' : s + 'lean_mapping.quality_problem',
//Kanban
'VSMProductionKanbanSingleBlock' : 'shape=card;size=18;flipH=1;',
@ -2149,7 +2149,7 @@ LucidImporter = {};
'KubeletLabeledKub19' : kupIcon + 'kubelet',
'SchedLabeledKub19' : kupIcon + 'sched',
//Equation
'Equation' : cs, //TODO
// 'Equation' : cs, //TODO
//Walls
'fpWall' : '',
//Rooms
@ -2481,34 +2481,34 @@ LucidImporter = {};
//iPhone Elements
'iOS7StatusBariPhone' : s + 'ios7ui.appBar',
// 'iOS7NavBariPhone' NA
'iOS7TabsiPhone' : cs, //TODO
'iOS7iPhoneActionSheet' : cs, //TODO
// 'iOS7TabsiPhone' : cs, //TODO
// 'iOS7iPhoneActionSheet' : cs, //TODO
'iOS7iPhoneKeyboard' : s + 'ios7.misc.keyboard_(letters)',
'iOS7TableView' : cs, //TODO
// 'iOS7TableView' : cs, //TODO
//iPad Elements
'iOS7StatusBariPad' : s + 'ios7ui.appBar',
'iOS7NavBariPad' : cs, //TODO
'iOS7TabsiPad' : cs, //TODO
'iOS7iPadActionSheet' : cs, //TODO
// 'iOS7NavBariPad' : cs, //TODO
// 'iOS7TabsiPad' : cs, //TODO
// 'iOS7iPadActionSheet' : cs, //TODO
'iOS7iPadKeyboard' : s + 'ios7.misc.keyboard_(letters)',
// 'iOS7SplitView'
// 'iOS7iPadPopover'
//Common Elements
'iOS7AlertDialog' : cs, //TODO
// 'iOS7AlertDialog' : cs, //TODO
'iOS7ProgressBar' : s + 'ios7ui.downloadBar', //TODO
'iOS7Slider' : s + 'ios7ui.searchBox', //TODO
'iOS7SearchBar' : s + 'ios7ui.searchBox',
'iOS7Button' : '',
'iOS7TextField' : '',
'iOS7TextView' : '',
'iOS7SegmentedControl' : cs, //TODO
// 'iOS7SegmentedControl' : cs, //TODO
'iOS7Toggle' : s + 'ios7ui.onOffButton;buttonState=on;strokeColor=#38D145;strokeColor2=#aaaaaa;fillColor=#38D145;fillColor2=#ffffff', //TODO
'iOS7Stepper' : s + 'ios7.misc.adjust;fillColor=#ffffff;gradientColor=none',
'iOS7PageControls' : s + 'ios7ui.pageControl;fillColor=#666666;strokeColor=#bbbbbb', //TODO
'iOS7Block' : '',
'iOS7DatePicker' : cs, //TODO
'iOS7TimePicker' : cs, //TODO
'iOS7CountdownPicker' : cs, //TODO
// 'iOS7DatePicker' : cs, //TODO
// 'iOS7TimePicker' : cs, //TODO
// 'iOS7CountdownPicker' : cs, //TODO
//iOS Icons
'iOS7IconArrow left' : s + 'ios7.misc.left',
'iOS7IconArrow' : s + 'ios7.misc.right',
@ -2653,7 +2653,7 @@ LucidImporter = {};
'UI2AtoZBlock' : cs,
'UI2PaginationBlock' : cs,
'UI2ContextMenuBlock' : cs,
'UI2TreePaneBlock' : cs, //TODO
// 'UI2TreePaneBlock' : cs, //TODO
'UI2PlaybackControlsBlock' : s + 'mockup.misc.playbackControls;fillColor=#ffffff;strokeColor=#999999;fillColor2=#99ddff;strokeColor2=none;fillColor3=#ffffff;strokeColor3=none',
'Image_ui_formatting_toolbar' : s + 'mockup.menus_and_buttons.font_style_selector_2',
//UI Misc
@ -2673,11 +2673,11 @@ LucidImporter = {};
// 'Image_ipad_bar_black' : '',
// 'Image_ipad_safari_top' NA
'Image_ipad_search' : s + 'mockup.forms.searchBox;mainText=;flipH=1',
'Image_ipad_alert_dialog' : cs, //TODO
'Image_ipad_dialog' : cs, //TODO
// 'Image_ipad_alert_dialog' : cs, //TODO
// 'Image_ipad_dialog' : cs, //TODO
'Image_ipad_popover' : s + 'ios.iOption;barPos=50;pointerPos=top;buttonText=',
'Image_ipad_table' : cs, //TODO
'Image_ipad_vtab' : cs, //TODO
// 'Image_ipad_table' : cs, //TODO
// 'Image_ipad_vtab' : cs, //TODO
//iOS 6 iPad Controls
'Image_ipad_button_black' : '',
'Image_ipad_button_blue' : '',
@ -2691,9 +2691,9 @@ LucidImporter = {};
'Image_ipad_prev_next' : s + 'ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff',
'Image_ipad_keyboard_portrait' : s + 'ios.iKeybLett',
'Image_ipad_keyboard_landscape' : s + 'ios.iKeybLett',
'Image_ipad_large_tabbed_button' : cs, //TODO
'Image_ipad_sort_button' : cs, //TODO
'Image_ipad_tab_bar' : cs, //TODO
// 'Image_ipad_large_tabbed_button' : cs, //TODO
// 'Image_ipad_sort_button' : cs, //TODO
// 'Image_ipad_tab_bar' : cs, //TODO
'Image_ipad_slider' : s + 'ios.iSlider;barPos=20',
// 'Image_ipad_switch_off'
//iOS 6 iPad Icons
@ -2724,17 +2724,17 @@ LucidImporter = {};
'Image_iphone_bar_semi_trans_black' : '',
'Image_iphone_bar_semi_trans_blue' : '',
'Image_iphone_search' : s + 'mockup.forms.searchBox;mainText=;flipH=1',
'Image_iphone_table' : cs, //TODO
'Image_iphone_table_w_buttons' : cs, //TODO
'Image_iphone_table_w_icons' : cs, //TODO
'Image_iphone_list' : cs, //TODO
// 'Image_iphone_table' : cs, //TODO
// 'Image_iphone_table_w_buttons' : cs, //TODO
// 'Image_iphone_table_w_icons' : cs, //TODO
// 'Image_iphone_list' : cs, //TODO
// 'Image_iphone_safari_top' NA
// 'Image_iphone_safari_bottom' NA
'Image_iphone_gray_grad_list' : '', //TODO
// 'Image_iphone_gray_grad_list' : '', //TODO
// 'Image_iphone_alert_bar' NA
// 'Image_iphone_alert_dialog' : cs, //TODO
'Image_iphone_dialog' : cs, //TODO
'Image_iphone_scroll_pane' : cs, //TODO
// 'Image_iphone_dialog' : cs, //TODO
// 'Image_iphone_scroll_pane' : cs, //TODO
'Image_iphone_alpha_list' : s + 'ios.iAlphaList',
//iOS 6 iPhone Controls
'Image_iphone_button_black' : '',
@ -2757,11 +2757,11 @@ LucidImporter = {};
'Image_iphone_keyboard_button_blue' : '',
'Image_iphone_keyboard_letters' : s + 'ios.iKeybLett',
'Image_iphone_keyboard_landscape' : s + 'ios.iKeybLett',
'Image_iphone_large_tabbed_button' : cs, //TODO
'Image_iphone_sort_button' : cs, //TODO
'Image_iphone_tab_bar' : cs, //TODO
'Image_iphone_picker_multi' : cs, //TODO
'Image_iphone_picker_web' : cs, //TODO
// 'Image_iphone_large_tabbed_button' : cs, //TODO
// 'Image_iphone_sort_button' : cs, //TODO
// 'Image_iphone_tab_bar' : cs, //TODO
// 'Image_iphone_picker_multi' : cs, //TODO
// 'Image_iphone_picker_web' : cs, //TODO
//iOS 6 iPhone Icons
'Image_iphone_add_icon_blue' : s + 'ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff',
'Image_iphone_add_icon_green' : s + 'ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff',
@ -2775,7 +2775,7 @@ LucidImporter = {};
'Image_iphone_pin_green' : s + 'ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600',
'Image_iphone_pin_red' : s + 'ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000',
'Image_iphone_radio_off' : 'ellipse', //TODO
'Image_iphone_checkbox_off' : '', //TODO
// 'Image_iphone_checkbox_off' : '', //TODO
'Image_iphone_indicator' : 'fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff',
'Image_iphone_thread_count' : '',
@ -3978,7 +3978,7 @@ LucidImporter = {};
str += '">';
openBlockTags.push('li');
str += '<span style="';
str += '<span style="font-size:' + defaultFontSize + 'px;';
openBlockTags.push('span');
}
@ -4023,7 +4023,7 @@ LucidImporter = {};
if (!listActive)
{
str += '<span>';
str += '<span style="font-size:' + defaultFontSize + 'px;">';
openBlockTags.push('span');
}
@ -4270,6 +4270,11 @@ LucidImporter = {};
if (blockActive)
{
if (curE != maxE)
{
html += txt.substring(curE, maxE);
}
html += endBlockTag(true);
}
@ -12829,9 +12834,9 @@ LucidImporter = {};
{
try
{
var deg = mxUtils.toDegree(p.Text_TRotation) + mxUtils.toDegree(p.TextRotation);
var deg = mxUtils.toDegree(p.Text_TRotation || 0) + mxUtils.toDegree(p.TextRotation || 0);
if (deg != 0 && v.value)
if (!isNaN(deg) && deg != 0 && v.value)
{
var w = v.geometry.width, h = v.geometry.height;
var lblW = w, lblH = h, x = 0, y = 0;

File diff suppressed because it is too large Load diff

View file

@ -1,60 +1,60 @@
LucidImporter={};
(function(){function c(a,b,d){function n(a,b){var k="",n=a.t,e=a.l||{};if(null==n||0!=F&&F==n.v&&l==e.v)null==n&&(F&&(k+=c(!0),F=!1),k+='<div style="',Va.push("div"));else{F&&(k+=c(!0));F=n.v;l=e.v;"ul"==n.v?(k+="<ul ",Va.push("ul")):(k+="<ol ",Va.push("ol"));k+='style="margin: 0px; padding: 10px;list-style-position: inside; list-style-type:';if("hl"==n.v)k+="upper-roman";else switch(e.v){case "auto":k+="disc";break;case "inv":k+="circle";break;case "disc":k+="circle";break;case "trib":k+="square";
break;case "square":k+="square";break;case "dash":k+="square";break;case "heart":k+="disc";break;default:k+="decimal"}k+='">'}null!=n&&(k+='<li style="text-align:'+(a.a?a.a.v:d.TextAlign||"center")+";",null!=b&&b.c&&(n=T(b.c.v),null!=n&&(n=n.substring(0,7),k+="color:"+n+";")),k+='">',Va.push("li"),k+='<span style="',Va.push("span"));F||(e=n=a.a?a.a.v:d.TextAlign||"center","left"==n?e="flex-start":"right"==n&&(e="flex-end"),k+="display: flex; justify-content: "+e+"; text-align: "+n+"; align-items: baseline; font-size: 0; line-height: 1;");
a.il&&(k+="margin-left: "+Math.max(0,Math.round(.6*a.il.v-(F?28:0)))+"px;");a.ir&&(k+="margin-right: "+Math.round(.6*a.ir.v)+"px;");a.mt&&(k+="margin-top: "+Math.round(.6*a.mt.v)+"px;");a.mb&&(k+="margin-bottom: "+Math.round(.6*a.mb.v)+"px;");k+='">';F||(k+="<span>",Va.push("span"));return k}function e(a){if(0==Object.keys(a).length)return"";var b="",n=0;if(a.lk){var e=a.lk;null!=e.v&&0<e.v.length&&(b+='<a href="'+k(e.v[0])+'">',D.push("a"),n++)}b+='<span style="';D.push("span");n++;b+="font-size:"+
(a.s?Math.floor(.6*a.s.v):"11")+"px;";a.c&&(e=T(a.c.v),null!=e&&(e=e.substring(0,7),b+="color:"+e+";"));if(a.b&&a.b.v||a.fc&&a.fc.v&&0==a.fc.v.indexOf("Bold"))b+="font-weight: bold;";a.i&&a.i.v&&(b+="font-style: italic;");a.ac&&a.ac.v&&(b+="text-transform: uppercase;");e=null;a.f?e=a.f.v:d.Font&&(e=d.Font);e&&"Liberation Sans"!=e&&(b+="font-family: "+e+";");e=[];a.u&&a.u.v&&e.push("underline");a.k&&a.k.v&&e.push("line-through");0<e.length&&(b+="text-decoration: "+e.join(" ")+";");b+='">';y.push(n);
return b}function c(a){var b="";do{var d=Va.pop();if(!a&&F&&("ul"==d||"ol"==d)){Va.push(d);break}b+="</"+d+">"}while(0<Va.length);return b}function w(a,b,d,k){a=a?a.substring(b,d):"";F&&(a=a.trim());a=a.replace(/</g,"&lt;").replace(/>/g,"&gt;");do for(b=y.pop(),d=0;d<b;d++){var n=D.pop();a+="</"+n+">"}while(k&&0<D.length);return a}var g={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},z={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,k:!0,f:!0,ac:!0};b.sort(function(a,b){return a.s-b.s});var x=b.filter(function(a){return z[a.n]});
x[0]&&0!=x[0].s&&x.unshift({s:0,n:"dummy",v:"",e:x[0].s});b=b.filter(function(a){return g[a.n]});for(var f=[0],da=0;0<(da=a.indexOf("\n",da));)da++,f.push(da);for(var q=0,da=0;da<b.length;da++){if(b[da].s>f[q])b.splice(da,0,{s:f[q],n:"a",v:d.TextAlign||"center"});else{for(var C=0;da+C<b.length&&b[da+C].s==f[q];)C++;1<C&&(da+=C-1)}q++}null!=f[q]&&b.push({s:f[q],n:"a",v:d.TextAlign||"center"});f="";q=x.slice();q.sort(function(a,b){return a.e-b.e});for(var m=C=da=0,A={},B={},D=[],y=[],Va=[],Q=!1,F=!1,
l,Ua=0,H=0,N=a.length,ca=!0;m<b.length||ca;){ca=!1;if(m<b.length){var U=b[m],E=b[m].s;Q&&(B={},f+=w(a,Ua,N,!0),H=Ua=N,f+=c());for(;null!=U&&U.s==E;)B[U.n]=U,U=b[++m];N=null!=U?U.s:a.length;f+=n(B,A);Q&&(f+=e(A));Q=!0}for(;da>=C&&(da<x.length||C<q.length);)if(U=x[da],E=q[C],U&&E&&U.s<E.e){if(U.s>=N)break;Ua=U.s;0<Ua-H&&(f+=e(A)+w(a,H,Ua),H=Ua);for(;null!=U&&U.s==Ua;)A[U.n]=U,U=x[++da];f+=e(A)}else if(E){if(E.e>N)break;H=E.e;do delete A[E.n],E=q[++C];while(null!=E&&E.e==H);f+=w(a,Ua,H);Ua=H;0!=y.length||
null!=U&&U.s==H||(x.splice(da,0,{s:H,n:"dummy",v:""}),q.splice(C,0,{e:U?U.s:N,n:"dummy",v:""}))}else break}f+=w(null,null,null,!0);Q&&(f+=c(!0));return f}function f(a,b){y=!1;var d=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==d&&null!=a.State?null!=a.State.t&&(d=a.State):null==d&&null!=a.Note?null!=a.Note.t&&(d=a.Note):null==d&&null!=a.Title?null!=a.Title.t&&(d=a.Title):null!=a.t&&(d=a);null==d&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&&
(d=a.TextAreas.Text.Value):null==d&&null!=a.t0&&null!=a.t0.t&&(d=a.t0);if(null!=d){if(null!=d.t){var k=d.t,k=k.replace(/\u2028/g,"\n"),d=d.m;try{for(var n=0;n<d.length;n++)if(0<d[n].s||null!=d[n].e&&d[n].e<k.length||"t"==d[n].n||"ac"==d[n].n){y=!0;break}if(y=y||b)return c(k,d,a)}catch(Ce){console.log(Ce)}k=k.replace(/</g,"&lt;");return k=k.replace(/>/g,"&gt;")}if(null!=d.Value&&null!=d.Value.t)return d.Value.t=d.Value.t.replace(/</g,"&lt;"),d.Value.t=d.Value.t.replace(/>/g,"&gt;"),d.Value.t}return""}
function q(a){return null!=a.Action?a.Action:a}function m(a){if(null!=a.Text){if(null!=a.Text.m)return a.Text.m}else if(null!=a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else{if(null!=a.m)return a.m;if(null!=a.Title&&null!=a.Title.m)return a.Title.m}return null}function g(b,k){return"whiteSpace=wrap;"+(k?"overflow=block;html=1;fontSize=11;":a(b)+d(b)+n(b)+w(b)+z(b)+C(b)+A(b)+B(b)+D(b))+F(b)+E(b)+Wa(mxConstants.STYLE_ALIGN,
b.TextAlign,"center")}function e(a,d,k,n,e){var h="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(h=";");return h+="whiteSpace=wrap;"+(e?(wc(a,"overflow")?"":"overflow=block;")+(wc(a,"html")?"":"html=1;")+"fontSize=11;":b(mxConstants.STYLE_FONTSIZE,a,d,k,n)+b(mxConstants.STYLE_FONTFAMILY,a,d,k,n)+b(mxConstants.STYLE_FONTCOLOR,a,d,k,n)+b(mxConstants.STYLE_FONTSTYLE,a,d,k,n)+b(mxConstants.STYLE_ALIGN,a,d,k,n)+b(mxConstants.STYLE_SPACING_LEFT,a,d,k,n)+b(mxConstants.STYLE_SPACING_RIGHT,a,d,k,n)+b(mxConstants.STYLE_SPACING_TOP,
a,d,k,n)+b(mxConstants.STYLE_SPACING_BOTTOM,a,d,k,n))+b(mxConstants.STYLE_ALIGN+"Global",a,d,k,n)+b(mxConstants.STYLE_SPACING,a,d,k,n)+b(mxConstants.STYLE_VERTICAL_ALIGN,a,d,k,n)+b(mxConstants.STYLE_STROKECOLOR,a,d,k,n)+b(mxConstants.STYLE_OPACITY,a,d,k,n)+b(mxConstants.STYLE_ROUNDED,a,d,k,n)+b(mxConstants.STYLE_ROTATION,a,d,k,n)+b(mxConstants.STYLE_FLIPH,a,d,k,n)+b(mxConstants.STYLE_FLIPV,a,d,k,n)+b(mxConstants.STYLE_SHADOW,a,d,k,n)+b(mxConstants.STYLE_FILLCOLOR,a,d,k,n)+b(mxConstants.STYLE_DASHED,
a,d,k,n)+b(mxConstants.STYLE_STROKEWIDTH,a,d,k,n)+b(mxConstants.STYLE_IMAGE,a,d,k,n)}function b(b,k,e,c,h){if(!wc(k,b))switch(b){case mxConstants.STYLE_FONTSIZE:return a(e);case mxConstants.STYLE_FONTFAMILY:return d(e);case mxConstants.STYLE_FONTCOLOR:return n(e);case mxConstants.STYLE_FONTSTYLE:return w(e);case mxConstants.STYLE_ALIGN:return z(e);case mxConstants.STYLE_ALIGN+"Global":return Wa(mxConstants.STYLE_ALIGN,e.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return C(e);case mxConstants.STYLE_SPACING_RIGHT:return A(e);
case mxConstants.STYLE_SPACING_TOP:return B(e);case mxConstants.STYLE_SPACING_BOTTOM:return D(e);case mxConstants.STYLE_SPACING:return F(e);case mxConstants.STYLE_VERTICAL_ALIGN:return E(e);case mxConstants.STYLE_STROKECOLOR:return H(e,c);case mxConstants.STYLE_OPACITY:return N(e,c,h);case mxConstants.STYLE_ROUNDED:return b=!h.edge&&!h.style.includes("rounded")&&null!=e.Rounding&&0<e.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+Math.round(.6*e.Rounding)+";":"",b;case mxConstants.STYLE_ROTATION:return ca(e,
c,h);case mxConstants.STYLE_FLIPH:return b=e.FlipX?"flipH=1;":"",b;case mxConstants.STYLE_FLIPV:return b=e.FlipY?"flipV=1;":"",b;case mxConstants.STYLE_SHADOW:return U(e);case mxConstants.STYLE_FILLCOLOR:return ba(e,c);case mxConstants.STYLE_DASHED:return eb(e);case mxConstants.STYLE_STROKEWIDTH:return xb(e);case mxConstants.STYLE_IMAGE:return Td(e,c)}return""}function a(a){a=m(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("s"==d.n&&null!=d.v)return"fontSize="+Math.floor(.6*d.v)+";";b++}return"fontSize=11;"}
function d(a){var b=m(a),d;if(null!=b)for(var k=0;k<b.length;k++)if("f"==b[k].n&&b[k].v){d=b[k].v;break}!d&&a.Font&&(d=a.Font);return d&&"Liberation Sans"!=d?"fontFamily="+d+";":""}function k(a){return"ext"==a.tp?a.url:"ml"==a.tp?"mailto:"+a.eml:"pg"==a.tp?"data:page/id,"+(LucidImporter.pageIdsMap[a.id]||0):"c"==a.tp?"data:confluence/id,"+a.ccid:null}function n(a){a=m(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("c"==d.n&&null!=d.v)return a=T(d.v).substring(0,7),mxConstants.STYLE_FONTCOLOR+
"="+a+";";b++}return""}function w(a){return x(m(a))}function x(a){if(null!=a){var b=0,d=!1;if(null!=a)for(var k=0;!d&&k<a.length;){var n=a[k];"b"==n.n?null!=n.v&&n.v&&(d=!0,b+=1):"fc"==n.n&&"Bold"==n.v&&(d=!0,b+=1);k++}d=!1;if(null!=a)for(k=0;!d&&k<a.length;)n=a[k],"i"==n.n&&null!=n.v&&n.v&&(d=!0,b+=2),k++;d=!1;if(null!=a)for(k=0;!d&&k<a.length;)n=a[k],"u"==n.n&&null!=n.v&&n.v&&(d=!0,b+=4),k++;if(0<b)return"fontStyle="+b+";"}return""}function z(a){a=m(a);if(null!=a)for(var b=0;b<a.length;){var d=
a[b];if("a"==d.n&&null!=d.v)return"align="+d.v+";";b++}return""}function C(a){var b=m(a);if(null!=b)for(var d=0;d<b.length;){var k=b[d];if(null!=k.v){if("il"==k.n)return"spacingLeft="+.6*k.v+";";z(a)}d++}return""}function A(a){a=m(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("ir"==d.n&&null!=d.v)return"spacingRight="+d.v+";";b++}return""}function B(a){a=m(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mt"==d.n&&null!=d.v)return"spacingTop="+d.v+";";b++}return""}function D(a){a=m(a);
if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mb"==d.n&&null!=d.v)return"spacingBottom="+d.v+";";b++}return""}function F(a){return"number"===typeof a.InsetMargin?"spacing="+Math.max(0,Math.round(.6*parseInt(a.InsetMargin)))+";":""}function E(a){return null!=a.Text_VAlign&&"string"===typeof a.Text_VAlign?"verticalAlign="+a.Text_VAlign+";":null!=a.Title_VAlign&&"string"===typeof a.Title_VAlign?"verticalAlign="+a.Title_VAlign+";":Wa(mxConstants.STYLE_VERTICAL_ALIGN,a.TextVAlign,"middle")}function H(a,
b){return 0==a.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Wa(mxConstants.STYLE_STROKECOLOR,ga(a.LineColor),"#000000")}function ea(a){return null!=a?mxConstants.STYLE_FILLCOLOR+"="+ga(a)+";":""}function Q(a){return null!=a?"swimlaneFillColor="+ga(a)+";":""}function N(a,b,d){b="";if("string"===typeof a.LineColor&&(a.LineColor=T(a.LineColor),7<a.LineColor.length)){var k="0x"+a.LineColor.substring(a.LineColor.length-2,a.LineColor.length);d.style.includes("strokeOpacity")||(b+="strokeOpacity="+Math.round(parseInt(k)/
2.55)+";")}"string"===typeof a.FillColor&&(a.FillColor=T(a.FillColor),7<a.FillColor.length&&(a="0x"+a.FillColor.substring(a.FillColor.length-2,a.FillColor.length),d.style.includes("fillOpacity")||(b+="fillOpacity="+Math.round(parseInt(a)/2.55)+";")));return b}function ca(a,b,d){var k="";if(null!=a.Rotation){a=mxUtils.toDegree(parseFloat(a.Rotation));var n=!0;0!=a&&("UMLSwimLaneBlockV2"==b.Class||(0<=b.Class.indexOf("Rotated")||-90==a||270==a)&&(0<=b.Class.indexOf("Pool")||0<=b.Class.indexOf("SwimLane")))?
(a+=90,d.geometry.rotate90(),d.geometry.isRotated=!0,n=!1):0<=mxUtils.indexOf(pd,b.Class)?(a-=90,d.geometry.rotate90()):0<=mxUtils.indexOf(qd,b.Class)&&(a+=180);0!=a&&(k+="rotation="+a+";");n||(k+="horizontal=0;")}return k}function U(a){return null!=a.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function T(a){a&&("rgb"==a.substring(0,3)?a="#"+a.match(/\d+/g).map(function(a){a=parseInt(a).toString(16);return(1==a.length?"0":"")+a}).join(""):"#"!=a.charAt(0)&&(a="#"+a));return a}function ga(a){return(a=
T(a))?a.substring(0,7):null}function ka(a,b){return(a=T(a))&&7<a.length?b+"="+Math.round(parseInt("0x"+a.substr(7))/2.55)+";":""}function ba(a,b){if(null!=a.FillColor)if("object"===typeof a.FillColor){if(null!=a.FillColor.cs&&1<a.FillColor.cs.length)return Wa(mxConstants.STYLE_FILLCOLOR,ga(a.FillColor.cs[0].c))+Wa(mxConstants.STYLE_GRADIENTCOLOR,ga(a.FillColor.cs[1].c))}else return"string"===typeof a.FillColor?Wa(mxConstants.STYLE_FILLCOLOR,ga(a.FillColor),"#FFFFFF"):Wa(mxConstants.STYLE_FILLCOLOR,
"none");return""}function eb(a){return"dotted"==a.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dashdotdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==a.StrokeStyle?"dashed=1;dashPattern=1 2;":"longdash"==a.StrokeStyle?"dashed=1;dashPattern=16 6;":"dashlongdash"==a.StrokeStyle?"dashed=1;dashPattern=10 6 16 6;":"dashed24"==a.StrokeStyle?"dashed=1;dashPattern=3 8;":"dashed32"==a.StrokeStyle?"dashed=1;dashPattern=6 5;":"dashed44"==
a.StrokeStyle?"dashed=1;dashPattern=8 8;":null!=a.StrokeStyle&&"dashed"==a.StrokeStyle.substring(0,6)?"dashed=1;":""}function xb(a){return null!=a.LineWidth?Wa(mxConstants.STYLE_STROKEWIDTH,Math.round(.6*parseFloat(a.LineWidth)),"1"):""}function Td(a,b,d){var k="";a.FillColor&&a.FillColor.url?(d=a.FillColor.url,"fill"==a.FillColor.pos&&(k="imageAspect=0;")):"ImageSearchBlock2"==b.Class?d=a.URL:"UserImage2Block"==b.Class&&null!=a.ImageFillProps&&null!=a.ImageFillProps.url&&(d=a.ImageFillProps.url);
if(null!=d){if(null!=LucidImporter.imgSrcRepl)for(a=0;a<LucidImporter.imgSrcRepl.length;a++)b=LucidImporter.imgSrcRepl[a],d=d.replace(b.searchVal,b.replVal);return"image="+d+";"+k}return""}function Db(a,b,d,k){for(var n=b,e=0;null!=k.getAttributeForCell(a,n);)e++,n=b+"_"+e;k.setAttributeForCell(a,n,null!=d?d:"")}function rd(a,b,d,n,h,c){var w=q(b);if(null!=w){var x=Jb[w.Class];null!=x?a.style+=x+";":a.edge||(console.log("No mapping found for: "+w.Class),LucidImporter.hasUnknownShapes=!0);x=null!=
w.Properties?w.Properties:w;if(null!=x){a.value=c?"":f(x);a.style+=e(a.style,x,w,a,y);a.style.includes("strokeColor")||(a.style+=H(x,w));null!=x.Link&&0<x.Link.length&&d.setAttributeForCell(a,"link",k(x.Link[0]));c=[];var z=d.convertValueToString(a),C=!1;if(null!=z){for(var md=0;match=sd.exec(z);){var m=match[0],C=!0;if(2<m.length){var A=m.substring(2,m.length-2);"documentName"==A?A="filename":"pageName"==A?A="page":"totalPages"==A?A="pagecount":"page"==A?A="pagenumber":"date:"==A.substring(0,5)?
A="date{"+A.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==A.substring(0,16)?A=A.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==A.substring(0,9)&&(A="date{"+A.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");A="%"+A+"%";c.push(z.substring(md,match.index)+(null!=A?A:m));md=match.index+m.length}}C&&(c.push(z.substring(md)),d.setAttributeForCell(a,"label",
c.join("")),d.setAttributeForCell(a,"placeholders","1"))}for(var B in x)if(x.hasOwnProperty(B)&&B.toString().startsWith("ShapeData_"))try{var D=x[B],F=mxUtils.trim(D.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Db(a,F,D.Value,d)}catch(De){window.console&&console.log("Ignored "+B+":",De)}x.Title&&x.Text&&"ExtShape"!=w.Class.substr(0,8)&&(w=a.geometry,w=new mxCell(f(x.Title),new mxGeometry(0,w.height,w.width,10),"strokeColor=none;fillColor=none;"),w.vertex=!0,a.insert(w),
w.style+=g(x.Title,y));if(a.edge){a.style=null!=x.Rounding&&"diagonal"!=x.Shape?a.style+("rounded=1;arcSize="+x.Rounding+";"):a.style+"rounded=0;";if("diagonal"!=x.Shape)if(null!=x.ElbowPoints&&0<x.ElbowPoints.length)for(a.geometry.points=[],w=0;w<x.ElbowPoints.length;w++)a.geometry.points.push(new mxPoint(Math.round(.6*x.ElbowPoints[w].x+Kb),Math.round(.6*x.ElbowPoints[w].y+Lb)));else"elbow"==x.Shape?a.style+="edgeStyle=orthogonalEdgeStyle;":null!=x.Endpoint1.Block&&null!=x.Endpoint2.Block&&(a.style+=
"edgeStyle=orthogonalEdgeStyle;","curve"==x.Shape&&(a.style+="curved=1;"));if(x.LineJumps||LucidImporter.globalProps.LineJumps)a.style+="jumpStyle=arc;";null!=x.Endpoint1.Style&&(null!=Tb[x.Endpoint1.Style]?a.style+="startArrow="+Tb[x.Endpoint1.Style]+";":(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+x.Endpoint1.Style)));null!=x.Endpoint2.Style&&(null!=Tb[x.Endpoint2.Style]?a.style+="endArrow="+Tb[x.Endpoint2.Style].replace(/startSize/g,"endSize")+";":(LucidImporter.hasUnknownShapes=
!0,window.console&&console.log("Unknown endpoint style: "+x.Endpoint2.Style)));B=null!=x.ElbowControlPoints&&0<x.ElbowControlPoints.length?x.ElbowControlPoints:null!=x.BezierJoints&&0<x.BezierJoints.length?x.BezierJoints:x.Joints;if(null!=B)for(a.geometry.points=[],w=0;w<B.length;w++)D=B[w].p?B[w].p:B[w],a.geometry.points.push(new mxPoint(Math.round(.6*D.x+Kb),Math.round(.6*D.y+Lb)));w=!1;if((null==a.geometry.points||0==a.geometry.points.length)&&null!=x.Endpoint1.Block&&x.Endpoint1.Block==x.Endpoint2.Block&&
null!=n&&null!=h){w=new mxPoint(Math.round(n.geometry.x+n.geometry.width*x.Endpoint1.LinkX),Math.round(n.geometry.y+n.geometry.height*x.Endpoint1.LinkY));B=new mxPoint(Math.round(h.geometry.x+h.geometry.width*x.Endpoint2.LinkX),Math.round(h.geometry.y+h.geometry.height*x.Endpoint2.LinkY));Kb=w.x==B.x?Math.abs(w.x-n.geometry.x)<n.geometry.width/2?-20:20:0;Lb=w.y==B.y?Math.abs(w.y-n.geometry.y)<n.geometry.height/2?-20:20:0;var Q=new mxPoint(w.x+Kb,w.y+Lb),da=new mxPoint(B.x+Kb,B.y+Lb);Q.generated=!0;
da.generated=!0;a.geometry.points=[Q,da];w=w.x==B.x}null!=n&&n.geometry.isRotated||(Q=oa(a,x.Endpoint1,!0,w));null!=n&&null!=Q&&(null==n.stylePoints&&(n.stylePoints=[]),n.stylePoints.push(Q),LucidImporter.stylePointsSet.add(n));null!=h&&h.geometry.isRotated||(da=oa(a,x.Endpoint2,!1,w));null!=h&&null!=da&&(null==h.stylePoints&&(h.stylePoints=[]),h.stylePoints.push(da),LucidImporter.stylePointsSet.add(h))}}}null!=b.id&&Db(a,"lucidchartObjectId",b.id,d)}function qa(a,b){var d=q(a),k=d.Properties,n=k.BoundingBox;
null==a.Class||"AWS"!==a.Class.substring(0,3)&&"Amazon"!==a.Class.substring(0,6)||a.Class.includes("AWS19")||(n.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*n.x+Kb),Math.round(.6*n.y+Lb),Math.round(.6*n.w),Math.round(.6*n.h)),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;rd(v,a,b);v.zOrder=k.ZOrder;null!=v&&0<=v.style.indexOf(";grIcon=")&&(n=new mxCell("",new mxGeometry(v.geometry.x,v.geometry.y,v.geometry.width,v.geometry.height),"html=1;overflow=block;whiteSpace=wrap;"),n.vertex=
!0,n.style+=e(n.style,k,d,n),v.geometry.x=0,v.geometry.y=0,v.style+="part=1;",n.insert(v),v=n);Ud(v,k);return v}function ic(a,b,d,k){var n=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");n.geometry.relative=!0;n.edge=!0;rd(n,a,b,d,k,!0);b=q(a).Properties;d=null!=b?b.TextAreas:a.TextAreas;if(null!=d){for(k=0;null!=d["t"+k];){var e=d["t"+k],n=fb(e,n);k++}for(k=0;null!=d["m"+k]||1>k;)e=d["m"+k],null!=e&&(n=fb(e,n,a)),k++;null!=d.Text&&(n=fb(d.Text,n,a));d=null!=b?b.TextAreas:a.TextAreas;
null!=d.Message&&(n=fb(d.Message,n,a))}return n}function fb(a,b,d){var k=2*(parseFloat(a.Location)-.5);isNaN(k)&&null!=a.Text&&null!=a.Text.Location&&(k=2*(parseFloat(a.Text.Location)-.5));d=mxCell;var n=f(a),k=new mxGeometry(isNaN(k)?0:k,0,0,0),e="11",c="";if(null!=a&&null!=a.Value&&null!=a.Value.m)for(var c=x(a.Value.m),w=0;w<a.Value.m.length;w++)if("s"==a.Value.m[w].n)e=.6*parseFloat(a.Value.m[w].v);else if("c"==a.Value.m[w].n){var g=T(a.Value.m[w].v);null!=g&&(g=g.substring(0,7));c+="fontColor="+
g+";"}a=new d(n,k,"text;html=1;resizable=0;labelBackgroundColor=#ffffff;align=center;verticalAlign=middle;"+(c+";fontSize="+e+";"));a.geometry.relative=!0;a.vertex=!0;b.insert(a);return b}function Wa(a,b,d,k){null!=b&&null!=k&&(b=k(b));return null!=b&&b!=d?a+"="+b+";":""}function oa(a,b,d,k,n){if(null!=b&&null!=b.LinkX&&null!=b.LinkY&&(b.LinkX=Math.round(1E3*b.LinkX)/1E3,b.LinkY=Math.round(1E3*b.LinkY)/1E3,a.style+=(k?"":(d?"exitX":"entryX")+"="+b.LinkX+";")+(n?"":(d?"exitY":"entryY")+"="+b.LinkY+
";")+(d?"exitPerimeter":"entryPerimeter")+"=0;",b.Inside))return"["+b.LinkX+","+b.LinkY+",0]"}function Ub(a,b,d){try{null!=a.Action&&null!=a.Action.Properties&&(a=a.Action.Properties);var k=new mxCell("",new mxGeometry,"group;dropTarget=0;");k.vertex=!0;k.zOrder=a.ZOrder;var n=Infinity,e=Infinity,c=-Infinity,w=-Infinity,x=a.Members,g=[],z;for(z in x){var f=b[z];null!=f?g.push(f):d[z]=k}g.sort(function(a,b){var d=a.zOrder,k=b.zOrder;return null!=d&&null!=k?d>k?1:d<k?-1:0:0});for(b=0;b<g.length;b++)f=
g[b],n=Math.min(n,f.geometry.x),e=Math.min(e,f.geometry.y),c=Math.max(c,f.geometry.x+f.geometry.width),w=Math.max(w,f.geometry.y+f.geometry.height),f.parent=k,k.insert(f,b);k.geometry.x=n;k.geometry.y=e;k.geometry.width=c-n;k.geometry.height=w-e;if(null!=k.children)for(b=0;b<k.children.length;b++){var q=k.children[b].geometry;q.x-=n;q.y-=e}a.IsState?k.lucidLayerInfo={name:a.Name,visible:!a.Hidden,locked:a.Restrictions.b&&a.Restrictions.p&&a.Restrictions.c}:a.Hidden&&(k.visible=!1);return k}catch(Fe){console.log(Fe)}}
function td(a,b,d){LucidImporter.stylePointsSet=new Set;a.getModel().beginUpdate();try{var k=function(b,d){function k(a,b){null==a||a.generated||(a.x-=b.x,a.y-=b.y)}var h=null!=d.Endpoint1.Block?e[d.Endpoint1.Block]:null,w=null!=d.Endpoint2.Block?e[d.Endpoint2.Block]:null,l=ic(b,a,h,w);null==h&&null!=d.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint1.x),Math.round(.6*d.Endpoint1.y)),!0);null==w&&null!=d.Endpoint2&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint2.x),
Math.round(.6*d.Endpoint2.y)),!1);var g=c[b.id];if(null!=g){var x=l.geometry,z=g.geometry;k(x.sourcePoint,z);k(x.targetPoint,z);k(x.offset,z);x=x.points;if(null!=x)for(var f=0;f<x.length;f++)k(x[f],z)}n.push(a.addCell(l,g,null,h,w))},n=[],e={},c={},w=[];if(null!=b.Blocks){for(var x in b.Blocks){var g=b.Blocks[x];g.id=x;var z=!1;null!=Jb[g.Class]&&"mxCompositeShape"==Jb[g.Class]&&(e[g.id]=xc(g,n,a),w.push(g),z=!0);z||(e[g.id]=qa(g,a),w.push(g))}if(null!=b.Generators)for(x in b.Generators)"OrgChart2018"==
b.Generators[x].ClassName&&(LucidImporter.hasUnknownShapes=!0,console.log("Lucid diagram has an Org Chart!"))}else{for(var f=0;f<b.Objects.length;f++)g=b.Objects[f],null!=g.Action&&"mxCompositeShape"==Jb[g.Action.Class]?e[g.id]=xc(g,n,a):g.IsBlock&&null!=g.Action&&null!=g.Action.Properties?e[g.id]=qa(g,a):g.IsGenerator&&g.GeneratorData&&g.GeneratorData.p&&"OrgChart2018"==g.GeneratorData.p.ClassName&&(LucidImporter.hasUnknownShapes=!0,console.log("Lucid diagram has an Org Chart!")),w.push(g);for(f=
0;f<b.Objects.length;f++)if(g=b.Objects[f],g.IsGroup){var C=Ub(g,e,c);C&&(e[g.id]=C,w.push(g))}}if(null!=b.Groups)try{for(x in b.Groups)if(g=b.Groups[x],g.id=x,C=Ub(g,e,c))e[g.id]=C,w.push(g)}catch(Sd){console.log(Sd)}if(null!=b.Lines)for(x in b.Lines)g=b.Lines[x],g.id=x,w.push(g);w.sort(function(a,b){a=q(a);b=q(b);var d=null!=a.Properties?a.Properties.ZOrder:a.ZOrder,k=null!=b.Properties?b.Properties.ZOrder:b.ZOrder;return null!=d&&null!=k?d>k?1:d<k?-1:0:0});for(f=0;f<w.length;f++){var g=w[f],m=
e[g.id];if(null!=m){if(null==m.parent)if(m.lucidLayerInfo){var A=new mxCell;a.addCell(A,a.model.root);A.setVisible(m.lucidLayerInfo.visible);m.lucidLayerInfo.locked&&A.setStyle("locked=1;");A.setValue(m.lucidLayerInfo.name);delete m.lucidLayerInfo;a.addCell(m,A)}else n.push(a.addCell(m))}else g.IsLine&&null!=g.Action&&null!=g.Action.Properties?k(g,g.Action.Properties):null!=g.StrokeStyle&&k(g,g)}LucidImporter.stylePointsSet.forEach(function(a){a.style="points=["+a.stylePoints.join(",")+"];"+a.style;
delete a.stylePoints});try{var B=a.getModel().cells,D;for(D in B)delete B[D].zOrder}catch(Sd){}d||a.setSelectionCells(n)}finally{a.getModel().endUpdate()}}function ud(){var a=new Graph;a.setExtendParents(!1);a.setExtendParentsOnAdd(!1);a.setConstrainChildren(!1);a.setHtmlLabels(!0);a.getModel().maintainEdgeParent=!1;return a}function Vb(a,b,d,k,n,e,c,w){this.nurbsValues=[1,3,0,0,100*(a+d),100-100*(1-(b+k)),0,1,100*(n+c),100-100*(1-(e+w)),0,1]}function Vd(a,b){try{for(var d=[],k=b.BoundingBox.w,n=
b.BoundingBox.h,e=0;e<b.Shapes.length;e++){var c=b.Shapes[e],w=c.FillColor,g=c.StrokeColor,x=c.LineWidth,z=c.Points,f=c.Lines,q=['<shape strokewidth="inherit"><foreground>'];q.push("<path>");for(var C=null,m=0;m<f.length;m++){var A=f[m];if(C!=A.p1){var B=z[A.p1].x,D=z[A.p1].y,B=100*B/k,D=100*D/n,B=Math.round(100*B)/100,D=Math.round(100*D)/100;q.push('<move x="'+B+'" y="'+D+'"/>')}if(null!=A.n1){var F;var Q=z[A.p2].x,y=z[A.p2].y,H=k,l=n,N=new Vb(z[A.p1].x,z[A.p1].y,A.n1.x,A.n1.y,z[A.p2].x,z[A.p2].y,
A.n2.x,A.n2.y);if(2<=N.getSize()){N.getX(0);N.getY(0);N.getX(1);N.getY(1);for(var Q=Math.round(100*Q/H*100)/100,y=Math.round(100*y/l*100)/100,H=[],l=[],ca=[],U=N.getSize(),E=0;E<U-1;E+=3)H.push(new mxPoint(N.getX(E),N.getY(E))),l.push(new mxPoint(N.getX(E+1),N.getY(E+1))),E<U-2?ca.push(new mxPoint(N.getX(E+2),N.getY(E+2))):ca.push(new mxPoint(Q,y));for(var T="",E=0;E<H.length;E++)T+='<curve x1="'+H[E].x+'" y1="'+H[E].y+'" x2="'+l[E].x+'" y2="'+l[E].y+'" x3="'+ca[E].x+'" y3="'+ca[E].y+'"/>';F=T}else F=
void 0;q.push(F)}else B=z[A.p2].x,D=z[A.p2].y,B=100*B/k,D=100*D/n,B=Math.round(100*B)/100,D=Math.round(100*D)/100,q.push('<line x="'+B+'" y="'+D+'"/>');C=A.p2}q.push("</path>");q.push("<fillstroke/>");q.push("</foreground></shape>");d.push({shapeStencil:"stencil("+Graph.compress(q.join(""))+")",FillColor:w,LineColor:g,LineWidth:x})}LucidImporter.stencilsMap[a]={text:b.Text,w:k,h:n,stencils:d}}catch(od){console.log("Stencil parsing error:",od)}}function yb(a,b,d,k,n,e,c,w){a=new mxCell("",new mxGeometry(a,
b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;c.insert(a);e=[a];d=d.clone();w.insertEdge(d,!1);a.insertEdge(d,!0);e.push(d);k.push(n.addCell(d,null,null,null,null))}function ta(a,b,d,k,n,e,c,w,g){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;g.insert(a);d=new mxCell("",new mxGeometry(d,k,0,0),"strokeColor=none;fillColor=none;");d.vertex=!0;g.insert(d);w=[d];n=n.clone();a.insertEdge(n,!0);d.insertEdge(n,!1);w.push(n);e.push(c.addCell(n,null,null,null,
null))}function ha(a,b,d,k,n,c){k.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";k.style+=e(k.style,n,c,k);b=f(n);k.vertex=!0;a=new mxCell(b,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+a+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");a.style+=e(a.style,n,c,a,y);a.geometry.relative=!0;a.geometry.offset=new mxPoint(5,-12);
a.vertex=!0;k.insert(a)}function ma(a,b,d,k,n,c,w,g){n="transparent"!=a?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";c.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";c.style+=e(c.style,w,g,c);c.value=f(w);c.vertex=!0;a=new mxCell(null,new mxGeometry(.5,0,.7*k*b,.7*k*d),n+a+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");a.geometry.relative=!0;a.geometry.offset=new mxPoint(-b*k*.35,
10+(1-d)*k*.35);a.vertex=!0;a.style+=e(a.style,w,g,a,y);c.insert(a)}function wc(a,b){return null==a||null==b||!a.includes(";"+b+"=")&&a.substring(0,b.length+1)!=b+"="?!1:!0}function xc(b,d,k){var c=q(b),h=c.Properties,x=h.BoundingBox,t=Math.round(.6*x.w),r=Math.round(.6*x.h),m=Math.round(.6*x.x+Kb),T=Math.round(.6*x.y+Lb);null==b.Class||"GCPInputDatabase"!==b.Class&&"GCPInputRecord"!==b.Class&&"GCPInputPayment"!==b.Class&&"GCPInputGateway"!==b.Class&&"GCPInputLocalCompute"!==b.Class&&"GCPInputBeacon"!==
b.Class&&"GCPInputStorage"!==b.Class&&"GCPInputList"!==b.Class&&"GCPInputStream"!==b.Class&&"GCPInputMobileDevices"!==b.Class&&"GCPInputCircuitBoard"!==b.Class&&"GCPInputLive"!==b.Class&&"GCPInputUsers"!==b.Class&&"GCPInputLaptop"!==b.Class&&"GCPInputApplication"!==b.Class&&"GCPInputLightbulb"!==b.Class&&"GCPInputGame"!==b.Class&&"GCPInputDesktop"!==b.Class&&"GCPInputDesktopAndMobile"!==b.Class&&"GCPInputWebcam"!==b.Class&&"GCPInputSpeaker"!==b.Class&&"GCPInputRetail"!==b.Class&&"GCPInputReport"!==
b.Class&&"GCPInputPhone"!==b.Class&&"GCPInputBlank"!==b.Class||(r+=20);v=new mxCell("",new mxGeometry(m,T,t,r),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;v.zOrder=h.ZOrder;var Db=null!=b.Class?b.Class:null!=c?c.Class:null;switch(Db){case "BraceNoteBlock":case "UI2BraceNoteBlock":var ic=!1;null!=h.BraceDirection&&"Right"==h.BraceDirection&&(ic=!0);var da=null,oa=null;ic?(da=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),oa=new mxCell("",new mxGeometry(0,
0,t-.125*r,r),"strokeColor=none;fillColor=none;")):(da=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),oa=new mxCell("",new mxGeometry(.125*r,0,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=e(v.style,h,c,v);da.vertex=!0;v.insert(da);da.style+=e(da.style,h,c,da);oa.vertex=!0;oa.value=f(h);v.insert(oa);oa.style+=e(oa.style,h,c,oa,y);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var qa=
break;case "square":k+="square";break;case "dash":k+="square";break;case "heart":k+="disc";break;default:k+="decimal"}k+='">'}null!=n&&(k+='<li style="text-align:'+(a.a?a.a.v:d.TextAlign||"center")+";",null!=b&&b.c&&(n=T(b.c.v),null!=n&&(n=n.substring(0,7),k+="color:"+n+";")),k+='">',Va.push("li"),k+='<span style="font-size:11px;',Va.push("span"));F||(e=n=a.a?a.a.v:d.TextAlign||"center","left"==n?e="flex-start":"right"==n&&(e="flex-end"),k+="display: flex; justify-content: "+e+"; text-align: "+n+
"; align-items: baseline; font-size: 0; line-height: 1;");a.il&&(k+="margin-left: "+Math.max(0,Math.round(.6*a.il.v-(F?28:0)))+"px;");a.ir&&(k+="margin-right: "+Math.round(.6*a.ir.v)+"px;");a.mt&&(k+="margin-top: "+Math.round(.6*a.mt.v)+"px;");a.mb&&(k+="margin-bottom: "+Math.round(.6*a.mb.v)+"px;");k+='">';F||(k+='<span style="font-size:11px;">',Va.push("span"));return k}function e(a){if(0==Object.keys(a).length)return"";var b="",n=0;if(a.lk){var e=a.lk;null!=e.v&&0<e.v.length&&(b+='<a href="'+k(e.v[0])+
'">',D.push("a"),n++)}b+='<span style="';D.push("span");n++;b+="font-size:"+(a.s?Math.floor(.6*a.s.v):"11")+"px;";a.c&&(e=T(a.c.v),null!=e&&(e=e.substring(0,7),b+="color:"+e+";"));if(a.b&&a.b.v||a.fc&&a.fc.v&&0==a.fc.v.indexOf("Bold"))b+="font-weight: bold;";a.i&&a.i.v&&(b+="font-style: italic;");a.ac&&a.ac.v&&(b+="text-transform: uppercase;");e=null;a.f?e=a.f.v:d.Font&&(e=d.Font);e&&"Liberation Sans"!=e&&(b+="font-family: "+e+";");e=[];a.u&&a.u.v&&e.push("underline");a.k&&a.k.v&&e.push("line-through");
0<e.length&&(b+="text-decoration: "+e.join(" ")+";");b+='">';y.push(n);return b}function c(a){var b="";do{var d=Va.pop();if(!a&&F&&("ul"==d||"ol"==d)){Va.push(d);break}b+="</"+d+">"}while(0<Va.length);return b}function w(a,b,d,k){a=a?a.substring(b,d):"";F&&(a=a.trim());a=a.replace(/</g,"&lt;").replace(/>/g,"&gt;");do for(b=y.pop(),d=0;d<b;d++){var n=D.pop();a+="</"+n+">"}while(k&&0<D.length);return a}var g={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},z={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,k:!0,
f:!0,ac:!0};b.sort(function(a,b){return a.s-b.s});var x=b.filter(function(a){return z[a.n]});x[0]&&0!=x[0].s&&x.unshift({s:0,n:"dummy",v:"",e:x[0].s});b=b.filter(function(a){return g[a.n]});for(var f=[0],da=0;0<(da=a.indexOf("\n",da));)da++,f.push(da);for(var q=0,da=0;da<b.length;da++){if(b[da].s>f[q])b.splice(da,0,{s:f[q],n:"a",v:d.TextAlign||"center"});else{for(var C=0;da+C<b.length&&b[da+C].s==f[q];)C++;1<C&&(da+=C-1)}q++}null!=f[q]&&b.push({s:f[q],n:"a",v:d.TextAlign||"center"});f="";q=x.slice();
q.sort(function(a,b){return a.e-b.e});for(var m=C=da=0,A={},B={},D=[],y=[],Va=[],Q=!1,F=!1,l,Ua=0,H=0,M=a.length,ca=!0;m<b.length||ca;){ca=!1;if(m<b.length){var U=b[m],E=b[m].s;Q&&(B={},f+=w(a,Ua,M,!0),H=Ua=M,f+=c());for(;null!=U&&U.s==E;)B[U.n]=U,U=b[++m];M=null!=U?U.s:a.length;f+=n(B,A);Q&&(f+=e(A));Q=!0}for(;da>=C&&(da<x.length||C<q.length);)if(U=x[da],E=q[C],U&&E&&U.s<E.e){if(U.s>=M)break;Ua=U.s;0<Ua-H&&(f+=e(A)+w(a,H,Ua),H=Ua);for(;null!=U&&U.s==Ua;)A[U.n]=U,U=x[++da];f+=e(A)}else if(E){if(E.e>
M)break;H=E.e;do delete A[E.n],E=q[++C];while(null!=E&&E.e==H);f+=w(a,Ua,H);Ua=H;0!=y.length||null!=U&&U.s==H||(x.splice(da,0,{s:H,n:"dummy",v:""}),q.splice(C,0,{e:U?U.s:M,n:"dummy",v:""}))}else break}f+=w(null,null,null,!0);Q&&(H!=M&&(f+=a.substring(H,M)),f+=c(!0));return f}function f(a,b){y=!1;var d=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==d&&null!=a.State?null!=a.State.t&&(d=a.State):null==d&&null!=a.Note?null!=a.Note.t&&(d=a.Note):null==d&&null!=a.Title?null!=a.Title.t&&(d=a.Title):
null!=a.t&&(d=a);null==d&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&&(d=a.TextAreas.Text.Value):null==d&&null!=a.t0&&null!=a.t0.t&&(d=a.t0);if(null!=d){if(null!=d.t){var k=d.t,k=k.replace(/\u2028/g,"\n"),d=d.m;try{for(var n=0;n<d.length;n++)if(0<d[n].s||null!=d[n].e&&d[n].e<k.length||"t"==d[n].n||"ac"==d[n].n){y=!0;break}if(y=y||b)return c(k,d,a)}catch(Ce){console.log(Ce)}k=k.replace(/</g,"&lt;");return k=k.replace(/>/g,"&gt;")}if(null!=
d.Value&&null!=d.Value.t)return d.Value.t=d.Value.t.replace(/</g,"&lt;"),d.Value.t=d.Value.t.replace(/>/g,"&gt;"),d.Value.t}return""}function q(a){return null!=a.Action?a.Action:a}function m(a){if(null!=a.Text){if(null!=a.Text.m)return a.Text.m}else if(null!=a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else{if(null!=a.m)return a.m;if(null!=a.Title&&null!=a.Title.m)return a.Title.m}return null}function g(b,k){return"whiteSpace=wrap;"+
(k?"overflow=block;html=1;fontSize=11;":a(b)+d(b)+n(b)+w(b)+z(b)+C(b)+A(b)+B(b)+D(b))+F(b)+E(b)+Wa(mxConstants.STYLE_ALIGN,b.TextAlign,"center")}function e(a,d,k,n,e){var h="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(h=";");return h+="whiteSpace=wrap;"+(e?(wc(a,"overflow")?"":"overflow=block;")+(wc(a,"html")?"":"html=1;")+"fontSize=11;":b(mxConstants.STYLE_FONTSIZE,a,d,k,n)+b(mxConstants.STYLE_FONTFAMILY,a,d,k,n)+b(mxConstants.STYLE_FONTCOLOR,a,d,k,n)+b(mxConstants.STYLE_FONTSTYLE,a,d,k,n)+b(mxConstants.STYLE_ALIGN,
a,d,k,n)+b(mxConstants.STYLE_SPACING_LEFT,a,d,k,n)+b(mxConstants.STYLE_SPACING_RIGHT,a,d,k,n)+b(mxConstants.STYLE_SPACING_TOP,a,d,k,n)+b(mxConstants.STYLE_SPACING_BOTTOM,a,d,k,n))+b(mxConstants.STYLE_ALIGN+"Global",a,d,k,n)+b(mxConstants.STYLE_SPACING,a,d,k,n)+b(mxConstants.STYLE_VERTICAL_ALIGN,a,d,k,n)+b(mxConstants.STYLE_STROKECOLOR,a,d,k,n)+b(mxConstants.STYLE_OPACITY,a,d,k,n)+b(mxConstants.STYLE_ROUNDED,a,d,k,n)+b(mxConstants.STYLE_ROTATION,a,d,k,n)+b(mxConstants.STYLE_FLIPH,a,d,k,n)+b(mxConstants.STYLE_FLIPV,
a,d,k,n)+b(mxConstants.STYLE_SHADOW,a,d,k,n)+b(mxConstants.STYLE_FILLCOLOR,a,d,k,n)+b(mxConstants.STYLE_DASHED,a,d,k,n)+b(mxConstants.STYLE_STROKEWIDTH,a,d,k,n)+b(mxConstants.STYLE_IMAGE,a,d,k,n)}function b(b,k,e,c,h){if(!wc(k,b))switch(b){case mxConstants.STYLE_FONTSIZE:return a(e);case mxConstants.STYLE_FONTFAMILY:return d(e);case mxConstants.STYLE_FONTCOLOR:return n(e);case mxConstants.STYLE_FONTSTYLE:return w(e);case mxConstants.STYLE_ALIGN:return z(e);case mxConstants.STYLE_ALIGN+"Global":return Wa(mxConstants.STYLE_ALIGN,
e.TextAlign,"center");case mxConstants.STYLE_SPACING_LEFT:return C(e);case mxConstants.STYLE_SPACING_RIGHT:return A(e);case mxConstants.STYLE_SPACING_TOP:return B(e);case mxConstants.STYLE_SPACING_BOTTOM:return D(e);case mxConstants.STYLE_SPACING:return F(e);case mxConstants.STYLE_VERTICAL_ALIGN:return E(e);case mxConstants.STYLE_STROKECOLOR:return H(e,c);case mxConstants.STYLE_OPACITY:return M(e,c,h);case mxConstants.STYLE_ROUNDED:return b=!h.edge&&!h.style.includes("rounded")&&null!=e.Rounding&&
0<e.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+Math.round(.6*e.Rounding)+";":"",b;case mxConstants.STYLE_ROTATION:return ca(e,c,h);case mxConstants.STYLE_FLIPH:return b=e.FlipX?"flipH=1;":"",b;case mxConstants.STYLE_FLIPV:return b=e.FlipY?"flipV=1;":"",b;case mxConstants.STYLE_SHADOW:return U(e);case mxConstants.STYLE_FILLCOLOR:return ba(e,c);case mxConstants.STYLE_DASHED:return eb(e);case mxConstants.STYLE_STROKEWIDTH:return xb(e);case mxConstants.STYLE_IMAGE:return Td(e,c)}return""}function a(a){a=
m(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("s"==d.n&&null!=d.v)return"fontSize="+Math.floor(.6*d.v)+";";b++}return"fontSize=11;"}function d(a){var b=m(a),d;if(null!=b)for(var k=0;k<b.length;k++)if("f"==b[k].n&&b[k].v){d=b[k].v;break}!d&&a.Font&&(d=a.Font);return d&&"Liberation Sans"!=d?"fontFamily="+d+";":""}function k(a){return"ext"==a.tp?a.url:"ml"==a.tp?"mailto:"+a.eml:"pg"==a.tp?"data:page/id,"+(LucidImporter.pageIdsMap[a.id]||0):"c"==a.tp?"data:confluence/id,"+a.ccid:null}function n(a){a=
m(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("c"==d.n&&null!=d.v)return a=T(d.v).substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+a+";";b++}return""}function w(a){return x(m(a))}function x(a){if(null!=a){var b=0,d=!1;if(null!=a)for(var k=0;!d&&k<a.length;){var n=a[k];"b"==n.n?null!=n.v&&n.v&&(d=!0,b+=1):"fc"==n.n&&"Bold"==n.v&&(d=!0,b+=1);k++}d=!1;if(null!=a)for(k=0;!d&&k<a.length;)n=a[k],"i"==n.n&&null!=n.v&&n.v&&(d=!0,b+=2),k++;d=!1;if(null!=a)for(k=0;!d&&k<a.length;)n=a[k],"u"==n.n&&null!=
n.v&&n.v&&(d=!0,b+=4),k++;if(0<b)return"fontStyle="+b+";"}return""}function z(a){a=m(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("a"==d.n&&null!=d.v)return"align="+d.v+";";b++}return""}function C(a){var b=m(a);if(null!=b)for(var d=0;d<b.length;){var k=b[d];if(null!=k.v){if("il"==k.n)return"spacingLeft="+.6*k.v+";";z(a)}d++}return""}function A(a){a=m(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("ir"==d.n&&null!=d.v)return"spacingRight="+d.v+";";b++}return""}function B(a){a=m(a);if(null!=
a)for(var b=0;b<a.length;){var d=a[b];if("mt"==d.n&&null!=d.v)return"spacingTop="+d.v+";";b++}return""}function D(a){a=m(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mb"==d.n&&null!=d.v)return"spacingBottom="+d.v+";";b++}return""}function F(a){return"number"===typeof a.InsetMargin?"spacing="+Math.max(0,Math.round(.6*parseInt(a.InsetMargin)))+";":""}function E(a){return null!=a.Text_VAlign&&"string"===typeof a.Text_VAlign?"verticalAlign="+a.Text_VAlign+";":null!=a.Title_VAlign&&"string"===
typeof a.Title_VAlign?"verticalAlign="+a.Title_VAlign+";":Wa(mxConstants.STYLE_VERTICAL_ALIGN,a.TextVAlign,"middle")}function H(a,b){return 0==a.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Wa(mxConstants.STYLE_STROKECOLOR,ga(a.LineColor),"#000000")}function ea(a){return null!=a?mxConstants.STYLE_FILLCOLOR+"="+ga(a)+";":""}function Q(a){return null!=a?"swimlaneFillColor="+ga(a)+";":""}function M(a,b,d){b="";if("string"===typeof a.LineColor&&(a.LineColor=T(a.LineColor),7<a.LineColor.length)){var k=
"0x"+a.LineColor.substring(a.LineColor.length-2,a.LineColor.length);d.style.includes("strokeOpacity")||(b+="strokeOpacity="+Math.round(parseInt(k)/2.55)+";")}"string"===typeof a.FillColor&&(a.FillColor=T(a.FillColor),7<a.FillColor.length&&(a="0x"+a.FillColor.substring(a.FillColor.length-2,a.FillColor.length),d.style.includes("fillOpacity")||(b+="fillOpacity="+Math.round(parseInt(a)/2.55)+";")));return b}function ca(a,b,d){var k="";if(null!=a.Rotation){a=mxUtils.toDegree(parseFloat(a.Rotation));var n=
!0;0!=a&&("UMLSwimLaneBlockV2"==b.Class||(0<=b.Class.indexOf("Rotated")||-90==a||270==a)&&(0<=b.Class.indexOf("Pool")||0<=b.Class.indexOf("SwimLane")))?(a+=90,d.geometry.rotate90(),d.geometry.isRotated=!0,n=!1):0<=mxUtils.indexOf(pd,b.Class)?(a-=90,d.geometry.rotate90()):0<=mxUtils.indexOf(qd,b.Class)&&(a+=180);0!=a&&(k+="rotation="+a+";");n||(k+="horizontal=0;")}return k}function U(a){return null!=a.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function T(a){a&&("rgb"==a.substring(0,3)?a="#"+a.match(/\d+/g).map(function(a){a=
parseInt(a).toString(16);return(1==a.length?"0":"")+a}).join(""):"#"!=a.charAt(0)&&(a="#"+a));return a}function ga(a){return(a=T(a))?a.substring(0,7):null}function ka(a,b){return(a=T(a))&&7<a.length?b+"="+Math.round(parseInt("0x"+a.substr(7))/2.55)+";":""}function ba(a,b){if(null!=a.FillColor)if("object"===typeof a.FillColor){if(null!=a.FillColor.cs&&1<a.FillColor.cs.length)return Wa(mxConstants.STYLE_FILLCOLOR,ga(a.FillColor.cs[0].c))+Wa(mxConstants.STYLE_GRADIENTCOLOR,ga(a.FillColor.cs[1].c))}else return"string"===
typeof a.FillColor?Wa(mxConstants.STYLE_FILLCOLOR,ga(a.FillColor),"#FFFFFF"):Wa(mxConstants.STYLE_FILLCOLOR,"none");return""}function eb(a){return"dotted"==a.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dashdotdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==a.StrokeStyle?"dashed=1;dashPattern=1 2;":"longdash"==a.StrokeStyle?"dashed=1;dashPattern=16 6;":"dashlongdash"==a.StrokeStyle?"dashed=1;dashPattern=10 6 16 6;":"dashed24"==
a.StrokeStyle?"dashed=1;dashPattern=3 8;":"dashed32"==a.StrokeStyle?"dashed=1;dashPattern=6 5;":"dashed44"==a.StrokeStyle?"dashed=1;dashPattern=8 8;":null!=a.StrokeStyle&&"dashed"==a.StrokeStyle.substring(0,6)?"dashed=1;":""}function xb(a){return null!=a.LineWidth?Wa(mxConstants.STYLE_STROKEWIDTH,Math.round(.6*parseFloat(a.LineWidth)),"1"):""}function Td(a,b,d){var k="";a.FillColor&&a.FillColor.url?(d=a.FillColor.url,"fill"==a.FillColor.pos&&(k="imageAspect=0;")):"ImageSearchBlock2"==b.Class?d=a.URL:
"UserImage2Block"==b.Class&&null!=a.ImageFillProps&&null!=a.ImageFillProps.url&&(d=a.ImageFillProps.url);if(null!=d){if(null!=LucidImporter.imgSrcRepl)for(a=0;a<LucidImporter.imgSrcRepl.length;a++)b=LucidImporter.imgSrcRepl[a],d=d.replace(b.searchVal,b.replVal);return"image="+d+";"+k}return""}function Db(a,b,d,k){for(var n=b,e=0;null!=k.getAttributeForCell(a,n);)e++,n=b+"_"+e;k.setAttributeForCell(a,n,null!=d?d:"")}function rd(a,b,d,n,h,c){var w=q(b);if(null!=w){var x=Jb[w.Class];null!=x?a.style+=
x+";":a.edge||(console.log("No mapping found for: "+w.Class),LucidImporter.hasUnknownShapes=!0);x=null!=w.Properties?w.Properties:w;if(null!=x){a.value=c?"":f(x);a.style+=e(a.style,x,w,a,y);a.style.includes("strokeColor")||(a.style+=H(x,w));null!=x.Link&&0<x.Link.length&&d.setAttributeForCell(a,"link",k(x.Link[0]));c=[];var z=d.convertValueToString(a),C=!1;if(null!=z){for(var md=0;match=sd.exec(z);){var m=match[0],C=!0;if(2<m.length){var A=m.substring(2,m.length-2);"documentName"==A?A="filename":
"pageName"==A?A="page":"totalPages"==A?A="pagecount":"page"==A?A="pagenumber":"date:"==A.substring(0,5)?A="date{"+A.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==A.substring(0,16)?A=A.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==A.substring(0,9)&&(A="date{"+A.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");A="%"+A+"%";c.push(z.substring(md,match.index)+
(null!=A?A:m));md=match.index+m.length}}C&&(c.push(z.substring(md)),d.setAttributeForCell(a,"label",c.join("")),d.setAttributeForCell(a,"placeholders","1"))}for(var B in x)if(x.hasOwnProperty(B)&&B.toString().startsWith("ShapeData_"))try{var D=x[B],F=mxUtils.trim(D.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Db(a,F,D.Value,d)}catch(De){window.console&&console.log("Ignored "+B+":",De)}x.Title&&x.Text&&"ExtShape"!=w.Class.substr(0,8)&&(w=a.geometry,w=new mxCell(f(x.Title),
new mxGeometry(0,w.height,w.width,10),"strokeColor=none;fillColor=none;"),w.vertex=!0,a.insert(w),w.style+=g(x.Title,y));if(a.edge){a.style=null!=x.Rounding&&"diagonal"!=x.Shape?a.style+("rounded=1;arcSize="+x.Rounding+";"):a.style+"rounded=0;";if("diagonal"!=x.Shape)if(null!=x.ElbowPoints&&0<x.ElbowPoints.length)for(a.geometry.points=[],w=0;w<x.ElbowPoints.length;w++)a.geometry.points.push(new mxPoint(Math.round(.6*x.ElbowPoints[w].x+Kb),Math.round(.6*x.ElbowPoints[w].y+Lb)));else"elbow"==x.Shape?
a.style+="edgeStyle=orthogonalEdgeStyle;":null!=x.Endpoint1.Block&&null!=x.Endpoint2.Block&&(a.style+="edgeStyle=orthogonalEdgeStyle;","curve"==x.Shape&&(a.style+="curved=1;"));if(x.LineJumps||LucidImporter.globalProps.LineJumps)a.style+="jumpStyle=arc;";null!=x.Endpoint1.Style&&(null!=Tb[x.Endpoint1.Style]?a.style+="startArrow="+Tb[x.Endpoint1.Style]+";":(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+x.Endpoint1.Style)));null!=x.Endpoint2.Style&&(null!=
Tb[x.Endpoint2.Style]?a.style+="endArrow="+Tb[x.Endpoint2.Style].replace(/startSize/g,"endSize")+";":(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+x.Endpoint2.Style)));B=null!=x.ElbowControlPoints&&0<x.ElbowControlPoints.length?x.ElbowControlPoints:null!=x.BezierJoints&&0<x.BezierJoints.length?x.BezierJoints:x.Joints;if(null!=B)for(a.geometry.points=[],w=0;w<B.length;w++)D=B[w].p?B[w].p:B[w],a.geometry.points.push(new mxPoint(Math.round(.6*D.x+Kb),Math.round(.6*
D.y+Lb)));w=!1;if((null==a.geometry.points||0==a.geometry.points.length)&&null!=x.Endpoint1.Block&&x.Endpoint1.Block==x.Endpoint2.Block&&null!=n&&null!=h){w=new mxPoint(Math.round(n.geometry.x+n.geometry.width*x.Endpoint1.LinkX),Math.round(n.geometry.y+n.geometry.height*x.Endpoint1.LinkY));B=new mxPoint(Math.round(h.geometry.x+h.geometry.width*x.Endpoint2.LinkX),Math.round(h.geometry.y+h.geometry.height*x.Endpoint2.LinkY));Kb=w.x==B.x?Math.abs(w.x-n.geometry.x)<n.geometry.width/2?-20:20:0;Lb=w.y==
B.y?Math.abs(w.y-n.geometry.y)<n.geometry.height/2?-20:20:0;var Q=new mxPoint(w.x+Kb,w.y+Lb),da=new mxPoint(B.x+Kb,B.y+Lb);Q.generated=!0;da.generated=!0;a.geometry.points=[Q,da];w=w.x==B.x}null!=n&&n.geometry.isRotated||(Q=oa(a,x.Endpoint1,!0,w));null!=n&&null!=Q&&(null==n.stylePoints&&(n.stylePoints=[]),n.stylePoints.push(Q),LucidImporter.stylePointsSet.add(n));null!=h&&h.geometry.isRotated||(da=oa(a,x.Endpoint2,!1,w));null!=h&&null!=da&&(null==h.stylePoints&&(h.stylePoints=[]),h.stylePoints.push(da),
LucidImporter.stylePointsSet.add(h))}}}null!=b.id&&Db(a,"lucidchartObjectId",b.id,d)}function qa(a,b){var d=q(a),k=d.Properties,n=k.BoundingBox;null==a.Class||"AWS"!==a.Class.substring(0,3)&&"Amazon"!==a.Class.substring(0,6)||a.Class.includes("AWS19")||(n.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*n.x+Kb),Math.round(.6*n.y+Lb),Math.round(.6*n.w),Math.round(.6*n.h)),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;rd(v,a,b);v.zOrder=k.ZOrder;null!=v&&0<=v.style.indexOf(";grIcon=")&&(n=
new mxCell("",new mxGeometry(v.geometry.x,v.geometry.y,v.geometry.width,v.geometry.height),"html=1;overflow=block;whiteSpace=wrap;"),n.vertex=!0,n.style+=e(n.style,k,d,n),v.geometry.x=0,v.geometry.y=0,v.style+="part=1;",n.insert(v),v=n);Ud(v,k);return v}function ic(a,b,d,k){var n=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");n.geometry.relative=!0;n.edge=!0;rd(n,a,b,d,k,!0);b=q(a).Properties;d=null!=b?b.TextAreas:a.TextAreas;if(null!=d){for(k=0;null!=d["t"+k];){var e=d["t"+k],
n=fb(e,n);k++}for(k=0;null!=d["m"+k]||1>k;)e=d["m"+k],null!=e&&(n=fb(e,n,a)),k++;null!=d.Text&&(n=fb(d.Text,n,a));d=null!=b?b.TextAreas:a.TextAreas;null!=d.Message&&(n=fb(d.Message,n,a))}return n}function fb(a,b,d){var k=2*(parseFloat(a.Location)-.5);isNaN(k)&&null!=a.Text&&null!=a.Text.Location&&(k=2*(parseFloat(a.Text.Location)-.5));d=mxCell;var n=f(a),k=new mxGeometry(isNaN(k)?0:k,0,0,0),e="11",c="";if(null!=a&&null!=a.Value&&null!=a.Value.m)for(var c=x(a.Value.m),w=0;w<a.Value.m.length;w++)if("s"==
a.Value.m[w].n)e=.6*parseFloat(a.Value.m[w].v);else if("c"==a.Value.m[w].n){var g=T(a.Value.m[w].v);null!=g&&(g=g.substring(0,7));c+="fontColor="+g+";"}a=new d(n,k,"text;html=1;resizable=0;labelBackgroundColor=#ffffff;align=center;verticalAlign=middle;"+(c+";fontSize="+e+";"));a.geometry.relative=!0;a.vertex=!0;b.insert(a);return b}function Wa(a,b,d,k){null!=b&&null!=k&&(b=k(b));return null!=b&&b!=d?a+"="+b+";":""}function oa(a,b,d,k,n){if(null!=b&&null!=b.LinkX&&null!=b.LinkY&&(b.LinkX=Math.round(1E3*
b.LinkX)/1E3,b.LinkY=Math.round(1E3*b.LinkY)/1E3,a.style+=(k?"":(d?"exitX":"entryX")+"="+b.LinkX+";")+(n?"":(d?"exitY":"entryY")+"="+b.LinkY+";")+(d?"exitPerimeter":"entryPerimeter")+"=0;",b.Inside))return"["+b.LinkX+","+b.LinkY+",0]"}function Ub(a,b,d){try{null!=a.Action&&null!=a.Action.Properties&&(a=a.Action.Properties);var k=new mxCell("",new mxGeometry,"group;dropTarget=0;");k.vertex=!0;k.zOrder=a.ZOrder;var n=Infinity,e=Infinity,c=-Infinity,w=-Infinity,x=a.Members,g=[],z;for(z in x){var f=b[z];
null!=f?g.push(f):d[z]=k}g.sort(function(a,b){var d=a.zOrder,k=b.zOrder;return null!=d&&null!=k?d>k?1:d<k?-1:0:0});for(b=0;b<g.length;b++)f=g[b],n=Math.min(n,f.geometry.x),e=Math.min(e,f.geometry.y),c=Math.max(c,f.geometry.x+f.geometry.width),w=Math.max(w,f.geometry.y+f.geometry.height),f.parent=k,k.insert(f,b);k.geometry.x=n;k.geometry.y=e;k.geometry.width=c-n;k.geometry.height=w-e;if(null!=k.children)for(b=0;b<k.children.length;b++){var q=k.children[b].geometry;q.x-=n;q.y-=e}a.IsState?k.lucidLayerInfo=
{name:a.Name,visible:!a.Hidden,locked:a.Restrictions.b&&a.Restrictions.p&&a.Restrictions.c}:a.Hidden&&(k.visible=!1);return k}catch(Fe){console.log(Fe)}}function td(a,b,d){LucidImporter.stylePointsSet=new Set;a.getModel().beginUpdate();try{var k=function(b,d){function k(a,b){null==a||a.generated||(a.x-=b.x,a.y-=b.y)}var h=null!=d.Endpoint1.Block?e[d.Endpoint1.Block]:null,w=null!=d.Endpoint2.Block?e[d.Endpoint2.Block]:null,l=ic(b,a,h,w);null==h&&null!=d.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.6*
d.Endpoint1.x),Math.round(.6*d.Endpoint1.y)),!0);null==w&&null!=d.Endpoint2&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint2.x),Math.round(.6*d.Endpoint2.y)),!1);var g=c[b.id];if(null!=g){var x=l.geometry,z=g.geometry;k(x.sourcePoint,z);k(x.targetPoint,z);k(x.offset,z);x=x.points;if(null!=x)for(var f=0;f<x.length;f++)k(x[f],z)}n.push(a.addCell(l,g,null,h,w))},n=[],e={},c={},w=[];if(null!=b.Blocks){for(var x in b.Blocks){var g=b.Blocks[x];g.id=x;var z=!1;null!=Jb[g.Class]&&"mxCompositeShape"==
Jb[g.Class]&&(e[g.id]=xc(g,n,a),w.push(g),z=!0);z||(e[g.id]=qa(g,a),w.push(g))}if(null!=b.Generators)for(x in b.Generators)"OrgChart2018"==b.Generators[x].ClassName&&(LucidImporter.hasUnknownShapes=!0,console.log("Lucid diagram has an Org Chart!"))}else{for(var f=0;f<b.Objects.length;f++)g=b.Objects[f],null!=g.Action&&"mxCompositeShape"==Jb[g.Action.Class]?e[g.id]=xc(g,n,a):g.IsBlock&&null!=g.Action&&null!=g.Action.Properties?e[g.id]=qa(g,a):g.IsGenerator&&g.GeneratorData&&g.GeneratorData.p&&"OrgChart2018"==
g.GeneratorData.p.ClassName&&(LucidImporter.hasUnknownShapes=!0,console.log("Lucid diagram has an Org Chart!")),w.push(g);for(f=0;f<b.Objects.length;f++)if(g=b.Objects[f],g.IsGroup){var C=Ub(g,e,c);C&&(e[g.id]=C,w.push(g))}}if(null!=b.Groups)try{for(x in b.Groups)if(g=b.Groups[x],g.id=x,C=Ub(g,e,c))e[g.id]=C,w.push(g)}catch(Sd){console.log(Sd)}if(null!=b.Lines)for(x in b.Lines)g=b.Lines[x],g.id=x,w.push(g);w.sort(function(a,b){a=q(a);b=q(b);var d=null!=a.Properties?a.Properties.ZOrder:a.ZOrder,k=
null!=b.Properties?b.Properties.ZOrder:b.ZOrder;return null!=d&&null!=k?d>k?1:d<k?-1:0:0});for(f=0;f<w.length;f++){var g=w[f],m=e[g.id];if(null!=m){if(null==m.parent)if(m.lucidLayerInfo){var A=new mxCell;a.addCell(A,a.model.root);A.setVisible(m.lucidLayerInfo.visible);m.lucidLayerInfo.locked&&A.setStyle("locked=1;");A.setValue(m.lucidLayerInfo.name);delete m.lucidLayerInfo;a.addCell(m,A)}else n.push(a.addCell(m))}else g.IsLine&&null!=g.Action&&null!=g.Action.Properties?k(g,g.Action.Properties):null!=
g.StrokeStyle&&k(g,g)}LucidImporter.stylePointsSet.forEach(function(a){a.style="points=["+a.stylePoints.join(",")+"];"+a.style;delete a.stylePoints});try{var B=a.getModel().cells,D;for(D in B)delete B[D].zOrder}catch(Sd){}d||a.setSelectionCells(n)}finally{a.getModel().endUpdate()}}function ud(){var a=new Graph;a.setExtendParents(!1);a.setExtendParentsOnAdd(!1);a.setConstrainChildren(!1);a.setHtmlLabels(!0);a.getModel().maintainEdgeParent=!1;return a}function Vb(a,b,d,k,n,e,c,w){this.nurbsValues=[1,
3,0,0,100*(a+d),100-100*(1-(b+k)),0,1,100*(n+c),100-100*(1-(e+w)),0,1]}function Vd(a,b){try{for(var d=[],k=b.BoundingBox.w,n=b.BoundingBox.h,e=0;e<b.Shapes.length;e++){var c=b.Shapes[e],w=c.FillColor,g=c.StrokeColor,x=c.LineWidth,z=c.Points,f=c.Lines,q=['<shape strokewidth="inherit"><foreground>'];q.push("<path>");for(var C=null,m=0;m<f.length;m++){var A=f[m];if(C!=A.p1){var B=z[A.p1].x,D=z[A.p1].y,B=100*B/k,D=100*D/n,B=Math.round(100*B)/100,D=Math.round(100*D)/100;q.push('<move x="'+B+'" y="'+D+
'"/>')}if(null!=A.n1){var F;var Q=z[A.p2].x,y=z[A.p2].y,H=k,l=n,M=new Vb(z[A.p1].x,z[A.p1].y,A.n1.x,A.n1.y,z[A.p2].x,z[A.p2].y,A.n2.x,A.n2.y);if(2<=M.getSize()){M.getX(0);M.getY(0);M.getX(1);M.getY(1);for(var Q=Math.round(100*Q/H*100)/100,y=Math.round(100*y/l*100)/100,H=[],l=[],ca=[],U=M.getSize(),E=0;E<U-1;E+=3)H.push(new mxPoint(M.getX(E),M.getY(E))),l.push(new mxPoint(M.getX(E+1),M.getY(E+1))),E<U-2?ca.push(new mxPoint(M.getX(E+2),M.getY(E+2))):ca.push(new mxPoint(Q,y));for(var T="",E=0;E<H.length;E++)T+=
'<curve x1="'+H[E].x+'" y1="'+H[E].y+'" x2="'+l[E].x+'" y2="'+l[E].y+'" x3="'+ca[E].x+'" y3="'+ca[E].y+'"/>';F=T}else F=void 0;q.push(F)}else B=z[A.p2].x,D=z[A.p2].y,B=100*B/k,D=100*D/n,B=Math.round(100*B)/100,D=Math.round(100*D)/100,q.push('<line x="'+B+'" y="'+D+'"/>');C=A.p2}q.push("</path>");q.push("<fillstroke/>");q.push("</foreground></shape>");d.push({shapeStencil:"stencil("+Graph.compress(q.join(""))+")",FillColor:w,LineColor:g,LineWidth:x})}LucidImporter.stencilsMap[a]={text:b.Text,w:k,h:n,
stencils:d}}catch(od){console.log("Stencil parsing error:",od)}}function yb(a,b,d,k,n,e,c,w){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;c.insert(a);e=[a];d=d.clone();w.insertEdge(d,!1);a.insertEdge(d,!0);e.push(d);k.push(n.addCell(d,null,null,null,null))}function ta(a,b,d,k,n,e,c,w,g){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;g.insert(a);d=new mxCell("",new mxGeometry(d,k,0,0),"strokeColor=none;fillColor=none;");
d.vertex=!0;g.insert(d);w=[d];n=n.clone();a.insertEdge(n,!0);d.insertEdge(n,!1);w.push(n);e.push(c.addCell(n,null,null,null,null))}function ha(a,b,d,k,n,c){k.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";k.style+=e(k.style,n,c,k);b=f(n);k.vertex=!0;a=new mxCell(b,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+a+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");
a.style+=e(a.style,n,c,a,y);a.geometry.relative=!0;a.geometry.offset=new mxPoint(5,-12);a.vertex=!0;k.insert(a)}function ma(a,b,d,k,n,c,w,g){n="transparent"!=a?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";c.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";c.style+=e(c.style,w,g,c);c.value=f(w);c.vertex=!0;a=new mxCell(null,new mxGeometry(.5,0,.7*k*b,.7*k*d),n+a+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");
a.geometry.relative=!0;a.geometry.offset=new mxPoint(-b*k*.35,10+(1-d)*k*.35);a.vertex=!0;a.style+=e(a.style,w,g,a,y);c.insert(a)}function wc(a,b){return null==a||null==b||!a.includes(";"+b+"=")&&a.substring(0,b.length+1)!=b+"="?!1:!0}function xc(b,d,k){var c=q(b),h=c.Properties,x=h.BoundingBox,t=Math.round(.6*x.w),r=Math.round(.6*x.h),m=Math.round(.6*x.x+Kb),T=Math.round(.6*x.y+Lb);null==b.Class||"GCPInputDatabase"!==b.Class&&"GCPInputRecord"!==b.Class&&"GCPInputPayment"!==b.Class&&"GCPInputGateway"!==
b.Class&&"GCPInputLocalCompute"!==b.Class&&"GCPInputBeacon"!==b.Class&&"GCPInputStorage"!==b.Class&&"GCPInputList"!==b.Class&&"GCPInputStream"!==b.Class&&"GCPInputMobileDevices"!==b.Class&&"GCPInputCircuitBoard"!==b.Class&&"GCPInputLive"!==b.Class&&"GCPInputUsers"!==b.Class&&"GCPInputLaptop"!==b.Class&&"GCPInputApplication"!==b.Class&&"GCPInputLightbulb"!==b.Class&&"GCPInputGame"!==b.Class&&"GCPInputDesktop"!==b.Class&&"GCPInputDesktopAndMobile"!==b.Class&&"GCPInputWebcam"!==b.Class&&"GCPInputSpeaker"!==
b.Class&&"GCPInputRetail"!==b.Class&&"GCPInputReport"!==b.Class&&"GCPInputPhone"!==b.Class&&"GCPInputBlank"!==b.Class||(r+=20);v=new mxCell("",new mxGeometry(m,T,t,r),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;v.zOrder=h.ZOrder;var Db=null!=b.Class?b.Class:null!=c?c.Class:null;switch(Db){case "BraceNoteBlock":case "UI2BraceNoteBlock":var ic=!1;null!=h.BraceDirection&&"Right"==h.BraceDirection&&(ic=!0);var da=null,oa=null;ic?(da=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),
oa=new mxCell("",new mxGeometry(0,0,t-.125*r,r),"strokeColor=none;fillColor=none;")):(da=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),oa=new mxCell("",new mxGeometry(.125*r,0,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=e(v.style,h,c,v);da.vertex=!0;v.insert(da);da.style+=e(da.style,h,c,da);oa.vertex=!0;oa.value=f(h);v.insert(oa);oa.style+=e(oa.style,h,c,oa,y);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var qa=
"MainText",fb=null,Va="HeaderFill_",Ua="BodyFill_",Ub=25,Jb=25,vc=0;if(null!=h.Lanes)vc=h.Lanes.length;else if(null!=h.PrimaryLane){for(var Tb=function(a){if(a)32>a?a=32:208<a&&(a=208);else return 0;return.6*a},vc=h.PrimaryLane.length,l=r=t=0;l<vc;l++)t+=h.PrimaryLane[l];for(l=0;l<h.SecondaryLane.length;l++)r+=h.SecondaryLane[l];Ub=Tb(h.PrimaryPoolTitleHeight);Jb=Tb(h.PrimaryLaneTitleHeight);t*=.6;r=.6*r+Ub+Jb;v.geometry.width=t;v.geometry.height=r;qa="poolPrimaryTitleKey";Va="PrimaryLaneHeaderFill_";
Ua="CellFill_0,";fb=h.PrimaryLaneTextAreaIds;if(null==fb)for(fb=[],l=0;l<vc;l++)fb.push("Primary_"+l)}if(0==h.IsPrimaryLaneVertical){h.Rotation=-1.5707963267948966;var Vb=v.geometry.x,wc=v.geometry.y}var nd=0!=h.Rotation,xc=0<Db.indexOf("Pool"),pd=0==Db.indexOf("BPMN"),od=null!=h[qa];v.style=(xc?"swimlane;startSize="+Ub+";":"fillColor=none;strokeColor=none;pointerEvents=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(nd?"horizontalStack=0;":
"");v.style+=e(v.style,h,c,v);od&&(v.value=f(h[qa]),v.style+=(y?"overflow=block;fontSize=11;":a(h[qa])+n(h[qa])+w(h[qa])+z(h[qa],v)+C(h[qa])+A(h[qa])+B(h[qa])+D(h[qa]))+F(h[qa])+E(h[qa]));for(var Rd=0,Cb=[],qd="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;startSize="+Jb+";dropTarget=0;rounded=0;"+(nd?"horizontal=0;":"")+(pd?"swimlaneLine=0;fillColor=none;":""),S=h.Rotation=0;S<vc;S++){if(null==fb)var Zc=parseFloat(h.Lanes[S].p),l=parseInt(h.Lanes[S].tid)||S,Xa="Lane_"+l;
@ -123,15 +123,15 @@ $a.vertex=!0;v.insert($a);$a.value=f(h.subtext);$a.style+=y?"html=1;fontSize=11;
Z.vertex=!0;v.insert(Z);break;case "DetailDisclosure":Z=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Z.vertex=!0;v.insert(Z);pa=new mxCell("",new mxGeometry(.79*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");pa.vertex=!0;v.insert(pa);break;case "DetailIndicator":pa=new mxCell("",new mxGeometry(.87*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");pa.vertex=
!0;v.insert(pa);break;case "CheckMark":Z=new mxCell("",new mxGeometry(.89*t,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Z.vertex=!0,v.insert(Z)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";W=new mxCell("",new mxGeometry(0,0,t,.4*r),"fillColor=none;strokeColor=none;spacing=10;align=left;");W.vertex=!0;v.insert(W);W.value=f(h.text);W.style+=y?"html=1;fontSize=11;":a(h.text)+
n(h.text)+w(h.text);La=new mxCell("",new mxGeometry(0,.6*r,t,.4*r),"fillColor=none;strokeColor=none;spacing=10;align=left;");La.vertex=!0;v.insert(La);La.value=f(h["bottom-text"]);La.style+=y?"html=1;fontSize=11;":a(h["bottom-text"])+n(h["bottom-text"])+w(h["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=f(h.text);v.style+=y?"fontSize=11;":a(h.text)+n(h.text)+w(h.text);v.style+=e(v.style,h,c,v,y);break;
case "SMPage":if(h.Group){v.style+="strokeColor=none;fillColor=none;";var p=new mxCell("",new mxGeometry(0,0,.9*t,.9*r),"rounded=1;arcSize=3;part=1;");p.vertex=!0;v.insert(p);p.style+=H(h,c)+ba(h,c)+N(h,c,p)+U(h)+xb(h);var u=new mxCell("",new mxGeometry(.1*t,.1*r,.9*t,.9*r),"rounded=1;arcSize=3;part=1;");u.vertex=!0;v.insert(u);u.value=f(h.Text);u.style+=H(h,c)+ba(h,c)+N(h,c,u)+U(h)+xb(h)+g(h,y);h.Future&&(p.style+="dashed=1;fixDash=1;",u.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",
h.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=f(h.Text),v.style+=H(h,c)+ba(h,c)+N(h,c,v)+U(h)+xb(h)+g(h,y);v.style+=e(v.style,h,c,v,y);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":p=null;switch(b.Class){case "SMHome":p=new mxCell("",new mxGeometry(.5*t-.4*r,.1*r,.8*r,.8*r),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
case "SMPage":if(h.Group){v.style+="strokeColor=none;fillColor=none;";var p=new mxCell("",new mxGeometry(0,0,.9*t,.9*r),"rounded=1;arcSize=3;part=1;");p.vertex=!0;v.insert(p);p.style+=H(h,c)+ba(h,c)+M(h,c,p)+U(h)+xb(h);var u=new mxCell("",new mxGeometry(.1*t,.1*r,.9*t,.9*r),"rounded=1;arcSize=3;part=1;");u.vertex=!0;v.insert(u);u.value=f(h.Text);u.style+=H(h,c)+ba(h,c)+M(h,c,u)+U(h)+xb(h)+g(h,y);h.Future&&(p.style+="dashed=1;fixDash=1;",u.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",
h.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=f(h.Text),v.style+=H(h,c)+ba(h,c)+M(h,c,v)+U(h)+xb(h)+g(h,y);v.style+=e(v.style,h,c,v,y);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":p=null;switch(b.Class){case "SMHome":p=new mxCell("",new mxGeometry(.5*t-.4*r,.1*r,.8*r,.8*r),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMPrint":p=new mxCell("",new mxGeometry(.5*t-.4*r,.19*r,.8*r,.62*r),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":p=new mxCell("",new mxGeometry(.5*t-.4*r,.1*r,.8*r,.8*r),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSettings":p=new mxCell("",new mxGeometry(.5*t-.35*r,.15*r,.7*r,.7*r),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMSitemap":p=new mxCell("",new mxGeometry(.5*t-.35*r,.2*r,.7*r,.6*r),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":p=new mxCell("",new mxGeometry(.5*t-.3*r,.25*r,.6*r,.5*r),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMVideo":p=new mxCell("",new mxGeometry(.5*t-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMAudio":p=new mxCell("",new mxGeometry(.5*t-.3*r,.2*r,.6*r,.6*r),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":p=new mxCell("",new mxGeometry(.5*t-.4*r,.15*r,.8*r,.7*r),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMChart":var I=ba(h,c),I=""==I?"#ffffff;":I.replace("fillColor=",""),p=new mxCell("",new mxGeometry(.5*t-.35*r,.15*r,.7*r,.7*r),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+
I);break;case "SMCloud":p=new mxCell("",new mxGeometry(.5*t-.4*r,.27*r,.8*r,.46*r),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":p=new mxCell("",new mxGeometry(.5*t-.25*r,.15*r,.5*r,.7*r),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMForm":p=new mxCell("",new mxGeometry(.5*t-.4*r,.15*r,.8*r,.7*r),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
break;case "SMGame":p=new mxCell("",new mxGeometry(.5*t-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":p=new mxCell("",new mxGeometry(.5*t-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}p.vertex=!0;v.insert(p);p.value=f(h.Text);p.style+=g(h,y);v.style+=e(v.style,h,c,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";
p=new mxCell("",new mxGeometry(.1*t,0,.9*t,.9*r),"part=1;");p.vertex=!0;v.insert(p);p.style+=e(p.style,h,c,p);u=new mxCell("",new mxGeometry(0,.1*r,.9*t,.9*r),"part=1;");u.vertex=!0;v.insert(u);u.value=f(h.Text);u.style+=g(h.Text,y);u.style+=e(u.style,h,c,u,y);break;case "UMLConstraintBlock":var Gb=new mxCell("",new mxGeometry(0,0,.25*r,r),"shape=curlyBracket;rounded=1;");Gb.vertex=!0;v.insert(Gb);var Hb=new mxCell("",new mxGeometry(t-.25*r,0,.25*r,r),"shape=curlyBracket;rounded=1;flipH=1;");Hb.vertex=
!0;v.insert(Hb);oa=new mxCell("",new mxGeometry(.25*r,0,t-.5*r,r),"strokeColor=none;fillColor=none;");oa.vertex=!0;oa.value=f(h);v.insert(oa);v.style="strokeColor=none;fillColor=none;";v.style+=e(v.style,h,c,v);Gb.style+=N(h,c,Gb);Hb.style+=N(h,c,Hb);oa.style+=n(h,oa);Gb.style+=e(Gb.style,h,c,Gb);Hb.style+=e(Hb.style,h,c,Hb);oa.style+=e(oa.style,h,c,oa,y);break;case "UMLTextBlock":v.value=f(h.Text);v.style+="strokeColor=none;"+g(h.Text,y);v.style+=e(v.style,h,c,v,y);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":var vb=
!0;v.insert(Hb);oa=new mxCell("",new mxGeometry(.25*r,0,t-.5*r,r),"strokeColor=none;fillColor=none;");oa.vertex=!0;oa.value=f(h);v.insert(oa);v.style="strokeColor=none;fillColor=none;";v.style+=e(v.style,h,c,v);Gb.style+=M(h,c,Gb);Hb.style+=M(h,c,Hb);oa.style+=n(h,oa);Gb.style+=e(Gb.style,h,c,Gb);Hb.style+=e(Hb.style,h,c,Hb);oa.style+=e(oa.style,h,c,oa,y);break;case "UMLTextBlock":v.value=f(h.Text);v.style+="strokeColor=none;"+g(h.Text,y);v.style+=e(v.style,h,c,v,y);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":var vb=
ca(h,c,v);h.Rotatio=null;var ab=e(v.style,h,c,v,y);-1==ab.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(ab=mxConstants.STYLE_STROKEWIDTH+"=1;"+ab);v.style="group;dropTarget=0;"+vb;var ad=.8*t,ud=t-ad,$b=new mxCell("",new mxGeometry(.2,0,ad,r),"shape=ellipse;"+ab);$b.vertex=!0;$b.geometry.relative=!0;v.insert($b);la=new mxCell("",new mxGeometry(0,.5,ud,1),"line;"+ab);la.geometry.relative=!0;la.vertex=!0;v.insert(la);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=f(h);v.style="html=1;dropTarget=0;"+
e(v.style,h,c,v,y);var xa=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");xa.geometry.relative=!0;xa.geometry.offset=new mxPoint(-20,5);xa.vertex=!0;v.insert(xa);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":vb=ca(h,c,v);h.Rotatio=null;ab=e(v.style,h,c,v,y);-1==ab.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(ab=mxConstants.STYLE_STROKEWIDTH+"=1;"+ab);v.style="group;dropTarget=0;"+vb;var ce=.225*t,de=.1*t,ad=t-ce-de,$b=new mxCell("",new mxGeometry(.225,
0,ad,r),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+ab);$b.vertex=!0;$b.geometry.relative=!0;v.insert($b);Ja=new mxCell("",new mxGeometry(0,.5,ce,1),"line;"+ab);Ja.geometry.relative=!0;Ja.vertex=!0;v.insert(Ja);Ka=new mxCell("",new mxGeometry(.9,.5,de,1),"line;"+ab);Ka.geometry.relative=!0;Ka.vertex=!0;v.insert(Ka);break;case "BPMNActivity":v.value=f(h.Text);switch(h.bpmnActivityType){case 1:v.style+=g(h.Text,y);break;case 2:v.style+="shape=ext;double=1;"+g(h.Text,y);break;case 3:v.style+=
@ -188,7 +188,7 @@ y);p=new mxCell("",new mxGeometry(.2*t,.21*r,.16*t,.24*r),"part=1;fillColor=#fff
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;ta(.55*t,.67*r,.2*t,.67*r,K,d,k,fa,v,O);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=f(h.Text);v.style+=e(v.style,h,c,v,y);p=new mxCell("",new mxGeometry(.1*t,.15*r,.8*t,.7*r),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");p.vertex=!0;v.insert(p);p.style+=
e(p.style,h,c,p);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=f(h.Text);v.style+=e(v.style,h,c,v,y);p=new mxCell("",new mxGeometry(.04*t,.06*r,.18*t,.28*r),"ellipse;fillColor=#808080;part=1;");p.vertex=!0;v.insert(p);p.style+=e(p.style,h,c,p);u=new mxCell("",new mxGeometry(.2*t,.56*r,.2*t,.32*r),"part=1;");u.vertex=!0;v.insert(u);u.value="A";u.style+="fontStyle=1;fontSize=11;";p.style+=e(p.style,h,c,p);L=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;");L.geometry.relative=!0;L.edge=!0;p.insertEdge(L,!1);u.insertEdge(L,!0);L.style+=e(L.style,h,c,L);Pb=[];Pb.push(new mxPoint(m+.13*t,T+.72*r));L.geometry.points=Pb;d.push(k.addCell(L,null,null,null,null));G=new mxCell("",new mxGeometry(.6*t,.06*r,.18*t,.28*r),"ellipse;fillColor=#808080;part=1;");G.vertex=!0;v.insert(G);G.style+=H(h,c)+xb(h);G.style+=e(G.style,h,c,G);R=new mxCell("",new mxGeometry(.76*
t,.56*r,.2*t,.32*r),"part=1;");R.vertex=!0;v.insert(R);R.style+=H(h,c)+N(h,c,R)+xb(h)+eb(h);R.value="B";R.style+="fontStyle=1;fontSize=11;fillColor=#ffffff;";R.style+=e(R.style,h,c,R);K=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;");K.geometry.relative=!0;K.edge=!0;G.insertEdge(K,!1);R.insertEdge(K,!0);K.style+=e(K.style,h,c,K);var pe=[];pe.push(new mxPoint(m+.69*t,T+.72*r));K.geometry.points=pe;d.push(k.addCell(K,
t,.56*r,.2*t,.32*r),"part=1;");R.vertex=!0;v.insert(R);R.style+=H(h,c)+M(h,c,R)+xb(h)+eb(h);R.value="B";R.style+="fontStyle=1;fontSize=11;fillColor=#ffffff;";R.style+=e(R.style,h,c,R);K=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;");K.geometry.relative=!0;K.edge=!0;G.insertEdge(K,!1);R.insertEdge(K,!0);K.style+=e(K.style,h,c,K);var pe=[];pe.push(new mxPoint(m+.69*t,T+.72*r));K.geometry.points=pe;d.push(k.addCell(K,
null,null,null,null));V=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");V.geometry.relative=!0;V.edge=!0;p.insertEdge(V,!1);G.insertEdge(V,!0);V.style+=e(V.style,h,c,V);d.push(k.addCell(V,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=f(h.Text);v.style+=e(v.style,h,c,v,y);p=new mxCell("1",new mxGeometry(.2*t,.4*r,.1*t,.19*r),"fontStyle=1;fillColor=#ffffff;fontSize=11;part=1;");
p.vertex=!0;v.insert(p);p.style+=e(p.style,h,c,p);u=new mxCell("2",new mxGeometry(.45*t,.4*r,.1*t,.19*r),"fontStyle=1;fillColor=#ffffff;fontSize=11;part=1;");u.vertex=!0;v.insert(u);u.style+=e(u.style,h,c,u);G=new mxCell("3",new mxGeometry(.7*t,.4*r,.1*t,.19*r),"fontStyle=1;fillColor=#ffffff;fontSize=11;part=1;");G.vertex=!0;v.insert(G);G.style+=e(G.style,h,c,G);L=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");p.insertEdge(L,!1);u.insertEdge(L,!0);L.geometry.points=
[new mxPoint(m+.375*t,T+.15*r)];L.geometry.relative=!0;L.edge=!0;L.style+=e(L.style,h,c,L);d.push(k.addCell(L,null,null,null,null));K=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");u.insertEdge(K,!1);G.insertEdge(K,!0);K.geometry.points=[new mxPoint(m+.675*t,T+.15*r)];K.geometry.relative=!0;K.edge=!0;K.style+=e(K.style,h,c,K);d.push(k.addCell(K,null,null,null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
@ -206,9 +206,9 @@ Fd*(l+1)+30,u[l]=new mxCell("",new mxGeometry(t-20,Tc,20,20),"part=1;"),u[l].ver
!0;v.insert(p);p.style+=e(p.style,h,c,p);for(var u=[],qe=.02*t,Gd=(t-2*qe)/h.LightCount,re=.8*Gd,l=0;l<h.LightCount;l++)u[l]=new mxCell("",new mxGeometry(qe+Gd*l+(Gd-re)/2,.25*r,re,.75*r),"ellipse;part=1;"),u[l].vertex=!0,v.insert(u[l]),u[l].style+=e(u[l].style,h,c,u[l]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=e(v.style,h,c,v);for(var p=[],se=t/h.SinkCount,l=0;l<h.SinkCount;l++)p[l]=new mxCell("",new mxGeometry(se*l,0,se,r),"part=1;shape=mxgraph.floorplan.sink_2;"),
p[l].vertex=!0,v.insert(p[l]),p[l].style+=e(p[l].style,h,c,p[l]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var Na=.1*t/h.StallCount,p=new mxCell("",new mxGeometry(0,0,Na,r),"fillColor=#000000;part=1;");p.vertex=!0;v.insert(p);p.style+=e(p.style,h,c,p);for(var Ta=(t-Na)/h.StallCount,Hd=[],Uc=[],Vc=[],Wc=[],I=H(h,c),I=""==I?"#000000;":I.replace("stokreColor=",""),id="part=1;fillColor="+I,id=id+e(id,h,c,v),Id=e("",h,c,v),l=0;l<h.StallCount;l++)Hd[l]=new mxCell("",new mxGeometry((l+
1)*Ta,0,Na,r),id),Hd[l].vertex=!0,v.insert(Hd[l]),Vc[l]=new mxCell("",new mxGeometry(Na+l*Ta+.05*(Ta-Na),r-.92*(Ta-Na),.9*(Ta-Na),.92*(Ta-Na)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Vc[l].vertex=!0,v.insert(Vc[l]),Vc[l].style+=Id,Uc[l]=new mxCell("",new mxGeometry(Na+l*Ta+.2*(Ta-Na),0,.6*(Ta-Na),.8*(Ta-Na)),"shape=mxgraph.floorplan.toilet;part=1;"),Uc[l].vertex=!0,v.insert(Uc[l]),Uc[l].style+=Id,Wc[l]=new mxCell("",new mxGeometry(Na+l*Ta,.42*r,.15*(Ta-Na),.12*(Ta-Na)),"part=1;"),Wc[l].vertex=
!0,v.insert(Wc[l]),Wc[l].style+=Id;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var jd="edgeStyle=none;endArrow=none;part=1;",I=H(h,c),I=""==I?"#000000;":I.replace("strokeColor=",""),Sb="shape=triangle;part=1;fillColor="+I,Sb=Sb+e(Sb,h,c,v),L=new mxCell("",new mxGeometry(0,0,0,0),jd);L.geometry.relative=!0;L.edge=!0;ta(0,.5*r,.65*t,.5*r,L,d,k,fa,v,O);for(var M=r/h.numLines,K=[],cc=[],l=0;l<h.numLines;l++)K[l]=new mxCell("",new mxGeometry(0,0,0,0),jd),K[l].geometry.relative=
!0,K[l].edge=!0,ta(.65*t,.5*r,.96*t,(l+.5)*M,K[l],d,k,fa,v,O),cc[l]=new mxCell("",new mxGeometry(.95*t,(l+.2)*M,.05*t,.6*M),Sb),cc[l].vertex=!0,v.insert(cc[l]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";jd="edgeStyle=none;endArrow=none;part=1;";I=H(h,c);I=""==I?"#000000;":I.replace("strokeColor=","");Sb="shape=triangle;part=1;fillColor="+I;Sb+=e(Sb,h,c,v);M=r/h.numLines;K=[];cc=[];for(l=0;l<h.numLines;l++)K[l]=new mxCell("",new mxGeometry(0,0,0,0),jd),K[l].geometry.relative=
!0,K[l].edge=!0,ta(0,(l+.5)*M,.96*t,(l+.5)*M,K[l],d,k,fa,v,O),cc[l]=new mxCell("",new mxGeometry(.95*t,(l+.2)*M,.05*t,.6*M),Sb),cc[l].vertex=!0,v.insert(cc[l]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=f(h.Text);switch(h.vesselType){case 1:v.style+="shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+="shape=hexagon;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}v.style+=e(v.style,h,c,v,y);break;case "PEClosedTankBlock":v.style+=
!0,v.insert(Wc[l]),Wc[l].style+=Id;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var jd="edgeStyle=none;endArrow=none;part=1;",I=H(h,c),I=""==I?"#000000;":I.replace("strokeColor=",""),Sb="shape=triangle;part=1;fillColor="+I,Sb=Sb+e(Sb,h,c,v),L=new mxCell("",new mxGeometry(0,0,0,0),jd);L.geometry.relative=!0;L.edge=!0;ta(0,.5*r,.65*t,.5*r,L,d,k,fa,v,O);for(var N=r/h.numLines,K=[],cc=[],l=0;l<h.numLines;l++)K[l]=new mxCell("",new mxGeometry(0,0,0,0),jd),K[l].geometry.relative=
!0,K[l].edge=!0,ta(.65*t,.5*r,.96*t,(l+.5)*N,K[l],d,k,fa,v,O),cc[l]=new mxCell("",new mxGeometry(.95*t,(l+.2)*N,.05*t,.6*N),Sb),cc[l].vertex=!0,v.insert(cc[l]);break;case "PEMultilines":v.style+="strokeColor=none;fillColor=none;";jd="edgeStyle=none;endArrow=none;part=1;";I=H(h,c);I=""==I?"#000000;":I.replace("strokeColor=","");Sb="shape=triangle;part=1;fillColor="+I;Sb+=e(Sb,h,c,v);N=r/h.numLines;K=[];cc=[];for(l=0;l<h.numLines;l++)K[l]=new mxCell("",new mxGeometry(0,0,0,0),jd),K[l].geometry.relative=
!0,K[l].edge=!0,ta(0,(l+.5)*N,.96*t,(l+.5)*N,K[l],d,k,fa,v,O),cc[l]=new mxCell("",new mxGeometry(.95*t,(l+.2)*N,.05*t,.6*N),Sb),cc[l].vertex=!0,v.insert(cc[l]);break;case "PEVesselBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=f(h.Text);switch(h.vesselType){case 1:v.style+="shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+="shape=hexagon;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}v.style+=e(v.style,h,c,v,y);break;case "PEClosedTankBlock":v.style+=
"verticalLabelPosition=bottom;verticalAlign=top;";v.value=f(h.Text);1==h.peakedRoof&&0==h.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==h.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");v.style+=e(v.style,h,c,v,y);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=f(h.Text);v.style=0==h.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";v.style+=e(v.style,h,
c,v,y);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=f(h.Text);v.style+=e(v.style,h,c,v,y);p=new mxCell("",new mxGeometry(0,.2*r,t,.6*r),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");p.vertex=!0;v.insert(p);p.style+=P;p.style+=e(p.style,h,c,p);P="endSize=4;endArrow=block;endFill=1;";0==h.compressorType?(L=new mxCell("",new mxGeometry(0,0,0,0),""),L.geometry.relative=!0,L.edge=!0,L.style+=P,L.style+=e(L.style,h,c,L),ta(0,0,0,.2*
r,L,d,k,fa,v,O),K=new mxCell("",new mxGeometry(0,0,0,0),""),K.geometry.relative=!0,K.edge=!0,K.style+=P,K.style+=e(K.style,h,c,K),ta(t,.67*r,t,r,K,d,k,fa,v,O)):(p.style+="flipH=1;",L=new mxCell("",new mxGeometry(0,0,0,0),""),L.geometry.relative=!0,L.edge=!0,L.style+=P,L.style+=e(L.style,h,c,L),ta(0,0,0,.33*r,L,d,k,fa,v,O),K=new mxCell("",new mxGeometry(0,0,0,0),""),K.geometry.relative=!0,K.edge=!0,K.style+=P,K.style+=e(K.style,h,c,K),ta(t,.8*r,t,r,K,d,k,fa,v,O));1==h.centerLineType&&(V=new mxCell("",
@ -224,55 +224,55 @@ new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.s
new mxCell("",new mxGeometry(1,0,20,r-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,30),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");1==h.hScroll&&(R=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
R.geometry.relative=!0,R.geometry.offset=new mxPoint(0,-20),R.vertex=!0,v.insert(R));v.style+=e(v.style,h,c,v,y);break;case "UI2DialogBlock":v.value=f(h.Text);v.style+=g(h.Text,y);p=new mxCell("",new mxGeometry(0,0,t,30),"part=1;resizeHeight=0;");p.vertex=!0;v.insert(p);p.value=f(h.Title);p.style+=g(h.Title,y);p.style+=e(p.style,h,c,p,y);u=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");u.geometry.relative=!0;u.geometry.offset=new mxPoint(-25,
-10);u.vertex=!0;p.insert(u);1==h.vScroll&&(G=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,30),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");1==h.hScroll&&(R=1==h.vScroll?new mxCell("",new mxGeometry(0,
1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),R.geometry.relative=!0,R.geometry.offset=new mxPoint(0,-20),R.vertex=!0,v.insert(R));v.style+=e(v.style,h,c,v);break;case "UI2AccordionBlock":p=[];M=25;for(l=0;l<=h.Panels-1;l++)p[l]=l<h.Selected-1?new mxCell("",new mxGeometry(0,l*M,t,M),"part=1;fillColor=#000000;fillOpacity=25;"):l==h.Selected-1?new mxCell("",
new mxGeometry(0,l*M,t,M),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,r-(h.Panels-h.Selected)*M+(l-h.Selected)*M,t,M),"part=1;fillColor=#000000;fillOpacity=25;"),p[l].vertex=!0,v.insert(p[l]),p[l].value=f(h["Panel_"+(l+1)]),p[l].style+=g(h["Panel_"+(l+1)],y),0>p[l].style.indexOf(";align=")&&(p[l].style+="align=left;spacingLeft=5;");var ja=H(h,c),ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,
20,r-h.Selected*M-20-(h.Panels-h.Selected)*M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-h.Selected*M-(h.Panels-h.Selected)*M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,h.Selected*M),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?
new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20-(h.Panels-h.Selected)*M),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));R=1==h.vScroll?new mxCell("",new mxGeometry(0,h.Selected*M,t-20,r-h.Selected*M-20-(h.Panels-h.Selected)*M),"part=1;fillColor=none;strokeColor=none;"):
new mxCell("",new mxGeometry(0,h.Selected*M,t-20,r-h.Selected*M-(h.Panels-h.Selected)*M),"part=1;fillColor=none;strokeColor=none;");R.vertex=!0;v.insert(R);R.value=f(h.Content_1);R.style+=g(h.Content_1,y);!y&&0>R.style.indexOf(";align=")&&(R.style+="align=left;spacingLeft=5;");v.style+=e(v.style,h,c,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var p=[],u=[],M=25,Pa=3,Y=(t+Pa)/(h.Tabs+1),ua=new mxCell("",new mxGeometry(0,M,t,r-M),"part=1;");ua.vertex=!0;v.insert(ua);
ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(10+l*Y,0,Y-Pa,M),""),u[l].vertex=!0,v.insert(u[l])):(p[l]=new mxCell("",new mxGeometry(10+l*Y,0,Y-Pa,M),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,0,Y-Pa,M),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l])),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y),0>u[l].style.indexOf(";align=")&&
(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=e(u[l].style,h,c,u[l]);ja=H(h,c);ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=
new mxPoint(-20,M),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break;
case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";p=[];u=[];M=25;Pa=3;Y=(t+Pa)/h.Tabs;ua=new mxCell("",new mxGeometry(0,M,t,r-M),"part=1;");ua.vertex=!0;v.insert(ua);ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(l*Y,0,Y-Pa,M),""),u[l].vertex=!0,v.insert(u[l])):(p[l]=new mxCell("",new mxGeometry(l*Y,0,Y-Pa,M),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,
0,Y-Pa,M),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l])),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;");ja=H(h,c);ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
new mxCell("",new mxGeometry(1,0,20,r-M),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,M),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";p=[];u=[];Pa=3;M=25+Pa;Y=80;Eb=10;ua=new mxCell("",new mxGeometry(Y,0,t-Y,r),"part=1;");ua.vertex=!0;v.insert(ua);ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(0,Eb+l*M,Y,M-Pa),""),u[l].vertex=!0,v.insert(u[l]),u[l].value=f(h["Tab_"+(l+1)]),
u[l].style+=g(h["Tab_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y)):(p[l]=new mxCell("",new mxGeometry(0,Eb+l*M,Y,M-Pa),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,0,Y,M-Pa),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l]),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y)),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=e(u[l].style,h,c,u[l]);ja=
1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),R.geometry.relative=!0,R.geometry.offset=new mxPoint(0,-20),R.vertex=!0,v.insert(R));v.style+=e(v.style,h,c,v);break;case "UI2AccordionBlock":p=[];N=25;for(l=0;l<=h.Panels-1;l++)p[l]=l<h.Selected-1?new mxCell("",new mxGeometry(0,l*N,t,N),"part=1;fillColor=#000000;fillOpacity=25;"):l==h.Selected-1?new mxCell("",
new mxGeometry(0,l*N,t,N),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,r-(h.Panels-h.Selected)*N+(l-h.Selected)*N,t,N),"part=1;fillColor=#000000;fillOpacity=25;"),p[l].vertex=!0,v.insert(p[l]),p[l].value=f(h["Panel_"+(l+1)]),p[l].style+=g(h["Panel_"+(l+1)],y),0>p[l].style.indexOf(";align=")&&(p[l].style+="align=left;spacingLeft=5;");var ja=H(h,c),ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,
20,r-h.Selected*N-20-(h.Panels-h.Selected)*N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-h.Selected*N-(h.Panels-h.Selected)*N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,h.Selected*N),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?
new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20-(h.Panels-h.Selected)*N),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));R=1==h.vScroll?new mxCell("",new mxGeometry(0,h.Selected*N,t-20,r-h.Selected*N-20-(h.Panels-h.Selected)*N),"part=1;fillColor=none;strokeColor=none;"):
new mxCell("",new mxGeometry(0,h.Selected*N,t-20,r-h.Selected*N-(h.Panels-h.Selected)*N),"part=1;fillColor=none;strokeColor=none;");R.vertex=!0;v.insert(R);R.value=f(h.Content_1);R.style+=g(h.Content_1,y);!y&&0>R.style.indexOf(";align=")&&(R.style+="align=left;spacingLeft=5;");v.style+=e(v.style,h,c,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var p=[],u=[],N=25,Pa=3,Y=(t+Pa)/(h.Tabs+1),ua=new mxCell("",new mxGeometry(0,N,t,r-N),"part=1;");ua.vertex=!0;v.insert(ua);
ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(10+l*Y,0,Y-Pa,N),""),u[l].vertex=!0,v.insert(u[l])):(p[l]=new mxCell("",new mxGeometry(10+l*Y,0,Y-Pa,N),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,0,Y-Pa,N),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l])),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y),0>u[l].style.indexOf(";align=")&&
(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=e(u[l].style,h,c,u[l]);ja=H(h,c);ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=
new mxPoint(-20,N),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break;
case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";p=[];u=[];N=25;Pa=3;Y=(t+Pa)/h.Tabs;ua=new mxCell("",new mxGeometry(0,N,t,r-N),"part=1;");ua.vertex=!0;v.insert(ua);ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(l*Y,0,Y-Pa,N),""),u[l].vertex=!0,v.insert(u[l])):(p[l]=new mxCell("",new mxGeometry(l*Y,0,Y-Pa,N),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,
0,Y-Pa,N),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l])),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;");ja=H(h,c);ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
new mxCell("",new mxGeometry(1,0,20,r-N),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,N),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";p=[];u=[];Pa=3;N=25+Pa;Y=80;Eb=10;ua=new mxCell("",new mxGeometry(Y,0,t-Y,r),"part=1;");ua.vertex=!0;v.insert(ua);ua.style+=e(ua.style,h,c,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(0,Eb+l*N,Y,N-Pa),""),u[l].vertex=!0,v.insert(u[l]),u[l].value=f(h["Tab_"+(l+1)]),
u[l].style+=g(h["Tab_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y)):(p[l]=new mxCell("",new mxGeometry(0,Eb+l*N,Y,N-Pa),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,0,Y,N-Pa),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l]),u[l].value=f(h["Tab_"+(l+1)]),u[l].style+=g(h["Tab_"+(l+1)],y)),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=e(u[l].style,h,c,u[l]);ja=
H(h,c);ja=ja.replace("strokeColor","fillColor2");""==ja&&(ja="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,0),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=
ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(Y,1,t-20-Y,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Y,1,t-Y,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";M=r/h.Options;
p=[];u=[];for(l=0;l<h.Options;l++)p[l]=new mxCell("",new mxGeometry(0,l*M+.5*M-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),p[l].vertex=!0,v.insert(p[l]),p[l].value=f(h["Option_"+(l+1)]),p[l].style+=g(h["Option_"+(l+1)],y),p[l].style+=e(p[l].style,h,c,p[l],y),null!=h.Selected[l+1]&&1==h.Selected[l+1]&&(I=H(h,c),I=I.replace("strokeColor","fillColor"),""==I&&(I="fillColor=#000000;"),u[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),
ja,u.style+=e(u.style,h,c,u));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(Y,1,t-20-Y,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Y,1,t-Y,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ja,G.style+=e(G.style,h,c,G));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";N=r/h.Options;
p=[];u=[];for(l=0;l<h.Options;l++)p[l]=new mxCell("",new mxGeometry(0,l*N+.5*N-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),p[l].vertex=!0,v.insert(p[l]),p[l].value=f(h["Option_"+(l+1)]),p[l].style+=g(h["Option_"+(l+1)],y),p[l].style+=e(p[l].style,h,c,p[l],y),null!=h.Selected[l+1]&&1==h.Selected[l+1]&&(I=H(h,c),I=I.replace("strokeColor","fillColor"),""==I&&(I="fillColor=#000000;"),u[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),
u[l].vertex=!0,p[l].insert(u[l]),u[l].style+=I,u[l].style+=e(u[l].style,h,c,u[l]));break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";Y=t/h.Options;p=[];u=[];for(l=0;l<h.Options;l++)p[l]=new mxCell("",new mxGeometry(l*Y,.5*r-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),p[l].vertex=!0,v.insert(p[l]),p[l].value=f(h["Option_"+(l+1)]),p[l].style+=g(h["Option_"+(l+1)],y),p[l].style+=e(p[l].style,h,c,
p[l],y),null!=h.Selected[l+1]&&1==h.Selected[l+1]&&(I=H(h,c),I=I.replace("strokeColor","fillColor"),""==I&&(I="fillColor=#000000;"),u[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),u[l].vertex=!0,p[l].insert(u[l]),u[l].style+=I,u[l].style+=e(u[l].style,h,c,u[l]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";M=r/h.Options;p=[];u=[];for(l=0;l<h.Options;l++)p[l]=new mxCell("",new mxGeometry(0,l*M+.5*M-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),
p[l],y),null!=h.Selected[l+1]&&1==h.Selected[l+1]&&(I=H(h,c),I=I.replace("strokeColor","fillColor"),""==I&&(I="fillColor=#000000;"),u[l]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),u[l].vertex=!0,p[l].insert(u[l]),u[l].style+=I,u[l].style+=e(u[l].style,h,c,u[l]));break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";N=r/h.Options;p=[];u=[];for(l=0;l<h.Options;l++)p[l]=new mxCell("",new mxGeometry(0,l*N+.5*N-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),
p[l].vertex=!0,v.insert(p[l]),p[l].value=f(h["Option_"+(l+1)]),p[l].style+=g(h["Option_"+(l+1)],y),p[l].style+=e(p[l].style,h,c,p[l],y),null!=h.Selected&&h.Selected==l+1&&(I=H(h,c),I=I.replace("strokeColor","fillColor"),""==I&&(I="fillColor=#000000;"),u[l]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"ellipse;"),u[l].vertex=!0,p[l].insert(u[l]),u[l].style+=I,u[l].style+=e(u[l].style,h,c,u[l]));break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";Y=t/h.Options;p=[];u=[];for(l=
0;l<h.Options;l++)p[l]=new mxCell("",new mxGeometry(l*Y,.5*r-5,10,10),"ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),p[l].vertex=!0,v.insert(p[l]),p[l].value=f(h["Option_"+(l+1)]),p[l].style+=g(h["Option_"+(l+1)],y),p[l].style+=e(p[l].style,h,c,p[l],y),null!=h.Selected&&h.Selected==l+1&&(I=H(h,c),I=I.replace("strokeColor","fillColor"),""==I&&(I="fillColor=#000000;"),u[l]=new mxCell("",new mxGeometry(2,2,6,6),"ellipse;part=1;"),u[l].vertex=
!0,p[l].insert(u[l]),u[l].style+=I,u[l].style+=e(u[l].style,h,c,u[l]));break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;";"UI2VSliderBlock"==b.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*h.ScrollVal+";";v.style+=e(v.style,h,c,v);break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";p=new mxCell("",new mxGeometry(0,0,.6*t,r),"part=1;");p.vertex=!0;v.insert(p);p.value=f(h.Date);
p.style+=g(h.Date,y);v.style+=e(v.style,h,c,v);I=H(h,c);I=I.replace("strokeColor","fillColor");""==I&&(I="fillColor=#000000;");u=new mxCell("",new mxGeometry(.75*t,0,.25*t,r),"part=1;shape=mxgraph.gmdl.calendar;");u.vertex=!0;v.insert(u);u.style+=I;u.style+=e(u.style,h,c,u);break;case "UI2SearchBlock":v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+a(h.Search)+n(h.Search)+w(h.Search);v.value=f(h.Search);v.style+=e(v.style,h,c,v,y);break;case "UI2NumericStepperBlock":I=
H(h,c);I=I.replace("strokeColor","fillColor");""==I&&(I="fillColor=#000000;");v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+I+a(h.Number)+n(h.Number)+w(h.Number);v.value=f(h.Number);v.style+=e(v.style,h,c,v,y);break;case "UI2TableBlock":LucidImporter.hasUnknownShapes=!0;break;case "UI2ButtonBarBlock":v.style+=e(v.style,h,c,v);p=[];u=[];Y=t/h.Buttons;for(l=0;l<=h.Buttons-1;l++)l==h.Selected-1?(u[l]=new mxCell("",
new mxGeometry(l*Y,0,Y,r),""),u[l].vertex=!0,v.insert(u[l])):(p[l]=new mxCell("",new mxGeometry(l*Y,0,Y,r),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,0,Y,r),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l])),u[l].value=f(h["Button_"+(l+1)]),u[l].style+=g(h["Button_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y);break;case "UI2VerticalButtonBarBlock":v.style+=e(v.style,h,c,v);p=[];u=[];M=
r/h.Buttons;for(l=0;l<=h.Buttons-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(0,l*M,t,M),""),u[l].vertex=!0,v.insert(u[l])):(p[l]=new mxCell("",new mxGeometry(0,l*M,t,M),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,0,t,M),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l])),u[l].value=f(h["Button_"+(l+1)]),u[l].style+=g(h["Button_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y);break;case "UI2LinkBarBlock":v.style+=
new mxGeometry(l*Y,0,Y,r),""),u[l].vertex=!0,v.insert(u[l])):(p[l]=new mxCell("",new mxGeometry(l*Y,0,Y,r),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,0,Y,r),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l])),u[l].value=f(h["Button_"+(l+1)]),u[l].style+=g(h["Button_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y);break;case "UI2VerticalButtonBarBlock":v.style+=e(v.style,h,c,v);p=[];u=[];N=
r/h.Buttons;for(l=0;l<=h.Buttons-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(0,l*N,t,N),""),u[l].vertex=!0,v.insert(u[l])):(p[l]=new mxCell("",new mxGeometry(0,l*N,t,N),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=e(p[l].style,h,c,p[l]),u[l]=new mxCell("",new mxGeometry(0,0,t,N),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,p[l].insert(u[l])),u[l].value=f(h["Button_"+(l+1)]),u[l].style+=g(h["Button_"+(l+1)],y),u[l].style+=e(u[l].style,h,c,u[l],y);break;case "UI2LinkBarBlock":v.style+=
"strokeColor=none;fillColor=none;";v.style+=e(v.style,h,c,v);p=[];u=[];Y=t/h.Links;for(l=0;l<h.Links;l++)0!=l?(u[l]=new mxCell("",new mxGeometry(l*Y,0,Y,r),"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),u[l].style+=e(u[l].style,h,c,u[l])):u[l]=new mxCell("",new mxGeometry(l*Y,0,Y,r),"fillColor=none;strokeColor=none;"),u[l].vertex=!0,v.insert(u[l]),u[l].value=f(h["Link_"+(l+1)]),u[l].style+=g(h["Link_"+(l+1)],y);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;";
v.style+=e(v.style,h,c,v);p=[];u=[];Y=t/h.Links;for(l=0;l<h.Links;l++)p[l]=new mxCell("",new mxGeometry(l*Y,0,Y,r),"fillColor=none;strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].value=f(h["Link_"+(l+1)]),p[l].style+=g(h["Link_"+(l+1)],y);for(l=1;l<h.Links;l++)u[l]=new mxCell("",new mxGeometry(l/h.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),u[l].geometry.relative=!0,u[l].geometry.offset=new mxPoint(-3,-5),u[l].vertex=!0,v.insert(u[l]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;";
v.style+=e(v.style,h,c,v);p=[];Y=t/(h.Buttons+1);for(l=0;l<=h.Buttons-1;l++)p[l]=l!=h.Selected-1?new mxCell("",new mxGeometry(0,0,Y,r),"strokeColor=none;fillColor=none;resizeHeight=1;"):new mxCell("",new mxGeometry(0,0,Y,r),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),p[l].geometry.relative=!0,p[l].geometry.offset=new mxPoint(l*Y,0),p[l].vertex=!0,v.insert(p[l]),p[l].value=f(h["MenuItem_"+(l+1)]),p[l].style+=g(h["MenuItem_"+(l+1)],y);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+
g(h.Text_0);v.value="0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";break;case "UI2PaginationBlock":v.style+="fillColor=none;strokeColor=none;"+g(h.Text_prev);v.value=f(h.Text_prev)+" ";for(l=0;l<h.Links;l++)v.value+=f(h["Link_"+(l+1)])+" ";v.value+=f(h.Text_next);break;case "UI2ContextMenuBlock":v.style+=e(v.style,h,c,v);for(var J=[],xa=[],tc=[],M=r/h.Lines,P=null,l=0;l<h.Lines;l++)null!=h["Item_"+(l+1)]&&(null==P&&(P=""+a(h["Item_"+(l+1)])+n(h["Item_"+(l+1)])+w(h["Item_"+(l+1)])),J[l]=
new mxCell("",new mxGeometry(0,l*r/h.Lines,t,M),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),J[l].vertex=!0,v.insert(J[l]),J[l].style+=P,J[l].value=f(h["Item_"+(l+1)])),null!=h.Icons[l+1]&&null!=J[l]&&("dot"==h.Icons[l+1]?(xa[l]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),xa[l].geometry.offset=new mxPoint(6,-4)):"check"==h.Icons[l+1]&&(xa[l]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),xa[l].geometry.offset=
new mxPoint(6.5,-4)),null!=xa[l]&&(xa[l].geometry.relative=!0,xa[l].vertex=!0,J[l].insert(xa[l]),I=H(h,c),I=I.replace("strokeColor","fillColor"),""==I&&(I="fillColor=#000000;"),xa[l].style+=I)),null!=h["Shortcut_"+(l+1)]&&(null==P&&(P=""+a(h["Shortcut_"+(l+1)])+n(h["Shortcut_"+(l+1)])+w(h["Shortcut_"+(l+1)])),tc[l]=new mxCell("",new mxGeometry(.6*t,l*r/h.Lines,.4*t,M),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),tc[l].vertex=!0,v.insert(tc[l]),tc[l].style+=P,tc[l].value=f(h["Shortcut_"+
(l+1)])),null!=h.Dividers[l+1]&&(J[l]=new mxCell("",new mxGeometry(.05*t,l*r/h.Lines,.9*t,M),"shape=line;strokeWidth=1;"),J[l].vertex=!0,v.insert(J[l]),J[l].style+=H(h,c));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*h.ScrollVal+";";break;case "UI2TooltipSquareBlock":v.value=f(h.Tip);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+h.RoundCorners+";"+g(h.Tip,y);v.style+=e(v.style,
g(h.Text_0);v.value="0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";break;case "UI2PaginationBlock":v.style+="fillColor=none;strokeColor=none;"+g(h.Text_prev);v.value=f(h.Text_prev)+" ";for(l=0;l<h.Links;l++)v.value+=f(h["Link_"+(l+1)])+" ";v.value+=f(h.Text_next);break;case "UI2ContextMenuBlock":v.style+=e(v.style,h,c,v);for(var J=[],xa=[],tc=[],N=r/h.Lines,P=null,l=0;l<h.Lines;l++)null!=h["Item_"+(l+1)]&&(null==P&&(P=""+a(h["Item_"+(l+1)])+n(h["Item_"+(l+1)])+w(h["Item_"+(l+1)])),J[l]=
new mxCell("",new mxGeometry(0,l*r/h.Lines,t,N),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),J[l].vertex=!0,v.insert(J[l]),J[l].style+=P,J[l].value=f(h["Item_"+(l+1)])),null!=h.Icons[l+1]&&null!=J[l]&&("dot"==h.Icons[l+1]?(xa[l]=new mxCell("",new mxGeometry(0,.5,8,8),"ellipse;strokeColor=none;"),xa[l].geometry.offset=new mxPoint(6,-4)):"check"==h.Icons[l+1]&&(xa[l]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),xa[l].geometry.offset=
new mxPoint(6.5,-4)),null!=xa[l]&&(xa[l].geometry.relative=!0,xa[l].vertex=!0,J[l].insert(xa[l]),I=H(h,c),I=I.replace("strokeColor","fillColor"),""==I&&(I="fillColor=#000000;"),xa[l].style+=I)),null!=h["Shortcut_"+(l+1)]&&(null==P&&(P=""+a(h["Shortcut_"+(l+1)])+n(h["Shortcut_"+(l+1)])+w(h["Shortcut_"+(l+1)])),tc[l]=new mxCell("",new mxGeometry(.6*t,l*r/h.Lines,.4*t,N),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),tc[l].vertex=!0,v.insert(tc[l]),tc[l].style+=P,tc[l].value=f(h["Shortcut_"+
(l+1)])),null!=h.Dividers[l+1]&&(J[l]=new mxCell("",new mxGeometry(.05*t,l*r/h.Lines,.9*t,N),"shape=line;strokeWidth=1;"),J[l].vertex=!0,v.insert(J[l]),J[l].style+=H(h,c));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*h.ScrollVal+";";break;case "UI2TooltipSquareBlock":v.value=f(h.Tip);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+h.RoundCorners+";"+g(h.Tip,y);v.style+=e(v.style,
h,c,v,y);break;case "UI2CalloutBlock":v.value=f(h.Txt);v.style+="shape=ellipse;perimeter=ellipsePerimeter;"+g(h.Txt,y);v.style+=e(v.style,h,c,v,y);break;case "UI2AlertBlock":v.value=f(h.Txt);v.style+=g(h.Txt,y);v.style+=e(v.style,h,c,v,y);p=new mxCell("",new mxGeometry(0,0,t,30),"part=1;resizeHeight=0;");p.vertex=!0;v.insert(p);p.value=f(h.Title);p.style+=g(h.Title,y);p.style+=e(p.style,h,c,p,y);u=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");
u.geometry.relative=!0;u.geometry.offset=new mxPoint(-25,-10);u.vertex=!0;p.insert(u);for(var Te=45*h.Buttons+(10*h.Buttons-1),G=[],l=0;l<h.Buttons;l++)G[l]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),G[l].geometry.relative=!0,G[l].geometry.offset=new mxPoint(.5*-Te+55*l,-40),G[l].vertex=!0,v.insert(G[l]),G[l].value=f(h["Button_"+(l+1)]),G[l].style+=g(h["Button_"+(l+1)],y),G[l].style+=e(G[l].style,h,c,G[l],y);break;case "UMLClassBlock":if(0==h.Simple){var P=ba(h,c),Da=Math.round(.6*
h.TitleHeight)||25,P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=f(h.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+P+"startSize="+Da+";"+g(h.Title,y);v.style+=e(v.style,h,c,v,y);for(var J=[],Kd=[],Fa=Da/r,dc=Da,l=0;l<=h.Attributes;l++){0<l&&(Kd[l]=new mxCell("",new mxGeometry(0,dc,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),
dc+=8,Kd[l].vertex=!0,v.insert(Kd[l]));M=0;0==h.Attributes?M=l=1:l<h.Attributes?(M=h["Text"+(l+1)+"Percent"],Fa+=M):M=1-Fa;var Xc=Math.round((r-Da)*M)+(h.ExtraHeightSet&&1==l?.6*h.ExtraHeight:0);J[l]=new mxCell("",new mxGeometry(0,dc,t,Xc),"part=1;html=1;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;");dc+=Xc;J[l].vertex=!0;v.insert(J[l]);J[l].style+=P+N(h,c,J[l])+
dc+=8,Kd[l].vertex=!0,v.insert(Kd[l]));N=0;0==h.Attributes?N=l=1:l<h.Attributes?(N=h["Text"+(l+1)+"Percent"],Fa+=N):N=1-Fa;var Xc=Math.round((r-Da)*N)+(h.ExtraHeightSet&&1==l?.6*h.ExtraHeight:0);J[l]=new mxCell("",new mxGeometry(0,dc,t,Xc),"part=1;html=1;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;");dc+=Xc;J[l].vertex=!0;v.insert(J[l]);J[l].style+=P+M(h,c,J[l])+
a(h["Text"+(l+1)])+n(h["Text"+(l+1)])+w(h["Text"+(l+1)]);J[l].value=f(h["Text"+(l+1)])}}else v.value=f(h.Title),v.style+=g(h.Title,y),v.style+=e(v.style,h,c,v,y);break;case "ERDEntityBlock":P=ba(h,c);Da=.6*h.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=f(h.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+P+"startSize="+Da+";"+g(h.Name,y);
v.style+=e(v.style,h,c,v,y);v.style=h.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ba(h,c);J=[];Fa=Da/r;dc=Da;for(l=0;l<h.Fields;l++)M=0,Xc=.6*h["Field"+(l+1)+"_h"],J[l]=new mxCell("",new mxGeometry(0,dc,t,Xc),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),dc+=Xc,J[l].vertex=!0,v.insert(J[l]),J[l].style+=P+a(h["Field"+(l+1)])+n(h["Field"+(l+1)])+w(h["Field"+
(l+1)]),J[l].style=1==h.AltRows&&0!=l%2?J[l].style+"fillColor=#000000;opacity=5;":J[l].style+("fillColor=none;"+N(h,c,J[l])),J[l].value=f(h["Field"+(l+1)]);break;case "ERDEntityBlock2":P=ba(h,c);Da=.6*h.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=f(h.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+P+"startSize="+Da+";"+g(h.Name,y);v.style=h.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+
ba(h,c);v.style+=e(v.style,h,c,v,y);var J=[],aa=[],Fa=Da,Qa=30;null!=h.Column1&&(Qa=.6*h.Column1);for(l=0;l<h.Fields;l++)M=0,aa[l]=new mxCell("",new mxGeometry(0,Fa,Qa,.6*h["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),aa[l].vertex=!0,v.insert(aa[l]),aa[l].style+=P+a(h["Key"+(l+1)])+n(h["Key"+(l+1)])+w(h["Key"+(l+1)]),aa[l].style=1==h.AltRows&&
0!=l%2?aa[l].style+"fillColor=#000000;fillOpacity=5;":aa[l].style+("fillColor=none;"+N(h,c,aa[l])),aa[l].value=f(h["Key"+(l+1)]),J[l]=new mxCell("",new mxGeometry(Qa,Fa,t-Qa,.6*h["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),J[l].vertex=!0,v.insert(J[l]),J[l].style+=P+a(h["Field"+(l+1)])+n(h["Field"+(l+1)])+w(h["Field"+
(l+1)]),v.style+=e(v.style,h,c,v),J[l].style=1==h.AltRows&&0!=l%2?J[l].style+"fillColor=#000000;fillOpacity=5;":J[l].style+("fillColor=none;"+N(h,c,J[l])),J[l].value=f(h["Field"+(l+1)]),Fa+=.6*h["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":P=ba(h,c);Da=.6*h.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+P+"startSize="+Da+";"+g(h.Name);v.style=h.ShadedHeader?
v.style+"fillColor=#e0e0e0;":v.style+ba(h,c);v.value=f(h.Name);v.style+=e(v.style,h,c,v,y);J=[];aa=[];Fa=Da;Qa=30;null!=h.Column1&&(Qa=.6*h.Column1);for(l=0;l<h.Fields;l++)M=0,aa[l]=new mxCell("",new mxGeometry(0,Fa,Qa,.6*h["Field"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),aa[l].vertex=!0,v.insert(aa[l]),aa[l].style+=P+a(h["Field"+(l+1)])+n(h["Field"+
(l+1)])+w(h["Field"+(l+1)]),aa[l].style=1==h.AltRows&&0!=l%2?aa[l].style+"fillColor=#000000;fillOpacity=5;":aa[l].style+("fillColor=none;"+N(h,c,aa[l])),aa[l].value=f(h["Field"+(l+1)]),aa[l].style+=e(aa[l].style,h,c,aa[l],y),J[l]=new mxCell("",new mxGeometry(Qa,Fa,t-Qa,.6*h["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
J[l].vertex=!0,v.insert(J[l]),J[l].style+=P+a(h["Type"+(l+1)])+n(h["Type"+(l+1)])+w(h["Type"+(l+1)]),J[l].style=1==h.AltRows&&0!=l%2?J[l].style+"fillColor=#000000;fillOpacity=5;":J[l].style+("fillColor=none;"+N(h,c,J[l])),J[l].value=f(h["Type"+(l+1)]),J[l].style+=e(J[l].style,h,c,J[l],y),Fa+=.6*h["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":P=ba(h,c);Da=.6*h.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+
P+"startSize="+Da+";"+g(h.Name);v.style=h.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ba(h,c);v.value=f(h.Name);v.style+=e(v.style,h,c,v,y);var J=[],aa=[],Ra=[],Fa=Da,Qa=30,kd=40;null!=h.Column1&&(Qa=.6*h.Column1);null!=h.Column2&&(kd=.6*h.Column2);for(l=0;l<h.Fields;l++)M=0,aa[l]=new mxCell("",new mxGeometry(0,Fa,Qa,.6*h["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
aa[l].vertex=!0,v.insert(aa[l]),aa[l].style+=P+a(h["Key"+(l+1)])+n(h["Key"+(l+1)])+w(h["Key"+(l+1)]),aa[l].style=1==h.AltRows&&0!=l%2?aa[l].style+"fillColor=#000000;fillOpacity=5;":aa[l].style+("fillColor=none;"+N(h,c,aa[l])),aa[l].value=f(h["Key"+(l+1)]),aa[l].style+=e(aa[l].style,h,c,aa[l],y),J[l]=new mxCell("",new mxGeometry(Qa,Fa,t-Qa-kd,.6*h["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
J[l].vertex=!0,v.insert(J[l]),J[l].style+=P+a(h["Field"+(l+1)])+n(h["Field"+(l+1)])+w(h["Field"+(l+1)]),J[l].style=1==h.AltRows&&0!=l%2?J[l].style+"fillColor=#000000;fillOpacity=5;":J[l].style+("fillColor=none;"+N(h,c,J[l])),J[l].value=f(h["Field"+(l+1)]),J[l].style+=e(J[l].style,h,c,J[l],y),Ra[l]=new mxCell("",new mxGeometry(t-kd,Fa,kd,.6*h["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
Ra[l].vertex=!0,v.insert(Ra[l]),Ra[l].style+=P+a(h["Type"+(l+1)])+n(h["Type"+(l+1)])+w(h["Type"+(l+1)]),Ra[l].style=1==h.AltRows&&0!=l%2?Ra[l].style+"fillColor=#000000;fillOpacity=5;":Ra[l].style+("fillColor=none;"+N(h,c,Ra[l])),Ra[l].value=f(h["Type"+(l+1)]),Ra[l].style+=e(Ra[l].style,h,c,Ra[l],y),Fa+=.6*h["Key"+(l+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":ha("application_system",t,r,v,h,c);break;case "GCPServiceCardAuthorizationBlock":ha("internal_payment_authorization",t,r,v,h,
v.style+=e(v.style,h,c,v,y);v.style=h.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ba(h,c);J=[];Fa=Da/r;dc=Da;for(l=0;l<h.Fields;l++)N=0,Xc=.6*h["Field"+(l+1)+"_h"],J[l]=new mxCell("",new mxGeometry(0,dc,t,Xc),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),dc+=Xc,J[l].vertex=!0,v.insert(J[l]),J[l].style+=P+a(h["Field"+(l+1)])+n(h["Field"+(l+1)])+w(h["Field"+
(l+1)]),J[l].style=1==h.AltRows&&0!=l%2?J[l].style+"fillColor=#000000;opacity=5;":J[l].style+("fillColor=none;"+M(h,c,J[l])),J[l].value=f(h["Field"+(l+1)]);break;case "ERDEntityBlock2":P=ba(h,c);Da=.6*h.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.value=f(h.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+P+"startSize="+Da+";"+g(h.Name,y);v.style=h.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+
ba(h,c);v.style+=e(v.style,h,c,v,y);var J=[],aa=[],Fa=Da,Qa=30;null!=h.Column1&&(Qa=.6*h.Column1);for(l=0;l<h.Fields;l++)N=0,aa[l]=new mxCell("",new mxGeometry(0,Fa,Qa,.6*h["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),aa[l].vertex=!0,v.insert(aa[l]),aa[l].style+=P+a(h["Key"+(l+1)])+n(h["Key"+(l+1)])+w(h["Key"+(l+1)]),aa[l].style=1==h.AltRows&&
0!=l%2?aa[l].style+"fillColor=#000000;fillOpacity=5;":aa[l].style+("fillColor=none;"+M(h,c,aa[l])),aa[l].value=f(h["Key"+(l+1)]),J[l]=new mxCell("",new mxGeometry(Qa,Fa,t-Qa,.6*h["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),J[l].vertex=!0,v.insert(J[l]),J[l].style+=P+a(h["Field"+(l+1)])+n(h["Field"+(l+1)])+w(h["Field"+
(l+1)]),v.style+=e(v.style,h,c,v),J[l].style=1==h.AltRows&&0!=l%2?J[l].style+"fillColor=#000000;fillOpacity=5;":J[l].style+("fillColor=none;"+M(h,c,J[l])),J[l].value=f(h["Field"+(l+1)]),Fa+=.6*h["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":P=ba(h,c);Da=.6*h.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+P+"startSize="+Da+";"+g(h.Name);v.style=h.ShadedHeader?
v.style+"fillColor=#e0e0e0;":v.style+ba(h,c);v.value=f(h.Name);v.style+=e(v.style,h,c,v,y);J=[];aa=[];Fa=Da;Qa=30;null!=h.Column1&&(Qa=.6*h.Column1);for(l=0;l<h.Fields;l++)N=0,aa[l]=new mxCell("",new mxGeometry(0,Fa,Qa,.6*h["Field"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),aa[l].vertex=!0,v.insert(aa[l]),aa[l].style+=P+a(h["Field"+(l+1)])+n(h["Field"+
(l+1)])+w(h["Field"+(l+1)]),aa[l].style=1==h.AltRows&&0!=l%2?aa[l].style+"fillColor=#000000;fillOpacity=5;":aa[l].style+("fillColor=none;"+M(h,c,aa[l])),aa[l].value=f(h["Field"+(l+1)]),aa[l].style+=e(aa[l].style,h,c,aa[l],y),J[l]=new mxCell("",new mxGeometry(Qa,Fa,t-Qa,.6*h["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
J[l].vertex=!0,v.insert(J[l]),J[l].style+=P+a(h["Type"+(l+1)])+n(h["Type"+(l+1)])+w(h["Type"+(l+1)]),J[l].style=1==h.AltRows&&0!=l%2?J[l].style+"fillColor=#000000;fillOpacity=5;":J[l].style+("fillColor=none;"+M(h,c,J[l])),J[l].value=f(h["Type"+(l+1)]),J[l].style+=e(J[l].style,h,c,J[l],y),Fa+=.6*h["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":P=ba(h,c);Da=.6*h.Name_h;P=P.replace("fillColor","swimlaneFillColor");""==P&&(P="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+
P+"startSize="+Da+";"+g(h.Name);v.style=h.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ba(h,c);v.value=f(h.Name);v.style+=e(v.style,h,c,v,y);var J=[],aa=[],Ra=[],Fa=Da,Qa=30,kd=40;null!=h.Column1&&(Qa=.6*h.Column1);null!=h.Column2&&(kd=.6*h.Column2);for(l=0;l<h.Fields;l++)N=0,aa[l]=new mxCell("",new mxGeometry(0,Fa,Qa,.6*h["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
aa[l].vertex=!0,v.insert(aa[l]),aa[l].style+=P+a(h["Key"+(l+1)])+n(h["Key"+(l+1)])+w(h["Key"+(l+1)]),aa[l].style=1==h.AltRows&&0!=l%2?aa[l].style+"fillColor=#000000;fillOpacity=5;":aa[l].style+("fillColor=none;"+M(h,c,aa[l])),aa[l].value=f(h["Key"+(l+1)]),aa[l].style+=e(aa[l].style,h,c,aa[l],y),J[l]=new mxCell("",new mxGeometry(Qa,Fa,t-Qa-kd,.6*h["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
J[l].vertex=!0,v.insert(J[l]),J[l].style+=P+a(h["Field"+(l+1)])+n(h["Field"+(l+1)])+w(h["Field"+(l+1)]),J[l].style=1==h.AltRows&&0!=l%2?J[l].style+"fillColor=#000000;fillOpacity=5;":J[l].style+("fillColor=none;"+M(h,c,J[l])),J[l].value=f(h["Field"+(l+1)]),J[l].style+=e(J[l].style,h,c,J[l],y),Ra[l]=new mxCell("",new mxGeometry(t-kd,Fa,kd,.6*h["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
Ra[l].vertex=!0,v.insert(Ra[l]),Ra[l].style+=P+a(h["Type"+(l+1)])+n(h["Type"+(l+1)])+w(h["Type"+(l+1)]),Ra[l].style=1==h.AltRows&&0!=l%2?Ra[l].style+"fillColor=#000000;fillOpacity=5;":Ra[l].style+("fillColor=none;"+M(h,c,Ra[l])),Ra[l].value=f(h["Type"+(l+1)]),Ra[l].style+=e(Ra[l].style,h,c,Ra[l],y),Fa+=.6*h["Key"+(l+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":ha("application_system",t,r,v,h,c);break;case "GCPServiceCardAuthorizationBlock":ha("internal_payment_authorization",t,r,v,h,
c);break;case "GCPServiceCardBlankBlock":ha("blank",t,r,v,h,c);break;case "GCPServiceCardReallyBlankBlock":ha("blank",t,r,v,h,c);break;case "GCPServiceCardBucketBlock":ha("bucket",t,r,v,h,c);break;case "GCPServiceCardCDNInterconnectBlock":ha("google_network_edge_cache",t,r,v,h,c);break;case "GCPServiceCardCloudDNSBlock":ha("blank",t,r,v,h,c);break;case "GCPServiceCardClusterBlock":ha("cluster",t,r,v,h,c);break;case "GCPServiceCardDiskSnapshotBlock":ha("persistent_disk_snapshot",t,r,v,h,c);break;case "GCPServiceCardEdgePopBlock":ha("google_network_edge_cache",
t,r,v,h,c);break;case "GCPServiceCardFrontEndPlatformServicesBlock":ha("frontend_platform_services",t,r,v,h,c);break;case "GCPServiceCardGatewayBlock":ha("gateway",t,r,v,h,c);break;case "GCPServiceCardGoogleNetworkBlock":ha("google_network_edge_cache",t,r,v,h,c);break;case "GCPServiceCardImageServicesBlock":ha("image_services",t,r,v,h,c);break;case "GCPServiceCardLoadBalancerBlock":ha("network_load_balancer",t,r,v,h,c);break;case "GCPServiceCardLocalComputeBlock":ha("dedicated_game_server",t,r,v,
h,c);break;case "GCPServiceCardLocalStorageBlock":ha("persistent_disk_snapshot",t,r,v,h,c);break;case "GCPServiceCardLogsAPIBlock":ha("logs_api",t,r,v,h,c);break;case "GCPServiceCardMemcacheBlock":ha("memcache",t,r,v,h,c);break;case "GCPServiceCardNATBlock":ha("nat",t,r,v,h,c);break;case "GCPServiceCardPaymentFormBlock":ha("external_payment_form",t,r,v,h,c);break;case "GCPServiceCardPushNotificationsBlock":ha("push_notification_service",t,r,v,h,c);break;case "GCPServiceCardScheduledTasksBlock":ha("scheduled_tasks",
@ -292,10 +292,10 @@ r)}Ha.vertex=!0;Ha.geometry.relative=!0;v.insert(Ha)}Ib++}}if(h.FillColor&&h.Fil
"shape=doubleArrow;arrowWidth="+(1-2*h.Notch)+";arrowSize="+Qd;v.value=f(h);v.style+=e(v.style,h,c,v,y);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":var fc,gc,hc;switch(Db){case "VPCSubnet2017":fc="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";gc=30;hc=35;break;case "VirtualPrivateCloudContainer2017":fc="shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";
gc=52;hc=36;break;case "ElasticBeanStalkContainer2017":fc="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";gc=30;hc=41;break;case "EC2InstanceContents2017":fc="shape=mxgraph.aws3.instance;fillColor=#F58536;";gc=40;hc=41;break;case "AWSCloudContainer2017":fc="shape=mxgraph.aws3.cloud;fillColor=#F58536;";gc=52;hc=36;break;case "CorporateDataCenterContainer2017":fc="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",gc=30,hc=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";
v.value=f(h);v.style+=e(v.style,h,c,v,y);v.geometry.y+=20;v.geometry.height-=20;xa=new mxCell("",new mxGeometry(20,-20,gc,hc),fc);xa.vertex=!0;v.insert(xa)}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(h.Title&&h.Text)try{var Ae=v.geometry,Be=new mxCell(f(h.Title),new mxGeometry(0,Ae.height,Ae.width,10),"strokeColor=none;fillColor=none;");Be.vertex=!0;v.insert(Be);v.style+=g(h.Title,y)}catch(Wb){console.log(Wb)}Ud(v,h);return v}function Ud(a,b){if(b.Text_TRotation||b.TextRotation)try{var d=
mxUtils.toDegree(b.Text_TRotation)+mxUtils.toDegree(b.TextRotation);if(0!=d&&a.value){var k=a.geometry.width,n=a.geometry.height,e=k,c=n,w=0,g=0;if(-90==d||-270==d)var e=n,c=k,x=Math.abs(n-k)/2,w=x/k,g=-x/n;var d=d+mxUtils.toDegree(b.Rotation),z=a.style.split(";").filter(function(a){return 0>a.indexOf("fillColor=")&&0>a.indexOf("strokeColor=")&&0>a.indexOf("rotation=")}).join(";"),f=new mxCell(a.value,new mxGeometry(w,g,e,c),z+"fillColor=none;strokeColor=none;rotation="+d+";");a.value=null;f.geometry.relative=
!0;f.vertex=!0;a.insert(f)}}catch(Ee){console.log(Ee)}}var Kb=0,Lb=0,y=!1,pd=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],qd=["fpDoor"],Tb={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;",Measure:"ERone;startSize=10;"},Jb={DefaultTextBlockNew:"strokeColor=none;fillColor=none",DefaultTextBlock:"strokeColor=none;fillColor=none",DefaultSquareBlock:"",RectangleBlock:"",
DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;fillColor=none",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document;boundedLbl=1",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon;perimeter=hexagonPerimeter2",
mxUtils.toDegree(b.Text_TRotation||0)+mxUtils.toDegree(b.TextRotation||0);if(!isNaN(d)&&0!=d&&a.value){var k=a.geometry.width,n=a.geometry.height,e=k,c=n,w=0,g=0;if(-90==d||-270==d)var e=n,c=k,x=Math.abs(n-k)/2,w=x/k,g=-x/n;var d=d+mxUtils.toDegree(b.Rotation),z=a.style.split(";").filter(function(a){return 0>a.indexOf("fillColor=")&&0>a.indexOf("strokeColor=")&&0>a.indexOf("rotation=")}).join(";"),f=new mxCell(a.value,new mxGeometry(w,g,e,c),z+"fillColor=none;strokeColor=none;rotation="+d+";");a.value=
null;f.geometry.relative=!0;f.vertex=!0;a.insert(f)}}catch(Ee){console.log(Ee)}}var Kb=0,Lb=0,y=!1,pd=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],qd=["fpDoor"],Tb={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;",Measure:"ERone;startSize=10;"},Jb={DefaultTextBlockNew:"strokeColor=none;fillColor=none",DefaultTextBlock:"strokeColor=none;fillColor=none",
DefaultSquareBlock:"",RectangleBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;fillColor=none",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document;boundedLbl=1",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon;perimeter=hexagonPerimeter2",
DataBlock:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DataBlockNew:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DatabaseBlock:"shape=cylinder3;size=4;anchorPointDirection=0;boundedLbl=1;",DirectAccessStorageBlock:"shape=cylinder3;direction=south;size=10;anchorPointDirection=0;boundedLbl=1;",InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;perimeter=trapezoidPerimeter;anchorPointDirection=0;flipV=1",
DelayBlock:"shape=delay",StoredDataBlock:"shape=cylinder3;boundedLbl=1;size=15;lid=0;direction=south;",MergeBlock:"triangle;direction=south;anchorPointDirection=0",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"mxCompositeShape",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",
RectangleContainerBlock:"container=1;collapsible=0",DiamondContainerBlock:"shape=rhombus;container=1;collapsible=0",RoundedRectangleContainerBlock:"container=1;rounded=1;absoluteArcSize=1;arcSize=24;collapsible=0",CircleContainerBlock:"ellipse;container=1;collapsible=0",PillContainerBlock:"shape=mxgraph.flowchart.terminator;container=1;collapsible=0",BraceBlock:"mxCompositeShape",BracketBlock:"mxCompositeShape",BraceBlockRotated:"mxCompositeShape",BracketBlockRotated:"mxCompositeShape",IsoscelesTriangleBlock:"shape=mxgraph.basic.acute_triangle;dx=0.5;anchorPointDirection=0",
@ -310,11 +310,11 @@ UMLPackageBlock:"",UMLConstraintBlock:"mxCompositeShape",UMLNoteBlock:"shape=not
UMLStartBlock:"ellipse;fillColor=#000000",UMLStateBlock:"mxCompositeShape",UMLDecisionBlock:"shape=rhombus;",UMLHForkJoinBlock:"fillColor=#000000",UMLVForkJoinBlock:"fillColor=#000000",UMLFlowFinalBlock:"shape=mxgraph.flowchart.or",UMLHistoryStateBlock:"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",UMLComponentBlockV2:"shape=component;align=left;spacingLeft=36",UMLNodeBlock:"shape=cube;size=12;flipH=1;verticalAlign=top;align=left;spacingTop=10;spacingLeft=5",
UMLNodeBlockV2:"shape=cube;size=12;flipH=1;verticalAlign=top;align=left;spacingTop=10;spacingLeft=5",UMLComponentInterfaceBlock:"ellipse",UMLComponentInterfaceBlockV2:"ellipse",UMLComponentBoxBlock:"mxCompositeShape",UMLComponentBoxBlockV2:"mxCompositeShape",UMLAssemblyConnectorBlock:"mxCompositeShape",UMLAssemblyConnectorBlockV2:"mxCompositeShape",UMLProvidedInterfaceBlock:"mxCompositeShape",UMLProvidedInterfaceBlockV2:"mxCompositeShape",UMLRequiredInterfaceBlock:"shape=requires;direction=north",
UMLRequiredInterfaceBlockV2:"shape=requires;direction=north",UMLSwimLaneBlockV2:"mxCompositeShape",UMLSwimLaneBlock:"swimlane;startSize=25;container=1;collapsible=0;dropTarget=0;fontStyle=0",UMLEntityBlock:"",UMLWeakEntityBlock:"shape=ext;double=1",UMLAttributeBlock:"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",BPMNTextAnnotation:"mxCompositeShape",DFDExternalEntityBlock:"mxCompositeShape",DFDExternalEntityBlock2:"",YDMDFDProcessBlock:"ellipse",YDMDFDDataStoreBlock:"shape=partialRectangle;right=0;left=0",GSDFDProcessBlock:"mxCompositeShape",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;align=left;",VSMExternalShipmentBoatBlock:"shape=mxgraph.lean_mapping.boat_shipment;verticalAlign=bottom;",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",
UMLRequiredInterfaceBlockV2:"shape=requires;direction=north",UMLSwimLaneBlockV2:"mxCompositeShape",UMLSwimLaneBlock:"swimlane;startSize=25;container=1;collapsible=0;dropTarget=0;fontStyle=0",UMLEntityBlock:"",UMLWeakEntityBlock:"shape=ext;double=1",UMLAttributeBlock:"ellipse",UMLMultivaluedAttributeBlock:"shape=doubleEllipse",UMLRelationshipBlock:"shape=rhombus",UMLWeakRelationshipBlock:"shape=rhombus;double=1",BPMNActivity:"mxCompositeShape",BPMNEvent:"mxCompositeShape",BPMNConversation:"mxCompositeShape",
BPMNGateway:"mxCompositeShape",BPMNData:"mxCompositeShape",BPMNDataStore:"shape=datastore",BPMNAdvancedPoolBlock:"mxCompositeShape",BPMNAdvancedPoolBlockRotated:"mxCompositeShape",BPMNBlackPool:"mxCompositeShape",BPMNTextAnnotation:"mxCompositeShape",DFDExternalEntityBlock:"mxCompositeShape",DFDExternalEntityBlock2:"",YDMDFDProcessBlock:"ellipse",YDMDFDDataStoreBlock:"shape=partialRectangle;right=0;left=0",GSDFDProcessBlock:"mxCompositeShape",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;align=left;",VSMExternalShipmentBoatBlock:"shape=mxgraph.lean_mapping.boat_shipment;verticalAlign=bottom;",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",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;anchorPointDirection=0",VSMKanbanPostBlock:"shape=mxgraph.lean_mapping.kanban_post",VSMShipmentArrow:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.13",VSMPushArrow:"shape=mxgraph.lean_mapping.push_arrow",AWSElasticComputeCloudBlock2:"mxCompositeShape",AWSInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.instance",
AWSInstancesBlock2:"strokeColor=none;shape=mxgraph.aws3.instances;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAMIBlock2:"strokeColor=none;shape=mxgraph.aws3.ami;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSDBonInstanceBlock2:"strokeColor=none;shape=mxgraph.aws3.db_on_instance;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSInstanceCloudWatchBlock2:"strokeColor=none;shape=mxgraph.aws3.instance_with_cloudwatch;verticalLabelPosition=bottom;align=center;verticalAlign=top",
AWSElasticIPBlock2:"strokeColor=none;shape=mxgraph.aws3.elastic_ip;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSHDFSClusterBlock2:"strokeColor=none;shape=mxgraph.aws3.hdfs_cluster;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSAutoScalingBlock2:"strokeColor=none;shape=mxgraph.aws3.auto_scaling;verticalLabelPosition=bottom;align=center;verticalAlign=top",AWSEC2OptimizedInstance2:"strokeColor=none;shape=mxgraph.aws3.optimized_instance;verticalLabelPosition=bottom;align=center;verticalAlign=top",
@ -686,7 +686,7 @@ CrbKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none
PspKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=psp",EtcdLabeledKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=etcd",EtcdKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=etcd",MasterLabeledKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=master",
MasterKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=master",NodeLabeledKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=node",NodeKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=node",ApiLabeledKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=api",
CcmLabeledKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=c_c_m",CmLabeledKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=c_m",KproxyLabeledKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=node",KubeletLabeledKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=kubelet",
SchedLabeledKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=sched",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",
SchedLabeledKub19:"html=1;verticalLabelPosition=bottom;verticalAlign=top;strokeColor=none;shape=mxgraph.kubernetes.icon;prIcon=sched",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:"ellipse",fpTableConferenceBoat:"",fpTableConferenceRectangle:"",fpTableDiningRound:"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:"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",
@ -714,33 +714,31 @@ PEBallValveBlock:"shape=mxgraph.pid2valves.valve;valveType=ball;verticalLabelPos
PEAngleValveBlock:"mxCompositeShape",PEAngleGlobeValveBlock:"mxCompositeShape",PEPoweredValveBlock:"mxCompositeShape",PEFloatOperatedValveBlock:"shape=mxgraph.pid2valves.valve;valveType=gate;actuator=singActing;verticalLabelPosition=bottom;verticalAlign=top",PENeedleValve2Block:"shape=mxgraph.pid2valves.valve;valveType=needle;verticalLabelPosition=bottom;verticalAlign=top",PEThreeWayValveBlock:"shape=mxgraph.pid2valves.valve;valveType=threeWay;actuator=none;verticalLabelPosition=bottom;verticalAlign=top",
PEBleederValveBlock:"shape=mxgraph.pid2valves.blockBleedValve;actuator=none;verticalLabelPosition=bottom;verticalAlign=top",PERotameterBlock:"shape=mxgraph.pid.flow_sensors.rotameter;flipH=1;verticalLabelPosition=bottom;verticalAlign=top",VennGradientColor1:"ellipse;fillOpacity=35",VennGradientColor2:"ellipse;fillOpacity=35",VennGradientColor3:"ellipse;fillOpacity=35",VennGradientColor4:"ellipse;fillOpacity=35",VennGradientColor5:"ellipse;fillOpacity=35",VennGradientColor6:"ellipse;fillOpacity=35",
VennGradientColor7:"ellipse;fillOpacity=35",VennGradientColor8:"ellipse;fillOpacity=35",VennPlainColor1:"ellipse;fillOpacity=35",VennPlainColor2:"ellipse;fillOpacity=35",VennPlainColor3:"ellipse;fillOpacity=35",VennPlainColor4:"ellipse;fillOpacity=35",VennPlainColor5:"ellipse;fillOpacity=35",VennPlainColor6:"ellipse;fillOpacity=35",VennPlainColor7:"ellipse;fillOpacity=35",VennPlainColor8:"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:"mxCompositeShape",UI2WindowBlock:"mxCompositeShape",UI2DialogBlock:"mxCompositeShape",UI2AreaBlock:"rounded=1;arcSize=3",UIAreaBlock:"rounded=1;arcSize=3;fillColor=none",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:"mxCompositeShape",UI2HSliderBlock:"mxCompositeShape",UI2DatePickerBlock:"mxCompositeShape",
UI2SearchBlock:"mxCompositeShape",UI2NumericStepperBlock:"mxCompositeShape",UI2TableBlock:"mxCompositeShape",UI2ButtonBarBlock:"mxCompositeShape",UI2VerticalButtonBarBlock:"mxCompositeShape",UI2LinkBarBlock:"mxCompositeShape",UI2BreadCrumbsBlock:"mxCompositeShape",UI2MenuBarBlock:"mxCompositeShape",UI2AtoZBlock:"mxCompositeShape",UI2PaginationBlock:"mxCompositeShape",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:"mxCompositeShape",UI2HelpIconBlock:"shape=mxgraph.mockup.misc.help_icon",UI2BraceNoteBlock:"mxCompositeShape",UI2TooltipBlock:"shape=mxgraph.basic.rectangular_callout;flipV=1",UI2TooltipSquareBlock:"mxCompositeShape",UI2CalloutBlock:"mxCompositeShape",UI2AlertBlock:"mxCompositeShape",Image_ipad_ipad:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iPadGrayBackgroundBlock:"",Image_ipad_top_bar:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc",
Image_ipad_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_ipad_alert_dialog:"mxCompositeShape",Image_ipad_dialog:"mxCompositeShape",Image_ipad_popover:"shape=mxgraph.ios.iOption;barPos=50;pointerPos=top;buttonText=",Image_ipad_table:"mxCompositeShape",Image_ipad_vtab:"mxCompositeShape",Image_ipad_button_black:"",Image_ipad_button_blue:"",Image_ipad_button_grayblue:"",Image_ipad_button_red:"",Image_ipad_back_button_gray:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#eeeeee;fillColor2=#aaaaaa",
Image_ipad_back_button_black:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#888888;fillColor2=#000000",Image_ipad_sort_handle:"shape=mxgraph.ios7.icons.options",Image_ipad_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_ipad_email_name:"",Image_ipad_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",Image_ipad_keyboard_portrait:"shape=mxgraph.ios.iKeybLett",Image_ipad_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",
Image_ipad_large_tabbed_button:"mxCompositeShape",Image_ipad_sort_button:"mxCompositeShape",Image_ipad_tab_bar:"mxCompositeShape",Image_ipad_slider:"shape=mxgraph.ios.iSlider;barPos=20",Image_ipad_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_ipad_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",
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",iOS7iPhoneKeyboard:"shape=mxgraph.ios7.misc.keyboard_(letters)",
iOS7StatusBariPad:"shape=mxgraph.ios7ui.appBar",iOS7iPadKeyboard:"shape=mxgraph.ios7.misc.keyboard_(letters)",iOS7ProgressBar:"shape=mxgraph.ios7ui.downloadBar",iOS7Slider:"shape=mxgraph.ios7ui.searchBox",iOS7SearchBar:"shape=mxgraph.ios7ui.searchBox",iOS7Button:"",iOS7TextField:"",iOS7TextView:"",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:"","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:"mxCompositeShape",UI2WindowBlock:"mxCompositeShape",UI2DialogBlock:"mxCompositeShape",UI2AreaBlock:"rounded=1;arcSize=3",UIAreaBlock:"rounded=1;arcSize=3;fillColor=none",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:"mxCompositeShape",UI2HSliderBlock:"mxCompositeShape",UI2DatePickerBlock:"mxCompositeShape",UI2SearchBlock:"mxCompositeShape",UI2NumericStepperBlock:"mxCompositeShape",UI2TableBlock:"mxCompositeShape",UI2ButtonBarBlock:"mxCompositeShape",UI2VerticalButtonBarBlock:"mxCompositeShape",UI2LinkBarBlock:"mxCompositeShape",UI2BreadCrumbsBlock:"mxCompositeShape",UI2MenuBarBlock:"mxCompositeShape",UI2AtoZBlock:"mxCompositeShape",UI2PaginationBlock:"mxCompositeShape",UI2ContextMenuBlock:"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:"mxCompositeShape",UI2HelpIconBlock:"shape=mxgraph.mockup.misc.help_icon",UI2BraceNoteBlock:"mxCompositeShape",UI2TooltipBlock:"shape=mxgraph.basic.rectangular_callout;flipV=1",UI2TooltipSquareBlock:"mxCompositeShape",
UI2CalloutBlock:"mxCompositeShape",UI2AlertBlock:"mxCompositeShape",Image_ipad_ipad:"shape=mxgraph.ios.iPad;bgStyle=bgGreen",iPadGrayBackgroundBlock:"",Image_ipad_top_bar:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc",Image_ipad_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_ipad_popover:"shape=mxgraph.ios.iOption;barPos=50;pointerPos=top;buttonText=",Image_ipad_button_black:"",Image_ipad_button_blue:"",Image_ipad_button_grayblue:"",Image_ipad_button_red:"",
Image_ipad_back_button_gray:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#eeeeee;fillColor2=#aaaaaa",Image_ipad_back_button_black:"shape=mxgraph.ios.iButtonBack;buttonText=;fillColor=#888888;fillColor2=#000000",Image_ipad_sort_handle:"shape=mxgraph.ios7.icons.options",Image_ipad_dropdown:"shape=mxgraph.ios.iComboBox;buttonText=;fillColor=#dddddd;fillColor2=#3D5565",Image_ipad_email_name:"",Image_ipad_prev_next:"shape=mxgraph.ios.iPrevNext;strokeColor=#444444;fillColor=#dddddd;fillColor2=#3D5565;fillColor3=#ffffff",
Image_ipad_keyboard_portrait:"shape=mxgraph.ios.iKeybLett",Image_ipad_keyboard_landscape:"shape=mxgraph.ios.iKeybLett",Image_ipad_slider:"shape=mxgraph.ios.iSlider;barPos=20",Image_ipad_add_icon_blue:"shape=mxgraph.ios.iAddIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_add_icon_green:"shape=mxgraph.ios.iAddIcon;fillColor=#7AdF78;fillColor2=#1A9917;strokeColor=#ffffff",Image_ipad_remove_icon:"shape=mxgraph.ios.iDeleteIcon;fillColor=#e8878E;fillColor2=#BD1421;strokeColor=#ffffff",
Image_ipad_arrow_icon:"shape=mxgraph.ios.iArrowIcon;fillColor=#8BbEff;fillColor2=#135Ec8;strokeColor=#ffffff",Image_ipad_arrow:"shape=mxgraph.ios7.misc.more",Image_ipad_checkmark:"shape=mxgraph.ios7.misc.check",Image_ipad_check_off:"ellipse",Image_ipad_location_dot:"ellipse",Image_ipad_mark_as_read:"ellipse",Image_ipad_pin_green:"shape=mxgraph.ios.iPin;fillColor2=#00dd00;fillColor3=#004400;strokeColor=#006600",Image_ipad_pin_red:"shape=mxgraph.ios.iPin;fillColor2=#dd0000;fillColor3=#440000;strokeColor=#660000",
Image_ipad_radio_off:"ellipse",Image_ipad_checkbox_off:"absoluteArcSize=1;arcSize=6;rounded=1",Image_ipad_indicator:"absoluteArcSize=1;arcSize=6;rounded=1;fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_iphone_4:"shape=mxgraph.ios.iPhone;bg=bgGreen",Image_iphone_bg_black:"",Image_iphone_bg_gray:"",Image_iphone_bg_stripe_drk:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",Image_iphone_bg_stripe_lt:"shape=mxgraph.ios.iBgStriped;strokeColor=#18211b;fillColor=#5D7585;strokeColor2=#657E8F",
Image_iphone_bg_white:"",Image_iphone_top_bar_app:"shape=mxgraph.ios.iAppBar",Image_iphone_top_bar_home:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc;strokeWidth=1",Image_iphone_bar_top:"",Image_iphone_bar_semi_trans_black:"",Image_iphone_bar_semi_trans_blue:"",Image_iphone_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_iphone_table:"mxCompositeShape",Image_iphone_table_w_buttons:"mxCompositeShape",Image_iphone_table_w_icons:"mxCompositeShape",
Image_iphone_list:"mxCompositeShape",Image_iphone_gray_grad_list:"",Image_iphone_dialog:"mxCompositeShape",Image_iphone_scroll_pane:"mxCompositeShape",Image_iphone_alpha_list:"shape=mxgraph.ios.iAlphaList",Image_iphone_button_black:"",Image_iphone_button_blue:"",Image_iphone_button_grayblue:"",Image_iphone_button_red:"",Image_iphone_button_lg_light:"",Image_iphone_button_lg_dark:"",Image_iphone_button_lg_green:"",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_bg_white:"",Image_iphone_top_bar_app:"shape=mxgraph.ios.iAppBar",Image_iphone_top_bar_home:"shape=mxgraph.ios.iTopBar2;opacity=50;fillColor=#999999;strokeColor=#cccccc;strokeWidth=1",Image_iphone_bar_top:"",Image_iphone_bar_semi_trans_black:"",Image_iphone_bar_semi_trans_blue:"",Image_iphone_search:"shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1",Image_iphone_alpha_list:"shape=mxgraph.ios.iAlphaList",Image_iphone_button_black:"",Image_iphone_button_blue:"",Image_iphone_button_grayblue:"",
Image_iphone_button_red:"",Image_iphone_button_lg_light:"",Image_iphone_button_lg_dark:"",Image_iphone_button_lg_green:"",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_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:"ellipse",Image_iphone_location_dot:"ellipse",
Image_iphone_mark_as_read:"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:"ellipse",Image_iphone_checkbox_off:"",Image_iphone_indicator:"fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_thread_count:"",AmazonAthena2017:"shape=mxgraph.aws3.athena;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",
Image_iphone_mark_as_read:"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:"ellipse",Image_iphone_indicator:"fillColor=#e8878E;gradientColor=#BD1421;strokeColor=#ffffff",Image_iphone_thread_count:"",AmazonAthena2017:"shape=mxgraph.aws3.athena;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",
AmazonCloudSearch2017:"shape=mxgraph.aws3.cloudsearch;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",AmazonCloudSearchsearchdocuments2017:"shape=mxgraph.aws3.search_documents;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",AmazonEMR2017:"shape=mxgraph.aws3.emr;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",AmazonEMRcluster2017:"shape=mxgraph.aws3.emr_cluster;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",
AmazonEMREMRengine2017:"shape=mxgraph.aws3.emr_engine;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",AmazonEMREMRengineMapRM32017:"shape=mxgraph.aws3.emr_engine_mapr_m3;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",AmazonEMREMRengineMapRM52017:"shape=mxgraph.aws3.emr_engine_mapr_m5;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",AmazonEMREMRengineMapRM72017:"shape=mxgraph.aws3.emr_engine_mapr_m7;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",
AmazonEMRHDFScluster2017:"shape=mxgraph.aws3.hdfs_cluster;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",AmazonES2017:"shape=mxgraph.aws3.elasticsearch_service;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",AmazonKinesis2017:"shape=mxgraph.aws3.kinesis;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",AmazonKinesisAmazonKinesisAnalytics2017:"shape=mxgraph.aws3.kinesis_analytics;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top",
@ -1000,8 +998,8 @@ E.getShapeType()),e):x(a,b,n,c,e,g)}return null}function C(a,b){var d=mxUtils.cr
Math.ceil((e.y-g.y/w)/a.pageFormat.height)*a.pageFormat.height;E.save();E.translate(-e.x,-e.y);E.scale(1/w);E.newPage();w=a.model.getChildCells(a.model.root);e={};for(g=0;g<w.length;g++)e[w[g].id]=g;for(var x in c.cells)w=c.cells[x],g=null!=w.parent?e[w.parent.id]:null,null!=g&&(w=z(w,g,a,d,b.pageHeight),null!=w&&n.appendChild(w));n=q(d,F.XMLNS,"Connects");k.appendChild(n);for(x in c.cells)w=c.cells[x],w.edge&&(w.source&&(e=q(d,F.XMLNS,"Connect"),e.setAttribute("FromSheet",m(w.id)),e.setAttribute("FromCell",
"BeginX"),e.setAttribute("ToSheet",m(w.source.id)),n.appendChild(e)),w.target&&(e=q(d,F.XMLNS,"Connect"),e.setAttribute("FromSheet",m(w.id)),e.setAttribute("FromCell","EndX"),e.setAttribute("ToSheet",m(w.target.id)),n.appendChild(e)));d.appendChild(k);E.restore();return d}function A(a,b,d,k){a.file(b,(k?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(d,"\n"))}function B(a,d,k,n){var c=mxUtils.createXmlDocument(),w=mxUtils.createXmlDocument(),g=q(c,F.XMLNS,"Pages");g.setAttributeNS("http://www.w3.org/2000/xmlns/",
"xmlns",F.XMLNS);g.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",F.XMLNS_R);var x=q(w,F.RELS_XMLNS,"Relationships"),z=1,f;for(f in d){var C="page"+z+".xml",m=q(c,F.XMLNS,"Page");m.setAttribute("ID",z-1);m.setAttribute("NameU",f);m.setAttribute("Name",f);var B=q(c,F.XMLNS,"PageSheet"),D=n[f];B.appendChild(e("PageWidth",D.pageWidth,c));B.appendChild(e("PageHeight",D.pageHeight,c));B.appendChild(b("PageScale",D.pageScale,c));B.appendChild(b("DrawingScale",1,c));D=q(c,F.XMLNS,"Rel");D.setAttributeNS(F.XMLNS_R,
"r:id","rId"+z);var H=q(c,F.XMLNS,"Section");H.setAttribute("N","Layer");for(var E=k[f],Q=0;Q<E.length;Q++){var N=q(c,F.XMLNS,"Row");N.setAttribute("IX",Q+"");H.appendChild(N);N.appendChild(b("Name",E[Q].name,c));N.appendChild(b("Color","255",c));N.appendChild(b("Status","0",c));N.appendChild(b("Visible",E[Q].visible?"1":"0",c));N.appendChild(b("Print","1",c));N.appendChild(b("Active","0",c));N.appendChild(b("Lock",E[Q].locked?"1":"0",c));N.appendChild(b("Snap","1",c));N.appendChild(b("Glue","1",
c));N.appendChild(b("NameUniv",E[Q].name,c));N.appendChild(b("ColorTrans","0",c))}B.appendChild(H);m.appendChild(B);m.appendChild(D);g.appendChild(m);m=q(w,F.RELS_XMLNS,"Relationship");m.setAttribute("Id","rId"+z);m.setAttribute("Type",F.PAGES_TYPE);m.setAttribute("Target",C);x.appendChild(m);A(a,F.VISIO_PAGES+C,d[f]);z++}c.appendChild(g);w.appendChild(x);A(a,F.VISIO_PAGES+"pages.xml",c);A(a,F.VISIO_PAGES+"_rels/pages.xml.rels",w)}function D(a,b){var d=F.VISIO_PAGES_RELS+"page"+b+".xml.rels",k=mxUtils.createXmlDocument(),
"r:id","rId"+z);var H=q(c,F.XMLNS,"Section");H.setAttribute("N","Layer");for(var E=k[f],Q=0;Q<E.length;Q++){var M=q(c,F.XMLNS,"Row");M.setAttribute("IX",Q+"");H.appendChild(M);M.appendChild(b("Name",E[Q].name,c));M.appendChild(b("Color","255",c));M.appendChild(b("Status","0",c));M.appendChild(b("Visible",E[Q].visible?"1":"0",c));M.appendChild(b("Print","1",c));M.appendChild(b("Active","0",c));M.appendChild(b("Lock",E[Q].locked?"1":"0",c));M.appendChild(b("Snap","1",c));M.appendChild(b("Glue","1",
c));M.appendChild(b("NameUniv",E[Q].name,c));M.appendChild(b("ColorTrans","0",c))}B.appendChild(H);m.appendChild(B);m.appendChild(D);g.appendChild(m);m=q(w,F.RELS_XMLNS,"Relationship");m.setAttribute("Id","rId"+z);m.setAttribute("Type",F.PAGES_TYPE);m.setAttribute("Target",C);x.appendChild(m);A(a,F.VISIO_PAGES+C,d[f]);z++}c.appendChild(g);w.appendChild(x);A(a,F.VISIO_PAGES+"pages.xml",c);A(a,F.VISIO_PAGES+"_rels/pages.xml.rels",w)}function D(a,b){var d=F.VISIO_PAGES_RELS+"page"+b+".xml.rels",k=mxUtils.createXmlDocument(),
n=q(k,F.RELS_XMLNS,"Relationships"),c=q(k,F.RELS_XMLNS,"Relationship");c.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");c.setAttribute("Id","rId1");c.setAttribute("Target","../masters/master1.xml");n.appendChild(c);var e=E.images;if(0<e.length)for(var w=0;w<e.length;w++)c=q(k,F.RELS_XMLNS,"Relationship"),c.setAttribute("Type",F.XMLNS_R+"/image"),c.setAttribute("Id","rId"+(w+2)),c.setAttribute("Target","../media/"+e[w]),n.appendChild(c);k.appendChild(n);A(a,d,k)}
var F=this,E=new mxVsdxCanvas2D,H={},ea=1;this.exportCurrentDiagrams=function(){try{if(c.spinner.spin(document.body,mxResources.get("exporting"))){var a=function(a,b){var d=a.model.getChildCells(a.model.root);k[b]=[];for(var n=0;n<d.length;n++)d[n].visible&&k[b].push({name:d[n].value||"Background",visible:d[n].visible,locked:d[n].style&&0<=d[n].style.indexOf("locked=1")})},b=new JSZip;E.init(b);H={};ea=1;var d={},k={},n={},e=null!=c.pages?c.pages.length:1;if(null!=c.pages){for(var w=c.editor.graph.getSelectionCells(),
x=c.currentPage,z=0;z<c.pages.length;z++){var m=c.pages[z];c.currentPage!=m&&c.selectPage(m,!0);var q=m.getName(),A=c.editor.graph,F=null;null!=A.themes&&"darkTheme"==A.defaultThemeName&&(F=A.stylesheet,A.stylesheet=A.getDefaultStylesheet(),A.refresh());try{var qa=g(A);d[q]=C(A,qa);a(A,q);D(b,z+1);n[q]=qa}finally{null!=F&&(A.stylesheet=F,A.refresh())}}x!=c.currentPage&&c.selectPage(x,!0);c.editor.graph.setSelectionCells(w)}else A=c.editor.graph,qa=g(A),q="Page1",d[q]=C(A,qa),a(A,q),D(b,1),n[q]=qa;
@ -1029,8 +1027,8 @@ mxVsdxCanvas2D.prototype.image=function(c,f,q,m,g,e,b,a){var d=this,k="image"+(t
!1;0==n.indexOf("svg")&&(n="png",w=!0);k+=n;e=new XMLHttpRequest;e.open("GET",g,!0);e.responseType="arraybuffer";e.onreadystatechange=function(a){if(4==this.readyState&&(200==this.status&&(w?d.convertSvg2Png(this.response,!1,function(a){d.zip.file("visio/media/"+k,a.substring(22),{base64:!0})}):d.zip.file("visio/media/"+k,this.response)),d.filesLoading--,0==d.filesLoading))d.onFilesLoaded()};e.send()}this.images.push(k);this.shapeImg={type:n,id:this.images.length+1};g=this.state;q*=g.scale;m*=g.scale;
n=this.xmGeo;c=(c-n.x+g.dx)*g.scale;f=(n.height-f+n.y-g.dy)*g.scale;this.shape.appendChild(this.createCellElemScaled("ImgOffsetX",c));this.shape.appendChild(this.createCellElemScaled("ImgOffsetY",f-m));this.shape.appendChild(this.createCellElemScaled("ImgWidth",q));this.shape.appendChild(this.createCellElemScaled("ImgHeight",m))};
mxVsdxCanvas2D.prototype.text=function(c,f,q,m,g,e,b,a,d,k,n,w,x){var z=this;if(this.textEnabled&&null!=g){mxUtils.isNode(g)&&(g=mxUtils.getOuterHtml(g));0==q&&0==m&&(m=mxUtils.getSizeForString(g,z.cellState.style.fontSize,z.cellState.style.fontFamily),q=2*m.width,m=2*m.height);"html"==d&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(g=g.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=Graph.sanitizeHtml(g),
g=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));k=this.state;n=this.xmGeo;q*=k.scale;m*=k.scale;var C=this.createElt("Section");C.setAttribute("N","Character");var A=this.createElt("Section");A.setAttribute("N","Paragraph");var B=this.createElt("Text"),D=0,F=0,E=0,H=0,ea=0,Q=0,N=0,ca=function(b,d,k,n,c){var e=b.fontSize,w=b.fontFamily,g=mxUtils.getSizeForString(c,e,w);a&&g.width>q&&(g=mxUtils.getSizeForString(c,e,w,q));b.blockElem?(ea+=g.width,E=Math.min(Math.max(E,ea),q),ea=0,Q=
Math.max(Q,g.height),H+=Q+N,N=Q,Q=0):(ea+=g.width,E=Math.min(Math.max(E,ea),q),Q=Math.max(Q,g.height),H=Math.max(H,Q));g=z.createElt("Row");g.setAttribute("IX",D);b.fontColor&&g.appendChild(z.createCellElem("Color",b.fontColor));e&&g.appendChild(z.createCellElemScaled("Size",.97*e));w&&g.appendChild(z.createCellElem("Font",w));e=0;b.bold&&(e|=17);b.italic&&(e|=34);b.underline&&(e|=4);g.appendChild(z.createCellElem("Style",e));g.appendChild(z.createCellElem("Case","0"));g.appendChild(z.createCellElem("Pos",
g=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));k=this.state;n=this.xmGeo;q*=k.scale;m*=k.scale;var C=this.createElt("Section");C.setAttribute("N","Character");var A=this.createElt("Section");A.setAttribute("N","Paragraph");var B=this.createElt("Text"),D=0,F=0,E=0,H=0,ea=0,Q=0,M=0,ca=function(b,d,k,n,c){var e=b.fontSize,w=b.fontFamily,g=mxUtils.getSizeForString(c,e,w);a&&g.width>q&&(g=mxUtils.getSizeForString(c,e,w,q));b.blockElem?(ea+=g.width,E=Math.min(Math.max(E,ea),q),ea=0,Q=
Math.max(Q,g.height),H+=Q+M,M=Q,Q=0):(ea+=g.width,E=Math.min(Math.max(E,ea),q),Q=Math.max(Q,g.height),H=Math.max(H,Q));g=z.createElt("Row");g.setAttribute("IX",D);b.fontColor&&g.appendChild(z.createCellElem("Color",b.fontColor));e&&g.appendChild(z.createCellElemScaled("Size",.97*e));w&&g.appendChild(z.createCellElem("Font",w));e=0;b.bold&&(e|=17);b.italic&&(e|=34);b.underline&&(e|=4);g.appendChild(z.createCellElem("Style",e));g.appendChild(z.createCellElem("Case","0"));g.appendChild(z.createCellElem("Pos",
"0"));g.appendChild(z.createCellElem("FontScale","1"));g.appendChild(z.createCellElem("Letterspace","0"));d.appendChild(g);d=z.createElt("Row");d.setAttribute("IX",F);switch(b.align){case "left":e=0;break;case "center":e=1;break;case "right":e=2;break;case "start":e=0;break;case "end":e=2;break;case "justify":e=0;break;default:e=1}d.appendChild(z.createCellElem("HorzAlign",e));k.appendChild(d);k=z.createElt("cp");k.setAttribute("IX",D++);n.appendChild(k);b=z.xmlDoc.createTextNode(c+(b.blockElem?"\n":
""));n.appendChild(b)},U=function(a,b){b=b||{};for(var d=0;d<a.length;d++){var k=a[d];if(3==k.nodeType){var n=z.cellState.style.fontStyle,c={fontColor:b.fontColor||z.cellState.style.fontColor,fontSize:b.fontSize||z.cellState.style.fontSize,fontFamily:b.fontFamily||z.cellState.style.fontFamily,align:b.align||z.cellState.style.align,bold:b.bold||n&1,italic:b.italic||n&2,underline:b.underline||n&4},n=!1;d+1<a.length&&"BR"==a[d+1].nodeName.toUpperCase()&&(n=!0,d++);ca(c,C,A,B,(b.OL?b.LiIndex+". ":"")+
k.textContent+(n?"\n":""))}else if(1==k.nodeType){var n=k.nodeName.toUpperCase(),e=k.childNodes.length,c=window.getComputedStyle(k,null),w="bold"==c.getPropertyValue("font-weight")||b.bold,g="italic"==c.getPropertyValue("font-style")||b.italic,x=0<=c.getPropertyValue("text-decoration").indexOf("underline")||b.underline,f=c.getPropertyValue("text-align"),m;m=c.getPropertyValue("color");m=(m=m.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===m.length?"#"+("0"+parseInt(m[1],
@ -1107,8 +1105,8 @@ f.mxVssxCodec=m;m.__class="com.mxgraph.io.mxVssxCodec"})(f.io||(f.io={}))})(c.mx
(function(c){(function(c){(function(c){(function(c){(function(c){var e=function(){function b(a,b,k){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=b;this.y=k}b.prototype.getX=function(){return this.x};b.prototype.getY=function(){return this.y};b.prototype.getA=function(){return this.a};b.prototype.getB=function(){return this.b};b.prototype.getC=function(){return this.c};b.prototype.getD=function(){return this.d};b.prototype.getFormulaA=
function(){return this.formulaA};b.prototype.getFormulaE=function(){return this.formulaE};b.prototype.getIndex=function(){return this.index};return b}();c.Row=e;e.__class="com.mxgraph.io.vsdx.geometry.Row"})(c.geometry||(c.geometry={}))})(c.vsdx||(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
(function(c){(function(f){(function(f){(function(f){(function(g){var e=function(){function b(){}b.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))||1}catch(d){return 1}};b.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var b=parseFloat(a);if(isFinite(b))return b}}catch(k){}return null};b.getRowObj=function(a,d){var k=a.getAttribute("T"),n=b.getIndex(a),e;e=(e=a.getAttribute("Del"))&&e.equals?e.equals("1"):"1"===e;if(!e){var g=null;n<=d.length&&(g=d[n-1]);var f=e=null,m=null,
q=null,B=null,D=null,F=null,E=null;null!=g&&(e=g.x,f=g.y,m=g.getA(),q=g.getB(),B=g.getC(),D=g.getD(),E=g.getFormulaA(),F=g.getFormulaE());for(var g=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),H=0;H<g.length;H++){var ea=g[H],Q=ea.getAttribute("N"),N=ea.getAttribute("V");switch(Q){case "X":e=b.getDoubleVal(N);break;case "Y":f=b.getDoubleVal(N);break;case "A":m=b.getDoubleVal(N);E=ea.getAttribute("V");break;case "B":q=b.getDoubleVal(N);break;case "C":B=b.getDoubleVal(N);break;case "D":D=
b.getDoubleVal(N);break;case "E":F=N}}switch(k){case "MoveTo":return new c.mxgraph.io.vsdx.geometry.MoveTo(n,e,f);case "LineTo":return new c.mxgraph.io.vsdx.geometry.LineTo(n,e,f);case "ArcTo":return new c.mxgraph.io.vsdx.geometry.ArcTo(n,e,f,m);case "Ellipse":return new c.mxgraph.io.vsdx.geometry.Ellipse(n,e,f,m,q,B,D);case "EllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.EllipticalArcTo(n,e,f,m,q,B,D);case "InfiniteLine":return new c.mxgraph.io.vsdx.geometry.InfiniteLine(n,e,f,m,q);case "NURBSTo":return new c.mxgraph.io.vsdx.geometry.NURBSTo(n,
q=null,B=null,D=null,F=null,E=null;null!=g&&(e=g.x,f=g.y,m=g.getA(),q=g.getB(),B=g.getC(),D=g.getD(),E=g.getFormulaA(),F=g.getFormulaE());for(var g=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),H=0;H<g.length;H++){var ea=g[H],Q=ea.getAttribute("N"),M=ea.getAttribute("V");switch(Q){case "X":e=b.getDoubleVal(M);break;case "Y":f=b.getDoubleVal(M);break;case "A":m=b.getDoubleVal(M);E=ea.getAttribute("V");break;case "B":q=b.getDoubleVal(M);break;case "C":B=b.getDoubleVal(M);break;case "D":D=
b.getDoubleVal(M);break;case "E":F=M}}switch(k){case "MoveTo":return new c.mxgraph.io.vsdx.geometry.MoveTo(n,e,f);case "LineTo":return new c.mxgraph.io.vsdx.geometry.LineTo(n,e,f);case "ArcTo":return new c.mxgraph.io.vsdx.geometry.ArcTo(n,e,f,m);case "Ellipse":return new c.mxgraph.io.vsdx.geometry.Ellipse(n,e,f,m,q,B,D);case "EllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.EllipticalArcTo(n,e,f,m,q,B,D);case "InfiniteLine":return new c.mxgraph.io.vsdx.geometry.InfiniteLine(n,e,f,m,q);case "NURBSTo":return new c.mxgraph.io.vsdx.geometry.NURBSTo(n,
e,f,m,q,B,D,F);case "PolylineTo":return new c.mxgraph.io.vsdx.geometry.PolylineTo(n,e,f,E);case "RelCubBezTo":return new c.mxgraph.io.vsdx.geometry.RelCubBezTo(n,e,f,m,q,B,D);case "RelEllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(n,e,f,m,q,B,D);case "RelLineTo":return new c.mxgraph.io.vsdx.geometry.RelLineTo(n,e,f);case "RelMoveTo":return new c.mxgraph.io.vsdx.geometry.RelMoveTo(n,e,f);case "RelQuadBezTo":return new c.mxgraph.io.vsdx.geometry.RelQuadBezTo(n,e,f,m,q);case "SplineKnot":return new c.mxgraph.io.vsdx.geometry.SplineKnot(n,
e,f,m);case "SplineStart":return new c.mxgraph.io.vsdx.geometry.SplineStart(n,e,f,m,q,B,D)}}return new c.mxgraph.io.vsdx.geometry.DelRow(n)};return b}();g.RowFactory=e;e.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(f.geometry||(f.geometry={}))})(f.vsdx||(f.vsdx={}))})(f.io||(f.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
(function(c){(function(f){(function(f){(function(f){var g=function(){function e(){this.colorElementMap={};this.fontElementMap={}}e.__static_initialize=function(){e.__static_initialized||(e.__static_initialized=!0,e.__static_initializer_0())};e.defaultColors_$LI$=function(){e.__static_initialize();null==e.defaultColors&&(e.defaultColors={});return e.defaultColors};e.__static_initializer_0=function(){e.defaultColors_$LI$()["0"]="#000000";e.defaultColors_$LI$()["1"]="#FFFFFF";e.defaultColors_$LI$()["2"]=
@ -1294,9 +1292,9 @@ m=this.b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),m=d-m,q=this.c*c.
'" y="'+(new String(d)).toString()+'"/><arc rx="'+(new String(k)).toString()+'" ry="'+(new String(D)).toString()+'" x="'+(new String(e)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/><arc rx="'+(new String(k)).toString()+'" ry="'+(new String(D)).toString()+'" x="'+(new String(q)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/>'}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);g.Ellipse=
e;e.__class="com.mxgraph.io.vsdx.geometry.Ellipse"})(f.geometry||(f.geometry={}))})(f.vsdx||(f.vsdx={}))})(f.io||(f.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
(function(c){(function(f){(function(f){(function(f){(function(g){var e=function(b){function a(a,c,e,g,f,m,q){a=b.call(this,a,c,e)||this;a.a=g;a.b=f;a.c=m;a.d=q;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),k=b.getWidth(),e=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=d-g,f=this.a*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
m=this.b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),q=this.c,D=this.d,e=100*e/k,g=100*g/d,F=b.getLastX()*k/100,E=b.getLastY()*d/100,H=e*k/100,ea=g*d/100,Q=d-m,N=-q,q=Math.sqrt(F*F+E*E)*Math.cos(Math.atan2(E,F)-N),m=Math.sqrt(F*F+E*E)*Math.sin(Math.atan2(E,F)-N),ca=Math.sqrt(H*H+ea*ea)*Math.cos(Math.atan2(ea,H)-N),U=Math.sqrt(H*H+ea*ea)*Math.sin(Math.atan2(ea,H)-N),T=Math.sqrt(f*f+Q*Q)*Math.cos(Math.atan2(Q,f)-N),ga=Math.sqrt(f*f+Q*Q)*Math.sin(Math.atan2(Q,f)-N),ka=((q-ca)*(q+ca)*(U-ga)-
(ca-T)*(ca+T)*(m-U)+D*D*(m-U)*(U-ga)*(m-ga))/(2*((q-ca)*(U-ga)-(ca-T)*(m-U))),ba=((q-ca)*(ca-T)*(q-T)/(D*D)+(ca-T)*(m-U)*(m+U)-(q-ca)*(U-ga)*(U+ga))/(2*((ca-T)*(m-U)-(q-ca)*(U-ga))),eb=q-ka,xb=m-ba,eb=Math.sqrt(eb*eb+xb*xb*D*D),D=eb/D,N=180*N/Math.PI,e=Math.round(100*e)/100,g=Math.round(100*g)/100,eb=Math.round(100*eb/k*100)/100,D=Math.round(100*D/d*100)/100,N=Math.round(100*N)/100,d=0<(H-F)*(Q-E)-(ea-E)*(f-F)?"0":"1",k="0";c.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(ka,ba,q,m,ca,U,T,ga)&&(k="1");
b.setLastX(e);b.setLastY(g);return'<arc rx="'+(new String(eb)).toString()+'" ry="'+(new String(D)).toString()+'" x="'+(new String(e)).toString()+'" y="'+(new String(g)).toString()+'" x-axis-rotation="'+(new String(N)).toString()+'" large-arc-flag="'+k+'" sweep-flag="'+d+'"/>'}return""};a.prototype.isReflexAngle=function(a,b,c,e,g,f,m,q){c-=a;e-=b;f-=b;g=m-a;q-=b;b=a=0;c=180*(Math.atan2(e,c)-Math.atan2(b,a))/Math.PI;g=180*(Math.atan2(f,g)-Math.atan2(b,a))/Math.PI;a=180*(Math.atan2(q,m)-Math.atan2(b,
m=this.b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),q=this.c,D=this.d,e=100*e/k,g=100*g/d,F=b.getLastX()*k/100,E=b.getLastY()*d/100,H=e*k/100,ea=g*d/100,Q=d-m,M=-q,q=Math.sqrt(F*F+E*E)*Math.cos(Math.atan2(E,F)-M),m=Math.sqrt(F*F+E*E)*Math.sin(Math.atan2(E,F)-M),ca=Math.sqrt(H*H+ea*ea)*Math.cos(Math.atan2(ea,H)-M),U=Math.sqrt(H*H+ea*ea)*Math.sin(Math.atan2(ea,H)-M),T=Math.sqrt(f*f+Q*Q)*Math.cos(Math.atan2(Q,f)-M),ga=Math.sqrt(f*f+Q*Q)*Math.sin(Math.atan2(Q,f)-M),ka=((q-ca)*(q+ca)*(U-ga)-
(ca-T)*(ca+T)*(m-U)+D*D*(m-U)*(U-ga)*(m-ga))/(2*((q-ca)*(U-ga)-(ca-T)*(m-U))),ba=((q-ca)*(ca-T)*(q-T)/(D*D)+(ca-T)*(m-U)*(m+U)-(q-ca)*(U-ga)*(U+ga))/(2*((ca-T)*(m-U)-(q-ca)*(U-ga))),eb=q-ka,xb=m-ba,eb=Math.sqrt(eb*eb+xb*xb*D*D),D=eb/D,M=180*M/Math.PI,e=Math.round(100*e)/100,g=Math.round(100*g)/100,eb=Math.round(100*eb/k*100)/100,D=Math.round(100*D/d*100)/100,M=Math.round(100*M)/100,d=0<(H-F)*(Q-E)-(ea-E)*(f-F)?"0":"1",k="0";c.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(ka,ba,q,m,ca,U,T,ga)&&(k="1");
b.setLastX(e);b.setLastY(g);return'<arc rx="'+(new String(eb)).toString()+'" ry="'+(new String(D)).toString()+'" x="'+(new String(e)).toString()+'" y="'+(new String(g)).toString()+'" x-axis-rotation="'+(new String(M)).toString()+'" large-arc-flag="'+k+'" sweep-flag="'+d+'"/>'}return""};a.prototype.isReflexAngle=function(a,b,c,e,g,f,m,q){c-=a;e-=b;f-=b;g=m-a;q-=b;b=a=0;c=180*(Math.atan2(e,c)-Math.atan2(b,a))/Math.PI;g=180*(Math.atan2(f,g)-Math.atan2(b,a))/Math.PI;a=180*(Math.atan2(q,m)-Math.atan2(b,
a))/Math.PI;c=(c-a)%360;g=(g-a)%360;180<c?c-=360:-180>c&&(c+=360);180<g?g-=360:-180>g&&(g+=360);return(0<c&&0>g||0>c&&0<g)&&180<Math.abs(c-g)?!0:!1};return a}(c.mxgraph.io.vsdx.geometry.Row);g.EllipticalArcTo=e;e.__class="com.mxgraph.io.vsdx.geometry.EllipticalArcTo"})(f.geometry||(f.geometry={}))})(f.vsdx||(f.vsdx={}))})(f.io||(f.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
(function(c){(function(f){(function(f){(function(f){(function(g){var e=function(b){function a(a,c,e,g,f){a=b.call(this,a,c,e)||this;a.a=g;a.b=f;return a}__extends(a,b);a.prototype.handle=function(a,b){return""};return a}(c.mxgraph.io.vsdx.geometry.Row);g.InfiniteLine=e;e.__class="com.mxgraph.io.vsdx.geometry.InfiniteLine"})(f.geometry||(f.geometry={}))})(f.vsdx||(f.vsdx={}))})(f.io||(f.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
(function(c){(function(f){(function(f){(function(f){(function(g){var e=function(b){function a(a,c,e){return b.call(this,a,c,e)||this}__extends(a,b);a.prototype.handle=function(a,b){var d=a.x,k=a.y,e=b.getHeight(),g=b.getWidth();null!=this.x&&null!=this.y&&(d=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());d=Math.round(100*d/g*100)/100;k=Math.round(100*(100-100*k/e))/100;a.x=d;a.y=k;b.setLastX(d);b.setLastY(k);return'<line x="'+
@ -1387,23 +1385,23 @@ this.geomListProcessed=!0}};b.prototype.parseShapeElem=function(a,d){e.prototype
a.equals?a.equals(b):a===b}(f,"Enhanced Metafile")||function(a,b){return a&&a.equals?a.equals(b):a===b}(f,"EnhMetaFile"))g="png";else if("Object"==f){if(m=k(a,n),0<m.type.indexOf("/oleObject"))if(g=d.getRelationship("rId1","visio/embeddings/_rels/"+m.target+".rels"),null!=g){m=g.getAttribute("Target");f=g.getAttribute("Type");try{var q=m.lastIndexOf("/"),m=m.substring(q+1,m.length)}catch(A){return}g="png";m={type:f,target:m}}else return}else return;null==m&&(m=k(a,n));f=m.type;m=m.target;null!=f&&
function(a,b){var d=a.length-b.length,c=a.indexOf(b,d);return-1!==c&&c===d}(f,"image")&&(this.imageData={},(q=d.getMedia(c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/media/"+m))?(this.imageData.iData=q,function(a,b){var d=a.length-b.length,c=a.indexOf(b,d);return-1!==c&&c===d}(m.toLowerCase(),".bmp")&&(g="jpg"),this.imageData.iType=g):(this.imageData.iData=b.ERROR_IMAGE,this.imageData.iType="svg+xml"))}else(function(a,b){return a&&a.equals?a.equals(b):a===b})(k,c.mxgraph.io.vsdx.mxVsdxConstants.TEXT)&&
(this.text=a)};b.prototype.parseSection=function(a){var d=a.getAttribute("N");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Geometry"))null==this.geom&&(this.geom=[]),0<this.geom.push(a);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Field")){a=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Row");for(var k=0;k<a.length;k++){var d=a[k],n=d.getAttribute("IX")||"";if(0!==n.length)if(null==this.fields&&(this.fields={}),function(a,b){return a&&a.equals?a.equals(b):
a===b}("1",d.getAttribute("Del")))this.fields[n]="";else{for(var g=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,"Cell"),f="",m="",q=0;q<g.length;q++){var A=g[q],d=A.getAttribute("N"),A=A.getAttribute("V")||A.textContent||"";switch(d){case "Value":f=A;break;case "Format":m=A}}if(0!==f.length){try{if(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(m,"{{"))var m=m.replace(/m/g,"@").replace(/M/g,"m").replace(/@/g,"M"),B=isNaN(f)?new Date(f):new Date(b.VSDX_START_TIME+
Math.floor(864E5*parseFloat(f))),f=Graph.prototype.formatDate(B,m.replace(RegExp("\\{|\\}","g"),""))}catch(D){}this.fields[n]=f}}}}else e.prototype.parseSection.call(this,a)};b.prototype.parseGeom=function(){return this.hasGeomList()?this.geomList.getShapeXML(this):""};b.prototype.getText=function(){return null!=this.text?this.text.textContent:null};b.prototype.getTextChildren=function(){return null!=this.text?this.text.childNodes:null};b.prototype.getWidth=function(){return 0===this.width&&0<this.height?
a===b}("1",d.getAttribute("Del")))this.fields[n]="";else{for(var f=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,"Cell"),g="",m="",q=0;q<f.length;q++){var A=f[q],d=A.getAttribute("N"),A=A.getAttribute("V")||A.textContent||"";switch(d){case "Value":g=A;break;case "Format":m=A}}if(0!==g.length){try{if(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(m,"{{"))var m=m.replace(/m/g,"@").replace(/M/g,"m").replace(/@/g,"M"),B=isNaN(g)?new Date(g):new Date(b.VSDX_START_TIME+
Math.floor(864E5*parseFloat(g))),g=Graph.prototype.formatDate(B,m.replace(RegExp("\\{|\\}","g"),""))}catch(D){}this.fields[n]=g}}}}else e.prototype.parseSection.call(this,a)};b.prototype.parseGeom=function(){return this.hasGeomList()?this.geomList.getShapeXML(this):""};b.prototype.getText=function(){return null!=this.text?this.text.textContent:null};b.prototype.getTextChildren=function(){return null!=this.text?this.text.childNodes:null};b.prototype.getWidth=function(){return 0===this.width&&0<this.height?
1:this.width};b.prototype.getHeight=function(){return 0===this.height&&0<this.width?1:this.height};b.prototype.getRotation=function(){return this.rotation};b.prototype.getStyleMap=function(){return this.styleMap};b.prototype.hasGeom=function(){return!(null==this.geom||0==this.geom.length)};b.prototype.hasGeomList=function(){return null!=this.geomList&&this.geomList.hasGeom()};b.prototype.getPPList=function(a){var b=null;""!=a&&(a=this.getBullet(a),"0"!=a&&(b='<ul style="margin: 0;list-style-type: '+
("4"==a?"square":"disc")+'">'));return b};b.prototype.getTextParagraphFormated=function(a){var b="",c={};c.align=this.getHorizontalAlign(this.pp,!0);c["margin-left"]=this.getIndentLeft(this.pp);c["margin-right"]=this.getIndentRight(this.pp);c["margin-top"]=this.getSpBefore(this.pp)+"px";c["margin-bottom"]=this.getSpAfter(this.pp)+"px";c["text-indent"]=this.getIndentFirst(this.pp);c.valign=this.getAlignVertical();c.direction=this.getTextDirection(this.pp);return b+=this.insertAttributes(a,c)};b.prototype.getTextCharFormated=
function(a){var b="color:"+this.getTextColor(this.cp)+";",e="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",n="font-family:"+this.getTextFont(this.cp)+";",f="direction:"+this.getRtlText(this.cp)+";",g="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",m="line-height:"+this.getSpcLine(this.pp),q=";opacity:"+this.getTextOpacity(this.cp),A=this.getTextPos(this.cp),B=this.getTextCase(this.cp);(function(a,b){return a&&a.equals?a.equals(b):a===b})(B,"1")?a=a.toUpperCase():function(a,
function(a){var b="color:"+this.getTextColor(this.cp)+";",e="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",n="font-family:"+this.getTextFont(this.cp)+";",g="direction:"+this.getRtlText(this.cp)+";",f="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",m="line-height:"+this.getSpcLine(this.pp),q=";opacity:"+this.getTextOpacity(this.cp),A=this.getTextPos(this.cp),B=this.getTextCase(this.cp);(function(a,b){return a&&a.equals?a.equals(b):a===b})(B,"1")?a=a.toUpperCase():function(a,
b){return a&&a.equals?a.equals(b):a===b}(B,"2")&&(a=c.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(a,b){return a&&a.equals?a.equals(b):a===b})(A,"1")?a=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(a,b){return a&&a.equals?a.equals(b):a===b}(A,"2")&&(a=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"b"):a;a=this.isItalic(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"i"):a;a=this.isUnderline(this.cp)?
c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"u"):a;a=this.getTextStrike(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"s"):a;a=this.isSmallCaps(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.toSmallCaps(a,this.getTextSize(this.cp)):a;return""+('<font style="'+e+n+b+f+g+m+q+'">'+a+"</font>")};b.prototype.getTextDirection=function(a){a=this.getFlags(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"0")?a="ltr":function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1")&&(a="rtl");return a};
b.prototype.getSpcLine=function(a){var b=!1;a=this.getSpLine(a);0<a?a*=c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():(a=0===a?100:100*Math.abs(a),b=!0);return(new String(a)).toString()+(b?"%":"px")};b.prototype.getSpcBefore=function(a){return this.getSpBefore(a)};b.prototype.insertAttributes=function(a,b){if(-1!=a.indexOf(">")){var d=a.indexOf(">"),e=a.substring(d),d=a.substring(0,d),f=' style="'+c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(b,":")+'"';return d+f+e}return a};b.prototype.getRtlText=
c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"u"):a;a=this.getTextStrike(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"s"):a;a=this.isSmallCaps(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.toSmallCaps(a,this.getTextSize(this.cp)):a;return""+('<font style="'+e+n+b+g+f+m+q+'">'+a+"</font>")};b.prototype.getTextDirection=function(a){a=this.getFlags(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"0")?a="ltr":function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1")&&(a="rtl");return a};
b.prototype.getSpcLine=function(a){var b=!1;a=this.getSpLine(a);0<a?a*=c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():(a=0===a?100:100*Math.abs(a),b=!0);return(new String(a)).toString()+(b?"%":"px")};b.prototype.getSpcBefore=function(a){return this.getSpBefore(a)};b.prototype.insertAttributes=function(a,b){if(-1!=a.indexOf(">")){var d=a.indexOf(">"),e=a.substring(d),d=a.substring(0,d),g=' style="'+c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(b,":")+'"';return d+g+e}return a};b.prototype.getRtlText=
function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.RTL_TEXT,a,c.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);a=this.getValue(a,"ltr");(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"0")?a="ltr":function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1")&&(a="rtl");return a};b.prototype.isBold=function(a){var b=!1;a=this.getTextStyle(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")||function(a,b){return a&&a.equals?
a.equals(b):a===b}(a.toLowerCase(),"themed")||(b=1===(parseInt(a)&1));return b};b.prototype.isItalic=function(a){var b=!1;a=this.getTextStyle(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"themed")||(b=2===(parseInt(a)&2));return b};b.prototype.isUnderline=function(a){var b=!1;a=this.getTextStyle(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),
"themed")||(b=4===(parseInt(a)&4));return b};b.prototype.isSmallCaps=function(a){var b=!1;a=this.getTextStyle(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"themed")||(b=8===(parseInt(a)&8));return b};b.prototype.getTextOpacity=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.COLOR_TRANS,a,c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);a=this.getValue(a,
"0");var b="1";null!=a&&0!==a.length&&(a=1-parseFloat(a),b=(new String(a)).toString());return b};b.prototype.getTextSize=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.SIZE,a,c.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);a=this.getScreenNumericalValue$org_w3c_dom_Element$double(a,12);return""+Math.floor(Math.round(100*a)/100)};b.prototype.getAlignVertical=function(){var a=mxConstants.ALIGN_MIDDLE,b=parseInt(this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.VERTICAL_ALIGN),
"1"));0===b?a=mxConstants.ALIGN_TOP:2===b&&(a=mxConstants.ALIGN_BOTTOM);return a};b.prototype.getGeomList=function(){return this.geomList};b.prototype.getLastX=function(){return this.lastX};b.prototype.getLastY=function(){return this.lastY};b.prototype.getLastMoveX=function(){return this.lastMoveX};b.prototype.getLastMoveY=function(){return this.lastMoveY};b.prototype.getLastKnot=function(){return this.lastKnot};b.prototype.setLastX=function(a){this.lastX=a};b.prototype.setLastY=function(a){this.lastY=
a};b.prototype.setLastMoveX=function(a){this.lastMoveX=a};b.prototype.setLastMoveY=function(a){this.lastMoveY=a};b.prototype.setLastKnot=function(a){this.lastKnot=a};return b}(c.mxgraph.io.vsdx.Style);g.VSDX_START_TIME=-22091688E5;f.Shape=g;g.__class="com.mxgraph.io.vsdx.Shape"})(f.vsdx||(f.vsdx={}))})(f.io||(f.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
(function(c){(function(f){(function(f){(function(f){var g=function(e){function b(a,b,k,n,f,g){var d=this;d.masterShape=null;d.master=null;d.parentHeight=0;d=e.call(this,b,g)||this;d.htmlLabels=!0;d.rootShape=d;d.shapeName=null;d.shapeIndex=0;d.vertex=!0;d.childShapes={};var m=d.getMasterId(),w=d.getShapeMasterId();d.master=null!=m?n[m]?n[m]:null:f;null!=d.master&&(d.masterShape=null==m&&null!=w?d.master.getSubShape(w):d.master.getMasterShape());n=d.getNameU();f=n.lastIndexOf(".");-1!==f&&(n=n.substring(0,
f));d.shapeName=n;b=b.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.SHAPES);null!=b&&0<b.length&&(b=b.item(0),d.childShapes=a.parseShapes(b,d.master,!1));b=d.calcRotation();d.rotation=100*b/100;d.rotation%=360;b=a.getCellIntValue("ThemeIndex",-100);-100===b&&(b=parseInt(d.getValue(d.getCellElement$java_lang_String("ThemeIndex"),"0")));g=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===
b)return a.entries[d].value;return null}(g.getThemes(),b);a=a.getCellIntValue("VariationColorIndex",0);d.setThemeAndVariant(g,a);b=function(a){null==a.entries&&(a.entries=[]);return a.entries}(d.childShapes);for(n=0;n<b.length;n++)f=b[n].getValue(),f.setRootShape(d),null==f.theme&&f.setThemeAndVariant(g,a);d.quickStyleVals=new c.mxgraph.io.vsdx.theme.QuickStyleVals(parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleEffectsMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFillColor"),
(function(c){(function(f){(function(f){(function(f){var g=function(e){function b(a,b,k,n,g,f){var d=this;d.masterShape=null;d.master=null;d.parentHeight=0;d=e.call(this,b,f)||this;d.htmlLabels=!0;d.rootShape=d;d.shapeName=null;d.shapeIndex=0;d.vertex=!0;d.childShapes={};var m=d.getMasterId(),w=d.getShapeMasterId();d.master=null!=m?n[m]?n[m]:null:g;null!=d.master&&(d.masterShape=null==m&&null!=w?d.master.getSubShape(w):d.master.getMasterShape());n=d.getNameU();g=n.lastIndexOf(".");-1!==g&&(n=n.substring(0,
g));d.shapeName=n;b=b.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.SHAPES);null!=b&&0<b.length&&(b=b.item(0),d.childShapes=a.parseShapes(b,d.master,!1));b=d.calcRotation();d.rotation=100*b/100;d.rotation%=360;b=a.getCellIntValue("ThemeIndex",-100);-100===b&&(b=parseInt(d.getValue(d.getCellElement$java_lang_String("ThemeIndex"),"0")));f=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===
b)return a.entries[d].value;return null}(f.getThemes(),b);a=a.getCellIntValue("VariationColorIndex",0);d.setThemeAndVariant(f,a);b=function(a){null==a.entries&&(a.entries=[]);return a.entries}(d.childShapes);for(n=0;n<b.length;n++)g=b[n].getValue(),g.setRootShape(d),null==g.theme&&g.setThemeAndVariant(f,a);d.quickStyleVals=new c.mxgraph.io.vsdx.theme.QuickStyleVals(parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleEffectsMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFillColor"),
"1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFillMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFontColor"),"1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFontMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleLineColor"),"1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleLineMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleShadowColor"),
"1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleType"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleVariation"),"0")));null!=d.masterShape?(d.masterShape.processGeomList(null),d.processGeomList(d.masterShape.getGeomList()),0===d.width&&(d.width=d.getScreenNumericalValue$org_w3c_dom_Element$double(d.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0)),0===d.height&&(d.height=d.getScreenNumericalValue$org_w3c_dom_Element$double(d.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),
0))):d.processGeomList(null);d.vertex=k||null!=d.childShapes&&!function(a){null==a.entries&&(a.entries=[]);return 0==a.entries.length}(d.childShapes)||null!=d.geomList&&(!d.geomList.isNoFill()||1<d.geomList.getGeoCount());d.layerMember=d.getValue(d.getCellElement$java_lang_String("LayerMember"));d.layerMember&&0==d.layerMember.indexOf("0;")&&(d.layerMember=d.layerMember.substr(2));return d}__extends(b,e);b.__static_initialize=function(){b.__static_initialized||(b.__static_initialized=!0,b.__static_initializer_0())};
@ -1441,17 +1439,17 @@ a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,
43,mxConstants.ARROW_OPEN);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),44,mxConstants.ARROW_OPEN);(function(a,b,c){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||
a.entries[d].key===b){a.entries[d].value=c;return}a.entries.push({key:b,value:c,getKey:function(){return this.key},getValue:function(){return this.value}})})(b.arrowTypes_$LI$(),45,mxConstants.ARROW_OPEN)};b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$=function(){b.__static_initialize();null==b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER&&(b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER={});return b.__com_mxgraph_io_vsdx_VsdxShape_LOGGER};b.prototype.getShapeNode=function(a){var b;b=this.cellElements;b=b[a]?b[a]:
null;return null==b&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a):b};b.prototype.getTextLabel=function(){var a;a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.HIDE_TEXT),"0");a="1".equals?"1".equals(a):"1"===a;if(a)return null;a=this.getTextChildren();null==a&&null!=this.masterShape&&(a=this.masterShape.getTextChildren());if(this.htmlLabels){if(null!=a)return this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=this.getAlignVertical(),
this.styleMap[mxConstants.STYLE_ALIGN]=this.getHorizontalAlign("0",!1),this.getHtmlTextContent(a)}else return a=this.getText(),null==a&&null!=this.masterShape?this.masterShape.getText():a;return null};b.prototype.getIndex=function(a){a=a.getAttribute("IX")||"";return 0===a.length?"0":a};b.prototype.initLabels=function(a){this.paragraphs={};for(var b=null,e=null,f=null,g=0;g<a.length;g++){var m;m=a.item(g);switch(m.nodeName){case "cp":b=this.getIndex(m);break;case "tp":this.getIndex(m);break;case "pp":e=
this.getIndex(m);break;case "fld":f=this.getIndex(m);break;case "#text":m=m.textContent;var q;q=this.paragraphs;q=q[e]?q[e]:null;null==q?(q=new c.mxgraph.io.vsdx.Paragraph(m,b,e,f),this.paragraphs[e]=q):q.addText(m,b,f)}}};b.prototype.createHybridLabel=function(a){var b=function(a,b){return a[b]?a[b]:null}(this.paragraphs,a);this.styleMap[mxConstants.STYLE_ALIGN]=this.getHorizontalAlign(a,!1);this.styleMap[mxConstants.STYLE_SPACING_LEFT]=this.getIndentLeft(a);this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=
this.styleMap[mxConstants.STYLE_ALIGN]=this.getHorizontalAlign("0",!1),this.getHtmlTextContent(a)}else return a=this.getText(),null==a&&null!=this.masterShape?this.masterShape.getText():a;return null};b.prototype.getIndex=function(a){a=a.getAttribute("IX")||"";return 0===a.length?"0":a};b.prototype.initLabels=function(a){this.paragraphs={};for(var b=null,e=null,g=null,f=0;f<a.length;f++){var m;m=a.item(f);switch(m.nodeName){case "cp":b=this.getIndex(m);break;case "tp":this.getIndex(m);break;case "pp":e=
this.getIndex(m);break;case "fld":g=this.getIndex(m);break;case "#text":m=m.textContent;var q;q=this.paragraphs;q=q[e]?q[e]:null;null==q?(q=new c.mxgraph.io.vsdx.Paragraph(m,b,e,g),this.paragraphs[e]=q):q.addText(m,b,g)}}};b.prototype.createHybridLabel=function(a){var b=function(a,b){return a[b]?a[b]:null}(this.paragraphs,a);this.styleMap[mxConstants.STYLE_ALIGN]=this.getHorizontalAlign(a,!1);this.styleMap[mxConstants.STYLE_SPACING_LEFT]=this.getIndentLeft(a);this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=
this.getIndentRight(a);this.styleMap[mxConstants.STYLE_SPACING_TOP]=this.getSpBefore(a);this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=this.getSpAfter(a);this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=this.getAlignVertical();this.styleMap.fontColor=this.getTextColor(a);this.styleMap.fontSize=this.getTextSize(a);this.styleMap.fontFamily=this.getTextFont(a);var c=this.isBold(a)?mxConstants.FONT_BOLD:0,c=c|(this.isItalic(a)?mxConstants.FONT_ITALIC:0),c=c|(this.isUnderline(a)?mxConstants.FONT_UNDERLINE:
0);this.styleMap.fontStyle=(new String(c)).toString();a=b.numValues();for(var c=null,e=0;e<a;e++){var f=b.getValue(e);if(0===f.length&&null!=this.fields){var g=b.getField(e);null!=g&&(f=function(a,b){return a[b]?a[b]:null}(this.fields,g),null==f&&null!=this.masterShape&&null!=this.masterShape.fields&&(f=function(a,b){return a[b]?a[b]:null}(this.masterShape.fields,g)))}null!=f&&(c=null==c?f:c+f)}return c};b.prototype.getHtmlTextContent=function(a){function b(a){a=c.mxgraph.io.vsdx.mxVsdxUtils.htmlEntities(a);
m&&(a="<li>"+a,m=!1);g?(a=a.split("\n"),a[a.length-1]||(a.pop(),m=!0),a=a.join("</li><li>")):a=a.replace(RegExp("\n","g"),"<br/>").replace(new RegExp(c.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP,"g"),"<br/>");return this.getTextCharFormated(a)}var e="",f=!0,g=!1,m=!1;if(null!=a&&0<a.length)for(var q=0;q<a.length;q++){var C=a.item(q);(function(a,b){return a&&a.equals?a.equals(b):a===b})(C.nodeName,"cp")?this.cp=this.getIndex(C):function(a,b){return a&&a.equals?a.equals(b):a===b}(C.nodeName,"tp")?this.tp=
this.getIndex(C):function(a,b){return a&&a.equals?a.equals(b):a===b}(C.nodeName,"pp")?(this.pp=this.getIndex(C),g&&(e+="</li></ul>"),f?f=!1:e+="</p>",e+=this.getTextParagraphFormated("<p>"),C=this.getPPList(this.pp),m=g=null!=C,e+=g?C:""):function(a,b){return a&&a.equals?a.equals(b):a===b}(C.nodeName,"fld")?(this.fld=this.getIndex(C),C=null,null!=this.fields&&(C=function(a,b){return a[b]?a[b]:null}(this.fields,this.fld)),null==C&&null!=this.masterShape&&null!=this.masterShape.fields&&(C=function(a,
b){return a[b]?a[b]:null}(this.masterShape.fields,this.fld)),null!=C&&(e+=b.call(this,C))):function(a,b){return a&&a.equals?a.equals(b):a===b}(C.nodeName,"#text")&&(C=C.textContent,e+=b.call(this,C))}g&&(e+="</li></ul>");e+=f?"":"</p>";c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(e,"div");return e};b.prototype.isConnectorBigNameU=function(a){return function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"60 degree single")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===
0);this.styleMap.fontStyle=(new String(c)).toString();a=b.numValues();for(var c=null,e=0;e<a;e++){var g=b.getValue(e);if(0===g.length&&null!=this.fields){var f=b.getField(e);null!=f&&(g=function(a,b){return a[b]?a[b]:null}(this.fields,f),null==g&&null!=this.masterShape&&null!=this.masterShape.fields&&(g=function(a,b){return a[b]?a[b]:null}(this.masterShape.fields,f)))}null!=g&&(c=null==c?g:c+g)}return c};b.prototype.getHtmlTextContent=function(a){function b(a){a=c.mxgraph.io.vsdx.mxVsdxUtils.htmlEntities(a);
m&&(a="<li>"+a,m=!1);f?(a=a.split("\n"),a[a.length-1]||(a.pop(),m=!0),a=a.join("</li><li>")):a=a.replace(RegExp("\n","g"),"<br/>").replace(new RegExp(c.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP,"g"),"<br/>");return this.getTextCharFormated(a)}var e="",g=!0,f=!1,m=!1;if(null!=a&&0<a.length)for(var q=0;q<a.length;q++){var C=a.item(q);(function(a,b){return a&&a.equals?a.equals(b):a===b})(C.nodeName,"cp")?this.cp=this.getIndex(C):function(a,b){return a&&a.equals?a.equals(b):a===b}(C.nodeName,"tp")?this.tp=
this.getIndex(C):function(a,b){return a&&a.equals?a.equals(b):a===b}(C.nodeName,"pp")?(this.pp=this.getIndex(C),f&&(e+="</li></ul>"),g?g=!1:e+="</p>",e+=this.getTextParagraphFormated("<p>"),C=this.getPPList(this.pp),m=f=null!=C,e+=f?C:""):function(a,b){return a&&a.equals?a.equals(b):a===b}(C.nodeName,"fld")?(this.fld=this.getIndex(C),C=null,null!=this.fields&&(C=function(a,b){return a[b]?a[b]:null}(this.fields,this.fld)),null==C&&null!=this.masterShape&&null!=this.masterShape.fields&&(C=function(a,
b){return a[b]?a[b]:null}(this.masterShape.fields,this.fld)),null!=C&&(e+=b.call(this,C))):function(a,b){return a&&a.equals?a.equals(b):a===b}(C.nodeName,"#text")&&(C=C.textContent,e+=b.call(this,C))}f&&(e+="</li></ul>");e+=g?"":"</p>";c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(e,"div");return e};b.prototype.isConnectorBigNameU=function(a){return function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"60 degree single")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===
b}(a,"45 degree single")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"45 degree double")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"60 degree double")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"45 degree tail")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"60 degree tail")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"45 degree tail")||function(a,b,c){void 0===c&&(c=
0);return a.substr(c,b.length)===b}(a,"60 degree tail")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Flexi-arrow 2")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Flexi-arrow 1")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Flexi-arrow 3")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Double flexi-arrow")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Fancy arrow")};b.prototype.isVertex=
function(){return this.vertex};b.prototype.getOriginPoint=function(a,b){var d=this.getPinX(),e=this.getPinY(),f=this.getLocPinY(),g=this.getLocPinX(),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0),d=d-g,e=a-(e+(q-f));return!b||f===q/2&&g===m/2||0===this.rotation?new mxPoint(d,e):(g=m/2-g,f-=q/2,q=Math.cos((360-
this.rotation)*Math.PI/180),m=Math.sin((360-this.rotation)*Math.PI/180),new mxPoint(d+g-(g*q-f*m),g*m+f*q+e-f))};b.prototype.getDimensions=function(){var a=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),b=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return new mxPoint(0===a&&0<b?1:a,0===b&&0<a?1:b)};b.prototype.getPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.PIN_X),
function(){return this.vertex};b.prototype.getOriginPoint=function(a,b){var d=this.getPinX(),e=this.getPinY(),g=this.getLocPinY(),f=this.getLocPinX(),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0),d=d-f,e=a-(e+(q-g));return!b||g===q/2&&f===m/2||0===this.rotation?new mxPoint(d,e):(f=m/2-f,g-=q/2,q=Math.cos((360-
this.rotation)*Math.PI/180),m=Math.sin((360-this.rotation)*Math.PI/180),new mxPoint(d+f-(f*q-g*m),f*m+g*q+e-g))};b.prototype.getDimensions=function(){var a=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),b=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return new mxPoint(0===a&&0<b?1:a,0===b&&0<a?1:b)};b.prototype.getPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.PIN_X),
0)};b.prototype.getPinY=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.PIN_Y),0)};b.prototype.getLocPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.LOC_PIN_X),0)};b.prototype.getLocPinY=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.LOC_PIN_Y),0)};b.prototype.getOpacity=
function(a){this.isGroup();a=this.getValueAsDouble(this.getCellElement$java_lang_String(a),0);a=Math.max(100-100*a,0);return a=Math.min(a,100)};b.prototype.getGradient=function(){if(function(a,b){return a&&a.equals?a.equals(b):a===b}("1",this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_GRADIENT_ENABLED),"0"))){var a=function(a,b){return a[b]?a[b]:null}(this.sections,"FillGradient");if(null!=a){var b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a.elem,
"Row"),a=this.getColor(a.getIndexedCell(b[b.length-1].getAttribute("IX"),"GradientStopColor"));if(null!=a&&0!==a.length)return a}}a="";b=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");25<=parseInt(b)?a=this.getColor(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND)):(b=this.getTheme(),null!=b&&(b=b.getFillGraientColor(this.getQuickStyleVals()),null!=b&&(a=b.toHexStr())));return a};b.prototype.getGradientDirection=
@ -1461,72 +1459,72 @@ function(){var a=parseFloat(this.getValue(this.getCellElement$java_lang_String(c
null,"Hyperlink"),a=this.getValue(a,""),b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String("SubAddress",null,"Hyperlink"),b=this.getValue(b,"");return{extLink:a,pageLink:b}};b.prototype.getStyleFromShape=function(){this.styleMap[c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();this.rotation=Math.round(this.rotation);0!==this.rotation&&(this.styleMap[mxConstants.STYLE_ROTATION]=""+this.rotation);var a=this.getFillColor();(function(a,b){return a&&a.equals?a.equals(b):
a===b})(a,"")?this.styleMap[mxConstants.STYLE_FILLCOLOR]="none":this.styleMap[mxConstants.STYLE_FILLCOLOR]=a;var b=this.getId();this.styleDebug("ID = "+b+" , Fill Color = "+a);a=this.getGradient();(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")?this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]="none":(this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]=a,a=this.getGradientDirection(),function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,
mxConstants.DIRECTION_SOUTH)||(this.styleMap[mxConstants.STYLE_GRADIENT_DIRECTION]=a));a=this.getOpacity(c.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND_TRANS);100>a&&(this.styleMap[mxConstants.STYLE_FILL_OPACITY]=""+a);a=this.getOpacity(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS);100>a&&(this.styleMap[mxConstants.STYLE_STROKE_OPACITY]=""+a);a=this.getForm();a.hasOwnProperty(mxConstants.STYLE_SHAPE)&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(function(a,b){return a[b]?
a[b]:null}(a,mxConstants.STYLE_SHAPE),"image;")&&(this.styleMap[mxConstants.STYLE_WHITE_SPACE]="wrap");for(var e in a)this.styleMap[e]=a[e];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",e=this.getDashPattern(),null!=e&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=e));e=this.getStrokeColor();var f=this.getStrokeTransparency();this.styleDebug("ID = "+b+" , Color = "+e+" , stroke transparency = "+f);(function(a,b){return a&&a.equals?a.equals(b):a===b})(e,"")||1===f||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=
a[b]:null}(a,mxConstants.STYLE_SHAPE),"image;")&&(this.styleMap[mxConstants.STYLE_WHITE_SPACE]="wrap");for(var e in a)this.styleMap[e]=a[e];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",e=this.getDashPattern(),null!=e&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=e));e=this.getStrokeColor();var g=this.getStrokeTransparency();this.styleDebug("ID = "+b+" , Color = "+e+" , stroke transparency = "+g);(function(a,b){return a&&a.equals?a.equals(b):a===b})(e,"")||1===g||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=
e);b=Math.round(this.getLineWidth())|0;1!==b&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+b);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=c.mxgraph.io.vsdx.mxVsdxConstants.TRUE);b=Math.round(this.getTopSpacing())|0;0!==b&&(this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+b);b=Math.round(this.getBottomSpacing())|0;0!==b&&(this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+b);b=Math.round(this.getLeftSpacing())|0;0!==b&&(this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+b);b=Math.round(this.getRightSpacing())|
0;0!==b&&(this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+b);a=this.getDirection(a);a!==mxConstants.DIRECTION_EAST&&(this.styleMap[mxConstants.STYLE_DIRECTION]=a);a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FLIP_X),"0");b=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.FLIP_Y),"0");(function(a,b){return a&&a.equals?a.equals(b):a===b})("1",a)&&(this.styleMap[mxConstants.STYLE_FLIPH]="1");(function(a,b){return a&&a.equals?
a.equals(b):a===b})("1",b)&&(this.styleMap[mxConstants.STYLE_FLIPV]="1");this.resolveCommonStyles();return this.styleMap};b.prototype.getDashPattern=function(){var a=null,b=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");(b&&b.equals?b.equals("Themed"):"Themed"===b)?(b=this.getTheme(),null!=b&&(a=this.isVertex()?b.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):b.getConnLineDashPattern(this.getQuickStyleVals()))):
a=f.Style.getLineDashPattern(parseInt(b));if(null!=a&&0!=a.length){for(var b="",e=0;e<a.length;e++)b=b.concat(a[e].toFixed(2)+" ");return b.trim()}return null};b.prototype.isDashed=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Themed")){if(a=this.getTheme(),null!=a)return this.isVertex()?a.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):
a.isConnLineDashed(this.getQuickStyleVals())}else if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1"))return!0;return!1};b.prototype.getLineWidth=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),"1"),b=1;try{var e;e=a&&a.equals?a.equals("Themed"):"Themed"===a;if(e){var f=this.getTheme();null!=f&&(b=(this.isVertex()?f.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):
f.getConnLineWidth(this.getQuickStyleVals()))/1E4)}else b=parseFloat(a),b=this.getScreenNumericalValue$double(b)}catch(w){}1>b&&(b*=2);return b};b.prototype.getStartArrowSize=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE),"4");try{var d=4,e;e=a&&a.equals?a.equals("Themed"):"Themed"===a;if(e){var f=this.getTheme();null!=f&&(d=this.isVertex()?f.getStartSize(this.getQuickStyleVals()):f.getConnStartSize(this.getQuickStyleVals()))}else d=
parseFloat(a);return b.arrowSizes_$LI$()[d]}catch(w){}return 4};b.prototype.getFinalArrowSize=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE),"4");try{var d=4,e;e=a&&a.equals?a.equals("Themed"):"Themed"===a;if(e){var f=this.getTheme();null!=f&&(d=this.isVertex()?f.getEndSize(this.getQuickStyleVals()):f.getConnEndSize(this.getQuickStyleVals()))}else d=parseFloat(a);return b.arrowSizes_$LI$()[d]}catch(w){}return 4};b.prototype.getRounding=
a.isConnLineDashed(this.getQuickStyleVals())}else if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1"))return!0;return!1};b.prototype.getLineWidth=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),"1"),b=1;try{var e;e=a&&a.equals?a.equals("Themed"):"Themed"===a;if(e){var g=this.getTheme();null!=g&&(b=(this.isVertex()?g.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):
g.getConnLineWidth(this.getQuickStyleVals()))/1E4)}else b=parseFloat(a),b=this.getScreenNumericalValue$double(b)}catch(w){}1>b&&(b*=2);return b};b.prototype.getStartArrowSize=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE),"4");try{var d=4,e;e=a&&a.equals?a.equals("Themed"):"Themed"===a;if(e){var g=this.getTheme();null!=g&&(d=this.isVertex()?g.getStartSize(this.getQuickStyleVals()):g.getConnStartSize(this.getQuickStyleVals()))}else d=
parseFloat(a);return b.arrowSizes_$LI$()[d]}catch(w){}return 4};b.prototype.getFinalArrowSize=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE),"4");try{var d=4,e;e=a&&a.equals?a.equals("Themed"):"Themed"===a;if(e){var g=this.getTheme();null!=g&&(d=this.isVertex()?g.getEndSize(this.getQuickStyleVals()):g.getConnEndSize(this.getQuickStyleVals()))}else d=parseFloat(a);return b.arrowSizes_$LI$()[d]}catch(w){}return 4};b.prototype.getRounding=
function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.ROUNDING),"0"),b;b=a;b="Themed".equals?"Themed".equals(b):"Themed"===b;b&&(a="0");return parseFloat(a)};b.prototype.isShadow=function(){var a=this.getValue(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.SHDW_PATTERN),"0");return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Themed")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")?!1:!0};b.prototype.getEdgeStyle$java_util_Map=
function(a){var b={};(function(a,b){return a&&a.equals?a.equals(b):a===b})(function(a,b){return a[b]?a[b]:null}(a,mxConstants.STYLE_SHAPE),"mxgraph.lean_mapping.electronic_info_flow_edge")?b[mxConstants.STYLE_EDGE]=mxConstants.NONE:b[mxConstants.STYLE_EDGE]=mxConstants.EDGESTYLE_ELBOW;return b};b.prototype.getEdgeStyle=function(a){if(null!=a&&a instanceof Object||null===a)return this.getEdgeStyle$java_util_Map(a);if(void 0===a)return this.getEdgeStyle$();throw Error("invalid overload");};b.prototype.getMasterId=
function(){return this.shape.hasAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.MASTER)?this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.MASTER):null};b.prototype.getShapeMasterId=function(){return this.shape.hasAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE)?this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE):null};b.prototype.isGroup=function(){var a;a=(a=this.shape.getAttribute("Type"))&&a.equals?a.equals("Group"):"Group"===a;return a};b.getType=function(a){return a.getAttribute("Type")};
b.prototype.getMaster=function(){return this.master};b.prototype.getNameU=function(){var a=this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||"",b;(b=null==a)||(b=(b=a)&&b.equals?b.equals(""):""===b);b&&null!=this.masterShape&&(a=this.masterShape.getNameU());return a};b.prototype.getName=function(){var a=this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME),b;(b=null==a)||(b=(b=a)&&b.equals?b.equals(""):""===b);b&&null!=this.masterShape&&(a=this.masterShape.getName());return a};
b.prototype.getMasterName=function(){return this.shapeName};b.prototype.setLabelOffset=function(a,b){var d="",e="";this.shape.hasAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(d=this.shape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));null!=this.getMaster()&&null!=this.getMaster().getMasterElement()&&this.getMaster().getMasterElement().hasAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(e=this.getMaster().getMasterElement().getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));
if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Organizational unit")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(e,"Organizational unit")){var f=this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0),d=null,d="0.0",e=null,e="-0.4";null!=f&&(d=f.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.hasAttribute("F")?d.getAttribute("F"):d.textContent,e=f.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),
e=e.hasAttribute("F")?e.getAttribute("F"):e.textContent);f=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");e=e.split("Height*").join("");(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"Inh")&&(d="0.0");(function(a,b){return a&&a.equals?a.equals(b):a===b})(e,"Inh")&&(e="-0.4");-1!=e.indexOf("txtHeight")&&(e="-0.4");for(var g=b.split(";"),m="",q=0;q<g.length;q++){var A=g[q],A=A.trim();(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b})(A,"tabHeight=")&&
(m=A.split("tabHeight=").join(""))}(function(a,b){return a&&a.equals?a.equals(b):a===b})(m,"")&&(m="20");g=parseFloat(m);d=parseFloat(d);e=parseFloat(e);m=f.height;d=.1*f.width+100*d;d=new mxPoint(d,m-m*e-g/2);a.getGeometry().offset=d}else if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Domain 3D")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(e,"Domain 3D")){f=this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);d=null;
d="0.0";e=null;e="-0.4";null!=f&&(d=f.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.getAttribute("F")||"",e=f.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),e=e.getAttribute("F")||"");f=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");e=e.split("Height*").join("");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(d,""))d="0.0";if(function(a,b){return a&&a.equals?a.equals(b):
a===b}(e,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(e,""))e="-0.4";-1!=e.indexOf("txtHeight")&&(e="-0.4");d=parseFloat(d);e=parseFloat(e);m=f.height;d=.1*f.width+100*d;d=new mxPoint(d,m-m*e);a.getGeometry().offset=d}};b.prototype.getForm=function(){var a={};if(this.isVertex())try{var d=b.getType(this.getShape());this.styleDebug("shape type = "+d);if(null!=this.imageData||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,d)&&null!=this.masterShape&&
null!=this.masterShape.imageData){var e=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var f=function(a,b){return a[b]?a[b]:null}(e,"iType"),g=function(a,b){return a[b]?a[b]:null}(e,"iData"),m=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),q=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),C=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),
"0")),B=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),D=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=m||0!=q?this.toBeCroppedImg={imgOffsetX:m,imgOffsetY:q,imgWidth:C,imgHeight:A,width:B,height:D,iType:f,iData:g}:a.image="data:image/"+f+","+g;return a}var F=this.parseGeom();if(function(a,b){return a&&a.equals?a.equals(b):a===b}(F,""))return this.styleDebug("No geom found"),a;var E=Graph.compress(F);a[mxConstants.STYLE_SHAPE]="stencil("+
if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Organizational unit")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(e,"Organizational unit")){var g=this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0),d=null,d="0.0",e=null,e="-0.4";null!=g&&(d=g.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.hasAttribute("F")?d.getAttribute("F"):d.textContent,e=g.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),
e=e.hasAttribute("F")?e.getAttribute("F"):e.textContent);g=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");e=e.split("Height*").join("");(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"Inh")&&(d="0.0");(function(a,b){return a&&a.equals?a.equals(b):a===b})(e,"Inh")&&(e="-0.4");-1!=e.indexOf("txtHeight")&&(e="-0.4");for(var f=b.split(";"),m="",q=0;q<f.length;q++){var A=f[q],A=A.trim();(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b})(A,"tabHeight=")&&
(m=A.split("tabHeight=").join(""))}(function(a,b){return a&&a.equals?a.equals(b):a===b})(m,"")&&(m="20");f=parseFloat(m);d=parseFloat(d);e=parseFloat(e);m=g.height;d=.1*g.width+100*d;d=new mxPoint(d,m-m*e-f/2);a.getGeometry().offset=d}else if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Domain 3D")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(e,"Domain 3D")){g=this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);d=null;
d="0.0";e=null;e="-0.4";null!=g&&(d=g.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.getAttribute("F")||"",e=g.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),e=e.getAttribute("F")||"");g=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");e=e.split("Height*").join("");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(d,""))d="0.0";if(function(a,b){return a&&a.equals?a.equals(b):
a===b}(e,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(e,""))e="-0.4";-1!=e.indexOf("txtHeight")&&(e="-0.4");d=parseFloat(d);e=parseFloat(e);m=g.height;d=.1*g.width+100*d;d=new mxPoint(d,m-m*e);a.getGeometry().offset=d}};b.prototype.getForm=function(){var a={};if(this.isVertex())try{var d=b.getType(this.getShape());this.styleDebug("shape type = "+d);if(null!=this.imageData||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,d)&&null!=this.masterShape&&
null!=this.masterShape.imageData){var e=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var g=function(a,b){return a[b]?a[b]:null}(e,"iType"),f=function(a,b){return a[b]?a[b]:null}(e,"iData"),m=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),q=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),C=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),
"0")),B=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),D=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=m||0!=q?this.toBeCroppedImg={imgOffsetX:m,imgOffsetY:q,imgWidth:C,imgHeight:A,width:B,height:D,iType:g,iData:f}:a.image="data:image/"+g+","+f;return a}var F=this.parseGeom();if(function(a,b){return a&&a.equals?a.equals(b):a===b}(F,""))return this.styleDebug("No geom found"),a;var E=Graph.compress(F);a[mxConstants.STYLE_SHAPE]="stencil("+
E+")"}catch(H){console.error(H.message,H)}else return this.getEdgeStyle();return a};b.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Off-page reference")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Lined/Shaded process")?!0:!1};b.prototype.isExternal_process=function(){var a;a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};b.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+
this.shapeName);if(null!=a&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")){if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1"))return mxConstants.DIRECTION_SOUTH;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"2"))return mxConstants.DIRECTION_WEST;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"3"))return mxConstants.DIRECTION_NORTH}return mxConstants.DIRECTION_EAST};b.prototype.isSubproces=function(){var a;
a=(a=this.shapeName)&&a.equals?a.equals("Subproces"):"Subproces"===a;return a};b.prototype.getEdgeStyle$=function(){return{edgeStyle:"none"}};b.prototype.getChildShapes=function(){return this.childShapes};b.prototype.setChildShapes=function(a){this.childShapes=a};b.prototype.isDisplacedLabel=function(){var a=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F",""),b=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F",""),e=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,
"F",""),f=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","");if(null!=this.masterShape){if(""===a||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"inh"))a=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F","");if(""===b||function(a,b){return a&&a.equals?a.equals(b):a===b}(b.toLowerCase(),"inh"))b=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F","");if(""===e||function(a,b){return a&&a.equals?a.equals(b):
a===b}(e.toLowerCase(),"inh"))e=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,"F","");if(""===f||function(a,b){return a&&a.equals?a.equals(b):a===b}(f.toLowerCase(),"inh"))f=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","")}return function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"width*0.5")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.toLowerCase(),"height*0.5")&&function(a,b){return a&&a.equals?a.equals(b):
a===b}(e.toLowerCase(),"width*1")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(f.toLowerCase(),"height*1")||!(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a.toLowerCase(),"width*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(b.toLowerCase(),"height*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(e.toLowerCase(),"width*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(f.toLowerCase(),"height*")||function(a,
"F",""),g=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","");if(null!=this.masterShape){if(""===a||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"inh"))a=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F","");if(""===b||function(a,b){return a&&a.equals?a.equals(b):a===b}(b.toLowerCase(),"inh"))b=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F","");if(""===e||function(a,b){return a&&a.equals?a.equals(b):
a===b}(e.toLowerCase(),"inh"))e=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,"F","");if(""===g||function(a,b){return a&&a.equals?a.equals(b):a===b}(g.toLowerCase(),"inh"))g=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","")}return function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"width*0.5")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.toLowerCase(),"height*0.5")&&function(a,b){return a&&a.equals?a.equals(b):
a===b}(e.toLowerCase(),"width*1")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(g.toLowerCase(),"height*1")||!(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a.toLowerCase(),"width*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(b.toLowerCase(),"height*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(e.toLowerCase(),"width*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(g.toLowerCase(),"height*")||function(a,
b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a.toLowerCase(),"controls.row_")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(b.toLowerCase(),"controls.row_"))?!1:!0};b.prototype.isVerticalLabel=function(){var a=this.getAttribute("TextDirection","V","");a||null==this.masterShape||(a=this.masterShape.getAttribute("TextDirection","V",""));return"1"==a};b.prototype.isRotatedLabel=function(){if(this.isVerticalLabel())return!0;var a=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,
"V","");null!=this.masterShape&&function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")&&(a=this.masterShape.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,"V",""));return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0.0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")?!1:!0};b.prototype.setRootShape=function(a){this.rootShape=a};b.prototype.getRootShape=function(){return this.rootShape};b.prototype.getStartXY=
function(a){var b=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_X),0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_Y),0)))/100);return new mxPoint(b,a)};b.prototype.getEndXY=function(a){var b=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.END_X),
0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.END_Y),0)))/100);return new mxPoint(b,a)};b.prototype.getRoutingPoints=function(a,b,c){return null!=this.geomList?this.geomList.getRoutingPoints(a,b,c):null};b.prototype.getControlPoints=function(a){var b=this.getStartXY(a);a=this.getEndXY(a);var e=[];if(null!=this.shape){var f=this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.GEOM);
if(0<f.length&&(f=f.item(0).getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.NURBS_TO).item(0).getElementsByTagName("E").item(0),null!=f)){for(var f=f.getAttribute("F")||"",f=f.replace(RegExp("NURBS\\(","g"),""),f=f.replace(RegExp("\\)","g"),""),f=f.replace(RegExp(",","g")," "),f=f.replace(RegExp("\\s\\s","g")," "),f=f.split(" "),g=f.length,m=[];0<g--;)m.push(0);for(g=0;g<f.length;g++)m[g]=parseFloat(f[g]);for(g=2;g+4<f.length;g+=4){var q=new mxPoint,C=m[g+3];q.x=Math.floor(Math.round(100*(b.x+
Math.min(100,Math.abs(a.x-b.x))*m[g+2]))/100);q.y=Math.floor(Math.round(100*(b.y-100*C))/100);0<e.push(q)}return e}}return null};b.prototype.getStyleFromEdgeShape=function(a){this.styleMap[c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();a=this.getForm();if(null!=a&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,""))for(var d in a)this.styleMap[d]=a[d];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",d=this.getDashPattern(),null!=d&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=
0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.END_Y),0)))/100);return new mxPoint(b,a)};b.prototype.getRoutingPoints=function(a,b,c){return null!=this.geomList?this.geomList.getRoutingPoints(a,b,c):null};b.prototype.getControlPoints=function(a){var b=this.getStartXY(a);a=this.getEndXY(a);var e=[];if(null!=this.shape){var g=this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.GEOM);
if(0<g.length&&(g=g.item(0).getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.NURBS_TO).item(0).getElementsByTagName("E").item(0),null!=g)){for(var g=g.getAttribute("F")||"",g=g.replace(RegExp("NURBS\\(","g"),""),g=g.replace(RegExp("\\)","g"),""),g=g.replace(RegExp(",","g")," "),g=g.replace(RegExp("\\s\\s","g")," "),g=g.split(" "),f=g.length,m=[];0<f--;)m.push(0);for(f=0;f<g.length;f++)m[f]=parseFloat(g[f]);for(f=2;f+4<g.length;f+=4){var q=new mxPoint,C=m[f+3];q.x=Math.floor(Math.round(100*(b.x+
Math.min(100,Math.abs(a.x-b.x))*m[f+2]))/100);q.y=Math.floor(Math.round(100*(b.y-100*C))/100);0<e.push(q)}return e}}return null};b.prototype.getStyleFromEdgeShape=function(a){this.styleMap[c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();a=this.getForm();if(null!=a&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,""))for(var d in a)this.styleMap[d]=a[d];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",d=this.getDashPattern(),null!=d&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=
d));d=this.getEdgeMarker(!0);null!=d&&(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,b.ARROW_NO_FILL_MARKER)&&(d=d.substring(b.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_STARTFILL]="0"),this.styleMap[mxConstants.STYLE_STARTARROW]=d);d=this.getEdgeMarker(!1);null!=d&&(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,b.ARROW_NO_FILL_MARKER)&&(d=d.substring(b.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_ENDFILL]="0"),this.styleMap[mxConstants.STYLE_ENDARROW]=
d);d=Math.round(this.getStartArrowSize())|0;6!==d&&(this.styleMap[mxConstants.STYLE_STARTSIZE]=""+d);d=Math.round(this.getFinalArrowSize())|0;6!==d&&(this.styleMap[mxConstants.STYLE_ENDSIZE]=""+d);d=Math.round(this.getLineWidth())|0;1!==d&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+d);d=this.getStrokeColor();(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"")||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=d);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=c.mxgraph.io.vsdx.mxVsdxConstants.TRUE);
this.isConnectorBigNameU(this.getNameU())&&(this.styleMap[mxConstants.STYLE_SHAPE]=mxConstants.SHAPE_ARROW,d=this.getFillColor(),function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"")||(this.styleMap[mxConstants.STYLE_FILLCOLOR]=d));d=Math.round(this.getTopSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+d;d=Math.round(this.getBottomSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+d;d=Math.round(this.getLeftSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+
d;d=Math.round(this.getRightSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+d;d=this.getAlignVertical();this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=d;this.styleMap.html="1";this.resolveCommonStyles();return this.styleMap};b.prototype.resolveCommonStyles=function(){var a=this.getTextBkgndColor(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.TEXT_BKGND)),b;b=a&&a.equals?a.equals(""):""===a;b||"1"!=this.getValue(this.getCellElement$java_lang_String("TextBkgndTrans"),
"0")&&(this.styleMap[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]=a);this.styleMap[mxConstants.STYLE_ROUNDED]=0<this.getRounding()?c.mxgraph.io.vsdx.mxVsdxConstants.TRUE:c.mxgraph.io.vsdx.mxVsdxConstants.FALSE;return this.styleMap};b.prototype.getEdgeMarker=function(a){var d=this.getValue(this.getCellElement$java_lang_String(a?c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW:c.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW),"0"),e=0;try{if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Themed")){var f=
this.getTheme();null!=f&&(e=this.isVertex()?f.getEdgeMarker(a,this.getQuickStyleVals()):f.getConnEdgeMarker(a,this.getQuickStyleVals()))}else e=parseInt(d)}catch(w){}a=function(a,b){null==a.entries&&(a.entries=[]);for(var c=0;c<a.entries.length;c++)if(null!=a.entries[c].key.equals&&a.entries[c].key.equals(b)||a.entries[c].key===b)return a.entries[c].value;return null}(b.arrowTypes_$LI$(),e);0<e&&null==a&&(a=function(a,b){null==a.entries&&(a.entries=[]);for(var c=0;c<a.entries.length;c++)if(null!=
"0")&&(this.styleMap[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]=a);this.styleMap[mxConstants.STYLE_ROUNDED]=0<this.getRounding()?c.mxgraph.io.vsdx.mxVsdxConstants.TRUE:c.mxgraph.io.vsdx.mxVsdxConstants.FALSE;return this.styleMap};b.prototype.getEdgeMarker=function(a){var d=this.getValue(this.getCellElement$java_lang_String(a?c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW:c.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW),"0"),e=0;try{if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Themed")){var g=
this.getTheme();null!=g&&(e=this.isVertex()?g.getEdgeMarker(a,this.getQuickStyleVals()):g.getConnEdgeMarker(a,this.getQuickStyleVals()))}else e=parseInt(d)}catch(w){}a=function(a,b){null==a.entries&&(a.entries=[]);for(var c=0;c<a.entries.length;c++)if(null!=a.entries[c].key.equals&&a.entries[c].key.equals(b)||a.entries[c].key===b)return a.entries[c].value;return null}(b.arrowTypes_$LI$(),e);0<e&&null==a&&(a=function(a,b){null==a.entries&&(a.entries=[]);for(var c=0;c<a.entries.length;c++)if(null!=
a.entries[c].key.equals&&a.entries[c].key.equals(b)||a.entries[c].key===b)return a.entries[c].value;return null}(b.arrowTypes_$LI$(),1));return a};b.prototype.getCellElement$java_lang_String=function(a){var b=e.prototype.getCellElement$java_lang_String.call(this,a);return null==b&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a):b};b.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String=function(a,b,c){var d=e.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String.call(this,
a,b,c);return null==d&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,b,c):d};b.prototype.getCellElement=function(a,b,c){if("string"!==typeof a&&null!==a||"string"!==typeof b&&null!==b||"string"!==typeof c&&null!==c){if("string"!==typeof a&&null!==a||void 0!==b||void 0!==c)throw Error("invalid overload");return this.getCellElement$java_lang_String(a)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,b,c)};b.prototype.createLabelSubShape=
function(a,b){var d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),e=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),f=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),d/2),g=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),
e/2),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),f),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),g),A=this.getValueAsDouble(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),B=this.getTextLabel();if(null!=B&&0!==B.length){var D=mxUtils.clone(this.getStyleMap())||{};D[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;D[mxConstants.STYLE_STROKECOLOR]=
mxConstants.NONE;D[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;D.hasOwnProperty("align")||(D.align="center");D.hasOwnProperty("verticalAlign")||(D.verticalAlign="middle");D.hasOwnProperty("whiteSpace")||(D.whiteSpace="wrap");delete D.shape;delete D.image;this.isVerticalLabel()&&(A+=Math.PI+.01,D.horizontal="0");var F=this.getRotation();0!==A&&(A=360-180*A/Math.PI,A=Math.round((A+F)%360*100)/100,0!==A&&(D.rotation=""+A));D="text;"+c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(D,"=");g=b.getGeometry().height-
(q+e-g);f=m-f;0<F&&(m=new mxGeometry(f,g,d,e),f=b.getGeometry(),c.mxgraph.online.Utils.rotatedGeometry(m,F,f.width/2,f.height/2),f=m.x,g=m.y);return a.insertVertex(b,null,B,Math.round(100*f)/100,Math.round(100*g)/100,Math.round(100*d)/100,Math.round(100*e)/100,D+";html=1;")}return null};b.prototype.getLblEdgeOffset=function(a,b){if(null!=b&&1<b.length){var d=new mxCellState;d.absolutePoints=b;a.updateEdgeBounds(d);var d=a.getPoint(d),e=b[0],f=b[b.length-1],g=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),
function(a,b){var d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),e=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),g=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),d/2),f=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),
e/2),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),g),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),f),A=this.getValueAsDouble(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),B=this.getTextLabel();if(null!=B&&0!==B.length){var D=mxUtils.clone(this.getStyleMap())||{};D[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;D[mxConstants.STYLE_STROKECOLOR]=
mxConstants.NONE;D[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;D.hasOwnProperty("align")||(D.align="center");D.hasOwnProperty("verticalAlign")||(D.verticalAlign="middle");D.hasOwnProperty("whiteSpace")||(D.whiteSpace="wrap");delete D.shape;delete D.image;this.isVerticalLabel()&&(A+=Math.PI+.01,D.horizontal="0");var F=this.getRotation();0!==A&&(A=360-180*A/Math.PI,A=Math.round((A+F)%360*100)/100,0!==A&&(D.rotation=""+A));D="text;"+c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(D,"=");f=b.getGeometry().height-
(q+e-f);g=m-g;0<F&&(m=new mxGeometry(g,f,d,e),g=b.getGeometry(),c.mxgraph.online.Utils.rotatedGeometry(m,F,g.width/2,g.height/2),g=m.x,f=m.y);return a.insertVertex(b,null,B,Math.round(100*g)/100,Math.round(100*f)/100,Math.round(100*d)/100,Math.round(100*e)/100,D+";html=1;")}return null};b.prototype.getLblEdgeOffset=function(a,b){if(null!=b&&1<b.length){var d=new mxCellState;d.absolutePoints=b;a.updateEdgeBounds(d);var d=a.getPoint(d),e=b[0],g=b[b.length-1],f=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),
this.getWidth()),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),q=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),0),A=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),0),B=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),
0),D=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),0),f=(this.getHeight()-(e.y-f.y))/2+e.y-d.y-(D-A+m/2),d=B-q+g/2+(e.x-d.x);return 1E11<Math.abs(d)?null:new mxPoint(Math.floor(Math.round(100*d)/100),Math.floor(Math.round(100*f)/100))}return null};b.prototype.getShapeIndex=function(){return this.shapeIndex};b.prototype.setShapeIndex=function(a){this.shapeIndex=a};return b}(c.mxgraph.io.vsdx.Shape);g.__static_initialized=!1;g.ARROW_NO_FILL_MARKER=
0),D=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),0),g=(this.getHeight()-(e.y-g.y))/2+e.y-d.y-(D-A+m/2),d=B-q+f/2+(e.x-d.x);return 1E11<Math.abs(d)?null:new mxPoint(Math.floor(Math.round(100*d)/100),Math.floor(Math.round(100*g)/100))}return null};b.prototype.getShapeIndex=function(){return this.shapeIndex};b.prototype.setShapeIndex=function(a){this.shapeIndex=a};return b}(c.mxgraph.io.vsdx.Shape);g.__static_initialized=!1;g.ARROW_NO_FILL_MARKER=
"0";g.maxDp=2;g.USE_SHAPE_MATCH=!1;g.stencilTemplate='<shape h="htemplate" w="wtemplate" aspect="variable" strokewidth="inherit"><connections></connections><background></background><foreground></foreground></shape>';f.VsdxShape=g;g.__class="com.mxgraph.io.vsdx.VsdxShape"})(f.vsdx||(f.vsdx={}))})(f.io||(f.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
(function(c){(function(f){(function(f){var m=function(){function f(){}f.__static_initialize=function(){f.__static_initialized||(f.__static_initialized=!0,f.__static_initializer_0())};f.CA_$LI$=function(){f.__static_initialize();null==f.CA&&(f.CA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""));return f.CA};f.IA_$LI$=function(){f.__static_initialize();if(null==f.IA){for(var c=256,b=[];0<c--;)b.push(0);f.IA=b}return f.IA};f.__static_initializer_0=function(){for(var c=f.IA_$LI$(),
b=0;b<c.length;b++)c[b]=-1;c=0;for(b=f.CA_$LI$().length;c<b;c++)f.IA_$LI$()[f.CA_$LI$()[c].charCodeAt(0)]=c;f.IA_$LI$()[61]=0};f.encodeToChar=function(c,b,a){var d=null!=c?c.length-b:0;if(0===d)return[];for(var e=3*(d/3|0),g=((d-1)/3|0)+1<<2,g=g+(a?((g-1)/76|0)<<1:0),m=Array(g),q=b,z=0,C=0;q<e+b;){var A=(c[q++]&255)<<16|(c[q++]&255)<<8|c[q++]&255;m[z++]=f.CA_$LI$()[A>>>18&63];m[z++]=f.CA_$LI$()[A>>>12&63];m[z++]=f.CA_$LI$()[A>>>6&63];m[z++]=f.CA_$LI$()[A&63];a&&19===++C&&z<g-2&&(m[z++]="\r",m[z++]=
"\n",C=0)}a=d-e;0<a&&(A=(c[e+b]&255)<<10|(2===a?(c[d+b-1]&255)<<2:0),m[g-4]=f.CA_$LI$()[A>>12],m[g-3]=f.CA_$LI$()[A>>>6&63],m[g-2]=2===a?f.CA_$LI$()[A&63]:"=",m[g-1]="=");return m};f.decode$char_A=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>f.IA_$LI$()[c[d].charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var e=0,d=b;1<d&&0>=f.IA_$LI$()[c[--d].charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])&&e++;for(var b=(6*(b-a)>>3)-e,a=function(a){for(var b=
[];0<a--;)b.push(0);return b}(b),g=e=0;g<b;){for(var m=d=0;4>m;m++){var q=f.IA_$LI$()[c[e++].charCodeAt(0)];0<=q?d|=q<<18-6*m:m--}a[g++]=d>>16|0;g<b&&(a[g++]=d>>8|0,g<b&&(a[g++]=d|0))}return a};f.decode=function(e){if(null!=e&&e instanceof Array&&(0==e.length||null==e[0]||"string"===typeof e[0])||null===e)return c.mxgraph.online.mxBase64.decode$char_A(e);if(null!=e&&e instanceof Array&&(0==e.length||null==e[0]||"number"===typeof e[0])||null===e)return c.mxgraph.online.mxBase64.decode$byte_A(e);if("string"===
typeof e||null===e)return c.mxgraph.online.mxBase64.decode$java_lang_String(e);throw Error("invalid overload");};f.decodeFast$char_A=function(c){var b=c.length;if(0===b)return[];for(var a=0,d=b-1;a<d&&0>f.IA_$LI$()[c[a].charCodeAt(0)];)a++;for(;0<d&&0>f.IA_$LI$()[c[d].charCodeAt(0)];)d--;for(var e=61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])?61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d-1])?2:1:0,g=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:
a.charCodeAt(0)}(c[76])?g/78|0:0)<<1:0,g=(6*(g-m)>>3)-e,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(g),q=0,z=0,C=3*(g/3|0);q<C;){var A=f.IA_$LI$()[c[a++].charCodeAt(0)]<<18|f.IA_$LI$()[c[a++].charCodeAt(0)]<<12|f.IA_$LI$()[c[a++].charCodeAt(0)]<<6|f.IA_$LI$()[c[a++].charCodeAt(0)];b[q++]=A>>16|0;b[q++]=A>>8|0;b[q++]=A|0;0<m&&19===++z&&(a+=2,z=0)}if(q<g){for(m=A=0;a<=d-e;m++)A|=f.IA_$LI$()[c[a++].charCodeAt(0)]<<18-6*m;for(c=16;q<g;c-=8)b[q++]=A>>c|0}return b};f.decodeFast=function(e){if(null!=
e&&e instanceof Array&&(0==e.length||null==e[0]||"string"===typeof e[0])||null===e)return c.mxgraph.online.mxBase64.decodeFast$char_A(e);if(null!=e&&e instanceof Array&&(0==e.length||null==e[0]||"number"===typeof e[0])||null===e)return c.mxgraph.online.mxBase64.decodeFast$byte_A(e);if("string"===typeof e||null===e)return c.mxgraph.online.mxBase64.decodeFast$java_lang_String(e);throw Error("invalid overload");};f.encodeToByte=function(c,b){var a=null!=c?c.length:0;if(0===a)return[];for(var d=3*(a/
3|0),e=((a-1)/3|0)+1<<2,g=e+=b?((e-1)/76|0)<<1:0,m=[];0<g--;)m.push(0);for(var q=0,z=0,C=0;q<d;)g=(c[q++]&255)<<16|(c[q++]&255)<<8|c[q++]&255,m[z++]=f.CA_$LI$()[g>>>18&63].charCodeAt(0),m[z++]=f.CA_$LI$()[g>>>12&63].charCodeAt(0),m[z++]=f.CA_$LI$()[g>>>6&63].charCodeAt(0),m[z++]=f.CA_$LI$()[g&63].charCodeAt(0),b&&19===++C&&z<e-2&&(m[z++]=13,m[z++]=10,C=0);q=a-d;0<q&&(g=(c[d]&255)<<10|(2===q?(c[a-1]&255)<<2:0),m[e-4]=f.CA_$LI$()[g>>12].charCodeAt(0),m[e-3]=f.CA_$LI$()[g>>>6&63].charCodeAt(0),m[e-2]=
2===q?f.CA_$LI$()[g&63].charCodeAt(0):61,m[e-1]=61);return m};f.decode$byte_A=function(c){for(var b=c.length,a=0,d=0;d<b;d++)0>f.IA_$LI$()[c[d]&255]&&a++;if(0!==(b-a)%4)return null;for(var e=0,d=b;1<d&&0>=f.IA_$LI$()[c[--d]&255];)61==c[d]&&e++;d=b=(6*(b-a)>>3)-e;for(a=[];0<d--;)a.push(0);for(var g=e=0;g<b;){for(var m=d=0;4>m;m++){var q=f.IA_$LI$()[c[e++]&255];0<=q?d|=q<<18-6*m:m--}a[g++]=d>>16|0;g<b&&(a[g++]=d>>8|0,g<b&&(a[g++]=d|0))}return a};f.decodeFast$byte_A=function(c){var b=c.length;if(0===
b)return[];for(var a=0,d=b-1;a<d&&0>f.IA_$LI$()[c[a]&255];)a++;for(;0<d&&0>f.IA_$LI$()[c[d]&255];)d--;for(var e=61==c[d]?61==c[d-1]?2:1:0,g=d-a+1,m=76<b?(13==c[76]?g/78|0:0)<<1:0,q=g=(6*(g-m)>>3)-e,b=[];0<q--;)b.push(0);for(var z=q=0,C=3*(g/3|0);q<C;){var A=f.IA_$LI$()[c[a++]]<<18|f.IA_$LI$()[c[a++]]<<12|f.IA_$LI$()[c[a++]]<<6|f.IA_$LI$()[c[a++]];b[q++]=A>>16|0;b[q++]=A>>8|0;b[q++]=A|0;0<m&&19===++z&&(a+=2,z=0)}if(q<g){for(m=A=0;a<=d-e;m++)A|=f.IA_$LI$()[c[a++]]<<18-6*m;for(c=16;q<g;c-=8)b[q++]=A>>
c|0}return b};f.encodeToString=function(c,b,a){return f.encodeToChar(c,b,a).join("")};f.decode$java_lang_String=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>f.IA_$LI$()[c.charAt(d).charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var e=0,d=b;1<d&&0>=f.IA_$LI$()[c.charAt(--d).charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))&&e++;for(var b=(6*(b-a)>>3)-e,a=function(a){for(var b=[];0<a--;)b.push(0);return b}(b),g=e=0;g<b;){for(var m=
d=0;4>m;m++){var q=f.IA_$LI$()[c.charAt(e++).charCodeAt(0)];0<=q?d|=q<<18-6*m:m--}a[g++]=d>>16|0;g<b&&(a[g++]=d>>8|0,g<b&&(a[g++]=d|0))}return a};f.decodeFast$java_lang_String=function(c){var b=c.length;if(0===b)return[];for(var a=0,d=b-1;a<d&&0>f.IA_$LI$()[function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(a))&255];)a++;for(;0<d&&0>f.IA_$LI$()[function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))&255];)d--;for(var e=61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))?
61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d-1))?2:1:0,g=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(76))?g/78|0:0)<<1:0,g=(6*(g-m)>>3)-e,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(g),q=0,z=0,C=3*(g/3|0);q<C;){var A=f.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18|f.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<12|f.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<6|f.IA_$LI$()[c.charAt(a++).charCodeAt(0)];b[q++]=A>>16|0;b[q++]=A>>8|0;b[q++]=
A|0;0<m&&19===++z&&(a+=2,z=0)}if(q<g){for(m=A=0;a<=d-e;m++)A|=f.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18-6*m;for(c=16;q<g;c-=8)b[q++]=A>>c|0}return b};return f}();m.__static_initialized=!1;f.mxBase64=m;m.__class="com.mxgraph.online.mxBase64"})(f.online||(f.online={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));com.mxgraph.online.mxBase64.IA_$LI$();com.mxgraph.online.mxBase64.CA_$LI$();com.mxgraph.online.mxBase64.__static_initialize();com.mxgraph.io.vsdx.VsdxShape.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$();
(function(c){(function(f){(function(f){var m=function(){function g(){}g.__static_initialize=function(){g.__static_initialized||(g.__static_initialized=!0,g.__static_initializer_0())};g.CA_$LI$=function(){g.__static_initialize();null==g.CA&&(g.CA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""));return g.CA};g.IA_$LI$=function(){g.__static_initialize();if(null==g.IA){for(var c=256,b=[];0<c--;)b.push(0);g.IA=b}return g.IA};g.__static_initializer_0=function(){for(var c=g.IA_$LI$(),
b=0;b<c.length;b++)c[b]=-1;c=0;for(b=g.CA_$LI$().length;c<b;c++)g.IA_$LI$()[g.CA_$LI$()[c].charCodeAt(0)]=c;g.IA_$LI$()[61]=0};g.encodeToChar=function(c,b,a){var d=null!=c?c.length-b:0;if(0===d)return[];for(var e=3*(d/3|0),f=((d-1)/3|0)+1<<2,f=f+(a?((f-1)/76|0)<<1:0),m=Array(f),q=b,z=0,C=0;q<e+b;){var A=(c[q++]&255)<<16|(c[q++]&255)<<8|c[q++]&255;m[z++]=g.CA_$LI$()[A>>>18&63];m[z++]=g.CA_$LI$()[A>>>12&63];m[z++]=g.CA_$LI$()[A>>>6&63];m[z++]=g.CA_$LI$()[A&63];a&&19===++C&&z<f-2&&(m[z++]="\r",m[z++]=
"\n",C=0)}a=d-e;0<a&&(A=(c[e+b]&255)<<10|(2===a?(c[d+b-1]&255)<<2:0),m[f-4]=g.CA_$LI$()[A>>12],m[f-3]=g.CA_$LI$()[A>>>6&63],m[f-2]=2===a?g.CA_$LI$()[A&63]:"=",m[f-1]="=");return m};g.decode$char_A=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>g.IA_$LI$()[c[d].charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var e=0,d=b;1<d&&0>=g.IA_$LI$()[c[--d].charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])&&e++;for(var b=(6*(b-a)>>3)-e,a=function(a){for(var b=
[];0<a--;)b.push(0);return b}(b),f=e=0;f<b;){for(var m=d=0;4>m;m++){var q=g.IA_$LI$()[c[e++].charCodeAt(0)];0<=q?d|=q<<18-6*m:m--}a[f++]=d>>16|0;f<b&&(a[f++]=d>>8|0,f<b&&(a[f++]=d|0))}return a};g.decode=function(e){if(null!=e&&e instanceof Array&&(0==e.length||null==e[0]||"string"===typeof e[0])||null===e)return c.mxgraph.online.mxBase64.decode$char_A(e);if(null!=e&&e instanceof Array&&(0==e.length||null==e[0]||"number"===typeof e[0])||null===e)return c.mxgraph.online.mxBase64.decode$byte_A(e);if("string"===
typeof e||null===e)return c.mxgraph.online.mxBase64.decode$java_lang_String(e);throw Error("invalid overload");};g.decodeFast$char_A=function(c){var b=c.length;if(0===b)return[];for(var a=0,d=b-1;a<d&&0>g.IA_$LI$()[c[a].charCodeAt(0)];)a++;for(;0<d&&0>g.IA_$LI$()[c[d].charCodeAt(0)];)d--;for(var e=61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])?61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d-1])?2:1:0,f=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:
a.charCodeAt(0)}(c[76])?f/78|0:0)<<1:0,f=(6*(f-m)>>3)-e,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(f),q=0,z=0,C=3*(f/3|0);q<C;){var A=g.IA_$LI$()[c[a++].charCodeAt(0)]<<18|g.IA_$LI$()[c[a++].charCodeAt(0)]<<12|g.IA_$LI$()[c[a++].charCodeAt(0)]<<6|g.IA_$LI$()[c[a++].charCodeAt(0)];b[q++]=A>>16|0;b[q++]=A>>8|0;b[q++]=A|0;0<m&&19===++z&&(a+=2,z=0)}if(q<f){for(m=A=0;a<=d-e;m++)A|=g.IA_$LI$()[c[a++].charCodeAt(0)]<<18-6*m;for(c=16;q<f;c-=8)b[q++]=A>>c|0}return b};g.decodeFast=function(e){if(null!=
e&&e instanceof Array&&(0==e.length||null==e[0]||"string"===typeof e[0])||null===e)return c.mxgraph.online.mxBase64.decodeFast$char_A(e);if(null!=e&&e instanceof Array&&(0==e.length||null==e[0]||"number"===typeof e[0])||null===e)return c.mxgraph.online.mxBase64.decodeFast$byte_A(e);if("string"===typeof e||null===e)return c.mxgraph.online.mxBase64.decodeFast$java_lang_String(e);throw Error("invalid overload");};g.encodeToByte=function(c,b){var a=null!=c?c.length:0;if(0===a)return[];for(var d=3*(a/
3|0),e=((a-1)/3|0)+1<<2,f=e+=b?((e-1)/76|0)<<1:0,m=[];0<f--;)m.push(0);for(var q=0,z=0,C=0;q<d;)f=(c[q++]&255)<<16|(c[q++]&255)<<8|c[q++]&255,m[z++]=g.CA_$LI$()[f>>>18&63].charCodeAt(0),m[z++]=g.CA_$LI$()[f>>>12&63].charCodeAt(0),m[z++]=g.CA_$LI$()[f>>>6&63].charCodeAt(0),m[z++]=g.CA_$LI$()[f&63].charCodeAt(0),b&&19===++C&&z<e-2&&(m[z++]=13,m[z++]=10,C=0);q=a-d;0<q&&(f=(c[d]&255)<<10|(2===q?(c[a-1]&255)<<2:0),m[e-4]=g.CA_$LI$()[f>>12].charCodeAt(0),m[e-3]=g.CA_$LI$()[f>>>6&63].charCodeAt(0),m[e-2]=
2===q?g.CA_$LI$()[f&63].charCodeAt(0):61,m[e-1]=61);return m};g.decode$byte_A=function(c){for(var b=c.length,a=0,d=0;d<b;d++)0>g.IA_$LI$()[c[d]&255]&&a++;if(0!==(b-a)%4)return null;for(var e=0,d=b;1<d&&0>=g.IA_$LI$()[c[--d]&255];)61==c[d]&&e++;d=b=(6*(b-a)>>3)-e;for(a=[];0<d--;)a.push(0);for(var f=e=0;f<b;){for(var m=d=0;4>m;m++){var q=g.IA_$LI$()[c[e++]&255];0<=q?d|=q<<18-6*m:m--}a[f++]=d>>16|0;f<b&&(a[f++]=d>>8|0,f<b&&(a[f++]=d|0))}return a};g.decodeFast$byte_A=function(c){var b=c.length;if(0===
b)return[];for(var a=0,d=b-1;a<d&&0>g.IA_$LI$()[c[a]&255];)a++;for(;0<d&&0>g.IA_$LI$()[c[d]&255];)d--;for(var e=61==c[d]?61==c[d-1]?2:1:0,f=d-a+1,m=76<b?(13==c[76]?f/78|0:0)<<1:0,q=f=(6*(f-m)>>3)-e,b=[];0<q--;)b.push(0);for(var z=q=0,C=3*(f/3|0);q<C;){var A=g.IA_$LI$()[c[a++]]<<18|g.IA_$LI$()[c[a++]]<<12|g.IA_$LI$()[c[a++]]<<6|g.IA_$LI$()[c[a++]];b[q++]=A>>16|0;b[q++]=A>>8|0;b[q++]=A|0;0<m&&19===++z&&(a+=2,z=0)}if(q<f){for(m=A=0;a<=d-e;m++)A|=g.IA_$LI$()[c[a++]]<<18-6*m;for(c=16;q<f;c-=8)b[q++]=A>>
c|0}return b};g.encodeToString=function(c,b,a){return g.encodeToChar(c,b,a).join("")};g.decode$java_lang_String=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>g.IA_$LI$()[c.charAt(d).charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var e=0,d=b;1<d&&0>=g.IA_$LI$()[c.charAt(--d).charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))&&e++;for(var b=(6*(b-a)>>3)-e,a=function(a){for(var b=[];0<a--;)b.push(0);return b}(b),f=e=0;f<b;){for(var m=
d=0;4>m;m++){var q=g.IA_$LI$()[c.charAt(e++).charCodeAt(0)];0<=q?d|=q<<18-6*m:m--}a[f++]=d>>16|0;f<b&&(a[f++]=d>>8|0,f<b&&(a[f++]=d|0))}return a};g.decodeFast$java_lang_String=function(c){var b=c.length;if(0===b)return[];for(var a=0,d=b-1;a<d&&0>g.IA_$LI$()[function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(a))&255];)a++;for(;0<d&&0>g.IA_$LI$()[function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))&255];)d--;for(var e=61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))?
61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d-1))?2:1:0,f=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(76))?f/78|0:0)<<1:0,f=(6*(f-m)>>3)-e,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(f),q=0,z=0,C=3*(f/3|0);q<C;){var A=g.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18|g.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<12|g.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<6|g.IA_$LI$()[c.charAt(a++).charCodeAt(0)];b[q++]=A>>16|0;b[q++]=A>>8|0;b[q++]=
A|0;0<m&&19===++z&&(a+=2,z=0)}if(q<f){for(m=A=0;a<=d-e;m++)A|=g.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18-6*m;for(c=16;q<f;c-=8)b[q++]=A>>c|0}return b};return g}();m.__static_initialized=!1;f.mxBase64=m;m.__class="com.mxgraph.online.mxBase64"})(f.online||(f.online={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));com.mxgraph.online.mxBase64.IA_$LI$();com.mxgraph.online.mxBase64.CA_$LI$();com.mxgraph.online.mxBase64.__static_initialize();com.mxgraph.io.vsdx.VsdxShape.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$();
com.mxgraph.io.vsdx.VsdxShape.arrowTypes_$LI$();com.mxgraph.io.vsdx.VsdxShape.arrowSizes_$LI$();com.mxgraph.io.vsdx.VsdxShape.OFFSET_ARRAY_$LI$();com.mxgraph.io.vsdx.VsdxShape.__static_initialize();com.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP_$LI$();com.mxgraph.io.vsdx.Style.lineDashPatterns_$LI$();com.mxgraph.io.vsdx.Style.styleTypes_$LI$();com.mxgraph.io.vsdx.Style.__static_initialize();com.mxgraph.online.Constants.MAX_AREA_$LI$();com.mxgraph.io.vsdx.theme.Color.NONE_$LI$();com.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();
com.mxgraph.io.vsdx.mxVsdxTheme.colorIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.themesIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.__static_initialize();com.mxgraph.io.vsdx.mxVsdxConstants.MY_SET_$LI$();com.mxgraph.io.vsdx.mxVsdxConstants.SET_VALUES_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.defaultColors_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.__static_initialize();com.mxgraph.io.mxVsdxCodec.vsdxPlaceholder_$LI$();com.mxgraph.io.mxVsdxCodec.parsererrorNS_$LI$();
EditorUi.prototype.doImportVisio=function(c,f,q,m){m=m||c.name;null!=m&&/(\.vs(x|sx?))($|\?)/i.test(m)?(new com.mxgraph.io.mxVssxCodec(this)).decodeVssx(c,f,null,q):(new com.mxgraph.io.mxVsdxCodec(this)).decodeVsdx(c,f,null,q)};function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y\:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x\:Static\s+(.+)\.(.+)\}$/;
mxGraphMlCodec.prototype.decode=function(c,f,q){try{var m=mxUtils.parseXml(c),g=this.getDirectChildNamedElements(m.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(m.documentElement);c='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(m=0;m<g.length;m++){var e=g[m],b=this.createMxGraph(),a=b.getModel();a.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(e,b,b.getDefaultParent()),m=0;m<this.edges.length;m++)for(var d=this.edges[m],k=d.edges,n=d.parent,w=d.dx,x=d.dy,
z=0;z<k.length;z++)this.importEdge(k[z],b,n,w,x)}catch(ka){throw console.log(ka),ka;}finally{a.endUpdate()}a.beginUpdate();try{var C=b.getModel().cells,A;for(A in C){var B=C[A];if(B.edge&&0<B.getChildCount())for(m=0;m<B.getChildCount();m++){var D=B.children[m].geometry;if(D.adjustIt){var F=b.view.getState(B),E=F.absolutePoints,H=E[0],ea=E[E.length-1],Q=D.x,N=D.y,w=ea.x-H.x,x=ea.y-H.y,ca=H.x+Q*w,U=H.y+Q*x,T=Math.sqrt(w*w+x*x),w=w/T,x=x/T,ca=ca-N*x,U=U+N*w,ga=b.view.getRelativePoint(F,ca,U);D.x=ga.x;
z=0;z<k.length;z++)this.importEdge(k[z],b,n,w,x)}catch(ka){throw console.log(ka),ka;}finally{a.endUpdate()}a.beginUpdate();try{var C=b.getModel().cells,A;for(A in C){var B=C[A];if(B.edge&&0<B.getChildCount())for(m=0;m<B.getChildCount();m++){var D=B.children[m].geometry;if(D.adjustIt){var F=b.view.getState(B),E=F.absolutePoints,H=E[0],ea=E[E.length-1],Q=D.x,M=D.y,w=ea.x-H.x,x=ea.y-H.y,ca=H.x+Q*w,U=H.y+Q*x,T=Math.sqrt(w*w+x*x),w=w/T,x=x/T,ca=ca-M*x,U=U+M*w,ga=b.view.getRelativePoint(F,ca,U);D.x=ga.x;
D.y=ga.y}}}}catch(ka){throw console.log(ka),ka;}finally{a.endUpdate()}c+=this.processPage(b,m+1)}f&&f(c+"</mxfile>")}catch(ka){q&&q(ka)}};
mxGraphMlCodec.prototype.initializeKeys=function(c){var f=this.getDirectChildNamedElements(c,mxGraphMlConstants.KEY);this.nodesKeys={};this.edgesKeys={};this.portsKeys={};this.sharedData={};this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY]={};this.nodesKeys[mxGraphMlConstants.USER_TAGS]={};this.nodesKeys[mxGraphMlConstants.NODE_STYLE]={};this.nodesKeys[mxGraphMlConstants.NODE_LABELS]={};this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS]={};this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY]={};this.edgesKeys[mxGraphMlConstants.EDGE_STYLE]=
{};this.edgesKeys[mxGraphMlConstants.EDGE_LABELS]={};this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER]={};this.portsKeys[mxGraphMlConstants.PORT_STYLE]={};this.portsKeys[mxGraphMlConstants.PORT_VIEW_STATE]={};for(var q,m=0;m<f.length;m++){var g=this.dataElem2Obj(f[m]),e=g[mxGraphMlConstants.ID],b=g[mxGraphMlConstants.KEY_FOR],a=g[mxGraphMlConstants.KEY_NAME],d=g[mxGraphMlConstants.KEY_YTYPE];a==mxGraphMlConstants.SHARED_DATA&&(q=e);a=a?a:d;switch(b){case mxGraphMlConstants.NODE:this.nodesKeys[a]=

View file

@ -3184,7 +3184,7 @@ l,B));a<p;a+=B)for(var b=c;b<t;b+=B)m.drawImage(F,a/l,b/l);e()}catch(pa){null!=f
function(a){try{null!=a&&this.addFontCss(b,a),this.loadFonts(e)}catch(na){null!=f&&f(na)}}))}catch(fa){null!=f&&f(fa)}}),b,t)}catch(ha){null!=f&&f(ha)}};Editor.crcTable=[];for(var k=0;256>k;k++)for(var m=k,q=0;8>q;q++)m=1==(m&1)?3988292384^m>>>1:m>>>1,Editor.crcTable[k]=m;Editor.updateCRC=function(a,c,b,d){for(var f=0;f<d;f++)a=Editor.crcTable[(a^c.charCodeAt(b+f))&255]^a>>>8;return a};Editor.crc32=function(a){for(var c=-1,b=0;b<a.length;b++)c=c>>>8^Editor.crcTable[(c^a.charCodeAt(b))&255];return(c^
-1)>>>0};Editor.writeGraphModelToPng=function(a,c,b,d,f){function g(a,c){var b=n;n+=c;return a.substring(b,n)}function e(a){a=g(a,4);return a.charCodeAt(3)+(a.charCodeAt(2)<<8)+(a.charCodeAt(1)<<16)+(a.charCodeAt(0)<<24)}function l(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}a=a.substring(a.indexOf(",")+1);a=window.atob?atob(a):Base64.decode(a,!0);var n=0;if(g(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=f&&f();else if(g(a,4),"IHDR"!=g(a,4))null!=
f&&f();else{g(a,17);f=a.substring(0,n);do{var p=e(a);if("IDAT"==g(a,4)){f=a.substring(0,n-8);"pHYs"==c&&"dpi"==b?(b=Math.round(d/.0254),b=l(b)+l(b)+String.fromCharCode(1)):b=b+String.fromCharCode(0)+("zTXt"==c?String.fromCharCode(0):"")+d;d=4294967295;d=Editor.updateCRC(d,c,0,4);d=Editor.updateCRC(d,b,0,b.length);f+=l(b.length)+c+b+l(d^4294967295);f+=a.substring(n-8,a.length);break}f+=a.substring(n-8,n-4+p);g(a,p);g(a,4)}while(p);return"data:image/png;base64,"+(window.btoa?btoa(f):Base64.encode(f,
!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://desk.draw.io/support/solutions/articles/16000091426";var u=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(a,c){u.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var c=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){c.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=
!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.diagrams.net/doc/faq/save-file-formats";var u=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(a,c){u.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var c=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){c.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=
function(a,c){var b=null;null!=a.editor.graph.getModel().getParent(c)?b=c.getId():null!=a.currentPage&&(b=a.currentPage.getId());return b});if(null!=window.StyleFormatPanel){var f=Format.prototype.init;Format.prototype.init=function(){f.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var g=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?g.apply(this,arguments):
this.clear()};DiagramFormatPanel.prototype.isShadowOptionVisible=function(){var a=this.editorUi.getCurrentFile();return"1"==urlParams.embed||null!=a&&a.isEditable()};DiagramFormatPanel.prototype.isMathOptionVisible=function(a){return!1};var n=DiagramFormatPanel.prototype.addView;DiagramFormatPanel.prototype.addView=function(a){a=n.apply(this,arguments);this.editorUi.getCurrentFile();if(mxClient.IS_SVG&&this.isShadowOptionVisible()){var c=this.editorUi,b=c.editor.graph,d=this.createOption(mxResources.get("shadow"),
function(){return b.shadowVisible},function(a){var d=new ChangePageSetup(c);d.ignoreColor=!0;d.ignoreImage=!0;d.shadowVisible=a;b.model.execute(d)},{install:function(a){this.listener=function(){a(b.shadowVisible)};c.addListener("shadowVisibleChanged",this.listener)},destroy:function(){c.removeListener(this.listener)}});Editor.shadowOptionEnabled||(d.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(d,60));a.appendChild(d)}return a};var l=DiagramFormatPanel.prototype.addOptions;
@ -3310,7 +3310,7 @@ p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});p.classNa
(this.page.viewState.pageFormat=this.format),null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled),null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)):(L.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),
this.shadowVisible=!this.shadowVisible))};Editor.prototype.useCanvasForExport=!1;try{var N=document.createElement("canvas"),F=new Image;F.onload=function(){try{N.getContext("2d").drawImage(F,0,0);var a=N.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=a&&6<a.length}catch(K){}};F.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(v){}})();
(function(){var a=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);a.beforeDecode=function(a,b,e){e.ui=a.ui;return b};a.afterDecode=function(a,b,e){e.previousColor=e.color;e.previousImage=e.image;e.previousFormat=e.format;null!=e.foldingEnabled&&(e.foldingEnabled=!e.foldingEnabled);null!=e.mathEnabled&&(e.mathEnabled=!e.mathEnabled);null!=e.shadowVisible&&(e.shadowVisible=!e.shadowVisible);return e};mxCodecRegistry.register(a)})();
(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);a.beforeDecode=function(a,b,e){e.ui=a.ui;return b};mxCodecRegistry.register(a)})();(function(){EditorUi.VERSION="@DRAWIO-VERSION@";EditorUi.compactUi="atlas"!=uiTheme;mxGraphView.prototype.defaultDarkGridColor="#6e6e6e";"dark"==uiTheme&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;
(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);a.beforeDecode=function(a,b,e){e.ui=a.ui;return b};mxCodecRegistry.register(a)})();(function(){EditorUi.VERSION="13.10.9";EditorUi.compactUi="atlas"!=uiTheme;mxGraphView.prototype.defaultDarkGridColor="#6e6e6e";"dark"==uiTheme&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;
EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl="1"==urlParams.dev?"/cache":window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;
EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://desk.draw.io/support/solutions/articles/16000042367";EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},
gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};EditorUi.logError=function(a,b,d,e,l,p,t){p=null!=p?p:0<=a.indexOf("NetworkError")||0<=a.indexOf("SecurityError")||0<=a.indexOf("NS_ERROR_FAILURE")||0<=a.indexOf("out of memory")?"CONFIG":"SEVERE";if(EditorUi.enableLogging&&"1"!=urlParams.dev)try{if(a!=EditorUi.lastErrorMessage&&(null==a||null==b||-1==a.indexOf("Script error")&&
@ -3457,7 +3457,7 @@ g.appendChild(k);mxUtils.br(g);g.appendChild(n);k=document.createElement("span")
f.setAttribute("checked","checked");null==d&&n.setAttribute("disabled","disabled");c.appendChild(g);var q=this.addLinkSection(c),u=this.addCheckbox(c,mxResources.get("zoom"),!0,null,!0);mxUtils.write(c,":");var z=document.createElement("input");z.setAttribute("type","text");z.style.marginRight="16px";z.style.width="60px";z.style.marginLeft="4px";z.style.marginRight="12px";z.value="100%";c.appendChild(z);var A=this.addCheckbox(c,mxResources.get("fit"),!0),g=null!=this.pages&&1<this.pages.length,E=
E=this.addCheckbox(c,mxResources.get("allPages"),g,!g),D=this.addCheckbox(c,mxResources.get("layers"),!0),J=this.addCheckbox(c,mxResources.get("lightbox"),!0),G=this.addEditButton(c,J),L=G.getEditInput();L.style.marginBottom="16px";mxEvent.addListener(J,"change",function(){J.checked?L.removeAttribute("disabled"):L.setAttribute("disabled","disabled");L.checked&&J.checked?G.getEditSelect().removeAttribute("disabled"):G.getEditSelect().setAttribute("disabled","disabled")});a=new CustomDialog(this,c,
mxUtils.bind(this,function(){e(n.checked?d:null,u.checked,z.value,q.getTarget(),q.getColor(),A.checked,E.checked,D.checked,J.checked,G.getLink())}),null,a,b);this.showDialog(a.container,340,384,!0,!0);f.focus()};EditorUi.prototype.showPublishLinkDialog=function(a,b,d,e,l,k){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 g=this.getCurrentFile(),f="https://desk.draw.io/support/solutions/articles/16000051941";a=0;if(null!=g&&g.constructor==window.DriveFile&&!b){a=80;var f="https://desk.draw.io/support/solutions/articles/16000039384",n=document.createElement("div");n.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var p=document.createElement("div");p.style.whiteSpace="normal";mxUtils.write(p,mxResources.get("linkAccountRequired"));n.appendChild(p);
var g=this.getCurrentFile(),f="https://www.diagrams.net/doc/faq/publish-diagram-as-link";a=0;if(null!=g&&g.constructor==window.DriveFile&&!b){a=80;var f="https://desk.draw.io/support/solutions/articles/16000039384",n=document.createElement("div");n.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var p=document.createElement("div");p.style.whiteSpace="normal";mxUtils.write(p,mxResources.get("linkAccountRequired"));n.appendChild(p);
p=mxUtils.button(mxResources.get("share"),mxUtils.bind(this,function(){this.drive.showPermissions(g.getId())}));p.style.marginTop="12px";p.className="geBtn";n.appendChild(p);c.appendChild(n);p=document.createElement("a");p.style.paddingLeft="12px";p.style.color="gray";p.style.fontSize="11px";p.style.cursor="pointer";mxUtils.write(p,mxResources.get("check"));n.appendChild(p);mxEvent.addListener(p,"click",mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&this.getPublicUrl(this.getCurrentFile(),
mxUtils.bind(this,function(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 m=null,q=null;if(null!=d||null!=e)a+=30,mxUtils.write(c,mxResources.get("width")+":"),m=document.createElement("input"),m.setAttribute("type","text"),m.style.marginRight="16px",m.style.width="50px",m.style.marginLeft="6px",m.style.marginRight="16px",m.style.marginBottom="10px",
m.value="100%",c.appendChild(m),mxUtils.write(c,mxResources.get("height")+":"),q=document.createElement("input"),q.setAttribute("type","text"),q.style.width="50px",q.style.marginLeft="6px",q.style.marginBottom="10px",q.value=e+"px",c.appendChild(q),mxUtils.br(c);var A=this.addLinkSection(c,k);d=null!=this.pages&&1<this.pages.length;var u=null;if(null==g||g.constructor!=window.DriveFile||b)u=this.addCheckbox(c,mxResources.get("allPages"),d,!d);var D=this.addCheckbox(c,mxResources.get("lightbox"),!0,
@ -3541,7 +3541,7 @@ var a=this,b=this.editor.graph;"dark"==uiTheme&&(b.view.defaultGridColor=mxGraph
else{b.setCellStyles("image",a.convertDataUri(f),[c]);var k=b.model.getGeometry(c);null!=k&&(k=k.clone(),k.width=g,k.height=l,b.cellsResized([c],[k],!1))}b.setAttributeForCell(c,"plantUmlData",JSON.stringify({data:d,format:e.format}))}finally{b.getModel().endUpdate()}},function(b){a.handleError(b)})},null,null,400,220);a.showDialog(d.container,420,300,!0,!0);d.init()};b.cellEditor.editMermaidData=function(c,d,f){var e=JSON.parse(f);d=new TextareaDialog(a,mxResources.get("mermaid")+":",e.data,function(d){null!=
d&&a.spinner.spin(document.body,mxResources.get("inserting"))&&a.generateMermaidImage(d,e.config,function(f,g,l){a.spinner.stop();b.getModel().beginUpdate();try{b.setCellStyles("image",f,[c]);var k=b.model.getGeometry(c);null!=k&&(k=k.clone(),k.width=Math.max(k.width,g),k.height=Math.max(k.height,l),b.cellsResized([c],[k],!1));b.setAttributeForCell(c,"mermaidData",JSON.stringify({data:d,config:e.config},null,2))}finally{b.getModel().endUpdate()}},function(b){a.handleError(b)})},null,null,400,220);
a.showDialog(d.container,420,300,!0,!0);d.init()};var d=b.cellEditor.startEditing;b.cellEditor.startEditing=function(c,f){try{var e=this.graph.getAttributeForCell(c,"plantUmlData");if(null!=e)this.editPlantUmlData(c,f,e);else if(e=this.graph.getAttributeForCell(c,"mermaidData"),null!=e)this.editMermaidData(c,f,e);else{var g=b.getCellStyle(c);"1"==mxUtils.getValue(g,"metaEdit","0")?a.showDataDialog(c):d.apply(this,arguments)}}catch(J){a.handleError(J)}};b.getLinkTitle=function(b){return a.getLinkTitle(b)};
b.customLinkClicked=function(b){var c=!1;try{a.handleCustomLink(b),c=!0}catch(E){a.handleError(E)}return c};var e=this.clearDefaultStyle;this.clearDefaultStyle=function(){e.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://desk.draw.io/support/solutions/articles/16000051979");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";
b.customLinkClicked=function(b){var c=!1;try{a.handleCustomLink(b),c=!0}catch(E){a.handleError(E)}return c};var e=this.clearDefaultStyle;this.clearDefaultStyle=function(){e.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.diagrams.net/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";
var l=a.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(a){a=null!=a?a:"";"1"==urlParams.dev&&(a+=(0<a.length?"&":"?")+"dev=1");return l.apply(this,arguments)};var p=b.addClickHandler;b.addClickHandler=function(a,c,d){var f=c;c=function(a,c){if(null==c){var d=mxEvent.getSource(a);"a"==d.nodeName.toLowerCase()&&(c=d.getAttribute("href"))}null!=c&&b.isCustomLink(c)&&(mxEvent.isTouchEvent(a)||!mxEvent.isPopupTrigger(a))&&b.customLinkClicked(c)&&mxEvent.consume(a);null!=f&&f(a,c)};p.call(this,
a,c,d)};k.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(b.view.canvas.ownerSVGElement,null,!0);a.actions.get("print").funct=function(){a.showDialog((new PrintDialog(a)).container,360,null!=a.pages&&1<a.pages.length?450:370,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var m=b.getExportVariables;b.getExportVariables=function(){var b=m.apply(this,arguments),c=a.getCurrentFile();null!=c&&(b.filename=c.getTitle());b.pagecount=null!=a.pages?a.pages.length:1;b.page=
null!=a.currentPage?a.currentPage.getName():"";b.pagenumber=null!=a.pages&&null!=a.currentPage?mxUtils.indexOf(a.pages,a.currentPage)+1:1;return b};var q=b.getGlobalVariable;b.getGlobalVariable=function(b){var c=a.getCurrentFile();return"filename"==b&&null!=c?c.getTitle():"page"==b&&null!=a.currentPage?a.currentPage.getName():"pagenumber"==b?null!=a.currentPage&&null!=a.pages?mxUtils.indexOf(a.pages,a.currentPage)+1:1:"pagecount"==b?null!=a.pages?a.pages.length:1:q.apply(this,arguments)};var u=b.labelLinkClicked;

View file

@ -3184,7 +3184,7 @@ l,B));a<p;a+=B)for(var b=c;b<t;b+=B)m.drawImage(F,a/l,b/l);e()}catch(pa){null!=f
function(a){try{null!=a&&this.addFontCss(b,a),this.loadFonts(e)}catch(na){null!=f&&f(na)}}))}catch(fa){null!=f&&f(fa)}}),b,t)}catch(ha){null!=f&&f(ha)}};Editor.crcTable=[];for(var k=0;256>k;k++)for(var m=k,q=0;8>q;q++)m=1==(m&1)?3988292384^m>>>1:m>>>1,Editor.crcTable[k]=m;Editor.updateCRC=function(a,c,b,d){for(var f=0;f<d;f++)a=Editor.crcTable[(a^c.charCodeAt(b+f))&255]^a>>>8;return a};Editor.crc32=function(a){for(var c=-1,b=0;b<a.length;b++)c=c>>>8^Editor.crcTable[(c^a.charCodeAt(b))&255];return(c^
-1)>>>0};Editor.writeGraphModelToPng=function(a,c,b,d,f){function g(a,c){var b=n;n+=c;return a.substring(b,n)}function e(a){a=g(a,4);return a.charCodeAt(3)+(a.charCodeAt(2)<<8)+(a.charCodeAt(1)<<16)+(a.charCodeAt(0)<<24)}function l(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}a=a.substring(a.indexOf(",")+1);a=window.atob?atob(a):Base64.decode(a,!0);var n=0;if(g(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=f&&f();else if(g(a,4),"IHDR"!=g(a,4))null!=
f&&f();else{g(a,17);f=a.substring(0,n);do{var p=e(a);if("IDAT"==g(a,4)){f=a.substring(0,n-8);"pHYs"==c&&"dpi"==b?(b=Math.round(d/.0254),b=l(b)+l(b)+String.fromCharCode(1)):b=b+String.fromCharCode(0)+("zTXt"==c?String.fromCharCode(0):"")+d;d=4294967295;d=Editor.updateCRC(d,c,0,4);d=Editor.updateCRC(d,b,0,b.length);f+=l(b.length)+c+b+l(d^4294967295);f+=a.substring(n-8,a.length);break}f+=a.substring(n-8,n-4+p);g(a,p);g(a,4)}while(p);return"data:image/png;base64,"+(window.btoa?btoa(f):Base64.encode(f,
!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://desk.draw.io/support/solutions/articles/16000091426";var u=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(a,c){u.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var c=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){c.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=
!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.diagrams.net/doc/faq/save-file-formats";var u=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(a,c){u.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var c=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){c.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=
function(a,c){var b=null;null!=a.editor.graph.getModel().getParent(c)?b=c.getId():null!=a.currentPage&&(b=a.currentPage.getId());return b});if(null!=window.StyleFormatPanel){var f=Format.prototype.init;Format.prototype.init=function(){f.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var g=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?g.apply(this,arguments):
this.clear()};DiagramFormatPanel.prototype.isShadowOptionVisible=function(){var a=this.editorUi.getCurrentFile();return"1"==urlParams.embed||null!=a&&a.isEditable()};DiagramFormatPanel.prototype.isMathOptionVisible=function(a){return!1};var n=DiagramFormatPanel.prototype.addView;DiagramFormatPanel.prototype.addView=function(a){a=n.apply(this,arguments);this.editorUi.getCurrentFile();if(mxClient.IS_SVG&&this.isShadowOptionVisible()){var c=this.editorUi,b=c.editor.graph,d=this.createOption(mxResources.get("shadow"),
function(){return b.shadowVisible},function(a){var d=new ChangePageSetup(c);d.ignoreColor=!0;d.ignoreImage=!0;d.shadowVisible=a;b.model.execute(d)},{install:function(a){this.listener=function(){a(b.shadowVisible)};c.addListener("shadowVisibleChanged",this.listener)},destroy:function(){c.removeListener(this.listener)}});Editor.shadowOptionEnabled||(d.getElementsByTagName("input")[0].setAttribute("disabled","disabled"),mxUtils.setOpacity(d,60));a.appendChild(d)}return a};var l=DiagramFormatPanel.prototype.addOptions;
@ -3310,7 +3310,7 @@ p=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});p.classNa
(this.page.viewState.pageFormat=this.format),null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled),null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)):(L.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),
this.shadowVisible=!this.shadowVisible))};Editor.prototype.useCanvasForExport=!1;try{var N=document.createElement("canvas"),F=new Image;F.onload=function(){try{N.getContext("2d").drawImage(F,0,0);var a=N.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=a&&6<a.length}catch(K){}};F.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(v){}})();
(function(){var a=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);a.beforeDecode=function(a,b,e){e.ui=a.ui;return b};a.afterDecode=function(a,b,e){e.previousColor=e.color;e.previousImage=e.image;e.previousFormat=e.format;null!=e.foldingEnabled&&(e.foldingEnabled=!e.foldingEnabled);null!=e.mathEnabled&&(e.mathEnabled=!e.mathEnabled);null!=e.shadowVisible&&(e.shadowVisible=!e.shadowVisible);return e};mxCodecRegistry.register(a)})();
(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);a.beforeDecode=function(a,b,e){e.ui=a.ui;return b};mxCodecRegistry.register(a)})();(function(){EditorUi.VERSION="@DRAWIO-VERSION@";EditorUi.compactUi="atlas"!=uiTheme;mxGraphView.prototype.defaultDarkGridColor="#6e6e6e";"dark"==uiTheme&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;
(function(){var a=new mxObjectCodec(new ChangeGridColor,["ui"]);a.beforeDecode=function(a,b,e){e.ui=a.ui;return b};mxCodecRegistry.register(a)})();(function(){EditorUi.VERSION="13.10.9";EditorUi.compactUi="atlas"!=uiTheme;mxGraphView.prototype.defaultDarkGridColor="#6e6e6e";"dark"==uiTheme&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;
EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl="1"==urlParams.dev?"/cache":window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;
EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://desk.draw.io/support/solutions/articles/16000042367";EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},
gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};EditorUi.logError=function(a,b,d,e,l,p,t){p=null!=p?p:0<=a.indexOf("NetworkError")||0<=a.indexOf("SecurityError")||0<=a.indexOf("NS_ERROR_FAILURE")||0<=a.indexOf("out of memory")?"CONFIG":"SEVERE";if(EditorUi.enableLogging&&"1"!=urlParams.dev)try{if(a!=EditorUi.lastErrorMessage&&(null==a||null==b||-1==a.indexOf("Script error")&&
@ -3457,7 +3457,7 @@ g.appendChild(k);mxUtils.br(g);g.appendChild(n);k=document.createElement("span")
f.setAttribute("checked","checked");null==d&&n.setAttribute("disabled","disabled");c.appendChild(g);var q=this.addLinkSection(c),u=this.addCheckbox(c,mxResources.get("zoom"),!0,null,!0);mxUtils.write(c,":");var z=document.createElement("input");z.setAttribute("type","text");z.style.marginRight="16px";z.style.width="60px";z.style.marginLeft="4px";z.style.marginRight="12px";z.value="100%";c.appendChild(z);var A=this.addCheckbox(c,mxResources.get("fit"),!0),g=null!=this.pages&&1<this.pages.length,E=
E=this.addCheckbox(c,mxResources.get("allPages"),g,!g),D=this.addCheckbox(c,mxResources.get("layers"),!0),J=this.addCheckbox(c,mxResources.get("lightbox"),!0),G=this.addEditButton(c,J),L=G.getEditInput();L.style.marginBottom="16px";mxEvent.addListener(J,"change",function(){J.checked?L.removeAttribute("disabled"):L.setAttribute("disabled","disabled");L.checked&&J.checked?G.getEditSelect().removeAttribute("disabled"):G.getEditSelect().setAttribute("disabled","disabled")});a=new CustomDialog(this,c,
mxUtils.bind(this,function(){e(n.checked?d:null,u.checked,z.value,q.getTarget(),q.getColor(),A.checked,E.checked,D.checked,J.checked,G.getLink())}),null,a,b);this.showDialog(a.container,340,384,!0,!0);f.focus()};EditorUi.prototype.showPublishLinkDialog=function(a,b,d,e,l,k){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 g=this.getCurrentFile(),f="https://desk.draw.io/support/solutions/articles/16000051941";a=0;if(null!=g&&g.constructor==window.DriveFile&&!b){a=80;var f="https://desk.draw.io/support/solutions/articles/16000039384",n=document.createElement("div");n.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var p=document.createElement("div");p.style.whiteSpace="normal";mxUtils.write(p,mxResources.get("linkAccountRequired"));n.appendChild(p);
var g=this.getCurrentFile(),f="https://www.diagrams.net/doc/faq/publish-diagram-as-link";a=0;if(null!=g&&g.constructor==window.DriveFile&&!b){a=80;var f="https://desk.draw.io/support/solutions/articles/16000039384",n=document.createElement("div");n.style.cssText="border-bottom:1px solid lightGray;padding-bottom:14px;padding-top:6px;margin-bottom:14px;text-align:center;";var p=document.createElement("div");p.style.whiteSpace="normal";mxUtils.write(p,mxResources.get("linkAccountRequired"));n.appendChild(p);
p=mxUtils.button(mxResources.get("share"),mxUtils.bind(this,function(){this.drive.showPermissions(g.getId())}));p.style.marginTop="12px";p.className="geBtn";n.appendChild(p);c.appendChild(n);p=document.createElement("a");p.style.paddingLeft="12px";p.style.color="gray";p.style.fontSize="11px";p.style.cursor="pointer";mxUtils.write(p,mxResources.get("check"));n.appendChild(p);mxEvent.addListener(p,"click",mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"))&&this.getPublicUrl(this.getCurrentFile(),
mxUtils.bind(this,function(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 m=null,q=null;if(null!=d||null!=e)a+=30,mxUtils.write(c,mxResources.get("width")+":"),m=document.createElement("input"),m.setAttribute("type","text"),m.style.marginRight="16px",m.style.width="50px",m.style.marginLeft="6px",m.style.marginRight="16px",m.style.marginBottom="10px",
m.value="100%",c.appendChild(m),mxUtils.write(c,mxResources.get("height")+":"),q=document.createElement("input"),q.setAttribute("type","text"),q.style.width="50px",q.style.marginLeft="6px",q.style.marginBottom="10px",q.value=e+"px",c.appendChild(q),mxUtils.br(c);var A=this.addLinkSection(c,k);d=null!=this.pages&&1<this.pages.length;var u=null;if(null==g||g.constructor!=window.DriveFile||b)u=this.addCheckbox(c,mxResources.get("allPages"),d,!d);var D=this.addCheckbox(c,mxResources.get("lightbox"),!0,
@ -3541,7 +3541,7 @@ var a=this,b=this.editor.graph;"dark"==uiTheme&&(b.view.defaultGridColor=mxGraph
else{b.setCellStyles("image",a.convertDataUri(f),[c]);var k=b.model.getGeometry(c);null!=k&&(k=k.clone(),k.width=g,k.height=l,b.cellsResized([c],[k],!1))}b.setAttributeForCell(c,"plantUmlData",JSON.stringify({data:d,format:e.format}))}finally{b.getModel().endUpdate()}},function(b){a.handleError(b)})},null,null,400,220);a.showDialog(d.container,420,300,!0,!0);d.init()};b.cellEditor.editMermaidData=function(c,d,f){var e=JSON.parse(f);d=new TextareaDialog(a,mxResources.get("mermaid")+":",e.data,function(d){null!=
d&&a.spinner.spin(document.body,mxResources.get("inserting"))&&a.generateMermaidImage(d,e.config,function(f,g,l){a.spinner.stop();b.getModel().beginUpdate();try{b.setCellStyles("image",f,[c]);var k=b.model.getGeometry(c);null!=k&&(k=k.clone(),k.width=Math.max(k.width,g),k.height=Math.max(k.height,l),b.cellsResized([c],[k],!1));b.setAttributeForCell(c,"mermaidData",JSON.stringify({data:d,config:e.config},null,2))}finally{b.getModel().endUpdate()}},function(b){a.handleError(b)})},null,null,400,220);
a.showDialog(d.container,420,300,!0,!0);d.init()};var d=b.cellEditor.startEditing;b.cellEditor.startEditing=function(c,f){try{var e=this.graph.getAttributeForCell(c,"plantUmlData");if(null!=e)this.editPlantUmlData(c,f,e);else if(e=this.graph.getAttributeForCell(c,"mermaidData"),null!=e)this.editMermaidData(c,f,e);else{var g=b.getCellStyle(c);"1"==mxUtils.getValue(g,"metaEdit","0")?a.showDataDialog(c):d.apply(this,arguments)}}catch(J){a.handleError(J)}};b.getLinkTitle=function(b){return a.getLinkTitle(b)};
b.customLinkClicked=function(b){var c=!1;try{a.handleCustomLink(b),c=!0}catch(E){a.handleError(E)}return c};var e=this.clearDefaultStyle;this.clearDefaultStyle=function(){e.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://desk.draw.io/support/solutions/articles/16000051979");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";
b.customLinkClicked=function(b){var c=!1;try{a.handleCustomLink(b),c=!0}catch(E){a.handleError(E)}return c};var e=this.clearDefaultStyle;this.clearDefaultStyle=function(){e.apply(this,arguments)};this.isOffline()||"undefined"===typeof window.EditDataDialog||(EditDataDialog.placeholderHelpLink="https://www.diagrams.net/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";
var l=a.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(a){a=null!=a?a:"";"1"==urlParams.dev&&(a+=(0<a.length?"&":"?")+"dev=1");return l.apply(this,arguments)};var p=b.addClickHandler;b.addClickHandler=function(a,c,d){var f=c;c=function(a,c){if(null==c){var d=mxEvent.getSource(a);"a"==d.nodeName.toLowerCase()&&(c=d.getAttribute("href"))}null!=c&&b.isCustomLink(c)&&(mxEvent.isTouchEvent(a)||!mxEvent.isPopupTrigger(a))&&b.customLinkClicked(c)&&mxEvent.consume(a);null!=f&&f(a,c)};p.call(this,
a,c,d)};k.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(b.view.canvas.ownerSVGElement,null,!0);a.actions.get("print").funct=function(){a.showDialog((new PrintDialog(a)).container,360,null!=a.pages&&1<a.pages.length?450:370,!0,!0)};this.defaultFilename=mxResources.get("untitledDiagram");var m=b.getExportVariables;b.getExportVariables=function(){var b=m.apply(this,arguments),c=a.getCurrentFile();null!=c&&(b.filename=c.getTitle());b.pagecount=null!=a.pages?a.pages.length:1;b.page=
null!=a.currentPage?a.currentPage.getName():"";b.pagenumber=null!=a.pages&&null!=a.currentPage?mxUtils.indexOf(a.pages,a.currentPage)+1:1;return b};var q=b.getGlobalVariable;b.getGlobalVariable=function(b){var c=a.getCurrentFile();return"filename"==b&&null!=c?c.getTitle():"page"==b&&null!=a.currentPage?a.currentPage.getName():"pagenumber"==b?null!=a.currentPage&&null!=a.pages?mxUtils.indexOf(a.pages,a.currentPage)+1:1:"pagecount"==b?null!=a.pages?a.pages.length:1:q.apply(this,arguments)};var u=b.labelLinkClicked;

View file

@ -6,11 +6,11 @@ if (workbox)
workbox.precaching.precacheAndRoute([
{
"url": "js/app.min.js",
"revision": "12f70088274c7451168cab1904110e2c"
"revision": "4423072418d2be3161859f77ee27266a"
},
{
"url": "js/extensions.min.js",
"revision": "d808bed63e2630b8243cca3caada6654"
"revision": "6bb7f0ffcbbe1d14c8bc8f1bef625ed8"
},
{
"url": "js/stencils.min.js",
@ -58,7 +58,7 @@ if (workbox)
},
{
"url": "js/viewer-static.min.js",
"revision": "73020845b2ef40e627ff720ba543fb04"
"revision": "9184c5546ebadea9c054113d485b7c3e"
},
{
"url": "connect/jira/editor-1-3-3.html",