LucidImporter={}; (function(){function g(a){if(a&&null!=LucidImporter.imgSrcRepl){var b=LucidImporter.imgSrcRepl.attMap;if(b[a])a=b[a];else{for(var b=LucidImporter.imgSrcRepl.imgRepl,c=0;c';A.push("li");f+='',B.push("a"),f++)}b+='"}while(0/g,">");do for(b=ya.pop(),c=0;c"}while(f&&0z[ba])b.splice(u,0,{s:z[ba],n:"a",v:c.TextAlign||"center"});else{for(var q=0;u+q=C&&(u=W)break;M=R.s;0W)break;l=F.e;do delete q[F.n],F=D[++C];while(null!=F&&F.e==l);z+=d(a,M,l);M=l;0!=ya.length||null!=R&&R.s==l||(k.splice(u,0,{s:l,n:"dummy",v:""}),D.splice(C,0,{e:R?R.s:W,n:"dummy",v:""}))}else break}z+= d(null,null,null,!0);P&&(l!=W&&(z+=h({dummy:1})+d(a,l,W)),z+=m(!0));return z}function k(a,b){A=!1;var c=null!=a.Text&&a.Text.t?a.Text:null!=a.Value&&a.Value.t?a.Value:null!=a.Lane_0&&a.Lane_0.t?a.Lane_0:null;null==c&&null!=a.State?a.State.t&&(c=a.State):null==c&&null!=a.Note?a.Note.t&&(c=a.Note):null==c&&null!=a.Title?a.Title.t&&(c=a.Title):a.t&&(c=a);null==c&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&a.TextAreas.Text.Value.t&&(c=a.TextAreas.Text.Value):null==c&&null!= a.t0&&a.t0.t&&(c=a.t0);if(null!=c){if(null!=c.t){var f=c.t,f=f.replace(/\u2028/g,"\n"),c=c.m;try{/ /.test(f)&&(LucidImporter.hasUnknownShapes=!0);for(var h=0;h/g,">")}if(null!=c.Value&&null!=c.Value.t)return c.Value.t=c.Value.t.replace(//g,">"), c.Value.t}return""}function d(a){return null!=a.Action?a.Action:a}function b(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){if(null!=a.Title.m)return a.Title.m}else if(null!=a.State){if(null!=a.State.m)return a.State.m}else if(null!=a.Note&&null!=a.Note.m)return a.Note.m}return null}function a(a,b){var c= "whiteSpace=wrap;"+(b?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+Fa:m(a)+x(a)+z(a)+u(a)+D(a)+B(a)+E(a)+F(a)+M(a))+U(a)+P(a)+pb(mxConstants.STYLE_ALIGN,a.TextAlign,"center");Fa="";return c}function c(a,b,c,m,h,d){d=null==d?!1:d;var g="",x=!1,k=!1;if(null!=a)if(d){d=a.split(";");a="";for(var z=0;zy.Endpoint1.LinkX?-250:.9y.Endpoint1.LinkY?-250:.9y.Endpoint2.LinkX?-250:.9y.Endpoint2.LinkY? -250:.9x;)k=g["m"+x],null!=k&&(h=wc(k,h,a,c,f,b)),x++;null!=g.Text&&(h=wc(g.Text,h,a,c,f,b));g=null!=m?m.TextAreas:a.TextAreas;null!=g.Message&&(h=wc(g.Message,h,a,c,f,b))}a.Hidden&&(h.visible=!1);return h}function wc(a,b,c,f,m,d){var h=2*(parseFloat(a.Location)-.5);isNaN(h)&&null!=a.Text&&null!=a.Text.Location&&(h=2*(parseFloat(a.Text.Location)-.5));d=k(a);var g=mxCell,h=new mxGeometry(isNaN(h)?0:h,0,0,0),z=xc,y;y=c;if(A)y=Fa;else{var u="13",Ea="";if(null!=a&&null!=a.Value&&null!= a.Value.m){for(var Ea=C(a.Value.m),n=0;n"));g.geometry.offset=0==D||Df?1:cf?1:c'];e.push("");for(var n=null,q=0;q')}if(null!=D.n1){var A;var E=y[D.p2].x,P=y[D.p2].y,H=f,M=m,W=new Zb(y[D.p1].x/f,y[D.p1].y/m,D.n1.x/f,D.n1.y/m,y[D.p2].x/f,y[D.p2].y/m,D.n2.x/f,D.n2.y/m);if(2<=W.getSize()){W.getX(0);W.getY(0);W.getX(1);W.getY(1);for(var E=Math.round(100* E/H*100)/100,P=Math.round(100*P/M*100)/100,H=[],M=[],l=[],R=W.getSize(),ba=0;ba';A=ea}else A=void 0;e.push(A)}else C=y[D.p2].x,B=y[D.p2].y,C=100*C/f,B=100*B/m,C=Math.round(100* C)/100,B=Math.round(100*B)/100,e.push('');n=D.p2}e.push("");e.push("");e.push("");c.push({shapeStencil:"stencil("+Graph.compress(e.join(""))+")",FillColor:x,LineColor:k,LineWidth:z})}LucidImporter.stencilsMap[a]={text:b.Text,w:f,h:m,x:b.BoundingBox.x,y:b.BoundingBox.y,stencils:c}}catch(xd){console.log("Stencil parsing error:",xd)}}function Hb(a,b,c,f,m,d,g,x){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;"); a.vertex=!0;g.insert(a);d=[a];c=c.clone();x.insertEdge(c,!1);a.insertEdge(c,!0);d.push(c);f.push(m.addCell(c,null,null,null,null))}function wa(a,b,c,f,m,d,g,x,k){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;k.insert(a);c=new mxCell("",new mxGeometry(c,f,0,0),"strokeColor=none;fillColor=none;");c.vertex=!0;k.insert(c);x=[c];m=m.clone();a.insertEdge(m,!0);c.insertEdge(m,!1);x.push(m);d.push(g.addCell(m,null,null,null,null))}function ha(a,b,f,m,h,d){m.style= "rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";m.style+=c(m.style,h,d,m);b=k(h);m.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,h,d,a,A);a.geometry.relative=!0;a.geometry.offset=new mxPoint(5,-12);a.vertex=!0;m.insert(a)}function la(a, b,f,m,h,d,g,x){h="transparent"!=a?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";d.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";d.style+=c(d.style,g,x,d);d.value=k(g);d.vertex=!0;a=new mxCell(null,new mxGeometry(.5,0,.7*m*b,.7*m*f),h+a+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");a.geometry.relative=!0;a.geometry.offset=new mxPoint(-b*m*.35,10+(1-f)*m*.35);a.vertex=!0;a.style+= c(a.style,g,x,a,A);d.insert(a)}function Mb(a,b){return null!=a&&null!=b&&(b==mxConstants.STYLE_ALIGN+"Global"&&(b=mxConstants.STYLE_ALIGN),a.includes(";"+b+"=")||a.substring(0,b.length+1)==b+"=")?!0:!1}function zd(a,b){function c(a){a=Math.round(parseInt("0x"+a)*b).toString(16);return 1==a.length?"0"+a:a}return"#"+c(a.substr(1,2))+c(a.substr(3,2))+c(a.substr(5,2))}function Sc(b,f,y){var e=d(b),h=e.Properties,n=h.BoundingBox,t=Math.round(.75*n.w),r=Math.round(.75*n.h),q=Math.round(.75*n.x+Nb),C=Math.round(.75* n.y+Ob);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(q,C,t,r),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=h.ZOrder;var Aa=null!=b.Class?b.Class:null!=e?e.Class:null;switch(Aa){case "BraceNoteBlock":case "UI2BraceNoteBlock":var ba=!1;null!= h.BraceDirection&&"Right"==h.BraceDirection&&(ba=!0);var ya=null,na=null,za=k(h),Wb=h.Rotation?mxUtils.getSizeForString(za.replace(/\n/g,"
"),null,null,Math.abs(t-.125*r)):{width:0,height:0};ba?(ya=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),na=new mxCell("",new mxGeometry(Wb.height,-2*Wb.width,t-.125*r,r),"strokeColor=none;fillColor=none;")):(ya=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),na=new mxCell("",new mxGeometry(.125* r-Wb.height,Wb.width,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=c(v.style,h,e,v);ya.vertex=!0;v.insert(ya);ya.style+=c(ya.style,h,e,ya);na.vertex=!0;na.value=za;v.insert(na);na.style+=c(na.style,h,e,na,A);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var Oa="MainText", Ya=null,Mb="HeaderFill_",Xb="BodyFill_",wd=25,Pd=25,Oc=0;if(null!=h.Lanes)Oc=h.Lanes.length;else if(null!=h.PrimaryLane){for(var Be=function(a){if(a)32>a?a=32:208h.DoorAngle&&(v.style+="flipV=1;");v.style+=c(v.style,h,e,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=k(h);v.style+=c(v.style,h,e,v,A);v.style=v.style.replace("rotation=180;", "");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0p[l].style.indexOf(";align=")&&(p[l].style+="align=left;spacingLeft=5;");var oa=H(h,e),oa=oa.replace("strokeColor","fillColor2");""==oa&&(oa="fillColor2=#000000;");1==h.vScroll&&(w=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;"),w.geometry.relative=!0,w.geometry.offset=new mxPoint(-20,h.Selected*N),w.vertex=!0,v.insert(w),v.style+="spacingRight=20;",w.style+=oa,w.style+=c(w.style,h,e,w));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+=oa,G.style+=c(G.style,h,e,G));T=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;");T.vertex=!0;v.insert(T);T.value=k(h.Content_1);T.style+=a(h.Content_1,A);!A&&0>T.style.indexOf(";align=")&&(T.style+="align=left;spacingLeft=5;");v.style+=c(v.style,h,e,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var p=[],w=[],N=25,$a=3,aa=(t+$a)/(h.Tabs+1),xa=new mxCell("",new mxGeometry(0,N,t,r-N),"part=1;");xa.vertex=!0;v.insert(xa); xa.style+=c(xa.style,h,e,xa);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(w[l]=new mxCell("",new mxGeometry(10+l*aa,0,aa-$a,N),""),w[l].vertex=!0,v.insert(w[l])):(p[l]=new mxCell("",new mxGeometry(10+l*aa,0,aa-$a,N),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=p[l].style+=c(p[l].style,h,e,p[l]),w[l]=new mxCell("",new mxGeometry(0,0,aa-$a,N),"fillColor=#000000;fillOpacity=25;"),w[l].vertex=!0,p[l].insert(w[l])),w[l].value=k(h["Tab_"+(l+1)]),w[l].style+=a(h["Tab_"+(l+1)],A),0>w[l].style.indexOf(";align=")&& (w[l].style+="align=left;spacingLeft=2;"),w[l].style+=c(w[l].style,h,e,w[l]);oa=H(h,e);oa=oa.replace("strokeColor","fillColor2");""==oa&&(oa="fillColor2=#000000;");1==h.vScroll&&(w=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;"),w.geometry.relative=!0,w.geometry.offset= new mxPoint(-20,N),w.vertex=!0,v.insert(w),v.style+="spacingRight=20;",w.style+=oa,w.style+=c(w.style,h,e,w));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+=oa,G.style+=c(G.style,h,e,G));break; case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";p=[];w=[];N=25;$a=3;aa=(t+$a)/h.Tabs;xa=new mxCell("",new mxGeometry(0,N,t,r-N),"part=1;");xa.vertex=!0;v.insert(xa);xa.style+=c(xa.style,h,e,xa);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(w[l]=new mxCell("",new mxGeometry(l*aa,0,aa-$a,N),""),w[l].vertex=!0,v.insert(w[l])):(p[l]=new mxCell("",new mxGeometry(l*aa,0,aa-$a,N),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=c(p[l].style,h,e,p[l]),w[l]=new mxCell("", new mxGeometry(0,0,aa-$a,N),"fillColor=#000000;fillOpacity=25;"),w[l].vertex=!0,p[l].insert(w[l])),w[l].value=k(h["Tab_"+(l+1)]),w[l].style+=a(h["Tab_"+(l+1)],A),w[l].style+=c(w[l].style,h,e,w[l],A),0>w[l].style.indexOf(";align=")&&(w[l].style+="align=left;spacingLeft=2;");oa=H(h,e);oa=oa.replace("strokeColor","fillColor2");""==oa&&(oa="fillColor2=#000000;");1==h.vScroll&&(w=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;"),w.geometry.relative=!0,w.geometry.offset=new mxPoint(-20,N),w.vertex=!0,v.insert(w),v.style+="spacingRight=20;",w.style+=oa,w.style+=c(w.style,h,e,w));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+=oa,G.style+=c(G.style,h,e,G));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";p=[];w=[];$a=3;N=25+$a;aa=80;Qb=10;xa=new mxCell("",new mxGeometry(aa,0,t-aa,r),"part=1;");xa.vertex=!0;v.insert(xa);xa.style+=c(xa.style,h,e,xa);for(l=0;l<=h.Tabs-1;l++)l==h.Selected-1?(w[l]=new mxCell("",new mxGeometry(0,Qb+l*N,aa,N-$a),""),w[l].vertex=!0,v.insert(w[l]),w[l].value=k(h["Tab_"+(l+ 1)]),w[l].style+=a(h["Tab_"+(l+1)],A),w[l].style+=c(w[l].style,h,e,w[l],A)):(p[l]=new mxCell("",new mxGeometry(0,Qb+l*N,aa,N-$a),"strokeColor=none;"),p[l].vertex=!0,v.insert(p[l]),p[l].style+=c(p[l].style,h,e,p[l]),w[l]=new mxCell("",new mxGeometry(0,0,aa,N-$a),"fillColor=#000000;fillOpacity=25;"),w[l].vertex=!0,p[l].insert(w[l]),w[l].value=k(h["Tab_"+(l+1)]),w[l].style+=a(h["Tab_"+(l+1)],A)),0>w[l].style.indexOf(";align=")&&(w[l].style+="align=left;spacingLeft=2;"),w[l].style+=c(w[l].style,h,e,w[l]); oa=H(h,e);oa=oa.replace("strokeColor","fillColor2");""==oa&&(oa="fillColor2=#000000;");1==h.vScroll&&(w=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;"),w.geometry.relative=!0,w.geometry.offset=new mxPoint(-20,0),w.vertex=!0,v.insert(w),v.style+="spacingRight=20;",w.style+= oa,w.style+=c(w.style,h,e,w));1==h.hScroll&&(G=1==h.vScroll?new mxCell("",new mxGeometry(aa,1,t-20-aa,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(aa,1,t-aa,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+=oa,G.style+=c(G.style,h,e,G));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";N=r/ h.Options;p=[];w=[];for(l=0;l',Ib=h.Data.split("\n");oe=h.AltRow&&"default"!=h.AltRow?"none"==h.AltRow?Da:ga(h.AltRow):zd(Da,.95);ic=h.Header&&"default"!=h.Header?"none"==h.Header?oe:ga(h.Header):zd(Da,.8);if("full"==h.GridLines)mc="border: 1px solid "+ rd,Kd=19;else if("row"==h.GridLines)mc="border-bottom: 1px solid "+rd,Kd=19;else if("default"==h.GridLines||"column"==h.GridLines)mc="border-right: 1px solid "+rd;Ib=Ib.filter(function(a){return a});/^\{[^}]*\}$/.test(Ib[Ib.length-1])&&Ib.pop();for(var Xc=Ib[0].split(",").length,We="",Q=0;Q'),Xe=Ib[l].split(","),Q=0;Q'+mxUtils.htmlEntities(Xe[Q])+"");pc+=""}pc+="";v.value=pc}catch(ib){console.log(ib)}break;case "UI2ButtonBarBlock":v.style+=c(v.style,h,e,v);p=[];w=[];aa=t/h.Buttons;for(l=0;l<=h.Buttons-1;l++)l==h.Selected-1?(w[l]=new mxCell("",new mxGeometry(l*aa,0,aa,r),""),w[l].vertex=!0,v.insert(w[l])):(p[l]=new mxCell("",new mxGeometry(l*aa,0,aa,r),"strokeColor=none;"), p[l].vertex=!0,v.insert(p[l]),p[l].style+=p[l].style+=c(p[l].style,h,e,p[l]),w[l]=new mxCell("",new mxGeometry(0,0,aa,r),"fillColor=#000000;fillOpacity=25;"),w[l].vertex=!0,p[l].insert(w[l])),w[l].value=k(h["Button_"+(l+1)]),w[l].style+=a(h["Button_"+(l+1)],A),w[l].style+=c(w[l].style,h,e,w[l],A);break;case "UI2VerticalButtonBarBlock":v.style+=c(v.style,h,e,v);p=[];w=[];N=r/h.Buttons;for(l=0;l<=h.Buttons-1;l++)l==h.Selected-1?(w[l]=new mxCell("",new mxGeometry(0,l*N,t,N),""),w[l].vertex=!0,v.insert(w[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+=c(p[l].style,h,e,p[l]),w[l]=new mxCell("",new mxGeometry(0,0,t,N),"fillColor=#000000;fillOpacity=25;"),w[l].vertex=!0,p[l].insert(w[l])),w[l].value=k(h["Button_"+(l+1)]),w[l].style+=a(h["Button_"+(l+1)],A),w[l].style+=c(w[l].style,h,e,w[l],A);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,h,e,v);p=[];w=[];aa=t/h.Links;for(l=0;l',qe=null,l=0;l'}Md+="";v.style=qe?qe:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(Md):Base64.encode(Md,!0))+";"}catch(ib){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var $e=0==Aa.indexOf("Bracket")?"size=0;arcSize=50;":"",af=c(v.style,h,e,v,A),Ga=ka(h,e,v);v.style="group;"+Ga;var re=Math.min(.14*(Ga?t:r),100), se=new mxCell("",new mxGeometry(0,0,re,r),"shape=curlyBracket;rounded=1;"+$e+af);se.vertex=!0;se.geometry.relative=!0;var te=new mxCell("",new mxGeometry(1-re/t,0,re,r),"shape=curlyBracket;rounded=1;flipH=1;"+$e+af);te.vertex=!0;te.geometry.relative=!0;v.insert(se);v.insert(te);break;case "BPMNTextAnnotation":case "NoteBlock":h.InsetMargin=null;v.value=k(h.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=c(v.style,h,e,v,A);0>v.style.indexOf("verticalAlign")&&(v.style+= "verticalAlign=middle;");var Lc=new mxCell("",new mxGeometry(0,0,8,r),"shape=partialRectangle;right=0;fillColor=none;");Lc.geometry.relative=!0;Lc.vertex=!0;Lc.style+=c(Lc.style,h,e,v,A);v.insert(Lc);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{Ga=ka(h,e,v);v.style="group;"+Ga;if(null!=h.Stencil){null==h.Stencil.id&&(h.Stencil.id="$$tmpId$$", Ee(h.Stencil.id,h.Stencil));for(var gb=LucidImporter.stencilsMap[h.Stencil.id],yf=-gb.x/gb.w,zf=-gb.y/gb.h,l=0;l'];tc.push("");for(Q=0;Q'):tc.push('');tc.push(""); tc.push("");tc.push("");v.style="shape=stencil("+Graph.compress(tc.join(""))+");";v.value=k(h);v.style+=c(v.style,h,e,v,A);break;case "InfographicsBlock":var df=h.ShapeData_1.Value,ve=h.ShapeData_2.Value-df,we=h.ShapeData_3.Value-df,Nd=h.ShapeData_4.Value*t/200,nb="ProgressBar"==h.InternalStencilId?4:5,Da=h["ShapeData_"+nb].Value,Da="=fillColor()"==Da?h.FillColor:Da,Mc=h["ShapeData_"+(nb+1)].Value;switch(h.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+ Nd+";strokeColor=none;fillColor="+ga(Mc)+";"+va(Mc,"fillOpacity");v.style+=c(v.style,h,e,v,A);var ra=new mxCell("",new mxGeometry(0,0,t,r),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+we/ve+";arcWidth="+Nd/t*2+";strokeColor=none;fillColor="+ga(Da)+";"+va(Da,"fillOpacity"));ra.style+=c(ra.style,h,e,ra,A);ra.vertex=!0;ra.geometry.relative=1;v.insert(ra);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var ef=we/ve/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+ ef+";arcWidth="+2*Nd/t+";strokeColor=none;fillColor="+ga(Da)+";"+va(Da,"fillOpacity");h.Rotation-=Math.PI/2;v.style+=c(v.style,h,e,v,A);ra=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-ef)+";arcWidth="+2*Nd/t+";strokeColor=none;flipH=1;fillColor="+ga(Mc)+";"+va(Mc,"fillOpacity"));h.Rotation+=Math.PI;ra.style+=c(ra.style,h,e,ra,A);ra.vertex=!0;ra.geometry.relative=1;v.insert(ra);break;case "ProgressBar":v.style= "strokeColor=none;fillColor="+ga(Mc)+";"+va(Mc,"fillOpacity"),v.style+=c(v.style,h,e,v,A),ra=new mxCell("",new mxGeometry(0,0,t*we/ve,r),"strokeColor=none;fillColor="+ga(Da)+";"+va(Da,"fillOpacity")),ra.style+=c(ra.style,h,e,ra,A),ra.vertex=!0,ra.geometry.relative=1,v.insert(ra)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(h.Text&&h.Text.m){for(var Od=h.Text.m,xe=!1,ye=!1,l=0;lv.style.indexOf("html")&&(v.style+="html=1;");if(h.Title&&h.Title.t&&h.Text&&h.Text.t)try{var ff=v.geometry,gf=new mxCell(k(h.Title),new mxGeometry(0,ff.height+4,ff.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;"); gf.vertex=!0;v.insert(gf);v.style+=a(h.Title,A)}catch(ib){console.log(ib)}De(v,h);Yb(v,h,y);h.Hidden&&(v.visible=!1);return v}function De(a,b){if(b.Text_TRotation||b.TextRotation)try{var c=mxUtils.toDegree(b.Text_TRotation||0)+mxUtils.toDegree(b.TextRotation||0);if(!isNaN(c)&&0!=c&&a.value){var f=a.geometry.width,m=a.geometry.height,d=f,g=m,x=0,e=0;if(-90==c||-270==c)var d=m,g=f,k=(m-f)/2,x=-k/f,e=k/m;var c=c+mxUtils.toDegree(b.Rotation),y=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(x,e,d,g),y+"fillColor=none;strokeColor=none;rotation="+c+";");a.value=null;z.geometry.relative=!0;z.vertex=!0;a.insert(z)}}catch(Qd){console.log(Qd)}}function Tc(a,b,f,m,h){function d(a,b){var c="";try{for(var f=0;f'+(c[q[f]]||" ")+"";f=mxUtils.getSizeForString(b);c=g(c.Image||c["018__ImageUrl__"])|| k;c=new mxCell(b,new mxGeometry(0,0,f.width+H,f.height+M),R+(W?c:""));c.vertex=!0;h[a]=c;m.addCell(c,u)},k="https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png",y=b.OrgChartBlockType,z=b.Location,u=new mxCell("",new mxGeometry(.75*z.x,.75*z.y,200,100),"group");u.vertex=!0;m.addCell(u);var q=b.FieldNames,D=b.LayoutSettings,C=b.BlockItemDefaultStyle||{props:{}},B=b.EdgeItemDefaultStyle,A={},E=(a||Date.now())+"_";4==y&&(C.props.LineWidth= 0);var P=[],H=25,M=40,W=!0,R=c("",C.props,{},u,!0);0==y?(R+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",M+=54):1==y||2==y?(R+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",H+=54):3<=y&&(W=!1);for(a=0;ab.Properties.Order?1:0});for(a=0;a',''];c&&c.transparentEdgeLabels&&(xc=xc.replace("labelBackgroundColor=default;", "labelBackgroundColor=none;"));var m=[];null!=a.state?f(JSON.parse(a.state)):null==a.Page&&null!=a.Pages?f(a):m.push(a);a=$d();c=new mxCodec;for(var d=0;d"+Graph.compress(mxUtils.getXml(g))+"")}b.push("");LucidImporter.imgSrcRepl= null;return b.join("")}})();function VsdxExport(g){function n(a,b){var c={"[Content_Types].xml":"", "_rels/.rels":"", "docProps/app.xml":'Microsoft Visio15.0000