From 12676ea9af3d758865cd40e434a1d616a4b86504 Mon Sep 17 00:00:00 2001 From: David Benson Date: Tue, 13 Feb 2024 12:00:56 +0000 Subject: [PATCH] 23.1.4 release --- ChangeLog | 5 + VERSION | 2 +- src/main/webapp/js/app.min.js | 993 ++++++++--------- src/main/webapp/js/diagramly/EditorUi.js | 93 +- src/main/webapp/js/integrate.min.js | 1301 +++++++++++----------- src/main/webapp/js/viewer-static.min.js | 99 +- src/main/webapp/js/viewer.min.js | 99 +- src/main/webapp/mxgraph/mxClient.js | 2 +- src/main/webapp/service-worker.js | 2 +- src/main/webapp/service-worker.js.map | 2 +- 10 files changed, 1333 insertions(+), 1265 deletions(-) diff --git a/ChangeLog b/ChangeLog index 11ea9972d..e192a240c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +13-FEB-2024: 23.1.4 + +- Fixes CSS scope in SVG sub-trees [drawio-4119] +- Fixes possible XSS for init-editor [CSP-2954] + 12-FEB-2024: 23.1.3 - [conf cloud] Added support for Gliffy pinned versions & display name in mass import [DID-10522] diff --git a/VERSION b/VERSION index 0501661ba..0fb207577 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -23.1.3 \ No newline at end of file +23.1.4 \ 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 713b48fa0..c16bbedb4 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -146,7 +146,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);window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,ADD_ATTR:["target","content"]};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:"23.1.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/"), +window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"23.1.4",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|| @@ -11276,8 +11276,8 @@ RemoteLibrary.prototype.saveAs=function(b,e,f){};RemoteLibrary.prototype.updateF var StorageDialog=function(b,e,f){function c(M,I,d,g,m,t){function u(){mxEvent.addListener(y,"click",null!=t?t:function(){d==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(d,!0);e()})):d==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(d,!0);e()}),function(V){b.spinner.stop();b.handleError(V)}): (b.setMode(d,!0),e())})}v++;++q>f&&(mxUtils.br(D),q=1);var y=document.createElement("a");y.style.overflow="hidden";y.style.display="inline-block";y.className="geBaseButton";y.style.boxSizing="border-box";y.style.fontSize="11px";y.style.position="relative";y.style.margin="4px";y.style.marginTop="8px";y.style.marginBottom="0px";y.style.padding="8px 10px 8px 10px";y.style.width="88px";y.style.height="100px";y.style.whiteSpace="nowrap";y.setAttribute("title",I);var A=document.createElement("div");A.style.textOverflow= "ellipsis";A.style.overflow="hidden";A.style.position="absolute";A.style.bottom="8px";A.style.left="0px";A.style.right="0px";mxUtils.write(A,I);y.appendChild(A);if(null!=M){var F=document.createElement("img");F.setAttribute("src",M);F.setAttribute("border","0");F.setAttribute("align","absmiddle");F.style.width="60px";F.style.height="60px";F.style.paddingBottom="6px";y.appendChild(F)}else A.style.paddingTop="5px",A.style.whiteSpace="normal",mxClient.IS_IOS?(y.style.padding="0px 10px 20px 10px",y.style.top= -"6px"):mxClient.IS_FF&&(A.style.paddingTop="0px",A.style.marginTop="-2px");if(null!=m)for(M=0;Me.length&&(I=mxUtils.button("",function(){try{var d="mailto:?subject="+encodeURIComponent(D||b.defaultFilename)+"&body="+encodeURIComponent(B.value);b.openLink(d)}catch(g){b.handleError({message:g.message||mxResources.get("drawingTooLarge")})}}),v=document.createElement("img"),v.className="geAdaptiveAsset",v.setAttribute("src",Editor.mailImage),v.setAttribute("width","18"),v.setAttribute("height","18"),v.setAttribute("border","0"),v.style.marginBottom= "5px",I.appendChild(v),I.style.verticalAlign="bottom",I.style.paddingTop="4px",I.style.minWidth="46px",I.className="geBtn",l.appendChild(I));v=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});l.appendChild(v);I=mxUtils.button(mxResources.get("copy"),function(){B.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?B.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");b.alert(mxResources.get("copiedToClipboard"))});5E5>e.length?mxClient.IS_SF|| null!=document.documentMode?v.className="geBtn gePrimaryBtn":(l.appendChild(I),I.className="geBtn gePrimaryBtn",v.className="geBtn"):null!=M&&(l.appendChild(M),v.className="geBtn",M.className="geBtn gePrimaryBtn");c.appendChild(l);this.container=c};EmbedDialog.showPreviewOption=!0; -var GoogleSitesDialog=function(b,e){function f(){var V=null!=H&&null!=H.getTitle()?H.getTitle():this.defaultFilename;if(F.checked&&""!=I.value){var R="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(I.value));null!=V&&(R+="&title="+encodeURIComponent(V));0 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==d&&"svg"==A?window.setTimeout(function(){b.spinner.stop();u(d,A,"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBjb250ZW50U2NyaXB0VHlwZT0iYXBwbGljYXRpb24vZWNtYXNjcmlwdCIgY29udGVudFN0eWxlVHlwZT0idGV4dC9jc3MiIGhlaWdodD0iMjEycHgiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHN0eWxlPSJ3aWR0aDoyOTVweDtoZWlnaHQ6MjEycHg7IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyOTUgMjEyIiB3aWR0aD0iMjk1cHgiIHpvb21BbmRQYW49Im1hZ25pZnkiPjxkZWZzLz48Zz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogNS4wLDUuMDsiIHgxPSIzMSIgeDI9IjMxIiB5MT0iMzQuNDg4MyIgeTI9IjE3MS43MzA1Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDUuMCw1LjA7IiB4MT0iMjY0LjUiIHgyPSIyNjQuNSIgeTE9IjM0LjQ4ODMiIHkyPSIxNzEuNzMwNSIvPjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjU7IiB3aWR0aD0iNDciIHg9IjgiIHk9IjMiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIzMyIgeD0iMTUiIHk9IjIzLjUzNTIiPkFsaWNlPC90ZXh0PjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjU7IiB3aWR0aD0iNDciIHg9IjgiIHk9IjE3MC43MzA1Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTQiIGxlbmd0aEFkanVzdD0ic3BhY2luZ0FuZEdseXBocyIgdGV4dExlbmd0aD0iMzMiIHg9IjE1IiB5PSIxOTEuMjY1NiI+QWxpY2U8L3RleHQ+PHJlY3QgZmlsbD0iI0ZFRkVDRSIgaGVpZ2h0PSIzMC40ODgzIiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuNTsiIHdpZHRoPSI0MCIgeD0iMjQ0LjUiIHk9IjMiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIyNiIgeD0iMjUxLjUiIHk9IjIzLjUzNTIiPkJvYjwvdGV4dD48cmVjdCBmaWxsPSIjRkVGRUNFIiBoZWlnaHQ9IjMwLjQ4ODMiIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS41OyIgd2lkdGg9IjQwIiB4PSIyNDQuNSIgeT0iMTcwLjczMDUiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIyNiIgeD0iMjUxLjUiIHk9IjE5MS4yNjU2Ij5Cb2I8L3RleHQ+PHBvbHlnb24gZmlsbD0iI0E4MDAzNiIgcG9pbnRzPSIyNTIuNSw2MS43OTg4LDI2Mi41LDY1Ljc5ODgsMjUyLjUsNjkuNzk4OCwyNTYuNSw2NS43OTg4IiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiLz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiIHgxPSIzMS41IiB4Mj0iMjU4LjUiIHkxPSI2NS43OTg4IiB5Mj0iNjUuNzk4OCIvPjx0ZXh0IGZpbGw9IiMwMDAwMDAiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIiBmb250LXNpemU9IjEzIiBsZW5ndGhBZGp1c3Q9InNwYWNpbmdBbmRHbHlwaHMiIHRleHRMZW5ndGg9IjE0NyIgeD0iMzguNSIgeT0iNjEuMDU2NiI+QXV0aGVudGljYXRpb24gUmVxdWVzdDwvdGV4dD48cG9seWdvbiBmaWxsPSIjQTgwMDM2IiBwb2ludHM9IjQyLjUsOTEuMTA5NCwzMi41LDk1LjEwOTQsNDIuNSw5OS4xMDk0LDM4LjUsOTUuMTA5NCIgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDIuMCwyLjA7IiB4MT0iMzYuNSIgeDI9IjI2My41IiB5MT0iOTUuMTA5NCIgeTI9Ijk1LjEwOTQiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMyIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIxNTciIHg9IjQ4LjUiIHk9IjkwLjM2NzIiPkF1dGhlbnRpY2F0aW9uIFJlc3BvbnNlPC90ZXh0Pjxwb2x5Z29uIGZpbGw9IiNBODAwMzYiIHBvaW50cz0iMjUyLjUsMTIwLjQxOTksMjYyLjUsMTI0LjQxOTksMjUyLjUsMTI4LjQxOTksMjU2LjUsMTI0LjQxOTkiIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS4wOyIvPjxsaW5lIHN0eWxlPSJzdHJva2U6ICNBODAwMzY7IHN0cm9rZS13aWR0aDogMS4wOyIgeDE9IjMxLjUiIHgyPSIyNTguNSIgeTE9IjEyNC40MTk5IiB5Mj0iMTI0LjQxOTkiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxMyIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nQW5kR2x5cGhzIiB0ZXh0TGVuZ3RoPSIxOTkiIHg9IjM4LjUiIHk9IjExOS42Nzc3Ij5Bbm90aGVyIGF1dGhlbnRpY2F0aW9uIFJlcXVlc3Q8L3RleHQ+PHBvbHlnb24gZmlsbD0iI0E4MDAzNiIgcG9pbnRzPSI0Mi41LDE0OS43MzA1LDMyLjUsMTUzLjczMDUsNDIuNSwxNTcuNzMwNSwzOC41LDE1My43MzA1IiBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsiLz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogMi4wLDIuMDsiIHgxPSIzNi41IiB4Mj0iMjYzLjUiIHkxPSIxNTMuNzMwNSIgeTI9IjE1My43MzA1Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTMiIGxlbmd0aEFkanVzdD0ic3BhY2luZ0FuZEdseXBocyIgdGV4dExlbmd0aD0iMjA5IiB4PSI0OC41IiB5PSIxNDguOTg4MyI+QW5vdGhlciBhdXRoZW50aWNhdGlvbiBSZXNwb25zZTwvdGV4dD48IS0tTUQ1PVs3ZjNlNGQwYzkwMWVmZGJjNTdlYjQ0MjQ5YTNiODE5N10KQHN0YXJ0dW1sDQpza2lucGFyYW0gc2hhZG93aW5nIGZhbHNlDQpBbGljZSAtPiBCb2I6IEF1dGhlbnRpY2F0aW9uIFJlcXVlc3QNCkJvYiAtIC0+IEFsaWNlOiBBdXRoZW50aWNhdGlvbiBSZXNwb25zZQ0KDQpBbGljZSAtPiBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVxdWVzdA0KQWxpY2UgPC0gLSBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVzcG9uc2UNCkBlbmR1bWwNCgpQbGFudFVNTCB2ZXJzaW9uIDEuMjAyMC4wMihTdW4gTWFyIDAxIDA0OjIyOjA3IENTVCAyMDIwKQooTUlUIHNvdXJjZSBkaXN0cmlidXRpb24pCkphdmEgUnVudGltZTogT3BlbkpESyBSdW50aW1lIEVudmlyb25tZW50CkpWTTogT3BlbkpESyA2NC1CaXQgU2VydmVyIFZNCkphdmEgVmVyc2lvbjogMTIrMzMKT3BlcmF0aW5nIFN5c3RlbTogTWFjIE9TIFgKRGVmYXVsdCBFbmNvZGluZzogVVRGLTgKTGFuZ3VhZ2U6IGVuCkNvdW50cnk6IFVTCi0tPjwvZz48L3N2Zz4=", 295,212)},200):b.generatePlantUmlImage(d,A,function(N,U,p){b.spinner.stop();u(d,A,N,U,p)},function(N){b.handleError(N)})}}else if("mermaid"==g||"mermaid2drawio"==g){if(b.spinner.spin(document.body,mxResources.get("inserting"))){for(var F=0;F");2<=O.length&&(x=G(O[0]),C=G(O[O.length-1]),O=new mxCell(2");2<=O.length&&(x=H(O[0]),C=H(O[O.length-1]),O=new mxCell(2 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":"plantUmlSvg"==v.value||"plantUmlTxt"==v.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml": ";Example:\na->b\nb->edge label->c\nc->a\n"}var l=b.editor.graph.getFreeInsertPoint();e=document.createElement("div");e.style.textAlign="right";var q=document.createElement("textarea");q.style.boxSizing="border-box";q.style.resize="none";q.style.width="100%";q.style.height="354px";q.style.marginBottom="16px";var v=document.createElement("select");v.className="geBtn";if("formatSql"==f||"mermaid"==f&&"draw.io"!=b.getServiceName()&&"atlassian"!=b.getServiceName())v.style.display="none";var D=document.createElement("option"); @@ -11365,7 +11365,7 @@ Graph.fileSupport&&(q.addEventListener("dragover",function(d){d.stopPropagation( function(){b.openLink("mermaid"==f?"https://mermaid-js.github.io/mermaid/#/":"https://plantuml.com/")}),D.className="geBtn",e.appendChild(D));D=mxUtils.button(mxResources.get("close"),function(){q.value==I?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});D.className="geBtn";b.editor.cancelFirst&&e.appendChild(D);E=mxUtils.button(mxResources.get("insert"),function(d){try{b.hideDialog(),c(q.value,v.value,d)}catch(g){b.handleError(g)}});E.className="geBtn gePrimaryBtn"; e.appendChild(E);b.editor.cancelFirst||e.appendChild(D);this.container=e},NewDialog=function(b,e,f,c,k,l,q,v,D,E,B,M,I,d,g,m,t,u){function y(fa){null!=fa&&(qa=ya=fa?135:140);fa=!0;if(null!=Ha)for(;O";if(Ea||"undefined"===typeof mxMermaidToDrawio)na=ba=wa;wa=p.cloneNode(!0);sa.appendChild(wa);Oa=function(La){P=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};Ka=function(La){P||A(Sa,mxEvent.getClientX(La), mxEvent.getClientY(La),Xa,Ca)};mxEvent.addGestureListeners(Xa,Oa,null,Ka);mxEvent.addGestureListeners(wa,Oa,null,Ka)},function(wa){mxMermaidToDrawio.resetListeners();b.handleError(wa)})});Ma.setAttribute("disabled","disabled");Ma.className="geBtn gePrimaryBtn";ua=function(){window.setTimeout(function(){""!=ra.value?Ma.removeAttribute("disabled"):Ma.setAttribute("disabled","disabled")},0)};xa=urlParams["smart-template"];null!=xa&&"1"!=xa&&(ra.value=decodeURIComponent(xa),ua(),"1"==urlParams["smart-template-generate"]&& window.setTimeout(function(){Ma.click()},0));mxEvent.addListener(ra,"change",ua);mxEvent.addListener(ra,"keydown",ua);mxEvent.addListener(ra,"cut",ua);mxEvent.addListener(ra,"paste",ua);mxEvent.addListener(ra,"keydown",function(Ta){13==Ta.keyCode&&Ma.click()});ua=document.createElement("div");ua.style.height="40px";ua.style.marginTop="4px";ua.style.marginBottom="4px";ua.style.whiteSpace="nowrap";ua.style.overflowX="auto";ua.style.overflowY="hidden";ua.appendChild(ta);ua.appendChild(Ma);fa.appendChild(ua); -fa.appendChild(sa);return fa}function L(){if(ja&&null!=d)f||b.hideDialog(),d(ja,ka,K.value);else if(c)f||b.hideDialog(),c(ba,K.value,ca,aa);else{var fa=K.value;null!=fa&&0=Wa.getStatus()&&(Oa=Wa.getText());Qa(Oa,Ka)}))):Qa(Oa,Ka)}function Ca(Pa,Qa){if(null== fa||z||b.sidebar.currentElt==wa)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=J){var Wa=""+Graph.compress('')+"";A(Wa,mxEvent.getClientX(Pa),mxEvent.getClientY(Pa),sa,fa)}else b.sidebar.currentElt= wa,z=!0,Ea(fa,function(Va){if(z&&b.sidebar.currentElt==wa)try{A(Va,mxEvent.getClientX(Pa),mxEvent.getClientY(Pa),wa,Qa)}catch(ab){b.sidebar.currentElt=null,b.handleError(ab)}z=!1})}var wa=document.createElement("div");wa.className="geTemplate geAdaptiveAsset";wa.style.position="relative";wa.style.height=qa+"px";wa.style.width=ya+"px";wa.style.border="1px solid transparent";var Oa=null,Ka=fa;null!=sa?wa.setAttribute("title",mxResources.get(sa,null,sa)):null!=ua&&0= la.scrollHeight&&(y(),mxEvent.consume(Ca))}));if(0(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);f=null!=f?f:!0;k=null!=k?k:!1;q=null!=q?q:Editor.isDarkMode()?Editor.darkColor:"#ebf2f9";v=null!=v?v:Editor.isDarkMode()?"#fff":"#e6eff8";D=null!=D?D:Editor.isDarkMode()?"1px dashed #00a8ff":"1px solid #ccd9ea";B=null!=B?B:EditorUi.templateFile;var x=document.createElement("div");x.style.userSelect="none";x.style.height="100%";var G=document.createElement("div");G.style.whiteSpace="nowrap";G.style.height= -"46px";f&&x.appendChild(G);var C=document.createElement("img");C.setAttribute("border","0");C.setAttribute("align","absmiddle");C.style.width="40px";C.style.height="40px";C.style.marginRight="10px";C.style.paddingBottom="4px";C.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":b.mode==App.MODE_GITHUB?IMAGE_PATH+"/github-logo.svg":b.mode==App.MODE_GITLAB?IMAGE_PATH+"/gitlab-logo.svg": -b.mode==App.MODE_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";e||n||!f||G.appendChild(C);f&&mxUtils.write(G,(n?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");C=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?C=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?C=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&& +var n=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);f=null!=f?f:!0;k=null!=k?k:!1;q=null!=q?q:Editor.isDarkMode()?Editor.darkColor:"#ebf2f9";v=null!=v?v:Editor.isDarkMode()?"#fff":"#e6eff8";D=null!=D?D:Editor.isDarkMode()?"1px dashed #00a8ff":"1px solid #ccd9ea";B=null!=B?B:EditorUi.templateFile;var x=document.createElement("div");x.style.userSelect="none";x.style.height="100%";var H=document.createElement("div");H.style.whiteSpace="nowrap";H.style.height= +"46px";f&&x.appendChild(H);var C=document.createElement("img");C.setAttribute("border","0");C.setAttribute("align","absmiddle");C.style.width="40px";C.style.height="40px";C.style.marginRight="10px";C.style.paddingBottom="4px";C.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":b.mode==App.MODE_GITHUB?IMAGE_PATH+"/github-logo.svg":b.mode==App.MODE_GITLAB?IMAGE_PATH+"/gitlab-logo.svg": +b.mode==App.MODE_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";e||n||!f||H.appendChild(C);f&&mxUtils.write(H,(n?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");C=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?C=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?C=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&& null!=b.oneDrive?C=b.oneDrive.extension:b.mode==App.MODE_GITHUB&&null!=b.gitHub?C=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?C=b.gitLab.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(C=b.trello.extension);var K=document.createElement("input");K.setAttribute("value",b.defaultFilename+C);K.style.marginLeft="10px";K.style.width=e||n?"144px":"244px";this.init=function(){f&&Editor.selectFilename(K);null!=la.parentNode&&null!=la.parentNode.parentNode&&mxEvent.addGestureListeners(la.parentNode.parentNode, -mxUtils.bind(this,function(fa){b.sidebar.hideTooltip()}),null,null)};f&&(G.appendChild(K),u?K.style.width=e||n?"350px":"450px":null!=b.editor.diagramFileTypes&&(u=FilenameDialog.createFileTypes(b,K,b.editor.diagramFileTypes),u.style.marginLeft="6px",u.style.width=e||n?"80px":"180px",G.appendChild(u)));n=!1;var O=0,N=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),U=mxUtils.button(m||mxResources.get("create"),function(){U.setAttribute("disabled", +mxUtils.bind(this,function(fa){b.sidebar.hideTooltip()}),null,null)};f&&(H.appendChild(K),u?K.style.width=e||n?"350px":"450px":null!=b.editor.diagramFileTypes&&(u=FilenameDialog.createFileTypes(b,K,b.editor.diagramFileTypes),u.style.marginLeft="6px",u.style.width=e||n?"80px":"180px",H.appendChild(u)));n=!1;var O=0,N=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),U=mxUtils.button(m||mxResources.get("create"),function(){U.setAttribute("disabled", "disabled");L();U.removeAttribute("disabled")});U.className="geBtn gePrimaryBtn";var p=document.createElement("img");p.setAttribute("src",Editor.magnifyImage);p.setAttribute("title",mxResources.get("preview"));p.className="geAdaptiveAsset geActiveButton";p.style.position="absolute";p.style.cursor="default";p.style.padding="6px";p.style.opacity="0.5";p.style.height="16px";p.style.right="0px";p.style.top="0px";var z=!1,J=null,P=!1;if(M||I){var Q=[],T=null,S=null,W=null,X=function(fa){U.setAttribute("disabled", -"disabled");for(var ra=0;ramxUtils.indexOf(c,G))if(N=null!=N?N:b.getTitleForService(G),0<=mxUtils.indexOf(H,G)||null!=b.getServiceForName(G)){p=document.createElement("option");if("pick"==U)p.innerHTML=mxUtils.htmlEntities(N)+"  –  "+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"...",p.setAttribute("value","pickFolder-"+G),p.setAttribute("title",N+" - "+mxResources.get("pickFolder")+"...");else{var z=G+(null!= -K?"-"+K:""),J=n[z];null!=J&&null!=J.option&&J.option.parentNode.removeChild(J.option);J=null;if(null!=C){"/"==C.charAt(C.length-1)&&(C=C.substring(0,C.length-1));"/"==C.charAt(0)&&(C=C.substring(1));J=C;if(G!=App.MODE_GITHUB&&G==App.MODE_GITLAB){var P=J.lastIndexOf("/");0<=P&&(J=J.substring(P+1))}40F.selectedIndex&&(F.selectedIndex=K))},!0,!0,!0,!0)}function E(){var G=b.getRecent("Folders"),C=0;if(null!=G&&0e.indexOf(".")&&0>C.indexOf(".")&&(y.value=C+G)}x.innerHTML="";mxUtils.write(x,mxResources.get("download"==F.value||"_blank"==F.value?"ok":"save"));""==F.value?x.setAttribute("disabled","disabled"):x.removeAttribute("disabled")}var M=document.createElement("div");M.style.display="flex";M.style.flexWrap="wrap";M.style.whiteSpace="nowrap";var I=document.createElement("div"); +var SaveDialog=function(b,e,f,c,k,l,q){function v(H,C,K,O,N,U){var p=null;if(null==c||0>mxUtils.indexOf(c,H))if(N=null!=N?N:b.getTitleForService(H),0<=mxUtils.indexOf(G,H)||null!=b.getServiceForName(H)){p=document.createElement("option");if("pick"==U)p.innerHTML=mxUtils.htmlEntities(N)+"  –  "+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"...",p.setAttribute("value","pickFolder-"+H),p.setAttribute("title",N+" - "+mxResources.get("pickFolder")+"...");else{var z=H+(null!= +K?"-"+K:""),J=n[z];null!=J&&null!=J.option&&J.option.parentNode.removeChild(J.option);J=null;if(null!=C){"/"==C.charAt(C.length-1)&&(C=C.substring(0,C.length-1));"/"==C.charAt(0)&&(C=C.substring(1));J=C;if(H!=App.MODE_GITHUB&&H==App.MODE_GITLAB){var P=J.lastIndexOf("/");0<=P&&(J=J.substring(P+1))}40F.selectedIndex&&(F.selectedIndex=K))},!0,!0,!0,!0)}function E(){var H=b.getRecent("Folders"),C=0;if(null!=H&&0e.indexOf(".")&&0>C.indexOf(".")&&(y.value=C+H)}x.innerHTML="";mxUtils.write(x,mxResources.get("download"==F.value||"_blank"==F.value?"ok":"save"));""==F.value?x.setAttribute("disabled","disabled"):x.removeAttribute("disabled")}var M=document.createElement("div");M.style.display="flex";M.style.flexWrap="wrap";M.style.whiteSpace="nowrap";var I=document.createElement("div"); I.style.display="grid";I.style.gap="5px 8px";I.style.gridAutoRows="auto auto 44px";I.style.gridAutoColumns="0fr minmax(0,1fr)";I.style.width="100%";var d=null,g=null;if(null!=k&&null!=l&&"image/"==l.substring(0,6)&&("image/svg"!=l.substring(0,9)||mxClient.IS_SVG)){I.style.display="inline-grid";I.style.flexBasis="75%";d=document.createElement("div");d.style.display="inline-block";d.style.height="auto";d.style.maxWidth="25%";d.style.margin="auto";var m=document.createElement("img"),t=q?k:btoa(unescape(encodeURIComponent(k))); -m.setAttribute("src","data:"+l+";base64,"+t);m.style.boxSizing="border-box";m.style.maxHeight="50px";m.style.maxWidth="100%";m.style.paddingLeft="10px";d.appendChild(m);mxClient.IS_FF||"image/png"!=l||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(g=mxUtils.button(mxResources.get("copy"),function(){var G=b.base64ToBlob(t,"image/png");G=new ClipboardItem({"image/png":G,"text/html":new Blob([''],{type:"text/html"})});navigator.clipboard.write([G]).then(mxUtils.bind(this, -function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(C){b.handleError(C)}))},null,"geBtn"));Editor.popupsAllowed&&(null==c||0>mxUtils.indexOf(c,"_blank"))?(d.setAttribute("title",mxResources.get("openInNewWindow")),d.style.cursor="pointer",mxEvent.addGestureListeners(d,null,null,function(G){mxEvent.isPopupTrigger(G)||b.openInNewWindow(k,l,q)})):d.setAttribute("title",mxResources.get("preview"))}m=document.createElement("div");m.style.display="flex";m.style.padding= +m.setAttribute("src","data:"+l+";base64,"+t);m.style.boxSizing="border-box";m.style.maxHeight="50px";m.style.maxWidth="100%";m.style.paddingLeft="10px";d.appendChild(m);mxClient.IS_FF||"image/png"!=l||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(g=mxUtils.button(mxResources.get("copy"),function(){var H=b.base64ToBlob(t,"image/png");H=new ClipboardItem({"image/png":H,"text/html":new Blob([''],{type:"text/html"})});navigator.clipboard.write([H]).then(mxUtils.bind(this, +function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(C){b.handleError(C)}))},null,"geBtn"));Editor.popupsAllowed&&(null==c||0>mxUtils.indexOf(c,"_blank"))?(d.setAttribute("title",mxResources.get("openInNewWindow")),d.style.cursor="pointer",mxEvent.addGestureListeners(d,null,null,function(H){mxEvent.isPopupTrigger(H)||b.openInNewWindow(k,l,q)})):d.setAttribute("title",mxResources.get("preview"))}m=document.createElement("div");m.style.display="flex";m.style.padding= "1px";m.style.alignItems="center";m.style.justifyContent="flex-end";m.style.gridColumn="1";m.style.whiteSpace="nowrap";var u=document.createElement("div");u.style.display="grid";u.style.padding="1px";u.style.alignItems="center";u.style.gridColumn="2";u.style.gridAutoColumns="minmax(0,1fr) auto";u.style.gap="6px";mxUtils.write(m,mxResources.get("saveAs")+":");var y=document.createElement("input");y.setAttribute("type","text");y.setAttribute("value",e);y.style.boxSizing="border-box";y.style.width="100%"; u.appendChild(y);I.appendChild(m);I.appendChild(u);var A=null;null!=b.editor.diagramFileTypes&&null==l&&(m=m.cloneNode(!1),u=u.cloneNode(!1),mxUtils.write(m,mxResources.get("type")+":"),A=FilenameDialog.createFileTypes(b,y,b.editor.diagramFileTypes),A.style.boxSizing="border-box",A.style.width="100%",u.appendChild(A),I.appendChild(m),I.appendChild(u));m=m.cloneNode(!1);u=u.cloneNode(!1);mxUtils.write(m,mxResources.get("where")+":");var F=document.createElement("select");F.style.textOverflow="ellipsis"; -F.style.gridColumn="1";var L=document.createElement("option");mxUtils.write(L,mxResources.get("reset"));L.setAttribute("value","reset");var H=["browser","device","download","_blank"],V=document.createElement("option");V.setAttribute("disabled","disabled");V.innerHTML="-----------------";var R=null,n={},x=mxUtils.button(mxResources.get("save"),function(){SaveDialog.lastValue=F.value;var G=n[SaveDialog.lastValue];null!=G&&f(y,G.mode,G.id)},null,"geBtn gePrimaryBtn");mxEvent.addListener(y,"keypress", -function(G){13==G.keyCode&&x.click()});mxEvent.addListener(F,"change",B);E();B();u.appendChild(F);null!=SaveDialog.lastValue&&null!=n[SaveDialog.lastValue]&&(F.value=SaveDialog.lastValue);I.appendChild(m);I.appendChild(u);M.appendChild(I);null!=d&&M.appendChild(d);I=document.createElement("div");I.style.flexBasis="100%";I.style.textAlign="right";I.style.marginTop=null!=l?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||I.appendChild(mxUtils.button(mxResources.get("help"),function(){b.openLink("https://www.drawio.com/doc/faq/save-file-formats")}, -null,"geBtn"));d=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&I.appendChild(d);null!=g&&I.appendChild(g);I.appendChild(x);b.editor.cancelFirst||I.appendChild(d);M.appendChild(I);this.init=function(){Editor.selectFilename(y)};this.container=M},CreateDialog=function(b,e,f,c,k,l,q,v,D,E,B,M,I,d,g,m,t){function u(n,x,G,C){function K(){mxEvent.addListener(O,"click",function(){var J=G;if(q){var P=F.value,Q=P.lastIndexOf(".");if(0>e.lastIndexOf(".")&& -0>Q){J=null!=J?J:R.value;var T="";J==App.MODE_GOOGLE?T=b.drive.extension:J==App.MODE_GITHUB?T=b.gitHub.extension:J==App.MODE_GITLAB?T=b.gitLab.extension:J==App.MODE_TRELLO?T=b.trello.extension:J==App.MODE_DROPBOX?T=b.dropbox.extension:J==App.MODE_ONEDRIVE?T=b.oneDrive.extension:J==App.MODE_DEVICE&&(T=".drawio");0<=Q&&(P=P.substring(0,Q));F.value=P+T}}y(G)})}var O=document.createElement("a");O.style.overflow="hidden";var N=document.createElement("img");N.src=n;N.setAttribute("border","0");N.setAttribute("align", +F.style.gridColumn="1";var L=document.createElement("option");mxUtils.write(L,mxResources.get("reset"));L.setAttribute("value","reset");var G=["browser","device","download","_blank"],V=document.createElement("option");V.setAttribute("disabled","disabled");V.innerHTML="-----------------";var R=null,n={},x=mxUtils.button(mxResources.get("save"),function(){SaveDialog.lastValue=F.value;var H=n[SaveDialog.lastValue];null!=H&&f(y,H.mode,H.id)},null,"geBtn gePrimaryBtn");mxEvent.addListener(y,"keypress", +function(H){13==H.keyCode&&x.click()});mxEvent.addListener(F,"change",B);E();B();u.appendChild(F);null!=SaveDialog.lastValue&&null!=n[SaveDialog.lastValue]&&(F.value=SaveDialog.lastValue);I.appendChild(m);I.appendChild(u);M.appendChild(I);null!=d&&M.appendChild(d);I=document.createElement("div");I.style.flexBasis="100%";I.style.textAlign="right";I.style.marginTop=null!=l?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||I.appendChild(mxUtils.button(mxResources.get("help"),function(){b.openLink("https://www.drawio.com/doc/faq/save-file-formats")}, +null,"geBtn"));d=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&I.appendChild(d);null!=g&&I.appendChild(g);I.appendChild(x);b.editor.cancelFirst||I.appendChild(d);M.appendChild(I);this.init=function(){Editor.selectFilename(y)};this.container=M},CreateDialog=function(b,e,f,c,k,l,q,v,D,E,B,M,I,d,g,m,t){function u(n,x,H,C){function K(){mxEvent.addListener(O,"click",function(){var J=H;if(q){var P=F.value,Q=P.lastIndexOf(".");if(0>e.lastIndexOf(".")&& +0>Q){J=null!=J?J:R.value;var T="";J==App.MODE_GOOGLE?T=b.drive.extension:J==App.MODE_GITHUB?T=b.gitHub.extension:J==App.MODE_GITLAB?T=b.gitLab.extension:J==App.MODE_TRELLO?T=b.trello.extension:J==App.MODE_DROPBOX?T=b.dropbox.extension:J==App.MODE_ONEDRIVE?T=b.oneDrive.extension:J==App.MODE_DEVICE&&(T=".drawio");0<=Q&&(P=P.substring(0,Q));F.value=P+T}}y(H)})}var O=document.createElement("a");O.style.overflow="hidden";var N=document.createElement("img");N.src=n;N.setAttribute("border","0");N.setAttribute("align", "absmiddle");N.style.width="60px";N.style.height="60px";N.style.paddingBottom="6px";O.style.display="inline-block";O.className="geBaseButton";O.style.position="relative";O.style.margin="4px";O.style.padding="8px 8px 10px 8px";O.style.whiteSpace="nowrap";O.appendChild(N);O.style.color="gray";O.style.fontSize="11px";var U=document.createElement("div");O.appendChild(U);mxUtils.write(U,x);if(null!=C&&null==b[C]){N.style.visibility="hidden";mxUtils.setOpacity(U,10);var p=new Spinner({lines:12,length:12, -width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});p.spin(O);var z=window.setTimeout(function(){null==b[C]&&(p.stop(),O.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[C]&&(window.clearTimeout(z),mxUtils.setOpacity(U,100),N.style.visibility="",p.stop(),K())}))}else K();H.appendChild(O);++V==M&&(mxUtils.br(H),V=0)}function y(n){var x=F.value;if(null==n||null!=x&&0'],{type:"text/html"})});navigator.clipboard.write([n]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(x){b.handleError(x)}))}),m.style.marginTop="6px",m.className="geBtn");D&&Editor.popupsAllowed&&(k.style.cursor="pointer",mxEvent.addGestureListeners(k, -null,null,function(n){mxEvent.isPopupTrigger(n)||y("_blank")}))}mxUtils.br(l);var H=document.createElement("div");H.style.textAlign="center";var V=0;H.style.marginTop="6px";l.appendChild(H);var R=document.createElement("select");R.style.marginLeft="10px";b.isOfflineApp()||b.isOffline()||("function"===typeof window.DriveClient&&(I=document.createElement("option"),I.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(I,mxResources.get("googleDrive")),R.appendChild(I),u(IMAGE_PATH+"/google-drive-logo.svg", +null,null,function(n){mxEvent.isPopupTrigger(n)||y("_blank")}))}mxUtils.br(l);var G=document.createElement("div");G.style.textAlign="center";var V=0;G.style.marginTop="6px";l.appendChild(G);var R=document.createElement("select");R.style.marginLeft="10px";b.isOfflineApp()||b.isOffline()||("function"===typeof window.DriveClient&&(I=document.createElement("option"),I.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(I,mxResources.get("googleDrive")),R.appendChild(I),u(IMAGE_PATH+"/google-drive-logo.svg", mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.OneDriveClient&&(I=document.createElement("option"),I.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(I,mxResources.get("oneDrive")),R.appendChild(I),b.mode==App.MODE_ONEDRIVE&&I.setAttribute("selected","selected"),u(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")),"function"===typeof window.DropboxClient&&(I=document.createElement("option"),I.setAttribute("value",App.MODE_DROPBOX), mxUtils.write(I,mxResources.get("dropbox")),R.appendChild(I),b.mode==App.MODE_DROPBOX&&I.setAttribute("selected","selected"),u(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox")),null!=b.gitHub&&(I=document.createElement("option"),I.setAttribute("value",App.MODE_GITHUB),mxUtils.write(I,mxResources.get("github")),R.appendChild(I),u(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub")),null!=b.gitLab&&(I=document.createElement("option"), I.setAttribute("value",App.MODE_GITLAB),mxUtils.write(I,mxResources.get("gitlab")),R.appendChild(I),u(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab")),"function"===typeof window.TrelloClient&&(I=document.createElement("option"),I.setAttribute("value",App.MODE_TRELLO),mxUtils.write(I,mxResources.get("trello")),R.appendChild(I),u(IMAGE_PATH+"/trello-logo.svg",mxResources.get("trello"),App.MODE_TRELLO,"trello")));if(!Editor.useLocalStorage||"device"==urlParams.storage|| @@ -11448,29 +11448,29 @@ var PopupDialog=function(b,e,f,c,k){k=null!=k?k:!0;var l=document.createElement( null!=f&&f();b.openLink(e,null,!0)});v.className="geBtn gePrimaryBtn";v.style.width=q.style.width;l.appendChild(v);mxUtils.br(l);mxUtils.br(l);mxUtils.write(l,mxResources.get("allowPopups"));this.container=l},ImageDialog=function(b,e,f,c,k,l,q,v){function D(){0b.maxImageSize||L.height>b.maxImageSize||H.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};L.onerror=function(){b.spinner.stop(); +u.setAttribute("multiple","multiple");u.setAttribute("type","file");mxEvent.addListener(u,"change",function(F){null!=u.files&&(b.importFiles(u.files,0,0,b.maxImageSize,function(L,G,V,R,n,x){t(L)},function(){},function(L){return"image/"==L.type.substring(0,6)},function(L){for(var G=0;Gb.maxImageSize||L.height>b.maxImageSize||G.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};L.onerror=function(){b.spinner.stop(); b.handleError({message:mxResources.get("fileNotFound")})};L.src=F}});A.className="geBtn";mxEvent.addListener(M,"change",function(F){I=null;D()});D();v.appendChild(A);q=mxUtils.button(mxResources.get("apply"),function(){t(M.value)});q.className="geBtn gePrimaryBtn";v.appendChild(q);b.editor.cancelFirst||v.appendChild(f);Graph.fileSupport&&(v.style.marginTop="120px",B.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",B.style.backgroundPosition="center 65%",B.style.backgroundRepeat="no-repeat", -q=document.createElement("div"),q.style.position="absolute",q.style.width="420px",q.style.top="58%",q.style.textAlign="center",q.style.fontSize="18px",q.style.color="#a0c3ff",mxUtils.write(q,mxResources.get("dragImagesHere")),B.appendChild(q));B.appendChild(v);this.container=B},LinkDialog=function(b,e,f,c,k,l,q){function v(F,L){var H=document.createElement("option");mxUtils.write(H,mxResources.get(F));H.value=F;y.appendChild(H);A[F]=L}var D=document.createElement("div");D.style.height="100%";mxUtils.write(D, +q=document.createElement("div"),q.style.position="absolute",q.style.width="420px",q.style.top="58%",q.style.textAlign="center",q.style.fontSize="18px",q.style.color="#a0c3ff",mxUtils.write(q,mxResources.get("dragImagesHere")),B.appendChild(q));B.appendChild(v);this.container=B},LinkDialog=function(b,e,f,c,k,l,q){function v(F,L){var G=document.createElement("option");mxUtils.write(G,mxResources.get(F));G.value=F;y.appendChild(G);A[F]=L}var D=document.createElement("div");D.style.height="100%";mxUtils.write(D, mxResources.get("editLink")+":");var E=document.createElement("div");E.className="geTitle";E.style.backgroundColor="transparent";E.style.borderColor="transparent";E.style.whiteSpace="nowrap";E.style.textOverflow="clip";E.style.cursor="default";var B=document.createElement("input");B.setAttribute("placeholder",mxResources.get("dragUrlsHere"));B.setAttribute("type","text");B.style.marginTop="6px";B.style.width="414px";B.style.boxSizing="border-box";B.style.backgroundImage="url('"+Dialog.prototype.clearImage+ "')";B.style.backgroundRepeat="no-repeat";B.style.backgroundPosition="100% 50%";B.style.paddingRight="14px";B.style.marginBottom="4px";var M=document.createElement("div");M.setAttribute("title",mxResources.get("reset"));M.style.position="relative";M.style.left="-16px";M.style.width="12px";M.style.height="14px";M.style.cursor="pointer";M.style.display="inline-block";M.style.top="3px";M.style.background="url('"+b.editor.transparentImage+"')";mxEvent.addListener(M,"click",function(){B.value="";B.focus()}); var I=document.createElement("input");I.style.cssText="margin-right:8px;margin-bottom:8px;";I.setAttribute("value","url");I.setAttribute("type","radio");I.setAttribute("name","geLinkDialogOption");var d=document.createElement("input");d.style.cssText="margin-right:8px;margin-bottom:8px;";d.setAttribute("value","url");d.setAttribute("type","radio");d.setAttribute("name","geLinkDialogOption");var g=document.createElement("select");g.style.width="414px";var m=document.createElement("input");m.setAttribute("type", "checkbox");m.style.margin="0 6p 0 6px";null!=q&&(m.setAttribute("checked","checked"),m.defaultChecked=!0);q=null!=q?q:"_blank";m.setAttribute("title",q);l&&(B.style.width="200px");if(k&&null!=b.pages){null!=e&&Graph.isPageLink(e)?(d.setAttribute("checked","checked"),d.defaultChecked=!0):(B.setAttribute("value",e),I.setAttribute("checked","checked"),I.defaultChecked=!0);E.appendChild(I);E.appendChild(B);E.appendChild(M);l&&(E.appendChild(m),mxUtils.write(E,mxResources.get("openInNewWindow")));mxUtils.br(E); E.appendChild(d);k=!1;for(l=0;lFeedbackDialog.maxAttachmentSize?b.alert(mxResources.get("drawingTooLarge")):(b.hideDialog(),b.spinner.spin(document.body)&&mxUtils.post(null!=FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(q.value)+"&version="+ encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent((null!=e?e:"Feedback")+":\n"+M),function(I){b.spinner.stop();200<=I.getStatus()&&299>=I.getStatus()?b.alert(mxResources.get("feedbackSent")):b.alert(mxResources.get("errorSendingFeedback"))},function(){b.spinner.stop();b.alert(mxResources.get("errorSendingFeedback"))}))});v.className="geBtn gePrimaryBtn";if(!f){v.setAttribute("disabled","disabled");var D=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; @@ -11480,10 +11480,10 @@ k.appendChild(B);f=document.createElement("div");f.style.marginTop="26px";f.styl var RevisionDialog=function(b,e,f){var c=document.createElement("div"),k=document.createElement("h3");k.style.marginTop="0px";mxUtils.write(k,mxResources.get("revisionHistory"));c.appendChild(k);k=document.createElement("div");k.style.position="absolute";k.style.overflow="auto";k.style.width="170px";k.style.height="378px";c.appendChild(k);var l=document.createElement("div");l.style.position="absolute";l.style.border="1px solid lightGray";l.style.left="200px";l.style.width="470px";l.style.height="376px"; l.style.overflow="hidden";var q=document.createElement("div");q.style.cssText="position:absolute;left:0;right:0;top:0;bottom:20px;text-align:center;transform:translate(0,50%);pointer-events:none;";l.appendChild(q);mxEvent.disableContextMenu(l);c.appendChild(l);var v=new Graph(l);v.setTooltips(!1);v.setEnabled(!1);v.setPanning(!0);v.panningHandler.ignoreCell=!0;v.panningHandler.useLeftButtonForPanning=!0;v.minFitScale=null;v.maxFitScale=null;v.centerZoom=!0;var D=0,E=null,B=0,M=v.getGlobalVariable; v.getGlobalVariable=function(X){return"page"==X&&null!=E&&null!=E[B]?E[B].getAttribute("name"):"pagenumber"==X?B+1:"pagecount"==X?null!=E?E.length:1:M.apply(this,arguments)};v.getLinkForCell=function(){return null};Editor.MathJaxRender&&v.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(X,Y){b.editor.graph.mathEnabled&&Editor.MathJaxRender(v.container)}));var I={lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.4,trail:60, -shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"},d=new Spinner(I),g=b.getCurrentFile(),m=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),t={};for(I=0;IJ?U:U.substr(0,J)+z+U.substr(J+p.length);var Q=U;p=mxUtils.htmlEntities(p,!1,!1,!1);P=[];var T=-1;for(U=U.replace(/
/ig,"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig, +x.style.float="none";x.style.width="120px";x.style.marginTop="6px";x.style.marginLeft="8px";x.style.overflow="hidden";x.style.textOverflow="ellipsis";x.className="geBtn gePrimaryBtn";A.appendChild(x);var H=document.createElement("div");H.style.marginTop="10px";if(l){var C=function(U,p,z,J,P){if(null==P||"1"!=P.html)return J=U.toLowerCase().indexOf(p,J),0>J?U:U.substr(0,J)+z+U.substr(J+p.length);var Q=U;p=mxUtils.htmlEntities(p,!1,!1,!1);P=[];var T=-1;for(U=U.replace(/
/ig,"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig, "$1\n$2");-1<(T=U.indexOf("<",T+1));)P.push(T);T=U.match(/<[^>]*>/g);U=U.replace(/<[^>]*>/g,"");J=U.toLowerCase().indexOf(p,J);if(0>J)return Q;Q=J+p.length;z=mxUtils.htmlEntities(z);U=U.substr(0,J)+z+U.substr(Q);for(var S=0,W=0;W]*>)/ig,"$1").replace(/\n/g,"
")}, K=mxUtils.button(mxResources.get("replFind"),function(){try{if(null!=m&&null!=I){var U=I.cell,p=B.getLabel(U);B.isCellEditable(U)&&B.model.setValue(U,C(p,m,L.value,t-m.length,B.getCurrentCellStyle(U)));F.style.backgroundColor=D(!1,!0)?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}}catch(z){b.handleError(z)}});K.setAttribute("title",mxResources.get("replFind"));K.style.float="none";K.style.width="120px";K.style.marginTop="6px";K.style.marginLeft="8px";K.style.overflow="hidden";K.style.textOverflow="ellipsis"; K.className="geBtn gePrimaryBtn";K.setAttribute("disabled","disabled");A.appendChild(K);mxUtils.br(A);var O=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=m&&null!=I){var U=I.cell,p=B.getLabel(U);B.model.setValue(U,C(p,m,L.value,t-m.length,B.getCurrentCellStyle(U)));K.setAttribute("disabled","disabled");O.setAttribute("disabled","disabled")}}catch(z){b.handleError(z)}});O.setAttribute("title",mxResources.get("replace"));O.style.float="none";O.style.width="120px";O.style.marginTop= -"6px";O.style.marginLeft="8px";O.style.overflow="hidden";O.style.textOverflow="ellipsis";O.className="geBtn gePrimaryBtn";O.setAttribute("disabled","disabled");A.appendChild(O);var N=mxUtils.button(mxResources.get("replaceAll"),function(){G.innerText="";M=null;var U=b.currentPage,p=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;B.getModel().beginUpdate();try{for(var z=0,J={};D(!1,!0,!0)&&100>z;){var P=I.cell,Q=B.getLabel(P),T=J[P.id];if(T&&T.replAllMrk==u&&T.replAllPos>=t)break;J[P.id]= -{replAllMrk:u,replAllPos:t};B.isCellEditable(P)&&(B.model.setValue(P,C(Q,m,L.value,t-m.length,B.getCurrentCellStyle(P))),z++)}U!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,U));mxUtils.write(G,mxResources.get("matchesRepl",[z]))}catch(S){b.handleError(S)}finally{B.getModel().endUpdate(),b.editor.graph.setSelectionCells(p),b.editor.graph.rendering=!0}u++});N.setAttribute("title",mxResources.get("replaceAll"));N.style.float="none";N.style.width="120px";N.style.marginTop="6px";N.style.marginLeft= +"6px";O.style.marginLeft="8px";O.style.overflow="hidden";O.style.textOverflow="ellipsis";O.className="geBtn gePrimaryBtn";O.setAttribute("disabled","disabled");A.appendChild(O);var N=mxUtils.button(mxResources.get("replaceAll"),function(){H.innerText="";M=null;var U=b.currentPage,p=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;B.getModel().beginUpdate();try{for(var z=0,J={};D(!1,!0,!0)&&100>z;){var P=I.cell,Q=B.getLabel(P),T=J[P.id];if(T&&T.replAllMrk==u&&T.replAllPos>=t)break;J[P.id]= +{replAllMrk:u,replAllPos:t};B.isCellEditable(P)&&(B.model.setValue(P,C(Q,m,L.value,t-m.length,B.getCurrentCellStyle(P))),z++)}U!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,U));mxUtils.write(H,mxResources.get("matchesRepl",[z]))}catch(S){b.handleError(S)}finally{B.getModel().endUpdate(),b.editor.graph.setSelectionCells(p),b.editor.graph.rendering=!0}u++});N.setAttribute("title",mxResources.get("replaceAll"));N.style.float="none";N.style.width="120px";N.style.marginTop="6px";N.style.marginLeft= "8px";N.style.overflow="hidden";N.style.textOverflow="ellipsis";N.className="geBtn gePrimaryBtn";N.setAttribute("disabled","disabled");A.appendChild(N);mxUtils.br(A);A.appendChild(n);n=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));n.setAttribute("title",mxResources.get("close"));n.style.float="none";n.style.width="120px";n.style.marginTop="6px";n.style.marginLeft="8px";n.style.overflow="hidden";n.style.textOverflow="ellipsis";n.className="geBtn"; -A.appendChild(n);mxUtils.br(A);A.appendChild(G)}else n.style.width="90px",x.style.width="90px";mxEvent.addListener(F,"keyup",function(U){if(91==U.keyCode||93==U.keyCode||17==U.keyCode)mxEvent.consume(U);else if(27==U.keyCode)E.funct();else if(M!=F.value.toLowerCase()||13==U.keyCode)try{F.style.backgroundColor=D()?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}catch(p){F.style.backgroundColor=Editor.isDarkMode()?"#ff0000":"#ffcfcf"}});mxEvent.addListener(y,"keydown",function(U){70==U.keyCode&&b.keyHandler.isControlDown(U)&& +A.appendChild(n);mxUtils.br(A);A.appendChild(H)}else n.style.width="90px",x.style.width="90px";mxEvent.addListener(F,"keyup",function(U){if(91==U.keyCode||93==U.keyCode||17==U.keyCode)mxEvent.consume(U);else if(27==U.keyCode)E.funct();else if(M!=F.value.toLowerCase()||13==U.keyCode)try{F.style.backgroundColor=D()?"":Editor.isDarkMode()?"#ff0000":"#ffcfcf"}catch(p){F.style.backgroundColor=Editor.isDarkMode()?"#ff0000":"#ffcfcf"}});mxEvent.addListener(y,"keydown",function(U){70==U.keyCode&&b.keyHandler.isControlDown(U)&& !mxEvent.isShiftDown(U)&&(E.funct(),mxEvent.consume(U))});this.window=new mxWindow(mxResources.get("find")+(l?"/"+mxResources.get("replace"):""),y,e,f,c,k,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(F.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?F.select():document.execCommand("selectAll",!1,null), null!=b.pages&&1mxUtils.indexOf(D,m)&&I.push(m))}l.isSelectionEmpty()?E(D.concat(I)):l.addTagsForCells(l.getSelectionCells(),d)}},mxResources.get("tags"),null,null,"https://www.drawio.com/blog/tags-in-diagrams");b.showDialog(B.container,320,80,!0,!0);B.init()}},q);q=v.div;this.window=new mxWindow(mxResources.get("tags"),q,e,f,c,k,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1; @@ -11564,29 +11564,29 @@ v=document.createElement("img");v.setAttribute("border","0");v.setAttribute("ali v.src=IMAGE_PATH+"/gitlab-logo.svg",v.style.width="32px"):e==b.trello&&(q=mxResources.get("trello"),v.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",[q]));var D=document.createElement("input");D.setAttribute("type","checkbox");q=mxUtils.button(mxResources.get("authorize"),function(){c(D.checked)});q.insertBefore(v,q.firstChild);q.style.marginTop="6px";q.className="geBigButton";q.style.fontSize="18px";q.style.padding="14px"; k.appendChild(l);k.appendChild(b);k.appendChild(q);f&&(f=document.createElement("p"),f.style.marginTop="20px",f.appendChild(D),l=document.createElement("span"),mxUtils.write(l," "+mxResources.get("rememberMe")),f.appendChild(l),k.appendChild(f),D.checked=!0,D.defaultChecked=!0,mxEvent.addListener(l,"click",function(E){D.checked=!D.checked;mxEvent.consume(E)}));this.container=k},MoreShapesDialog=function(b,e,f){f=null!=f?f:b.sidebar.entries;var c=document.createElement("div"),k=[];if(null!=b.sidebar.customEntries)for(var l= 0;lmxUtils.indexOf(v,g)&&v.push(g);k()})}:function(){var g=document.createElement("div"),m=document.createElement("span");m.style.marginTop="6px";mxUtils.write(m,mxResources.get("builtinPlugins")+ ": ");g.appendChild(m);var t=document.createElement("select");t.style.width="150px";for(m=0;mmxUtils.indexOf(v,L)&&v.push(L)}k()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(y.container,300,80,!0,!0);y.init()});m.className="geBtn";ALLOW_CUSTOM_PLUGINS||(m.style.display="none");g=new CustomDialog(b,g,mxUtils.bind(this,function(){var y=App.pluginRegistry[t.value];0>mxUtils.indexOf(v,y)&&(v.push(y),k())}),null,null,null,m);b.showDialog(g.container,360,100,!0,!0)});E.className="geBtn";var B=mxUtils.button(mxResources.get("cancel"), +A[F],G=App.pluginRegistry[L];null!=G&&(L=G);0mxUtils.indexOf(v,L)&&v.push(L)}k()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(y.container,300,80,!0,!0);y.init()});m.className="geBtn";ALLOW_CUSTOM_PLUGINS||(m.style.display="none");g=new CustomDialog(b,g,mxUtils.bind(this,function(){var y=App.pluginRegistry[t.value];0>mxUtils.indexOf(v,y)&&(v.push(y),k())}),null,null,null,m);b.showDialog(g.container,360,100,!0,!0)});E.className="geBtn";var B=mxUtils.button(mxResources.get("cancel"), function(){b.hideDialog()});B.className="geBtn";var M=mxUtils.button(c?mxResources.get("close"):mxResources.get("apply"),function(){D?(mxSettings.setPlugins(v),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});M.className="geBtn gePrimaryBtn";var I=document.createElement("div");I.style.marginTop="14px";I.style.textAlign="right";var d=mxUtils.button(mxResources.get("help"),function(){b.openLink("https://www.drawio.com/doc/faq/plugins")});d.className= -"geBtn";b.isOffline()&&!mxClient.IS_CHROMEAPP&&(d.style.display="none");I.appendChild(d);b.editor.cancelFirst?(c||I.appendChild(B),I.appendChild(E),I.appendChild(M)):(I.appendChild(E),I.appendChild(M),c||I.appendChild(B));l.appendChild(I);this.container=l},CropImageDialog=function(b,e,f,c){function k(){var H=t.checked,V=u.checked,R=d.geometry,n=D.width,x=D.height,G=(300-n)/2,C=(300-x)/2;R.xG+n&&(R.width=G+n-R.x,R.x=Math.min(R.x,G+n));R.yC+x&&(R.height=C+x-R.y,R.y=Math.min(R.y,C+x));var K=(R.x-G)/n*100;n=100-(R.x+R.width-G)/n*100;G=(R.y-C)/x*100;R=100-(R.y+R.height-C)/x*100;return"inset("+mxUtils.format(G)+"% "+mxUtils.format(n)+"% "+mxUtils.format(R)+"% "+mxUtils.format(K)+"%"+(H?" round "+I+"%":V?" round 50%":"")+")"}function l(H){null!=B&&(!0!==H&&(B.model.setGeometry(d,M.clone()),I=5,A.value=I),B.model.setStyle(d,g+k()),B.selectAll(),y.style.visibility=t.checked?"visible":"hidden")}var q=document.createElement("div"), -v=document.createElement("div");v.style.height="300px";v.style.width="300px";v.style.display="inline-flex";v.style.justifyContent="center";v.style.alignItems="center";v.style.position="absolute";var D=document.createElement("img");D.onload=function(){function H(){B.model.setStyle(d,g+k())}B=new Graph(E);B.autoExtend=!1;B.autoScroll=!1;B.setGridEnabled(!1);B.setEnabled(!0);B.setPanning(!1);B.setConnectable(!1);B.getRubberband().setEnabled(!1);B.graphHandler.allowLivePreview=!1;var V=B.createVertexHandler; -B.createVertexHandler=function(){var Q=V.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=f)try{if("inset"==f.substring(0,5)){var R=d.geometry,n=D.width,x=D.height,G=(300-n)/2,C=(300-x)/2,K=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),O=parseFloat(K[0]),N=parseFloat(K[1]),U=parseFloat(K[2]),p=parseFloat(K[3]);isFinite(O)&&isFinite(N)&&isFinite(U)&&isFinite(p)?(R.x=p/100*n+G,R.y=O/100*x+C,R.width=(100-N)/100*n+G-R.x,R.height=(100-U)/100*x+C-R.y,"round"==K[4]?"50%"==K[5]?u.setAttribute("checked", -"checked"):(I=parseInt(K[5]),A.value=I,t.setAttribute("checked","checked"),y.style.visibility="visible"):m.setAttribute("checked","checked")):f=null}else f=null}catch(Q){}d.style=g+(f?f:k());d.vertex=!0;B.addCell(d,null,null,null,null);B.selectAll();B.addListener(mxEvent.CELLS_MOVED,H);B.addListener(mxEvent.CELLS_RESIZED,H);var z=B.graphHandler.mouseUp,J=B.graphHandler.mouseDown;B.graphHandler.mouseUp=function(){z.apply(this,arguments);E.style.backgroundColor="#fff9"};B.graphHandler.mouseDown=function(){J.apply(this, +"geBtn";b.isOffline()&&!mxClient.IS_CHROMEAPP&&(d.style.display="none");I.appendChild(d);b.editor.cancelFirst?(c||I.appendChild(B),I.appendChild(E),I.appendChild(M)):(I.appendChild(E),I.appendChild(M),c||I.appendChild(B));l.appendChild(I);this.container=l},CropImageDialog=function(b,e,f,c){function k(){var G=t.checked,V=u.checked,R=d.geometry,n=D.width,x=D.height,H=(300-n)/2,C=(300-x)/2;R.xH+n&&(R.width=H+n-R.x,R.x=Math.min(R.x,H+n));R.yC+x&&(R.height=C+x-R.y,R.y=Math.min(R.y,C+x));var K=(R.x-H)/n*100;n=100-(R.x+R.width-H)/n*100;H=(R.y-C)/x*100;R=100-(R.y+R.height-C)/x*100;return"inset("+mxUtils.format(H)+"% "+mxUtils.format(n)+"% "+mxUtils.format(R)+"% "+mxUtils.format(K)+"%"+(G?" round "+I+"%":V?" round 50%":"")+")"}function l(G){null!=B&&(!0!==G&&(B.model.setGeometry(d,M.clone()),I=5,A.value=I),B.model.setStyle(d,g+k()),B.selectAll(),y.style.visibility=t.checked?"visible":"hidden")}var q=document.createElement("div"), +v=document.createElement("div");v.style.height="300px";v.style.width="300px";v.style.display="inline-flex";v.style.justifyContent="center";v.style.alignItems="center";v.style.position="absolute";var D=document.createElement("img");D.onload=function(){function G(){B.model.setStyle(d,g+k())}B=new Graph(E);B.autoExtend=!1;B.autoScroll=!1;B.setGridEnabled(!1);B.setEnabled(!0);B.setPanning(!1);B.setConnectable(!1);B.getRubberband().setEnabled(!1);B.graphHandler.allowLivePreview=!1;var V=B.createVertexHandler; +B.createVertexHandler=function(){var Q=V.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=f)try{if("inset"==f.substring(0,5)){var R=d.geometry,n=D.width,x=D.height,H=(300-n)/2,C=(300-x)/2,K=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),O=parseFloat(K[0]),N=parseFloat(K[1]),U=parseFloat(K[2]),p=parseFloat(K[3]);isFinite(O)&&isFinite(N)&&isFinite(U)&&isFinite(p)?(R.x=p/100*n+H,R.y=O/100*x+C,R.width=(100-N)/100*n+H-R.x,R.height=(100-U)/100*x+C-R.y,"round"==K[4]?"50%"==K[5]?u.setAttribute("checked", +"checked"):(I=parseInt(K[5]),A.value=I,t.setAttribute("checked","checked"),y.style.visibility="visible"):m.setAttribute("checked","checked")):f=null}else f=null}catch(Q){}d.style=g+(f?f:k());d.vertex=!0;B.addCell(d,null,null,null,null);B.selectAll();B.addListener(mxEvent.CELLS_MOVED,G);B.addListener(mxEvent.CELLS_RESIZED,G);var z=B.graphHandler.mouseUp,J=B.graphHandler.mouseDown;B.graphHandler.mouseUp=function(){z.apply(this,arguments);E.style.backgroundColor="#fff9"};B.graphHandler.mouseDown=function(){J.apply(this, arguments);E.style.backgroundColor=""};B.dblClick=function(){};var P=B.getSelectionModel().changeSelection;B.getSelectionModel().changeSelection=function(){P.call(this,[d],[d])}};D.onerror=function(){D.onload=null;D.src=Editor.errorImage};D.setAttribute("src",e);D.style.maxWidth="300px";D.style.maxHeight="300px";v.appendChild(D);q.appendChild(v);var E=document.createElement("div");E.style.width="300px";E.style.height="300px";E.style.overflow="hidden";E.style.backgroundColor="#fff9";q.appendChild(E); var B=null,M=new mxGeometry(100,100,100,100),I=5,d=new mxCell("",M.clone(),""),g="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+e.replace(";base64","")+";clipPath=",m=document.createElement("input");m.setAttribute("type","radio");m.setAttribute("id","croppingRect");m.setAttribute("name","croppingShape");m.setAttribute("checked","checked");m.style.margin="5px";q.appendChild(m);e=document.createElement("label");e.setAttribute("for","croppingRect");mxUtils.write(e,mxResources.get("rectangle")); q.appendChild(e);var t=document.createElement("input");t.setAttribute("type","radio");t.setAttribute("id","croppingRounded");t.setAttribute("name","croppingShape");t.style.margin="5px";q.appendChild(t);e=document.createElement("label");e.setAttribute("for","croppingRounded");mxUtils.write(e,mxResources.get("rounded"));q.appendChild(e);var u=document.createElement("input");u.setAttribute("type","radio");u.setAttribute("id","croppingEllipse");u.setAttribute("name","croppingShape");u.style.margin="5px"; @@ -11601,7 +11601,7 @@ document.createElement("td");mxUtils.write(D,mxResources.get("height")+":");var 1==e.length?mxUtils.getValue(f.getCellStyle(e[0]),mxConstants.STYLE_ROTATION,0):"";E.appendChild(u);v.appendChild(D);v.appendChild(E);q.appendChild(v);l.appendChild(q);k.appendChild(l);c=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});c.className="geBtn";var y=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();f.getModel().beginUpdate();try{for(var A=0;Ab.maxImageSize||K>b.maxImageSize){var P=Math.min(1,Math.min(b.maxImageSize/Math.max(1,C)),b.maxImageSize/Math.max(1,K));C*=P;K*=P}z>J?(J=Math.round(100*J/z),z=100):(z=Math.round(100*z/J),J=100);var Q=document.createElement("div");Q.setAttribute("draggable","true");Q.style.display="inline-block";Q.style.position="relative";Q.style.padding="0 12px";Q.style.cursor="move";mxUtils.setPrefixedStyle(Q.style,"transition", "transform .1s ease-in-out");if(null!=R){var T=document.createElement("img");T.setAttribute("src",F.convert(R));T.style.width=z+"px";T.style.height=J+"px";T.style.margin="10px";T.style.paddingBottom=Math.floor((100-J)/2)+"px";T.style.paddingLeft=Math.floor((100-z)/2)+"px";Q.appendChild(T)}else if(null!=O){var S=b.stringToCells("<"==O.xml.charAt(0)?O.xml:Graph.decompress(O.xml));0u?y-1:y,0,M.splice(u,1)[0]),g.insertBefore(g.children[u],g.children[y])):(M.push(M.splice(u,1)[0]),g.appendChild(g.children[u]));else if(0u?y-1:y,0,M.splice(u,1)[0]),g.insertBefore(g.children[u],g.children[y])):(M.push(M.splice(u,1)[0]),g.appendChild(g.children[u]));else if(0=z.status&&(D(z.responseText,x,G,C,K,O,N,"fixed",mxEvent.isAltDown(R)?null:N.substring(0,N.lastIndexOf(".")).replace(/_/g," ")),g.scrollTop=g.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(D(n,x,G,C,K,O,N,"fixed",mxEvent.isAltDown(R)?null:N.substring(0,N.lastIndexOf(".")).replace(/_/g," ")), +c[I],D(e.data,null,0,0,e.w,e.h,e,e.aspect,e.title);mxEvent.addListener(g,"dragleave",function(R){m.style.cursor="";for(var n=mxEvent.getSource(R);null!=n;){if(n==g||n==m){R.stopPropagation();R.preventDefault();break}n=n.parentNode}});var G=function(R){return function(n,x,H,C,K,O,N,U,p){null!=p&&EditorUi.isVisioFilename(p.name)?b.importVisio(p,mxUtils.bind(this,function(z){D(z,x,H,C,K,O,N,"fixed",mxEvent.isAltDown(R)?null:N.substring(0,N.lastIndexOf(".")).replace(/_/g," "))})):null!=p&&(new XMLHttpRequest).upload&& +b.isRemoteFileFormat(n,p.name)?b.isExternalDataComms()?b.parseFile(p,mxUtils.bind(this,function(z){4==z.readyState&&(b.spinner.stop(),200<=z.status&&299>=z.status&&(D(z.responseText,x,H,C,K,O,N,"fixed",mxEvent.isAltDown(R)?null:N.substring(0,N.lastIndexOf(".")).replace(/_/g," ")),g.scrollTop=g.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(D(n,x,H,C,K,O,N,"fixed",mxEvent.isAltDown(R)?null:N.substring(0,N.lastIndexOf(".")).replace(/_/g," ")), g.scrollTop=g.scrollHeight)}};mxEvent.addListener(g,"dragover",E);mxEvent.addListener(g,"drop",B);mxEvent.addListener(m,"dragover",E);mxEvent.addListener(m,"drop",B);f.appendChild(g);c=document.createElement("div");c.style.textAlign="right";c.style.marginTop="20px";I=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});I.setAttribute("id","btnCancel");I.className="geBtn";b.editor.cancelFirst&&c.appendChild(I);"draw.io"!=b.getServiceName()||null==k||k.constructor!=DriveLibrary&&k.constructor!= GitHubLibrary||(e=mxUtils.button(mxResources.get("link"),function(){b.spinner.spin(document.body,mxResources.get("loading"))&&k.getPublicUrl(function(R){b.spinner.stop();if(null!=R){var n=b.getSearch("create title mode url drive splash state clibs ui".split(" "));n+=(0==n.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(R);R=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+n,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(R.container,450, 240,!0);R.init()}else k.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(k.getId(),k)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),e.className="geBtn",c.appendChild(e));e=mxUtils.button(mxResources.get("export"),function(){var R=b.createLibraryDataFromImages(M),n=d.value;/(\.xml)$/i.test(n)|| (n+=".xml");b.isLocalFileSave()?b.saveLocalFile(R,n,"text/xml",null,null,null!=q?q:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(n)+"&format=xml&xml="+encodeURIComponent(R))).simulate(document,"_blank")});e.setAttribute("id","btnDownload");e.className="geBtn";c.appendChild(e);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var V=document.createElement("input");V.setAttribute("multiple","multiple");V.setAttribute("type","file");mxEvent.addListener(V,"change",function(R){L= -!1;b.importFiles(V.files,0,0,b.maxImageSize,function(n,x,G,C,K,O,N,U,p){null!=V.files&&(H(R)(n,x,G,C,K,O,N,U,p),V.type="",V.type="file",V.value="")});g.scrollTop=g.scrollHeight});V.style.display="none";document.body.appendChild(V);b.libDlgFileInputElt=V}e=mxUtils.button(mxResources.get("import"),function(){null!=A&&(A(),A=null);b.libDlgFileInputElt.click()});e.setAttribute("id","btnAddImage");e.className="geBtn";c.appendChild(e)}e=mxUtils.button(mxResources.get("addImages"),function(){null!=A&&(A(), -A=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(R,n,x){L=!1;if(null!=R){if("data:image/"==R.substring(0,11)){var G=R.indexOf(",");0C?0:100K?0:100U?(K=U*N.width,U=0):1C?(O=C*N.height,C=0):1U?(K=U*N.width,U=0):1C?(O=C*N.height,C=0):1C?1:100C?1:100'+mxUtils.htmlEntities(p)+""};mxGraphView.prototype.redrawEnumerationState=function(p){var z="1"==mxUtils.getValue(p.style,"enumerate",0);z&&null==p.secondLabel?(p.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),p.secondLabel.size=12,p.secondLabel.state=p,p.secondLabel.dialect= mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(p,p.secondLabel)):z||null==p.secondLabel||(p.secondLabel.destroy(),p.secondLabel=null);z=p.secondLabel;if(null!=z){var J=p.view.scale,P=this.createEnumerationValue(p);p=this.graph.model.isVertex(p.cell)?new mxRectangle(p.x+p.width-4*J,p.y+4*J,0,0):mxRectangle.fromPoint(p.view.getPoint(p));z.bounds.equals(p)&&z.value==P&&z.scale==J||(z.bounds=p,z.value=P,z.scale=J,z.redraw())}};var R=mxGraphView.prototype.validateBackgroundPage; mxGraphView.prototype.validateBackgroundPage=function(){R.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane()){var p=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxClient.NO_FO||null!=this.webKitForceRepaintNode&&null!=this.webKitForceRepaintNode.parentNode||"svg"!=this.graph.container.firstChild.nodeName?null==this.webKitForceRepaintNode||this.graph.mathEnabled&&("svg"==this.graph.container.firstChild.nodeName||this.graph.container.firstChild==this.webKitForceRepaintNode)|| @@ -11936,7 +11936,7 @@ da&&(da=[]);var ja=this.getAllTags();for(ba=0;bamxUtils.indexO 17)&&this.setLinkForCell(z,this.updateCustomLink(p,J));if(this.isHtmlLabel(z)){var P=document.createElement("div");P.innerHTML=Graph.sanitizeHtml(this.getLabel(z));for(var Q=P.getElementsByTagName("a"),T=!1,S=0;Sp.excludeCells.indexOf(z[P].id)&&J.push(z[P]);z=J}return z};Graph.prototype.getCellsById=function(p){var z=[];if(null!=p)for(var J=0;Jz?this.hiddenTags.push(p):0<=z&&this.hiddenTags.splice(z,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))}; +null!=Q&&z.push(Q)}return z};var H=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(p){return H.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(p))};Graph.prototype.setHiddenTags=function(p){this.hiddenTags=p;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(p){var z=mxUtils.indexOf(this.hiddenTags,p);0>z?this.hiddenTags.push(p):0<=z&&this.hiddenTags.splice(z,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))}; Graph.prototype.isAllTagsHidden=function(p){if(null==p||0==p.length||0==this.hiddenTags.length)return!1;p=p.split(" ");if(p.length>this.hiddenTags.length)return!1;for(var z=0;zmxUtils.indexOf(this.hiddenTags,p[z]))return!1;return!0};Graph.prototype.getCellsForTags=function(p,z,J,P){var Q=[];if(null!=p){z=null!=z?z:this.model.getDescendants(this.model.getRoot());for(var T=0,S={},W=0;W=p.length)){for(var Z=Y=0;Z
')))}catch(p){}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="23.1.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= +(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="23.1.4";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"}}; @@ -12004,10 +12004,10 @@ g.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==t.match("image/ EditorUi.prototype.getLocalData=function(d,g){g(localStorage.getItem(d))};EditorUi.prototype.setLocalData=function(d,g,m){localStorage.setItem(d,g);null!=m&&m()};EditorUi.prototype.removeLocalData=function(d,g){localStorage.removeItem(d);g()};EditorUi.prototype.setShareCursorPosition=function(d){this.shareCursorPosition=d;this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};EditorUi.prototype.isShareCursorPosition=function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors= function(d){this.showRemoteCursors=d;this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(d){this.editor.graph.mathEnabled=d;this.editor.updateGraphComponents();this.editor.graph.refresh();this.editor.graph.defaultMathEnabled=d;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(d){return this.editor.graph.mathEnabled}; EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};EditorUi.prototype.isOffline=function(d){return this.isOfflineApp()||!navigator.onLine||!d&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(d, -g,m){var t=null==d||null==g;m=null!=m?m:24;var u=new Spinner({lines:12,length:m,width:Math.round(m/3),radius:Math.round(m/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),y=this.timeout,A=u.spin,F=null,L=null,H=mxUtils.bind(this,function(R){null!=R&&R()});u.spin=function(R,n,x,G){G=null!=G?G:y;var C=!1;if(!this.active){var K=Date.now();null!=x&&(F=window.setTimeout(function(){u.stop();F=null;x({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"), -retry:L})},G));A.call(this,R);this.active=!0;null!=n&&(t&&(g=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,d=document.body.clientWidth/2-2),C=document.createElement("div"),C.style.position="absolute",C.style.whiteSpace="nowrap",C.style.background="#4B4243",C.style.color="white",C.style.fontFamily=Editor.defaultHtmlFont,C.style.fontSize="9pt",C.style.padding="6px",C.style.paddingLeft="10px",C.style.paddingRight="10px",C.style.zIndex=2E9,C.style.left=Math.max(0, -d)+"px",C.style.top=Math.max(0,g+70)+"px",mxUtils.setPrefixedStyle(C.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(C.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(C.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=n.substring(n.length-3,n.length)&&"!"!=n.charAt(n.length-1)&&(n+="..."),C.innerHTML=mxUtils.htmlEntities(n),R.appendChild(C),u.status=C);this.pause=mxUtils.bind(this,function(){var O=H;this.active&&(G=Math.max(0,G-(Date.now()-K)),O=mxUtils.bind(this, -function(N){this.spin(R,n,x,G);if(null!=N)try{N(),L=mxUtils.bind(this,function(){this.spin(R,n,x,G);try{N()}catch(U){null!=x&&x(U)}})}catch(U){null!=x&&x(U)}}));this.stop();return O});C=!0}return C};var V=u.stop;u.stop=function(){V.call(this);this.active&&(this.active=!1,null!=F&&(window.clearTimeout(F),F=null),null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status),u.status=null)};u.pause=function(){return H};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g= +g,m){var t=null==d||null==g;m=null!=m?m:24;var u=new Spinner({lines:12,length:m,width:Math.round(m/3),radius:Math.round(m/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),y=this.timeout,A=u.spin,F=null,L=null,G=mxUtils.bind(this,function(R){null!=R&&R()});u.spin=function(R,n,x,H){H=null!=H?H:y;var C=!1;if(!this.active){var K=Date.now();null!=x&&(F=window.setTimeout(function(){u.stop();F=null;x({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"), +retry:L})},H));A.call(this,R);this.active=!0;null!=n&&(t&&(g=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,d=document.body.clientWidth/2-2),C=document.createElement("div"),C.style.position="absolute",C.style.whiteSpace="nowrap",C.style.background="#4B4243",C.style.color="white",C.style.fontFamily=Editor.defaultHtmlFont,C.style.fontSize="9pt",C.style.padding="6px",C.style.paddingLeft="10px",C.style.paddingRight="10px",C.style.zIndex=2E9,C.style.left=Math.max(0, +d)+"px",C.style.top=Math.max(0,g+70)+"px",mxUtils.setPrefixedStyle(C.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(C.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(C.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=n.substring(n.length-3,n.length)&&"!"!=n.charAt(n.length-1)&&(n+="..."),C.innerHTML=mxUtils.htmlEntities(n),R.appendChild(C),u.status=C);this.pause=mxUtils.bind(this,function(){var O=G;this.active&&(H=Math.max(0,H-(Date.now()-K)),O=mxUtils.bind(this, +function(N){this.spin(R,n,x,H);if(null!=N)try{N(),L=mxUtils.bind(this,function(){this.spin(R,n,x,H);try{N()}catch(U){null!=x&&x(U)}})}catch(U){null!=x&&x(U)}}));this.stop();return O});C=!0}return C};var V=u.stop;u.stop=function(){V.call(this);this.active&&(this.active=!1,null!=F&&(window.clearTimeout(F),F=null),null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status),u.status=null)};u.pause=function(){return G};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g= mxUtils.parseXml(d),m=this.editor.extractGraphModel(g.documentElement,!0);return null!=m&&0==m.getElementsByTagName("parsererror").length}catch(t){}return!1};EditorUi.isVisioFilename=function(d){return/(\.v(dx|sdx?))($|\?)/i.test(d)||/(\.vs(x|sx?))($|\?)/i.test(d)};EditorUi.prototype.isVisioData=function(d){return 8=y.keyCode)||t.isSelectionEmpty()||mxEvent.isAltDown(y)||mxEvent.i '"').replace(/\n/g,""))}else{var u=mxUtils.parseXml(d),y=this.editor.extractGraphModel(u.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);g=null!=y?mxUtils.getXml(y):""}}catch(A){}return g};EditorUi.prototype.validateFileData=function(d){if(null!=d&&0');0<=g&&(d=d.slice(0,g)+''+d.slice(g+23-1,d.length));d=Graph.zapGremlins(d)}return d};EditorUi.prototype.replaceFileData=function(d){d=this.validateFileData(d); d=null!=d&&0\n':">")+"\n\n"+(null==u?null!=m?""+mxUtils.htmlEntities(m)+"\n":"":"draw.io\n")+(null!=u?'\n":"")+"\n':">")+'\n
\n
'+ t+"
\n
\n"+(null==u?'