diff --git a/ChangeLog b/ChangeLog index 72eed9b5..bb980754 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +04-NOV-2020: 13.9.1 + +- Improves Lucidchart import + 04-NOV-2020: 13.9.0 - Disables Trello in IE11 diff --git a/VERSION b/VERSION index 5bbc0df2..f8b8809d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -13.9.0 \ No newline at end of file +13.9.1 \ No newline at end of file diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js index e5f6e123..deacf084 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -3,13 +3,15 @@ // NOTE: Modified to support data URIs for images, ie. data:image/* // Modified to allow "word-break: break-word" in styles. It is done by adding "break-word" which is at index 55 of J array J[55] to "cssLitGroup" of "word-break" // Modified to support justify-content. Add possible values to J array below ["flex-start,flex-end,center,space-between,space-around,initial".split(",")], then in L map (the variable after J), add its definition ["justify-content":{cssPropBits:0,cssLitGroup:[J[81]],cssFns:[]}] +// Added support for flex-direction (next J index is 83) +// Added support for align-items (next J index is 84) (function(){var c=void 0,n=!0,s=null,C=!1,J=["aliceblue,antiquewhite,aqua,aquamarine,azure,beige,bisque,black,blanchedalmond,blue,blueviolet,brown,burlywood,cadetblue,chartreuse,chocolate,coral,cornflowerblue,cornsilk,crimson,cyan,darkblue,darkcyan,darkgoldenrod,darkgray,darkgreen,darkkhaki,darkmagenta,darkolivegreen,darkorange,darkorchid,darkred,darksalmon,darkseagreen,darkslateblue,darkslategray,darkturquoise,darkviolet,deeppink,deepskyblue,dimgray,dodgerblue,firebrick,floralwhite,forestgreen,fuchsia,gainsboro,ghostwhite,gold,goldenrod,gray,green,greenyellow,honeydew,hotpink,indianred,indigo,ivory,khaki,lavender,lavenderblush,lawngreen,lemonchiffon,lightblue,lightcoral,lightcyan,lightgoldenrodyellow,lightgreen,lightgrey,lightpink,lightsalmon,lightseagreen,lightskyblue,lightslategray,lightsteelblue,lightyellow,lime,limegreen,linen,magenta,maroon,mediumaquamarine,mediumblue,mediumorchid,mediumpurple,mediumseagreen,mediumslateblue,mediumspringgreen,mediumturquoise,mediumvioletred,midnightblue,mintcream,mistyrose,moccasin,navajowhite,navy,oldlace,olive,olivedrab,orange,orangered,orchid,palegoldenrod,palegreen,paleturquoise,palevioletred,papayawhip,peachpuff,peru,pink,plum,powderblue,purple,red,rosybrown,royalblue,saddlebrown,salmon,sandybrown,seagreen,seashell,sienna,silver,skyblue,slateblue,slategray,snow,springgreen,steelblue,tan,teal,thistle,tomato,transparent,turquoise,violet,wheat,white,whitesmoke,yellow,yellowgreen".split(","), "all-scroll,col-resize,crosshair,default,e-resize,hand,help,move,n-resize,ne-resize,no-drop,not-allowed,nw-resize,pointer,progress,row-resize,s-resize,se-resize,sw-resize,text,vertical-text,w-resize,wait".split(","),"armenian,decimal,decimal-leading-zero,disc,georgian,lower-alpha,lower-greek,lower-latin,lower-roman,square,upper-alpha,upper-latin,upper-roman".split(","),"100,200,300,400,500,600,700,800,900,bold,bolder,lighter".split(","),"block-level,inline-level,table-caption,table-cell,table-column,table-column-group,table-footer-group,table-header-group,table-row,table-row-group".split(","), "condensed,expanded,extra-condensed,extra-expanded,narrower,semi-condensed,semi-expanded,ultra-condensed,ultra-expanded,wider".split(","),"inherit,inline,inline-block,inline-box,inline-flex,inline-grid,inline-list-item,inline-stack,inline-table,run-in".split(","),"behind,center-left,center-right,far-left,far-right,left-side,leftwards,right-side,rightwards".split(","),"large,larger,small,smaller,x-large,x-small,xx-large,xx-small".split(","),"dashed,dotted,double,groove,outset,ridge,solid".split(","), "ease,ease-in,ease-in-out,ease-out,linear,step-end,step-start".split(","),"at,closest-corner,closest-side,ellipse,farthest-corner,farthest-side".split(","),"baseline,middle,sub,super,text-bottom,text-top".split(","),"caption,icon,menu,message-box,small-caption,status-bar".split(","),"fast,faster,slow,slower,x-fast,x-slow".split(","),["above","below","higher","level","lower"],["cursive","fantasy","monospace","sans-serif","serif"],["loud","silent","soft","x-loud","x-soft"],["no-repeat","repeat-x","repeat-y", "round","space"],["blink","line-through","overline","underline"],["block","flex","grid","table"],["high","low","x-high","x-low"],["nowrap","pre","pre-line","pre-wrap"],["absolute","relative","static"],["alternate","alternate-reverse","reverse"],["border-box","content-box","padding-box"],["capitalize","lowercase","uppercase"],["child","female","male"],["=","opacity"],["backwards","forwards"],["bidi-override","embed"],["bottom","top"],["break-all","keep-all"],["clip","ellipsis"],["contain","cover"], ["continuous","digits"],["end","start"],["flat","preserve-3d"],["hide","show"],["horizontal","vertical"],["inside","outside"],["italic","oblique"],["left","right"],["ltr","rtl"],["no-content","no-display"],["paused","running"],["suppress","unrestricted"],["thick","thin"],[","],["/"],["all"],["always"],["auto"],["avoid"],["both"],["break-word"],["center"],["circle"],["code"],["collapse"],["contents"],["fixed"],["hidden"],["infinite"],["inset"],["invert"],["justify"],["list-item"],["local"],["medium"], -["mix"],["none"],["normal"],["once"],["repeat"],["scroll"],["separate"],["small-caps"],["spell-out"],["to"],["visible"], "flex-start,flex-end,center,space-between,space-around,initial".split(",")],L={animation:{cssPropBits:517,cssLitGroup:[J[10],J[24],J[29],J[45],J[48],J[54],J[63],J[71],J[72]],cssFns:["cubic-bezier()","steps()"]},"animation-delay":{cssPropBits:5,cssLitGroup:[J[48]],cssFns:[]},"animation-direction":{cssPropBits:0,cssLitGroup:[J[24],J[48],J[72]],cssFns:[]},"animation-duration":"animation-delay","animation-fill-mode":{cssPropBits:0,cssLitGroup:[J[29],J[48], +["mix"],["none"],["normal"],["once"],["repeat"],["scroll"],["separate"],["small-caps"],["spell-out"],["to"],["visible"], "flex-start,flex-end,center,space-between,space-around,initial".split(","), "row|row-reverse|column|column-reverse|initial".split("|"), "stretch|center|flex-start|flex-end|baseline|initial".split("|")],L={animation:{cssPropBits:517,cssLitGroup:[J[10],J[24],J[29],J[45],J[48],J[54],J[63],J[71],J[72]],cssFns:["cubic-bezier()","steps()"]},"animation-delay":{cssPropBits:5,cssLitGroup:[J[48]],cssFns:[]},"animation-direction":{cssPropBits:0,cssLitGroup:[J[24],J[48],J[72]],cssFns:[]},"animation-duration":"animation-delay","animation-fill-mode":{cssPropBits:0,cssLitGroup:[J[29],J[48], J[54],J[71]],cssFns:[]},"animation-iteration-count":{cssPropBits:5,cssLitGroup:[J[48],J[63]],cssFns:[]},"animation-name":{cssPropBits:512,cssLitGroup:[J[48],J[71]],cssFns:[]},"animation-play-state":{cssPropBits:0,cssLitGroup:[J[45],J[48]],cssFns:[]},"animation-timing-function":{cssPropBits:0,cssLitGroup:[J[10],J[48]],cssFns:["cubic-bezier()","steps()"]},appearance:{cssPropBits:0,cssLitGroup:[J[71]],cssFns:[]},azimuth:{cssPropBits:5,cssLitGroup:[J[7],J[42],J[56]],cssFns:[]},"backface-visibility":{cssPropBits:0, cssLitGroup:[J[59],J[62],J[80]],cssFns:[]},background:{cssPropBits:23,cssLitGroup:[J[0],J[18],J[25],J[31],J[34],J[42],J[48],J[49],J[52],J[56],J[61],J[68],J[71],J[74],J[75]],cssFns:"image(),linear-gradient(),radial-gradient(),repeating-linear-gradient(),repeating-radial-gradient(),rgb(),rgba()".split(",")},"background-attachment":{cssPropBits:0,cssLitGroup:[J[48],J[61],J[68],J[75]],cssFns:[]},"background-color":{cssPropBits:2,cssLitGroup:[J[0]],cssFns:["rgb()","rgba()"]},"background-image":{cssPropBits:16, cssLitGroup:[J[48],J[71]],cssFns:["image()","linear-gradient()","radial-gradient()","repeating-linear-gradient()","repeating-radial-gradient()"]},"background-position":{cssPropBits:5,cssLitGroup:[J[31],J[42],J[48],J[56]],cssFns:[]},"background-repeat":{cssPropBits:0,cssLitGroup:[J[18],J[48],J[74]],cssFns:[]},"background-size":{cssPropBits:5,cssLitGroup:[J[34],J[48],J[52]],cssFns:[]},border:{cssPropBits:7,cssLitGroup:[J[0],J[9],J[47],J[62],J[64],J[69],J[71]],cssFns:["rgb()","rgba()"]},"border-bottom":"border", @@ -30,7 +32,7 @@ cssLitGroup:[J[46],J[71],J[72]],cssFns:[]},top:"bottom",transform:{cssPropBits:0 cssFns:[]},"white-space":{cssPropBits:0,cssLitGroup:[J[22],J[72]],cssFns:[]},width:"min-height","word-break":{cssPropBits:0,cssLitGroup:[J[32],J[72],J[55]],cssFns:[]},"word-spacing":"letter-spacing","word-wrap":"overflow-wrap","z-index":"bottom",zoom:"line-height","cubic-bezier()":"animation-delay","steps()":{cssPropBits:5,cssLitGroup:[J[36],J[48]],cssFns:[]},"image()":{cssPropBits:18,cssLitGroup:[J[0],J[48]],cssFns:["rgb()","rgba()"]},"linear-gradient()":{cssPropBits:7,cssLitGroup:[J[0],J[31],J[42],J[48], J[79]],cssFns:["rgb()","rgba()"]},"radial-gradient()":{cssPropBits:7,cssLitGroup:[J[0],J[11],J[31],J[42],J[48],J[56],J[57]],cssFns:["rgb()","rgba()"]},"repeating-linear-gradient()":"linear-gradient()","repeating-radial-gradient()":"radial-gradient()","rgb()":{cssPropBits:1,cssLitGroup:[J[48]],cssFns:[]},"rgba()":"rgb()","rect()":{cssPropBits:5,cssLitGroup:[J[48],J[52]],cssFns:[]},"alpha()":{cssPropBits:1,cssLitGroup:[J[28]],cssFns:[]},"matrix()":"animation-delay","perspective()":"border-bottom-left-radius", "rotate()":"border-bottom-left-radius","rotate3d()":"animation-delay","rotatex()":"border-bottom-left-radius","rotatey()":"border-bottom-left-radius","rotatez()":"border-bottom-left-radius","scale()":"animation-delay","scale3d()":"animation-delay","scalex()":"border-bottom-left-radius","scaley()":"border-bottom-left-radius","scalez()":"border-bottom-left-radius","skew()":"animation-delay","skewx()":"border-bottom-left-radius","skewy()":"border-bottom-left-radius","translate()":"animation-delay","translate3d()":"animation-delay", -"translatex()":"border-bottom-left-radius","translatey()":"border-bottom-left-radius","translatez()":"border-bottom-left-radius", "justify-content":{cssPropBits:0,cssLitGroup:[J[81]],cssFns:[]}},O;for(O in L)"string"===typeof L[O]&&Object.hasOwnProperty.call(L,O)&&(L[O]=L[L[O]]);"undefined"!==typeof window&&(window.cssSchema=L);var U,X; +"translatex()":"border-bottom-left-radius","translatey()":"border-bottom-left-radius","translatez()":"border-bottom-left-radius", "justify-content":{cssPropBits:0,cssLitGroup:[J[81]],cssFns:[]}, "flex-direction":{cssPropBits:0,cssLitGroup:[J[82]],cssFns:[]}, "align-items":{cssPropBits:0,cssLitGroup:[J[83]],cssFns:[]}},O;for(O in L)"string"===typeof L[O]&&Object.hasOwnProperty.call(L,O)&&(L[O]=L[L[O]]);"undefined"!==typeof window&&(window.cssSchema=L);var U,X; (function(){function g(a){var f=parseInt(a.substring(1),16);return 65535>10),56320+(f&1023))):f==f?String.fromCharCode(f):" ">a[1]?"":a[1]}function w(a,f){return'"'+a.replace(/[\u0000-\u001f\\\"<>]/g,f)+'"'}function M(a){return E[a]||(E[a]="\\"+a.charCodeAt(0).toString(16)+" ")}function x(a){return e[a]||(e[a]=("\u0010">a?"%0":"%")+a.charCodeAt(0).toString(16))}var E={"\\":"\\\\"},e={"\\":"%5c"},v=RegExp("\\uFEFF|U[+][0-9A-F?]{1,6}(?:-[0-9A-F]{1,6})?|url[(][\\t\\n\\f ]*(?:\"(?:'|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*\"|'(?:\"|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*'|(?:[\\t\\x21\\x23-\\x26\\x28-\\x5b\\x5d-\\x7e]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*)[\\t\\n\\f ]*[)]|(?!url[(])-?(?:[a-zA-Z_]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))(?:[a-zA-Z0-9_-]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*[(]|(?:@?-?(?:[a-zA-Z_]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))|#)(?:[a-zA-Z0-9_-]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*|\"(?:'|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*\"|'(?:\"|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*'|[-+]?(?:[0-9]+(?:[.][0-9]+)?|[.][0-9]+)(?:%|-?(?:[a-zA-Z_]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))(?:[a-zA-Z0-9_-]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*)?|<\!--|--\>|[\\t\\n\\f ]+|/(?:[*][^*]*[*]+(?:[^/][^*]*[*]+)*/|/[^\\n\\f]*)|[~|^$*]=|[^\"'\\\\/]|/(?![/*])","gi"), b=RegExp("\\\\(?:(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff])|[\\n\\f])","g"),a=RegExp("^url\\([\\t\\n\\f ]*[\"']?|[\"']?[\\t\\n\\f ]*\\)$","gi");X=function(a){return a.replace(b,g)};U=function(b){for(var b=(""+b).replace(/\r\n?/g,"\n").match(v)||[],f=0,h=" ",d=0,y=b.length;d"==l||"<\!--"==l||"\ufeff"==l||32>=g?" ": /url\(/i.test(l)?"url("+w(l.replace(a,""),x)+")":l;if(h!=l||" "!=l)b[f++]=h=l}b.length=f;return b}})();"undefined"!==typeof window&&(window.lexCss=U,window.decodeCss=X);var Y=function(){function g(d){d=(""+d).match(k);return!d?s:new e(v(d[1]),v(d[2]),v(d[3]),v(d[4]),v(d[5]),v(d[6]),v(d[7]))}function w(d,a){return"string"==typeof d?encodeURI(d).replace(a,M):s}function M(d){d=d.charCodeAt(0);return"%"+"0123456789ABCDEF".charAt(d>>4&15)+"0123456789ABCDEF".charAt(d&15)}function x(d){if(d===s)return s;for(var d=d.replace(/(^|\/)\.(?:\/|$)/g,"$1").replace(/\/{2,}/g,"/"),a=b,h;(h=d.replace(a,"$1"))!=d;d=h);return d}function E(d,h){var b=d.T(),f=h.K();f?b.ga(h.j):f=h.X(); @@ -10087,7 +10089,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)):(H.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"),I=new Image;I.onload=function(){try{J.getContext("2d").drawImage(I,0,0);var a=J.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=a&&6
')))}catch(K){}})(); (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.9.0";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.9.1";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,q){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")&& diff --git a/src/main/webapp/js/diagramly/Extensions.js b/src/main/webapp/js/diagramly/Extensions.js index 7ed90a19..c0586e0b 100644 --- a/src/main/webapp/js/diagramly/Extensions.js +++ b/src/main/webapp/js/diagramly/Extensions.js @@ -3923,16 +3923,17 @@ LucidImporter = {}; if (!listActive) { var tmp = styles['a']? styles['a'].v : 'center'; + var jc = tmp; if (tmp == 'left') { - tmp = 'flex-start'; + jc = 'flex-start'; } else if (tmp == 'right') { - tmp = 'flex-end'; + jc = 'flex-end'; } - str += 'display: flex; justify-content: ' + tmp + ';'; + str += 'display: flex; font-size: 0; line-height: 1; align-items: baseline; justify-content: ' + jc + '; text-align: ' + tmp + ';'; } if (styles['il']) @@ -3956,7 +3957,13 @@ LucidImporter = {}; } str += '">'; - + + if (!listActive) + { + str += ''; + openBlockTags.push('span'); + } + return str; }; @@ -3984,10 +3991,7 @@ LucidImporter = {}; openTags.push('span'); tagCount++; - if (styles['s']) - { - str += 'font-size:' + Math.floor(styles['s'].v * scale) + 'px;'; - } + str += 'font-size:' + (styles['s']? Math.floor(styles['s'].v * scale) : defaultFontSize) + 'px;'; if (styles['c']) { @@ -4128,7 +4132,9 @@ LucidImporter = {}; if (curS - curE > 0) { - html += endTag(txt, curE, curS); + //NOTE: After the fix in end where we add dummy start and end, this shouldn't be called + //End any open tag and add remaining text with current style + html += startTag(curStyles) + endTag(txt, curE, curS); } while(s != null && s.s == curS) @@ -4153,6 +4159,13 @@ LucidImporter = {}; html += endTag(txt, curS, curE); curS = curE; + + //Next start should be immidiately after this end or we add a dummy one + if (openTagsCount.length == 0 && (s == null || s.s != curE)) + { + m.splice(i, 0, {s: curE, n: 'dummy', v: ''}); + ends.splice(j, 0, {e: s? s.s : maxE, n: 'dummy', v: ''}); + } } else { @@ -4328,7 +4341,7 @@ LucidImporter = {}; function getLabelStyle(properties, noLblStyle) { - var style = 'whiteSpace=wrap;' + (noLblStyle? 'overflow=block;html=1;' : + var style = 'whiteSpace=wrap;' + (noLblStyle? 'overflow=block;html=1;fontSize=' + defaultFontSize + ';' : getFontSize(properties) + getFontColor(properties) + getFontStyle(properties) + @@ -4354,8 +4367,10 @@ LucidImporter = {}; } s += 'whiteSpace=wrap;' + - (noLblStyle? (hasStyle(style, 'overflow')? '' : 'overflow=block;') + (hasStyle(style, 'html')? '' : 'html=1;') : - addStyle(mxConstants.STYLE_FONTSIZE, style, properties, action, cell) + + (noLblStyle? (hasStyle(style, 'overflow')? '' : 'overflow=block;') + + (hasStyle(style, 'html')? '' : 'html=1;') + 'fontSize=' + defaultFontSize + ';' + : + addStyle(mxConstants.STYLE_FONTSIZE, style, properties, action, cell) + addStyle(mxConstants.STYLE_FONTCOLOR, style, properties, action, cell) + addStyle(mxConstants.STYLE_FONTSTYLE, style, properties, action, cell) + addStyle(mxConstants.STYLE_ALIGN, style, properties, action, cell) + @@ -4363,7 +4378,7 @@ LucidImporter = {}; addStyle(mxConstants.STYLE_SPACING_RIGHT, style, properties, action, cell) + addStyle(mxConstants.STYLE_SPACING_TOP, style, properties, action, cell) + addStyle(mxConstants.STYLE_SPACING_BOTTOM, style, properties, action, cell) - ) + + ) + addStyle(mxConstants.STYLE_SPACING, style, properties, action, cell) + addStyle(mxConstants.STYLE_VERTICAL_ALIGN, style, properties, action, cell) + addStyle(mxConstants.STYLE_STROKECOLOR, style, properties, action, cell) + @@ -6529,7 +6544,7 @@ LucidImporter = {}; if (hasTxt) { v.value = convertText(p[mainTxtFld]); - v.style += (isLastLblHTML? 'overflow=block;' : + v.style += (isLastLblHTML? 'overflow=block;fontSize=' + defaultFontSize + ';' : getFontSize(p[mainTxtFld]) + getFontColor(p[mainTxtFld]) + getFontStyle(p[mainTxtFld]) + @@ -6576,7 +6591,7 @@ LucidImporter = {}; lane[j].value = convertText(p[curLane]); lane[j].style += addAllStyles(lane[j].style, p, a, lane[j], isLastLblHTML) + - (isLastLblHTML? '' : + (isLastLblHTML? 'fontSize=' + defaultFontSize + ';' : getFontSize(p[curLane]) + getFontColor(p[curLane]) + getFontStyle(p[curLane]) + @@ -6676,7 +6691,7 @@ LucidImporter = {}; r.value = convertText(p[curRow]); r.style += addAllStyles(r.style, p, a, r, isLastLblHTML) + - (isLastLblHTML? '' : + (isLastLblHTML? 'fontSize=' + defaultFontSize + ';' : getFontSize(p[curRow]) + getFontColor(p[curRow]) + getFontStyle(p[curRow]) + @@ -6714,7 +6729,7 @@ LucidImporter = {}; c.value = convertText(p[curCol]); c.style += addAllStyles(c.style, p, a, c, isLastLblHTML) + - (isLastLblHTML? '' : + (isLastLblHTML? 'fontSize=' + defaultFontSize + ';' : getFontSize(p[curCol]) + getFontColor(p[curCol]) + getFontStyle(p[curCol]) + @@ -7510,7 +7525,7 @@ LucidImporter = {}; v.insert(tab[i]); tab[i].value = convertText(p["Tab_" + i]); - tab[i].style += (isLastLblHTML? 'overflow=block;html=1;' : + tab[i].style += (isLastLblHTML? 'overflow=block;html=1;fontSize=' + defaultFontSize + ';' : getFontSize(p["Tab_" + i]) + getFontColor(p["Tab_" + i]) + getFontStyle(p["Tab_" + i]) + @@ -7787,7 +7802,7 @@ LucidImporter = {}; case 'iOSBasicCell' : v.value = convertText(p.text); v.style += 'shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft=' + (p.SeparatorInset * scale) + ';'; - v.style += (isLastLblHTML? '' : + v.style += (isLastLblHTML? 'fontSize=' + defaultFontSize + ';' : getFontSize(p.text) + getFontColor(p.text) + getFontStyle(p.text)) + @@ -7834,7 +7849,7 @@ LucidImporter = {}; case 'iOSSubtitleCell' : v.style += 'shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft=' + (p.SeparatorInset * scale) + ';'; v.value = convertText(p.subtext); - v.style += (isLastLblHTML? '' : + v.style += (isLastLblHTML? 'fontSize=' + defaultFontSize + ';' : getFontSize(p.subtext) + getFontColor(p.subtext) + getFontStyle(p.subtext)); @@ -7844,8 +7859,8 @@ LucidImporter = {}; subtext.vertex = true; v.insert(subtext); subtext.value = convertText(p.text); - subtext.style += (isLastLblHTML? 'html=1;' : - getFontSize(p.text) + + subtext.style += (isLastLblHTML? 'html=1;fontSize=' + defaultFontSize + ';': + getFontSize(p.text) + getFontColor(p.text) + getFontStyle(p.text)); @@ -7889,8 +7904,8 @@ LucidImporter = {}; case 'iOSRightDetailCell' : v.style += 'shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft=' + (p.SeparatorInset * scale) + ';'; v.value = convertText(p.subtext); - v.style += (isLastLblHTML? '' : - getFontSize(p.subtext) + + v.style += (isLastLblHTML? 'fontSize=' + defaultFontSize + ';' : + getFontSize(p.subtext) + getFontColor(p.subtext) + getFontStyle(p.subtext)); v.style += addAllStyles(v.style, p, a, v, isLastLblHTML); @@ -7946,8 +7961,8 @@ LucidImporter = {}; subtext.vertex = true; v.insert(subtext); subtext.value = convertText(p.text); - subtext.style += (isLastLblHTML? 'html=1;' : - getFontSize(p.text) + + subtext.style += (isLastLblHTML? 'html=1;fontSize=' + defaultFontSize + ';' : + getFontSize(p.text) + getFontColor(p.text) + getFontStyle(p.text)); @@ -7961,8 +7976,8 @@ LucidImporter = {}; text.vertex = true; v.insert(text); text.value = convertText(p.subtext); - text.style += (isLastLblHTML? 'html=1;' : - getFontSize(p.subtext) + + text.style += (isLastLblHTML? 'html=1;fontSize=' + defaultFontSize + ';' : + getFontSize(p.subtext) + getFontColor(p.subtext) + getFontStyle(p.subtext)); @@ -7970,8 +7985,8 @@ LucidImporter = {}; subtext.vertex = true; v.insert(subtext); subtext.value = convertText(p.text); - subtext.style += (isLastLblHTML? 'html=1;' : - getFontSize(p.text) + + subtext.style += (isLastLblHTML? 'html=1;fontSize=' + defaultFontSize + ';' : + getFontSize(p.text) + getFontColor(p.text) + getFontStyle(p.text)); @@ -8019,7 +8034,7 @@ LucidImporter = {}; text1.vertex = true; v.insert(text1); text1.value = convertText(p.text); - text1.style += (isLastLblHTML? 'html=1;' : + text1.style += (isLastLblHTML? 'html=1;fontSize=' + defaultFontSize + ';' : getFontSize(p.text) + getFontColor(p.text) + getFontStyle(p.text)); @@ -8028,7 +8043,7 @@ LucidImporter = {}; text2.vertex = true; v.insert(text2); text2.value = convertText(p["bottom-text"]); - text2.style += (isLastLblHTML? 'html=1;' : + text2.style += (isLastLblHTML? 'html=1;fontSize=' + defaultFontSize + ';' : getFontSize(p["bottom-text"]) + getFontColor(p["bottom-text"]) + getFontStyle(p["bottom-text"])); @@ -8038,8 +8053,8 @@ LucidImporter = {}; case 'iOSTablePlainHeaderFooter' : v.style += 'fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;'; v.value = convertText(p.text); - v.style += (isLastLblHTML? '' : - getFontSize(p.text) + + v.style += (isLastLblHTML? 'fontSize=' + defaultFontSize + ';' : + getFontSize(p.text) + getFontColor(p.text) + getFontStyle(p.text)); v.style += addAllStyles(v.style, p, a, v, isLastLblHTML); @@ -8895,7 +8910,7 @@ LucidImporter = {}; cell.value = convertText(cellLbl); cell.style += addAllStyles(cell.style, p, a, cell, isLastLblHTML) + - (isLastLblHTML? '' : + (isLastLblHTML? 'fontSize=' + defaultFontSize + ';' : getFontSize(cellLbl) + getFontColor(cellLbl) + getFontStyle(cellLbl) + @@ -10356,7 +10371,6 @@ LucidImporter = {}; v.insert(item1); item1.value = convertText(p.PoweredText); item1.style += (isLastLblHTML? '' : - 'fontSize=6;' + getFontColor(p.PoweredText) + getFontStyle(p.PoweredText) + getTextAlignment(p.PoweredText) + @@ -10365,6 +10379,7 @@ LucidImporter = {}; getTextBottomSpacing(p.PoweredText) + getTextGlobalSpacing(p.PoweredText) ) + + 'fontSize=6;' + getTextVerticalAlignment(p.PoweredText); item1.style += addAllStyles(item1.style, p, a, item1, isLastLblHTML); } @@ -10453,7 +10468,7 @@ LucidImporter = {}; case 'UI2WindowBlock' : v.value = convertText(p.Title); v.style += 'shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;' + - (isLastLblHTML? '' : + (isLastLblHTML? 'fontSize=' + defaultFontSize + ';' : getFontSize(p.Title) + getFontColor(p.Title) + getFontStyle(p.Title)); diff --git a/src/main/webapp/js/extensions.min.js b/src/main/webapp/js/extensions.min.js index 16afe265..ea5b2cb6 100644 --- a/src/main/webapp/js/extensions.min.js +++ b/src/main/webapp/js/extensions.min.js @@ -1,159 +1,160 @@ LucidImporter={}; -(function(){function f(a,b){function d(a){var b="",d=a.t,k=a.l||{};if(null==d||0!=ya&&ya==d.v&&l==k.v)null==d&&(ya&&(b+=c(!0),ya=!1),b+='
',E.push("li"),b+=''}function k(a){if(0==Object.keys(a).length)return"";var b="",d=0;if(a.lk){var k=a.lk;null!=k.v&&0',A.push("a"),d++)}b+='"}while(0/g,">");do for(b=D.pop(),d=0;d"}while(k&&0z[p])x.splice(g,0,{s:z[p],n:"a",v:"center"});else{for(;g=va&&(gN)break;y=M.s;for(0N)break;S=R.e;do delete e[R.n],R=p[++va];while(null!=R&&R.e==S);z+=n(a,y,S); -y=S}else break}z+=n(null,null,null,!0);T&&(z+=c(!0));return z}function g(a){y=!1;var b=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==b&&null!=a.State?null!=a.State.t&&(b=a.State):null==b&&null!=a.Note?null!=a.Note.t&&(b=a.Note):null==b&&null!=a.Title?null!=a.Title.t&&(b=a.Title):null!=a.t&&(b=a);null==b&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&&(b=a.TextAreas.Text.Value):null==b&&null!=a.t0&&null!=a.t0.t&&(b=a.t0);if(null!= -b){if(null!=b.t){a=b.t;a=a.replace(/\u2028/g,"\n");b=b.m;try{for(var d=0;d/g,">")}if(null!=b.Value&&null!=b.Value.t)return b.Value.t=b.Value.t.replace(//g,">"),b.Value.t}return""}function p(a){return null!=a.Action?a.Action:a}function e(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 m(b,c){return"whiteSpace=wrap;"+(c?"overflow=block;html=1;":a(b)+d(b)+k(b)+w(b)+x(b)+z(b)+B(b)+A(b))+C(b)+D(b)}function c(a,d,k,c,n){var h="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(h=";");return h+="whiteSpace=wrap;"+(n?(dc(a,"overflow")?"":"overflow=block;")+(dc(a, -"html")?"":"html=1;"):b(mxConstants.STYLE_FONTSIZE,a,d,k,c)+b(mxConstants.STYLE_FONTCOLOR,a,d,k,c)+b(mxConstants.STYLE_FONTSTYLE,a,d,k,c)+b(mxConstants.STYLE_ALIGN,a,d,k,c)+b(mxConstants.STYLE_SPACING_LEFT,a,d,k,c)+b(mxConstants.STYLE_SPACING_RIGHT,a,d,k,c)+b(mxConstants.STYLE_SPACING_TOP,a,d,k,c)+b(mxConstants.STYLE_SPACING_BOTTOM,a,d,k,c))+b(mxConstants.STYLE_SPACING,a,d,k,c)+b(mxConstants.STYLE_VERTICAL_ALIGN,a,d,k,c)+b(mxConstants.STYLE_STROKECOLOR,a,d,k,c)+b(mxConstants.STYLE_OPACITY,a,d,k,c)+ -b(mxConstants.STYLE_ROUNDED,a,d,k,c)+b(mxConstants.STYLE_ROTATION,a,d,k,c)+b(mxConstants.STYLE_FLIPH,a,d,k,c)+b(mxConstants.STYLE_FLIPV,a,d,k,c)+b(mxConstants.STYLE_SHADOW,a,d,k,c)+b(mxConstants.STYLE_FILLCOLOR,a,d,k,c)+b(mxConstants.STYLE_DASHED,a,d,k,c)+b(mxConstants.STYLE_STROKEWIDTH,a,d,k,c)+b(mxConstants.STYLE_IMAGE,a,d,k,c)}function b(b,c,n,f,h){if(!dc(c,b))switch(b){case mxConstants.STYLE_FONTSIZE:return a(n);case mxConstants.STYLE_FONTCOLOR:return d(n);case mxConstants.STYLE_FONTSTYLE:return k(n); -case mxConstants.STYLE_ALIGN:return w(n);case mxConstants.STYLE_SPACING_LEFT:return x(n);case mxConstants.STYLE_SPACING_RIGHT:return z(n);case mxConstants.STYLE_SPACING_TOP:return B(n);case mxConstants.STYLE_SPACING_BOTTOM:return A(n);case mxConstants.STYLE_SPACING:return C(n);case mxConstants.STYLE_VERTICAL_ALIGN:return D(n);case mxConstants.STYLE_STROKECOLOR:return E(n,f);case mxConstants.STYLE_OPACITY:return O(n,f,h);case mxConstants.STYLE_ROUNDED:return b=!h.edge&&!h.style.includes("rounded")&& -null!=n.Rounding&&0k;)c=d["m"+k],null!=c&&(n=na(c,n,a)),k++;null!=d.Text&&(n=na(d.Text,n,a));d=null!=b?b.TextAreas:a.TextAreas;null!=d.Message&&(n=na(d.Message,n,a))}return n}function na(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 c=g(a),k=new mxGeometry(isNaN(k)? -0:k,0,0,0),f="11",w="";if(null!=a&&null!=a.Value&&null!=a.Value.m)for(var w=n(a.Value.m),m=0;m'];p.push("");for(var B=null,e=0;e')}if(null!=A.n1){var E;var T=z[A.p2].x,y=z[A.p2].y,S=k,l=n,N=new Tb(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 T=Math.round(100*T/S*100)/100,y=Math.round(100*y/l*100)/100,S=[],l=[],ca=[],M=N.getSize(),R=0;R';E=G}else E=void 0;p.push(E)}else C=z[A.p2].x,D=z[A.p2].y,C=100*C/k,D=100*D/n,C=Math.round(100*C)/100,D=Math.round(100*D)/100,p.push('');B=A.p2}p.push("");p.push("");p.push("");d.push({shapeStencil:"stencil("+Graph.compress(p.join(""))+")",FillColor:w,LineColor:x,LineWidth:m})}LucidImporter.stencilsMap[a]={text:b.Text,w:k,h:n, -stencils:d}}catch(ld){console.log("Stencil parsing error:",ld)}}function wb(a,b,d,k,n,c,f,w){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;f.insert(a);c=[a];d=d.clone();w.insertEdge(d,!1);a.insertEdge(d,!0);c.push(d);k.push(n.addCell(d,null,null,null,null))}function ta(a,b,d,k,n,c,f,w,x){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;x.insert(a);d=new mxCell("",new mxGeometry(d,k,0,0),"strokeColor=none;fillColor=none;"); -d.vertex=!0;x.insert(d);w=[d];n=n.clone();a.insertEdge(n,!0);d.insertEdge(n,!1);w.push(n);c.push(f.addCell(n,null,null,null,null))}function fa(a,b,d,k,n,f){k.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";k.style+=c(k.style,n,f,k);b=g(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+=c(a.style,n,f,a,y);a.geometry.relative=!0;a.geometry.offset=new mxPoint(5,-12);a.vertex=!0;k.insert(a)}function ka(a,b,d,k,n,f,w,x){n="transparent"!=a?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";f.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";f.style+=c(f.style,w,x,f);f.value=g(w);f.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+=c(a.style,w,x,a,y);f.insert(a)}function dc(a,b){return null==a||null==b||!a.includes(";"+b+"=")&&a.substring(0,b.length+1)!=b+"="?!1:!0}function Yc(b,n,f){var e=p(b),h=e.Properties,ja=h.BoundingBox,t=Math.round(.6*ja.w),r=Math.round(.6*ja.h),pa=Math.round(.6*ja.x+Ib),na=Math.round(.6*ja.y+Jb);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(pa,na,t,r),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;v.zOrder=h.ZOrder;var Bb=null!=b.Class?b.Class:null!=e?e.Class:null;switch(Bb){case "BraceNoteBlock":case "UI2BraceNoteBlock":var tc=!1;null!=h.BraceDirection&&"Right"==h.BraceDirection&&(tc=!0);var va=null,qa=null;tc?(va=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"), -qa=new mxCell("",new mxGeometry(0,0,t-.125*r,r),"strokeColor=none;fillColor=none;")):(va=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),qa=new mxCell("",new mxGeometry(.125*r,0,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=c(v.style,h,e,v);va.vertex=!0;v.insert(va);va.style+=c(va.style,h,e,va);qa.vertex=!0;qa.value=g(h);v.insert(qa);qa.style+=c(qa.style,h,e,qa,y);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var Ga= -"MainText",ya=null,Xc="HeaderFill_",Tb="BodyFill_",Vc=25,Hb=25,sc=0;if(null!=h.Lanes)sc=h.Lanes.length;else if(null!=h.PrimaryLane){for(var Sb=function(a){if(a)32>a?a=32:208',E.push("li"),b+='',A.push("a"),d++)}b+='"}while(0/g,">"); +do for(b=D.pop(),d=0;d"}while(k&&0z[p])x.splice(g,0,{s:z[p],n:"a",v:"center"});else{for(;g=va&&(gN)break;y=K.s;for(0N)break;S=R.e;do delete e[R.n],R=p[++va];while(null!=R&&R.e==S);z+=n(a,y,S);y=S;0!=D.length||null!=K&&K.s==S||(m.splice(g,0,{s:S,n:"dummy",v:""}),p.splice(va,0,{e:K?K.s:N,n:"dummy",v:""}))}else break}z+=n(null,null,null,!0);T&&(z+=c(!0));return z}function g(a){y=!1;var b=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==b&&null!=a.State?null!=a.State.t&&(b=a.State):null==b&&null!=a.Note?null!=a.Note.t&&(b=a.Note):null==b&&null!=a.Title?null!=a.Title.t&& +(b=a.Title):null!=a.t&&(b=a);null==b&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&&(b=a.TextAreas.Text.Value):null==b&&null!=a.t0&&null!=a.t0.t&&(b=a.t0);if(null!=b){if(null!=b.t){a=b.t;a=a.replace(/\u2028/g,"\n");b=b.m;try{for(var d=0;d/g,">")}if(null!=b.Value&&null!= +b.Value.t)return b.Value.t=b.Value.t.replace(//g,">"),b.Value.t}return""}function p(a){return null!=a.Action?a.Action:a}function e(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 m(b,c){return"whiteSpace=wrap;"+ +(c?"overflow=block;html=1;fontSize=11;":a(b)+d(b)+k(b)+w(b)+x(b)+z(b)+B(b)+A(b))+C(b)+D(b)}function c(a,d,k,c,n){var h="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(h=";");return h+="whiteSpace=wrap;"+(n?(dc(a,"overflow")?"":"overflow=block;")+(dc(a,"html")?"":"html=1;")+"fontSize=11;":b(mxConstants.STYLE_FONTSIZE,a,d,k,c)+b(mxConstants.STYLE_FONTCOLOR,a,d,k,c)+b(mxConstants.STYLE_FONTSTYLE,a,d,k,c)+b(mxConstants.STYLE_ALIGN,a,d,k,c)+b(mxConstants.STYLE_SPACING_LEFT,a,d,k,c)+b(mxConstants.STYLE_SPACING_RIGHT, +a,d,k,c)+b(mxConstants.STYLE_SPACING_TOP,a,d,k,c)+b(mxConstants.STYLE_SPACING_BOTTOM,a,d,k,c))+b(mxConstants.STYLE_SPACING,a,d,k,c)+b(mxConstants.STYLE_VERTICAL_ALIGN,a,d,k,c)+b(mxConstants.STYLE_STROKECOLOR,a,d,k,c)+b(mxConstants.STYLE_OPACITY,a,d,k,c)+b(mxConstants.STYLE_ROUNDED,a,d,k,c)+b(mxConstants.STYLE_ROTATION,a,d,k,c)+b(mxConstants.STYLE_FLIPH,a,d,k,c)+b(mxConstants.STYLE_FLIPV,a,d,k,c)+b(mxConstants.STYLE_SHADOW,a,d,k,c)+b(mxConstants.STYLE_FILLCOLOR,a,d,k,c)+b(mxConstants.STYLE_DASHED, +a,d,k,c)+b(mxConstants.STYLE_STROKEWIDTH,a,d,k,c)+b(mxConstants.STYLE_IMAGE,a,d,k,c)}function b(b,c,n,f,h){if(!dc(c,b))switch(b){case mxConstants.STYLE_FONTSIZE:return a(n);case mxConstants.STYLE_FONTCOLOR:return d(n);case mxConstants.STYLE_FONTSTYLE:return k(n);case mxConstants.STYLE_ALIGN:return w(n);case mxConstants.STYLE_SPACING_LEFT:return x(n);case mxConstants.STYLE_SPACING_RIGHT:return z(n);case mxConstants.STYLE_SPACING_TOP:return B(n);case mxConstants.STYLE_SPACING_BOTTOM:return A(n);case mxConstants.STYLE_SPACING:return C(n); +case mxConstants.STYLE_VERTICAL_ALIGN:return D(n);case mxConstants.STYLE_STROKECOLOR:return E(n,f);case mxConstants.STYLE_OPACITY:return O(n,f,h);case mxConstants.STYLE_ROUNDED:return b=!h.edge&&!h.style.includes("rounded")&&null!=n.Rounding&&0k;)c=d["m"+k],null!=c&&(n=oa(c,n,a)),k++;null!=d.Text&&(n=oa(d.Text,n,a));d=null!=b?b.TextAreas:a.TextAreas; +null!=d.Message&&(n=oa(d.Message,n,a))}return n}function oa(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 c=g(a),k=new mxGeometry(isNaN(k)?0:k,0,0,0),f="11",w="";if(null!=a&&null!=a.Value&&null!=a.Value.m)for(var w=n(a.Value.m),m=0;m']; +p.push("");for(var B=null,e=0;e')}if(null!=A.n1){var E;var T=z[A.p2].x,y=z[A.p2].y,S=k,l=n,N=new Tb(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 T=Math.round(100*T/S*100)/100,y=Math.round(100*y/l*100)/100,S=[],l=[],K=[],ca=N.getSize(), +R=0;R';E=G}else E=void 0;p.push(E)}else C=z[A.p2].x,D=z[A.p2].y,C=100*C/k,D=100*D/n,C=Math.round(100*C)/100,D=Math.round(100*D)/100,p.push('');B=A.p2}p.push(""); +p.push("");p.push("");d.push({shapeStencil:"stencil("+Graph.compress(p.join(""))+")",FillColor:w,LineColor:x,LineWidth:m})}LucidImporter.stencilsMap[a]={text:b.Text,w:k,h:n,stencils:d}}catch(ld){console.log("Stencil parsing error:",ld)}}function vb(a,b,d,k,n,c,f,w){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;f.insert(a);c=[a];d=d.clone();w.insertEdge(d,!1);a.insertEdge(d,!0);c.push(d);k.push(n.addCell(d,null,null,null,null))} +function ua(a,b,d,k,n,c,f,w,x){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;x.insert(a);d=new mxCell("",new mxGeometry(d,k,0,0),"strokeColor=none;fillColor=none;");d.vertex=!0;x.insert(d);w=[d];n=n.clone();a.insertEdge(n,!0);d.insertEdge(n,!1);w.push(n);c.push(f.addCell(n,null,null,null,null))}function fa(a,b,d,k,n,f){k.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";k.style+=c(k.style,n,f,k);b=g(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+=c(a.style,n,f,a,y);a.geometry.relative=!0;a.geometry.offset=new mxPoint(5,-12);a.vertex=!0;k.insert(a)}function la(a,b,d,k,n,f,w,x){n="transparent"!=a?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";f.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;"; +f.style+=c(f.style,w,x,f);f.value=g(w);f.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+=c(a.style,w,x,a,y);f.insert(a)}function dc(a,b){return null==a||null==b||!a.includes(";"+b+"=")&&a.substring(0,b.length+1)!=b+"="?!1:!0}function Yc(b,n,f){var e=p(b),h=e.Properties,ka=h.BoundingBox,t=Math.round(.6*ka.w),r=Math.round(.6* +ka.h),qa=Math.round(.6*ka.x+Ib),oa=Math.round(.6*ka.y+Jb);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(qa,oa,t,r),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;v.zOrder=h.ZOrder;var Ab=null!=b.Class?b.Class:null!=e?e.Class:null;switch(Ab){case "BraceNoteBlock":case "UI2BraceNoteBlock":var tc= +!1;null!=h.BraceDirection&&"Right"==h.BraceDirection&&(tc=!0);var va=null,ra=null;tc?(va=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),ra=new mxCell("",new mxGeometry(0,0,t-.125*r,r),"strokeColor=none;fillColor=none;")):(va=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),ra=new mxCell("",new mxGeometry(.125*r,0,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=c(v.style,h,e, +v);va.vertex=!0;v.insert(va);va.style+=c(va.style,h,e,va);ra.vertex=!0;ra.value=g(h);v.insert(ra);ra.style+=c(ra.style,h,e,ra,y);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var ja="MainText",Bb=null,Xc="HeaderFill_",Tb="BodyFill_",Vc=25,Hb=25,sc=0;if(null!=h.Lanes)sc=h.Lanes.length;else if(null!=h.PrimaryLane){for(var Sb= +function(a){if(a)32>a?a=32:208h.DoorAngle&&(v.style+="flipV=1;");v.style+=c(v.style,h,e,v);break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0q[l].style.indexOf(";align=")&&(q[l].style+="align=left;spacingLeft=5;");var ha=E(h,e),ha=ha.replace("strokeColor","fillColor2");""==ha&&(ha="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-h.Selected*L-20-(h.Panels-h.Selected)*L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-h.Selected*L- -(h.Panels-h.Selected)*L),"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*L),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ha,u.style+=c(u.style,h,e,u));1==h.hScroll&&(F=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;"), -F.geometry.relative=!0,F.geometry.offset=new mxPoint(0,-20-(h.Panels-h.Selected)*L),F.vertex=!0,v.insert(F),F.style+=ha,F.style+=c(F.style,h,e,F));U=1==h.vScroll?new mxCell("",new mxGeometry(0,h.Selected*L,t-20,r-h.Selected*L-20-(h.Panels-h.Selected)*L),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,h.Selected*L,t-20,r-h.Selected*L-(h.Panels-h.Selected)*L),"part=1;fillColor=none;strokeColor=none;");U.vertex=!0;v.insert(U);U.value=g(h.Content_1);U.style+=m(h.Content_1,y); -!y&&0>U.style.indexOf(";align=")&&(U.style+="align=left;spacingLeft=5;");v.style+=c(v.style,h,e,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var q=[],u=[],L=25,Sa=3,Z=(t+Sa)/(h.Tabs+1),ua=new mxCell("",new mxGeometry(0,L,t,r-L),"part=1;");ua.vertex=!0;v.insert(ua);ua.style+=c(ua.style,h,e,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(10+l*Z,0,Z-Sa,L),""),u[l].vertex=!0,v.insert(u[l])):(q[l]=new mxCell("",new mxGeometry(10+l*Z, -0,Z-Sa,L),"strokeColor=none;"),q[l].vertex=!0,v.insert(q[l]),q[l].style+=q[l].style+=c(q[l].style,h,e,q[l]),u[l]=new mxCell("",new mxGeometry(0,0,Z-Sa,L),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,q[l].insert(u[l])),u[l].value=g(h["Tab_"+(l+1)]),u[l].style+=m(h["Tab_"+(l+1)],y),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=c(u[l].style,h,e,u[l]);ha=E(h,e);ha=ha.replace("strokeColor","fillColor2");""==ha&&(ha="fillColor2=#000000;");1==h.vScroll&&(u= -1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset=new mxPoint(-20,L),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ha,u.style+=c(u.style,h,e,u));1==h.hScroll&&(F=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;"),F.geometry.relative=!0,F.geometry.offset=new mxPoint(0,-20),F.vertex=!0,v.insert(F),F.style+=ha,F.style+=c(F.style,h,e,F));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";q=[];u=[];L=25;Sa=3;Z=(t+Sa)/h.Tabs;ua=new mxCell("",new mxGeometry(0,L,t,r-L),"part=1;");ua.vertex= -!0;v.insert(ua);ua.style+=c(ua.style,h,e,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(l*Z,0,Z-Sa,L),""),u[l].vertex=!0,v.insert(u[l])):(q[l]=new mxCell("",new mxGeometry(l*Z,0,Z-Sa,L),"strokeColor=none;"),q[l].vertex=!0,v.insert(q[l]),q[l].style+=c(q[l].style,h,e,q[l]),u[l]=new mxCell("",new mxGeometry(0,0,Z-Sa,L),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,q[l].insert(u[l])),u[l].value=g(h["Tab_"+(l+1)]),u[l].style+=m(h["Tab_"+(l+1)],y),u[l].style+=c(u[l].style, -h,e,u[l],y),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;");ha=E(h,e);ha=ha.replace("strokeColor","fillColor2");""==ha&&(ha="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),u.geometry.relative=!0,u.geometry.offset= -new mxPoint(-20,L),u.vertex=!0,v.insert(u),v.style+="spacingRight=20;",u.style+=ha,u.style+=c(u.style,h,e,u));1==h.hScroll&&(F=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;"),F.geometry.relative=!0,F.geometry.offset=new mxPoint(0,-20),F.vertex=!0,v.insert(F),F.style+=ha,F.style+=c(F.style,h,e,F));break; -case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";q=[];u=[];Sa=3;L=25+Sa;Z=80;Cb=10;ua=new mxCell("",new mxGeometry(Z,0,t-Z,r),"part=1;");ua.vertex=!0;v.insert(ua);ua.style+=c(ua.style,h,e,ua);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(0,Cb+l*L,Z,L-Sa),""),u[l].vertex=!0,v.insert(u[l]),u[l].value=g(h["Tab_"+(l+1)]),u[l].style+=m(h["Tab_"+(l+1)],y),u[l].style+=c(u[l].style,h,e,u[l],y)):(q[l]=new mxCell("",new mxGeometry(0,Cb+l*L,Z,L-Sa),"strokeColor=none;"), -q[l].vertex=!0,v.insert(q[l]),q[l].style+=c(q[l].style,h,e,q[l]),u[l]=new mxCell("",new mxGeometry(0,0,Z,L-Sa),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,q[l].insert(u[l]),u[l].value=g(h["Tab_"+(l+1)]),u[l].style+=m(h["Tab_"+(l+1)],y)),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=c(u[l].style,h,e,u[l]);ha=E(h,e);ha=ha.replace("strokeColor","fillColor2");""==ha&&(ha="fillColor2=#000000;");1==h.vScroll&&(u=1==h.hScroll?new mxCell("",new mxGeometry(1, +U.geometry.relative=!0,U.geometry.offset=new mxPoint(0,-20),U.vertex=!0,v.insert(U));v.style+=c(v.style,h,e,v);break;case "UI2AccordionBlock":q=[];M=25;for(l=0;l<=h.Panels-1;l++)q[l]=lq[l].style.indexOf(";align=")&&(q[l].style+="align=left;spacingLeft=5;");var ha=E(h,e),ha=ha.replace("strokeColor","fillColor2");""==ha&&(ha="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+=ha,u.style+=c(u.style,h,e,u));1==h.hScroll&&(F=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;"), +F.geometry.relative=!0,F.geometry.offset=new mxPoint(0,-20-(h.Panels-h.Selected)*M),F.vertex=!0,v.insert(F),F.style+=ha,F.style+=c(F.style,h,e,F));U=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;");U.vertex=!0;v.insert(U);U.value=g(h.Content_1);U.style+=m(h.Content_1,y); +!y&&0>U.style.indexOf(";align=")&&(U.style+="align=left;spacingLeft=5;");v.style+=c(v.style,h,e,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var q=[],u=[],M=25,Ra=3,Z=(t+Ra)/(h.Tabs+1),wa=new mxCell("",new mxGeometry(0,M,t,r-M),"part=1;");wa.vertex=!0;v.insert(wa);wa.style+=c(wa.style,h,e,wa);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(10+l*Z,0,Z-Ra,M),""),u[l].vertex=!0,v.insert(u[l])):(q[l]=new mxCell("",new mxGeometry(10+l*Z, +0,Z-Ra,M),"strokeColor=none;"),q[l].vertex=!0,v.insert(q[l]),q[l].style+=q[l].style+=c(q[l].style,h,e,q[l]),u[l]=new mxCell("",new mxGeometry(0,0,Z-Ra,M),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,q[l].insert(u[l])),u[l].value=g(h["Tab_"+(l+1)]),u[l].style+=m(h["Tab_"+(l+1)],y),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=c(u[l].style,h,e,u[l]);ha=E(h,e);ha=ha.replace("strokeColor","fillColor2");""==ha&&(ha="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+=ha,u.style+=c(u.style,h,e,u));1==h.hScroll&&(F=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;"),F.geometry.relative=!0,F.geometry.offset=new mxPoint(0,-20),F.vertex=!0,v.insert(F),F.style+=ha,F.style+=c(F.style,h,e,F));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";q=[];u=[];M=25;Ra=3;Z=(t+Ra)/h.Tabs;wa=new mxCell("",new mxGeometry(0,M,t,r-M),"part=1;");wa.vertex= +!0;v.insert(wa);wa.style+=c(wa.style,h,e,wa);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(l*Z,0,Z-Ra,M),""),u[l].vertex=!0,v.insert(u[l])):(q[l]=new mxCell("",new mxGeometry(l*Z,0,Z-Ra,M),"strokeColor=none;"),q[l].vertex=!0,v.insert(q[l]),q[l].style+=c(q[l].style,h,e,q[l]),u[l]=new mxCell("",new mxGeometry(0,0,Z-Ra,M),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,q[l].insert(u[l])),u[l].value=g(h["Tab_"+(l+1)]),u[l].style+=m(h["Tab_"+(l+1)],y),u[l].style+=c(u[l].style, +h,e,u[l],y),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;");ha=E(h,e);ha=ha.replace("strokeColor","fillColor2");""==ha&&(ha="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+=ha,u.style+=c(u.style,h,e,u));1==h.hScroll&&(F=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;"),F.geometry.relative=!0,F.geometry.offset=new mxPoint(0,-20),F.vertex=!0,v.insert(F),F.style+=ha,F.style+=c(F.style,h,e,F));break; +case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";q=[];u=[];Ra=3;M=25+Ra;Z=80;Cb=10;wa=new mxCell("",new mxGeometry(Z,0,t-Z,r),"part=1;");wa.vertex=!0;v.insert(wa);wa.style+=c(wa.style,h,e,wa);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(u[l]=new mxCell("",new mxGeometry(0,Cb+l*M,Z,M-Ra),""),u[l].vertex=!0,v.insert(u[l]),u[l].value=g(h["Tab_"+(l+1)]),u[l].style+=m(h["Tab_"+(l+1)],y),u[l].style+=c(u[l].style,h,e,u[l],y)):(q[l]=new mxCell("",new mxGeometry(0,Cb+l*M,Z,M-Ra),"strokeColor=none;"), +q[l].vertex=!0,v.insert(q[l]),q[l].style+=c(q[l].style,h,e,q[l]),u[l]=new mxCell("",new mxGeometry(0,0,Z,M-Ra),"fillColor=#000000;fillOpacity=25;"),u[l].vertex=!0,q[l].insert(u[l]),u[l].value=g(h["Tab_"+(l+1)]),u[l].style+=m(h["Tab_"+(l+1)],y)),0>u[l].style.indexOf(";align=")&&(u[l].style+="align=left;spacingLeft=2;"),u[l].style+=c(u[l].style,h,e,u[l]);ha=E(h,e);ha=ha.replace("strokeColor","fillColor2");""==ha&&(ha="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+=ha,u.style+=c(u.style,h,e,u));1==h.hScroll&&(F=1==h.vScroll?new mxCell("",new mxGeometry(Z,1,t-20-Z,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"): -new mxCell("",new mxGeometry(Z,1,t-Z,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),F.geometry.relative=!0,F.geometry.offset=new mxPoint(0,-20),F.vertex=!0,v.insert(F),F.style+=ha,F.style+=c(F.style,h,e,F));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";L=r/h.Options;q=[];u=[];for(l=0;l',l=0;l'}jd+="";v.style="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+ -(window.btoa?btoa(jd):Base64.encode(jd,!0))+";"}catch(Ub){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var ne=0==Bb.indexOf("Bracket")?"size=0;arcSize=50;":"",oe=c(v.style,h,e,v,y),ub=T(h,e,v);v.style="group;"+ub;var Ed=Math.min(.14*(ub?t:r),100),Fd=new mxCell("",new mxGeometry(0,0,Ed,r),"shape=curlyBracket;rounded=1;"+ne+oe);Fd.vertex=!0;Fd.geometry.relative=!0;var Gd=new mxCell("",new mxGeometry(1-Ed/t,0,Ed,r),"shape=curlyBracket;rounded=1;flipH=1;"+ +t,r,v,h,e);break;case "GCPServiceCardServiceDiscoveryBlock":fa("service_discovery",t,r,v,h,e);break;case "GCPServiceCardSquidProxyBlock":fa("squid_proxy",t,r,v,h,e);break;case "GCPServiceCardTaskQueuesBlock":fa("task_queues",t,r,v,h,e);break;case "GCPServiceCardVirtualFileSystemBlock":fa("virtual_file_system",t,r,v,h,e);break;case "GCPServiceCardVPNGatewayBlock":fa("gateway",t,r,v,h,e);break;case "GCPInputDatabase":la("database",1,.9,t,r,v,h,e);break;case "GCPInputRecord":la("record",1,.66,t,r,v, +h,e);break;case "GCPInputPayment":la("payment",1,.8,t,r,v,h,e);break;case "GCPInputGateway":la("gateway_icon",1,.44,t,r,v,h,e);break;case "GCPInputLocalCompute":la("compute_engine_icon",1,.89,t,r,v,h,e);break;case "GCPInputBeacon":la("beacon",.73,1,t,r,v,h,e);break;case "GCPInputStorage":la("storage",1,.8,t,r,v,h,e);break;case "GCPInputList":la("list",.89,1,t,r,v,h,e);break;case "GCPInputStream":la("stream",1,.82,t,r,v,h,e);break;case "GCPInputMobileDevices":la("mobile_devices",1,.73,t,r,v,h,e);break; +case "GCPInputCircuitBoard":la("circuit_board",1,.9,t,r,v,h,e);break;case "GCPInputLive":la("live",.74,1,t,r,v,h,e);break;case "GCPInputUsers":la("users",1,.63,t,r,v,h,e);break;case "GCPInputLaptop":la("laptop",1,.66,t,r,v,h,e);break;case "GCPInputApplication":la("application",1,.8,t,r,v,h,e);break;case "GCPInputLightbulb":la("lightbulb",.7,1,t,r,v,h,e);break;case "GCPInputGame":la("game",1,.54,t,r,v,h,e);break;case "GCPInputDesktop":la("desktop",1,.9,t,r,v,h,e);break;case "GCPInputDesktopAndMobile":la("desktop_and_mobile", +1,.66,t,r,v,h,e);break;case "GCPInputWebcam":la("webcam",.5,1,t,r,v,h,e);break;case "GCPInputSpeaker":la("speaker",.7,1,t,r,v,h,e);break;case "GCPInputRetail":la("retail",1,.89,t,r,v,h,e);break;case "GCPInputReport":la("report",1,1,t,r,v,h,e);break;case "GCPInputPhone":la("phone",.64,1,t,r,v,h,e);break;case "GCPInputBlank":la("transparent",1,1,t,r,v,h,e);break;case "PresentationFrameBlock":0==h.ZOrder?v.style+="strokeColor=none;fillColor=none;":(v.style+=m(h.Text),v.value=g(h.Text),v.style+=c(v.style, +h,e,v,y));break;case "SVGPathBlock2":try{for(var Oe=h.LineWidth,Pe=h.LineColor,le=h.FillColor,me=h.DrawData.Data,jd='',l=0;l'}jd+="";v.style="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+ +(window.btoa?btoa(jd):Base64.encode(jd,!0))+";"}catch(Ub){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var ne=0==Ab.indexOf("Bracket")?"size=0;arcSize=50;":"",oe=c(v.style,h,e,v,y),tb=T(h,e,v);v.style="group;"+tb;var Ed=Math.min(.14*(tb?t:r),100),Fd=new mxCell("",new mxGeometry(0,0,Ed,r),"shape=curlyBracket;rounded=1;"+ne+oe);Fd.vertex=!0;Fd.geometry.relative=!0;var Gd=new mxCell("",new mxGeometry(1-Ed/t,0,Ed,r),"shape=curlyBracket;rounded=1;flipH=1;"+ ne+oe);Gd.vertex=!0;Gd.geometry.relative=!0;v.insert(Fd);v.insert(Gd);break;case "BPMNTextAnnotation":case "NoteBlock":h.InsetMargin=null;v.value=g(h.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=c(v.style,h,e,v,y);0>v.style.indexOf("verticalAlign")&&(v.style+="verticalAlign=middle;");var rc=new mxCell("",new mxGeometry(0,0,8,r),"shape=partialRectangle;right=0;fillColor=none;");rc.geometry.relative=!0;rc.vertex=!0;rc.style+=c(rc.style,h,e,v,y);v.insert(rc);break; -case "TimelineBlock":try{var Ja=new Date(h.StartDate),Se=new Date(h.FinishDate),Te={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6}[h.StartOfWeek],Hd=new Date(h.StartOfFiscalYear),yb,zb;switch(h.TimeUnit){case "second":yb=zb=1E3;break;case "minute":yb=zb=6E4;break;case "hour":yb=zb=36E5;break;case "day":yb=zb=864E5;break;case "week":var Ue=(7-Ja.getDay()+Te)%7;yb=(new Date(Ja.getFullYear(),Ja.getMonth(),Ja.getDate()+Ue)).getTime()-Ja.getTime();zb=6048E5;break;case "month":yb= -(new Date(Ja.getFullYear(),Ja.getMonth()+1,1)).getTime()-Ja.getTime();zb=2592E6;break;case "quarter":var pe=(12-Ja.getMonth()+Hd.getMonth())%3;yb=(new Date(Ja.getFullYear(),Ja.getMonth()+(0==pe&&Ja.getDate()>=Hd.getDate()?3:pe),Hd.getDate())).getTime()-Ja.getTime();zb=7776E6;break;case "year":yb=(new Date(Ja.getFullYear()+1,0,1)).getTime()-Ja.getTime(),zb=31536E6}var Id=Se.getTime()-Ja.getTime();console.log(yb/Id*t,zb/Id*t,Math.round((Id-yb)/zb))}catch(Ub){console.log(Ub)}break;case "FreehandBlock":try{ub= -T(h,e,v);v.style="group;"+ub;if(null!=h.Stencil){null==h.Stencil.id&&(h.Stencil.id="$$tmpId$$",Nd(h.Stencil.id,h.Stencil));for(var cc=LucidImporter.stencilsMap[h.Stencil.id],l=0;l=Hd.getDate()?3:pe),Hd.getDate())).getTime()-Ia.getTime();yb=7776E6;break;case "year":xb=(new Date(Ia.getFullYear()+1,0,1)).getTime()-Ia.getTime(),yb=31536E6}var Id=Se.getTime()-Ia.getTime();console.log(xb/Id*t,yb/Id*t,Math.round((Id-xb)/yb))}catch(Ub){console.log(Ub)}break;case "FreehandBlock":try{tb= +T(h,e,v);v.style="group;"+tb;if(null!=h.Stencil){null==h.Stencil.id&&(h.Stencil.id="$$tmpId$$",Nd(h.Stencil.id,h.Stencil));for(var cc=LucidImporter.stencilsMap[h.Stencil.id],l=0;lv.style.indexOf("html")&&(v.style+="html=1;");if(h.Title&&h.Text)try{var se=v.geometry,te=new mxCell(g(h.Title),new mxGeometry(0,se.height,se.width,10),"strokeColor=none;fillColor=none;");te.vertex=!0;v.insert(te);v.style+=m(h.Title,y)}catch(Ub){console.log(Ub)}Md(v,h);return v}function Md(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,c=k,f=n,w=0,e=0;if(-90==d||-270==d)var c=n,f=k,x=Math.abs(n-k)/2,w=x/k,e=-x/n;var d=d+mxUtils.toDegree(b.Rotation),m=a.style.split(";").filter(function(a){return 0>a.indexOf("fillColor=")&&0>a.indexOf("strokeColor=")&&0>a.indexOf("rotation=")}).join(";"),z=new mxCell(a.value,new mxGeometry(w,e,c,f),m+"fillColor=none;strokeColor=none;rotation="+d+";");a.value=null;z.geometry.relative=!0;z.vertex=!0;a.insert(z)}}catch(ve){console.log(ve)}} var Ib=0,Jb=0,y=!1,md=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],nd=["fpDoor"],Sb={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;", @@ -955,7 +956,7 @@ SMJobs:"shape=mxgraph.sitemap.jobs;strokeColor=#000000;fillColor=#E6E6E6",SMLuci SMSlideshow:"shape=mxgraph.sitemap.slideshow;strokeColor=#000000;fillColor=#E6E6E6",SMUpload:"shape=mxgraph.sitemap.upload;strokeColor=#000000;fillColor=#E6E6E6",SVGPathBlock2:"mxCompositeShape",PresentationFrameBlock:"mxCompositeShape",MinimalTextBlock:"strokeColor=none;fillColor=none",FreehandBlock:"mxCompositeShape",ExtShapeLaptopBlock:"strokeColor=none;shape=mxgraph.citrix.laptop_2;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeServerBlock:"strokeColor=none;shape=mxgraph.citrix.tower_server;verticalLabelPosition=bottom;verticalAlign=top", ExtShapeCloudBlock:"strokeColor=none;shape=mxgraph.citrix.cloud;verticalLabelPosition=bottom;verticalAlign=top",ExtShapeUserBlock:"strokeColor=none;shape=mxgraph.aws3d.end_user;verticalLabelPosition=bottom;verticalAlign=top;fillColor=#073763",ExtShapeWorkstationLCDBlock:"strokeColor=none;shape=mxgraph.veeam.3d.workstation;verticalLabelPosition=bottom;verticalAlign=top"},od=RegExp("{{(date{.*}|[^%^{^}]+)}}","g");Tb.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};Tb.prototype.getX= function(a){return Math.round(100*this.nurbsValues[4*(a+1)])/100};Tb.prototype.getY=function(a){return Math.round(100*this.nurbsValues[4*(a+1)+1])/100};LucidImporter.importState=function(a,b){function d(a){if(a.Properties){for(var b in a.Properties)"Stencil-"==b.substr(0,8)&&Nd(b.substr(8),a.Properties[b]);LucidImporter.globalProps=a.Properties}for(var d in a.Pages)n.push(a.Pages[d]);n.sort(function(a,b){return a.Properties.Orderb.Properties.Order?1:0})}LucidImporter.stencilsMap= -{};LucidImporter.imgSrcRepl=b;LucidImporter.stylePointsSet=new Set;LucidImporter.globalProps={};LucidImporter.hasUnknownShapes=!1;var k=['',""],n=[];null!=a.state&&"1"==urlParams.dev&&null!=window.console&&console.log(JSON.stringify(JSON.parse(a.state),null,2));null!=a.state?d(JSON.parse(a.state)):null==a.Page&&null!=a.Pages?d(a):n.push(a);for(var c=qa(),f=new mxCodec,w=0;w',""],n=[];null!=a.state&&"1"==urlParams.dev&&null!=window.console&&console.log(JSON.stringify(JSON.parse(a.state),null,2));null!=a.state?d(JSON.parse(a.state)):null==a.Page&&null!=a.Pages?d(a):n.push(a);for(var c=ra(),f=new mxCodec,w=0;w"+Graph.compress(mxUtils.getXml(e))+"")}k.push("");LucidImporter.imgSrcRepl=null;return k.join("")}})();function VsdxExport(f){function g(a,b){var d={"[Content_Types].xml":"", "_rels/.rels":"", "docProps/app.xml":'Microsoft Visio15.0000