diff --git a/ChangeLog b/ChangeLog index 60a41582b..cb489e761 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +25-JUN-2024: 24.6.3 + +- Removes drop shadow in PDF export [jgraph/drawio-desktop#1784] +- Conf Cloud: Added support for copied pages in Gliffy import [DID-11864] +- Conf Cloud: Added support for inplaceEdits configuration [DID-11923] +- Removes uponSanitizeAttribute listener for SVG content attribute [DND-1208] + 22-JUN-2024: 24.6.2 - Adds option to include current page in PNG and SVG export [jgraph/drawio#2860] diff --git a/VERSION b/VERSION index caaff4dc3..82a82a0ee 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -24.6.2 \ No newline at end of file +24.6.3 \ No newline at end of file diff --git a/src/main/webapp/export3.html b/src/main/webapp/export3.html index 439897806..4e014114c 100644 --- a/src/main/webapp/export3.html +++ b/src/main/webapp/export3.html @@ -13,6 +13,9 @@ page-break-inside: avoid; page-break-after: always; } + g[style*="filter: drop-shadow("] { + filter: none !important; + } } diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js index 82fb34e6c..876a53788 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -64,7 +64,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url "se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1"); "embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open"; window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images"; -window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"24.6.2",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), +window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"24.6.3",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"), IS_OP:null!=navigator.userAgent&&(0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/")),IS_OT:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:/Apple Computer, Inc/.test(navigator.vendor), IS_ANDROID:0<=navigator.appVersion.indexOf("Android"),IS_IOS:/iP(hone|od|ad)/.test(navigator.platform)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:"MICROSOFT INTERNET EXPLORER"!=navigator.appName.toUpperCase(),NO_FO:!document.createElementNS|| @@ -114,29 +114,29 @@ return 0"):(b.push(">"),b.push(a.innerHTML),b.push(""));return b.join("")}return""}:function(a){return null!=a?(new XMLSerializer).serializeToString(a):""}}(),write:function(a,b){b=a.ownerDocument.createTextNode(b);null!= a&&a.appendChild(b);return b},writeln:function(a,b){b=a.ownerDocument.createTextNode(b);null!=a&&(a.appendChild(b),a.appendChild(document.createElement("br")));return b},br:function(a,b){b=b||1;for(var c=null,d=0;dg&&(a.style.left=Math.max(f,g-d)+"px");c=parseInt(a.offsetTop);d=parseInt(a.offsetHeight);b=e+b.height;c+d>b&&(a.style.top=Math.max(e,b-d)+"px")},load:function(a){a=new mxXmlRequest(a,null,"GET",!1);a.send();return a},get:function(a,b,c,d,e,f,g){a=new mxXmlRequest(a,null,"GET");var k=a.setRequestHeaders;g&&(a.setRequestHeaders=function(l,m){k.apply(this,arguments);for(var n in g)l.setRequestHeader(n,g[n])});null!=d&&a.setBinary(d);a.send(b,c,e,f);return a},getAll:function(a, -b,c){for(var d=a.length,e=[],f=0,g=function(){0==f&&null!=c&&c();f++},k=0;kp||299mxUtils.indexOf(b,e))&&(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c [Function]\n";else if("object"==typeof a[c]){var d=mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return E;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);E=Math.sin(e*Math.PI/180);e=p*m+E*n;m=-1*E*m+p* -n;n=e*e;var r=m*m,q=c*c,t=d*d,u=n/q+r/t;1e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);n=p*c;p*=d;c*=E;d*=E; -var v=Math.cos(f),z=Math.sin(f);r=-m*(n*z+d*v);q=-m*(c*z-p*v);for(var E=[],C=0;Cc&&(a=3,-135>=c&&(a=2)); -if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<=d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|= -mxConstants.DIRECTION_MASK_SOUTH;break;case 1:b|=mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b=(a&mxConstants.DIRECTION_MASK_WEST)<< -3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<1;b|=(a&mxConstants.DIRECTION_MASK_SOUTH)>>1;return b|(a&mxConstants.DIRECTION_MASK_EAST)>>3},findNearestSegment:function(a,b,c){var d=-1;if(0f.distSq)&&(d=f)}}return null!=d?d.p:null},intersectsPoints:function(a,b){for(var c=0;cc.x&&(a=c.x,k=b.x);k>g&&(k=g);ak)return!1;e=b.y;g=c.y;var l=c.x-b.x;1E-7g&&(b=g,g=e,e=b);g>f&&(g=f);eg?!1:!0},contains:function(a,b,c){return a.x<=b&&a.x+a.width>=b&&a.y<=c&&a.y+a.height>=c},intersects:function(a,b,c){var d=a.width,e=a.height,f=b.width,g=b.height;if(!c&&(0>=f||0>=g||0>=d||0>=e))return!1;c=a.x;a=a.y;var k=b.x;b=b.y;f+=k;g+=b;d+=c;e+=a;return(fc)&&(ga)&&(dk)&&(eb)},intersectsHotspot:function(a,b,c,d,e,f){d=null!=d?d:1;e=null!=e?e:0;f=null!=f?f:0;if(0k&&(a.style.left=Math.max(g+b,k-e)+"px");d=parseInt(a.offsetTop);e=parseInt(a.offsetHeight);c=f+c.height-b;d+e>c&&(a.style.top=Math.max(f+b,c-e)+"px")},load:function(a){a=new mxXmlRequest(a,null,"GET",!1);a.send();return a},get:function(a,b,c,d,e,f,g){a=new mxXmlRequest(a,null,"GET");var k=a.setRequestHeaders;g&&(a.setRequestHeaders=function(l,m){k.apply(this,arguments);for(var n in g)l.setRequestHeader(n,g[n])});null!=d&&a.setBinary(d);a.send(b,c,e,f);return a}, +getAll:function(a,b,c){for(var d=a.length,e=[],f=0,g=function(){0==f&&null!=c&&c();f++},k=0;kp||299mxUtils.indexOf(b,e))&&(d[e]=c||"object"!=typeof a[e]?a[e]:mxUtils.clone(a[e]))}return d},equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;c [Function]\n";else if("object"==typeof a[c]){var d=mxUtils.getFunctionName(a[c].constructor);b+=c+" => ["+d+"]\n"}else b+=c+" = "+a[c]+"\n"}catch(e){b+=c+"="+e.message}return b},toRadians:function(a){return Math.PI*a/180},toDegree:function(a){return 180*a/Math.PI},arcToCurves:function(a,b,c,d,e,f,g,k,l){k-=a;l-=b;if(0===c||0===d)return E;c=Math.abs(c);d=Math.abs(d);var m=-k/2,n=-l/2,p=Math.cos(e*Math.PI/180);E=Math.sin(e*Math.PI/180); +e=p*m+E*n;m=-1*E*m+p*n;n=e*e;var r=m*m,q=c*c,t=d*d,u=n/q+r/t;1e&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;m=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2); +n=p*c;p*=d;c*=E;d*=E;var v=Math.cos(f),z=Math.sin(f);r=-m*(n*z+d*v);q=-m*(c*z-p*v);for(var E=[],C=0;C +c&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|=mxConstants.DIRECTION_MASK_SOUTH}if(0<= +d.indexOf(mxConstants.DIRECTION_SOUTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 1:b|=mxConstants.DIRECTION_MASK_WEST;break;case 2:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 3:b|=mxConstants.DIRECTION_MASK_EAST}if(0<=d.indexOf(mxConstants.DIRECTION_EAST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_EAST;break;case 1:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 2:b|=mxConstants.DIRECTION_MASK_WEST;break;case 3:b|=mxConstants.DIRECTION_MASK_NORTH}return b},reversePortConstraints:function(a){var b= +(a&mxConstants.DIRECTION_MASK_WEST)<<3;b|=(a&mxConstants.DIRECTION_MASK_NORTH)<<1;b|=(a&mxConstants.DIRECTION_MASK_SOUTH)>>1;return b|(a&mxConstants.DIRECTION_MASK_EAST)>>3},findNearestSegment:function(a,b,c){var d=-1;if(0f.distSq)&&(d=f)}}return null!=d?d.p:null},intersectsPoints:function(a,b){for(var c=0;cc.x&&(a=c.x,k=b.x);k>g&&(k=g);ak)return!1;e=b.y;g=c.y;var l=c.x-b.x;1E-7g&&(b=g,g=e,e=b);g>f&&(g=f);eg?!1:!0},contains:function(a,b,c){return a.x<=b&&a.x+a.width>=b&&a.y<=c&&a.y+a.height>=c},intersects:function(a,b,c){var d=a.width,e=a.height,f=b.width,g=b.height;if(!c&&(0>=f||0>=g||0>=d||0>=e))return!1;c=a.x;a=a.y;var k=b.x;b=b.y;f+=k;g+= +b;d+=c;e+=a;return(fc)&&(ga)&&(dk)&&(eb)},intersectsHotspot:function(a,b,c,d,e,f){d=null!=d?d:1;e=null!=e?e:0;f=null!=f?f:0;if(0a.toLowerCase().indexOf("0x"))},isInteger:function(a){return String(parseInt(a))===String(a)},mod:function(a,b){return(a%b+b)%b},intersection:function(a,b,c,d,e,f,g,k){var l=(k-f)*(c-a)-(g-e)*(d-b);g=((g-e)*(b-f)-(k-f)*(a-e))/l;e=((c-a)*(b-f)-(d-b)*(a-e))/l;return 0<=g&&1>= g&&0<=e&&1>=e?new mxPoint(a+g*(c-a),b+g*(d-b)):null},ptSegDistSq:function(a,b,c,d,e,f){c-=a;d-=b;e-=a;f-=b;0>=e*c+f*d?c=0:(e=c-e,f=d-f,a=e*c+f*d,c=0>=a?0:a*a/(c*c+d*d));e=e*e+f*f-c;0>e&&(e=0);return e},ptLineDist:function(a,b,c,d,e,f){return Math.abs((d-b)*e-(c-a)*f+c*b-d*a)/Math.sqrt((d-b)*(d-b)+(c-a)*(c-a))},relativeCcw:function(a,b,c,d,e,f){c-=a;d-=b;e-=a;f-=b;a=e*d-f*c;0==a&&(a=e*c+f*d,0a&&(a=0)));return 0>a?-1:0document.documentMode)?a.style.filter=100<=b?"":"alpha(opacity="+b+")":a.style.opacity=b/100},createElementNs:function(a,b,c){if(null!=a.createElementNS)return a.createElementNS(b,c);a=a.createElement(c);null!=namespace&&a.setAttribute("xmlns",b);return a}, @@ -2273,11 +2273,11 @@ F=0,37==w?F=-z:38==w?D=-z:39==w?F=z:40==w&&(D=z),I.currentDx+=F*K,I.currentDy+=D d.dialogs||0==d.dialogs.length)};g.isControlDown=function(w){return mxEvent.isControlDown(w)||mxClient.IS_MAC&&w.metaKey};var h=null,n={37:mxConstants.DIRECTION_WEST,38:mxConstants.DIRECTION_NORTH,39:mxConstants.DIRECTION_EAST,40:mxConstants.DIRECTION_SOUTH},q=g.getFunction;mxKeyHandler.prototype.getFunction=function(w){if(f.isEnabled()){var z=null;mxEvent.isShiftDown(w)&&this.isControlDown(w)&&mxEvent.isAltDown(w)?z=d.actions.get(d.ctrlAltShiftActions[w.keyCode]):mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)? z=d.actions.get(d.altShiftActions[w.keyCode]):this.isControlDown(w)&&mxEvent.isAltDown(w)&&(z=d.actions.get(d.ctrlAltActions[w.keyCode]));if(null!=z)return z.funct;if(null!=n[w.keyCode]&&!f.isSelectionEmpty())if(!this.isControlDown(w)&&mxEvent.isShiftDown(w)&&mxEvent.isAltDown(w)){if(f.model.isVertex(f.getSelectionCell()))return function(){var C=f.connectVertex(f.getSelectionCell(),n[w.keyCode],f.defaultEdgeLength,w,!0);null!=C&&0d&&(this.tooltip.style.width=n+"px");this.tooltip.style.height=f+"px";g=-Math.round(p.x-this.tooltipBorder)+(n>d?(n-d)/2:0);d=-Math.round(p.y-this.tooltipBorder);h=null!=h?h:this.getTooltipOffset(a,p);a=h.x;h=h.y;mxClient.IS_SVG?0!=g||0!=d?this.graph2.view.canvas.setAttribute("transform","translate("+g+","+d+")"):this.graph2.view.canvas.removeAttribute("transform"): -(this.graph2.view.drawPane.style.left=g+"px",this.graph2.view.drawPane.style.top=d+"px");this.tooltip.style.position="absolute";this.tooltip.style.left=a+"px";this.tooltip.style.top=h+"px";mxUtils.fit(this.tooltip);this.lastCreated=Date.now()}; +(this.graph2.view.drawPane.style.left=g+"px",this.graph2.view.drawPane.style.top=d+"px");this.tooltip.style.position="absolute";this.tooltip.style.left=a+"px";this.tooltip.style.top=h+"px";mxUtils.fit(this.tooltip,this.tooltipBorder);this.lastCreated=Date.now()}; Sidebar.prototype.showTooltip=function(a,b,d,f,g,e){if(this.enableTooltips&&this.showTooltips&&this.currentElt!=a){null!=this.thread&&(window.clearTimeout(this.thread),this.thread=null);var h=mxUtils.bind(this,function(){this.createTooltip(a,b,d,f,g,e)});null!=this.tooltip&&"none"!=this.tooltip.style.display?h():this.thread=window.setTimeout(h,this.tooltipDelay);this.currentElt=a}}; Sidebar.prototype.hideTooltip=function(){null!=this.thread&&(window.clearTimeout(this.thread),this.thread=null);null!=this.tooltip&&(this.tooltip.style.display="none",this.currentElt=null);this.tooltipMouseDown=null};Sidebar.prototype.addDataEntry=function(a,b,d,f,g){null==a&&(a="");null!=f&&(a+=" "+f);return this.addEntry(a,mxUtils.bind(this,function(){return this.createVertexTemplateFromData(g,b,d,f)}))}; Sidebar.prototype.addEntries=function(a){for(var b=0;b
')))}catch(l){}Editor.prototype.useCanvasForExport=!1})(); (function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};b.afterDecode=function(e,f,c){c.previousColor=c.color;c.previousImage=c.image;c.previousFormat=c.format;null!=c.foldingEnabled&&(c.foldingEnabled=!c.foldingEnabled);null!=c.mathEnabled&&(c.mathEnabled=!c.mathEnabled);null!=c.shadowVisible&&(c.shadowVisible=!c.shadowVisible);return c};mxCodecRegistry.register(b)})(); -(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="24.6.2";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost= +(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="24.6.3";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=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=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.nativeFileSupport=!mxClient.IS_OP&&!EditorUi.isElectronApp&&"1"!=urlParams.extAuth&&"showSaveFilePicker"in window&&"showOpenFilePicker"in window;EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://www.drawio.com/doc/faq/scratchpad";EditorUi.enableHtmlEditOption=!0;EditorUi.mermaidDiagramTypes="flowchart classDiagram sequenceDiagram stateDiagram mindmap graph erDiagram requirementDiagram journey gantt pie gitGraph".split(" "); 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"}}; @@ -12288,59 +12288,59 @@ null!=this.sidebar&&this.sidebar.hideTooltip();x.stopPropagation();x.preventDefa this.fileLoaded(null),this.openFiles(N,!0)):(mxEvent.isAltDown(x)&&(V=T=null),this.importFiles(N,T,V,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(x),null,null,mxEvent.isShiftDown(x),x));else{mxEvent.isAltDown(x)&&(V=T=0);var W=0<=mxUtils.indexOf(x.dataTransfer.types,"text/uri-list")?x.dataTransfer.getData("text/uri-list"):null;D=this.extractGraphModelFromEvent(x,null!=this.pages);if(null!=D)g.setSelectionCells(this.importXml(D,T,V,!0));else if(0<=mxUtils.indexOf(x.dataTransfer.types, "text/html")){var X=x.dataTransfer.getData("text/html");D=document.createElement("div");D.innerHTML=Graph.sanitizeHtml(X);var Y=null;N=D.getElementsByTagName("img");null!=N&&1==N.length?(X=N[0].getAttribute("src"),null==X&&(X=N[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(X)||(Y=!0)):(N=D.getElementsByTagName("a"),null!=N&&1==N.length?X=N[0].getAttribute("href"):(D=D.getElementsByTagName("pre"),null!=D&&1==D.length&&(X=mxUtils.getTextContent(D[0]))));var Z=!0,aa=mxUtils.bind(this, function(){g.setSelectionCells(this.insertTextAt(X,T,V,!0,Y,null,Z,mxEvent.isControlDown(x)))});Y&&null!=X&&X.length>this.resampleThreshold?this.confirmImageResize(function(ha){Z=ha;aa()},mxEvent.isControlDown(x)):aa()}else null!=W&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(W)?this.loadImage(decodeURIComponent(W),mxUtils.bind(this,function(ha){var ca=Math.max(1,ha.width);ha=Math.max(1,ha.height);var da=this.maxImageSize;da=Math.min(1,Math.min(da/Math.max(1,ca)),da/Math.max(1,ha));g.setSelectionCell(g.insertVertex(null, -null,"",T,V,ca*da,ha*da,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+W+";"))}),mxUtils.bind(this,function(ha){g.setSelectionCells(this.insertTextAt(W,T,V,!0))})):0<=mxUtils.indexOf(x.dataTransfer.types,"text/plain")&&g.setSelectionCells(this.insertTextAt(x.dataTransfer.getData("text/plain"),T,V,!0))}}x.stopPropagation();x.preventDefault()}),!1)}g.enableFlowAnimation=Editor.enableAnimations;this.initPages();"1"==urlParams.embed&& -this.initializeEmbedMode();C=mxUtils.bind(this,function(){g.refresh();g.view.validateBackground();this.updateDocumentTitle();this.updateTabContainer();this.hideShapePicker()});this.addListener("darkModeChanged",C);this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh()}));g.addListener("enabledChanged",mxUtils.bind(this,function(){g.isEnabled()||this.hideShapePicker()})); -d=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==d.embedViewport)mxUtils.fit(this.div);else{var x=parseInt(this.div.offsetLeft),D=parseInt(this.div.offsetWidth),N=d.embedViewport.x+d.embedViewport.width,P=parseInt(this.div.offsetTop),R=parseInt(this.div.offsetHeight),T=d.embedViewport.y+d.embedViewport.height;this.div.style.left=Math.max(d.embedViewport.x,Math.min(x,N-D))+"px";this.div.style.top=Math.max(d.embedViewport.y,Math.min(P,T-R))+"px";this.div.style.height=Math.min(d.embedViewport.height, -parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(d.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)C=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(C,0,mxUtils.bind(this,function(){"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)=g&&d=g&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=d}q.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var d=this.sketchFooterMenuElt,g=this.sketchMainMenuElt,m=this.sketchPickerMenuElt,t=this.editor.graph;m.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode, -mxUtils.bind(this,function(I){mxEvent.getSource(I)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(I),mxEvent.getClientY(I)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var v=document.createElement("div");v.style.position="absolute";v.style.width="10px";v.style.height="10px";v.style.borderRadius="5px";v.style.border="1px solid gray";v.style.background="#ffffff";v.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(v); -this.bottomResizer=v;var y=null,B=null,J=null,K=null;mxEvent.addGestureListeners(v,mxUtils.bind(this,function(I){K=parseInt(this.diagramContainer.style.height);B=mxEvent.getClientY(I);t.popupMenuHandler.hideMenu();mxEvent.consume(I)}));v=v.cloneNode(!1);v.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(v);this.rightResizer=v;mxEvent.addGestureListeners(v,mxUtils.bind(this,function(I){J=parseInt(this.diagramContainer.style.width);y=mxEvent.getClientX(I);t.popupMenuHandler.hideMenu(); -mxEvent.consume(I)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(I){var U=!1;null!=y&&(this.diagramContainer.style.width=Math.max(20,J+mxEvent.getClientX(I)-y)+"px",U=!0);null!=B&&(this.diagramContainer.style.height=Math.max(20,K+mxEvent.getClientY(I)-B)+"px",U=!0);U&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}), -function(I){null==y&&null==B||mxEvent.consume(I);B=y=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";this.sketchMenubarElt.style.display="none";g.style.visibility="hidden";d.style.visibility="hidden";m.style.display="none";this.addListener("editInlineStart",mxUtils.bind(this,function(I){this.inlineSizeChanged();this.fitWindows()}));this.addListener("darkModeChanged", -mxUtils.bind(this,function(I){Editor.enableCssDarkMode||this.inlineSizeChanged()}));this.addListener("editInlineStop",mxUtils.bind(this,function(I){this.diagramContainer.style.width="10px";this.diagramContainer.style.height="10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";g.style.visibility="hidden";d.style.visibility="hidden";m.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()}; -EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var d=this.editor.graph;d.container.addEventListener("paste",mxUtils.bind(this,function(g){if(!mxEvent.isConsumed(g))try{for(var m=g.clipboardData||g.originalEvent.clipboardData,t=!1,v=0;v',g=!0)}this.statusContainer.style.display="none";t=32>=d.clientWidth;d.style.visibility=t&&""==this.editor.getStatus()?"hidden":"";if(t||g)this.statusContainer.style.display="inline-flex",g=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="inline-flex",this.statusContainer.style.display=0==this.statusContainer.clientWidth?"none":"inline-flex"):this.statusContainer.style.display="inline-flex"});this.editor.addListener("statusChanged",m); -m()};EditorUi.prototype.switchTheme=function(d){this.isDefaultTheme(d)&&null!=this.formatContainer&&(this.formatContainer.style.left="",this.formatContainer.style.zIndex="1",this.formatContainer.style.border="",null!=this.footerContainer&&this.footerContainer.parentNode!=this.formatContainer.parentNode&&this.footerContainer.parentNode.insertBefore(this.formatContainer,this.footerContainer),null!=this.sidebarContainer&&this.formatContainer.parentNode!=this.sidebarContainer.parentNode&&this.formatContainer.parentNode.insertBefore(this.sidebarContainer, -this.formatContainer));this.destroyWindows();this.updateUserElement();this.updateDefaultStyles();this.switchThemeConstants(d);this.switchCssForTheme(d);this.createWrapperForTheme(d);this.createMainMenuForTheme(d);this.createFooterMenuForTheme(d);this.createPickerMenuForTheme(d);this.createMenubarForTheme(d);this.sidebarContainer.style.display="";if("sketch"==d){this.createFormatWindow();this.formatContainer.style.left="0px";this.formatContainer.style.top="0px";this.formatContainer.style.width=""; -this.formatContainer.style.zIndex="";this.formatContainer.style.border="none";var g=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);this.createShapesWindow();this.sidebarContainer.className="";this.sidebarContainer.style.position="absolute";this.sidebarContainer.style.left="0px";this.sidebarContainer.style.top="0px";this.sidebarContainer.style.bottom=g?"32px":"0px";this.sidebarContainer.style.width="100%"}null!=this.format&&(d=this.isDefaultTheme(d)||"atlas"==d,this.format.showCloseButton!= -d&&(this.format.showCloseButton=d,this.format.refresh()))};EditorUi.prototype.getWindows=function(){var d=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(d=d.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(d=d.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWindow]));return d};EditorUi.prototype.fitWindows=function(){for(var d=this.getWindows(),g=0;g(window.innerWidth||document.documentElement.clientWidth|| -document.body.clientWidth)||708>d)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var u=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(d){var g=this.formatWindow;null!=g?g.window.setVisible(null!=d?d:!this.isFormatPanelVisible()):u.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(d){if(this.isShapesPanelVisible()!=d){var g=EditorUi.prototype.hsplitPosition;0==g&&(g=this.defaultSidebarWidth);var m=this.hsplitPosition, -t=mxUtils.bind(this,function(){this.hsplitPosition=v;this.refresh();this.diagramContainer.scrollLeft-=m-this.hsplitPosition}),v=d?g:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==v?"translateX(0)":"translateX(-100%)");0!=v&&t();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==v?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out"); -mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==v&&t()}),300)}),10)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0=g&&d=g&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=d}q.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var d=this.sketchFooterMenuElt, +g=this.sketchMainMenuElt,m=this.sketchPickerMenuElt,t=this.editor.graph;m.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(I){mxEvent.getSource(I)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(I),mxEvent.getClientY(I)),this.sendEmbeddedSvgExport())}));document.body.style.cursor="text";var v=document.createElement("div");v.style.position="absolute";v.style.width="10px";v.style.height="10px";v.style.borderRadius= +"5px";v.style.border="1px solid gray";v.style.background="#ffffff";v.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(v);this.bottomResizer=v;var y=null,B=null,J=null,K=null;mxEvent.addGestureListeners(v,mxUtils.bind(this,function(I){K=parseInt(this.diagramContainer.style.height);B=mxEvent.getClientY(I);t.popupMenuHandler.hideMenu();mxEvent.consume(I)}));v=v.cloneNode(!1);v.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(v);this.rightResizer=v;mxEvent.addGestureListeners(v, +mxUtils.bind(this,function(I){J=parseInt(this.diagramContainer.style.width);y=mxEvent.getClientX(I);t.popupMenuHandler.hideMenu();mxEvent.consume(I)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(I){var U=!1;null!=y&&(this.diagramContainer.style.width=Math.max(20,J+mxEvent.getClientX(I)-y)+"px",U=!0);null!=B&&(this.diagramContainer.style.height=Math.max(20,K+mxEvent.getClientY(I)-B)+"px",U=!0);U&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize", +fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(I){null==y&&null==B||mxEvent.consume(I);B=y=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden";this.sketchMenubarElt.style.display="none";g.style.visibility="hidden";d.style.visibility="hidden";m.style.display="none"; +this.addListener("editInlineStart",mxUtils.bind(this,function(I){this.inlineSizeChanged();this.fitWindows()}));this.addListener("darkModeChanged",mxUtils.bind(this,function(I){Editor.enableCssDarkMode||this.inlineSizeChanged()}));this.addListener("editInlineStop",mxUtils.bind(this,function(I){this.diagramContainer.style.width="10px";this.diagramContainer.style.height="10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";this.rightResizer.style.visibility="hidden"; +g.style.visibility="hidden";d.style.visibility="hidden";m.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var d=this.editor.graph;d.container.addEventListener("paste",mxUtils.bind(this,function(g){if(!mxEvent.isConsumed(g))try{for(var m=g.clipboardData||g.originalEvent.clipboardData,t=!1,v=0;v',g=!0)}this.statusContainer.style.display="none";t=32>=d.clientWidth;d.style.visibility=t&&""==this.editor.getStatus()?"hidden":"";if(t||g)this.statusContainer.style.display="inline-flex",g=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="inline-flex",this.statusContainer.style.display=0==this.statusContainer.clientWidth? +"none":"inline-flex"):this.statusContainer.style.display="inline-flex"});this.editor.addListener("statusChanged",m);m()};EditorUi.prototype.switchTheme=function(d){this.isDefaultTheme(d)&&null!=this.formatContainer&&(this.formatContainer.style.left="",this.formatContainer.style.zIndex="1",this.formatContainer.style.border="",null!=this.footerContainer&&this.footerContainer.parentNode!=this.formatContainer.parentNode&&this.footerContainer.parentNode.insertBefore(this.formatContainer,this.footerContainer), +null!=this.sidebarContainer&&this.formatContainer.parentNode!=this.sidebarContainer.parentNode&&this.formatContainer.parentNode.insertBefore(this.sidebarContainer,this.formatContainer));this.destroyWindows();this.updateUserElement();this.updateDefaultStyles();this.switchThemeConstants(d);this.switchCssForTheme(d);this.createWrapperForTheme(d);this.createMainMenuForTheme(d);this.createFooterMenuForTheme(d);this.createPickerMenuForTheme(d);this.createMenubarForTheme(d);this.sidebarContainer.style.display= +"";if("sketch"==d){this.createFormatWindow();this.formatContainer.style.left="0px";this.formatContainer.style.top="0px";this.formatContainer.style.width="";this.formatContainer.style.zIndex="";this.formatContainer.style.border="none";var g=Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries);this.createShapesWindow();this.sidebarContainer.className="";this.sidebarContainer.style.position="absolute";this.sidebarContainer.style.left="0px";this.sidebarContainer.style.top="0px"; +this.sidebarContainer.style.bottom=g?"32px":"0px";this.sidebarContainer.style.width="100%"}null!=this.format&&(d=this.isDefaultTheme(d)||"atlas"==d,this.format.showCloseButton!=d&&(this.format.showCloseButton=d,this.format.refresh()))};EditorUi.prototype.getWindows=function(){var d=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(d=d.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(d=d.concat([this.menus.tagsWindow,this.menus.findWindow, +this.menus.findReplaceWindow,this.menus.commentsWindow]));return d};EditorUi.prototype.fitWindows=function(){for(var d=this.getWindows(),g=0;g(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>d)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var u=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(d){var g=this.formatWindow;null!=g?g.window.setVisible(null!=d?d:!this.isFormatPanelVisible()):u.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel= +function(d){if(this.isShapesPanelVisible()!=d){var g=EditorUi.prototype.hsplitPosition;0==g&&(g=this.defaultSidebarWidth);var m=this.hsplitPosition,t=mxUtils.bind(this,function(){this.hsplitPosition=v;this.refresh();this.diagramContainer.scrollLeft-=m-this.hsplitPosition}),v=d?g:0;mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==v?"translateX(0)":"translateX(-100%)");0!=v&&t();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform", +0==v?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin",null);0==v&&t()}), +300)}),10)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(d,g,m){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this, -function(t,v){try{this.spinner.stop();var y=this.createImageDataUri(t,g,"png"),B=parseInt(v.getAttribute("width")),J=parseInt(v.getAttribute("height"));this.writeImageToClipboard(y,B,J,mxUtils.bind(this,function(K){this.handleError(K)}))}catch(K){this.handleError(K)}}),null,null,null,mxUtils.bind(this,function(t){this.spinner.stop();this.handleError(t)}),null,null,null!=m?m:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0"==v.textContent.substring(v.textContent.length-9)||""==v.textContent.substring(v.textContent.length- -15)?v.textContent.replace(/\u00a0/g," "):v.innerHTML:mxUtils.trim(null==v.innerText?mxUtils.getTextContent(v):v.innerText);try{var Q=U.lastIndexOf("%3E");0<=Q&&Q'), -ka.writeln("@media print {"),ka.writeln(".MathJax svg { shape-rendering: crispEdges; }"),ka.writeln("}"),ka.writeln(""));null!=m.fontCss&&(ka.writeln('"));for(var fa=l.getCustomFonts(),ma=0;ma'): -(ka.writeln('"))}};if(Editor.enableCssDarkMode){var ja=x.getBackgroundImage;x.getBackgroundImage=function(){return t.adaptBackgroundPage(ja.apply(this,arguments))}}if(Editor.replaceSvgDataUris){var oa=x.drawBackgroundImage;x.drawBackgroundImage=function(ka){oa.apply(this,arguments);null!=ka.node&&(EditorUi.embedSvgImages(ka.node),t.disableSvgLinks(ka.node, -function(fa){fa.setAttribute("href","javascript:void(0)")}))}}var va=x.addGraphFragment;x.addGraphFragment=function(ka,fa,ma,sa,ua,ra){va.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:ua.classList.add("geDisableMathJax")};ca=null;Y=t.shapeForegroundColor;Z=t.shapeBackgroundColor;null!=t.themes&&"darkTheme"==t.defaultThemeName&&(ca=t.stylesheet,t.stylesheet=t.getDefaultStylesheet(),t.shapeForegroundColor="#000000",t.shapeBackgroundColor="#ffffff",t.refresh());g.grid&& -(x.gridSize=l.gridSize,x.gridSteps=l.view.gridSteps,x.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:l.view.gridColor);x.open(null,null,D,!0,N,aa,g.selection?l.getSelectionCells():null);null!=ca&&(t.shapeForegroundColor=Y,t.shapeBackgroundColor=Z,t.stylesheet=ca,t.refresh())}else{ca=l.background;if(null==ca||""==ca||ca==mxConstants.NONE)ca="#ffffff";x.backgroundColor=ca;x.autoOrigin=ha;g.grid&&(x.gridSize=l.gridSize,x.gridSteps=l.view.gridSteps,x.gridColor=Editor.isDarkMode()? -mxGraphView.prototype.defaultGridColor:l.view.gridColor);x.appendGraph(l,da,Y,Z,D,!0,N,aa,g.selection?l.getSelectionCells():null);D=l.getCustomFonts();if(null!=x.wnd)for(aa=0;aa'):(x.wnd.document.writeln('"))}P&&(l.useCssTransforms=P,l.currentTranslate=R,l.currentScale=T,l.view.translate=V,l.view.scale=W);return x}),I=g.pagesFrom,U=g.pagesTo,Q=!g.allPages,O=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,g);else{Q&&(Q=g.selection||I==y&&U==y);if(!Q&&null!=this.pages&&this.pages.length){Q=0;y=this.pages.length-1;g.allPages||(Q=parseInt(I)-1,y=parseInt(U)-1);for(var p=Q;p<=y;p++){var z=this.pages[p];I=z==this.currentPage? -t:null;if(null==I){I=this.createTemporaryGraph(t.stylesheet);I.shapeForegroundColor=t.shapeForegroundColor;I.shapeBackgroundColor=t.shapeBackgroundColor;U=!0;Q=!1;var A=null,C=null;null==z.viewState&&null==z.root&&this.updatePageRoot(z);null!=z.viewState&&(U=z.viewState.pageVisible,Q=z.viewState.mathEnabled,A=z.viewState.background,C=z.viewState.backgroundImage,I.pageFormat=z.viewState.pageFormat,I.gridSize=z.viewState.gridSize);null!=C&&null!=C.originalSrc&&(C=this.createImageForPageLink(C.originalSrc, -z));I.background=A;I.backgroundImage=null!=C?new mxImage(C.src,C.width,C.height,C.x,C.y):null;I.pageVisible=U;I.mathEnabled=Q;var M=I.getGraphBounds;I.getGraphBounds=function(){var l=M.apply(this,arguments),x=this.backgroundImage;if(null!=x&&null!=x.width&&null!=x.height){var D=this.view.translate,N=this.view.scale;l=mxRectangle.fromRectangle(l);l.add(new mxRectangle((D.x+x.x)*N,(D.y+x.y)*N,x.width*N,x.height*N))}return l};var S=I.getGlobalVariable;I.getGlobalVariable=function(l){return"page"==l? -z.getName():"pagenumber"==l?p+1:"pagecount"==l?null!=this.pages?this.pages.length:1:S.apply(this,arguments)};document.body.appendChild(I.container);this.updatePageRoot(z);I.model.setRoot(z.root)}O=K(I,O,p!=y,z.getId());I!=t&&I.container.parentNode.removeChild(I.container)}}else O=K(t);null==O||null==O.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(O.mathEnabled&&(K=O.wnd.document,d||(O.wnd.IMMEDIATE_PRINT=!0),K.writeln('