LucidImporter={}; (function(){function g(u){if(u&&null!=LucidImporter.imgSrcRepl){var F=LucidImporter.imgSrcRepl.attMap;if(F[u])u=F[u];else{F=LucidImporter.imgSrcRepl.imgRepl;for(var D=0;D';Ca.push("li");ya+='',Ba.push("a"),ya++)}Ma+='"}while(0/g,">");do for(Ma=Pa.pop(),ya=0;ya"}while(za&&0V[wa])F.splice(ja,0,{s:V[wa],n:"a",v:D.TextAlign||"center"});else{for(var oa=0;ja+oa=Aa&&(ja=Ia)break;La=Ea.s;0< La-l&&(V+=e(oa)+r(u,l,La),l=La);for(;null!=Ea&&Ea.s==La;)oa[Ea.n]=Ea,Ea=aa[++ja];V+=e(oa)}else if(Ra){if(Ra.e>Ia)break;l=Ra.e;do delete oa[Ra.n],Ra=ra[++Aa];while(null!=Ra&&Ra.e==l);V+=r(u,La,l);La=l;0!=Pa.length||null!=Ea&&Ea.s==l||(aa.splice(ja,0,{s:l,n:"dummy",v:""}),ra.splice(Aa,0,{e:Ea?Ea.s:Ia,n:"dummy",v:""}))}else break}V+=r(null,null,null,!0);ua&&(l!=Ia&&(V+=e({dummy:1})+r(u,l,Ia)),V+=P(!0));return V}function m(u,F){G=!1;var D=null!=u.Text&&u.Text.t?u.Text:null!=u.Value&&u.Value.t?u.Value: null!=u.Lane_0&&u.Lane_0.t?u.Lane_0:null;null==D&&null!=u.State?u.State.t&&(D=u.State):null==D&&null!=u.Note?u.Note.t&&(D=u.Note):null==D&&null!=u.Title?u.Title.t&&(D=u.Title):u.t&&(D=u);null==D&&null!=u.TextAreas?null!=u.TextAreas.Text&&null!=u.TextAreas.Text.Value&&u.TextAreas.Text.Value.t&&(D=u.TextAreas.Text.Value):null==D&&null!=u.t0&&u.t0.t&&(D=u.t0);if(null!=D){if(null!=D.t){var t=D.t;t=t.replace(/\u2028/g,"\n");D=D.m;try{/ /.test(t)&&(LucidImporter.hasUnknownShapes=!0);for(var e=0;e/g,">")}if(null!=D.Value&&null!=D.Value.t)return D.Value.t=D.Value.t.replace(//g,">"),D.Value.t}return""}function h(u){return null!=u.Action?u.Action:u}function c(u){if(null!=u.Text){if(null!=u.Text.m)return u.Text.m}else if(null!=u.TextAreas){if(null!=u.TextAreas.Text&& null!=u.TextAreas.Text.Value&&null!=u.TextAreas.Text.Value.m)return u.TextAreas.Text.Value.m}else{if(null!=u.m)return u.m;if(null!=u.Title){if(null!=u.Title.m)return u.Title.m}else if(null!=u.State){if(null!=u.State.m)return u.State.m}else if(null!=u.Note&&null!=u.Note.m)return u.Note.m}return null}function a(u,F){u="whiteSpace=wrap;"+(F?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+lb:f(u)+k(u)+n(u)+x(u)+C(u)+J(u)+M(u)+L(u)+Q(u))+U(u)+H(u)+Zb(mxConstants.STYLE_ALIGN,u.TextAlign,"center");lb= "";return u}function b(u,F,D,t,e,P){P=null==P?!1:P;var r="",q=!1,Z=!1;if(null!=u)if(P){P=u.split(";");u="";for(var aa=0;aaq.Endpoint1.LinkX?-250:.9q.Endpoint1.LinkY?-250:.9q.Endpoint2.LinkX?-250:.9q.Endpoint2.LinkY?-250:.9q;)Z=r["m"+q],null!=Z&&(e=Pd(Z,e,u,D,t,F)),q++;null!=r.Text&&(e=Pd(r.Text,e,u,D,t,F));r=null!=P?P.TextAreas:u.TextAreas;null!= r.Message&&(e=Pd(r.Message,e,u,D,t,F))}u.Hidden&&(e.visible=!1);return e}function Pd(u,F,D,t,e,P){var r=2*(parseFloat(u.Location)-.5);isNaN(r)&&null!=u.Text&&null!=u.Text.Location&&(r=2*(parseFloat(u.Text.Location)-.5));P=m(u);var q=mxCell;r=new mxGeometry(isNaN(r)?0:r,0,0,0);var Z=ge;var aa=D;if(G)aa=lb;else{var V="13",wa="";if(null!=u&&null!=u.Value&&null!=u.Value.m){wa=A(u.Value.m);for(var ja=0;ja"));q.geometry.offset=0==na||naBa?1:naua?1:Ca'];ja.push("");for(var oa=null,ra=0;ra')}if(null!=Aa.n1){var Pa=V[Aa.p2].x,Ca=V[Aa.p2].y,ua=t,Na=e,Ka=new Qd(V[Aa.p1].x/t,V[Aa.p1].y/e,Aa.n1.x/t,Aa.n1.y/e,V[Aa.p2].x/t,V[Aa.p2].y/ e,Aa.n2.x/t,Aa.n2.y/e);if(2<=Ka.getSize()){Ka.getX(0);Ka.getY(0);Ka.getX(1);Ka.getY(1);Pa=Math.round(100*Pa/ua*100)/100;Ca=Math.round(100*Ca/Na*100)/100;ua=[];Na=[];for(var La=[],l=Ka.getSize(),Ia=0;Ia';var Ea=bb}else Ea=void 0;ja.push(Ea)}else na=V[Aa.p2].x,Ba=V[Aa.p2].y,na=100*na/t,Ba=100*Ba/e,na=Math.round(100*na)/100,Ba=Math.round(100*Ba)/100,ja.push('');oa=Aa.p2}ja.push("");ja.push("");ja.push("");D.push({shapeStencil:"stencil("+Graph.compress(ja.join(""))+")",FillColor:q,LineColor:Z,LineWidth:aa})}LucidImporter.stencilsMap[u]={text:F.Text,w:t,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y, stencils:D}}catch(Ra){console.log("Stencil parsing error:",Ra)}}function sc(u,F,D,t,e,P,r,q){u=new mxCell("",new mxGeometry(u,F,0,0),"strokeColor=none;fillColor=none;");u.vertex=!0;r.insert(u);P=[u];D=D.clone();q.insertEdge(D,!1);u.insertEdge(D,!0);P.push(D);t.push(e.addCell(D,null,null,null,null))}function fb(u,F,D,t,e,P,r,q,Z){u=new mxCell("",new mxGeometry(u,F,0,0),"strokeColor=none;fillColor=none;");u.vertex=!0;Z.insert(u);D=new mxCell("",new mxGeometry(D,t,0,0),"strokeColor=none;fillColor=none;"); D.vertex=!0;Z.insert(D);q=[D];e=e.clone();u.insertEdge(e,!0);D.insertEdge(e,!1);q.push(e);P.push(r.addCell(e,null,null,null,null))}function Sa(u,F,D,t,e,P){t.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";t.style+=b(t.style,e,P,t);F=m(e);t.vertex=!0;u=new mxCell(F,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+u+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;"); u.style+=b(u.style,e,P,u,G);u.geometry.relative=!0;u.geometry.offset=new mxPoint(5,-12);u.vertex=!0;t.insert(u)}function Wa(u,F,D,t,e,P,r,q){e="transparent"!=u?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";P.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";P.style+=b(P.style,r,q,P);P.value=m(r);P.vertex=!0;u=new mxCell(null,new mxGeometry(.5,0,.7*t*F,.7*t*D),e+u+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;"); u.geometry.relative=!0;u.geometry.offset=new mxPoint(-F*t*.35,10+(1-D)*t*.35);u.vertex=!0;u.style+=b(u.style,r,q,u,G);P.insert(u)}function Xc(u,F){return null!=u&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),u.includes(";"+F+"=")||u.substring(0,F.length+1)==F+"=")?!0:!1}function Rd(u,F){function D(t){t=Math.round(parseInt("0x"+t)*F).toString(16);return 1==t.length?"0"+t:t}return"#"+D(u.substr(1,2))+D(u.substr(3,2))+D(u.substr(5,2))}function Ie(u,F,D){var t=h(u),e=t.Properties, P=e.BoundingBox,r=Math.round(.75*P.w),q=Math.round(.75*P.h),Z=Math.round(.75*P.x+wc),aa=Math.round(.75*P.y+xc);null==u.Class||"GCPInputDatabase"!==u.Class&&"GCPInputRecord"!==u.Class&&"GCPInputPayment"!==u.Class&&"GCPInputGateway"!==u.Class&&"GCPInputLocalCompute"!==u.Class&&"GCPInputBeacon"!==u.Class&&"GCPInputStorage"!==u.Class&&"GCPInputList"!==u.Class&&"GCPInputStream"!==u.Class&&"GCPInputMobileDevices"!==u.Class&&"GCPInputCircuitBoard"!==u.Class&&"GCPInputLive"!==u.Class&&"GCPInputUsers"!==u.Class&& "GCPInputLaptop"!==u.Class&&"GCPInputApplication"!==u.Class&&"GCPInputLightbulb"!==u.Class&&"GCPInputGame"!==u.Class&&"GCPInputDesktop"!==u.Class&&"GCPInputDesktopAndMobile"!==u.Class&&"GCPInputWebcam"!==u.Class&&"GCPInputSpeaker"!==u.Class&&"GCPInputRetail"!==u.Class&&"GCPInputReport"!==u.Class&&"GCPInputPhone"!==u.Class&&"GCPInputBlank"!==u.Class||(q+=20);v=new mxCell("",new mxGeometry(Z,aa,r,q),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=e.ZOrder;var V=null!=u.Class? u.Class:null!=t?t.Class:null;switch(V){case "BraceNoteBlock":case "UI2BraceNoteBlock":var wa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(wa=!0);var ja=null,oa=null,ra=m(e),Aa=e.Rotation?mxUtils.getSizeForString(ra.replace(/\n/g,"
"),null,null,Math.abs(r-.125*q)):{width:0,height:0};wa?(ja=new mxCell("",new mxGeometry(r-.125*q,0,.125*q,q),"shape=curlyBracket;rounded=1;"),oa=new mxCell("",new mxGeometry(Aa.height,-2*Aa.width,r-.125*q,q),"strokeColor=none;fillColor=none;")):(ja=new mxCell("", new mxGeometry(0,0,.125*q,q),"shape=curlyBracket;rounded=1;flipH=1;"),oa=new mxCell("",new mxGeometry(.125*q-Aa.height,Aa.width,r-.125*q,q),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);ja.vertex=!0;v.insert(ja);ja.style+=b(ja.style,e,t,ja);oa.vertex=!0;oa.value=ra;v.insert(oa);oa.style+=b(oa.style,e,t,oa,G);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var na= "MainText",Ba=null,Pa="HeaderFill_",Ca="BodyFill_",ua=25,Na=25,Ka=0;if(null!=e.Lanes)Ka=e.Lanes.length;else if(null!=e.PrimaryLane){var La=function(gb){if(gb)32>gb?gb=32:208e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,t,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=m(e);v.style+=b(v.style,e,t,v,G);v.style=v.style.replace("rotation=180;", "");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0w[l].style.indexOf(";align=")&&(w[l].style+="align=left;spacingLeft=5;");var Ua=I(e,t);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll? new mxCell("",new mxGeometry(1,0,20,q-e.Selected*ha-20-(e.Panels-e.Selected)*ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,q-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,e.Selected*ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style, e,t,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*ha),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,t,T));ta=1==e.vScroll?new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,q-e.Selected*ha- 20-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,q-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;");ta.vertex=!0;v.insert(ta);ta.value=m(e.Content_1);ta.style+=a(e.Content_1,G);!G&&0>ta.style.indexOf(";align=")&&(ta.style+="align=left;spacingLeft=5;");v.style+=b(v.style,e,t,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";w=[];E=[];ha=25;var Ib=3,Ha=(r+Ib)/ (e.Tabs+1),hb=new mxCell("",new mxGeometry(0,ha,r,q-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,t,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Ib,ha),""),E[l].vertex=!0,v.insert(E[l])):(w[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Ib,ha),"strokeColor=none;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=w[l].style+=b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Ib,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex= !0,w[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,e,t,E[l]);Ua=I(e,t);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,q-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,q-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"), E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,e,t,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+= Ua,T.style+=b(T.style,e,t,T));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";w=[];E=[];ha=25;Ib=3;Ha=(r+Ib)/e.Tabs;hb=new mxCell("",new mxGeometry(0,ha,r,q-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,t,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Ib,ha),""),E[l].vertex=!0,v.insert(E[l])):(w[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Ib,ha),"strokeColor=none;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+= b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Ib,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,w[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,t,E[l],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;");Ua=I(e,t);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,q-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"): new mxCell("",new mxGeometry(1,0,20,q-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,e,t,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"), T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,t,T));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";w=[];E=[];Ib=3;ha=25+Ib;Ha=80;zc=10;hb=new mxCell("",new mxGeometry(Ha,0,r-Ha,q),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,t,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Ib),""),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Tab_"+ (l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,t,E[l],G)):(w[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Ib),"strokeColor=none;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha,ha-Ib),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,w[l].insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G)),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style, e,t,E[l]);Ua=I(e,t);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,q-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,q),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,0),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;", E.style+=Ua,E.style+=b(E.style,e,t,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(Ha,1,r-20-Ha,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Ha,1,r-Ha,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,t,T));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;"; ha=q/e.Options;w=[];E=[];for(l=0;l',tc=e.Data.split("\n");var hf=e.AltRow&&"default"!=e.AltRow?"none"==e.AltRow?kb:S(e.AltRow):Rd(kb,.95);Oc=e.Header&&"default"!=e.Header?"none"==e.Header?hf:S(e.Header):Rd(kb,.8);if("full"==e.GridLines)Sc="border: 1px solid "+ Kd,be=19;else if("row"==e.GridLines)Sc="border-bottom: 1px solid "+Kd,be=19;else if("default"==e.GridLines||"column"==e.GridLines)Sc="border-right: 1px solid "+Kd;tc=tc.filter(function(gb){return gb});/^\{[^}]*\}$/.test(tc[tc.length-1])&&tc.pop();Fc=tc[0].split(",").length;var jf="";for(fa=0;fa';var kf=tc[l].split(",");for(fa=0;fa'+mxUtils.htmlEntities(kf[fa])+""}Ld+=""}Ld+="";v.value=Ld}catch(gb){console.log(gb)}break;case "UI2ButtonBarBlock":v.style+=b(v.style,e,t,v);w=[];E=[];Ha=r/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,q),""),E[l].vertex=!0,v.insert(E[l])):(w[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha,q),"strokeColor=none;"), w[l].vertex=!0,v.insert(w[l]),w[l].style+=w[l].style+=b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha,q),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,w[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,t,E[l],G);break;case "UI2VerticalButtonBarBlock":v.style+=b(v.style,e,t,v);w=[];E=[];ha=q/e.Buttons;for(l=0;l<=e.Buttons-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,l*ha,r,ha),""),E[l].vertex=!0,v.insert(E[l])): (w[l]=new mxCell("",new mxGeometry(0,l*ha,r,ha),"strokeColor=none;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,r,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,w[l].insert(E[l])),E[l].value=m(e["Button_"+(l+1)]),E[l].style+=a(e["Button_"+(l+1)],G),E[l].style+=b(E[l].style,e,t,E[l],G);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);w=[];E=[];Ha=r/e.Links;for(l=0;l',ve=null;for(l=0;l'}de+="";v.style=ve?ve:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(de):Base64.encode(de,!0))+";"}catch(gb){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var nf=0==V.indexOf("Bracket")?"size=0;arcSize=50;":"",of=b(v.style,e,t,v,G);mb=ba(e,t,v);v.style="group;"+mb;var we=Math.min(.14*(mb?r:q),100),xe= new mxCell("",new mxGeometry(0,0,we,q),"shape=curlyBracket;rounded=1;"+nf+of);xe.vertex=!0;xe.geometry.relative=!0;var ye=new mxCell("",new mxGeometry(1-we/r,0,we,q),"shape=curlyBracket;rounded=1;flipH=1;"+nf+of);ye.vertex=!0;ye.geometry.relative=!0;v.insert(xe);v.insert(ye);break;case "BPMNTextAnnotation":case "NoteBlock":e.InsetMargin=null;v.value=m(e.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=b(v.style,e,t,v,G);0>v.style.indexOf("verticalAlign")&&(v.style+= "verticalAlign=middle;");var kd=new mxCell("",new mxGeometry(0,0,8,q),"shape=partialRectangle;right=0;fillColor=none;");kd.geometry.relative=!0;kd.vertex=!0;kd.style+=b(kd.style,e,t,v,G);v.insert(kd);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{mb=ba(e,t,v);v.style="group;"+mb;if(null!=e.Stencil){null==e.Stencil.id&&(e.Stencil.id="$$tmpId$$", Ke(e.Stencil.id,e.Stencil));var Pb=LucidImporter.stencilsMap[e.Stencil.id],Zf=-Pb.x/Pb.w,$f=-Pb.y/Pb.h;for(l=0;l'];Wc.push("");for(fa=0;fa'):Wc.push('');Wc.push(""); Wc.push("");Wc.push("");v.style="shape=stencil("+Graph.compress(Wc.join(""))+");";v.value=m(e);v.style+=b(v.style,e,t,v,G);break;case "InfographicsBlock":var rf=e.ShapeData_1.Value,Ae=e.ShapeData_2.Value-rf,Be=e.ShapeData_3.Value-rf,ee=e.ShapeData_4.Value*r/200;Xb="ProgressBar"==e.InternalStencilId?4:5;kb=e["ShapeData_"+Xb].Value;kb="=fillColor()"==kb?e.FillColor:kb;var od=e["ShapeData_"+(Xb+1)].Value;switch(e.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+ ee+";strokeColor=none;fillColor="+S(od)+";"+la(od,"fillOpacity");v.style+=b(v.style,e,t,v,G);var ab=new mxCell("",new mxGeometry(0,0,r,q),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+Be/Ae+";arcWidth="+ee/r*2+";strokeColor=none;fillColor="+S(kb)+";"+la(kb,"fillOpacity"));ab.style+=b(ab.style,e,t,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var sf=Be/Ae/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+ sf+";arcWidth="+2*ee/r+";strokeColor=none;fillColor="+S(kb)+";"+la(kb,"fillOpacity");e.Rotation-=Math.PI/2;v.style+=b(v.style,e,t,v,G);ab=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-sf)+";arcWidth="+2*ee/r+";strokeColor=none;flipH=1;fillColor="+S(od)+";"+la(od,"fillOpacity"));e.Rotation+=Math.PI;ab.style+=b(ab.style,e,t,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+ S(od)+";"+la(od,"fillOpacity"),v.style+=b(v.style,e,t,v,G),ab=new mxCell("",new mxGeometry(0,0,r*Be/Ae,q),"strokeColor=none;fillColor="+S(kb)+";"+la(kb,"fillOpacity")),ab.style+=b(ab.style,e,t,ab,G),ab.vertex=!0,ab.geometry.relative=1,v.insert(ab)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(e.Text&&e.Text.m){var fe=e.Text.m,Ce=!1,De=!1;for(l=0;lv.style.indexOf("html")&&(v.style+="html=1;");if(e.Title&&e.Title.t&&e.Text&&e.Text.t)try{var tf=v.geometry,uf=new mxCell(m(e.Title),new mxGeometry(0,tf.height+4,tf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;"); uf.vertex=!0;v.insert(uf);v.style+=a(e.Title,G)}catch(gb){console.log(gb)}Ge(v,e);ka(v,e,D);e.Hidden&&(v.visible=!1);return v}function Ge(u,F){if(F.Text_TRotation||F.TextRotation)try{var D=mxUtils.toDegree(F.Text_TRotation||0)+mxUtils.toDegree(F.TextRotation||0);if(!isNaN(D)&&0!=D&&u.value){var t=u.geometry.width,e=u.geometry.height,P=t,r=e,q=0,Z=0;if(-90==D||-270==D){P=e;r=t;var aa=(e-t)/2;q=-aa/t;Z=aa/e}D+=mxUtils.toDegree(F.Rotation);var V=u.style.split(";").filter(function(ja){return 0>ja.indexOf("fillColor=")&& 0>ja.indexOf("strokeColor=")&&0>ja.indexOf("rotation=")}).join(";"),wa=new mxCell(u.value,new mxGeometry(q,Z,P,r),V+"fillColor=none;strokeColor=none;rotation="+D+";");u.value=null;wa.geometry.relative=!0;wa.vertex=!0;u.insert(wa)}}catch(ja){console.log(ja)}}function Je(u,F,D,t,e){function P(Lb,$b){var Xa="";try{for(var pb=0;pb'+(Xa[V[pb]]||" ")+"";pb= mxUtils.getSizeForString($b);Xa=g(Xa.Image||Xa["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Xa=new mxCell($b,new mxGeometry(0,0,pb.width+Ba,pb.height+Pa),ua+(Ca?Xa:""));Xa.vertex=!0;e[Lb]=Xa;t.addCell(Xa,aa)},q=F.OrgChartBlockType,Z=F.Location,aa=new mxCell("",new mxGeometry(.75*Z.x,.75*Z.y,200,100),"group");aa.vertex=!0;t.addCell(aa);var V=F.FieldNames,wa=F.LayoutSettings,ja=F.BlockItemDefaultStyle|| {props:{}},oa=F.EdgeItemDefaultStyle,ra={},Aa=(u||Date.now())+"_";4==q&&(ja.props.LineWidth=0);var na=[],Ba=25,Pa=40,Ca=!0,ua=b("",ja.props,{},aa,!0);0==q?(ua+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Pa+=54):1==q||2==q?(ua+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",Ba+=54):3<=q&&(Ca=!1);for(u=0;uwa.Properties.Order?1:0});for(q=0;q',''];D&&D.transparentEdgeLabels&&(ge=ge.replace("labelBackgroundColor=default;", "labelBackgroundColor=none;"));var e=[];null!=u.state?t(JSON.parse(u.state)):null==u.Page&&null!=u.Pages?t(u):e.push(u);u=Df();D=new mxCodec;for(var P=0;P"+Graph.compress(mxUtils.getXml(r))+"")}F.push("");LucidImporter.imgSrcRepl= null;return F.join("")}})();function VsdxExport(g){function y(H,I){var N={"[Content_Types].xml":"", "_rels/.rels":"", "docProps/app.xml":'Microsoft Visio15.0000